prepare NEWS.stable
[gnulib.git] / ChangeLog
1 2011-12-03  Bruno Haible  <bruno@clisp.org>
2
3         Fix module descriptions syntax.
4         * modules/argv-iter (License): Fix syntax.
5         * modules/di-set (License): Likewise.
6         * modules/ino-map (License): Likewise.
7         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8
9 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10
11         stdalign: port to Clang 3.0
12         Problem reported by Simon Josefsson in
13         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
14         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
15         which has <stdalign.h> but which does not define alignof.
16         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
17
18 2011-12-01  Eric Blake  <eblake@redhat.com>
19
20         mktempd: silence dd usage
21         * build-aux/mktempd (rand_bytes): Silence dd.
22
23 2011-11-30  Simon Josefsson  <simon@josefsson.org>
24
25         manywarnings: Don't mention gcc version in docstring.
26         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
27         Jim Meyering <meyering@redhat.com>.
28
29 2011-11-30  Jim Meyering  <meyering@redhat.com>
30
31         hash: mark a few floating point constants with "f" suffix
32         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
33         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
34         floating point constants with "f", since they're destined to be
35         saved/used as "float"s.
36
37 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
38
39         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
40         * tests/test-float.c (test_long_double): Correct and re-enable the
41         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
42
43 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
44
45         Avoid subtracting two pointers that don't point into the same block.
46         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
47         only pointers into the same memory block are subtracted. We cannot
48         assume that sizeof (ptrdiff_t) == sizeof (void *).
49
50 2011-11-29  Eric Blake  <eblake@redhat.com>
51
52         maint.mk: add syntax check for use of compare from init.sh
53         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
54         moved here from coreutils.
55
56         manywarnings: drop -Wunsuffixed-float-constants
57         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
58         '1.0D', which is the only way to silence this warning for 'double'.
59
60 2011-11-29  Jim Meyering  <meyering@redhat.com>
61
62         hash: mark compute_bucket_size with the pure attribute
63         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
64
65         quotearg, propername: correct pragma guard expression
66         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
67         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
68
69 2011-11-28  Jim Meyering  <meyering@redhat.com>
70
71         propername: do not mark proper_name with the const attribute
72         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
73         since it examines data pointed to by its parameter.
74         * lib/propername.c (proper_name): Instead, add a pragma to suppress
75         the suggestion from -Wsuggest-attribute=const.
76
77         propername: mark one more function as const
78         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
79
80 2011-11-27  Jim Meyering  <meyering@redhat.com>
81
82         mark functions with const and pure attributes
83
84         Mark functions per suggestions from gcc-4.6 when using these options:
85         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
86         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
87         Follow these guidelines: when possible, apply the attribute to
88         an extern declaration, not to its definition.  Apply it to the
89         definition only when the definition is static.
90         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
91         * lib/argv-iter.h (argv_iter_n_args): Likewise.
92         * lib/base64.h (isbase64): Likewise.
93         * lib/basename-lgpl.c (last_component, base_len): Likewise.
94         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
95         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
96         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
97         (c_tolower, c_toupper): Likewise.
98         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
99         * lib/chdir-long.c (find_non_slash): Likewise.
100         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
101         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
102         * lib/file-type.h (file_type): Likewise.
103         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
104         * lib/filevercmp.c (verrevcmp): Likewise.
105         * lib/freadahead.h (freadahead): Likewise.
106         * lib/fts.c (fts_maxarglen): Likewise.
107         * lib/hash-pjw.h (hash_pjw): Likewise.
108         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
109         * lib/hash.c (is_prime, next_prime): Likewise.
110         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
111         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
112         (hash_table_ok, hash_get_first, hash_string): Likewise.
113         (compute_bucket_size): Likewise.
114         * lib/i-ring.h (i_ring_empty): Likewise.
115         * lib/isnan.c (isnanl): Likewise.
116         * lib/math.h (isnanl, rpl_isnanl): Likewise.
117         * lib/memcasecmp.h (memcasecmp): Likewise.
118         * lib/memchr2.h (memchr2): Likewise.
119         * lib/memcmp2.h (memcmp2): Likewise.
120         * lib/parse-datetime.y (lookup_zone): Likewise.
121         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
122         [!WINDOWS_SOCKETS]: Likewise.
123         * lib/strnlen1.h (strnlen1): Likewise.
124         * lib/uniwidth.in.h (uc_width): Likewise.
125         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
126         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
127         (quoting_options_from_style): Add a comment.
128         * lib/propername.h (proper_name): Add a comment.
129
130 2011-11-27  Bruno Haible  <bruno@clisp.org>
131
132         Remove unused macros from !_LIBC code in glibc-borrowed files.
133         * lib/fnmatch.c (STRCOLL): Remove macro.
134         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
135         * lib/glob.c (__stat, __readdir64): Remove macros.
136         * lib/tempname.c (__open64, __xstat64): Remove macros.
137         Suggested by Paul Eggert.
138
139 2011-11-27  Bruno Haible  <bruno@clisp.org>
140
141         getcwd: Fix link error on MSVC 9.
142         * modules/getcwd (Depends-on): Add readdir, rewinddir.
143
144 2011-11-27  Bruno Haible  <bruno@clisp.org>
145
146         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
147         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
148         HAVE_OPENDIR is 0.
149         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
150         HAVE_CLOSEDIR is 0.
151         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
152         is 0.
153         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
154
155 2011-11-27  Bruno Haible  <bruno@clisp.org>
156
157         getcwd: Fix bug from 2011-08-17.
158         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
159         platforms that need it.
160         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
161         code of 4 to be a failure, not a success. This ensures that
162         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
163
164 2011-11-27  Bruno Haible  <bruno@clisp.org>
165
166         binary-io tests: Avoid test failure on mingw when libtool is used.
167         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
168         Don't verify the size of t-bin-out1.tmp here.
169         * tests/test-binary-io.sh: Verify it here.
170         Reported by Simon Josefsson.
171
172 2011-11-26  Bruno Haible  <bruno@clisp.org>
173
174         Fix conflict between two instantiations of module 'unistd'.
175         * gnulib-tool (func_emit_autoconf_snippet): Substitute
176         ${include_guard_prefix} also in the autoconf snippet.
177         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
179         GNULIB_UNISTD_H_GETOPT.
180         * modules/getopt-posix (configure.ac): Set the
181         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
182         * modules/getopt-gnu (configure.ac): Likewise.
183         * modules/unistd (Makefile.am): Change the substitution value of
184         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
185         Reported by Simon Josefsson.
186
187 2011-11-25  Bruno Haible  <bruno@clisp.org>
188
189         pagealign_alloc: Doc and comments.
190         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
191         module.
192         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
193
194 2011-11-25  Jim Meyering  <meyering@redhat.com>
195
196         test-update-copyright.sh: avoid false-positive failure
197         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
198         around false positive failure on Cygwin/Windows.  The latter was
199         matching erroneously-created files with names like
200         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
201
202 2011-11-25  Simon Josefsson  <simon@josefsson.org>
203
204         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
205         * m4/valgrind-tests.m4: Check that the parameters that will be
206         used works, not just a subset of them.  Reported by Bruno Haible
207         <bruno@clisp.org>.
208
209 2011-11-24  Jim Meyering  <meyering@redhat.com>
210
211         test-stdalign.c: comment out long double tests
212         * tests/test-stdalign.c: Don't try to reduce alignment of long double
213         variables.  That provokes errors like this from gcc-4.7.0 20111124:
214         error: '_Alignas' specifiers cannot reduce alignment of \
215         'static_longdouble_alignas'.
216
217 2011-11-22  Jim Meyering  <meyering@redhat.com>
218
219         init.sh: make "compare /dev/null FILE" output more readable
220         * tests/init.sh (compare_): Document the preferred order of arguments.
221         (emit_diff_u_header_): New function.
222         (compare_dev_null_): Emit a simulated diff, rather than just the
223         contents of the unexpected file.  Suggestion from Bruno Haible.
224
225 2011-11-21  Jim Meyering  <meyering@redhat.com>
226             Eric Blake  <eblake@redhat.com>
227
228         init.sh: work around OSF/1 5.1's mishandling of /dev/null
229         * tests/init.sh: Make our compare function slightly more portable.
230         Reported by Bruno Haible in
231         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
232
233 2011-11-21  Simon Josefsson  <simon@josefsson.org>
234
235         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
236         before using it, in code that ends up in config.h.
237
238 2011-11-20  Bruno Haible  <bruno@clisp.org>
239
240         getcwd: Work around getcwd bug on AIX 5..7.
241         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
242         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
243         Use a different value for gl_cv_func_getcwd_path_max. Move the
244         definition of HAVE_PARTLY_WORKING_GETCWD from here...
245         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
246         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
247         Define HAVE_MINIMALLY_WORKING_GETCWD.
248         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
249         where it is not even minimally working, that is, on AIX.
250         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
251         m4/getcwd-path-max.m4.
252         (main): Update exit code computation.
253         * doc/posix-functions/getcwd.texi: Mention list of platforms where
254         getcwd does not handle long file names.
255
256 2011-11-20  Bruno Haible  <bruno@clisp.org>
257
258         getcwd: Fix bug from 2009-09-10.
259         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
260         like "no".
261
262 2011-11-20  Simon Josefsson  <simon@josefsson.org>
263
264         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
265
266 2011-11-20  Bruno Haible  <bruno@clisp.org>
267
268         fma tests: Avoid shadowing local variables.
269         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
270         expected.
271
272 2011-11-20  Bruno Haible  <bruno@clisp.org>
273
274         copysignf tests: Fix.
275         * tests/test-copysignf.c: Fix signature check.
276
277 2011-11-20  Bruno Haible  <bruno@clisp.org>
278
279         fma: Remove unused code.
280         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
281         unused macros.
282
283 2011-11-20  Bruno Haible  <bruno@clisp.org>
284
285         sethostname: Fix doc about AIX.
286         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
287         sethostname; it has it.
288
289         sethostname: Mention more portability problems.
290         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
291         problem.
292         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
293
294 2011-11-19  Bruno Haible  <bruno@clisp.org>
295
296         Depend on module fcntl-h when AT_FDCWD is used.
297         * modules/utimens (Depends-on): Add fcntl-h.
298         * modules/areadlinkat (Depends-on): Likewise.
299         * modules/areadlinkat-with-size (Depends-on): Likewise.
300         * modules/faccessat (Depends-on): Likewise.
301         * modules/fchmodat (Depends-on): Likewise.
302         * modules/fchownat (Depends-on): Likewise.
303         * modules/getcwd (Depends-on): Likewise.
304         * modules/mkdirat (Depends-on): Likewise.
305         * modules/mkfifoat (Depends-on): Likewise.
306         * modules/readlinkat (Depends-on): Likewise.
307         * modules/symlinkat (Depends-on): Likewise.
308         * modules/dup2-tests (Depends-on): Likewise.
309         * modules/fdutimensat-tests (Depends-on): Likewise.
310         * modules/futimens-tests (Depends-on): Likewise.
311
312 2011-11-19  Bruno Haible  <bruno@clisp.org>
313
314         euidaccess: Update a comment.
315         * lib/euidaccess.c: Update comment about platforms with faccessat.
316
317 2011-11-19  Bruno Haible  <bruno@clisp.org>
318
319         openat: Fix file list.
320         * modules/openat (Files): Remove lib/at-func.c.
321
322 2011-11-19  Bruno Haible  <bruno@clisp.org>
323
324         fstatat: Simplify.
325         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
326         gnulib should define rpl_fstatat, there is a
327         "#define fstatat rpl_fstatat" in <sys/stat.h>.
328
329 2011-11-19  Bruno Haible  <bruno@clisp.org>
330
331         Ensure 'inline' can be used in tests/test-utimens-common.h.
332         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
333         * modules/futimens-tests (configure.ac): Likewise.
334         * modules/utimens-tests (configure.ac): Likewise.
335         * modules/utimensat-tests (configure.ac): Likewise.
336
337 2011-11-19  Simon Josefsson  <simon@josefsson.org>
338
339         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
340         not hash_insert0.
341         (hash_insert_if_absent): Doc fix.
342
343 2011-11-19  Simon Josefsson  <simon@josefsson.org>
344
345         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
346
347 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
348
349         test-getcwd: disambiguate exit status
350         * tests/test-getcwd.c (test_long_name): Return 0..7.
351         (main): Exit with an unambiguous exit status.  The old
352         code yielded a mysterious mixture of two failure codes.
353
354         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
355         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
356         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
357         rpl_fstatat or fstatat.  This should fix the other problem
358         reported by Kai Habel in
359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
360         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
362         and I reproduced it on a Solaris 8 host we still have in production.
363
364 2011-11-18  Jim Meyering  <meyering@redhat.com>
365
366         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
367         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
368         Add a sentence to the comment.
369         (hash_insert0): New function that simply calls hash_insert_if_absent.
370         * lib/hash.h (hash_insert_if_absent): Declare it.
371         (hash_insert0): Add deprecation attribute.
372         (_GL_ATTRIBUTE_DEPRECATED): Define.
373         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
374         not hash_insert0.
375         * NEWS: Mention it, even though it's not really an incompatible change.
376
377 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
378
379         openat: avoid compilation failure due to lack of <errno.h> inclusion
380         * lib/openat.c: Include <errno.h>.
381
382 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
383
384         * modules/getcwd (Depends-on): Add fdopendir.
385         This fixes one of the two problems reported by Kai Habel in
386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
387
388         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
389         stdalign problem reported by Ian Beckwith in
390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
391         * modules/crypto/gc-arcfour (Depends-on):
392         Depend conditionally on crypto/arcfour.
393         * modules/crypto/gc-arctwo (Depends-on):
394         Depend conditionally on crypto/arctwo.
395         * modules/crypto/gc-des (Depends-on):
396         Depend conditionally on crypto/des.
397         * modules/crypto/gc-hmac-md5 (Depends-on):
398         Depend conditionally on crypto/hmac-md5.
399         * modules/crypto/gc-hmac-sha1 (Depends-on):
400         Depend conditionally on crypto/hmac-sha1.
401         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
402         * modules/crypto/gc-md4 (Depends-on):
403         Depend conditionally on crypto/md4.
404         * modules/crypto/gc-md5 (Depends-on):
405         Depend conditionally on crypto/md5.
406         * modules/crypto/gc-rijndael (Depends-on):
407         Depend conditionally on crypto/rijndael.
408         * modules/crypto/gc-sha1 (Depends-on):
409         Depend conditionally on crypto/sha1.
410         * modules/crypto/gc-arcfour:
411         * modules/crypto/gc-arctwo:
412         * modules/crypto/gc-des:
413         * modules/crypto/gc-hmac-md5:
414         * modules/crypto/gc-hmac-sha1:
415         * modules/crypto/gc-md2:
416         * modules/crypto/gc-md4:
417         * modules/crypto/gc-md5:
418         * modules/crypto/gc-rijndael:
419         * modules/crypto/gc-sha1:
420         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
421         now that the conditional dependencies do the work for us.
422
423 2011-11-17  Jim Meyering  <meyering@redhat.com>
424
425         tests: factor st_ctime-comparison out of two headers
426         * tests/test-utimens-common.h (ctime_compare): Define.
427         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
428         * tests/test-lutimens.h (test_lutimens): Likewise.
429         * tests/test-utimens.h (test_utimens): Likewise.
430
431         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
432         Invoke the test program via an init.sh-using wrapper.
433         * tests/test-getcwd.sh: New file.
434         * modules/getcwd-tests (Files): Add it.
435         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
436
437 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
438
439         gitlog-to-changelog: support multi-author commits.
440         The FSF cares about keeping track of all authors of patches to its
441         projects, but Git doesn't provide obvious support for multi-author
442         changesets. Consensus seems to be forming around the use of extra
443         Signed-off-by inspired lines in the log message formatted as
444         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
445         multi-author commits between version control systems.
446         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
447         log message and output in standard ChangeLog multi-author format.
448         Reported by Peter Rosin <peda@lysator.liu.se>
449
450 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
451             Bruno Haible  <bruno@clisp.org>
452
453         Fix some modules' file list.
454         * modules/fstatat (Files): Add m4/lstat.m4.
455         * modules/openat (Files): Likewise.
456         * modules/unlinkat (Files): Likewise.
457
458 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
459
460         maint.mk: fix tight-scope.mk generation in VPATH builds.
461         * top/maint.mk (tight-scope.mk): Make sure to prefix file
462         reference with $(srcdir) so that the file is found correctly even
463         when running `make syntax-check' in a VPATH build.
464
465 2011-11-13  Bruno Haible  <bruno@clisp.org>
466             Jim Meyering  <meyering@redhat.com>
467
468         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
469         * tests/init.sh (compare): Remove "No differences encountered" or
470         synonymous output from the 'diff' program.
471
472 2011-11-13  Bruno Haible  <bruno@clisp.org>
473
474         Makefile: Tweak indentation.
475         * Makefile: Use tab as first character in every line that contains rule
476         commands.
477
478 2011-11-13  Bruno Haible  <bruno@clisp.org>
479
480         Syntax check for copyright statements.
481         * check-copyright: New file.
482         * Makefile (sc_check_copyright): New rule.
483
484 2011-11-13  Simon Josefsson  <simon@josefsson.org>
485
486         * build-aux/git-version-gen: Add --prefix to configure the tag
487         match string.
488
489 2011-11-13  Simon Josefsson  <simon@josefsson.org>
490
491         * build-aux/git-version-gen: Add --help and --version.
492
493 2011-11-12  Jim Meyering  <meyering@redhat.com>
494
495         revamp the other test-exclude?.sh scripts to use init.sh, too
496         * tests/test-exclude1.sh: Use init.sh.
497         * tests/test-exclude2.sh: Likewise.
498         * tests/test-exclude3.sh: Likewise.
499         * tests/test-exclude4.sh: Likewise.
500         * tests/test-exclude5.sh: Likewise.
501         * tests/test-exclude6.sh: Likewise.
502         * tests/test-exclude7.sh: Likewise.
503         * tests/test-exclude8.sh: Likewise.
504         * modules/exclude-tests (Files): List init.sh.
505
506         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
507         These shell scripts ignored failure of the binary test-exclude,
508         so making the latter return 77 didn't cause them to be skipped.
509         * tests/test-exclude5.sh: Exit with test-exclude's error status
510         when that program fails.  Revamp to use init.sh.
511         * tests/test-exclude2.sh: Likewise.
512
513         test-exclude: fix a typo
514         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
515
516 2011-11-11  Bruno Haible  <bruno@clisp.org>
517
518         obstack: Fix compilation error on MSVC 9.
519         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
520
521 2011-11-11  Jim Meyering  <meyering@redhat.com>
522
523         test-exclude: skip tests rather than failing on deficient systems
524         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
525         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
526         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
527         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
528
529 2011-11-10  Bruno Haible  <bruno@clisp.org>
530
531         ptsname_r test: Avoid gcc warning on glibc systems.
532         * tests/test-ptsname_r.c (null_ptr): New function.
533         (test_errors): Use it.
534
535 2011-11-10  Bruno Haible  <bruno@clisp.org>
536
537         ptsname_r: Avoid compilation error on OSF/1 5.1.
538         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
540         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
541         function is not declared or incompatibly declared.
542         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
543         * modules/ptsname_r (Depends-on, configure.ac): Update.
544         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
545
546 2011-11-10  Bruno Haible  <bruno@clisp.org>
547
548         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
549         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
550         When cross-compiling, guess yes on all platforms except AIX.
551         Reported by Ludovic Courtès <ludo@gnu.org>.
552
553 2011-11-09  Bruno Haible  <bruno@clisp.org>
554
555         ptsname_r tests: Fix bugs.
556         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
557         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
558
559 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
560
561         fstatat: work with cross-compilation
562         Problem reported by Ludovic Courtès in
563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
564         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
565         "cross-compiling" and assume the bug is present.  Replace
566         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
567         an inverted sense, to be more conservative about our assumptions.
568         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
569
570 2011-11-09  Bruno Haible  <bruno@clisp.org>
571
572         Improve MODULES.html output.
573         * modules/mkfifoat (Description): Use the word "function".
574         * modules/readlinkat (Description): Likewise.
575         * modules/symlinkat (Description): Likewise.
576
577 2011-11-09  Eric Blake  <eblake@redhat.com>
578
579         ptsname_r-tests: new test module
580         * modules/ptsname_r-tests: New module.
581         * tests/test-ptsname_r.c: New file.
582
583         ptsname_r: new module
584         * modules/ptsname_r: New module.
585         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
586         * lib/ptsname.c (__ptsname_r): Split...
587         * lib/ptsname_r.c: ...into new file.
588         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
589         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
590         * modules/stdlib (Makefile.am): Substitute witnesses.
591         * lib/stdlib.in.h (ptsname_r): Declare it.
592         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
593         * MODULES.html.sh (Misc): Likewise.
594         * modules/ptsname (Depends-on): Alter dependency.
595         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
596
597 2011-11-09  Jim Meyering  <meyering@redhat.com>
598
599         announce-gen: be more concise when there's only one URL+tarball
600         * build-aux/announce-gen (get_tool_versions): When you distribute
601         only one type of tarball, combine the first two "Here are..."
602         sections and make the key-checking grammar independent of
603         how many tarballs there are.
604
605 2011-11-09  Eric Blake  <eblake@redhat.com>
606
607         openpty: provide a stub on mingw
608         * lib/pty.in.h (includes): Provide forward declarations.
609         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
610
611         raise: fix mingw handling of SIGPIPE
612         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
613
614 2011-11-08  Bruno Haible  <bruno@clisp.org>
615
616         More conditional dependencies.
617         * modules/faccessat (Depends-on): Add conditions.
618         * modules/fchmodat (Depends-on): Likewise.
619         * modules/fchownat (Depends-on): Likewise.
620         * modules/fstatat (Depends-on): Likewise.
621         * modules/mkfifoat (Depends-on): Likewise.
622         * modules/readlinkat (Depends-on): Likewise.
623         * modules/symlinkat (Depends-on): Likewise.
624         * modules/unlinkat (Depends-on): Likewise.
625         * modules/utimensat (Depends-on): Likewise.
626         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
627         * modules/linkat (Depends-on): Refine the conditions.
628         * modules/renameat (Depends-on): Likewise.
629
630 2011-11-08  Bruno Haible  <bruno@clisp.org>
631
632         faccessat: Move AC_LIBOBJ invocation to module description.
633         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
634         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
635         invocation from here...
636         * modules/faccessat (configure.ac): ... to here. Invoke
637         gl_PREREQ_FACCESSAT.
638
639 2011-11-08  Bruno Haible  <bruno@clisp.org>
640
641         faccessat: Simplify autoconf macro.
642         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
643         gl_FUNC_EUIDACCESS.
644
645 2011-11-08  Bruno Haible  <bruno@clisp.org>
646
647         renameat: Fix dependencies.
648         * modules/renameat (Depends-on): Add stdbool.
649
650 2011-11-08  Bruno Haible  <bruno@clisp.org>
651
652         mkfifoat: Fix module description.
653         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
654         not gl_UNISTD_MODULE_INDICATOR.
655
656 2011-11-08  Bruno Haible  <bruno@clisp.org>
657
658         fstatat: Remove unused dependency.
659         * modules/fstatat (Depends-on): Remove fstat.
660
661 2011-11-08  Simon Josefsson  <simon@josefsson.org>
662
663         GNUmakefile: behave when Makefile is missing.
664         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
665
666 2011-11-08  Bruno Haible  <bruno@clisp.org>
667
668         openat: Conditionalize dependencies.
669         * lib/openat.c: Reduce the scope of some #includes.
670         * modules/openat (Depends-on): Add conditions.
671
672 2011-11-07  Jim Meyering  <meyering@redhat.com>
673
674         maint.mk: extract GPG key ID without using a temporary file
675         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
676         without using a temporary file.  Based on a suggestion from Werner Koch
677         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
678
679 2011-11-07  Eric Blake  <eblake@redhat.com>
680
681         grantpt: fix typo
682         * lib/stdlib.in.h (grantpt): Check correct function.
683
684         maint.mk: silence new syntax check
685         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
686
687 2011-11-06  Bruno Haible  <bruno@clisp.org>
688
689         Doc about floating-point and math API.
690         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
691         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
692
693 2011-11-06  Bruno Haible  <bruno@clisp.org>
694
695         stdalign tests: Skip the test when compiled by Sun C.
696         * tests/test-stdalign.c (main): Skip the test on Sun C.
697
698 2011-11-06  Bruno Haible  <bruno@clisp.org>
699
700         ansi-c++-opt: Complete the 2011-06-05 change.
701         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
702         does not support namespaces, set the variable to "no", not to ":".
703
704 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
705
706         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
707
708 2011-11-06  Bruno Haible  <bruno@clisp.org>
709
710         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
711         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
712         (minus_zerol) [HP-UX]: New macro.
713         (unary_minus) [HP-UX]: New function.
714         (copysignl) [HP-UX]: Use unary_minus function.
715
716 2011-11-06  Bruno Haible  <bruno@clisp.org>
717
718         ldexp, ldexpf, ldexpl: Enhance tests.
719         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
720         and tests/test-ldexpl.c.
721         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
722         LDEXP, MIN_EXP, MAX_EXP): New macros.
723         Include test-ldexp.h.
724         (main): Just call test_function.
725         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
726         infinity.h, nan.h.
727         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
728         MAX_EXP): New macros.
729         Include test-ldexp.h.
730         (x, y): Remove variables.
731         (main): Just call test_function.
732         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
733         infinity.h, nan.h.
734         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
735         MAX_EXP): New macros.
736         Include test-ldexp.h.
737         (x, y): Remove variables.
738         (main): Just call test_function.
739         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
740         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
741         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
742         (Depends-on): Add isnand-nolibm, signbit, float.
743         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
744         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
745         (Depends-on): Add isnanf-nolibm, signbit, float.
746
747 2011-11-06  Bruno Haible  <bruno@clisp.org>
748
749         math tests: Cosmetics.
750         * tests/test-math-c++.cc: Reorder declarations.
751
752 2011-11-05  Bruno Haible  <bruno@clisp.org>
753
754         fma*: Simplify test.
755         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
756         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
757
758         Tests for module 'fmal'.
759         * modules/fmal-tests: New file.
760         * tests/test-fmal1.c: New file.
761         * tests/test-fmal2.c: New file.
762
763         New module 'fmal'.
764         * lib/math.in.h (fmal): New declaration.
765         * lib/fmal.c: New file.
766         * m4/fmal.m4: New file.
767         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
769         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
770         REPLACE_FMAL.
771         * modules/fmal: New file.
772         * doc/posix-functions/fmal.texi: Mention the new module and the various
773         bugs.
774
775         Tests for module 'fmaf'.
776         * modules/fmaf-tests: New file.
777         * tests/test-fmaf1.c: New file.
778         * tests/test-fmaf2.c: New file.
779
780         New module 'fmaf'.
781         * lib/math.in.h (fmaf): New declaration.
782         * lib/fmaf.c: New file.
783         * m4/fmaf.m4: New file.
784         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
786         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
787         REPLACE_FMAF.
788         * modules/fmaf: New file.
789         * doc/posix-functions/fmaf.texi: Mention the new module and the various
790         bugs.
791
792         Tests for module 'fma'.
793         * modules/fma-tests: New file.
794         * tests/test-fma1.c: New file.
795         * tests/test-fma1.h: New file.
796         * tests/test-fma2.c: New file.
797         * tests/test-fma2.h: New file.
798
799         New module 'fma'.
800         * lib/math.in.h (fma): New declaration.
801         * lib/fma.c: New file.
802         * m4/fma.m4: New file.
803         * m4/fegetround.m4: New file.
804         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
806         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
807         REPLACE_FMA.
808         * modules/fma: New file.
809         * doc/posix-functions/fma.texi: Mention the new module and the various
810         bugs.
811
812         Extend gl_MATHFUNC.
813         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
814         Support 'void' as argument type.
815         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
816
817 2011-11-05  Jim Meyering  <meyering@redhat.com>
818
819         maint.mk: also prohibit inclusion of dirent.h without use
820         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
821
822 2011-11-05  Bruno Haible  <bruno@clisp.org>
823
824         ldexpl tests: Avoid test failure on MSVC 9.
825         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
826         value. Needed in order to enforce the conversion from a value greater
827         than LDBL_MAX to Infinity.
828
829 2011-11-05  Bruno Haible  <bruno@clisp.org>
830
831         New modules 'at-internal', 'openat-h', split off from module 'openat'.
832         * modules/at-internal: New file, extracted from modules/openat.
833         * modules/openat-h: New file.
834         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
835         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
836         * modules/openat (Description): Add reference to POSIX function.
837         (Files): Remove lib/openat.h, lib/openat-proc.c.
838         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
839         intprops, unistd.
840         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
841         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
842         gl_FCNTL_MODULE_INDICATOR.
843         (Include): Remove unistd.h, openat.h.
844         * modules/areadlinkat (Files): Add lib/at-func.c.
845         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
846         openat-die, openat-h, save-cwd.
847         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
848         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
849         openat-die, openat-h, save-cwd, unistd.
850         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
851         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
852         openat-h, save-cwd. Remove fcntl-h, openat.
853         * modules/fchmodat (Files): Remove lib/openat.h.
854         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
855         openat, stdbool, unistd.
856         * modules/fchownat (Files): Remove lib/openat.h.
857         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
858         openat, stdbool, sys_stat.
859         * modules/fdopendir (Files): Remove lib/openat-priv.h,
860         lib/openat-proc.c.
861         (Depends-on): Add at-internal.
862         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
863         * modules/fstatat (Files): Remove lib/openat.h.
864         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
865         stdbool, unistd.
866         * modules/fts (Depends-on): Add openat-h.
867         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
868         openat.
869         * modules/mkdirat (Files): Remove lib/openat.h.
870         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
871         openat, stdbool, sys_stat.
872         * modules/mkfifoat (Files): Add lib/at-func.c.
873         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
874         openat-h, save-cwd. Remove fcntl-h, openat.
875         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
876         * modules/readlinkat (Files): Add lib/at-func.c.
877         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
878         openat-h, save-cwd. Remove fcntl-h, openat.
879         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
880         openat.
881         * modules/selinux-at (Files): Add lib/at-func.c.
882         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
883         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
884         * modules/symlinkat (Files): Add lib/at-func.c.
885         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
886         openat-h, save-cwd. Remove fcntl-h, openat.
887         * modules/unlinkat (Files): Remove lib/openat.h.
888         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
889         stdbool.
890         * modules/utimensat (Files): Add lib/at-func.c.
891         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
892         openat-die, openat-h, save-cwd.
893         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
894         * modules/fdutimensat-tests (Depends-on): Add openat.
895         * modules/fstatat-tests (Depends-on): Add openat-h.
896         * modules/readlinkat-tests (Depends-on): Add openat.
897         * modules/symlinkat-tests (Depends-on): Add openat.
898
899 2011-11-05  Bruno Haible  <bruno@clisp.org>
900
901         openat: Include <stdbool.h>.
902         * lib/openat.c: Include <stdbool.h>.
903
904 2011-11-04  Bruno Haible  <bruno@clisp.org>
905
906         fchownat, renameat, unlinkat: Fix dependencies.
907         * modules/fchownat (Depends-on): Add fstatat.
908         * modules/renameat (Depends-on): Likewise.
909         * modules/unlinkat (Depends-on): Likewise.
910
911 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
912
913         openat: remove direct dependency on dirent
914         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
915         and hasn't been needed ever since fdopendir was split into its own
916         module on 2009-08-31.
917         * modules/openat (Depends-on): Remove dirent.
918
919 2011-11-04  Bruno Haible  <bruno@clisp.org>
920
921         renameat: Optimize code size.
922         * modules/renameat (configure.ac): Don't compile at-func2.c if
923         REPLACE_RENAMEAT is 1.
924
925 2011-11-04  Bruno Haible  <bruno@clisp.org>
926
927         openat tests: Fix file list.
928         * modules/openat-tests (Files): Add tests/test-open.h.
929
930 2011-11-04  Bruno Haible  <bruno@clisp.org>
931
932         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
933         * modules/fchmodat (Depends-on): Add openat-die.
934         * modules/fchownat (Depends-on): Likewise.
935         * modules/linkat (Depends-on): Likewise.
936         * modules/renameat (Depends-on): Likewise.
937         * modules/openat (Depends-on): Add dirent.
938
939 2011-11-04  Jim Meyering  <meyering@redhat.com>
940
941         at-func*.c: fix comments
942         * lib/at-func2.c: Correct/improve first-line comment.
943         * lib/at-func.c: Correct grammar in first-line comment.
944
945 2011-11-04  Bruno Haible  <bruno@clisp.org>
946
947         New module 'mkdirat', split off from module 'openat'.
948         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
949         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
950         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
951         * modules/mkdirat: New file, extracted from modules/openat.
952         * modules/openat (Files): Remove lib/mkdirat.c.
953         (Depends-on): Remove mkdir.
954         (configure.ac): Remove AC_LIBOBJ of mkdirat.
955         (Include): Remove <sys/stat.h>.
956         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
957         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
958         tests/test-mkdir.h.
959         (Depends-on): Remove ignore-value.
960         (Makefile.am): Remove rules for test-mkdirat.
961         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
962         of module 'openat'.
963         * NEWS: Mention the change.
964
965 2011-11-04  Bruno Haible  <bruno@clisp.org>
966
967         closedir: Avoid warning on mingw.
968         * lib/closedir.c: Include <unistd.h>.
969
970 2011-11-04  Bruno Haible  <bruno@clisp.org>
971
972         New module 'fstatat', split off from module 'openat'.
973         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
974         defined.
975         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
976         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
977         gl_FUNC_FSTATAT.
978         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
979         * modules/fstatat: New file, extracted from modules/openat.
980         * modules/openat (Files): Remove lib/fstatat.c.
981         (Depends-on): Remove lstat.
982         (configure.ac): Remove AC_LIBOBJ of fstatat.
983         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
984         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
985         tests/test-lstat.h, tests/test-stat.h.
986         (Depends-on): Remove getcwd-lgpl.
987         (Makefile.am): Remove rules for test-fstatat.
988         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
989         of module 'openat'.
990         * NEWS: Mention the change.
991         * modules/getcwd (Depends-on): Add fstatat.
992         * modules/linkat (Depends-on): Likewise.
993         * modules/mkfifoat-tests (Depends-on): Likewise.
994         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
995
996 2011-11-03  Bruno Haible  <bruno@clisp.org>
997
998         New module 'unlinkat', split off from module 'openat'.
999         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1000         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1001         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1002         * modules/unlinkat: New file, extracted from modules/openat. Correct
1003         the dependency conditions.
1004         * modules/openat (Files): Remove lib/unlinkat.c.
1005         (Depends-on): Remove rmdir, unlink.
1006         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1007         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1008         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1009         tests/test-rmdir.h, tests/test-unlink.h.
1010         (Depends-on): Remove unlinkdir.
1011         (Makefile.am): Remove rules for test-unlinkat.
1012         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1013         of module 'openat'.
1014         * NEWS: Mention the change.
1015         * modules/linkat-tests (Depends-on): Add unlinkat.
1016         * modules/mkfifoat-tests (Depends-on): Likewise.
1017         * modules/readlinkat-tests (Depends-on): Likewise.
1018
1019 2011-11-02  Bruno Haible  <bruno@clisp.org>
1020
1021         New module 'fchmodat', split off from module 'openat'.
1022         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1023         defined.
1024         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1025         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1026         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1027         * modules/fchmodat: New file, extracted from modules/openat.
1028         * modules/openat (Files): Remove lib/fchmodat.c.
1029         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1030         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1031         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1032         (Makefile.am): Remove rules for test-fchmodat.
1033         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1034         of module 'openat'.
1035         * NEWS: Mention the change.
1036
1037 2011-11-02  Jim Meyering  <meyering@redhat.com>
1038
1039         putenv: indent #definition of "environ" to placate cppi
1040         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1041
1042         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1043         Git logs are often treated as immutable, because editing them
1044         changes the SHA1 checksums of all descendants.  Thus, errors in
1045         git logs tend to stay there forever.  However, when we generate
1046         a ChangeLog file -- typically for distribution -- from that git log,
1047         we can actually make corrections in the generated file.  The key
1048         lies in recording in machine-readable/applicable form the desired
1049         corrections.  See --help for description and an example.
1050         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1051         (usage): Describe it; alphabetize option descriptions.
1052         (main): Honor the new option, carefully.
1053
1054 2011-11-01  Jim Meyering  <meyering@redhat.com>
1055
1056         gitlog-to-changelog: avoid an infloop
1057         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1058         that ends up being empty.
1059
1060 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1061
1062         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1063         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1064         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1065         contains (possibly-quoted) backslashes.  This should avoid
1066         all-too-common shell bugs if COMPLICATED contains backslashes in
1067         the "wrong" places.  Reported by David Evans in
1068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1069         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1070         because we want ASCII ranges.  Is there some reason we don't use
1071         the C locale everywhere in this script?
1072         (func_module, top level): Avoid unwanted pathname expansion when
1073         $repo_url_prefix or $repo_url_suffix_repl contain shell
1074         metacharacters like '?' and '*'.
1075
1076 2011-11-01  Bruno Haible  <bruno@clisp.org>
1077
1078         fchownat: Improve description.
1079         * modules/fchownat (Description): Add link to function.
1080
1081 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1082
1083         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1084         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1086         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1087
1088 2011-11-01  Bruno Haible  <bruno@clisp.org>
1089
1090         alignof: Avoid collision with stdalign module.
1091         * lib/alignof.h (alignof): Remove macro.
1092         * NEWS: Mention the change.
1093         Reported by Paul Eggert.
1094
1095 2011-11-01  Bruno Haible  <bruno@clisp.org>
1096
1097         New module 'fchownat', split off from module 'openat'.
1098         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1099         defined.
1100         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1101         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1102         invoke gl_FUNC_FCHOWNAT.
1103         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1104         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1105         * modules/fchownat: New file, extracted from modules/openat.
1106         * modules/openat (Files): Remove lib/fchownat.c.
1107         (Depends-on): Remove lchown.
1108         (configure.ac): Remove AC_LIBOBJ of fchownat.
1109         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1110         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1111         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1112         (Depends-on): Remove mgetgroups, usleep, stat-time.
1113         (configure.ac): Remove test for getegid.
1114         (Makefile.am): Remove rules for test-fchownat.
1115         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1116         of module 'openat'.
1117         * NEWS: Mention the change.
1118
1119 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1120
1121         stdalign: port better to MSVC and to Sun C 5.11
1122         This fixes some of the problems reported by Bruno Haible in
1123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1124         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1125         shortcomings of MSVC and of Sun C 5.11.
1126         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1127         around __declspec arg.
1128         * modules/stdalign-tests (Files): Add tests/macros.h.
1129         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1130         Include macros.h, for ASSERT.
1131         (DECLARE_ALIGNED): Remove.
1132         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1133         to catch bug), and to 1 if not (simplifies the rest of the code).
1134         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1135         (CHECK_AUTO): Remove.
1136         (CHECK_ALIGNED): Check only the alignment of the static vars,
1137         since auto var alignment isn't supported by Sun C 5.11.
1138         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1139         ASSERT failures are easier to diagnose.
1140
1141 2011-10-31  Bruno Haible  <bruno@clisp.org>
1142
1143         doc about some IRIX 5.3 problems.
1144         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1145         on IRIX 5.3.
1146         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1147         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1148         5.3.
1149         * doc/posix-functions/grantpt.texi: Likewise.
1150         * doc/posix-functions/unlockpt.texi: Likewise.
1151         * doc/posix-functions/lgamma.texi: Likewise.
1152         * doc/posix-functions/nextafter.texi: Likewise.
1153         * doc/posix-functions/remainder.texi: Likewise.
1154         * doc/posix-functions/select.texi: Mention misplaced declaration on
1155         IRIX 5.3.
1156         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1157
1158 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1159
1160         gitlog-to-changelog: fix git-log invocation.
1161         git-log mishandles date strings before 1970-01-01 UTC, and there is
1162         no use to specify --since=1970-01-01 by default anyway.
1163         * build-aux/gitlog-to-changelog: By default, when no --since option
1164         was given, do not specify explicit --since option to git-log.
1165
1166 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1167
1168         gitlog-to-changelog: new option --append-dot.
1169         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1170         first non-blank line of each commit message terminated with a dot.
1171
1172 2011-10-30  Bruno Haible  <bruno@clisp.org>
1173
1174         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1175         * lib/ffsl.h: Include <config.h>.
1176         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1177
1178 2011-10-30  Jim Meyering  <meyering@redhat.com>
1179
1180         GNUmakefile: reenable "make syntax-check" for most projects
1181         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1182         build-aux variable", "syntax-check" would do nothing but succeed with
1183         the "No version control files detected..." diagnostic (unless you
1184         happened to override _build-aux via cfg.mk).
1185         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1186         to precede inclusion of maint.mk.  Otherwise, these variables would
1187         be used undefined in any project that does not override the default.
1188
1189 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1190
1191         gitlog-to-changelog: treat a message with only blank lines as empty.
1192         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1193         trailing blank lines before the code that issues a warning about an
1194         empty commit message.
1195
1196 2011-10-30  Jim Meyering  <meyering@redhat.com>
1197
1198         test-parse-datetime.c: avoid new DST-related false positive test failure
1199         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1200         based on the time/date we'll convert, not the current time.
1201         Otherwise, the moment we cross a DST boundary like today's in
1202         Europe, (CEST to CET), that offset ends up being one hour off.
1203
1204 2011-10-27  Bruno Haible  <bruno@clisp.org>
1205
1206         fstat: Tweak documentation.
1207         * modules/fstat (Description): More precise description.
1208
1209 2011-10-27  Bruno Haible  <bruno@clisp.org>
1210
1211         Update documentation regarding 'largefile' module.
1212         * doc/posix-functions/fstat.texi: Tweak wording.
1213         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1214         problems with huge directories and/or small ino_t types.
1215         * doc/posix-functions/readdir.texi: Likewise.
1216         * doc/posix-functions/rewinddir.texi: Likewise.
1217
1218 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1219
1220         maint.mk: don't maintain a second build-aux variable.
1221         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1222         depends on GNUmakefile, which already maintains a cfg.mk
1223         overridable $(_build-aux) for projects with a non-standard
1224         build-aux directory location, although without the $(srcdir)
1225         prefix.  Use that variable consistently instead of introducing a
1226         second one.  Adjust all call sites.
1227
1228 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1229
1230         Add stdalign module and use it in other modules.
1231         This is based on a previous proposal by Bruno Haible
1232         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1233
1234         stdalign: new module
1235         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1236         * modules/stdalign: New files.
1237         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1238         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1239
1240         stdalign-tests: new module
1241         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1242
1243         argp: use stdalign
1244         * lib/argp-parse.c: Include <stdalign.h>.
1245         (alignof): Remove.
1246         * modules/argp (Depends-on): Add stdalign.
1247
1248         crypto libraries: use stdalign
1249         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1250         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1251         Do not include <stdlib.h> twice, in md4.c.
1252         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1253         because we are accessing a pointer's bit-pattern, not a size.
1254         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1255         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1256         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1257         * modules/crypto/sha512: Likewise.
1258
1259         sys_socket: use stdalign, not alignof
1260         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1261         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1262
1263 2011-10-27  Bruno Haible  <bruno@clisp.org>
1264
1265         raise test: Avoid a test failure on Linux/MIPS.
1266         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1267         because 99 is a valid signal on Linux/MIPS.
1268
1269 2011-10-27  Bruno Haible  <bruno@clisp.org>
1270
1271         nonblocking tests: Fix test failure on Linux/MIPS.
1272         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1273         Set to 270000.
1274
1275 2011-10-27  Bruno Haible  <bruno@clisp.org>
1276
1277         utimensat: Work around problem on Linux/hppa.
1278         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1279         values.
1280         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1281
1282 2011-10-25  Jim Meyering  <meyering@redhat.com>
1283
1284         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1285         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1286         after symbols like NULL, size_t, etc.
1287         Reported by Alfred M. Szmidt.
1288
1289         maint.mk: exempt ENODATA from a syntax-check rule
1290         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1291         from the sc_prohibit_always-defined_macros syntax-check rule.
1292         Add a comment.  See this for more details:
1293         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1294
1295 2011-10-23  Jim Meyering  <meyering@redhat.com>
1296
1297         fts: close parent dir FD before returning from post-traversal fts_read
1298         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1299         unlink A, even though an FD open on A remained.  This is suboptimal
1300         (holding a file descriptor open longer than needed), but otherwise not
1301         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1302         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1303         that represents a real problem: it causes the removal of A to fail
1304         with e.g., "rm: cannot remove `A': Device or resource busy"
1305
1306         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1307         directory file descriptors.  After completing the final, FTS_DP,
1308         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1309         cache, but then proceeded to add a new FD to it via the subsequent
1310         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1311         final file descriptor would be closed only via fts_close's call to
1312         fd_ring_clear.  Now, it is usually closed earlier, via the final
1313         FTS_DP-returning fts_read call.
1314         * lib/fts.c (restore_initial_cwd): New function, converted from
1315         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1316         Update callers.
1317         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1318         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1319
1320 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1321             Bruno Haible  <bruno@clisp.org>
1322             Jim Meyering  <jim@meyering.net>
1323
1324         readme-release: improve safety of release prep instructions.
1325         * README-release: Don't git pull all branches when only master
1326         is needed for the release process.
1327         Run make maintainer-clean before changing trees and merging.
1328         Don't try to run ./configure right after git pull in case files
1329         that influence the bootstrap process have changed, move the
1330         ./configure step to after running ./bootstrap.
1331         Don't bootstrap "one last time"... it's the first time!
1332
1333 2011-10-22  Bruno Haible  <bruno@clisp.org>
1334
1335         errno, strerror-override: Support for MSVC 10.
1336         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1337         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1338         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1339         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1340         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1341         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1342         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1343         Assign values compatible with MSVC 10.
1344         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1345         New macros.
1346         (GNULIB_defined_EWINSOCK): New macro.
1347         * lib/strerror-override.c (strerror_override): Update accordingly.
1348         * lib/strerror-override.h: Likewise.
1349         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1350         longer equal to the corresponding errno value.
1351         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1352
1353 2011-10-22  Bruno Haible  <bruno@clisp.org>
1354
1355         perror: Recognize when test program crashes.
1356         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1357         strerror, set gl_cv_func_perror_works to no.
1358         Reported by Daniel Richard G. <skunk@iskunk.org>.
1359
1360         perror: Fix indentation.
1361         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1362
1363 2011-10-22  Bruno Haible  <bruno@clisp.org>
1364
1365         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1366         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1367         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1368         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1369         functions, not as a macro.
1370         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1371         macros.
1372         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1373         absence of macro.
1374         Suggested by Eric Blake.
1375         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1376
1377 2011-10-21  Bruno Haible  <bruno@clisp.org>
1378
1379         relocatable-prog-wrapper: Don't leave object files behind.
1380         * build-aux/install-reloc: Re-synchronize list of .o files to be
1381         removed with list of compilation units.
1382
1383 2011-10-20  Bruno Haible  <bruno@clisp.org>
1384
1385         openpty, posix_openpt: Remove code duplication.
1386         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1387         * lib/openpty.c: Include <stdlib.h>.
1388         (openpty): Use posix_openpt on all platforms except IRIX.
1389         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1390
1391 2011-10-20  Bruno Haible  <bruno@clisp.org>
1392
1393         unlockpt: Detect invalid argument.
1394         * lib/unlockpt.c: Include <fcntl.h>.
1395         (unlockpt): Check whether fd is valid, using fcntl().
1396         * modules/unlockpt (Depends-on): Add fcntl-h.
1397
1398 2011-10-20  Bruno Haible  <bruno@clisp.org>
1399
1400         openpty: Avoid compilation error on AIX 6.1.
1401         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1402
1403 2011-10-20  Bruno Haible  <bruno@clisp.org>
1404
1405         posix_openpt: Support for OpenBSD.
1406         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1407         (posix_openpt) [OpenBSD]: New code.
1408         * lib/grantpt.c: Include <fcntl.h>.
1409         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1410         * modules/grantpt (Depends-on): Add fcntl-h.
1411
1412 2011-10-20  Bruno Haible  <bruno@clisp.org>
1413
1414         posix_openpt test: Coding style.
1415         * tests/test-posix_openpt.c: Use GNU coding style.
1416
1417 2011-10-20  Bruno Haible  <bruno@clisp.org>
1418
1419         grantpt: Support --avoid=pt_chown.
1420         * modules/grantpt (Files): Add lib/pty-private.h.
1421
1422 2011-10-20  Bruno Haible  <bruno@clisp.org>
1423
1424         posix_openpt: Fix autoconf macro.
1425         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1426         unneeded check for _getpty.
1427
1428 2011-10-20  Bruno Haible  <bruno@clisp.org>
1429
1430         openpty: Update comments.
1431         * lib/openpty.c: Add comments about Minix.
1432
1433 2011-10-19  Eric Blake  <eblake@redhat.com>
1434
1435         openpty: relax license
1436         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1437
1438         pt_chown: use configmake to simplify build
1439         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1440
1441         ptsname and others: relax license
1442         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1443         * modules/unlockpt (License): Likewise.
1444         * modules/pt_chown (License): Likewise.
1445         * modules/ptsname (License): Likewise.
1446         * modules/ttyname_r (License): Likewise.
1447
1448 2011-10-19  Jim Meyering  <meyering@redhat.com>
1449
1450         posix_openpt: remove spurious #endif
1451         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1452
1453 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1454
1455         maint.mk: Respect $(build_aux) in web-manual rule.
1456         * top/maint.mk (web-manual): Find gen-announce script in user's
1457         $(build_aux) directory instead of hard-coding 'build-aux'.
1458
1459 2011-10-19  Bruno Haible  <bruno@clisp.org>
1460
1461         posix_openpt: Fix compilation error.
1462         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1463         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1464         Mention the openpty module as an alternative.
1465
1466 2011-10-19  Bruno Haible  <bruno@clisp.org>
1467
1468         Support for old NeXTstep 3.3 frexp().
1469         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1470         execution time of the test to 5 seconds.
1471         Reported by Daniel Richard G. <skunk@iskunk.org>.
1472
1473 2011-10-19  Bruno Haible  <bruno@clisp.org>
1474
1475         Support for old NeXTstep 3.3 sed.
1476         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1477         part, use /.../, not \|...|. Escape periods in the header file name.
1478         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1479         Reported by Daniel Richard G. <skunk@iskunk.org>.
1480
1481 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1482
1483         Support for old NeXTstep 3.3 gcc.
1484         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1485         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1486         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1487         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1488         * lib/regex.h (_Restrict_arr_): Likewise.
1489         * lib/regex_internal.h (re_token_t): Likewise.
1490         * lib/regexec.c (check_node_accept_bytes): Likewise.
1491         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1492
1493 2011-10-18  Eric Blake  <eblake@redhat.com>
1494
1495         posix_openpt: new module
1496         * modules/posix_openpt: New module.
1497         * m4/posix_openpt.m4: New file.
1498         * lib/posix_openpt.c: Likewise.
1499         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1500         (gl_STDLIB_H_DEFAULTS): Set defaults.
1501         * modules/stdlib (Makefile.am): Substitute macros.
1502         * lib/stdlib.in.h (posix_openpt): Declare.
1503         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1504         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1505         * modules/posix_openpt-tests: New test module.
1506         * tests/test-posix_openpt.c: New test.
1507
1508 2011-10-15  Bruno Haible  <bruno@clisp.org>
1509
1510         xstrtoll: Fix compilation failure.
1511         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1512         from lib/strtol.c.
1513         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1514         some platforms.
1515         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1516
1517 2011-10-15  Bruno Haible  <bruno@clisp.org>
1518
1519         vasnprintf: Optimize bit search operation.
1520         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1521         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1522         gl_DOUBLE_EXPONENT_LOCATION.
1523         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1524         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1525         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1526         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1527         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1528         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1529         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1530         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1531         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1532
1533 2011-10-15  Bruno Haible  <bruno@clisp.org>
1534
1535         vasnprintf: Fix comments.
1536         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1537
1538 2011-10-14  Bruno Haible  <bruno@clisp.org>
1539
1540         Tests for module 'integer_length_ll'.
1541         * modules/integer_length_ll-tests: New file.
1542         * tests/test-integer_length_ll.c: New file.
1543
1544         New module 'integer_length_ll'.
1545         * lib/integer_length_ll.c: New file.
1546         * modules/integer_length_ll: New file.
1547
1548 2011-10-14  Bruno Haible  <bruno@clisp.org>
1549
1550         Tests for module 'integer_length_l'.
1551         * modules/integer_length_l-tests: New file.
1552         * tests/test-integer_length_l.c: New file.
1553
1554         New module 'integer_length_l'.
1555         * lib/integer_length_l.c: New file.
1556         * modules/integer_length_l: New file.
1557
1558 2011-10-14  Bruno Haible  <bruno@clisp.org>
1559
1560         Tests for module 'integer_length'.
1561         * modules/integer_length-tests: New file.
1562         * tests/test-integer_length.c: New file.
1563
1564         New module 'integer_length'.
1565         * lib/integer_length.h: New file.
1566         * lib/integer_length.c: New file.
1567         * modules/integer_length: New file.
1568
1569 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1570
1571         popen: Fix dependency conditions.
1572         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1573
1574 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1575
1576         perror: Fix autoconf test.
1577         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1578         <stdlib.h> and <string.h>.
1579
1580 2011-10-14  Bruno Haible  <bruno@clisp.org>
1581
1582         ffsl: Optimize on 64-bit platforms.
1583         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1584         unrolling.
1585
1586 2011-10-13  Bruno Haible  <bruno@clisp.org>
1587
1588         ffsl: Optimize on 32-bit platforms.
1589         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1590         use ffs() without a loop.
1591
1592         ffsl, ffsll: Optimize for GCC.
1593         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1594         * lib/ffsl.c (GCC_BUILTIN): New macro.
1595         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1596
1597 2011-10-13  Bruno Haible  <bruno@clisp.org>
1598
1599         ffs, bcopy, memset: Support symbol renaming via config.h.
1600         * lib/ffs.c: Include <config.h>.
1601         * lib/bcopy.c: Likewise.
1602         * lib/memset.c: Likewise.
1603
1604 2011-10-10  Bruno Haible  <bruno@clisp.org>
1605
1606         atanl: Simplify for platforms where 'long double' == 'double'.
1607         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1608         alternative implementation.
1609         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1610         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1611         * modules/atanl (Depends-on): Add atan. Update conditions.
1612
1613 2011-10-10  Bruno Haible  <bruno@clisp.org>
1614
1615         acosl: Simplify for platforms where 'long double' == 'double'.
1616         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1617         alternative implementation.
1618         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1619         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1620         * modules/acosl (Depends-on): Add acos. Update conditions.
1621
1622 2011-10-10  Bruno Haible  <bruno@clisp.org>
1623
1624         asinl: Simplify for platforms where 'long double' == 'double'.
1625         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1626         alternative implementation.
1627         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1628         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1629         * modules/asinl (Depends-on): Add asin. Update conditions.
1630
1631 2011-10-10  Bruno Haible  <bruno@clisp.org>
1632
1633         tanl: Simplify for platforms where 'long double' == 'double'.
1634         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1635         implementation.
1636         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1637         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1638         * modules/tanl (Depends-on): Add tan. Update conditions.
1639         (configure.ac): Don't compile trigl.c if
1640         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1641
1642 2011-10-10  Bruno Haible  <bruno@clisp.org>
1643
1644         cosl: Simplify for platforms where 'long double' == 'double'.
1645         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1646         implementation.
1647         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1648         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1649         * modules/cosl (Depends-on): Add cos. Update conditions.
1650         (configure.ac): Don't compile sincosl.c and trigl.c if
1651         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1652
1653 2011-10-10  Bruno Haible  <bruno@clisp.org>
1654
1655         sinl: Simplify for platforms where 'long double' == 'double'.
1656         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1657         implementation.
1658         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1659         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1660         * modules/sinl (Depends-on): Add sin. Update conditions.
1661         (configure.ac): Don't compile sincosl.c and trigl.c if
1662         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1663
1664 2011-10-10  Bruno Haible  <bruno@clisp.org>
1665
1666         logl: Simplify for platforms where 'long double' == 'double'.
1667         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1668         implementation.
1669         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1670         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1671         * modules/logl (Depends-on): Add log. Update conditions.
1672
1673 2011-10-10  Bruno Haible  <bruno@clisp.org>
1674
1675         expl: Simplify for platforms where 'long double' == 'double'.
1676         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1677         implementation.
1678         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1679         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1680         * modules/expl (Depends-on): Add exp. Update conditions.
1681
1682 2011-10-10  Bruno Haible  <bruno@clisp.org>
1683
1684         sqrtl: Simplify for platforms where 'long double' == 'double'.
1685         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1686         alternative implementation.
1687         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1688         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1689         * modules/sqrtl (Depends-on): Update conditions.
1690
1691 2011-10-10  Bruno Haible  <bruno@clisp.org>
1692
1693         ldexpl: Simplify for platforms where 'long double' == 'double'.
1694         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1695         alternative implementation.
1696         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1697         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1698         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1699
1700 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1701
1702         ffsll: set correct witness
1703         * modules/ffsll (configure.ac): Fix typo.
1704
1705 2011-10-10  Bruno Haible  <bruno@clisp.org>
1706
1707         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1708         * lib/printf-frexpl.c: Include <config.h>.
1709         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1710         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1711         second time.
1712         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1713         gl_LONG_DOUBLE_VS_DOUBLE.
1714         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1715         conditions.
1716
1717 2011-10-10  Bruno Haible  <bruno@clisp.org>
1718
1719         frexpl: Simplify for platforms where 'long double' == 'double'.
1720         * lib/frexpl.c: Include <config.h>.
1721         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1722         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1723         time.
1724         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1725         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1726         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1727         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1728         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1729         conditions.
1730
1731 2011-10-10  Jim Meyering  <meyering@redhat.com>
1732
1733         test-renameat: don't leave behind a temporary file
1734         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1735           ERROR: files left in build directory after distclean:
1736           ./gltests/test-renameat.too
1737           make[1]: *** [distcleancheck] Error 1
1738         Reported by Tom G. Christensen.
1739
1740 2011-10-09  Bruno Haible  <bruno@clisp.org>
1741
1742         rint: Determine RINT_LIBM correctly on AIX 7.
1743         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1744         directly, not only through a function pointer. Also accept an optional
1745         4th argument with extra code.
1746         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1747         rintf() call by gcc when optimizing.
1748
1749         mathfunc.m4: Refactor.
1750         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1751         m4 variable.
1752
1753 2011-10-09  Bruno Haible  <bruno@clisp.org>
1754
1755         rintl: Simplify for platforms where 'long double' == 'double'.
1756         * lib/rintl.c: Include <config.h>.
1757         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1758         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1759         time.
1760         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1761         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1762         * modules/rintl (Depends-on): Add rint. Update conditions.
1763
1764 2011-10-09  Bruno Haible  <bruno@clisp.org>
1765
1766         roundl: Simplify for platforms where 'long double' == 'double'.
1767         * lib/roundl.c: Include <config.h>.
1768         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1769         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1770         time.
1771         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1772         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1773         * modules/roundl (Depends-on): Add round. Update conditions.
1774
1775 2011-10-09  Bruno Haible  <bruno@clisp.org>
1776
1777         truncl: Simplify for platforms where 'long double' == 'double'.
1778         * lib/truncl.c: Include <config.h>.
1779         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1780         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1781         time.
1782         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1783         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1784         * modules/truncl (Depends-on): Add trunc. Update conditions.
1785
1786 2011-10-09  Bruno Haible  <bruno@clisp.org>
1787
1788         ceill: Simplify for platforms where 'long double' == 'double'.
1789         * lib/ceill.c: Include <config.h>.
1790         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1791         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1792         time.
1793         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1794         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1795         * modules/ceill (Depends-on): Add ceil. Update conditions.
1796
1797 2011-10-09  Bruno Haible  <bruno@clisp.org>
1798
1799         floorl: Simplify for platforms where 'long double' == 'double'.
1800         * lib/floorl.c: Include <config.h>.
1801         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1802         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1803         time.
1804         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1805         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1806         * modules/floorl (Depends-on): Add floor. Update conditions.
1807
1808 2011-10-09  Bruno Haible  <bruno@clisp.org>
1809
1810         rint: Fix ordering constraints.
1811         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1812         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1813         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1814
1815 2011-10-09  Bruno Haible  <bruno@clisp.org>
1816
1817         copysignl: Simplify for platforms where 'long double' == 'double'.
1818         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1819         alternative.
1820         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1821         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1822         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1823
1824 2011-10-09  Bruno Haible  <bruno@clisp.org>
1825
1826         Tests for module 'rintl'.
1827         * modules/rintl-tests: New file.
1828         * tests/test-rintl.c: New file.
1829
1830         New module 'rintl'.
1831         * lib/math.in.h (rintl): New declaration.
1832         * lib/rintl.c: New file.
1833         * m4/rintl.m4: New file.
1834         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1835         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1836         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1837         * modules/rintl: New file.
1838         * tests/test-math-c++.cc: Check the declaration of rintl.
1839         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1840         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1841         * doc/posix-functions/rintl.texi: Mention the new module.
1842
1843 2011-10-09  Bruno Haible  <bruno@clisp.org>
1844
1845         Tests for module 'rintf'.
1846         * modules/rintf-tests: New file.
1847         * tests/test-rintf.c: New file.
1848
1849         New module 'rintf'.
1850         * lib/math.in.h (rintf): New declaration.
1851         * lib/rintf.c: New file.
1852         * m4/rintf.m4: New file.
1853         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1855         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1856         * modules/rintf: New file.
1857         * tests/test-math-c++.cc: Check the declaration of rintf.
1858         * doc/posix-functions/rintf.texi: Mention the new module.
1859
1860 2011-10-09  Bruno Haible  <bruno@clisp.org>
1861
1862         rint: Support for MSVC.
1863         * lib/math.in.h (rint): New declaration.
1864         * lib/rint.c: New file.
1865         * m4/rint.m4: New file.
1866         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1868         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1869         * modules/rint (Description): Fix.
1870         (Files): Add lib/rint.c, m4/rint.m4.
1871         (Depends-on): Add math.
1872         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1873         gl_MATH_MODULE_INDICATOR.
1874         * tests/test-math-c++.cc: Check the declaration of rint.
1875         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1876         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1877         * doc/posix-functions/rint.texi: Mention the replacement provided by
1878         the module.
1879
1880         rint tests: More tests.
1881         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1882         minus-zero.h, infinity.h, nan.h.
1883         (main): Skip the test if the current rounding mode is not standard. Add
1884         tests for negative numbers, minus zero, infinity, NaN.
1885         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1886         tests/nan.h.
1887         (Depends-on): Add isnand-nolibm.
1888
1889 2011-10-09  Bruno Haible  <bruno@clisp.org>
1890
1891         Tests for module 'copysignl'.
1892         * modules/copysignl-tests: New file.
1893         * tests/test-copysignl.c: New file.
1894
1895         New module 'copysignl'.
1896         * lib/math.in.h (copysignl): New declaration.
1897         * lib/copysignl.c: New file.
1898         * m4/copysignl.m4: New file.
1899         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1901         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1902         HAVE_COPYSIGNL.
1903         * modules/copysignl: New file.
1904         * tests/test-math-c++.cc: Check the declaration of copysignl.
1905         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1906         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1907         * doc/posix-functions/copysignl.texi: Mention the new module.
1908
1909 2011-10-09  Bruno Haible  <bruno@clisp.org>
1910
1911         Tests for module 'copysignf'.
1912         * modules/copysignf-tests: New file.
1913         * tests/test-copysignf.c: New file.
1914
1915         New module 'copysignf'.
1916         * lib/math.in.h (copysignf): New declaration.
1917         * lib/copysignf.c: New file.
1918         * m4/copysignf.m4: New file.
1919         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1921         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1922         HAVE_COPYSIGNF.
1923         * modules/copysignf: New file.
1924         * tests/test-math-c++.cc: Check the declaration of copysignf.
1925         * doc/posix-functions/copysignf.texi: Mention the new module.
1926
1927 2011-10-09  Bruno Haible  <bruno@clisp.org>
1928
1929         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1930         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1931         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1932         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1933         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1934         gl_SIGNAL_H_DEFAULTS.
1935
1936 2011-10-09  Bruno Haible  <bruno@clisp.org>
1937
1938         poll: Make macro safer.
1939         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1940         ac_cv_header_poll_h is not set.
1941
1942 2011-10-09  Bruno Haible  <bruno@clisp.org>
1943
1944         copysign: Provide replacement.
1945         * lib/math.in.h (copysign): New declaration.
1946         * lib/copysign.c: New file.
1947         * m4/copysign.m4: New file.
1948         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1950         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1951         HAVE_COPYSIGN.
1952         * modules/copysign (Description): Clarify.
1953         (Files): Add lib/copysign.c, m4/copysign.m4.
1954         (Depends-on): Add math, signbit.
1955         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1956         gl_MATH_MODULE_INDICATOR.
1957         * tests/test-math-c++.cc: Check the declaration of copysign.
1958         * doc/posix-functions/copysign.texi: Mention the effects of the module
1959         on Minix and MSVC.
1960
1961 2011-10-09  Bruno Haible  <bruno@clisp.org>
1962
1963         isinf: Ensure macro on AIX 5.1.
1964         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1965         macro.
1966         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1967
1968 2011-10-09  Bruno Haible  <bruno@clisp.org>
1969
1970         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1971         * modules/snprintf-posix-tests (configure.ac): Require
1972         gl_LONG_DOUBLE_VS_DOUBLE.
1973         * modules/sprintf-posix-tests (configure.ac): Likewise.
1974         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1975         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1976         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1977         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1978         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1979         tests on platforms where 'long double' is the same as 'double'.
1980         * tests/test-sprintf-posix.h (test_function): Likewise.
1981         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1982         * tests/test-vasprintf-posix.c (test_function): Likewise.
1983
1984         *printf: Fix for platforms where 'long double' == 'double'.
1985         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1986         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1987         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1988         * modules/fprintf-posix (Files): Likewise.
1989         * modules/obstack-printf-posix (Files): Likewise.
1990         * modules/snprintf-posix (Files): Likewise.
1991         * modules/sprintf-posix (Files): Likewise.
1992         * modules/vasnprintf (Files): Likewise.
1993         * modules/vasnprintf-posix (Files): Likewise.
1994         * modules/vasprintf-posix (Files): Likewise.
1995         * modules/vdprintf-posix (Files): Likewise.
1996         * modules/vfprintf-posix (Files): Likewise.
1997         * modules/vsnprintf-posix (Files): Likewise.
1998         * modules/vsprintf-posix (Files): Likewise.
1999         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2000         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2001         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2002         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2003         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2004         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2005         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2006
2007         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2008         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2009         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2010         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2011         'long double'.
2012         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2013
2014         isinf: Fix for platforms where 'long double' == 'double'.
2015         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2016         Don't blindly assume 80-bit 'long double'.
2017
2018         isfinite: Fix for platforms where 'long double' == 'double'.
2019         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2020         Don't blindly assume 80-bit 'long double'.
2021
2022         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2023         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2024         * modules/isfinite-tests (configure.ac): Require
2025         gl_LONG_DOUBLE_VS_DOUBLE.
2026         * modules/isinf-tests (configure.ac): Likewise.
2027         * modules/isnan-tests (configure.ac): Likewise.
2028         * modules/isnanl-tests (configure.ac): Likewise.
2029         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2030         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2031         tests on platforms where 'long double' is the same as 'double'.
2032         * tests/test-isinf.c (test_isinfl): Likewise.
2033         * tests/test-isnan.c (test_long_double): Likewise.
2034         * tests/test-isnanl.h (main): Likewise.
2035
2036 2011-10-08  Bruno Haible  <bruno@clisp.org>
2037
2038         Tests for module 'tanhf'.
2039         * modules/tanhf-tests: New file.
2040         * tests/test-tanhf.c: New file.
2041
2042         New module 'tanhf'.
2043         * lib/math.in.h (tanhf): New declaration.
2044         * lib/tanhf.c: New file.
2045         * m4/tanhf.m4: New file.
2046         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2048         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2049         * modules/tanhf: New file.
2050         * tests/test-math-c++.cc: Check the declaration of tanhf.
2051         * doc/posix-functions/tanhf.texi: Mention the new module.
2052
2053         tanh: Use a .m4 file.
2054         * m4/tanh.m4: New file.
2055         * modules/tanh (Files): Add it.
2056         (configure.ac): Just invoke gl_FUNC_TANH.
2057
2058 2011-10-08  Bruno Haible  <bruno@clisp.org>
2059
2060         Tests for module 'coshf'.
2061         * modules/coshf-tests: New file.
2062         * tests/test-coshf.c: New file.
2063
2064         New module 'coshf'.
2065         * lib/math.in.h (coshf): New declaration.
2066         * lib/coshf.c: New file.
2067         * m4/coshf.m4: New file.
2068         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2069         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2070         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2071         * modules/coshf: New file.
2072         * tests/test-math-c++.cc: Check the declaration of coshf.
2073         * doc/posix-functions/coshf.texi: Mention the new module.
2074
2075         cosh: Use a .m4 file.
2076         * m4/cosh.m4: New file.
2077         * modules/cosh (Files): Add it.
2078         (configure.ac): Just invoke gl_FUNC_COSH.
2079
2080 2011-10-08  Bruno Haible  <bruno@clisp.org>
2081
2082         Tests for module 'sinhf'.
2083         * modules/sinhf-tests: New file.
2084         * tests/test-sinhf.c: New file.
2085
2086         New module 'sinhf'.
2087         * lib/math.in.h (sinhf): New declaration.
2088         * lib/sinhf.c: New file.
2089         * m4/sinhf.m4: New file.
2090         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2091         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2092         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2093         * modules/sinhf: New file.
2094         * tests/test-math-c++.cc: Check the declaration of sinhf.
2095         * doc/posix-functions/sinhf.texi: Mention the new module.
2096
2097         sinh: Use a .m4 file.
2098         * m4/sinh.m4: New file.
2099         * modules/sinh (Files): Add it.
2100         (configure.ac): Just invoke gl_FUNC_SINH.
2101
2102 2011-10-08  Bruno Haible  <bruno@clisp.org>
2103
2104         Tests for module 'atan2f'.
2105         * modules/atan2f-tests: New file.
2106         * tests/test-atan2f.c: New file.
2107
2108         New module 'atan2f'.
2109         * lib/math.in.h (atan2f): New declaration.
2110         * lib/atan2f.c: New file.
2111         * m4/atan2f.m4: New file.
2112         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2114         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2115         * modules/atan2f: New file.
2116         * tests/test-math-c++.cc: Check the declaration of atan2f.
2117         * doc/posix-functions/atan2f.texi: Mention the new module.
2118
2119         atan2: Use a .m4 file.
2120         * m4/atan2.m4: New file.
2121         * modules/atan2 (Files): Add it.
2122         (configure.ac): Just invoke gl_FUNC_ATAN2.
2123
2124 2011-10-08  Bruno Haible  <bruno@clisp.org>
2125
2126         Tests for module 'atanf'.
2127         * modules/atanf-tests: New file.
2128         * tests/test-atanf.c: New file.
2129
2130         New module 'atanf'.
2131         * lib/math.in.h (atanf): New declaration.
2132         * lib/atanf.c: New file.
2133         * m4/atanf.m4: New file.
2134         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2136         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2137         * modules/atanf: New file.
2138         * tests/test-math-c++.cc: Check the declaration of atanf.
2139         * doc/posix-functions/atanf.texi: Mention the new module.
2140
2141         atan: Use a .m4 file.
2142         * m4/atan.m4: New file.
2143         * modules/atan (Files): Add it.
2144         (configure.ac): Just invoke gl_FUNC_ATAN.
2145
2146 2011-10-08  Bruno Haible  <bruno@clisp.org>
2147
2148         Tests for module 'acosf'.
2149         * modules/acosf-tests: New file.
2150         * tests/test-acosf.c: New file.
2151
2152         New module 'acosf'.
2153         * lib/math.in.h (acosf): New declaration.
2154         * lib/acosf.c: New file.
2155         * m4/acosf.m4: New file.
2156         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2158         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2159         * modules/acosf: New file.
2160         * tests/test-math-c++.cc: Check the declaration of acosf.
2161         * doc/posix-functions/acosf.texi: Mention the new module.
2162
2163         acos: Use a .m4 file.
2164         * m4/acos.m4: New file.
2165         * modules/acos (Files): Add it.
2166         (configure.ac): Just invoke gl_FUNC_ACOS.
2167
2168 2011-10-08  Bruno Haible  <bruno@clisp.org>
2169
2170         Tests for module 'asinf'.
2171         * modules/asinf-tests: New file.
2172         * tests/test-asinf.c: New file.
2173
2174         New module 'asinf'.
2175         * lib/math.in.h (asinf): New declaration.
2176         * lib/asinf.c: New file.
2177         * m4/asinf.m4: New file.
2178         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2179         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2180         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2181         * modules/asinf: New file.
2182         * tests/test-math-c++.cc: Check the declaration of asinf.
2183         * doc/posix-functions/asinf.texi: Mention the new module.
2184
2185         asin: Use a .m4 file.
2186         * m4/asin.m4: New file.
2187         * modules/asin (Files): Add it.
2188         (configure.ac): Just invoke gl_FUNC_ASIN.
2189
2190 2011-10-08  Bruno Haible  <bruno@clisp.org>
2191
2192         Tests for module 'tanf'.
2193         * modules/tanf-tests: New file.
2194         * tests/test-tanf.c: New file.
2195
2196         New module 'tanf'.
2197         * lib/math.in.h (tanf): New declaration.
2198         * lib/tanf.c: New file.
2199         * m4/tanf.m4: New file.
2200         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2202         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2203         * modules/tanf: New file.
2204         * tests/test-math-c++.cc: Check the declaration of tanf.
2205         * doc/posix-functions/tanf.texi: Mention the new module.
2206
2207         tan: Use a .m4 file.
2208         * m4/tan.m4: New file.
2209         * modules/tan (Files): Add it.
2210         (configure.ac): Just invoke gl_FUNC_TAN.
2211
2212 2011-10-08  Bruno Haible  <bruno@clisp.org>
2213
2214         Tests for module 'cosf'.
2215         * modules/cosf-tests: New file.
2216         * tests/test-cosf.c: New file.
2217
2218         New module 'cosf'.
2219         * lib/math.in.h (cosf): New declaration.
2220         * lib/cosf.c: New file.
2221         * m4/cosf.m4: New file.
2222         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2224         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2225         * modules/cosf: New file.
2226         * tests/test-math-c++.cc: Check the declaration of cosf.
2227         * doc/posix-functions/cosf.texi: Mention the new module.
2228
2229         cos: Use a .m4 file.
2230         * m4/cos.m4: New file.
2231         * modules/cos (Files): Add it.
2232         (configure.ac): Just invoke gl_FUNC_COS.
2233
2234 2011-10-08  Bruno Haible  <bruno@clisp.org>
2235
2236         Tests for module 'sinf'.
2237         * modules/sinf-tests: New file.
2238         * tests/test-sinf.c: New file.
2239
2240         New module 'sinf'.
2241         * lib/math.in.h (sinf): New declaration.
2242         * lib/sinf.c: New file.
2243         * m4/sinf.m4: New file.
2244         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2246         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2247         * modules/sinf: New file.
2248         * tests/test-math-c++.cc: Check the declaration of sinf.
2249         * doc/posix-functions/sinf.texi: Mention the new module.
2250
2251         sin: Use a .m4 file.
2252         * m4/sin.m4: New file.
2253         * modules/sin (Files): Add it.
2254         (configure.ac): Just invoke gl_FUNC_SIN.
2255
2256 2011-10-08  Bruno Haible  <bruno@clisp.org>
2257
2258         Tests for module 'powf'.
2259         * modules/powf-tests: New file.
2260         * tests/test-powf.c: New file.
2261
2262         New module 'powf'.
2263         * lib/math.in.h (powf): New declaration.
2264         * lib/powf.c: New file.
2265         * m4/powf.m4: New file.
2266         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2268         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2269         * modules/powf: New file.
2270         * tests/test-math-c++.cc: Check the declaration of powf.
2271         * doc/posix-functions/powf.texi: Mention the new module.
2272
2273         pow: Use a .m4 file.
2274         * m4/pow.m4: New file.
2275         * modules/pow (Files): Add it.
2276         (configure.ac): Just invoke gl_FUNC_POW.
2277
2278 2011-10-08  Bruno Haible  <bruno@clisp.org>
2279
2280         Tests for module 'log10f'.
2281         * modules/log10f-tests: New file.
2282         * tests/test-log10f.c: New file.
2283
2284         New module 'log10f'.
2285         * lib/math.in.h (log10f): New declaration.
2286         * lib/log10f.c: New file.
2287         * m4/log10f.m4: New file.
2288         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2290         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2291         * modules/log10f: New file.
2292         * tests/test-math-c++.cc: Check the declaration of log10f.
2293         * doc/posix-functions/log10f.texi: Mention the new module.
2294
2295         log10: Use a .m4 file.
2296         * m4/log10.m4: New file.
2297         * modules/log10 (Files): Add it.
2298         (configure.ac): Just invoke gl_FUNC_LOG10.
2299
2300 2011-10-08  Bruno Haible  <bruno@clisp.org>
2301
2302         Tests for module 'logf'.
2303         * modules/logf-tests: New file.
2304         * tests/test-logf.c: New file.
2305
2306         New module 'logf'.
2307         * lib/math.in.h (logf): New declaration.
2308         * lib/logf.c: New file.
2309         * m4/logf.m4: New file.
2310         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2312         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2313         * modules/logf: New file.
2314         * tests/test-math-c++.cc: Check the declaration of logf.
2315         * doc/posix-functions/logf.texi: Mention the new module.
2316
2317         log: Use a .m4 file.
2318         * m4/log.m4: New file.
2319         * modules/log (Files): Add it.
2320         (configure.ac): Just invoke gl_FUNC_LOG.
2321
2322 2011-10-08  Bruno Haible  <bruno@clisp.org>
2323
2324         Tests for module 'expf'.
2325         * modules/expf-tests: New file.
2326         * tests/test-expf.c: New file.
2327
2328         New module 'expf'.
2329         * lib/math.in.h (expf): New declaration.
2330         * lib/expf.c: New file.
2331         * m4/expf.m4: New file.
2332         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2334         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2335         * modules/expf: New file.
2336         * tests/test-math-c++.cc: Check the declaration of expf.
2337         * doc/posix-functions/expf.texi: Mention the new module.
2338
2339         exp: Use a .m4 file.
2340         * m4/exp.m4: New file.
2341         * modules/exp (Files): Add it.
2342         (configure.ac): Just invoke gl_FUNC_EXP.
2343
2344 2011-10-08  Bruno Haible  <bruno@clisp.org>
2345
2346         Tests for module 'sqrtf'.
2347         * modules/sqrtf-tests: New file.
2348         * tests/test-sqrtf.c: New file.
2349
2350         New module 'sqrtf'.
2351         * lib/math.in.h (sqrtf): New declaration.
2352         * lib/sqrtf.c: New file.
2353         * m4/sqrtf.m4: New file.
2354         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2356         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2357         * modules/sqrtf: New file.
2358         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2359         * doc/posix-functions/sqrtf.texi: Mention the new module.
2360
2361 2011-10-08  Bruno Haible  <bruno@clisp.org>
2362
2363         Tests: Avoid link failures w.r.t. libintl.
2364         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2365         $(LIBINTL).
2366         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2367         $(LIBINTL).
2368         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2369         against $(LIBINTL).
2370         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2371         $(LIBINTL).
2372         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2373         $(LIBINTL).
2374         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2375
2376 2011-10-08  Bruno Haible  <bruno@clisp.org>
2377
2378         pow tests: Defeat compiler optimizations.
2379         * tests/test-pow.c (main): Assign arguments to x and y before use.
2380
2381 2011-10-08  Bruno Haible  <bruno@clisp.org>
2382
2383         gnulib-tool: Improve last commit.
2384         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2385         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2386         ignore dependencies that are not among the modules list.
2387
2388 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2389
2390         gnulib-tool: don't follow dependencies to avoided modules
2391         This fixes a bug that is related to the previous one.
2392         * gnulib-tool (func_modules_transitive_closure)
2393         (func_emit_autoconf_snippets):
2394         Check whether a dependency is acceptable before using it.
2395         (--extract-dependencies): Report an error if --avoid is also used,
2396         since this combination of options is not yet supported.
2397
2398         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2399         Problem reported by Peter Dyballa in
2400         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2401         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2402         when echoing "$condition".
2403
2404 2011-10-07  Bruno Haible  <bruno@clisp.org>
2405
2406         Fix documentation about math functions on MacOS X.
2407         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2408         MacOS X 10.5.
2409         * doc/posix-functions/fdim.texi: Likewise.
2410         * doc/posix-functions/feclearexcept.texi: Likewise.
2411         * doc/posix-functions/fegetenv.texi: Likewise.
2412         * doc/posix-functions/fegetround.texi: Likewise.
2413         * doc/posix-functions/feholdexcept.texi: Likewise.
2414         * doc/posix-functions/feraiseexcept.texi: Likewise.
2415         * doc/posix-functions/fesetenv.texi: Likewise.
2416         * doc/posix-functions/fesetround.texi: Likewise.
2417         * doc/posix-functions/fetestexcept.texi: Likewise.
2418         * doc/posix-functions/feupdateenv.texi: Likewise.
2419         * doc/posix-functions/fmax.texi: Likewise.
2420         * doc/posix-functions/fmin.texi: Likewise.
2421         * doc/posix-functions/log2.texi: Likewise.
2422         * doc/posix-functions/modff.texi: Likewise.
2423         * doc/posix-functions/nan.texi: Likewise.
2424         * doc/posix-functions/nanf.texi: Likewise.
2425         * doc/posix-functions/nextafterf.texi: Likewise.
2426         * doc/posix-functions/remquo.texi: Likewise.
2427
2428 2011-10-07  Bruno Haible  <bruno@clisp.org>
2429
2430         modff: Drop assumption about library that defines modff.
2431         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2432         AC_CHECK_FUNCS.
2433         * modules/modff (Files): Add m4/mathfunc.m4.
2434
2435 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2436
2437         raise tests: Avoid a GCC warning.
2438         * tests/test-raise.c (handler): Use _Noreturn.
2439
2440 2011-10-07  Bruno Haible  <bruno@clisp.org>
2441
2442         Tests for module 'ldexpf'.
2443         * modules/ldexpf-tests: New file.
2444         * tests/test-ldexpf.c: New file.
2445
2446         New module 'ldexpf'.
2447         * lib/math.in.h (ldexpf): New declaration.
2448         * lib/ldexpf.c: New file.
2449         * m4/ldexpf.m4: New file.
2450         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2452         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2453         * modules/ldexpf: New file.
2454         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2455         * doc/posix-functions/ldexpf.texi: Mention the new module.
2456
2457 2011-10-06  Bruno Haible  <bruno@clisp.org>
2458
2459         frexpf: Work around problems on IRIX and mingw.
2460         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2462         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2463         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2464         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2465         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2466         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2467
2468 2011-10-06  Bruno Haible  <bruno@clisp.org>
2469
2470         fabsf: Drop assumption about library that defines fabsf.
2471         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2472         AC_CHECK_FUNCS.
2473         * modules/fabsf (Files): Add m4/mathfunc.m4.
2474
2475 2011-10-06  Bruno Haible  <bruno@clisp.org>
2476
2477         frexpf: Drop assumption about library that defines frexpf.
2478         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2479         'int *', 'float *', 'long double *', 'float', 'long double'.
2480         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2481         AC_CHECK_FUNCS.
2482         * modules/frexpf (Files): Add m4/mathfunc.m4.
2483
2484         Tests for module 'frexpf'.
2485         * modules/frexpf-tests: New file.
2486         * tests/test-frexpf.c: New file.
2487
2488         New module 'frexpf'.
2489         * lib/math.in.h (frexpf): New declaration.
2490         * lib/frexpf.c: New file.
2491         * m4/frexpf.m4: New file.
2492         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2493         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2494         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2495         * modules/frexpf: New file.
2496         * tests/test-math-c++.cc: Check the declaration of frexpf.
2497         * doc/posix-functions/frexpf.texi: Mention the new module.
2498
2499 2011-10-06  Bruno Haible  <bruno@clisp.org>
2500
2501         math: Sort function declarations of math.in.h.
2502         * lib/math.in.h (frexp, logb): Move declarations.
2503
2504 2011-10-05  Bruno Haible  <bruno@clisp.org>
2505
2506         Tests for module 'modff'.
2507         * modules/modff-tests: New file.
2508         * tests/test-modff.c: New file.
2509
2510         New module 'modff'.
2511         * lib/math.in.h (modff): New declaration.
2512         * lib/modff.c: New file.
2513         * m4/modff.m4: New file.
2514         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2516         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2517         * modules/modff: New file.
2518         * tests/test-math-c++.cc: Check the declaration of modff.
2519         * doc/posix-functions/modff.texi: Mention the new module.
2520
2521         modf tests: Make test sharper.
2522         * tests/test-modf.c (main): Strengthen upper bound.
2523
2524         modf: Use a .m4 file.
2525         * m4/modf.m4: New file.
2526         * modules/modf (Files): Add it.
2527         (configure.ac): Just invoke gl_FUNC_MODF.
2528
2529 2011-10-05  Bruno Haible  <bruno@clisp.org>
2530
2531         Tests for module 'fmodf'.
2532         * modules/fmodf-tests: New file.
2533         * tests/test-fmodf.c: New file.
2534
2535         New module 'fmodf'.
2536         * lib/math.in.h (fmodf): New declaration.
2537         * lib/fmodf.c: New file.
2538         * m4/fmodf.m4: New file.
2539         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2541         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2542         * modules/fmodf: New file.
2543         * tests/test-math-c++.cc: Check the declaration of fmodf.
2544         * doc/posix-functions/fmodf.texi: Mention the new module.
2545
2546         fmod: Use a .m4 file.
2547         * m4/fmod.m4: New file.
2548         * modules/fmod (Files): Add it.
2549         (configure.ac): Just invoke gl_FUNC_FMOD.
2550
2551 2011-10-05  Bruno Haible  <bruno@clisp.org>
2552
2553         Tests for module 'fabsf'.
2554         * modules/fabsf-tests: New file.
2555         * tests/test-fabsf.c: New file.
2556
2557         New module 'fabsf'.
2558         * lib/math.in.h (fabsf): New declaration.
2559         * lib/fabsf.c: New file.
2560         * m4/fabsf.m4: New file.
2561         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2563         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2564         * modules/fabsf: New file.
2565         * tests/test-math-c++.cc: Check the declaration of fabsf.
2566         * doc/posix-functions/fabsf.texi: Mention the new module.
2567
2568         fabs: Use a .m4 file.
2569         * m4/fabs.m4: New file.
2570         * modules/fabs (Files): Add it.
2571         (configure.ac): Just invoke gl_FUNC_FABS.
2572
2573 2011-10-05  Jim Meyering  <meyering@redhat.com>
2574
2575         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2576         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2577         ls -lL regression introduced in coreutils-8.12, it does so at the
2578         cost of an additional stat call in the common case.  Besides, now
2579         that the kernel change that prompted commit 95f7c57f has been reverted
2580         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2581         we have no use for commit 95f7c57f, "file-has-acl: use
2582         acl_extended_file_nofollow if available".
2583
2584 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2585
2586         file-has-acl: revert unintended change in behavior of ls -L
2587         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2588         derived from...
2589         (file_has_acl): ...code here.  Call it.
2590         This problem was introduced with 2011-07-22 commit 95f7c57f,
2591         "file-has-acl: use acl_extended_file_nofollow if available".
2592         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2593
2594 2011-10-03  Bruno Haible  <bruno@clisp.org>
2595
2596         poll: Avoid link errors on MSVC.
2597         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2598         * modules/poll (Depends-on): Add sockets.
2599         (Link): New section.
2600         * NEWS: Mention the change.
2601         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2602         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2603         $(LIB_POLL) instead of $(LIBSOCKET).
2604
2605 2011-10-03  Bruno Haible  <bruno@clisp.org>
2606
2607         sys_select tests: Fix link error on MSVC 9.
2608         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2609         with $(LIB_SELECT) instead of $(LIBSOCKET).
2610
2611 2011-10-03  Bruno Haible  <bruno@clisp.org>
2612
2613         sys_select: Fix compilation error on mingw.
2614         * lib/sys_select.in.h: On native Windows, include <io.h>.
2615
2616 2011-10-03  Bruno Haible  <bruno@clisp.org>
2617
2618         wmemset: Support for MSVC.
2619         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2620         whether wmemset() exists.
2621
2622 2011-10-03  Bruno Haible  <bruno@clisp.org>
2623
2624         wmemmove: Support for MSVC.
2625         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2626         whether wmemmove() exists.
2627
2628 2011-10-03  Bruno Haible  <bruno@clisp.org>
2629
2630         wmemcpy: Support for MSVC.
2631         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2632         whether wmemcpy() exists.
2633
2634 2011-10-03  Bruno Haible  <bruno@clisp.org>
2635
2636         wmemcmp: Support for MSVC.
2637         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2638         whether wmemcmp() exists.
2639
2640 2011-10-03  Bruno Haible  <bruno@clisp.org>
2641
2642         wmemchr: Support for MSVC.
2643         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2644         whether wmemchr() exists.
2645
2646 2011-10-03  Bruno Haible  <bruno@clisp.org>
2647
2648         glthread/*, strsignal: Support for MSVC.
2649         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2650         including <winsock.h> on MSVC 9.
2651         * lib/glthread/lock.h: Likewise.
2652         * lib/glthread/thread.h: Likewise.
2653         * lib/glthread/tls.h: Likewise.
2654         * lib/glthread/yield.h: Likewise.
2655         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2656         if HAVE_UNISTD_H is false.
2657         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2658
2659 2011-10-03  Bruno Haible  <bruno@clisp.org>
2660
2661         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2662         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2663         Set to 100000.
2664
2665 2011-10-03  Bruno Haible  <bruno@clisp.org>
2666
2667         acl: Fix specification.
2668         * lib/file-has-acl.c (file_has_acl): Fix specification.
2669
2670 2011-10-03  Bruno Haible  <bruno@clisp.org>
2671
2672         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2673         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2674         (compute_curr_prefix, shared_library_fullname,
2675         find_shared_library_fullname, get_shared_library_fullname, relocate):
2676         Use it together with PIC && INSTALLDIR.
2677         Reported by <jojelino@gmail.com>
2678         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2679
2680 2011-10-01  Jim Meyering  <meyering@redhat.com>
2681
2682         maint.mk: adjust a release-related rule not to require use of gzip
2683         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2684         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2685         projects that build only .tar.xz files.  Also fix an erroneous test.
2686
2687         test-linkat: don't leave behind a temporary file
2688         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2689         Otherwise, coreutils' "make distcheck" would fail with this:
2690           Only in /c/cu/tests/torture/coreutils/test/\
2691             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2692           make[2]: *** [my-distcheck] Error 1
2693
2694         float, math: add omitted file
2695         * lib/itold.c: Add file, required for yesterday's float change.
2696
2697 2011-10-01  Bruno Haible  <bruno@clisp.org>
2698
2699         isinf: Fix for OpenBSD/x86.
2700         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2701         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2702         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2703
2704 2011-10-01  Bruno Haible  <bruno@clisp.org>
2705
2706         isfinite: Fix syntax error in configure test.
2707         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2708
2709         isfinite: Fix typo.
2710         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2711         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2712
2713 2011-10-01  Bruno Haible  <bruno@clisp.org>
2714
2715         nonblocking tests: Fix test failure on Linux/IA-64.
2716         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2717         Set to 270000.
2718
2719 2011-10-01  Bruno Haible  <bruno@clisp.org>
2720
2721         mkfifoat tests: Fix a test failure on mingw.
2722         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2723         with error ENOSYS.
2724
2725 2011-09-30  Bruno Haible  <bruno@clisp.org>
2726
2727         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2728         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2729         'long double'. Set REPLACE_ITOLD.
2730         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2731         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2732         * lib/itold.c: New file.
2733         * modules/float (Files): Add lib/itold.c.
2734         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2735         (Makefile.am): Substitute REPLACE_ITOLD.
2736         * modules/math (Depends-on): Add float.
2737         (Makefile.am): Substitute REPLACE_ITOLD.
2738         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2739         * doc/posix-headers/math.texi: Likewise.
2740         * doc/posix-functions/logl.texi: Likewise.
2741
2742 2011-09-30  Bruno Haible  <bruno@clisp.org>
2743
2744         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2745         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2746         Set to 140000.
2747
2748 2011-09-30  Bruno Haible  <bruno@clisp.org>
2749
2750         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2751         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2752         invocation, say "right after AC_PROG_CC_STDC", not "right after
2753         AC_PROG_CC".
2754         Reported by Gary V. Vaughan <gary@gnu.org>.
2755
2756 2011-09-30  Bruno Haible  <bruno@clisp.org>
2757
2758         Centralize C99 requirement.
2759         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2760         * modules/stdarg (configure.ac-early): Invoke it instead of
2761         AC_PROG_CC_STDC.
2762         Reported by Gary V. Vaughan and Paul Eggert.
2763
2764 2011-09-29  Bruno Haible  <bruno@clisp.org>
2765
2766         float: Fix LDBL_MAX value on Linux/PowerPC.
2767         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2768         on Linux/PowerPC.
2769         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2770         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2771         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2772         platform.
2773         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2774
2775 2011-09-29  Bruno Haible  <bruno@clisp.org>
2776
2777         doc: Improve doc about gl_EARLY.
2778         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2779         AC_PROG_CC_STDC invocation.
2780         Reported by Gary V. Vaughan <gary@gnu.org>.
2781
2782 2011-09-28  Bruno Haible  <bruno@clisp.org>
2783
2784         fgetc, fputc, fread, fwrite tests: Fix link error.
2785         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2786         on non-MSVC platforms.
2787         * tests/test-fputc.c (main): Likewise.
2788         * tests/test-fread.c (main): Likewise.
2789         * tests/test-fwrite.c (main): Likewise.
2790         Reported by Jim Meyering.
2791
2792 2011-09-27  Bruno Haible  <bruno@clisp.org>
2793
2794         fputc, fwrite tests: Avoid test failure on MSVC.
2795         * tests/test-fgetc.c: Include msvc-inval.h.
2796         (main): Invoke gl_msvc_inval_ensure_handler.
2797         * tests/test-fputc.c: Include msvc-inval.h.
2798         (main): Invoke gl_msvc_inval_ensure_handler.
2799         * tests/test-fread.c: Include msvc-inval.h.
2800         (main): Invoke gl_msvc_inval_ensure_handler.
2801         * tests/test-fwrite.c: Include msvc-inval.h.
2802         (main): Invoke gl_msvc_inval_ensure_handler.
2803         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2804         * modules/fputc-tests (Depends-on): Likewise.
2805         * modules/fread-tests (Depends-on): Likewise.
2806         * modules/fwrite-tests (Depends-on): Likewise.
2807
2808 2011-09-27  Bruno Haible  <bruno@clisp.org>
2809
2810         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2811         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2812         (raise): Remove older, duplicated declaration.
2813         (_gl_raise_SIGPIPE): New declaration.
2814         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2815         (rpl_raise): Remove function.
2816         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2817         a gnulib-defined SIGPIPE here.
2818         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2819         'sigprocmask' has detected missing signal-blocking and the module
2820         'sigpipe' is enabled.
2821         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2822
2823 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2824
2825         base64-tests: avoid memory leak
2826         * tests/test-base64.c (main): Plug memory leak.
2827
2828         base32: new module
2829         * modules/base32: New module.
2830         * lib/base32.c: New file.
2831         * lib/base32.h: Likewise.
2832         * m4/base32.m4: Likewise.
2833         * modules/base32-tests: New test.
2834         * tests/test-base32.c: Likewise.
2835         * MODULES.html.sh (Misc): Mention it.
2836
2837 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2838
2839         gnulib: use more-standard license notice wording
2840         * gnulib-tool (func_emit_copyright_notice): When emitting a
2841         license notice into a file, use the standard wording as suggested
2842         by the current information for GNU maintainers, except say "file"
2843         rather than "program".  The new wording gives a license version
2844         number, which addresses an issue raised by Glenn Morris in
2845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2846         * m4/onceonly.m4: Use that same wording here, too.
2847
2848         dup2: minor simplification
2849         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2850         as lib/dup2.c no longer uses 'inline'.
2851
2852 2011-09-25  Bruno Haible  <bruno@clisp.org>
2853
2854         strings: Fix compilation error on MSVC.
2855         * lib/strings.in.h: Include <stddef.h> for size_t.
2856
2857 2011-09-25  Bruno Haible  <bruno@clisp.org>
2858
2859         fflush et al.: Document limitation on MSVC.
2860         * doc/posix-functions/fflush.texi: Document possible crash in handling
2861         mode other than DEFAULT_HANDLING.
2862         * doc/posix-functions/fgetc.texi: Likewise.
2863         * doc/posix-functions/fputc.texi: Likewise.
2864         * doc/posix-functions/fread.texi: Likewise.
2865         * doc/posix-functions/fwrite.texi: Likewise.
2866
2867 2011-09-25  Bruno Haible  <bruno@clisp.org>
2868
2869         msvc-inval: Allow three invalid parameter handling modes.
2870         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2871         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2872         macros.
2873         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2874         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2875         SANE_LIBRARY_HANDLING as a no-op.
2876         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2877         <stdlib.h>.
2878         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2879
2880 2011-09-25  Bruno Haible  <bruno@clisp.org>
2881
2882         msvc-inval: Make handler multithread-safe.
2883         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2884         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2885         declarations.
2886         (gl_msvc_inval_current): New declaration.
2887         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2888         Operate on the structure returned by gl_msvc_inval_current().
2889         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2890         Remove varaiables.
2891         (tls_index, tls_initialized): New variables.
2892         (not_per_thread): New variable.
2893         (gl_msvc_inval_current): New function.
2894         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2895         returned by gl_msvc_inval_current().
2896
2897 2011-09-25  Bruno Haible  <bruno@clisp.org>
2898
2899         msvc-inval: Install handler globally.
2900         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2901         !_MSC_VER.
2902         (gl_msvc_invalid_parameter_handler): Remove declaration.
2903         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2904         declarations.
2905         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2906         Install the handler globally, don't uninstall it.
2907         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2908         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2909         currently valid, call RaiseException instead.
2910         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2911         for !_MSC_VER.
2912
2913 2011-09-25  Bruno Haible  <bruno@clisp.org>
2914
2915         strerror_r-posix: Fix for MSVC 9.
2916         * lib/strerror_r.c (local_snprintf): New function.
2917         (snprintf): Define to local_snprintf, not to _snprintf.
2918
2919 2011-09-25  Bruno Haible  <bruno@clisp.org>
2920
2921         ftruncate: Support for MSVC 9.
2922         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2923         (chsize_nothrow): New function.
2924         (chsize): Redefine as a macro.
2925         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2926         * modules/ftruncate (Depends-on): Add msvc-inval.
2927
2928 2011-09-25  Bruno Haible  <bruno@clisp.org>
2929
2930         New module 'fstat'.
2931         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2932         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2933         * lib/fchdir.c (rpl_fstat): Remove function.
2934         * m4/fstat.m4: New file.
2935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2936         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2937         declared.
2938         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2939         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2940         * modules/fstat: New file.
2941         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2942         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2943         is set.
2944         * doc/posix-functions/fstat.texi: Mention the new module and the
2945         problem on MSVC.
2946         * NEWS: Mention the change.
2947         * modules/acl (Depends-on): Add fstat.
2948         * modules/chdir-safer (Depends-on): Likewise.
2949         * modules/chown (Depends-on): Likewise.
2950         * modules/copy-file (Depends-on): Likewise.
2951         * modules/fchdir (Depends-on): Likewise.
2952         * modules/fdopendir (Depends-on): Likewise.
2953         * modules/fopen (Depends-on): Likewise.
2954         * modules/fts (Depends-on): Likewise.
2955         * modules/getcwd (Depends-on): Likewise.
2956         * modules/isapipe (Depends-on): Likewise.
2957         * modules/linkat (Depends-on): Likewise.
2958         * modules/lseek (Depends-on): Likewise.
2959         * modules/mkdir-p (Depends-on): Likewise.
2960         * modules/open (Depends-on): Likewise.
2961         * modules/openat (Depends-on): Likewise.
2962         * modules/read-file (Depends-on): Likewise.
2963         * modules/renameat (Depends-on): Likewise.
2964         * modules/utimens (Depends-on): Likewise.
2965
2966 2011-09-25  Bruno Haible  <bruno@clisp.org>
2967
2968         linkat: Fix compilation on MSVC 9.
2969         * lib/linkat.c: Don't include <stdint.h>.
2970
2971 2011-09-25  Bruno Haible  <bruno@clisp.org>
2972
2973         fclose: Support for MSVC 9.
2974         * lib/fclose.c: Include msvc-inval.h.
2975         (fclose_nothrow): New function.
2976         (rpl_fclose): Use it.
2977         * modules/fclose (Depends-on): Add msvc-inval.
2978         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2979
2980 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2981
2982         dup2: minor simplifications
2983         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2984         that it's a performance win.
2985         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2986         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2987
2988 2011-09-24  Jim Meyering  <meyering@redhat.com>
2989
2990         test-futimens: avoid a warning from gcc -Wshadow
2991         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2992         to avoid a shadowing warning.
2993
2994 2011-09-24  Bruno Haible  <bruno@clisp.org>
2995
2996         fdopen: Support for MSVC 9.
2997         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2998         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2999         * lib/fdopen.c: Include msvc-inval.h.
3000         (fdopen_nothrow): New function.
3001         (rpl_fdopen): Use it.
3002         * modules/fdopen (Depends-on): Add msvc-inval.
3003         * modules/fclose-tests (Depends-on): Add fdopen.
3004         * modules/fflush-tests (Depends-on): Likewise.
3005         * modules/fgetc-tests (Depends-on): Likewise.
3006         * modules/fputc-tests (Depends-on): Likewise.
3007         * modules/fread-tests (Depends-on): Likewise.
3008         * modules/freopen-tests (Depends-on): Likewise.
3009         * modules/fseeko-tests (Depends-on): Likewise.
3010         * modules/ftello-tests (Depends-on): Likewise.
3011         * modules/fwrite-tests  (Depends-on): Likewise.
3012         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3013
3014 2011-09-24  Bruno Haible  <bruno@clisp.org>
3015
3016         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3017         * modules/fgetc-tests (Depends-on): Add unistd.
3018         * modules/fputc-tests (Depends-on): Likewise.
3019         * modules/fread-tests (Depends-on): Likewise.
3020         * modules/fwrite-tests (Depends-on): Likewise.
3021
3022 2011-09-24  Bruno Haible  <bruno@clisp.org>
3023
3024         dup: Simplify autoconf test.
3025         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3026         on gl_MSVC_INVAL's result.
3027
3028 2011-09-24  Bruno Haible  <bruno@clisp.org>
3029
3030         Tests for function fwrite().
3031         * modules/fwrite-tests: New file.
3032         * tests/test-fwrite.c: New file.
3033         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3034
3035         Tests for function fread().
3036         * modules/fread-tests: New file.
3037         * tests/test-fread.c: New file.
3038         * modules/stdio-tests (Depends-on): Add fread-tests.
3039
3040         Activate fputc tests.
3041         * modules/stdio-tests (Depends-on): Add fputc-tests.
3042
3043         Enhance fgetc, fputc tests.
3044         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3045         * tests/test-fputc.c (main): Likewise.
3046
3047 2011-09-24  Bruno Haible  <bruno@clisp.org>
3048
3049         write: Support for MSVC 9.
3050         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3051         is not 1.
3052         * lib/write.c (write_nothrow): New function.
3053         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3054         not 1. Use write_nothrow.
3055         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3056         invalid parameter handler.
3057         (gl_PREREQ_WRITE): New macro.
3058         * modules/write (Depends-on): Add msvc-inval.
3059         (configure.ac): Invoke gl_PREREQ_WRITE.
3060         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3061
3062 2011-09-24  Bruno Haible  <bruno@clisp.org>
3063
3064         read: Fix last commit.
3065         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3066
3067 2011-09-24  Bruno Haible  <bruno@clisp.org>
3068
3069         dup2: Fix last commit.
3070         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3071         (rpl_dup2): Disable fcntl workaround on native Windows.
3072
3073         sigprocmask: Make code safer.
3074         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3075         section that changes macro definitions for this compilation unit.
3076
3077 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3078
3079         dup2: clarify by coalescing Windows-specific material
3080         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3081         "msvc-nothrow.h"' to the Windows-specific section, so that the
3082         Emacs source need not contain these include files.
3083         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3084         Windows-specific fixes into this function rather than just the
3085         nothrow fix, as this shortens and clarifies the code.  Always
3086         define as a function, as that's a bit cleaner than having it be
3087         sometimes a function and sometimes a macro.
3088         (rpl_dup2): Move the Windows-specific stuff out of here and into
3089         ms_windows_dup2.  Don't protect the Haiku-related fix with
3090         "#if !defined __linux__", as the same code also works around
3091         a Linux kernel bug, and it doesn't add any system calls on any
3092         platform.  Add comment about FreeBSD 6.1.
3093
3094         sigprocmask: move #include directive
3095         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3096         Windows-specific section, so that the Emacs source need not
3097         contain msvc-inval.h.
3098
3099 2011-09-23  Bruno Haible  <bruno@clisp.org>
3100
3101         read: Support for MSVC 9.
3102         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3103         is not 1.
3104         * lib/read.c (read_nothrow): New function.
3105         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3106         read_nothrow.
3107         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3108         invalid parameter handler.
3109         (gl_PREREQ_READ): New macro.
3110         * modules/read (Depends-on): Add msvc-inval.
3111         (configure.ac): Invoke gl_PREREQ_READ.
3112         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3113
3114 2011-09-23  Bruno Haible  <bruno@clisp.org>
3115
3116         close: Support for MSVC 9.
3117         * lib/close.c: Include <errno.h>, msvc-inval.h.
3118         (close_nothrow): New function.
3119         (rpl_close): Use it.
3120         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3121         invalid parameter handler.
3122         * modules/close (Depends-on): Add msvc-inval.
3123         * modules/dup2-tests (Depends-on): Add close.
3124         * modules/dup3-tests (Depends-on): Likewise.
3125         * modules/fcntl-tests (Depends-on): Likewise.
3126         * modules/spawn-pipe-tests (Depends-on): Likewise.
3127         * modules/unistd-safer-tests (Depends-on): Likewise.
3128         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3129
3130 2011-09-23  Bruno Haible  <bruno@clisp.org>
3131
3132         New module 'dup'.
3133         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3134         Allow replacement.
3135         * lib/dup.c: New file.
3136         * lib/fchdir.c (rpl_dup): Remove function.
3137         * m4/dup.m4: New file.
3138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3139         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3140         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3141         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3142         * modules/dup: New file.
3143         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3144         'dup' module is in use.
3145         * modules/fdopendir (Depends-on): Add dup.
3146         * modules/fdutimensat-tests (Depends-on): Likewise.
3147         * modules/fts (Depends-on): Likewise.
3148         * modules/futimens-tests (Depends-on): Likewise.
3149         * modules/posix_spawnp-tests (Depends-on): Likewise.
3150         * modules/unistd-safer-tests (Depends-on): Likewise.
3151         * modules/utimens-tests (Depends-on): Likewise.
3152         * doc/posix-functions/dup.texi: Mention the new module and the problem
3153         on MSVC.
3154
3155 2011-09-23  Bruno Haible  <bruno@clisp.org>
3156
3157         getdtablesize: Support for MSVC 9.
3158         * lib/getdtablesize.c: Include msvc-inval.h.
3159         (_setmaxstdio_nothrow): New function.
3160         (_setmaxstdio): Redefine it.
3161         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3162         * modules/getdtablesize (Depends-on): Add msvc-inval.
3163         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3164
3165 2011-09-23  Bruno Haible  <bruno@clisp.org>
3166
3167         signal-h: Rename from signal.
3168         * modules/signal-h: Renamed from modules/signal.
3169         * modules/pthread_sigmask (Depends-on): Update.
3170         * modules/raise (Depends-on): Likewise.
3171         * modules/sigaction (Depends-on): Likewise.
3172         * modules/sigpipe (Depends-on): Likewise.
3173         * modules/sigprocmask (Depends-on): Likewise.
3174         * modules/sys_select (Depends-on): Likewise.
3175         * modules/signal-h-tests: Renamed from modules/signal-tests.
3176         (Files, Depends-on, Makefile.am): Update.
3177         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3178         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3179         (Files, Makefile.am): Update.
3180         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3181         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3182         * modules/signal: New placeholder file.
3183         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3184         * doc/posix-headers/signal.texi: Update.
3185         * NEWS: Mention the change.
3186
3187 2011-09-23  Bruno Haible  <bruno@clisp.org>
3188
3189         sigprocmask: Avoid crashes through signal() on MSVC 9.
3190         * lib/sigprocmask.c: Include msvc-inval.h.
3191         (signal_nothrow): New function.
3192         (signal): Redefine it.
3193         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3194         * modules/sigprocmask (Depends-on): Add msvc-inval.
3195         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3196
3197 2011-09-23  Bruno Haible  <bruno@clisp.org>
3198
3199         Tests for module 'raise'.
3200         * modules/raise-tests: New file.
3201         * tests/test-raise.c: New file.
3202
3203         raise: Support for MSVC.
3204         * lib/signal.in.h (raise): New declaration.
3205         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3206         for native Windows platforms.
3207         * m4/raise.m4: New file.
3208         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3209         HAVE_RAISE, REPLACE_RAISE.
3210         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3211         REPLACE_RAISE.
3212         * modules/raise (Status, Notice): Remove fields.
3213         (Files): Add m4/raise.m4.
3214         (Depends-on): Add signal, msvc-inval.
3215         (configure.ac): Use the common idioms.
3216         (Maintainer): Add me.
3217         * tests/test-signal-c++.cc: Check the signature of raise.
3218         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3219
3220 2011-09-23  Bruno Haible  <bruno@clisp.org>
3221
3222         pipe2: Fix compilation on pre-C99 compilers.
3223         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3224
3225 2011-09-23  Bruno Haible  <bruno@clisp.org>
3226
3227         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3228         * lib/msvc-nothrow.h: New file.
3229         * lib/msvc-nothrow.c: New file.
3230         * m4/msvc-nothrow.m4: New file.
3231         * modules/msvc-nothrow: New file.
3232         * lib/dup2.c: Include msvc-nothrow.h.
3233         (rpl_dup2): No need to protect _get_osfhandle call here.
3234         * lib/accept4.c: Include msvc-nothrow.h.
3235         * lib/error.c: Likewise.
3236         * lib/fcntl.c: Likewise.
3237         * lib/lseek.c: Likewise.
3238         * lib/nonblocking.c: Likewise.
3239         * lib/poll.c: Likewise.
3240         * lib/read.c: Likewise.
3241         * lib/select.c: Likewise.
3242         * lib/sockets.h: Likewise.
3243         * lib/sockets.c: Likewise.
3244         * lib/stdio-read.c: Likewise.
3245         * lib/stdio-write.c: Likewise.
3246         * lib/write.c: Likewise.
3247         * lib/w32sock.h: Likewise.
3248         * lib/w32spawn.h: Likewise.
3249         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3250         * lib/fsync.c: Likewise.
3251         * lib/isapipe.c: Likewise.
3252         * modules/dup2 (Depends-on): Add msvc-nothrow.
3253         * modules/accept4 (Depends-on): Likewise.
3254         * modules/error (Depends-on): Likewise.
3255         * modules/fcntl (Depends-on): Likewise.
3256         * modules/lseek (Depends-on): Likewise.
3257         * modules/nonblocking (Depends-on): Likewise.
3258         * modules/poll (Depends-on): Likewise.
3259         * modules/read (Depends-on): Likewise.
3260         * modules/select (Depends-on): Likewise.
3261         * modules/sockets (Depends-on): Likewise.
3262         * modules/sigpipe (Depends-on): Likewise.
3263         * modules/write (Depends-on): Likewise.
3264         * modules/accept (Depends-on): Likewise.
3265         * modules/bind (Depends-on): Likewise.
3266         * modules/connect (Depends-on): Likewise.
3267         * modules/gethostname (Depends-on): Likewise.
3268         * modules/getpeername (Depends-on): Likewise.
3269         * modules/getsockname (Depends-on): Likewise.
3270         * modules/getsockopt (Depends-on): Likewise.
3271         * modules/ioctl (Depends-on): Likewise.
3272         * modules/listen (Depends-on): Likewise.
3273         * modules/recv (Depends-on): Likewise.
3274         * modules/recvfrom (Depends-on): Likewise.
3275         * modules/send (Depends-on): Likewise.
3276         * modules/sendto (Depends-on): Likewise.
3277         * modules/setsockopt (Depends-on): Likewise.
3278         * modules/shutdown (Depends-on): Likewise.
3279         * modules/socket (Depends-on): Likewise.
3280         * modules/execute (Depends-on): Likewise.
3281         * modules/spawn-pipe (Depends-on): Likewise.
3282         * modules/flock (Depends-on): Likewise.
3283         * modules/fsync (Depends-on): Likewise.
3284         * modules/isapipe (Depends-on): Likewise.
3285         * tests/test-cloexec.c: Include msvc-nothrow.h.
3286         * tests/test-dup-safer.c: Likewise.
3287         * tests/test-dup2.c: Likewise.
3288         * tests/test-dup3.c: Likewise.
3289         * tests/test-fcntl.c: Likewise.
3290         * tests/test-pipe.c: Likewise.
3291         * tests/test-pipe2.c: Likewise.
3292         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3293         * modules/unistd-safer-tests (Depends-on): Likewise.
3294         * modules/dup2-tests (Depends-on): Likewise.
3295         * modules/dup3-tests (Depends-on): Likewise.
3296         * modules/fcntl-tests (Depends-on): Likewise.
3297         * modules/pipe-posix-tests (Depends-on): Likewise.
3298         * modules/pipe2-tests (Depends-on): Likewise.
3299
3300 2011-09-23  Bruno Haible  <bruno@clisp.org>
3301
3302         dup2: Make code more maintainable.
3303         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3304         (rpl_dup2): Use it.
3305         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3306         * modules/dup2 (configure.ac): Invoke it.
3307         Reported by Paul Eggert.
3308
3309 2011-09-23  Bruno Haible  <bruno@clisp.org>
3310
3311         msvc-inval: Fix compilation error.
3312         * lib/msvc-inval.h: Include <excpt.h>.
3313
3314 2011-09-23  Bruno Haible  <bruno@clisp.org>
3315
3316         mkdir: Tweak for MSVC 9.
3317         * lib/sys_stat.in.h: Update comments.
3318         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3319
3320         Tests for module 'chdir'.
3321         * modules/chdir-tests: New file.
3322         * tests/test-chdir.c: New file.
3323
3324         New module 'chdir'.
3325         * modules/chdir: New file.
3326         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3327         (chdir): New declaration.
3328         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3329         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3330         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3331         * tests/test-unistd-c++.cc: Check signature of chdir.
3332         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3333         * modules/chdir-long (Depends-on): Add chdir.
3334         * modules/fchdir (Depends-on): Likewise.
3335         * modules/rename (Depends-on): Likewise.
3336         * modules/savewd (Depends-on): Likewise.
3337
3338         rmdir: Support for mingw, MSVC 9.
3339         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3340         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3341
3342         getcwd: Tweak for MSVC 9.
3343         * lib/unistd.in.h: Update comments.
3344         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3345
3346 2011-09-22  Bruno Haible  <bruno@clisp.org>
3347
3348         strerror_r-posix: Avoid a link error on MSVC.
3349         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3350         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3351
3352 2011-09-22  Bruno Haible  <bruno@clisp.org>
3353
3354         select: Avoid link errors on MSVC.
3355         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3356         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3357         * modules/pselect (Link): Likewise.
3358         * NEWS: Mention the change.
3359         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3360         test-select-stdin against $(LIB_SELECT).
3361         * modules/pselect-tests (Makefile.am): Link test-pselect against
3362         $(LIB_SELECT).
3363
3364 2011-09-22  Bruno Haible  <bruno@clisp.org>
3365
3366         select: Avoid compilation error on MSVC.
3367         * lib/select.c: Don't include <stdbool.h>.
3368
3369 2011-09-21  Bruno Haible  <bruno@clisp.org>
3370
3371         Consolidate all uses of PATH_MAX in *.m4 files.
3372         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3373         macros.
3374         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3375         and gl_PATHMAX_SNIPPET.
3376         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3377         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3378         * modules/chdir-long (Files): Add m4/pathmax.m4.
3379         * modules/getcwd (Files): Likewise.
3380
3381 2011-09-21  Bruno Haible  <bruno@clisp.org>
3382
3383         ftruncate: Un-deprecate, concentrate on Win32 support.
3384         * modules/ftruncate (Status, Notice): Remove sections.
3385         (Depends-on): Add largefile.
3386         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3387         non-mingw platforms.
3388         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3389         include <io.h>.
3390         * modules/perror-tests (Depends-on): Add ftruncate.
3391         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3392         'ftruncate' module.
3393
3394 2011-09-21  Bruno Haible  <bruno@clisp.org>
3395
3396         Add dependencies to new dirent related modules.
3397         * modules/opendir (Depends-on): Add closedir.
3398         * modules/getcwd (Depends-on): Add opendir, closedir.
3399         * modules/dirent-safer-tests (Depends-on): Likewise.
3400         * modules/fdopendir-tests (Depends-on): Likewise.
3401         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3402         * modules/renameat-tests (Depends-on): Likewise.
3403
3404 2011-09-21  Bruno Haible  <bruno@clisp.org>
3405
3406         opendir: Avoid compilation error on mingw.
3407         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3408         * modules/opendir (Depends-on): Add unistd.
3409
3410 2011-09-21  Bruno Haible  <bruno@clisp.org>
3411
3412         ftruncate tests: Avoid a test failure on mingw.
3413         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3414
3415 2011-09-21  Bruno Haible  <bruno@clisp.org>
3416
3417         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3418         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3419         native Windows.
3420
3421 2011-09-21  Bruno Haible  <bruno@clisp.org>
3422
3423         New module 'fdopen'.
3424         * lib/stdio.in.h (fdopen): New declaration.
3425         * lib/fdopen.c: New file.
3426         * m4/fdopen.m4: New file.
3427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3428         REPLACE_FDOPEN.
3429         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3430         REPLACE_FDOPEN.
3431         * modules/fdopen: New file.
3432         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3433         * tests/test-stdio-c++.cc: Check signature of fdopen.
3434         * doc/posix-functions/fdopen.texi: Mention the new module.
3435
3436 2011-09-21  Bruno Haible  <bruno@clisp.org>
3437
3438         unlockpt tests: Avoid test failure on NetBSD 5.1.
3439         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3440         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3441
3442 2011-09-21  Bruno Haible  <bruno@clisp.org>
3443
3444         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3445         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3446         * tests/test-getlogin_r.c (main): Likewise.
3447
3448 2011-09-20  Bruno Haible  <bruno@clisp.org>
3449
3450         time tests: Don't require pid_t.
3451         * doc/posix-headers/time.texi: Revert last change.
3452         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3453         * tests/test-time.c: Comment out the check for pid_t.
3454
3455 2011-09-20  Bruno Haible  <bruno@clisp.org>
3456
3457         fsync tests: Avoid a test failure on mingw.
3458         * tests/test-fsync.c (main): Allow a failure with EIO.
3459
3460 2011-09-20  Bruno Haible  <bruno@clisp.org>
3461
3462         euidaccess: Update comments.
3463         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3464
3465 2011-09-20  Bruno Haible  <bruno@clisp.org>
3466
3467         Ensure EBADF returns for socket functions on mingw.
3468         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3469         descriptor is invalid.
3470         * lib/bind.c (rpl_bind): Likewise.
3471         * lib/connect.c (rpl_connect): Likewise.
3472         * lib/getpeername.c (rpl_getpeername): Likewise.
3473         * lib/getsockname.c (rpl_getsockname): Likewise.
3474         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3475         * lib/listen.c (rpl_listen): Likewise.
3476         * lib/recv.c (rpl_recv): Likewise.
3477         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3478         * lib/send.c (rpl_send): Likewise.
3479         * lib/sendto.c (rpl_sendto): Likewise.
3480         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3481         * lib/shutdown.c (rpl_shutdown): Likewise.
3482
3483 2011-09-20  Bruno Haible  <bruno@clisp.org>
3484
3485         select tests: EBADF tests.
3486         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3487         test_bad_fd): New functions.
3488         (test_function): Invoke also test_bad_fd.
3489
3490 2011-09-20  Bruno Haible  <bruno@clisp.org>
3491
3492         Tests for module 'posix_spawn_file_actions_addopen.
3493         * modules/posix_spawn_file_actions_addopen-tests: New file.
3494         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3495
3496         Tests for module 'posix_spawn_file_actions_adddup2'.
3497         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3498         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3499
3500         Tests for module 'posix_spawn_file_actions_addclose'.
3501         * modules/posix_spawn_file_actions_addclose-tests: New file.
3502         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3503
3504 2011-09-20  Bruno Haible  <bruno@clisp.org>
3505
3506         Tests for module 'unlockpt'.
3507         * modules/unlockpt-tests: New file.
3508         * tests/test-unlockpt.c: New file.
3509         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3510
3511         Tests for module 'grantpt'.
3512         * modules/grantpt-tests: New file.
3513         * tests/test-grantpt.c: New file.
3514         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3515
3516 2011-09-20  Bruno Haible  <bruno@clisp.org>
3517
3518         freopen tests: EBADF tests.
3519         * tests/test-freopen.c: Include errno.h, unistd.h.
3520         (main): Add tests for EBADF, commented out for the moment.
3521
3522         fclose tests: EBADF tests.
3523         * tests/test-fclose.c (main): Add tests for EBADF.
3524
3525         fflush tests: EBADF tests.
3526         * tests/test-fflush.c: Include errno.h, macros.h.
3527         (main): Add tests for EBADF.
3528
3529         ftello tests: EBADF tests.
3530         * tests/test-ftello4.sh: New file.
3531         * tests/test-ftello4.c: New file.
3532         * modules/ftello-tests (Files): Add them.
3533         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3534
3535         fseeko tests: EBADF tests.
3536         * tests/test-fseeko4.sh: New file.
3537         * tests/test-fseeko4.c: New file.
3538         * modules/fseeko-tests (Files): Add them.
3539         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3540
3541         Tests for function fputc().
3542         * modules/fputc-tests: New file.
3543         * tests/test-fputc.c: New file.
3544         * modules/stdio-tests (Depends-on): Add fputc-tests.
3545
3546         Tests for function fgetc().
3547         * modules/fgetc-tests: New file.
3548         * tests/test-fgetc.c: New file.
3549         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3550
3551         Tests for function fdopen().
3552         * modules/fdopen-tests: New file.
3553         * tests/test-fdopen.c: New file.
3554         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3555
3556         Tests for module 'vdprintf'.
3557         * modules/vdprintf-tests: New file.
3558         * tests/test-vdprintf.c: New file.
3559
3560         Tests for module 'dprintf'.
3561         * modules/dprintf-tests: New file.
3562         * tests/test-dprintf.c: New file.
3563
3564 2011-09-20  Bruno Haible  <bruno@clisp.org>
3565
3566         Tests for module 'ioctl'.
3567         * modules/ioctl-tests: New file.
3568         * tests/test-ioctl.c: New file.
3569
3570 2011-09-20  Bruno Haible  <bruno@clisp.org>
3571
3572         fcntl tests: EBADF tests.
3573         * tests/test-fcntl.c (main): Add more tests for EBADF.
3574
3575 2011-09-20  Bruno Haible  <bruno@clisp.org>
3576
3577         utimensat tests: EBADF tests.
3578         * tests/test-utimensat.c (main): Add tests for EBADF.
3579
3580         renameat tests: EBADF tests.
3581         * tests/test-renameat.c (main): Add tests for EBADF.
3582
3583         mkfifoat tests: EBADF tests.
3584         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3585
3586         readlinkat tests: EBADF tests.
3587         * tests/test-readlinkat.c (main): Add tests for EBADF.
3588
3589         symlinkat tests: EBADF tests.
3590         * tests/test-symlinkat.c (main): Add tests for EBADF.
3591
3592         linkat tests: EBADF tests.
3593         * tests/test-linkat.c (main): Add tests for EBADF.
3594
3595         Tests for module 'faccessat'.
3596         * modules/faccessat-tests: New file.
3597         * tests/test-faccessat.c: New file.
3598
3599         fdopendir tests: EBADF tests.
3600         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3601
3602         openat tests: EBADF tests.
3603         * tests/test-fchownat.c (main): Add tests for EBADF.
3604         * tests/test-fstatat.c (main): Likewise.
3605         * tests/test-mkdirat.c (main): Likewise.
3606         * tests/test-openat.c (main): Likewise.
3607         * tests/test-unlinkat.c (main): Likewise.
3608         * tests/test-fchmodat.c: New file.
3609         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3610         (Makefile.am): Also run 'test-fchmodat'.
3611
3612 2011-09-20  Bruno Haible  <bruno@clisp.org>
3613
3614         utimens, futimens, fdutimensat tests: EBADF tests.
3615         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3616
3617         Tests for function fstat().
3618         * modules/fstat-tests: New file.
3619         * tests/test-fstat.c: New file.
3620         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3621
3622 2011-09-20  Bruno Haible  <bruno@clisp.org>
3623
3624         test-ttyname_r tests: EBADF tests.
3625         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3626
3627         Tests for module 'isatty'.
3628         * modules/isatty-tests: New file.
3629         * tests/test-isatty.c: New file.
3630
3631         Tests for module 'write'.
3632         * modules/write-tests: New file.
3633         * tests/test-write.c: New file.
3634
3635         Tests for module 'read'.
3636         * modules/read-tests: New file.
3637         * tests/test-read.c: New file.
3638
3639         pwrite tests: EBADF tests.
3640         * tests/test-pwrite.c (main): Add tests for EBADF.
3641
3642         pread tests: EBADF tests.
3643         * tests/test-pread.c (main): Add tests for EBADF.
3644
3645         lseek tests: EBADF tests.
3646         * tests/test-lseek.c (main): Add more tests for EBADF.
3647
3648         Tests for module 'ftruncate'.
3649         * modules/ftruncate-tests: New file.
3650         * tests/test-ftruncate.sh: New file.
3651         * tests/test-ftruncate.c: New file.
3652
3653         fsync tests: EBADF tests.
3654         * tests/test-fsync.c (main): Add more tests for EBADF.
3655
3656         fdatasync tests: EBADF tests.
3657         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3658
3659         Tests for module 'fchown'.
3660         * modules/fchown-tests: New file.
3661         * tests/test-fchown.c: New file.
3662
3663         Tests for module 'fchmod'.
3664         * modules/fchmod-tests: New file.
3665         * tests/test-fchmod.c: New file.
3666
3667         fchdir tests: EBADF tests.
3668         * tests/test-fchdir.c (main): Add more tests for EBADF.
3669
3670         dup2 tests: EBADF tests.
3671         * tests/test-dup2.c (main): Add more tests for EBADF.
3672
3673         Tests for module 'dup'.
3674         * modules/dup-tests: New file.
3675         * tests/test-dup.c: New file.
3676
3677         Tests for module 'close'.
3678         * modules/close-tests: New file.
3679         * tests/test-close.c: New file.
3680
3681 2011-09-20  Bruno Haible  <bruno@clisp.org>
3682
3683         Tests for module 'shutdown'.
3684         * modules/shutdown-tests: New file.
3685         * tests/test-shutdown.c: New file.
3686
3687         Tests for module 'setsockopt'.
3688         * modules/setsockopt-tests: New file.
3689         * tests/test-setsockopt.c: New file.
3690
3691         Tests for module 'sendto'.
3692         * modules/sendto-tests: New file.
3693         * tests/test-sendto.c: New file.
3694
3695         Tests for module 'send'.
3696         * modules/send-tests: New file.
3697         * tests/test-send.c: New file.
3698
3699         Tests for module 'recvfrom'.
3700         * modules/recvfrom-tests: New file.
3701         * tests/test-recvfrom.c: New file.
3702
3703         Tests for module 'recv'.
3704         * modules/recv-tests: New file.
3705         * tests/test-recv.c: New file.
3706
3707         Tests for module 'listen'.
3708         * modules/listen-tests: New file.
3709         * tests/test-listen.c: New file.
3710
3711         Tests for module 'getsockopt'.
3712         * modules/getsockopt-tests: New file.
3713         * tests/test-getsockopt.c: New file.
3714
3715         Tests for module 'getsockname'.
3716         * modules/getsockname-tests: New file.
3717         * tests/test-getsockname.c: New file.
3718
3719         Tests for module 'getpeername'.
3720         * modules/getpeername-tests: New file.
3721         * tests/test-getpeername.c: New file.
3722
3723         Tests for module 'connect'.
3724         * modules/connect-tests: New file.
3725         * tests/test-connect.c: New file.
3726
3727         Tests for module 'bind'.
3728         * modules/bind-tests: New file.
3729         * tests/test-bind.c: New file.
3730
3731         accept4 tests: Fix for native Windows.
3732         * tests/test-accept4.c: Include sockets.h.
3733         (main): Invoke gl_sockets_startup.
3734         * modules/accept4-tests (Depends-on): Add sockets.
3735
3736         accept tests: Fix for native Windows.
3737         * tests/test-accept.c: Include sockets.h.
3738         (main): Invoke gl_sockets_startup.
3739         * modules/accept-tests (Depends-on): Add sockets.
3740
3741 2011-09-19  Bruno Haible  <bruno@clisp.org>
3742
3743         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3744         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3745         do...while(0).
3746         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3747         Suggested by Paul Eggert.
3748
3749 2011-09-19  Bruno Haible  <bruno@clisp.org>
3750
3751         sched: Ensure pid_t is defined.
3752         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3753         not define pid_t.
3754         * lib/sched.in.h: Include <sys/types.h>.
3755         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3757
3758 2011-09-19  Bruno Haible  <bruno@clisp.org>
3759
3760         msvc-inval: Ensure the entire expansion is a single statement.
3761         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3762         of braces.
3763
3764 2011-09-19  Jim Meyering  <meyering@redhat.com>
3765
3766         tests: use printf, not echo in init.sh's warn_ function
3767         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3768         misbehave when given strings containing a backslash or starting
3769         with e.g., -n.  James Youngman suggested setting IFS.
3770
3771 2011-09-19  Eric Blake  <eblake@redhat.com>
3772
3773         futimens: enhance test
3774         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3775         closed non-negative fd.
3776
3777         date: accept 'hence' as opposite of 'ago'
3778         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3779         * tests/test-parse-datetime.c (main): Enhance test.
3780         Suggested by Jesse Wilson.
3781
3782 2011-09-19  Jim Meyering  <meyering@redhat.com>
3783
3784         getcwd: don't fail in a deep directory on a system without openat
3785         Before this change, getcwd would fail when called from a directory
3786         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3787         the non-openat implementation used "..", "../..", "../../..", etc.
3788         to access ancestor directories.  With too many, that string would
3789         be longer than PATH_MAX.
3790         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3791         using gnulib's openat replacement.
3792         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3793         we're using the replacement function.
3794
3795 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3796
3797         maint.mk: avoid warnings from perl about missing files
3798         * top/maint.mk (def_sym_regex): Ignore files listed in
3799         $(gl_other_headers_) that do not exist, say because a project
3800         does not use a corresponding module.
3801
3802 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3803
3804         stat: use pathmax.h only if needed
3805         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3806         This is better for Emacs, which does not have a mingw port and
3807         therefore can avoid the pathmax module.
3808
3809         utimens: remove dependency on dup2
3810         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3811         to work around the Linux kernel bug.
3812         * modules/utimens (Depends-on): Remove dup2.
3813
3814 2011-09-18  Bruno Haible  <bruno@clisp.org>
3815
3816         inet_ntop, inet_pton: Look for it also in libresolv.
3817         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3818         libnsl, search for it in libresolv.
3819         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3820         Needed on Solaris 7.
3821
3822 2011-09-18  Bruno Haible  <bruno@clisp.org>
3823
3824         accept, accept4 tests: Avoid link error on Solaris.
3825         * modules/accept-tests (Makefile.am): Link test-accept against
3826         $(LIBSOCKET).
3827         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3828         $(LIBSOCKET).
3829
3830         accept4: Avoid link error on Solaris.
3831         * modules/accept4 (Link): New section.
3832
3833         socket functions: Avoid link errors on Solaris.
3834         * modules/accept (Depends-on): Add socketlib.
3835         (Link): New section.
3836         * modules/bind (Depends-on): Add socketlib.
3837         (Link): New section.
3838         * modules/connect (Depends-on): Add socketlib.
3839         (Link): New section.
3840         * modules/getpeername (Depends-on): Add socketlib.
3841         (Link): New section.
3842         * modules/getsockname (Depends-on): Add socketlib.
3843         (Link): New section.
3844         * modules/getsockopt (Depends-on): Add socketlib.
3845         (Link): New section.
3846         * modules/listen (Depends-on): Add socketlib.
3847         (Link): New section.
3848         * modules/recv (Depends-on): Add socketlib.
3849         (Link): New section.
3850         * modules/recvfrom (Depends-on): Add socketlib.
3851         (Link): New section.
3852         * modules/send (Depends-on): Add socketlib.
3853         (Link): New section.
3854         * modules/sendto (Depends-on): Add socketlib.
3855         (Link): New section.
3856         * modules/setsockopt (Depends-on): Add socketlib.
3857         (Link): New section.
3858         * modules/shutdown (Depends-on): Add socketlib.
3859         (Link): New section.
3860         * modules/socket (Depends-on): Add socketlib.
3861         (Link): New section.
3862
3863 2011-09-18  Bruno Haible  <bruno@clisp.org>
3864
3865         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3866         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3867         than 5 seconds.
3868         * modules/ptsname-tests (configure.ac): Test for alarm.
3869
3870 2011-09-18  Bruno Haible  <bruno@clisp.org>
3871
3872         posix_spawn_file_actions_add*: Fix module dependencies.
3873         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3874         posix_spawn_file_actions_init.
3875         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3876         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3877
3878 2011-09-18  Bruno Haible  <bruno@clisp.org>
3879
3880         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3881         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3882         * tests/test-renameat.c (main): Likewise.
3883
3884 2011-09-18  Bruno Haible  <bruno@clisp.org>
3885
3886         Tests for module 'accept4'.
3887         * modules/accept4-tests: New file.
3888         * tests/test-accept4.c: New file.
3889
3890 2011-09-18  Bruno Haible  <bruno@clisp.org>
3891
3892         Tests for module 'accept'.
3893         * modules/accept-tests: New file.
3894         * tests/test-accept.c: New file.
3895
3896 2011-09-18  Bruno Haible  <bruno@clisp.org>
3897
3898         dup2: Support for MSVC.
3899         * lib/dup2.c: Include msvc-inval.h.
3900         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3901         _get_osfhandle calls.
3902         * modules/dup2 (Depends-on): Add msvc-inval.
3903         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3904
3905         New module 'msvc-inval'.
3906         * lib/msvc-inval.h: New file.
3907         * lib/msvc-inval.c: New file.
3908         * m4/msvc-inval.m4: New file.
3909         * modules/msvc-inval: New file.
3910
3911 2011-09-17  Bruno Haible  <bruno@clisp.org>
3912
3913         Tests for module 'pclose'.
3914         * modules/pclose-tests: New file.
3915
3916         New module 'pclose'.
3917         * lib/stdio.in.h (pclose): New declaration.
3918         * lib/pclose.c: New file.
3919         * m4/pclose.m4: New file.
3920         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3921         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3922         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3923         * modules/pclose: New file.
3924         * modules/popen-tests (Depends-on): Add pclose.
3925         * modules/popen-safer-tests (Depends-on): Likewise.
3926         * doc/posix-functions/pclose.texi: Mention the new module.
3927
3928 2011-09-17  Bruno Haible  <bruno@clisp.org>
3929
3930         popen: Support for MSVC.
3931         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3932         * lib/popen.c (popen): Provide alternate definition for native Windows.
3933         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3935         * modules/popen (Depends-on, configure.ac): Update condition.
3936         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3937         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3938         fixed.
3939
3940 2011-09-17  Bruno Haible  <bruno@clisp.org>
3941
3942         isnanl, isnand, isnanf: Work around MSVC bug.
3943         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3944
3945 2011-09-17  Bruno Haible  <bruno@clisp.org>
3946
3947         sys_socket tests: Fix recent mistake.
3948         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3949
3950 2011-09-17  Bruno Haible  <bruno@clisp.org>
3951
3952         putenv: Support for MSVC.
3953         * modules/putenv (Depends-on): Add environ.
3954         * lib/putenv.c (environ): Disable declaration.
3955         * lib/unistd.in.h: Update comment.
3956
3957 2011-09-17  Bruno Haible  <bruno@clisp.org>
3958
3959         math: Avoid macro redefinition warnings on MSVC.
3960         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3961         Undefine before redefining.
3962
3963 2011-09-17  Bruno Haible  <bruno@clisp.org>
3964
3965         doc: Mention functions which are declared as macros.
3966         * doc/posix-functions/*[fl].texi: Mention that some functions are
3967         defined as macros with arguments only.
3968
3969 2011-09-17  Bruno Haible  <bruno@clisp.org>
3970
3971         Add dependencies to new dirent related modules.
3972         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3973         * modules/fts (Depends-on): Likewise.
3974         * modules/glob (Depends-on): Likewise.
3975         * modules/savedir (Depends-on): Likewise.
3976         * modules/scandir (Depends-on): Likewise.
3977         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3978         * modules/fdopendir (Depends-on): Add opendir.
3979
3980 2011-09-17  Bruno Haible  <bruno@clisp.org>
3981
3982         inet_pton: Support for MSVC on Windows Vista or newer.
3983         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3984         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3985         HAVE_DECL_INET_PTON is defined.
3986         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3987         On platforms with <winsock2.h>, test whether inet_pton is declared in
3988         <ws2tcpip.h>. If so, arrange to replace it.
3989         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3990         REPLACE_INET_PTON.
3991         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3992         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3993         (Depends-on, configure.ac): Update condition.
3994         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3995
3996 2011-09-17  Bruno Haible  <bruno@clisp.org>
3997
3998         inet_ntop: Support for MSVC on Windows Vista or newer.
3999         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4000         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4001         HAVE_DECL_INET_NTOP is defined.
4002         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4003         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4004         <ws2tcpip.h>. If so, arrange to replace it.
4005         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4006         REPLACE_INET_NTOP.
4007         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4008         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4009         (Depends-on, configure.ac): Update condition.
4010         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4011
4012 2011-09-16  Eric Blake  <eblake@redhat.com>
4013
4014         test-fsync: yet another enhancement
4015         * tests/test-fsync.c (main): Also test behavior on read-only text
4016         file.
4017
4018 2011-09-16  Bruno Haible  <bruno@clisp.org>
4019
4020         Enhance fsync, fdatasync tests.
4021         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4022         * tests/test-fdatasync.c (main): Likewise.
4023
4024 2011-09-16  Bruno Haible  <bruno@clisp.org>
4025
4026         Support for MSVC compiler: Ensure mode_t gets defined.
4027         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4028         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4029         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4030         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4031         * tests/test-fcntl-h.c: Check that mode_t is defined.
4032         * tests/test-sys_stat.c: Likewise.
4033         * tests/test-sys_types.c: Likewise.
4034         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4035         * doc/posix-headers/sys_stat.texi: Likewise.
4036         * doc/posix-headers/sys_types.texi: Likewise.
4037
4038 2011-09-16  Bruno Haible  <bruno@clisp.org>
4039
4040         sys_stat: Support for MSVC.
4041         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4042         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4043         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4044         MSVC.
4045
4046 2011-09-16  Bruno Haible  <bruno@clisp.org>
4047
4048         Support for MSVC compiler: Ensure off_t gets defined.
4049         * lib/unistd.in.h: Include <sys/types.h>.
4050         * tests/test-fcntl-h.c: Check that off_t is defined.
4051         * tests/test-sys_stat.c: Likewise.
4052         * tests/test-sys_types.c: Likewise.
4053
4054 2011-09-16  Eric Blake  <eblake@redhat.com>
4055
4056         fdatasync: port to Solaris
4057         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4058         * modules/fdatasync (Link): Document it.
4059         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4060
4061         fdatasync: port to MacOS X 10.7
4062         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4063         declared.
4064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4065         * modules/unistd (Makefile.am): Substitute it.
4066         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4067         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4068
4069         fdatasync: minor improvements
4070         * modules/fdatasync (Depends-on): Add condition for fsync.
4071         * lib/fdatasync.c (fdatasync): Add comment.
4072         * tests/test-unistd-c++.cc: Test fdatasync.
4073
4074         unistd: update refs to newer POSIX
4075         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4076         Suggested by Bruno Haible.
4077
4078         fdatasync: new module
4079         * modules/fsync (Description): Document difference to fdatasync.
4080         * modules/fdatasync: New module.
4081         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4082         * lib/fdatasync.c (fdatasync): Likewise.
4083         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4084         defaults.
4085         * modules/unistd (Makefile.am): Set witnesses.
4086         * lib/unistd.in.h (fdatasync): Declare.
4087         * MODULES.html.sh: Document it.
4088         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4089         * modules/fdatasync-tests: New test.
4090         * tests/test-fdatasync.c: Likewise.
4091
4092 2011-09-16  Eric Blake  <eblake@redhat.com>
4093
4094         test-fsync: enhance tests
4095         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4096         * tests/test-fsync.c (main): Enhance test.
4097
4098 2011-09-15  Bruno Haible  <bruno@clisp.org>
4099
4100         Support for MSVC compiler: Ensure ssize_t gets defined.
4101         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4102         * doc/posix-headers/stdio.texi: Likewise.
4103         * modules/stdio (Depends-on): Add ssize_t.
4104         * modules/sys_socket (Depends-on): Likewise.
4105         * modules/sys_types (Depends-on): Likewise.
4106         * modules/sys_uio (Depends-on): Likewise.
4107         * modules/unistd (Depends-on): Likewise.
4108         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4109         * tests/test-sys_types.c: Check that ssize_t is defined.
4110
4111 2011-09-14  Bruno Haible  <bruno@clisp.org>
4112
4113         Avoid using #, the m4 comment starter character, near brackets.
4114         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4115         delimiter character in sed expressions.
4116         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4117         Suggested by Eric Blake.
4118
4119         Properly quote AC_CHECK_DECLS' 4th argument.
4120         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4121         argument.
4122         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4123         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4124         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4125         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4126         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4127         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4128         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4129         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4130         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4131         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4132         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4133         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4134         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4135         * m4/isinf.m4 (gl_ISINF): Likewise.
4136         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4137         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4138         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4139         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4140         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4141         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4142         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4143         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4144         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4145         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4146         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4147         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4148         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4149         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4150         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4151         Reported by Eric Blake.
4152
4153         Properly quote AC_CHECK_DECL's 4th argument.
4154         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4155         argument.
4156         * m4/argp.m4 (gl_ARGP): Likewise.
4157         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4158         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4159         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4160         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4161         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4162         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4163         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4164         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4165         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4166         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4167         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4168         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4169         Reported by Eric Blake.
4170
4171 2011-09-14  Eric Blake  <eblake@redhat.com>
4172
4173         opendir: avoid compile warning
4174         * lib/opendir.c (includes): Always include errno.h.
4175         Reported by Tatsuro MATSUOKA.
4176
4177 2011-09-14  Jim Meyering  <meyering@redhat.com>
4178
4179         maint.mk: sc_tight_scope: propagate failure from sub-make
4180         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4181         Reported by Martin von Gagern.
4182
4183 2011-09-13  Bruno Haible  <bruno@clisp.org>
4184
4185         tempname: Support for MSVC.
4186         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4187         MSVC.
4188         * modules/tempname (Depends-on): Add fcntl-h.
4189
4190 2011-09-13  Bruno Haible  <bruno@clisp.org>
4191
4192         sys_time: Support for MSVC.
4193         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4194         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4195         include <winsock2.h>.
4196         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4197         function declarations that collide with POSIX.
4198         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4199         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4200
4201 2011-09-13  Bruno Haible  <bruno@clisp.org>
4202
4203         stat: Support for MSVC.
4204         * lib/stat.c: Include pathmax.h.
4205         * modules/stat (Depends-on): Add pathmax.
4206
4207         pathmax: Support for native Windows.
4208         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4209
4210 2011-09-12  Bruno Haible  <bruno@clisp.org>
4211
4212         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4213         * lib/dirent.in.h (struct dirent): New type.
4214         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4215         DT_WHT): New macros.
4216         (DIR): New type.
4217         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4218         (readdir, rewinddir): New declarations.
4219         * lib/dirent-private.h: New file.
4220         * lib/opendir.c: New file.
4221         * lib/readdir.c: New file.
4222         * lib/rewinddir.c: New file.
4223         * lib/closedir.c: New file.
4224         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4225         * m4/opendir.m4: New file.
4226         * m4/readdir.m4: New file.
4227         * m4/rewinddir.m4: New file.
4228         * m4/closedir.m4: New file.
4229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4230         REPLACE_CLOSEDIR here.
4231         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4232         readdir, rewinddir are declared.
4233         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4234         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4235         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4236         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4237         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4238         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4239         * modules/opendir: New file.
4240         * modules/readdir: New file.
4241         * modules/rewinddir: New file.
4242         * modules/closedir: New file.
4243         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4244         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4245         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4246         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4247         * NEWS: Mention the 'fchdir' change.
4248
4249 2011-09-11  Bruno Haible  <bruno@clisp.org>
4250
4251         asm-underscore.m4: Support for MSVC.
4252         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4253         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4254
4255 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4256
4257         Doc about crypt functions.
4258         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4259         needing for _GNU_SOURCE to get crypt.
4260         * doc/posix-functions/encrypt.texi: Likewise.
4261         * doc/posix-functions/setkey.texi: Likewise.
4262
4263 2011-09-11  Bruno Haible  <bruno@clisp.org>
4264
4265         doc: Update regarding MSVC 9.
4266         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4267         tested".
4268         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4269         * doc/posix-headers/*.texi: Likewise.
4270         * doc/pastposix-functions/*.texi: Likewise.
4271         * doc/glibc-functions/*.texi: Likewise.
4272         * doc/glibc-headers/*.texi: Likewise.
4273
4274 2011-09-11  Bruno Haible  <bruno@clisp.org>
4275
4276         unistd et al.: Don't assume <unistd.h> exists.
4277         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4278         does not exist.
4279         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4280         exist. But include <stdlib.h>.
4281         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4282         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4283         symlink() does not exist.
4284         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4285         include <io.h> instead.
4286         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4287         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4288         include <direct.h> instead.
4289         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4290         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4291         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4292         <io.h> instead.
4293         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4294         correctly if the system does not have hard links.
4295         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4296         <direct.h> instead.
4297         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4298         it when looking for function declarations.
4299         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4300         <direct.h> and <io.h> instead.
4301         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4302
4303 2011-09-11  Bruno Haible  <bruno@clisp.org>
4304
4305         strcase: Support for MSVC.
4306         * modules/strcase (Status, Notice): Remove obsoletion mark.
4307         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4308         * doc/posix-functions/strncasecmp.texi: Likewise.
4309
4310         strings: Don't assume <strings.h> exists.
4311         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4312         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4313         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4314         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4315
4316 2011-09-11  Bruno Haible  <bruno@clisp.org>
4317
4318         dirent: Don't assume <dirent.h> exists.
4319         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4320         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4321         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4322         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4323
4324 2011-09-11  Bruno Haible  <bruno@clisp.org>
4325
4326         Fix wint_t on MSVC.
4327         * lib/wchar.in.h (wint_t): On MSVC, override it.
4328         * lib/wctype.in.h (wint_t): Likewise.
4329         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4330         MSVC.
4331         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4332         * doc/posix-headers/wctype.texi: Likewise.
4333
4334 2011-09-11  Bruno Haible  <bruno@clisp.org>
4335
4336         sys_types: Fix typo.
4337         * lib/sys_types.in.h: Fix typo in comment.
4338         Reported by Paul Eggert.
4339
4340         Support for MSVC compiler: Ensure size_t gets defined.
4341         * modules/strings (Depends-on): Add 'sys_types'.
4342         * modules/sys_uio (Depends-on): Likewise.
4343         * lib/sys_uio.in.h: Update comment.
4344
4345         C++ tests for module 'sys_types'.
4346         * modules/sys_types-c++-tests: New file.
4347         * tests/test-sys_types-c++.cc: New file.
4348
4349         Tests for module 'sys_types'.
4350         * modules/sys_types-tests: New file.
4351         * tests/test-sys_types.c: New file.
4352
4353         New module 'sys_types'.
4354         * lib/sys_types.in.h: New file.
4355         * m4/sys_types_h.m4: New file.
4356         * modules/sys_types: New file.
4357         * doc/posix-headers/sys_types.texi: Mention the new module and the
4358         size_t problem on MSVC 9.
4359
4360 2011-09-11  Bruno Haible  <bruno@clisp.org>
4361
4362         Support for MSVC compiler: Avoid division by a literal 0.
4363         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4364         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4365         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4366         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4367         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4368         * tests/infinity.h: New file.
4369         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4370         on MSVC.
4371         * tests/test-ceilf1.c: Include infinity.h.
4372         (main): Use Infinityf.
4373         * tests/test-ceil1.c: Include infinity.h.
4374         (main): Use Infinityd.
4375         * tests/test-ceill.c: Include infinity.h.
4376         (main): Use Infinityl.
4377         * tests/test-dprintf-posix.c: Include infinity.h.
4378         (test_function): Use Infinityd.
4379         * tests/test-floorf1.c: Include infinity.h.
4380         (main): Use Infinityf.
4381         * tests/test-floor1.c: Include infinity.h.
4382         (main): Use Infinityd.
4383         * tests/test-floorl.c: Include infinity.h.
4384         (main): Use Infinityl.
4385         * tests/test-fprintf-posix.c: Include infinity.h.
4386         (test_function): Use Infinityd.
4387         * tests/test-frexp.c: Include infinity.h.
4388         (main): Use Infinityd.
4389         * tests/test-frexpl.c: Include infinity.h.
4390         (main): Use Infinityl.
4391         * tests/test-isfinite.c: Include infinity.h.
4392         (test_isfinitef): Use Infinityf.
4393         (test_isfinited): Use Infinityd.
4394         (test_isfinitel): Use Infinityl.
4395         * tests/test-isinf.c: Include infinity.h.
4396         (test_isinff): Use Infinityf.
4397         (test_isinfd): Use Infinityd.
4398         (test_isinfl): Use Infinityl.
4399         * tests/test-isnan.c: Include infinity.h.
4400         (test_float): Use Infinityf.
4401         (test_double): Use Infinityd.
4402         (test_long_double): Use Infinityl.
4403         * tests/test-isnanf.h: Include infinity.h.
4404         (main): Use Infinityf.
4405         * tests/test-isnand.h: Include infinity.h.
4406         (main): Use Infinityd.
4407         * tests/test-isnanl.h: Include infinity.h.
4408         (main): Use Infinityl.
4409         * tests/test-ldexpl.c: Include infinity.h.
4410         (main): Use Infinityl.
4411         * tests/test-printf-posix.h: Include infinity.h.
4412         (test_function): Use Infinityd.
4413         * tests/test-roundf1.c: Include infinity.h.
4414         (main): Use Infinityf.
4415         * tests/test-round1.c: Include infinity.h.
4416         (main): Use Infinityd.
4417         * tests/test-roundl.c: Include infinity.h.
4418         (main): Use Infinityl.
4419         * tests/test-signbit.c: Include infinity.h.
4420         (test_signbitf): Use Infinityf.
4421         (test_signbitd): Use Infinityd.
4422         (test_signbitl): Use Infinityl.
4423         * tests/test-snprintf-posix.h: Include infinity.h.
4424         (test_function): Use Infinityd, Infinityl.
4425         * tests/test-sprintf-posix.h: Include infinity.h.
4426         (test_function): Use Infinityd, Infinityl.
4427         * tests/test-truncf1.c: Include infinity.h.
4428         (main): Use Infinityf.
4429         * tests/test-trunc1.c: Include infinity.h.
4430         (main): Use Infinityd.
4431         * tests/test-truncl.c: Include infinity.h.
4432         (main): Use Infinityl.
4433         * tests/test-vasnprintf-posix.c: Include infinity.h.
4434         (test_function): Use Infinityd, Infinityl.
4435         * tests/test-vasprintf-posix.c: Include infinity.h.
4436         (test_function): Use Infinityd, Infinityl.
4437         * modules/ceilf-tests (Files): Add tests/infinity.h.
4438         * modules/ceil-tests (Files): Likewise.
4439         * modules/ceill-tests (Files): Likewise.
4440         * modules/dprintf-posix-tests (Files): Likewise.
4441         * modules/floorf-tests (Files): Likewise.
4442         * modules/floor-tests (Files): Likewise.
4443         * modules/floorl-tests (Files): Likewise.
4444         * modules/fprintf-posix-tests (Files): Likewise.
4445         * modules/frexp-tests (Files): Likewise.
4446         * modules/frexp-nolibm-tests (Files): Likewise.
4447         * modules/frexpl-tests (Files): Likewise.
4448         * modules/frexpl-nolibm-tests (Files): Likewise.
4449         * modules/isfinite-tests (Files): Likewise.
4450         * modules/isinf-tests (Files): Likewise.
4451         * modules/isnan-tests (Files): Likewise.
4452         * modules/isnanf-tests (Files): Likewise.
4453         * modules/isnanf-nolibm-tests (Files): Likewise.
4454         * modules/isnand-tests (Files): Likewise.
4455         * modules/isnand-nolibm-tests (Files): Likewise.
4456         * modules/isnanl-tests (Files): Likewise.
4457         * modules/isnanl-nolibm-tests (Files): Likewise.
4458         * modules/ldexpl-tests (Files): Likewise.
4459         * modules/printf-posix-tests (Files): Likewise.
4460         * modules/roundf-tests (Files): Likewise.
4461         * modules/round-tests (Files): Likewise.
4462         * modules/roundl-tests (Files): Likewise.
4463         * modules/signbit-tests (Files): Likewise.
4464         * modules/snprintf-posix-tests (Files): Likewise.
4465         * modules/sprintf-posix-tests (Files): Likewise.
4466         * modules/truncf-tests (Files): Likewise.
4467         * modules/trunc-tests (Files): Likewise.
4468         * modules/truncl-tests (Files): Likewise.
4469         * modules/vasnprintf-posix-tests (Files): Likewise.
4470         * modules/vasprintf-posix-tests (Files): Likewise.
4471         * modules/vdprintf-posix-tests (Files): Likewise.
4472         * modules/vfprintf-posix-tests (Files): Likewise.
4473         * modules/vprintf-posix-tests (Files): Likewise.
4474         * modules/vsnprintf-posix-tests (Files): Likewise.
4475         * modules/vsprintf-posix-tests (Files): Likewise.
4476         * modules/xprintf-posix-tests (Files): Likewise.
4477
4478 2011-09-11  Bruno Haible  <bruno@clisp.org>
4479
4480         Ensure pid_t gets defined.
4481         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4482         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4483         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4484         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4485         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4486         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4487         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4488         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4489         * tests/test-fcntl-h.c: Check that pid_t is defined.
4490         * tests/test-sched.c: Likewise.
4491         * tests/test-termios.c: Likewise.
4492         * tests/test-time.c: Likewise.
4493         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4494         * doc/posix-headers/signal.texi: Likewise.
4495         * doc/posix-headers/sys_types.texi: Likewise.
4496         * doc/posix-headers/time.texi: Likewise.
4497
4498 2011-09-11  Bruno Haible  <bruno@clisp.org>
4499
4500         acl: Fix compilation on Solaris 10 (older version).
4501         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4502         of ACE_EVERYONE.
4503         * lib/set-mode-acl.c (qset_acl): Likewise.
4504         Reported by Christian Jullien <eligis@orange.fr>.
4505
4506 2011-09-10  Bruno Haible  <bruno@clisp.org>
4507
4508         iconv, unsetenv: Add support for MSVC compiler.
4509         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4510         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4511
4512 2011-09-10  Bruno Haible  <bruno@clisp.org>
4513
4514         *printf: Add support for MSVC compiler.
4515         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4516         handles the exception caused by the %n directive. When cross-compiling,
4517         guess no on native Windows.
4518         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4519         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4520         emulate it through vsnprintf.
4521         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4522         * doc/posix-functions/dprintf.texi: Update documentation regarding
4523         MSVC 9.
4524         * doc/posix-functions/fprintf.texi: Likewise.
4525         * doc/posix-functions/printf.texi: Likewise.
4526         * doc/posix-functions/snprintf.texi: Likewise.
4527         * doc/posix-functions/sprintf.texi: Likewise.
4528         * doc/posix-functions/swprintf.texi: Likewise.
4529         * doc/posix-functions/vdprintf.texi: Likewise.
4530         * doc/posix-functions/vfprintf.texi: Likewise.
4531         * doc/posix-functions/vprintf.texi: Likewise.
4532         * doc/posix-functions/vsnprintf.texi: Likewise.
4533         * doc/posix-functions/vsprintf.texi: Likewise.
4534         * doc/glibc-functions/asprintf.texi: Likewise.
4535         * doc/glibc-functions/obstack_printf.texi: Likewise.
4536         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4537         * doc/glibc-functions/vasprintf.texi: Likewise.
4538
4539 2011-09-10  Bruno Haible  <bruno@clisp.org>
4540
4541         nocrash: Add support for native Windows.
4542         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4543
4544 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4545             Bruno Haible  <bruno@clisp.org>
4546
4547         absolute-header, include-next: Add support for MSVC compiler.
4548         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4549         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4550         directory separator in #line directives.
4551         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4552         recognize also backslash as directory separator in #line directives.
4553
4554 2011-09-08  Jim Meyering  <meyering@redhat.com>
4555
4556         maint.mk: mark the post-release commit log with "maint: " prefix
4557         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4558         one-line commit-log summary.
4559
4560 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4561             Bruno Haible  <bruno@clisp.org>
4562
4563         Doc about crypt functions.
4564         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4565         systems.
4566         * doc/posix-functions/encrypt.texi: Likewise.
4567         * doc/posix-functions/setkey.texi: Likewise.
4568
4569 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4570
4571         * lib/gc.h: Fix copyright header.
4572
4573 2011-09-07  Bruno Haible  <bruno@clisp.org>
4574
4575         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4576         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4577         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4578
4579 2011-09-07  Bruno Haible  <bruno@clisp.org>
4580
4581         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4582         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4583         * lib/freopen.c: Likewise.
4584         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4585         * lib/lstat.c: Likewise.
4586         * lib/stat.c: Likewise.
4587         * lib/open.c: Use different syntax for include of <fcntl.h>.
4588         * lib/openat.c: Include fcntl.h again, explicitly.
4589
4590 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4591
4592         parse-datetime: document the newly accepted format
4593         * doc/parse-datetime.texi (Combined date and time of day items):
4594         New section.
4595
4596 2011-09-06  Bruno Haible  <bruno@clisp.org>
4597
4598         acl: Fix a test failure on newer Solaris 10 with ZFS.
4599         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4600         ENOSYS as no ACL.
4601         Reported by Jim Meyering.
4602
4603 2011-09-06  Bruno Haible  <bruno@clisp.org>
4604
4605         acl: Update for AIX >= 5.3 with NFS.
4606         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4607         ENOSYS as no ACL.
4608
4609         acl: Fix a test failure on AIX >= 5.3 with NFS.
4610         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4611         as no ACL.
4612
4613 2011-09-06  Bruno Haible  <bruno@clisp.org>
4614
4615         acl: Fix a test failure on IRIX 6.5 with NFS.
4616         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4617         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4618         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4619         * lib/copy-acl.c (qcopy_acl): Likewise.
4620
4621 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4622
4623         openat: port to AIX 7.1 with large files
4624         AIX 7.1 does a "#define openat open64at" if large files are in use,
4625         so we can't simply #undef openat.  Use the orig_openat trick (similar
4626         to orig_open in lib/open.c) to work around the problem.  Problem
4627         reported by Kevin Brott for GNU tar, in the thread containing
4628         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4629         * lib/openat.c (__need_system_fcntl_h): Define first.
4630         Include <fcntl.h> and <sys/types.h> before undefining.
4631         (orig_openat) [HAVE_OPENAT]: New inline function.
4632         (openat) [HAVE_OPENAT]: Do not undef.
4633         (rpl_openat): Use orig_openat, not openat.
4634
4635 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4636             Bruno Haible  <bruno@clisp.org>
4637
4638         acl: Avoid errors on NonStop Kernel.
4639         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4640         ENOTSUP errors.
4641
4642 2011-09-05  Bruno Haible  <bruno@clisp.org>
4643
4644         acl: Clean up Solaris code.
4645         * lib/acl-internal.h: Remove no-op #if.
4646         * lib/file-has-acl.c: Likewise.
4647         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4648         * lib/copy-acl.c (qcopy_acl): Likewise.
4649
4650 2011-09-05  Bruno Haible  <bruno@clisp.org>
4651
4652         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4653         binaries built on the original Solaris 10.
4654         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4655         trivial.
4656
4657 2011-09-05  Bruno Haible  <bruno@clisp.org>
4658
4659         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4660         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4661         10.
4662         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4663         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4664         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4665         instead of acl_get, facl_get, acl_set, facl_set.
4666
4667 2011-09-05  Bruno Haible  <bruno@clisp.org>
4668
4669         copy-file: Try unit tests on more file systems.
4670         * tests/test-copy-file-1.sh: New file.
4671         * tests/test-copy-file-2.sh: New file.
4672         * modules/copy-file-tests (Files): Add them.
4673         (Makefile.am): Add them to TESTS.
4674
4675         acl: Try unit tests on more file systems.
4676         * tests/test-file-has-acl-1.sh: New file.
4677         * tests/test-file-has-acl-2.sh: New file.
4678         * tests/test-set-mode-acl-1.sh: New file.
4679         * tests/test-set-mode-acl-2.sh: New file.
4680         * tests/test-copy-acl-1.sh: New file.
4681         * tests/test-copy-acl-2.sh: New file.
4682         * modules/acl-tests (Files): Add them.
4683         (Makefile.am): Add them to TESTS.
4684
4685 2011-09-04  Bruno Haible  <bruno@clisp.org>
4686
4687         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4688         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4689         10.
4690         (OLD_ALLOW, OLD_DENY): New macros.
4691         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4692         ACE_ACCESS_ALLOWED_ACE_TYPE.
4693         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4694         ACE_ACCESS_DENIED_ACE_TYPE.
4695         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4696         (NEW_ACE_EXECUTE): Fix value.
4697         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4698         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4699         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4700         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4701         NEW_ACE_SYNCHRONIZE): New macros.
4702         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4703         instead of acl_fromtext, acl_set, facl_set.
4704         Fixes a coreutils/tests/cp/perm failure.
4705
4706 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4707
4708         openat: test for fstatat (..., 0) bug
4709         Further testing with tar suggests that fstatat (..., 0)
4710         does not work in general, on AIX 7.1; see
4711         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4712         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4713         replacement fstatat (which is what older AIX releases were using
4714         anyway).
4715         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4716         use is now changed to orig_fstatat.  This was probably the right
4717         thing to do anyway.
4718         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4719         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4720         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4721         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4722         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4723         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4724         if the bug is found.
4725
4726         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4727         This tests for another fstatat bug on AIX 7.1:
4728         fstatat (AT_FDCWD, ..., 0) does not work.  See
4729         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4730         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4731         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4732         (rpl_fstatat): Adjust so that it works around either (or both)
4733         bugs if present.
4734         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4735
4736 2011-09-03  Karl Berry  <karl@gnu.org>
4737
4738         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4739         in index entries.
4740
4741 2011-09-02  Bruno Haible  <bruno@clisp.org>
4742
4743         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4744         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4745         values of AR, ARFLAGS, RANLIB.
4746         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4747
4748 2011-09-02  Bruno Haible  <bruno@clisp.org>
4749
4750         Find 'ar' program that fits with --host argument.
4751         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4752
4753 2011-09-02  Bruno Haible  <bruno@clisp.org>
4754
4755         tests: init.sh: Support any non-GNU diff.
4756         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4757         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4758         Solaris 8.
4759
4760 2011-09-02  Bruno Haible  <bruno@clisp.org>
4761
4762         tests: init.sh: work also with any non-GNU diff that supports -u
4763         * tests/init.sh: Relax check for diff -u support.
4764         Rather than checking for GNU diff via --version, simply check
4765         for support for -u itself.  Useful at least on OpenBSD 4.9,
4766         AIX 7.1, IRIX 6.5, and Solaris 10.
4767
4768 2011-09-01  Bruno Haible  <bruno@clisp.org>
4769
4770         strtoimax, strtoumax: Document problem on HP-UX 11.
4771         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4772         * doc/posix-functions/strtoumax.texi: Likewise.
4773
4774 2011-09-01  Bruno Haible  <bruno@clisp.org>
4775
4776         strtoumax: Avoid link error on OSF/1 with DTK cc.
4777         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4778         defined as a function.
4779         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4780         strtoumax is defined, not whether it is declared.
4781
4782 2011-09-01  Bruno Haible  <bruno@clisp.org>
4783
4784         strtoimax: Avoid link error on OSF/1 with DTK cc.
4785         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4786         defined as a function.
4787         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4788         strtoimax is defined, not whether it is declared.
4789
4790 2011-09-01  Bruno Haible  <bruno@clisp.org>
4791
4792         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4793         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4794         as a function.
4795         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4796         whether it is declared.
4797
4798 2011-09-01  Bruno Haible  <bruno@clisp.org>
4799
4800         imaxabs: Avoid link error on OSF/1 with DTK cc.
4801         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4802         as a function.
4803         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4804         whether it is declared.
4805
4806 2011-09-01  Bruno Haible  <bruno@clisp.org>
4807
4808         Tests for module 'strtoumax'.
4809         * modules/strtoumax-tests: New file.
4810         * tests/test-strtoumax.c: New file.
4811
4812         Tests for module 'strtoimax'.
4813         * modules/strtoimax-tests: New file.
4814         * tests/test-strtoimax.c: New file.
4815
4816         Tests for module 'imaxdiv'.
4817         * modules/imaxdiv-tests: New file.
4818         * tests/test-imaxdiv.c: New file.
4819
4820         Tests for module 'imaxabs'.
4821         * modules/imaxabs-tests: New file.
4822         * tests/test-imaxabs.c: New file.
4823
4824 2011-09-01  Bruno Haible  <bruno@clisp.org>
4825
4826         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4827         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4828         pthread_create.
4829
4830 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4831
4832         openat: work around AIX 7.1 fstatat issue
4833         This should fix the problem that was not properly fixed
4834         in the previous change, dated 2011-08-30.
4835         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4836         __need_system_stat_h defined.
4837         (orig_fstatat) [HAVE_FSTATAT]: New function.
4838         (rpl_fstatat): Go back to the old way of doing things,
4839         except call orig_fstatat instead of fstatat.
4840         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4841         Remove unnecessary check whether fstatat fills in st_size etc.
4842
4843 2011-09-01  Bruno Haible  <bruno@clisp.org>
4844
4845         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4846         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4847         just include the system's header.
4848
4849 2011-08-31  Jim Meyering  <meyering@redhat.com>
4850
4851         tests: avoid spurious assertion failure in test-float.c on ppc64
4852         * tests/test-float.c (test_long_double): Comment out an assertion,
4853         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4854         with gcc-4.4.4.
4855
4856         maint: indent with spaces, not TABs
4857         I need to get in the habit of running gnulib's "make check".
4858         Both of these would have been caught.
4859         * m4/largefile.m4: Indent with spaces, not TABs.
4860         * lib/parse-datetime.y (iso_8601_time): Likewise.
4861         Spotted by Pádraig Brady.
4862
4863         test-parse-datetime.c: accommodate a relatively strict gcc warning
4864         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4865         to avoid a warning from gcc's -Werror=missing-declarations.
4866         Insert a few spaces-before-funcall-parenthesis.
4867
4868 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4869
4870         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4871         The parser now accepts ISO 8601 date-time strings with "T" as the
4872         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4873         with a space between the date and time strings.  Now it also parses
4874         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4875         variants like "2004-02-29T16:21:42.333-07:00"
4876         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4877         of day representation using the 'T' separator character.
4878         * doc/parse-datetime.texi (General date syntax): replace use of
4879         deprecated --iso-8601 option with --rfc-3339 in example of date
4880         command output formats that can be parsed.
4881         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4882         lib/parse-datetime.y.
4883         (gmt_offset): New function.
4884         (main): Add additional test cases to validate ISO8601 extended
4885         date and time of day parsing.
4886
4887 2011-08-31  Bruno Haible  <bruno@clisp.org>
4888
4889         freopen: Documentation.
4890         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4891         name.
4892         Reported by Claudio Bley <claudio.bley@gmail.com>.
4893
4894 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4895
4896         freopen: Don't crash if the filename argument is NULL.
4897         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4898         NULL.
4899
4900 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4901
4902         openat: work around AIX 7.1 fstatat bug
4903         Problem reported by Kevin Brott for GNU tar, in the thread containing
4904         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4905         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4906         FSTATAT_ST_SIZE_ETC_BROKEN.
4907         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4908         rpl_fstatat.
4909         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4910         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4911         AC_CHECK_FUNCS_ONCE for fstatat.
4912         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4913         fchmodat, mkdirat, openat and unlinkat.
4914
4915 2011-08-30  Bruno Haible  <bruno@clisp.org>
4916
4917         Avoid endless recursions if config.h includes some header files.
4918         * lib/fopen.c (__need_FILE): Define already before including config.h.
4919         * lib/freopen.c (__need_FILE): Likewise.
4920         * lib/open.c (__need_system_fcntl_h): Likewise.
4921         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4922         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4923         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4924
4925 2011-08-25  Karl Berry  <karl@gnu.org>
4926
4927         * config/srclist.txt (ylwrap): new try.
4928         * build-aux/ylwrap: new file.
4929
4930 2011-08-23  Bruno Haible  <bruno@clisp.org>
4931
4932         tmpdir: Use a good default directory on native Windows.
4933         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4934         (P_tmpdir): Default to _P_tmpdir on native Windows.
4935         (path_search): On native Windows, try the value returned by GetTempPath
4936         before trying P_tmpdir.
4937         * modules/tmpdir (Depends-on): Add pathmax.
4938         Suggested by John Darrington <john@darrington.wattle.id.au>.
4939
4940 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4941
4942         doc: fix typo in README-release
4943         * top/README-release: Capitalize first word of a sentence.
4944
4945 2011-08-19  Jim Meyering  <meyering@redhat.com>
4946
4947         fts: do not exhaust memory when processing million-entry directories
4948         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4949         directory would require about 256*N bytes of memory.  Thus, it was
4950         easy to construct a directory too large to be processed by any of
4951         those tools.  With this change, fts' maximum memory utilization is
4952         now limited to around 30MB.
4953         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4954         (fts_read): When we've processed the final entry (i.e., when
4955         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4956         using the parent entry to read any remaining entries.  Dispatch
4957         depending on what fts_build returns:
4958         - NULL+stop, aka failure: stop
4959         - NULL otherwise: move up in the dir hierarchy
4960         - non-NULL: handle this new entry
4961         (fts_build): Declare and use new local, continue_readdir.
4962         Prepare to be called from fts_read, when the entries
4963         from a partially-read directory have just been exhausted.
4964         In that case, we'll skip the opendir and instead use the parent's
4965         fts_dirp and derive dir_fd from that.
4966         Finally, in the readdir loop, if we read max_entries entries,
4967         exit the loop ensuring *not* to call closedir.  This is required
4968         so that fts_dirp can be reused on a subsequent call.
4969         Prompted by Ben England's report of memory exhaustion in find
4970         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4971
4972         maint: fts: move decl of `dp' down into while loop; split a long line
4973         * lib/fts.c (fts_build): No semantic change.
4974
4975         fts: add/use new struct member, fts_dirp
4976         We are about to use this to manage any directory with
4977         too many entries to read all of them into memory at once.
4978         To do that, we'll need to save the DIR* pointer in each
4979         affected FTSENT struct.
4980         * lib/fts_.h: Include <dirent.h>.
4981         (struct FTSENT) [fts_dirp]: New member.
4982         * lib/fts.c (closedir_and_clear): Define.
4983         Use it in place of closedir so that we are sure to
4984         clear the new fts_dirp member when done with it.
4985         (fts_alloc): Initialize the new member.
4986         (fts_lfree): Free, if needed.
4987
4988         maint: fts: give __opendir2 a new parameter and rename
4989         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4990         than surreptitiously using sole caller's "dir_fd".
4991         (fts_opendir): Rename from __opendir2.
4992
4993         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4994         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4995
4996         maint: fts.c: correct off-by-one indentation
4997         * lib/fts.c (fts_build): Correct indentation, change style
4998         of a couple of block comments, and bracing style.
4999
5000         maint: fts.c: move __opendir2 #define "up" out of function body
5001         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5002
5003         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5004         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5005         out for a long time and besides was useful only on BSD systems.
5006
5007 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5008
5009         regex: port to Stratus OpenVOS
5010         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5011         define to empty, rather than attempting nonportable optimizations.
5012         Problem reported by Paul Green in:
5013         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5014         and fix suggested by Eric Blake in:
5015         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5016
5017 2011-08-17  Eric Blake  <eblake@redhat.com>
5018
5019         getcwd: fix test failures on mingw
5020         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5021         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5022         test if long directory cannot be created, and allow mingw errno.
5023
5024         getcwd-lgpl: fix m4 to match relaxed test for BSD
5025         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5026         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5027         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5028         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5029         signature problem.
5030
5031         getcwd: fix compilation on mingw64
5032         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5033         getcwd.
5034         Reported by Marc-André Lureau.
5035
5036         pipe2: silence compiler warning
5037         * lib/pipe2.c (pipe2): Hide label if it is not used.
5038
5039 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5040
5041         relocatable-prog: fix link error
5042         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5043         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5044         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5045         into modules/relocatable-lib without noticing that
5046         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5047         also needs to build relocatable.c.
5048
5049 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5050
5051         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5052         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5053         shell code: it contained a 'break' that was not in a loop.
5054         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5055         via a shell-language loop; this may have been true in old Autoconf
5056         versions, but it's not true in Autoconf 2.68.  I found this bug
5057         when testing coreutils git on Solaris 8, whose shell complains
5058         about the syntax error.
5059
5060 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5061
5062         * lib/base64.c: Fix comment to reference RFC 4648.
5063         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5064         <gvtulder@gmail.com>.
5065
5066 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5067
5068         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5069
5070         po/Makefile.in.in: fix make -q problem
5071         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5072         rule, since there's no file named 'check-macro-version' and its
5073         use as a file breaks make -q.
5074         (all): Don't depend on check-macro-version.
5075         (CHECK_MACRO_VERSION): New macro.
5076         (stamp-po): Use it.
5077
5078         configmake: fix make -q problem
5079         * modules/configmake (configmake.h): Update configmake.h's time stamp
5080         even if the file does not change.  Otherwise, 'make -q' fails.
5081         Problem reported by Simon Josefsson in
5082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5083
5084 2011-08-11  Jim Meyering  <meyering@redhat.com>
5085
5086         git-version-gen: correct the advice in a comment
5087         * build-aux/git-version-gen: Correct comment.
5088         Don't recommend to list .tarball-version in .gitignore.
5089
5090 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5091
5092         base64: fix off-by-one buffer size bug
5093         Problem and (trivial) fix reported by Gijs van Tulder in
5094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5095         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5096         * tests/test-base64.c (main): Catch the bug.
5097
5098 2011-08-10  Eric Blake  <eblake@redhat.com>
5099
5100         closein: correct comments
5101         * lib/closein.c (close_stdin): Improve comments.
5102
5103 2011-08-09  Bruno Haible  <bruno@clisp.org>
5104
5105         More tests for 'fseeko'.
5106         * tests/test-fseeko3.c: New file, from Eric Blake.
5107         * tests/test-fseeko3.sh: New file.
5108         * modules/fseeko-tests (Files): Add them.
5109         (TESTS): Add test-fseeko3.sh.
5110         (check_PROGRAMS): Add test-fseeko3.
5111
5112 2011-08-09  Eric Blake  <eblake@redhat.com>
5113
5114         fseeko: remove unneeded hack
5115         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5116
5117         fseeko: fix bug on glibc
5118         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5119         Reported by John W. Eaton.
5120
5121 2011-08-08  Bruno Haible  <bruno@clisp.org>
5122
5123         unictype/base: Fix interoperability with preinstalled libunistring.
5124         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5125         Reported by Simon Josefsson.
5126
5127 2011-08-08  Bruno Haible  <bruno@clisp.org>
5128
5129         iswblank: Detect declaration correctly.
5130         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5131         AC_CHECK_DECLS invocation.
5132
5133 2011-08-08  Bruno Haible  <bruno@clisp.org>
5134
5135         tcgetsid: Detect declaration correctly.
5136         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5137         AC_CHECK_DECLS invocation.
5138         Reported by Simon Josefsson.
5139
5140 2011-08-08  Eric Blake  <eblake@redhat.com>
5141
5142         largefile: fix typo that regressed large file support
5143         * modules/largefile (configure.ac-early): Fix section name.
5144
5145 2011-08-06  Karl Berry  <karl@gnu.org>
5146
5147         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5148         a separate module.
5149
5150 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5151
5152         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5153         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5154         get prototype for free.
5155
5156 2011-08-04  Bruno Haible  <bruno@clisp.org>
5157
5158         Tests for module 'pathmax'.
5159         * modules/pathmax-tests: New file.
5160         * tests/test-pathmax.c: New file.
5161
5162         canonicalize-lgpl: Support larger filenames on the Hurd.
5163         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5164         Reported by Paul Eggert.
5165
5166         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5167         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5168         * lib/chdir-long.h: Include pathmax.h.
5169         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5170         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5171         (PATH_MAX): Remove code that is done by pathmax.h.
5172         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5173         * lib/tmpfile.c: Add a comment.
5174         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5175         * modules/chdir-long (Depends-on): Add pathmax.
5176         * modules/getcwd (Depends-on): Add pathmax.
5177         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5178         is not defined.
5179         * doc/posix-headers/limits.texi: Mention the pathmax module.
5180         * NEWS: Mention the change.
5181
5182 2011-08-02  Bruno Haible  <bruno@clisp.org>
5183
5184         pthread_sigmask: Actually use results of gl_THREADLIB.
5185         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5186         gl_THREADLIB, not gl_[]THREADLIB.
5187         Reported by Eric Blake.
5188
5189 2011-08-02  Jim Meyering  <meyering@redhat.com>
5190
5191         maint.mk: relax the default _gl_TS_function_match regexp
5192         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5193         space between function name and "(" in an "extern" declaration.
5194         That would fail to match a decl with no space there: extern void foo();
5195
5196 2011-07-31  Iain Nicol  <iain@thenicols.net>
5197
5198         git-version-gen: document that EXTRA_DIST must include .version
5199         * build-aux/git-version-gen: In the how-to-use comment, document
5200         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5201         will fail when run from an unpacked distribution tarball.
5202
5203 2011-08-01  Bruno Haible  <bruno@clisp.org>
5204
5205         wctype-h: Fix last change.
5206         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5207         REPLACE_TOWLOWER to 0.
5208         Reported by Sam Steingold <sds@gnu.org>.
5209
5210 2011-07-31  Bruno Haible  <bruno@clisp.org>
5211
5212         frexpl: Update autoconf test.
5213         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5214         according to changes of 2011-06-20.
5215
5216 2011-07-31  Bruno Haible  <bruno@clisp.org>
5217
5218         sys_utsname: Add support for Minix.
5219         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5220         <sys/utsname.h>.
5221         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5222         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5223
5224 2011-07-31  Bruno Haible  <bruno@clisp.org>
5225
5226         strings: Add support for Minix.
5227         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5228         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5229         * doc/posix-headers/strings.texi: Document the Minix problem.
5230
5231 2011-07-31  Bruno Haible  <bruno@clisp.org>
5232
5233         wctype-h: Add support for Minix.
5234         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5235         REPLACE_TOWLOWER.
5236         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5237         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5238         REPLACE_ISWCNTRL.
5239
5240 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5241
5242         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5243         This is a performance improvement for 64-bit hosts: it causes the
5244         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5245
5246 2011-07-31  Bruno Haible  <bruno@clisp.org>
5247
5248         stdioext: Add support for Minix.
5249         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5250         * lib/fpurge.c (fpurge): Likewise.
5251         * lib/freadahead.c (freadahead): Likewise.
5252         * lib/freadable.c (freadable): Likewise.
5253         * lib/freading.c (freading): Likewise.
5254         * lib/freadptr.c (freadptr): Likewise.
5255         * lib/freadseek.c (freadptrinc): Likewise.
5256         * lib/fseeko.c (rpl_fseeko): Likewise.
5257         * lib/fseterr.c (fseterr): Likewise.
5258         * lib/fwritable.c (fwritable): Likewise.
5259         * lib/fwriting.c (fwriting): Likewise.
5260         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5261         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5262
5263 2011-07-31  Bruno Haible  <bruno@clisp.org>
5264
5265         errno: Port to Minix.
5266         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5267         ECONNABORTED are defined.
5268         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5269         GNULIB_defined_ECONNABORTED): New macros.
5270         * lib/strerror-override.h (strerror_override): Test also
5271         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5272         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5273         ECONNABORTED.
5274         * doc/posix-headers/errno.texi: Mention the Minix problem.
5275
5276 2011-07-31  Bruno Haible  <bruno@clisp.org>
5277
5278         Work around declaration collisions on Minix.
5279         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5280         defined, set REPLACE_MBSINIT.
5281         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5282         defined, set REPLACE_MBRTOWC.
5283         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5284         set REPLACE_MBRLEN.
5285         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5286         defined, set REPLACE_MBSRTOWCS.
5287         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5288         defined, set REPLACE_WCRTOMB.
5289         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5290         defined, set REPLACE_WCSRTOMBS.
5291
5292 2011-07-31  Bruno Haible  <bruno@clisp.org>
5293
5294         Add support for Minix with ACK compiler.
5295         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5296         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5297         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5298
5299 2011-07-31  Bruno Haible  <bruno@clisp.org>
5300
5301         Documentation about Minix.
5302         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5303         * doc/glibc-headers/*.texi: Likewise.
5304         * doc/posix-functions/*.texi: Likewise.
5305         * doc/glibc-functions/*.texi: Likewise.
5306
5307 2011-07-31  Bruno Haible  <bruno@clisp.org>
5308
5309         snippet/warn-on-use: Fix indentation.
5310         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5311
5312 2011-07-25  Jim Meyering  <meyering@redhat.com>
5313
5314         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5315         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5316         commands.
5317
5318 2011-07-27  Jim Meyering  <meyering@redhat.com>
5319
5320         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5321         * top/maint.mk (gl_extract_significant_defines_): Now that
5322         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5323         gnulib/lib/signal.in.h, and now that we recommend to
5324         define-if-undefined those two symbols in application code,
5325         we must filter them out of the "significant" list.
5326         This avoids a "make syntax-check" failure in coreutils.
5327
5328 2011-07-26  Eric Blake  <eblake@redhat.com>
5329
5330         warnings: add comments about previous patch
5331         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5332         * m4/include_next.m4: Likewise.
5333         * m4/warn-on-use.m4: Likewise.
5334         * m4/warnings.m4: Likewise, and simplify use.
5335         Suggested by Stefano Lattarini.
5336
5337         include-next, warnings: support older autoconf
5338         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5339         AS_VAR_PUSHDEF in a way that works with older autoconf.
5340         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5341         Reported by Daniel P. Berrange.
5342
5343 2011-07-25  Bruno Haible  <bruno@clisp.org>
5344
5345         fseek, ftell: Fix doc.
5346         * doc/posix-functions/fseek.texi: Reword statement about
5347         AC_SYS_LARGEFILE.
5348         * doc/posix-functions/ftell.texi: Likewise.
5349
5350 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5351             Bruno Haible  <bruno@clisp.org>
5352
5353         Add dependencies to the 'largefile' module.
5354         * modules/fopen (Depends-on): Add 'largefile'.
5355         * modules/freopen (Depends-on): Likewise.
5356         * modules/fseeko (Depends-on): Likewise.
5357         * modules/ftello (Depends-on): Likewise.
5358         * modules/glob (Depends-on): Likewise.
5359         * modules/lseek (Depends-on): Likewise.
5360         * modules/lstat (Depends-on): Likewise.
5361         * modules/mkostemp (Depends-on): Likewise.
5362         * modules/mkostemps (Depends-on): Likewise.
5363         * modules/mkstemp (Depends-on): Likewise.
5364         * modules/mkstemps (Depends-on): Likewise.
5365         * modules/open (Depends-on): Likewise.
5366         * modules/openat (Depends-on): Likewise.
5367         * modules/pread (Depends-on): Likewise.
5368         * modules/pwrite (Depends-on): Likewise.
5369         * modules/scandir (Depends-on): Likewise.
5370         * modules/stat (Depends-on): Likewise.
5371         * modules/tmpfile (Depends-on): Likewise.
5372         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5373         since the containing module now depends on the largefile module.
5374         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5375         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5376         off_t is fixed by gnulib.
5377         * doc/posix-functions/freopen.texi: Likewise.
5378         * doc/posix-functions/fseeko.texi: Likewise.
5379         * doc/posix-functions/fstatat.texi: Likewise.
5380         * doc/posix-functions/ftello.texi: Likewise.
5381         * doc/posix-functions/glob.texi: Likewise.
5382         * doc/posix-functions/lseek.texi: Likewise.
5383         * doc/posix-functions/lstat.texi: Likewise.
5384         * doc/posix-functions/mkstemp.texi: Likewise.
5385         * doc/posix-functions/open.texi: Likewise.
5386         * doc/posix-functions/openat.texi: Likewise.
5387         * doc/posix-functions/pread.texi: Likewise.
5388         * doc/posix-functions/pwrite.texi: Likewise.
5389         * doc/posix-functions/scandir.texi: Likewise.
5390         * doc/posix-functions/stat.texi: Likewise.
5391         * doc/posix-functions/tmpfile.texi: Likewise.
5392         * doc/glibc-functions/mkostemp.texi: Likewise.
5393         * doc/glibc-functions/mkostemps.texi: Likewise.
5394         * doc/glibc-functions/mkstemps.texi: Likewise.
5395
5396 2011-07-25  Bruno Haible  <bruno@clisp.org>
5397
5398         fcntl: Move AC_LIBOBJ invocation to module description.
5399         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5400         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5401
5402         fcntl: Remove call-in from fchdir.m4.
5403         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5405
5406         dup3: Remove potential call-in from fchdir.m4.
5407         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5408         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5409
5410         dup2: Move AC_LIBOBJ invocation to module description.
5411         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5412         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5413         Don't invoke AC_LIBOBJ.
5414         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5415
5416         dup2: Remove call-in from fchdir.m4.
5417         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5419
5420         fclose: Move AC_LIBOBJ invocation to module description.
5421         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5422         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5423         to 1.
5424         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5425
5426         fclose: Remove call-in from close.m4.
5427         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5428         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5429
5430         close: Move AC_LIBOBJ invocation to module description.
5431         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5432         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5433         1.
5434         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5435
5436         close: Remove call-in from fchdir.m4.
5437         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5438         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5439
5440         open: Move AC_LIBOBJ invocation to module description.
5441         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5442         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5443         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5444
5445         open: Remove call-in from fchdir.m4.
5446         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5447         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5448
5449         fchdir: Start to remove gl_REPLACE_* idiom.
5450         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5451         (gl_FUNC_FCHDIR): Invoke it.
5452
5453 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5454
5455         * lib/ftell.c (ftell): Comment out cast.
5456
5457         close: use gl_REPLACE_FCLOSE only if defined
5458         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5459         is defined.  The close module doesn't depend on the fclose module
5460         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5462         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5463
5464 2011-07-24  Jim Meyering  <meyering@redhat.com>
5465
5466         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5467         * tests/test-select.h (test_function): Declare as "static".
5468
5469 2011-07-24  Bruno Haible  <bruno@clisp.org>
5470
5471         doc: Mention the effects of AC_SYS_LARGEFILE.
5472         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5473         on this function.
5474         * doc/posix-functions/aio_error.texi: Likewise.
5475         * doc/posix-functions/aio_fsync.texi: Likewise.
5476         * doc/posix-functions/aio_read.texi: Likewise.
5477         * doc/posix-functions/aio_return.texi: Likewise.
5478         * doc/posix-functions/aio_suspend.texi: Likewise.
5479         * doc/posix-functions/aio_write.texi: Likewise.
5480         * doc/posix-functions/fgetpos.texi: Likewise.
5481         * doc/posix-functions/fopen.texi: Likewise.
5482         * doc/posix-functions/freopen.texi: Likewise.
5483         * doc/posix-functions/fsetpos.texi: Likewise.
5484         * doc/posix-functions/fstatvfs.texi: Likewise.
5485         * doc/posix-functions/ftruncate.texi: Likewise.
5486         * doc/posix-functions/ftw.texi: Likewise.
5487         * doc/posix-functions/getrlimit.texi: Likewise.
5488         * doc/posix-functions/glob.texi: Likewise.
5489         * doc/posix-functions/lio_listio.texi: Likewise.
5490         * doc/posix-functions/lockf.texi: Likewise.
5491         * doc/posix-functions/mkstemp.texi: Likewise.
5492         * doc/posix-functions/mmap.texi: Likewise.
5493         * doc/posix-functions/nftw.texi: Likewise.
5494         * doc/posix-functions/openat.texi: Likewise.
5495         * doc/posix-functions/opendir.texi: Likewise.
5496         * doc/posix-functions/posix_fadvise.texi: Likewise.
5497         * doc/posix-functions/posix_fallocate.texi: Likewise.
5498         * doc/posix-functions/pread.texi: Likewise.
5499         * doc/posix-functions/pwrite.texi: Likewise.
5500         * doc/posix-functions/readdir.texi: Likewise.
5501         * doc/posix-functions/readdir_r.texi: Likewise.
5502         * doc/posix-functions/rewinddir.texi: Likewise.
5503         * doc/posix-functions/scandir.texi: Likewise.
5504         * doc/posix-functions/seekdir.texi: Likewise.
5505         * doc/posix-functions/setrlimit.texi: Likewise.
5506         * doc/posix-functions/statvfs.texi: Likewise.
5507         * doc/posix-functions/telldir.texi: Likewise.
5508         * doc/posix-functions/tmpfile.texi: Likewise.
5509         * doc/posix-functions/truncate.texi: Likewise.
5510         * doc/glibc-functions/fallocate.texi: Likewise.
5511         * doc/glibc-functions/fstatfs.texi: Likewise.
5512         * doc/glibc-functions/fts_children.texi: Likewise.
5513         * doc/glibc-functions/fts_read.texi: Likewise.
5514         * doc/glibc-functions/getdirentries.texi: Likewise.
5515         * doc/glibc-functions/mkostemp.texi: Likewise.
5516         * doc/glibc-functions/mkostemps.texi: Likewise.
5517         * doc/glibc-functions/mkstemps.texi: Likewise.
5518         * doc/glibc-functions/preadv.texi: Likewise.
5519         * doc/glibc-functions/pwritev.texi: Likewise.
5520         * doc/glibc-functions/sendfile.texi: Likewise.
5521         * doc/glibc-functions/statfs.texi: Likewise.
5522
5523 2011-07-24  Bruno Haible  <bruno@clisp.org>
5524
5525         doc: Fix typo.
5526         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5527
5528 2011-07-24  Bruno Haible  <bruno@clisp.org>
5529
5530         doc: Mention fsusage.
5531         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5532
5533 2011-07-24  Bruno Haible  <bruno@clisp.org>
5534
5535         doc: Mention new glibc headers and functions.
5536         * doc/glibc-headers/gshadow.texi: New file.
5537         * doc/glibc-functions/endsgent.texi: New file.
5538         * doc/glibc-functions/fgetsgent.texi: New file.
5539         * doc/glibc-functions/fgetsgent_r.texi: New file.
5540         * doc/glibc-functions/getsgent.texi: New file.
5541         * doc/glibc-functions/getsgent_r.texi: New file.
5542         * doc/glibc-functions/getsgnam.texi: New file.
5543         * doc/glibc-functions/getsgnam_r.texi: New file.
5544         * doc/glibc-functions/putsgent.texi: New file.
5545         * doc/glibc-functions/setsgent.texi: New file.
5546         * doc/glibc-functions/sgetsgent.texi: New file.
5547         * doc/glibc-functions/sgetsgent_r.texi: New file.
5548         * doc/glibc-functions/malloc_info.texi: New file.
5549         * doc/glibc-functions/preadv.texi: New file.
5550         * doc/glibc-functions/pwritev.texi: New file.
5551         * doc/glibc-functions/register_printf_modifier.texi: New file.
5552         * doc/glibc-functions/register_printf_specifier.texi: New file.
5553         * doc/glibc-functions/register_printf_type.texi: New file.
5554         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5555         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5556         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5557         * doc/glibc-functions/pthread_getname_np.texi: New file.
5558         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5559         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5560         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5561         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5562         * doc/glibc-functions/pthread_setname_np.texi: New file.
5563         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5564         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5565         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5566         * doc/glibc-functions/qsort_r.texi: New file.
5567         * doc/glibc-functions/quick_exit.texi: New file.
5568         * doc/glibc-functions/syncfs.texi: New file.
5569         * doc/gnulib.texi: Include them.
5570         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5571         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5572         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5573         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5574         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5575         * doc/glibc-functions/execvpe.texi: Likewise.
5576
5577 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5578
5579         ftell: don't include <unistd.h>
5580         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5581         guaranteed to define off_t, and the ftell module depends on the
5582         stdio module.
5583
5584         ftell: do not assume wraparound signed arithmetic
5585         * lib/ftell.c: Include <limits.h>.
5586         (ftell): Don't assume wraparound signed arithmetic.
5587
5588 2011-07-24  Bruno Haible  <bruno@clisp.org>
5589
5590         close: No longer depend on module 'fclose'.
5591         * modules/close (Depends-on): Remove fclose.
5592         * NEWS: Mention the change.
5593         Suggested by Sam Steingold <sds@gnu.org>.
5594
5595 2011-07-24  Bruno Haible  <bruno@clisp.org>
5596
5597         fsusage: Enable large volume support on AIX >= 5.2.
5598         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5599         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5600         instead of STAT_STATVFS.
5601         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5602
5603         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5604         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5605         f_blocks field only on MacOS X.
5606
5607         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5608         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5609         * modules/fsusage (Depends-on): Add largefile.
5610
5611 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5612
5613         * README: Modernize discussion of signed integers.
5614         Assuming overflow wraparound is no longer safe.
5615         Mention ones' complement and signed magnitude.
5616
5617 2011-07-22  Bruno Haible  <bruno@clisp.org>
5618
5619         select tests, pselect tests: Refactor.
5620         * tests/test-select.h: New file, extracted from tests/test-select.c.
5621         (select_fn): New type.
5622         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5623         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5624         test_pipe): Add my_select argument.
5625         (test_function): Renamed from main. Add my_select argument.
5626         * tests/test-select.c: Move most code to tests/test-select.h. Include
5627         test-select.h.
5628         * modules/select-tests (Files): Add tests/test-select.h.
5629         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5630         (my_select, main): New functions.
5631         * modules/pselect-tests (Files): Add tests/test-select.h,
5632         tests/macros.h, tests/signature.h.
5633         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5634         (configure.ac): Check for <sys/wait.h>.
5635
5636 2011-07-22  Bruno Haible  <bruno@clisp.org>
5637
5638         sys_select tests: Check the signature of FD_*.
5639         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5640         signature tests from here...
5641         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5642         here.
5643         * modules/sys_select-tests (Files): Add tests/signature.h.
5644
5645 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5646
5647         largefile: new module, replacing large-inode
5648         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5649         * MODULES.html.sh: Add largefile, remove large-inode.
5650         * modules/largefile, m4/largefile.m4: New files.
5651         * modules/large-inode, m4/large-inode.m4: Remove.
5652
5653         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5654         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5655         implementations that use only 32 bits to count blocks.
5656         On typical hosts with 1024-byte blocks, this fails with file
5657         systems as small as 4 TiB.  Problem reported by Herb Wartens
5658         <http://debbugs.gnu.org/9140> and this should also fix a similar
5659         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5660
5661         large-inode: New module
5662         * MODULES.html.sh: Add it.
5663         * modules/large-inode, m4/large-inode.m4: New files.
5664
5665         extensions: Enable extensions on MacOS X 10.5 and later.
5666         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5667
5668 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5669
5670         file-has-acl: use acl_extended_file_nofollow if available
5671         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5672         (acl_extended_file): New macro.
5673         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5674         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5675
5676 2011-07-21  Bruno Haible  <bruno@clisp.org>
5677
5678         Declare system functions in a way that works with C++.
5679         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5680         declare fdopendir as extern "C".
5681         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5682         declare frexpl as extern "C".
5683         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5684         declare gai_strerror as extern "C".
5685         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5686         programs, declare gai_strerror as extern "C".
5687         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5688         declare getlogin_r as extern "C".
5689         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5690         as extern "C".
5691         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5692         declare ldexpl as extern "C".
5693         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5694         as extern "C".
5695         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5696         program, declare getmntinfo as extern "C".
5697         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5698         stpncpy as extern "C".
5699         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5700         program, declare __xpg_strerror_r as extern "C".
5701         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5702         strndup as extern "C".
5703         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5704         declare memset and bzero as extern "C".
5705         Reported by Sam Steingold <sds@gnu.org>.
5706
5707 2011-07-12  Jim Meyering  <meyering@redhat.com>
5708
5709         maint.mk: prohibit inclusion of "verify.h" without use
5710         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5711
5712 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5713
5714         timer-time: A new module to check for timer_settime()
5715         * m4/timer_time.m4: Check for the posix function.
5716         * modules/timer-time: Add the new module.
5717         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5718         Mention it.
5719
5720 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5721             Bruno Haible  <bruno@clisp.org>
5722
5723         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5724         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5725         not defined, assume POSIX threads and look for pthread_sigmask in
5726         $LIBS, without changing $CPPFLAGS.
5727
5728 2011-07-19  Bruno Haible  <bruno@clisp.org>
5729
5730         strstr: Update cross-compilation guess.
5731         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5732         CPUs, guess no, in view of glibc
5733         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5734         Suggested by Eric Blake. Reported by Reuben Thomas.
5735
5736 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5737
5738         getopt-gnu: suppress core dumps from detection code
5739         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5740         to suppress core dumps that may well occur on glibc systems.
5741         * modules/getopt-gnu: Depend on nocrash.
5742
5743 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5744
5745         pthread_sigmask: ensure usleep is declared
5746         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5747         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5748
5749 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5750
5751         doc: Document NonStop portability issues.
5752         * doc/posix-functions/sigaction.texi (sigaction):
5753         * doc/posix-headers/signal.texi (signal.h):
5754         Document NonStop.  See Joachim Schmitz in
5755         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5756
5757 2011-07-15  Bruno Haible  <bruno@clisp.org>
5758
5759         ffsl, ffsll: Avoid unportable behaviour.
5760         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5761
5762 2011-07-15  Bruno Haible  <bruno@clisp.org>
5763
5764         ffs: More tests.
5765         * tests/test-ffs.c (NBITS): New macro.
5766         (main): Add more tests.
5767         * tests/test-ffsl.c (NBITS): New macro.
5768         (main): Add more tests.
5769         * tests/test-ffsll.c (NBITS): New macro.
5770         (main): Add more tests.
5771
5772 2011-07-15  Eric Blake  <eblake@redhat.com>
5773
5774         ffsl, ffsll: new modules
5775         * modules/ffsl: New file.
5776         * modules/ffsll: Likewise.
5777         * m4/ffsl.m4: Likewise.
5778         * m4/ffsll.m4: Likewise.
5779         * lib/ffsl.c: Likewise.
5780         * lib/ffsl.h: Likewise.
5781         * lib/ffsll.c: Likewise.
5782         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5783         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5784         * modules/string (Makefile.am): Substitute witnesses.
5785         * lib/strings.in.h (ffsl, ffsll): Declare.
5786         * modules/ffsl-tests: New test file.
5787         * modules/ffsll-tests: Likewise.
5788         * tests/test-ffsl.c: Likewise.
5789         * tests/test-ffsll.c: Likewise.
5790         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5791         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5792         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5793
5794         ffs: fix m4 prerequisite
5795         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5796
5797         ffs: avoid undefined behavior
5798         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5799         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5800         Reported by Bruno Haible.
5801
5802 2011-07-12  Bruno Haible  <bruno@clisp.org>
5803
5804         pthread_sigmask: Rely on module 'threadlib'.
5805         * modules/pthread_sigmask (Depends-on): Add threadlib.
5806         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5807         is defined.
5808
5809 2011-07-12  Bruno Haible  <bruno@clisp.org>
5810
5811         regex: Depend on module 'strcase'.
5812         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5813
5814 2011-07-12  Jim Meyering  <meyering@redhat.com>
5815
5816         warn-on-use: fix typo in file name
5817         * modules/snippet/warn-on-use (Files): Correct file name:
5818         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5819
5820 2011-07-12  Bruno Haible  <bruno@clisp.org>
5821
5822         strings: Document module.
5823         * doc/posix-headers/strings.texi: Mention module 'strings'.
5824
5825 2011-07-12  Bruno Haible  <bruno@clisp.org>
5826
5827         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5828         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5829         (Files, Makefile.am): Update.
5830         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5831         * modules/stdlib (Depends-on): Update.
5832
5833 2011-07-12  Bruno Haible  <bruno@clisp.org>
5834
5835         * NEWS: Mention the changes.
5836
5837         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5838         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5839         (Files, Makefile.am): Update.
5840         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5841         * modules/arpa_inet (Depends-on): Update.
5842         * modules/ctype (Depends-on): Update.
5843         * modules/dirent (Depends-on): Update.
5844         * modules/fcntl-h (Depends-on): Update.
5845         * modules/glob (Depends-on): Update.
5846         * modules/iconv-h (Depends-on): Update.
5847         * modules/inttypes-incomplete (Depends-on): Update.
5848         * modules/langinfo (Depends-on): Update.
5849         * modules/locale (Depends-on): Update.
5850         * modules/math (Depends-on): Update.
5851         * modules/netdb (Depends-on): Update.
5852         * modules/poll-h (Depends-on): Update.
5853         * modules/pty (Depends-on): Update.
5854         * modules/search (Depends-on): Update.
5855         * modules/signal (Depends-on): Update.
5856         * modules/spawn (Depends-on): Update.
5857         * modules/stdio (Depends-on): Update.
5858         * modules/stdlib (Depends-on): Update.
5859         * modules/string (Depends-on): Update.
5860         * modules/strings (Depends-on): Update.
5861         * modules/sys_file (Depends-on): Update.
5862         * modules/sys_ioctl (Depends-on): Update.
5863         * modules/sys_select (Depends-on): Update.
5864         * modules/sys_socket (Depends-on): Update.
5865         * modules/sys_stat (Depends-on): Update.
5866         * modules/sys_time (Depends-on): Update.
5867         * modules/sys_times (Depends-on): Update.
5868         * modules/sys_utsname (Depends-on): Update.
5869         * modules/sys_wait (Depends-on): Update.
5870         * modules/termios (Depends-on): Update.
5871         * modules/time (Depends-on): Update.
5872         * modules/unistd (Depends-on): Update.
5873         * modules/wchar (Depends-on): Update.
5874         * modules/wctype-h (Depends-on): Update.
5875         * MODULES.html.sh (Support for building libraries and executables):
5876         Update.
5877
5878         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5879         * modules/snippet/unused-parameter: Renamed from
5880         modules/unused-parameter.
5881         (Files, Makefile.am): Update.
5882         * build-aux/snippet/unused-parameter.h: Renamed from
5883         build-aux/unused-parameter.h.
5884         * modules/selinux-h (Depends-on): Update.
5885         * modules/unistr/base (Depends-on): Update.
5886         * MODULES.html.sh (Core language properties): Update.
5887
5888         Rename module 'link-warning' to 'snippet/link-warning'.
5889         * modules/snippet/link-warning: Renamed from modules/link-warning.
5890         (Files, Makefile.am): Update.
5891         * build-aux/snippet/link-warning.h: Renamed from
5892         build-aux/link-warning.h.
5893         * MODULES.html.sh (Support for building libraries and executables):
5894         Update.
5895
5896         Rename module 'c++defs' to 'snippet/c++defs'.
5897         * modules/snippet/c++defs: Renamed from modules/c++defs.
5898         (Files, Makefile.am): Update.
5899         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5900         * modules/arpa_inet (Depends-on): Update.
5901         * modules/ctype (Depends-on): Update.
5902         * modules/dirent (Depends-on): Update.
5903         * modules/fcntl-h (Depends-on): Update.
5904         * modules/glob (Depends-on): Update.
5905         * modules/iconv-h (Depends-on): Update.
5906         * modules/langinfo (Depends-on): Update.
5907         * modules/locale (Depends-on): Update.
5908         * modules/math (Depends-on): Update.
5909         * modules/netdb (Depends-on): Update.
5910         * modules/poll-h (Depends-on): Update.
5911         * modules/pty (Depends-on): Update.
5912         * modules/search (Depends-on): Update.
5913         * modules/signal (Depends-on): Update.
5914         * modules/spawn (Depends-on): Update.
5915         * modules/stdio (Depends-on): Update.
5916         * modules/stdlib (Depends-on): Update.
5917         * modules/string (Depends-on): Update.
5918         * modules/strings (Depends-on): Update.
5919         * modules/sys_ioctl (Depends-on): Update.
5920         * modules/sys_select (Depends-on): Update.
5921         * modules/sys_socket (Depends-on): Update.
5922         * modules/sys_stat (Depends-on): Update.
5923         * modules/sys_time (Depends-on): Update.
5924         * modules/sys_wait (Depends-on): Update.
5925         * modules/termios (Depends-on): Update.
5926         * modules/time (Depends-on): Update.
5927         * modules/unistd (Depends-on): Update.
5928         * modules/wchar (Depends-on): Update.
5929         * modules/wctype-h (Depends-on): Update.
5930
5931         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5932         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5933         (Files, Makefile.am): Update.
5934         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5935         * modules/argv-iter (Depends-on): Update.
5936         * modules/arpa_inet (Depends-on): Update.
5937         * modules/dirent (Depends-on): Update.
5938         * modules/fcntl-h (Depends-on): Update.
5939         * modules/fnmatch (Depends-on): Update.
5940         * modules/getopt-posix (Depends-on): Update.
5941         * modules/glob (Depends-on): Update.
5942         * modules/iconv-h (Depends-on): Update.
5943         * modules/inttypes-incomplete (Depends-on): Update.
5944         * modules/locale (Depends-on): Update.
5945         * modules/math (Depends-on): Update.
5946         * modules/netdb (Depends-on): Update.
5947         * modules/search (Depends-on): Update.
5948         * modules/signal (Depends-on): Update.
5949         * modules/spawn (Depends-on): Update.
5950         * modules/stdio (Depends-on): Update.
5951         * modules/stdlib (Depends-on): Update.
5952         * modules/string (Depends-on): Update.
5953         * modules/strings (Depends-on): Update.
5954         * modules/sys_socket (Depends-on): Update.
5955         * modules/sys_stat (Depends-on): Update.
5956         * modules/sys_time (Depends-on): Update.
5957         * modules/sys_times (Depends-on): Update.
5958         * modules/sys_utsname (Depends-on): Update.
5959         * modules/time (Depends-on): Update.
5960         * modules/unistd (Depends-on): Update.
5961         * modules/wchar (Depends-on): Update.
5962         * MODULES.html.sh (Support for building libraries and executables):
5963         Update.
5964
5965 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5966
5967         Improvements on _Noreturn and related modules.
5968
5969         modules/_Exit-tests: test _Noreturn too
5970         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5971         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5972         (main): Use them.
5973
5974         stdnoreturn, stdnoreturn-tests: remove modules
5975         They're not needed here and a bit premature for use elsewhere.  See
5976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5977         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5978         * tests/test-stdnoreturn.c: Remove files.
5979         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5980         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5981         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5982         and using noreturn.
5983         * modules/openat, modules/sigpipe-die, modules/xalloc:
5984         * modules/xmemdup0, modules/xstrtol:
5985         Remove dependency on stdnoreturn.
5986
5987         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5988         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5989         Reparenthesize to avoid GCC warning.
5990         Support Microsoft's syntax.
5991         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5992
5993         _Noreturn-tests: remove module
5994         * modules/_Noreturn-tests: Remove.
5995         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5996         * tests/test-_Noreturn.c: Remove.
5997         * tests/test-stdnoreturn.c: Merge from the old
5998         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5999
6000 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6001
6002         _Noreturn, stdnoreturn, and related modules.
6003
6004         * top/maint.mk: Adjust to new noreturn support.
6005         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6006         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6007
6008         xalloc: use stdnoreturn.h
6009         * lib/xalloc.h: Include <stdnoreturn.h>.
6010         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6011         * modules/xalloc (Depends-on): Add stdnoreturn.
6012
6013         xstrtol: use stdnoreturn.h
6014         * lib/xstrtol.h: Include <stdnoreturn.h>.
6015         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6016         * modules/xstrtol (Depends-on): Add stdnoreturn.
6017
6018         xmemdup0: use stdnoreturn.h
6019         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6020         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6021         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6022
6023         sigpipe-die: use stdnoreturn.h
6024         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6025         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6026         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6027
6028         openat: use stdnoreturn.h
6029         * lib/openat.h: Include <stdnoreturn.h>.
6030         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6031         * modules/openat (Depends-on): Add stdnoreturn.
6032
6033         * lib/openat-die.c (openat_save_fail): Modernize comment.
6034
6035         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6036
6037         * lib/glthread/thread.h: Modernize comment.
6038
6039         obstack: use _Noreturn
6040         * lib/obstack.c (__attribute__): Remove macro.
6041         (print_and_abort): Use _Noreturn.
6042
6043         c-stack: use _Noreturn
6044         * lib/c-stack.c (die, overflow_handler, segv_handler):
6045         Use _Noreturn rather than __attribute__((noreturn)).
6046
6047         argmatch-tests, exclude_tests: use _Noreturn
6048         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6049         Remove.
6050         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6051
6052         stdlib: use _Noreturn
6053         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6054         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6055         * modules/stdlib (Depends-on): Add _Noreturn.
6056         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6057
6058         stdnoreturn-tests: new module
6059         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6060
6061         stdnoreturn: new module
6062         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6063         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6064
6065         _Noreturn-tests: new module
6066         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6067
6068         _Noreturn: new module
6069         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6070         New section, mentioning it.
6071         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6072
6073         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6074
6075 2011-07-11  Eric Blake  <eblake@redhat.com>
6076
6077         ffs: new module
6078         * modules/ffs: New file.
6079         * m4/ffs.m4: Likewise.
6080         * lib/ffs.c: Likewise.
6081         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6082         * modules/strings (Makefile.am): Substitute witness.
6083         (Depends-on): Add c++defs.
6084         * lib/strings.in.h (ffs): Declare.
6085         * modules/ffs-tests: New test file.
6086         * tests/test-ffs.c: Test new module.
6087         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6088         * doc/posix-functions/ffs.texi (ffs): Likewise.
6089
6090         regex: avoid compiler warning
6091         * lib/regex.c (includes): Include <strings.h>, for use of
6092         strcasecmp in regcomp.c.
6093         Reported by Joachim Schmitz.
6094
6095 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6096
6097         stdint: respect system's intmax_t if INTMAX_MAX
6098         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6099         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6100         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6101         long but int64_t is long long, and where we will clash with the
6102         system intmax_t if we override it.  See
6103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6104         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6105         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6106         similarly for UINTMAX_C.
6107
6108 2011-07-08  Bruno Haible  <bruno@clisp.org>
6109
6110         pthread_sigmask tests: Avoid a compiler warning.
6111         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6112         non-zero.
6113
6114         sigprocmask tests: A better way to avoid a compiler warning.
6115         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6116         (main): Complain if system() returns non-zero.
6117         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6118
6119 2011-07-08  Bruno Haible  <bruno@clisp.org>
6120
6121         pthread_sigmask: Work around IRIX bug.
6122         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6123         bug.
6124         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6125         there may be unblocked pending signals.
6126         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6127
6128 2011-07-08  Bruno Haible  <bruno@clisp.org>
6129
6130         pthread_sigmask: Work around Cygwin bug.
6131         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6132         bug.
6133         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6134         the system's pthread_sigmask function.
6135         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6136
6137 2011-07-08  Bruno Haible  <bruno@clisp.org>
6138
6139         pthread_sigmask: Work around bug in single-threaded implementation.
6140         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6141         FreeBSD, HP-UX, Solaris bug.
6142         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6143         * lib/pthread_sigmask.c: Include <stddef.h>.
6144         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6145         the system's pthread_sigmask function.
6146         * modules/pthread_sigmask (configure.ac): Invoke
6147         gl_PREREQ_PTHREAD_SIGMASK.
6148         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6149         HP-UX, Solaris.
6150
6151 2011-07-08  Eric Blake  <eblake@redhat.com>
6152
6153         test-sigprocmask: avoid compiler warning
6154         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6155         * tests/test-sigprocmask.c (main): Use it to silence warning.
6156         Reported by Jim Meyering.
6157
6158         test-snprintf: avoid compiler warning
6159         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6160         * tests/test-vsnprintf.c (main): Likewise.
6161         Reported by Jim Meyering.
6162
6163 2011-07-08  Bruno Haible  <bruno@clisp.org>
6164
6165         Tests for module 'pthread_sigmask'.
6166         * modules/pthread_sigmask-tests: New file.
6167         * tests/test-pthread_sigmask1.c: New file, based on
6168         tests/test-sigprocmask.c.
6169         * tests/test-pthread_sigmask2.c: New file.
6170
6171 2011-07-08  Jim Meyering  <meyering@redhat.com>
6172
6173         test-getopt.h: avoid warning about an unused variable
6174         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6175
6176 2011-07-07  Jim Meyering  <meyering@redhat.com>
6177
6178         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6179         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6180         now that it no longer contains leading TABs.
6181         Remove unused "url=FIXME" statement.
6182
6183 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6184
6185         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6186         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6187         When gl_THREADLIB is not in use, assume that the POSIX sematics
6188         are desired.  This is better for Emacs, which uses POSIX semantics
6189         on GNUish and/or POSIXish platforms, and does not use threads at
6190         all otherwise.
6191
6192         pthread_sigmask: fix typo when testing for libraries
6193         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6194         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6195
6196 2011-07-08  Eric Blake  <eblake@redhat.com>
6197
6198         fts: introduce FTS_NOATIME
6199         * lib/fts_.h (FTS_NOATIME): New bit flag.
6200         (FTS_OPTIONMASK): Adjust.
6201         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6202         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6203
6204 2011-07-08  Bruno Haible  <bruno@clisp.org>
6205
6206         Tests for module 'thread'.
6207         * modules/thread-tests: New file.
6208         * tests/test-thread_self.c: New file.
6209         * tests/test-thread_create.cc: New file.
6210
6211 2011-07-08  Bruno Haible  <bruno@clisp.org>
6212
6213         thread: Avoid gcc warnings when using gl_thread_self().
6214         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6215         'void *'.
6216         (gl_thread_self_pointer): Update.
6217
6218 2011-07-07  Bruno Haible  <bruno@clisp.org>
6219
6220         signal-c++-tests: Check declaration of pthread_sigmask.
6221         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6222         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6223         $(LIB_PTHREAD_SIGMASK).
6224
6225 2011-07-07  Bruno Haible  <bruno@clisp.org>
6226
6227         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6228         * lib/signal.in.h (pthread_sigmask): Override if
6229         REPLACE_PTHREAD_SIGMASK is 1.
6230         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6231         REPLACE_PTHREAD_SIGMASK.
6232         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6233         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6234         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6235         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6236         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6237
6238 2011-07-07  Bruno Haible  <bruno@clisp.org>
6239
6240         pthread_sigmask: Ensure declaration in <signal.h>.
6241         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6242         include <pthread.h>.
6243         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6244         problem.
6245
6246 2011-07-07  Bruno Haible  <bruno@clisp.org>
6247
6248         pthread_sigmask: Document the module.
6249         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6250
6251 2011-07-07  Bruno Haible  <bruno@clisp.org>
6252
6253         pthread_sigmask: Follow gnulib conventions.
6254         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6255         gl_PTHREAD_SIGMASK.
6256         * modules/pthread_sigmask (configure.ac): Update.
6257
6258 2011-07-07  Bruno Haible  <bruno@clisp.org>
6259
6260         pthread_sigmask: Make declaration C++ safe.
6261         * lib/signal.in.h: In two special conditions, just do an #include_next.
6262         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6263         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6264         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6265         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6266         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6267         not REPLACE_PTHREAD_MASK.
6268         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6269         not REPLACE_PTHREAD_MASK.
6270         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6271
6272 2011-07-07  Bruno Haible  <bruno@clisp.org>
6273
6274         pthread_sigmask: Fix return value.
6275         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6276         * lib/pthread_sigmask.c: New file.
6277         * modules/pthread_sigmask (Files): Add it.
6278         (configure.ac): Invoke AC_LIBOBJ.
6279
6280 2011-07-07  Eric Blake  <eblake@redhat.com>
6281
6282         getopt: more portable argv creation
6283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6284         const, use char arrays rather than strings.
6285         Suggested by Paul Eggert.
6286
6287 2011-07-07  Bruno Haible  <bruno@clisp.org>
6288
6289         Tests for module 'sigprocmask'.
6290         * modules/sigprocmask-tests: New file.
6291         * tests/test-sigprocmask.c: New file.
6292
6293 2011-07-07  Bruno Haible  <bruno@clisp.org>
6294
6295         float tests: Tweak.
6296         * tests/test-float.c (main): Tweak skip message.
6297
6298 2011-07-07  Eric Blake  <eblake@redhat.com>
6299
6300         getopt: avoid compiler warning during configure
6301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6302         assigning string literals to non-const pointer.
6303
6304         getopt-gnu: avoid crash in glibc getopt
6305         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6306         * tests/test-getopt.h (test_getopt): Enhance test.
6307         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6308         * doc/posix-functions/getopt.texi (getopt): Document it.
6309         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6310         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6311         Likewise.
6312
6313 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6314
6315         getopt: handle W; without long options in getopt [BZ #12922]
6316         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6317         but no long options are defined, just return 'W'.
6318
6319 2011-07-07  Bruno Haible  <bruno@clisp.org>
6320
6321         Avoid literal tabs.
6322         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6323         variable containing a tab instead of a literal tab.
6324         Reported by Jim Meyering.
6325
6326 2011-07-07  Bruno Haible  <bruno@clisp.org>
6327
6328         Comments.
6329         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6330
6331 2011-07-06  Bruno Haible  <bruno@clisp.org>
6332
6333         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6334         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6335         <winsock2.h>.
6336         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6337         lib/sys_socket.in.h.
6338         (close, gethostname): Hide declarations from <winsock2.h>.
6339         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6340         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6341         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6342         (select): Don't override if gnulib's <sys/select.h> was already
6343         included.
6344         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6345         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6346         setsockopt, shutdown, select): Tweak indentation.
6347
6348 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6349
6350         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6351         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6352         in an application that does not use the sys_select module.
6353
6354 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6355
6356         poll: do not return 0 on timeout=-1
6357         * lib/poll.c: Loop with yield if no events occured
6358
6359 2011-07-06  Eric Blake  <eblake@redhat.com>
6360
6361         pthread_sigmask: always replace when not using pthread
6362         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6363         replacement when using some threading other than pthread.  Fix
6364         logic bug.
6365
6366 2011-07-06  Bruno Haible  <bruno@clisp.org>
6367
6368         Comments.
6369         * m4/printf.m4: Update comments about mingw.
6370
6371 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6372
6373         sys_select: define sigset_t more portably
6374         * lib/sys_select.in.h: Always include <sys/types.h>, since
6375         we now need sigset_t and mingw defines it there.
6376         Include <signal.h> before split inclusion guard, to avoid
6377         mishaps on Solaris, whose <signal.h> eventually includes us.
6378         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6379         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6380         which come from ...
6381         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6382         gl_CHECK_TYPE_SIGSET_T.
6383         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6384         does the real work.
6385         * modules/sys_select (Depends-on): Add 'signal'.
6386
6387         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6388         Suggested by Bruno Haible.
6389
6390         pselect: Use pthread_sigmask, not sigprocmask.
6391         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6392         multithreaded apps better than sigprocmask does.
6393         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6394         sigprocmask directly.
6395
6396 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6397
6398         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6399         Don't #undef,  since we don't need any underlying pselect.
6400         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6401         (Depends-on): Add select.
6402         (Link): Add $(LIBSOCKET).
6403         These changes suggested by Bruno Haible.
6404
6405         pselect: document better
6406         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6407         * doc/posix-functions/pselect.texi (pselect): Document new module.
6408
6409         pthread_sigmask: new module
6410         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6411         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6412         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6413         This is done only as a macro; I don't know how well that'll
6414         work for C++.  Move <sys/types.h> include before the include_next,
6415         to avoid mishap on Solaris.
6416         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6417         * modules/signal (Makefile.am): Substitute the check's results.
6418         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6419
6420         test-pselect: new module
6421         * modules/pselect-tests, tests/test-pselect.c: New files.
6422         * tests/test-select.c, tests/test-sys_select-c++.cc:
6423         If TEST_PSELECT is defined, test pselect instead of testing select.
6424
6425         * tests/test-sys_select.c (sigset_t): Test for it, too.
6426         Suggested by Bruno Haible.
6427
6428 2011-07-05  Eric Blake  <eblake@redhat.com>
6429
6430         snprintf: guarantee %1$d, for libintl
6431         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6432         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6433         * doc/posix-functions/snprintf.texi (snprintf): Update.
6434         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6435         * tests/test-snprintf.c (main): Enhance test.
6436         * tests/test-vsnprintf.c (main): Likewise.
6437
6438 2011-07-05  Jim Meyering  <meyering@redhat.com>
6439
6440         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6441         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6442         per Bruno's request, to accommodate this idiom (no space after "#")
6443         even when the function is inside an #if block:
6444         char *
6445         gets (char *s)
6446         #undef gets
6447         {
6448           ...
6449         }
6450
6451 2011-07-04  Jim Meyering  <meyering@redhat.com>
6452
6453         maint: indent with spaces, not TABs, and add a rule to check this
6454         * tests/test-userspec.c: Indent with spaces, not TABs.
6455         * tests/test-argp.c: Likewise.
6456         * tests/test-c-stack2.sh: Likewise.
6457         * tests/test-parse-duration.sh: Likewise
6458         * m4/strtod.m4: Likewise.
6459         * m4/alloca.m4: Likewise.
6460         * m4/pselect.m4: Likewise.
6461         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6462
6463 2011-07-03  Jim Meyering  <meyering@redhat.com>
6464
6465         maint.mk: correct omissions in prohibit_argmatch_without_use check
6466         This rule would mistakenly report that argmatch.h is included without
6467         use even when both the argmatch and invalid_arg macro were used.
6468         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6469         of argmatch and invalid_arg.
6470
6471 2011-07-03  Bruno Haible  <bruno@clisp.org>
6472
6473         Comments about EINTR.
6474         * lib/safe-read.h: Explain the purpose of this module.
6475         * lib/safe-write.h: Likewise.
6476         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6477         module.
6478         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6479         module.
6480         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6481
6482 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6483
6484         xnanosleep: Rewrite to use new dtotimespec module.
6485         It has the conversion code that used to be in xnanosleep.
6486         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6487         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6488         (TIME_T_MAX): Remove.
6489         (xnanosleep): Rewrite in terms of dtotimespec.
6490         * modules/xnanosleep (Depends-on): Add dtotimespec.
6491         Remove intprops, stdbool.
6492
6493         timespec-add, timespec-sub: new modules
6494         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6495         * lib/timespec-add.c, lib/timespec-sub.c:
6496         * modules/timespec-add, modules/timespec-sub: New files.
6497
6498         dtotimespec: new module
6499         * lib/timespec.h (dtotimespec): New decl.
6500         * lib/dtotimespec.c, modules/dtotimespec: New files.
6501
6502         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6503
6504         pselect: new module
6505         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6506         (pselect): New decls.
6507         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6508         since the standard pselect decl uses 'restrict'.
6509         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6510         HAVE_PSELECT, REPLACE_PSELECT.
6511         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6512         HAVE_PSELECT, REPLACE_PSELECT.
6513         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6514
6515         sys_select: don't depend on sys_socket
6516         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6517         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6518         This fix works on GNU and GNU-like platforms, but has not been tested
6519         on native Windows.
6520         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6521         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6522         gl_HEADER_SYS_SOCKET.
6523         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6524         gl_PREREQ_SYS_H_WINSOCK2.
6525
6526 2011-06-29  Eric Blake  <eblake@redhat.com>
6527
6528         pipe2: fix C89 compile problem
6529         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6530         Reported by Bruno Haible.
6531
6532         pipe, pipe2: don't corrupt fd on error
6533         * lib/pipe.c (pipe): Leave fd unchanged on error.
6534         * lib/pipe2.c (pipe2): Likewise.
6535         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6536         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6537
6538 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6539
6540         mmap-anon: do not use regular expressions inadvertently
6541         * m4/mmap-anon.m4: Remove trailing period from strings sought
6542         in the output.
6543
6544 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6545
6546         nanosleep: fix integer overflow problem
6547         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6548         arithmetic wraps around on overflow.
6549
6550         nanosleep: simplify carrying
6551         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6552         first call to the underyling nanosleep, not for the last one.
6553         This doesn't fix any bugs, but it simplifies the computation of
6554         the remaining delay.  Found while auditing integer overflow issues.
6555
6556         dup2: remove test for existence of fcntl
6557         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6558         "#if HAVE_FCNTL", in the configure-time test program.
6559         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6560         and therefore speeds up "configure" a bit.  Found while
6561         adding the dup2 module to Emacs.
6562
6563 2011-06-24  Eric Blake  <eblake@redhat.com>
6564
6565         maint.mk: enhance useless header checks
6566         * top/maint.mk (_sc_header_without_use): Check both include
6567         styles.
6568         (sc_prohibit_assert_without_use)
6569         (sc_prohibit_close_stream_without_use)
6570         (sc_prohibit_getopt_without_use)
6571         (sc_prohibit_quotearg_without_use)
6572         (sc_prohibit_quote_without_use)
6573         (sc_prohibit_long_options_without_use)
6574         (sc_prohibit_inttostr_without_use)
6575         (sc_prohibit_ignore_value_without_use)
6576         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6577         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6578         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6579         (sc_prohibit_hash_pjw_without_use)
6580         (sc_prohibit_safe_read_without_use)
6581         (sc_prohibit_argmatch_without_use)
6582         (sc_prohibit_canonicalize_without_use)
6583         (sc_prohibit_root_dev_ino_without_use)
6584         (sc_prohibit_openat_without_use)
6585         (sc_prohibit_c_ctype_without_use)
6586         (sc_prohibit_signal_without_use)
6587         (sc_prohibit_stdio--_without_use)
6588         (sc_prohibit_stdio-safer_without_use)
6589         (sc_prohibit_strings_without_use)
6590         (sc_prohibit_intprops_without_use)
6591         (sc_prohibit_stddef_without_use)
6592         (sc_prohibit_xfreopen_without_use): Update clients.
6593
6594 2011-06-24  Jim Meyering  <meyering@redhat.com>
6595
6596         syntax-check: keep one maint.mk rule in sync with its header
6597         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6598         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6599         I prefer to avoid temporary files here, so use <(...), but that
6600         is not supported by /bin/sh, so...
6601         (SHELL): Define to /bin/bash.
6602
6603 2011-06-24  Eric Blake  <eblake@redhat.com>
6604
6605         maint.mk: update sc_prohibit_intprops_without_use
6606         * top/maint.mk (_intprops_names): Match recent changes.
6607
6608 2011-06-24  Bruno Haible  <bruno@clisp.org>
6609
6610         strerror-override: No-op tweak.
6611         * lib/strerror-override.h (strerror_override): Reorder conditions,
6612         for consistency with lib/strerror-override.c.
6613
6614 2011-06-23  Eric Blake  <eblake@redhat.com>
6615
6616         maint.mk: test further PATH_MAX issues
6617         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6618         (sc_prohibit_path_max_allocation): ...and also test alloca.
6619         Suggested by Jim Meyering.
6620
6621 2011-06-22  Eric Blake  <eblake@redhat.com>
6622
6623         maint.mk: add syntax-check to avoid char[PATH_MAX]
6624         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6625
6626         stat: be robust to PATH_MAX definition
6627         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6628         * modules/stat (Depends-on): Add verify.
6629
6630         link: work around IRIX bug
6631         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6632         * lib/link.c (rpl_link): Work around it.
6633         * tests/test-link.h (test_link): Enhance test.
6634         * doc/posix-functions/link.texi (link): Document the bug.
6635
6636         getopt: silence clang warning
6637         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6638         dereference.
6639         Reported by Gustavo Martin Domato.
6640
6641 2011-06-22  Jim Meyering  <meyering@redhat.com>
6642
6643         bootstrap: do not insert a blank line into each .gitignore file
6644         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6645
6646 2011-06-21  Eric Blake  <eblake@redhat.com>
6647
6648         perror: test for output mismatch
6649         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6650         perror on IRIX.
6651
6652         strerror_r: fix OpenBSD behavior on out-of-range
6653         * lib/strerror_r.c (strerror_r): Always use maximal string.
6654         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6655
6656         strerror_r: fix OpenBSD behavior on 0
6657         * lib/strerror-override.c (strerror_override): Also override 0
6658         when needed.
6659         * lib/strerror-override.h (strerror_override): Likewise.
6660         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6661         earlier.
6662         * lib/strerror_r.c (strerror_r): Likewise.
6663         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6664         behavior...
6665         (gl_FUNC_STRERROR_0): ...into new macro.
6666         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6667         is overridden.
6668         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6669         * modules/strerror-override (Files): Add strerror.m4.
6670         (configure.ac): Also provide override for 0 when needed.
6671         * doc/posix-functions/strerror.texi (strerror): Document this.
6672         * doc/posix-functions/perror.texi (perror): Likewise.
6673
6674         perror: adjust array size
6675         * modules/perror (Depends-on): Add strerror-override.
6676         * lib/perror.c (perror): Use it to avoid magic number.
6677
6678         strerror-override: reduce size
6679         * lib/strerror-override.c (strerror_override): Use fewer lines.
6680
6681 2011-06-20  Bruno Haible  <bruno@clisp.org>
6682
6683         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6684         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6685
6686 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6687
6688         alloca: port to compilers that can optimize like GCC 4.6.0
6689         * lib/alloca.c (find_stack_direction): New signature, taken from
6690         Autoconf git.  This works with GCC 4.6.0.  This code should never
6691         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6692         be used with other compilers that optimize as well as GCC 4.6.0 does.
6693         (alloca): Adjust to new signature.
6694         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6695         New macro, which patches Autoconf in a similar way.
6696
6697         c-stack: stop worrying about stack direction
6698         * lib/c-stack.c (find_stack_direction): Remove.
6699         (segv_handler): Don't worry about stack direction growth, as it's
6700         too much of a pain to configure this correctly, given how compilers
6701         are optimizing-away our stack-growth detection code.  Instead, assume
6702         that any access to just before or just after the stack is OK.
6703         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6704         Don't require AC_FUNC_ALLOCA; no longer needed.
6705
6706 2011-06-20  Eric Blake  <eblake@redhat.com>
6707
6708         test-stat: don't allocate PATH_MAX bytes
6709         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6710         PATH_MAX-sized buffer.
6711         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6712         * modules/stat-tests (Depends-on): Likewise.
6713         * tests/test-fstatat.c (includes): Drop pathmax.h.
6714         * tests/test-stat.c (includes): Likewise.
6715         Reported by Bruno Haible.
6716
6717 2011-06-20  Bruno Haible  <bruno@clisp.org>
6718
6719         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6720         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6721         * lib/float.c: New file.
6722         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6723         REPLACE_FLOAT_LDBL.
6724         * modules/float (Files): Add lib/float.c.
6725         (configure.ac): Invoke AC_LIBOBJ.
6726         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6727
6728 2011-06-20  Bruno Haible  <bruno@clisp.org>
6729
6730         Tests for module 'float'.
6731         * modules/float-tests: New file.
6732         * tests/test-float.c: New file.
6733
6734 2011-06-19  Bruno Haible  <bruno@clisp.org>
6735
6736         isinf: Coding style.
6737         * lib/isinf.c: Use GNU coding style.
6738
6739 2011-06-19  Bruno Haible  <bruno@clisp.org>
6740
6741         linkat test: Avoid test failure on AIX 7.1.
6742         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6743         * tests/test-link.h (test_link): Likewise.
6744
6745 2011-06-19  Bruno Haible  <bruno@clisp.org>
6746
6747         pread test: Avoid test failure on OpenBSD 4.9.
6748         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6749
6750 2011-06-19  Bruno Haible  <bruno@clisp.org>
6751
6752         sprintf-posix: Fix test failure on AIX 7.1.
6753         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6754         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6755         on AIX.
6756         * doc/posix-functions/fprintf.texi: Likewise.
6757         * doc/posix-functions/printf.texi: Likewise.
6758         * doc/posix-functions/snprintf.texi: Likewise.
6759         * doc/posix-functions/sprintf.texi: Likewise.
6760         * doc/posix-functions/vdprintf.texi: Likewise.
6761         * doc/posix-functions/vfprintf.texi: Likewise.
6762         * doc/posix-functions/vprintf.texi: Likewise.
6763         * doc/posix-functions/vsnprintf.texi: Likewise.
6764         * doc/posix-functions/vsprintf.texi: Likewise.
6765
6766 2011-06-19  Bruno Haible  <bruno@clisp.org>
6767
6768         roundl-ieee: Fix test failure on AIX 7.1.
6769         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6770         * doc/posix-functions/roundl.texi: Mention problem with negative
6771         arguments.
6772
6773 2011-06-19  Bruno Haible  <bruno@clisp.org>
6774
6775         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6776         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6777         * doc/posix-functions/round.texi: Mention problem with negative
6778         arguments.
6779         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6780
6781 2011-06-19  Bruno Haible  <bruno@clisp.org>
6782
6783         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6784         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6785         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6786         * doc/posix-functions/roundf.texi: Mention problem with negative
6787         arguments.
6788         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6789
6790 2011-06-19  Bruno Haible  <bruno@clisp.org>
6791
6792         ceilf-ieee: Work around bug on MacOS X 10.5.
6793         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6794
6795         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6796         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6797         IEEE compliant, avoid compiler optimizations.
6798         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6799         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6800         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6801         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6802         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6803         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6804         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6805         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6806         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6807         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6808
6809 2011-06-19  Bruno Haible  <bruno@clisp.org>
6810
6811         ceilf-ieee: Work around bug on AIX 7.1.
6812         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6813         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6814
6815 2011-06-19  Bruno Haible  <bruno@clisp.org>
6816
6817         ceil-ieee: Work around bug on AIX 7.1.
6818         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6819         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6820
6821 2011-06-18  Bruno Haible  <bruno@clisp.org>
6822
6823         fsync test: Avoid test failure on MacOS X and AIX.
6824         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6825         EINVAL.
6826
6827 2011-06-18  Bruno Haible  <bruno@clisp.org>
6828
6829         openat, fdopendir tests: Fix link errors.
6830         * modules/openat-tests (Depends-on): Add progname.
6831         * modules/fdopendir-tests (Depends-on): Likewise.
6832         * tests/test-fchownat.c: Include progname.h.
6833         (main): Call set_program_name.
6834         * tests/test-fstatat.c: Include progname.h.
6835         (main): Call set_program_name.
6836         * tests/test-mkdirat.c: Include progname.h.
6837         (main): Call set_program_name.
6838         * tests/test-openat.c: Include progname.h.
6839         (main): Call set_program_name.
6840         * tests/test-unlinkat.c: Include progname.h.
6841         (main): Call set_program_name.
6842         * tests/test-fdopendir.c: Include progname.h.
6843         (main): Call set_program_name.
6844
6845 2011-06-18  Bruno Haible  <bruno@clisp.org>
6846
6847         Doc update.
6848         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6849         HP-UX.
6850         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6851
6852 2011-06-18  Bruno Haible  <bruno@clisp.org>
6853
6854         getcwd tests: Avoid compilation error on HP-UX 11.31.
6855         * modules/getcwd-tests (Depends-on): Add pathmax.
6856         * tests/test-getcwd.c: Include pathmax.h.
6857
6858 2011-06-18  Bruno Haible  <bruno@clisp.org>
6859
6860         isfinite, isinf: Fix link error on AIX 6 and 7.
6861         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6862         needed, also test the macro with a 'float' argument.
6863         * m4/isinf.m4 (gl_ISINF): Likewise.
6864
6865 2011-06-18  Bruno Haible  <bruno@clisp.org>
6866
6867         getloadavg: Don't clobber LIBS. Regression from previous commit.
6868         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6869         AC_CHECK_LIB from here...
6870         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6871         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6872         gl_func_getloadavg_done.
6873         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6874
6875 2011-06-18  Bruno Haible  <bruno@clisp.org>
6876
6877         clean-temp: Improve documentation.
6878         * lib/clean-temp.h: Explain better how to use this module.
6879         Reported by John Darrington <john@darrington.wattle.id.au>.
6880
6881 2011-06-17  Bruno Haible  <bruno@clisp.org>
6882
6883         pread, pwrite: Avoid cc warning on AIX.
6884         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6885         (pwrite): Likewise.
6886
6887 2011-06-17  Bruno Haible  <bruno@clisp.org>
6888
6889         spawn-pipe tests: Fix link error.
6890         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6891         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6892
6893 2011-06-17  Bruno Haible  <bruno@clisp.org>
6894
6895         Tests: Remove unnecessary dependency.
6896         * modules/canonicalize-tests (Depends-on): Remove progname.
6897         * modules/chown-tests (Depends-on): Likewise.
6898         * modules/dirname-tests (Depends-on): Likewise.
6899         * modules/fdopendir-tests (Depends-on): Likewise.
6900         * modules/fdutimensat-tests (Depends-on): Likewise.
6901         * modules/hash-tests (Depends-on): Likewise.
6902         * modules/lchown-tests (Depends-on): Likewise.
6903         * modules/linkat-tests (Depends-on): Likewise.
6904         * modules/renameat-tests (Depends-on): Likewise.
6905         * modules/spawn-pipe-tests (Depends-on): Likewise.
6906         * modules/utimensat-tests (Depends-on): Likewise.
6907
6908 2011-06-17  Bruno Haible  <bruno@clisp.org>
6909
6910         spawn-pipe tests: Fix link error.
6911         * tests/test-spawn-pipe-child.c: Undefine fflush.
6912
6913 2011-06-17  Bruno Haible  <bruno@clisp.org>
6914
6915         Fix tests link errors.
6916         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6917         * modules/chown-tests (Makefile.am): Don't link test-chown with
6918         LIBINTL.
6919         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6920         LIBINTL.
6921         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6922         LIBINTL.
6923         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6924         LIBINTL.
6925
6926 2011-06-16  Bruno Haible  <bruno@clisp.org>
6927
6928         crypto/gc-sha1: Fix recent regression.
6929         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6930         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6931
6932         crypto/gc-md5: Fix recent regression.
6933         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6934
6935         crypto/gc-md4: Fix recent regression.
6936         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6937         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6938
6939         crypto/gc-arctwo: Fix recent regression.
6940         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6941         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6942
6943         crypto/gc-rijndael: Fix recent regression.
6944         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6945         (configure.ac): Invoke AC_LIBOBJ here.
6946         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6947         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6948
6949         crypto/gc-hmac-sha1: Fix recent regression.
6950         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6951         (configure.ac): Invoke AC_LIBOBJ here.
6952         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6953         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6954
6955         crypto/gc-hmac-md5: Fix recent regression.
6956         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6957         (configure.ac): Invoke AC_LIBOBJ here.
6958         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6959         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6960
6961         crypto/gc-des: Fix recent regression.
6962         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6963         (configure.ac): Invoke AC_LIBOBJ here.
6964         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6965         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6966
6967         crypto/gc-arcfour: Fix recent regression.
6968         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6969         (configure.ac): Invoke AC_LIBOBJ here.
6970         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6972
6973 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6974
6975         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6976         After the 2011-05-21 change, this macro requires
6977         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6978         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6979
6980 2011-06-16  Bruno Haible  <bruno@clisp.org>
6981
6982         fprintftime: Move AC_LIBOBJ invocations to module description.
6983         * m4/fprintftime.m4: Remove file.
6984         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6985         (configure.ac): Remove gl_FPRINTFTIME call.
6986         (Makefile.am): Augment lib_SOURCES.
6987         Reported by Jim Meyering.
6988
6989 2011-06-16  Bruno Haible  <bruno@clisp.org>
6990
6991         tmpfile-safer: Finish 2011-05-23 commit.
6992         * m4/stdio-safer.m4: Really remove file.
6993         Reported by Jim Meyering.
6994
6995 2011-06-16  Bruno Haible  <bruno@clisp.org>
6996
6997         syntax-check: Fix typo.
6998         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6999         printf-posix.m4.
7000         Reported by Jim Meyering.
7001
7002 2011-06-13  Jim Meyering  <meyering@redhat.com>
7003
7004         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7005         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7006
7007 2011-05-23  Bruno Haible  <bruno@clisp.org>
7008
7009         yesno: Move AC_LIBOBJ invocations to module description.
7010         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7011         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7012
7013 2011-05-23  Bruno Haible  <bruno@clisp.org>
7014
7015         xstrtol: Move AC_LIBOBJ invocations to module description.
7016         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7017         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7018
7019 2011-05-23  Bruno Haible  <bruno@clisp.org>
7020
7021         xstrtold: Move AC_LIBOBJ invocations to module description.
7022         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7023         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7024
7025 2011-05-23  Bruno Haible  <bruno@clisp.org>
7026
7027         xstrtod: Move AC_LIBOBJ invocations to module description.
7028         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7029         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7030
7031 2011-05-23  Bruno Haible  <bruno@clisp.org>
7032
7033         xnanosleep: Move AC_LIBOBJ invocations to module description.
7034         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7035         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7036
7037 2011-05-23  Bruno Haible  <bruno@clisp.org>
7038
7039         xgetcwd: Move AC_LIBOBJ invocations to module description.
7040         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7041         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7042
7043 2011-05-23  Bruno Haible  <bruno@clisp.org>
7044
7045         xalloc: Move AC_LIBOBJ invocations to module description.
7046         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7047         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7048
7049 2011-05-23  Bruno Haible  <bruno@clisp.org>
7050
7051         write-any-file: Move AC_LIBOBJ invocations to module description.
7052         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7053         invocation.
7054         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7055
7056 2011-05-23  Bruno Haible  <bruno@clisp.org>
7057
7058         utimens: Move AC_LIBOBJ invocations to module description.
7059         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7060         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7061
7062 2011-05-23  Bruno Haible  <bruno@clisp.org>
7063
7064         utimecmp: Move AC_LIBOBJ invocations to module description.
7065         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7066         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7067
7068 2011-05-23  Bruno Haible  <bruno@clisp.org>
7069
7070         userspec: Move AC_LIBOBJ invocations to module description.
7071         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7072         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7073
7074 2011-05-23  Bruno Haible  <bruno@clisp.org>
7075
7076         unlinkdir: Move AC_LIBOBJ invocations to module description.
7077         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7078         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7079
7080 2011-05-23  Bruno Haible  <bruno@clisp.org>
7081
7082         unistd-safer: Move AC_LIBOBJ invocations to module description.
7083         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7084         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7085
7086 2011-05-23  Bruno Haible  <bruno@clisp.org>
7087
7088         tempname: Move AC_LIBOBJ invocations to module description.
7089         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7090         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7091
7092 2011-05-23  Bruno Haible  <bruno@clisp.org>
7093
7094         strftime: Move AC_LIBOBJ invocations to module description.
7095         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7096         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7097
7098 2011-05-23  Bruno Haible  <bruno@clisp.org>
7099
7100         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7101         * m4/stdlib-safer.m4: Remove file.
7102         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7103         (configure.ac): Remove gl_STDLIB_SAFER call.
7104         (Makefile.am): Augment lib_SOURCES.
7105
7106 2011-05-23  Bruno Haible  <bruno@clisp.org>
7107
7108         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7109         * m4/stdio-safer.m4: Remove file.
7110         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7111         (configure.ac): Remove gl_TMPFILE_SAFER call.
7112         (Makefile.am): Augment lib_SOURCES.
7113
7114 2011-05-23  Bruno Haible  <bruno@clisp.org>
7115
7116         popen-safer: Move AC_LIBOBJ invocations to module description.
7117         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7118         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7119         (configure.ac): Remove gl_POPEN_SAFER call.
7120         (Makefile.am): Augment lib_SOURCES.
7121
7122 2011-05-23  Bruno Haible  <bruno@clisp.org>
7123
7124         freopen-safer: Move AC_LIBOBJ invocations to module description.
7125         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7126         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7127         (configure.ac): Remove gl_FREOPEN_SAFER call.
7128         (Makefile.am): Augment lib_SOURCES.
7129
7130 2011-05-23  Bruno Haible  <bruno@clisp.org>
7131
7132         fopen-safer: Move AC_LIBOBJ invocations to module description.
7133         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7134         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7135         (configure.ac): Remove gl_FOPEN_SAFER call.
7136         (Makefile.am): Augment lib_SOURCES.
7137
7138 2011-05-23  Bruno Haible  <bruno@clisp.org>
7139
7140         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7141         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7142         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7143
7144 2011-05-23  Bruno Haible  <bruno@clisp.org>
7145
7146         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7147         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7148         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7149
7150 2011-05-23  Bruno Haible  <bruno@clisp.org>
7151
7152         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7153         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7154         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7155
7156 2011-05-23  Bruno Haible  <bruno@clisp.org>
7157
7158         settime: Move AC_LIBOBJ invocations to module description.
7159         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7160         * modules/settime (Makefile.am): Augment lib_SOURCES.
7161
7162 2011-05-23  Bruno Haible  <bruno@clisp.org>
7163
7164         savedir: Move AC_LIBOBJ invocations to module description.
7165         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7166         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7167
7168 2011-05-23  Bruno Haible  <bruno@clisp.org>
7169
7170         save-cwd: Move AC_LIBOBJ invocations to module description.
7171         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7172         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7173
7174 2011-05-23  Bruno Haible  <bruno@clisp.org>
7175
7176         same: Move AC_LIBOBJ invocations to module description.
7177         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7178         * modules/same (Makefile.am): Augment lib_SOURCES.
7179
7180 2011-05-23  Bruno Haible  <bruno@clisp.org>
7181
7182         safe-write: Move AC_LIBOBJ invocations to module description.
7183         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7184         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7185         instead of gl_SAFE_WRITE.
7186         (Makefile.am): Augment lib_SOURCES.
7187
7188 2011-05-23  Bruno Haible  <bruno@clisp.org>
7189
7190         safe-read: Move AC_LIBOBJ invocations to module description.
7191         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7192         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7193         of gl_SAFE_READ.
7194         (Makefile.am): Augment lib_SOURCES.
7195
7196 2011-05-23  Bruno Haible  <bruno@clisp.org>
7197
7198         safe-alloc: Move AC_LIBOBJ invocations to module description.
7199         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7200         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7201
7202 2011-05-23  Bruno Haible  <bruno@clisp.org>
7203
7204         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7205         * m4/rijndael.m4: Remove file.
7206         * modules/crypto/rijndael (Files): Remove it.
7207         (configure.ac): Remove gl_RIJNDAEL call.
7208         (Makefile.am): Augment lib_SOURCES.
7209
7210 2011-05-23  Bruno Haible  <bruno@clisp.org>
7211
7212         readtokens: Move AC_LIBOBJ invocations to module description.
7213         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7214         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7215
7216 2011-05-23  Bruno Haible  <bruno@clisp.org>
7217
7218         read-file: Move AC_LIBOBJ invocations to module description.
7219         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7220         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7221         of gl_FUNC_READ_FILE.
7222         (Makefile.am): Augment lib_SOURCES.
7223
7224 2011-05-23  Bruno Haible  <bruno@clisp.org>
7225
7226         quotearg: Move AC_LIBOBJ invocations to module description.
7227         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7228         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7229
7230 2011-05-23  Bruno Haible  <bruno@clisp.org>
7231
7232         quote: Move AC_LIBOBJ invocations to module description.
7233         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7234         * modules/quote (Makefile.am): Augment lib_SOURCES.
7235
7236 2011-05-23  Bruno Haible  <bruno@clisp.org>
7237
7238         posixver: Move AC_LIBOBJ invocations to module description.
7239         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7240         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7241
7242 2011-05-23  Bruno Haible  <bruno@clisp.org>
7243
7244         posixtm: Move AC_LIBOBJ invocations to module description.
7245         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7246         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7247
7248 2011-05-23  Bruno Haible  <bruno@clisp.org>
7249
7250         physmem: Move AC_LIBOBJ invocations to module description.
7251         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7252         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7253
7254 2011-05-23  Bruno Haible  <bruno@clisp.org>
7255
7256         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7257         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7258         invocation.
7259         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7260
7261 2011-05-23  Bruno Haible  <bruno@clisp.org>
7262
7263         mpsort: Move AC_LIBOBJ invocations to module description.
7264         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7265         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7266
7267 2011-05-23  Bruno Haible  <bruno@clisp.org>
7268
7269         modechange: Move AC_LIBOBJ invocations to module description.
7270         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7271         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7272
7273 2011-05-23  Bruno Haible  <bruno@clisp.org>
7274
7275         mkdir-p: Move AC_LIBOBJ invocations to module description.
7276         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7277         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7278
7279 2011-05-23  Bruno Haible  <bruno@clisp.org>
7280
7281         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7282         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7283         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7284
7285 2011-05-23  Bruno Haible  <bruno@clisp.org>
7286
7287         mgetgroups: Move AC_LIBOBJ invocations to module description.
7288         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7289         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7290
7291 2011-05-23  Bruno Haible  <bruno@clisp.org>
7292
7293         memxor: Move AC_LIBOBJ invocations to module description.
7294         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7295         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7296
7297 2011-05-23  Bruno Haible  <bruno@clisp.org>
7298
7299         memcoll: Move AC_LIBOBJ invocations to module description.
7300         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7301         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7302
7303 2011-05-23  Bruno Haible  <bruno@clisp.org>
7304
7305         memcasecmp: Move AC_LIBOBJ invocations to module description.
7306         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7307         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7308
7309 2011-05-23  Bruno Haible  <bruno@clisp.org>
7310
7311         crypto/md5: Move AC_LIBOBJ invocations to module description.
7312         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7313         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7314
7315 2011-05-23  Bruno Haible  <bruno@clisp.org>
7316
7317         crypto/md4: Move AC_LIBOBJ invocations to module description.
7318         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7319         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7320
7321 2011-05-23  Bruno Haible  <bruno@clisp.org>
7322
7323         crypto/md2: Move AC_LIBOBJ invocations to module description.
7324         * m4/md2.m4: Remove file.
7325         * modules/crypto/md2 (Files): Remove it.
7326         (configure.ac): Remove gl_MD2 call.
7327         (Makefile.am): Augment lib_SOURCES.
7328
7329 2011-05-23  Bruno Haible  <bruno@clisp.org>
7330
7331         long-options: Move AC_LIBOBJ invocations to module description.
7332         * m4/long-options.m4: Remove file.
7333         * modules/long-options (Files): Remove it.
7334         (configure.ac): Remove gl_LONG_OPTIONS call.
7335         (Makefile.am): Augment lib_SOURCES.
7336
7337 2011-05-23  Bruno Haible  <bruno@clisp.org>
7338
7339         i-ring: Move AC_LIBOBJ invocations to module description.
7340         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7341         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7342
7343 2011-05-23  Bruno Haible  <bruno@clisp.org>
7344
7345         idcache: Move AC_LIBOBJ invocations to module description.
7346         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7347         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7348
7349 2011-05-23  Bruno Haible  <bruno@clisp.org>
7350
7351         human: Move AC_LIBOBJ invocations to module description.
7352         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7353         * modules/human (Makefile.am): Augment lib_SOURCES.
7354
7355 2011-05-23  Bruno Haible  <bruno@clisp.org>
7356
7357         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7358         * m4/hmac-sha1.m4: Remove file.
7359         * modules/crypto/hmac-sha1 (Files): Remove it.
7360         (configure.ac): Remove gl_HMAC_SHA1 call.
7361         (Makefile.am): Augment lib_SOURCES.
7362
7363 2011-05-23  Bruno Haible  <bruno@clisp.org>
7364
7365         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7366         * m4/hmac-md5.m4: Remove file.
7367         * modules/crypto/hmac-md5 (Files): Remove it.
7368         (configure.ac): Remove gl_HMAC_MD5 call.
7369         (Makefile.am): Augment lib_SOURCES.
7370
7371 2011-05-23  Bruno Haible  <bruno@clisp.org>
7372
7373         hash: Move AC_LIBOBJ invocations to module description.
7374         * m4/hash.m4: Remove file.
7375         * modules/hash (Files): Remove it.
7376         (configure.ac): Remove gl_HASH call.
7377         (Makefile.am): Augment lib_SOURCES.
7378
7379 2011-05-23  Bruno Haible  <bruno@clisp.org>
7380
7381         hard-locale: Move AC_LIBOBJ invocations to module description.
7382         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7383         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7384
7385 2011-05-23  Bruno Haible  <bruno@clisp.org>
7386
7387         getugroups: Move AC_LIBOBJ invocations to module description.
7388         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7389         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7390
7391 2011-05-23  Bruno Haible  <bruno@clisp.org>
7392
7393         gettime: Move AC_LIBOBJ invocations to module description.
7394         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7395         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7396
7397 2011-05-23  Bruno Haible  <bruno@clisp.org>
7398
7399         getndelim2: Move AC_LIBOBJ invocations to module description.
7400         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7401         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7402
7403 2011-05-23  Bruno Haible  <bruno@clisp.org>
7404
7405         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7406         * m4/gc-pbkdf2-sha1.m4: Remove file.
7407         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7408         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7409         (Makefile.am): Augment lib_SOURCES.
7410
7411 2011-05-23  Bruno Haible  <bruno@clisp.org>
7412
7413         fts: Move AC_LIBOBJ invocations to module description.
7414         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7415         * modules/fts (configure.ac): ... to here.
7416
7417 2011-05-23  Bruno Haible  <bruno@clisp.org>
7418
7419         file-type: Move AC_LIBOBJ invocations to module description.
7420         * m4/file-type.m4: Remove file.
7421         * modules/file-type (Files): Remove it.
7422         (configure.ac): Remove gl_FILE_TYPE call.
7423         (Makefile.am): Augment lib_SOURCES.
7424
7425 2011-05-23  Bruno Haible  <bruno@clisp.org>
7426
7427         filenamecat*: Respect rules for use of AC_LIBOBJ.
7428         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7429         Remove AC_LIBOBJ invocation.
7430         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7431         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7432
7433 2011-05-23  Bruno Haible  <bruno@clisp.org>
7434
7435         filemode: Move AC_LIBOBJ invocations to module description.
7436         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7437         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7438
7439 2011-05-23  Bruno Haible  <bruno@clisp.org>
7440
7441         openat-safer: Move AC_LIBOBJ invocations to module description.
7442         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7443         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7444
7445 2011-05-23  Bruno Haible  <bruno@clisp.org>
7446
7447         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7448         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7449         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7450
7451 2011-05-23  Bruno Haible  <bruno@clisp.org>
7452
7453         exclude: Move AC_LIBOBJ invocations to module description.
7454         * m4/exclude.m4: Remove file.
7455         * modules/exclude (Files): Remove it.
7456         (configure.ac): Remove gl_EXCLUDE call.
7457         (Makefile.am): Augment lib_SOURCES.
7458
7459 2011-05-23  Bruno Haible  <bruno@clisp.org>
7460
7461         dirname*: Respect rules for use of AC_LIBOBJ.
7462         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7463         invocations.
7464         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7465         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7466
7467 2011-05-23  Bruno Haible  <bruno@clisp.org>
7468
7469         dirent-safer: Move AC_LIBOBJ invocations to module description.
7470         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7471         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7472
7473 2011-05-23  Bruno Haible  <bruno@clisp.org>
7474
7475         crypto/des: Move AC_LIBOBJ invocations to module description.
7476         * m4/des.m4: Remove file.
7477         * modules/crypto/des (Files): Remove it.
7478         (configure.ac): Remove gl_DES call.
7479         (Makefile.am): Augment lib_SOURCES.
7480
7481 2011-05-23  Bruno Haible  <bruno@clisp.org>
7482
7483         cycle-check: Move AC_LIBOBJ invocations to module description.
7484         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7485         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7486
7487 2011-05-23  Bruno Haible  <bruno@clisp.org>
7488
7489         c-strtold: Move AC_LIBOBJ invocations to module description.
7490         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7491         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7492
7493 2011-05-23  Bruno Haible  <bruno@clisp.org>
7494
7495         c-strtod: Move AC_LIBOBJ invocations to module description.
7496         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7497         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7498
7499 2011-05-23  Bruno Haible  <bruno@clisp.org>
7500
7501         crc: Move AC_LIBOBJ invocations to module description.
7502         * m4/crc.m4: Remove file.
7503         * modules/crc (Files): Remove it.
7504         (configure.ac): Remove gl_CRC call.
7505         (Makefile.am): Augment lib_SOURCES.
7506
7507 2011-05-23  Bruno Haible  <bruno@clisp.org>
7508
7509         close-stream: Move AC_LIBOBJ invocations to module description.
7510         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7511         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7512
7513 2011-05-23  Bruno Haible  <bruno@clisp.org>
7514
7515         closeout: Move AC_LIBOBJ invocations to module description.
7516         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7517         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7518
7519 2011-05-23  Bruno Haible  <bruno@clisp.org>
7520
7521         closein: Move AC_LIBOBJ invocations to module description.
7522         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7523         * modules/closein (Makefile.am): Augment lib_SOURCES.
7524
7525 2011-05-23  Bruno Haible  <bruno@clisp.org>
7526
7527         cloexec: Move AC_LIBOBJ invocations to module description.
7528         * m4/cloexec.m4: Remove file.
7529         * modules/cloexec (Files): Remove it.
7530         (configure.ac): Remove gl_CLOEXEC call.
7531         (Makefile.am): Augment lib_SOURCES.
7532
7533 2011-05-23  Bruno Haible  <bruno@clisp.org>
7534
7535         check-version: Move AC_LIBOBJ invocations to module description.
7536         * m4/check-version.m4: Remove file.
7537         * modules/check-version (Files): Remove it.
7538         (configure.ac): Remove gl_CHECK_VERSION call.
7539         (Makefile.am): Augment lib_SOURCES.
7540
7541 2011-05-23  Bruno Haible  <bruno@clisp.org>
7542
7543         chdir-safer: Move AC_LIBOBJ invocations to module description.
7544         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7545         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7546
7547 2011-05-23  Bruno Haible  <bruno@clisp.org>
7548
7549         canonicalize: Move AC_LIBOBJ invocations to module description.
7550         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7551         AC_LIBOBJ invocation.
7552         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7553
7554 2011-05-23  Bruno Haible  <bruno@clisp.org>
7555
7556         canon-host: Move AC_LIBOBJ invocations to module description.
7557         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7558         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7559         instead of gl_CANON_HOST.
7560         (Makefile.am): Augment lib_SOURCES.
7561
7562 2011-05-23  Bruno Haible  <bruno@clisp.org>
7563
7564         backupfile: Move AC_LIBOBJ invocations to module description.
7565         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7566         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7567
7568 2011-05-23  Bruno Haible  <bruno@clisp.org>
7569
7570         argmatch: Move AC_LIBOBJ invocations to module description.
7571         * m4/argmatch.m4: Remove file.
7572         * modules/argmatch (Files): Remove it.
7573         (configure.ac): Remove gl_ARGMATCH call.
7574         (Makefile.am): Augment lib_SOURCES.
7575
7576 2011-05-23  Bruno Haible  <bruno@clisp.org>
7577
7578         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7579         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7580         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7581
7582 2011-05-23  Bruno Haible  <bruno@clisp.org>
7583
7584         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7585         * m4/arcfour.m4: Remove file.
7586         * modules/crypto/arcfour (Files): Remove it.
7587         (configure.ac): Remove gl_ARCFOUR call.
7588         (Makefile.am): Augment lib_SOURCES.
7589
7590 2011-05-22  Bruno Haible  <bruno@clisp.org>
7591
7592         write: Move AC_LIBOBJ invocations to module description.
7593         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7594         * modules/write (configure.ac): ... to here.
7595
7596 2011-05-22  Bruno Haible  <bruno@clisp.org>
7597
7598         wmemset: Move AC_LIBOBJ invocations to module description.
7599         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7600         here...
7601         * modules/wmemset (configure.ac): ... to here.
7602
7603 2011-05-22  Bruno Haible  <bruno@clisp.org>
7604
7605         wmemmove: Move AC_LIBOBJ invocations to module description.
7606         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7607         here...
7608         * modules/wmemmove (configure.ac): ... to here.
7609
7610 2011-05-22  Bruno Haible  <bruno@clisp.org>
7611
7612         wmemcpy: Move AC_LIBOBJ invocations to module description.
7613         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7614         here...
7615         * modules/wmemcpy (configure.ac): ... to here.
7616
7617 2011-05-22  Bruno Haible  <bruno@clisp.org>
7618
7619         wmemcmp: Move AC_LIBOBJ invocations to module description.
7620         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7621         here...
7622         * modules/wmemcmp (configure.ac): ... to here.
7623
7624 2011-05-22  Bruno Haible  <bruno@clisp.org>
7625
7626         wmemchr: Move AC_LIBOBJ invocations to module description.
7627         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7628         here...
7629         * modules/wmemchr (configure.ac): ... to here.
7630
7631 2011-05-22  Bruno Haible  <bruno@clisp.org>
7632
7633         wcswidth: Move AC_LIBOBJ invocations to module description.
7634         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7635         here...
7636         * modules/wcswidth (configure.ac): ... to here.
7637
7638 2011-05-22  Bruno Haible  <bruno@clisp.org>
7639
7640         wcwidth: Respect rules for use of AC_LIBOBJ.
7641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7642         invocation from here...
7643         * modules/wcwidth (configure.ac): ... to here.
7644         (Depends-on): Update conditions.
7645
7646 2011-05-22  Bruno Haible  <bruno@clisp.org>
7647
7648         wctype: Move AC_LIBOBJ invocations to module description.
7649         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7650         invocation from here...
7651         * modules/wctype (configure.ac): ... to here.
7652         (Depends-on): Update conditions.
7653
7654 2011-05-22  Bruno Haible  <bruno@clisp.org>
7655
7656         wctrans: Move AC_LIBOBJ invocations to module description.
7657         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7658         invocation from here...
7659         * modules/wctrans (configure.ac): ... to here.
7660
7661 2011-05-22  Bruno Haible  <bruno@clisp.org>
7662
7663         wctomb: Move AC_LIBOBJ invocations to module description.
7664         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7665         invocations from here...
7666         * modules/wctomb (configure.ac): ... to here.
7667
7668 2011-05-22  Bruno Haible  <bruno@clisp.org>
7669
7670         wctob: Move AC_LIBOBJ invocations to module description.
7671         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7672         gl_PREREQ_WCTOB invocations from here...
7673         * modules/wctob (configure.ac): ... to here.
7674         (Depends-on): Update conditions.
7675
7676 2011-05-22  Bruno Haible  <bruno@clisp.org>
7677
7678         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7679         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7680         here...
7681         * modules/wcsxfrm (configure.ac): ... to here.
7682
7683 2011-05-22  Bruno Haible  <bruno@clisp.org>
7684
7685         wcstok: Move AC_LIBOBJ invocations to module description.
7686         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7687         * modules/wcstok (configure.ac): ... to here.
7688
7689 2011-05-22  Bruno Haible  <bruno@clisp.org>
7690
7691         wcsstr: Move AC_LIBOBJ invocations to module description.
7692         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7693         * modules/wcsstr (configure.ac): ... to here.
7694
7695 2011-05-22  Bruno Haible  <bruno@clisp.org>
7696
7697         wcsspn: Move AC_LIBOBJ invocations to module description.
7698         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7699         * modules/wcsspn (configure.ac): ... to here.
7700
7701 2011-05-22  Bruno Haible  <bruno@clisp.org>
7702
7703         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7704         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7705         gl_PREREQ_WCSRTOMBS invocations from here...
7706         * modules/wcsrtombs (configure.ac): ... to here.
7707
7708 2011-05-22  Bruno Haible  <bruno@clisp.org>
7709
7710         wcsrchr: Move AC_LIBOBJ invocations to module description.
7711         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7712         here...
7713         * modules/wcsrchr (configure.ac): ... to here.
7714
7715 2011-05-22  Bruno Haible  <bruno@clisp.org>
7716
7717         wcspbrk: Move AC_LIBOBJ invocations to module description.
7718         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7719         here...
7720         * modules/wcspbrk (configure.ac): ... to here.
7721
7722 2011-05-22  Bruno Haible  <bruno@clisp.org>
7723
7724         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7725         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7726         gl_PREREQ_WCSNRTOMBS invocations from here...
7727         * modules/wcsnrtombs (configure.ac): ... to here.
7728
7729 2011-05-22  Bruno Haible  <bruno@clisp.org>
7730
7731         wcsnlen: Move AC_LIBOBJ invocations to module description.
7732         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7733         here...
7734         * modules/wcsnlen (configure.ac): ... to here.
7735
7736 2011-05-22  Bruno Haible  <bruno@clisp.org>
7737
7738         wcsncpy: Move AC_LIBOBJ invocations to module description.
7739         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7740         here...
7741         * modules/wcsncpy (configure.ac): ... to here.
7742
7743 2011-05-22  Bruno Haible  <bruno@clisp.org>
7744
7745         wcsncmp: Move AC_LIBOBJ invocations to module description.
7746         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7747         here...
7748         * modules/wcsncmp (configure.ac): ... to here.
7749
7750 2011-05-22  Bruno Haible  <bruno@clisp.org>
7751
7752         wcsncat: Move AC_LIBOBJ invocations to module description.
7753         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7754         here...
7755         * modules/wcsncat (configure.ac): ... to here.
7756
7757 2011-05-22  Bruno Haible  <bruno@clisp.org>
7758
7759         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7760         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7761         from here...
7762         * modules/wcsncasecmp (configure.ac): ... to here.
7763
7764 2011-05-22  Bruno Haible  <bruno@clisp.org>
7765
7766         wcslen: Move AC_LIBOBJ invocations to module description.
7767         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7768         * modules/wcslen (configure.ac): ... to here.
7769
7770 2011-05-22  Bruno Haible  <bruno@clisp.org>
7771
7772         wcsdup: Move AC_LIBOBJ invocations to module description.
7773         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7774         * modules/wcsdup (configure.ac): ... to here.
7775
7776 2011-05-22  Bruno Haible  <bruno@clisp.org>
7777
7778         wcscspn: Move AC_LIBOBJ invocations to module description.
7779         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7780         here...
7781         * modules/wcscspn (configure.ac): ... to here.
7782
7783 2011-05-22  Bruno Haible  <bruno@clisp.org>
7784
7785         wcscpy: Move AC_LIBOBJ invocations to module description.
7786         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7787         * modules/wcscpy (configure.ac): ... to here.
7788
7789 2011-05-22  Bruno Haible  <bruno@clisp.org>
7790
7791         wcscoll: Move AC_LIBOBJ invocations to module description.
7792         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7793         here...
7794         * modules/wcscoll (configure.ac): ... to here.
7795
7796 2011-05-22  Bruno Haible  <bruno@clisp.org>
7797
7798         wcscmp: Move AC_LIBOBJ invocations to module description.
7799         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7800         * modules/wcscmp (configure.ac): ... to here.
7801
7802 2011-05-22  Bruno Haible  <bruno@clisp.org>
7803
7804         wcschr: Move AC_LIBOBJ invocations to module description.
7805         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7806         * modules/wcschr (configure.ac): ... to here.
7807
7808 2011-05-22  Bruno Haible  <bruno@clisp.org>
7809
7810         wcscat: Move AC_LIBOBJ invocations to module description.
7811         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7812         * modules/wcscat (configure.ac): ... to here.
7813
7814 2011-05-22  Bruno Haible  <bruno@clisp.org>
7815
7816         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7817         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7818         here...
7819         * modules/wcscasecmp (configure.ac): ... to here.
7820
7821 2011-05-22  Bruno Haible  <bruno@clisp.org>
7822
7823         wcrtomb: Move AC_LIBOBJ invocations to module description.
7824         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7825         invocations from here...
7826         * modules/wcrtomb (configure.ac): ... to here.
7827
7828 2011-05-22  Bruno Haible  <bruno@clisp.org>
7829
7830         wcpncpy: Move AC_LIBOBJ invocations to module description.
7831         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7832         here...
7833         * modules/wcpncpy (configure.ac): ... to here.
7834
7835 2011-05-22  Bruno Haible  <bruno@clisp.org>
7836
7837         wcpcpy: Move AC_LIBOBJ invocations to module description.
7838         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7839         * modules/wcpcpy (configure.ac): ... to here.
7840
7841 2011-05-22  Bruno Haible  <bruno@clisp.org>
7842
7843         waitpid: Move AC_LIBOBJ invocations to module description.
7844         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7845         invocation from here...
7846         * modules/waitpid (configure.ac): ... to here.
7847
7848 2011-05-22  Bruno Haible  <bruno@clisp.org>
7849
7850         utimensat: Move AC_LIBOBJ invocations to module description.
7851         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7852         here...
7853         * modules/utimensat (configure.ac): ... to here.
7854
7855 2011-05-22  Bruno Haible  <bruno@clisp.org>
7856
7857         usleep: Move AC_LIBOBJ invocations to module description.
7858         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7859         here...
7860         * modules/usleep (configure.ac): ... to here.
7861
7862 2011-05-22  Bruno Haible  <bruno@clisp.org>
7863
7864         unlockpt: Move AC_LIBOBJ invocations to module description.
7865         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7866         gl_PREREQ_UNLOCKPT invocations from here...
7867         * modules/unlockpt (configure.ac): ... to here.
7868
7869 2011-05-22  Bruno Haible  <bruno@clisp.org>
7870
7871         unlink: Respect rules for use of AC_LIBOBJ.
7872         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7873         * modules/unlink (configure.ac): ... to here.
7874
7875 2011-05-22  Bruno Haible  <bruno@clisp.org>
7876
7877         uname: Move AC_LIBOBJ invocations to module description.
7878         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7879         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7880         here...
7881         * modules/uname (configure.ac): ... to here.
7882
7883 2011-05-22  Bruno Haible  <bruno@clisp.org>
7884
7885         ttyname_r: Move AC_LIBOBJ invocations to module description.
7886         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7887         gl_PREREQ_TTYNAME_R invocations from here...
7888         * modules/ttyname_r (configure.ac): ... to here.
7889
7890 2011-05-22  Bruno Haible  <bruno@clisp.org>
7891
7892         tsearch: Move AC_LIBOBJ invocations to module description.
7893         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7894         invocations from here...
7895         * modules/tsearch (configure.ac): ... to here.
7896
7897 2011-05-22  Bruno Haible  <bruno@clisp.org>
7898
7899         towctrans: Move AC_LIBOBJ invocations to module description.
7900         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7901         AC_LIBOBJ invocation from here...
7902         * modules/towctrans (configure.ac): ... to here.
7903
7904 2011-05-22  Bruno Haible  <bruno@clisp.org>
7905
7906         tmpfile: Move AC_LIBOBJ invocations to module description.
7907         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7908         invocations from here...
7909         * modules/tmpfile (configure.ac): ... to here.
7910
7911 2011-05-22  Bruno Haible  <bruno@clisp.org>
7912
7913         times: Move AC_LIBOBJ invocations to module description.
7914         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7915         * modules/times (configure.ac): ... to here.
7916
7917 2011-05-22  Bruno Haible  <bruno@clisp.org>
7918
7919         time_r: Move AC_LIBOBJ invocations to module description.
7920         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7921         invocations from here...
7922         * modules/time_r (configure.ac): ... to here.
7923
7924 2011-05-22  Bruno Haible  <bruno@clisp.org>
7925
7926         timegm: Move AC_LIBOBJ invocations to module description.
7927         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7928         invocations from here...
7929         * modules/timegm (configure.ac): ... to here.
7930
7931 2011-05-22  Bruno Haible  <bruno@clisp.org>
7932
7933         tcgetsid: Move AC_LIBOBJ invocations to module description.
7934         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7935         and gl_PREREQ_TCGETSID invocations from here...
7936         * modules/tcgetsid (configure.ac): ... to here.
7937         (Depends-on): Update conditions.
7938
7939 2011-05-22  Bruno Haible  <bruno@clisp.org>
7940
7941         symlinkat: Move AC_LIBOBJ invocations to module description.
7942         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7943         here...
7944         * modules/symlinkat (configure.ac): ... to here.
7945
7946 2011-05-22  Bruno Haible  <bruno@clisp.org>
7947
7948         symlink: Move AC_LIBOBJ invocations to module description.
7949         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7950         here...
7951         * modules/symlink (configure.ac): ... to here.
7952
7953 2011-05-22  Bruno Haible  <bruno@clisp.org>
7954
7955         strverscmp: Move AC_LIBOBJ invocations to module description.
7956         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7957         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7958         from here...
7959         * modules/strverscmp (configure.ac): ... to here.
7960
7961 2011-05-22  Bruno Haible  <bruno@clisp.org>
7962
7963         strtok_r: Move AC_LIBOBJ invocations to module description.
7964         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7965         and gl_PREREQ_STRTOK_R invocations from here...
7966         * modules/strtok_r (configure.ac): ... to here.
7967         (Depends-on): Update conditions.
7968
7969 2011-05-22  Bruno Haible  <bruno@clisp.org>
7970
7971         strtoumax: Move AC_LIBOBJ invocations to module description.
7972         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7973         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7974         from here...
7975         * modules/strtoumax (configure.ac): ... to here.
7976
7977 2011-05-22  Bruno Haible  <bruno@clisp.org>
7978
7979         strtoimax: Move AC_LIBOBJ invocations to module description.
7980         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7981         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7982         from here...
7983         * modules/strtoimax (configure.ac): ... to here.
7984
7985 2011-05-22  Bruno Haible  <bruno@clisp.org>
7986
7987         strtoull: Move AC_LIBOBJ invocations to module description.
7988         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7989         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7990         from here...
7991         * modules/strtoull (configure.ac): ... to here.
7992
7993 2011-05-22  Bruno Haible  <bruno@clisp.org>
7994
7995         strtoll: Move AC_LIBOBJ invocations to module description.
7996         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7997         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7998         here...
7999         * modules/strtoll (configure.ac): ... to here.
8000
8001 2011-05-22  Bruno Haible  <bruno@clisp.org>
8002
8003         strtoul: Move AC_LIBOBJ invocations to module description.
8004         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8005         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8006         * modules/strtoul (configure.ac): ... to here.
8007
8008 2011-05-22  Bruno Haible  <bruno@clisp.org>
8009
8010         strtol: Move AC_LIBOBJ invocations to module description.
8011         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8012         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8013         * modules/strtol (configure.ac): ... to here.
8014
8015 2011-05-22  Bruno Haible  <bruno@clisp.org>
8016
8017         strtod: Move AC_LIBOBJ invocations to module description.
8018         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8019         invocations from here...
8020         * modules/strtod (configure.ac): ... to here.
8021
8022 2011-05-22  Bruno Haible  <bruno@clisp.org>
8023
8024         strstr*: Move AC_LIBOBJ invocations to module description.
8025         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8026         invocations from here...
8027         * modules/strstr-simple (configure.ac): ... to here.
8028         * modules/strstr (configure.ac): ... and here.
8029
8030 2011-05-22  Bruno Haible  <bruno@clisp.org>
8031
8032         strsignal: Move AC_LIBOBJ invocations to module description.
8033         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8034         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8035         * modules/strsignal (configure.ac): ... to here.
8036         (Depends-on): Update conditions.
8037
8038 2011-05-22  Bruno Haible  <bruno@clisp.org>
8039
8040         strsep: Move AC_LIBOBJ invocations to module description.
8041         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8042         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8043         here...
8044         * modules/strsep (configure.ac): ... to here.
8045
8046 2011-05-22  Bruno Haible  <bruno@clisp.org>
8047
8048         strptime: Move AC_LIBOBJ invocations to module description.
8049         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8050         gl_PREREQ_STRPTIME invocations from here...
8051         * modules/strptime (configure.ac): ... to here.
8052
8053 2011-05-22  Bruno Haible  <bruno@clisp.org>
8054
8055         strpbrk: Move AC_LIBOBJ invocations to module description.
8056         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8057         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8058         here...
8059         * modules/strpbrk (configure.ac): ... to here.
8060
8061 2011-05-22  Bruno Haible  <bruno@clisp.org>
8062
8063         strnlen: Move AC_LIBOBJ invocations to module description.
8064         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8065         invocations from here...
8066         * modules/strnlen (configure.ac): ... to here.
8067
8068 2011-05-22  Bruno Haible  <bruno@clisp.org>
8069
8070         strndup: Move AC_LIBOBJ invocations to module description.
8071         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8072         invocations from here...
8073         * modules/strndup (configure.ac): ... to here.
8074         (Depends-on): Update conditions.
8075
8076 2011-05-22  Bruno Haible  <bruno@clisp.org>
8077
8078         strncat: Move AC_LIBOBJ invocations to module description.
8079         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8080         invocations from here...
8081         * modules/strncat (configure.ac): ... to here.
8082
8083 2011-05-22  Bruno Haible  <bruno@clisp.org>
8084
8085         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8086         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8087         invocations from here...
8088         * modules/strdup (configure.ac): ... to here.
8089         * modules/strdup-posix (configure.ac): ... and here.
8090
8091 2011-05-22  Bruno Haible  <bruno@clisp.org>
8092
8093         strcspn: Move AC_LIBOBJ invocations to module description.
8094         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8095         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8096         here...
8097         * modules/strcspn (configure.ac): ... to here.
8098
8099 2011-05-22  Bruno Haible  <bruno@clisp.org>
8100
8101         strchrnul: Move AC_LIBOBJ invocations to module description.
8102         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8103         gl_PREREQ_STRCHRNUL invocations from here...
8104         * modules/strchrnul (configure.ac): ... to here.
8105
8106 2011-05-22  Bruno Haible  <bruno@clisp.org>
8107
8108         strcasestr*: Move AC_LIBOBJ invocations to module description.
8109         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8110         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8111         * modules/strcasestr-simple (configure.ac): ... to here.
8112         * modules/strcasestr (configure.ac): ... and here.
8113
8114 2011-05-22  Bruno Haible  <bruno@clisp.org>
8115
8116         strcase: Move AC_LIBOBJ invocations to module description.
8117         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8118         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8119         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8120         gl_PREREQ_STRNCASECMP invocations from here...
8121         * modules/strcase (configure.ac): ... to here.
8122
8123 2011-05-22  Bruno Haible  <bruno@clisp.org>
8124
8125         stpncpy: Move AC_LIBOBJ invocations to module description.
8126         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8127         here...
8128         * modules/stpncpy (configure.ac): ... to here.
8129
8130 2011-05-22  Bruno Haible  <bruno@clisp.org>
8131
8132         stpcpy: Move AC_LIBOBJ invocations to module description.
8133         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8134         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8135         here...
8136         * modules/stpcpy (configure.ac): ... to here.
8137
8138 2011-05-21  Bruno Haible  <bruno@clisp.org>
8139
8140         stat: Move AC_LIBOBJ invocations to module description.
8141         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8142         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8143         here...
8144         * modules/stat (configure.ac): ... to here.
8145
8146 2011-05-21  Bruno Haible  <bruno@clisp.org>
8147
8148         sleep: Move AC_LIBOBJ invocations to module description.
8149         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8150         * modules/sleep (configure.ac): ... to here.
8151
8152 2011-05-21  Bruno Haible  <bruno@clisp.org>
8153
8154         signbit: Move AC_LIBOBJ invocations to module description.
8155         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8156         * modules/signbit (configure.ac): ... to here.
8157
8158 2011-05-21  Bruno Haible  <bruno@clisp.org>
8159
8160         sigprocmask: Move AC_LIBOBJ invocations to module description.
8161         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8162         gl_PREREQ_SIGPROMASK invocations from here...
8163         * modules/sigprocmask (configure.ac): ... to here.
8164
8165 2011-05-21  Bruno Haible  <bruno@clisp.org>
8166
8167         sigaction: Move AC_LIBOBJ invocations to module description.
8168         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8169         gl_PREREQ_SIGACTION invocations from here...
8170         * modules/sigaction (configure.ac): ... to here.
8171
8172 2011-05-21  Bruno Haible  <bruno@clisp.org>
8173
8174         sig2str: Move AC_LIBOBJ invocations to module description.
8175         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8176         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8177         here...
8178         * modules/sig2str (configure.ac): ... to here.
8179
8180 2011-05-21  Bruno Haible  <bruno@clisp.org>
8181
8182         setlocale: Move AC_LIBOBJ invocations to module description.
8183         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8184         gl_PREREQ_SETLOCALE invocations from here...
8185         * modules/setlocale (configure.ac): ... to here.
8186
8187 2011-05-21  Bruno Haible  <bruno@clisp.org>
8188
8189         unsetenv: Move AC_LIBOBJ invocations to module description.
8190         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8191         and gl_PREREQ_UNSETENV invocations from here...
8192         * modules/unsetenv (configure.ac): ... to here.
8193         (Depends-on): Update.
8194
8195 2011-05-21  Bruno Haible  <bruno@clisp.org>
8196
8197         setenv: Move AC_LIBOBJ invocations to module description.
8198         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8199         here...
8200         * modules/setenv (configure.ac): ... to here.
8201
8202 2011-05-21  Bruno Haible  <bruno@clisp.org>
8203
8204         selinux-h: Move AC_LIBOBJ invocations to module description.
8205         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8206         AC_LIBOBJ invocation from here...
8207         * modules/selinux-h (configure.ac): ... to here.
8208
8209 2011-05-21  Bruno Haible  <bruno@clisp.org>
8210
8211         select: Respect rules for use of AC_LIBOBJ.
8212         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8213         here...
8214         * modules/select (configure.ac): ... to here.
8215
8216 2011-05-21  Bruno Haible  <bruno@clisp.org>
8217
8218         scandir: Move AC_LIBOBJ invocations to module description.
8219         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8220         invocations from here...
8221         * modules/scandir (configure.ac): ... to here.
8222
8223 2011-05-21  Bruno Haible  <bruno@clisp.org>
8224
8225         rpmatch: Move AC_LIBOBJ invocations to module description.
8226         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8227         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8228         here...
8229         * modules/rpmatch (configure.ac): ... to here.
8230
8231 2011-05-21  Bruno Haible  <bruno@clisp.org>
8232
8233         rmdir: Respect rules for use of AC_LIBOBJ.
8234         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8235         * modules/rmdir (configure.ac): ... to here.
8236
8237 2011-05-21  Bruno Haible  <bruno@clisp.org>
8238
8239         renameat: Move AC_LIBOBJ invocations to module description.
8240         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8241         here...
8242         * modules/renameat (configure.ac): ... to here.
8243
8244 2011-05-21  Bruno Haible  <bruno@clisp.org>
8245
8246         rename: Respect rules for use of AC_LIBOBJ.
8247         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8248         here...
8249         * modules/rename (configure.ac): ... to here.
8250
8251 2011-05-21  Bruno Haible  <bruno@clisp.org>
8252
8253         remove: Move AC_LIBOBJ invocations to module description.
8254         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8255         here...
8256         * modules/remove (configure.ac): ... to here.
8257
8258 2011-05-21  Bruno Haible  <bruno@clisp.org>
8259
8260         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8261         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8262         macro.
8263         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8264         * modules/relocatable-lib (configure.ac): ... to here.
8265         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8266         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8267
8268 2011-05-21  Bruno Haible  <bruno@clisp.org>
8269
8270         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8271         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8272         here...
8273         * modules/relocatable-prog (configure.ac): ... to here.
8274
8275 2011-05-21  Bruno Haible  <bruno@clisp.org>
8276
8277         regex: Move AC_LIBOBJ invocations to module description.
8278         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8279         invocations from here...
8280         * modules/regex (configure.ac): ... to here.
8281
8282 2011-05-21  Bruno Haible  <bruno@clisp.org>
8283
8284         realloc-*: Move AC_LIBOBJ invocations to module description.
8285         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8286         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8287         AC_LIBOBJ invocations from here...
8288         * modules/realloc-gnu (configure.ac): ... to here.
8289         * modules/realloc-posix (configure.ac): ... and here.
8290
8291 2011-05-21  Bruno Haible  <bruno@clisp.org>
8292
8293         readutmp: Move AC_LIBOBJ invocations to module description.
8294         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8295         * modules/readutmp (configure.ac): ... to here.
8296
8297 2011-05-21  Bruno Haible  <bruno@clisp.org>
8298
8299         readlinkat: Move AC_LIBOBJ invocations to module description.
8300         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8301         here...
8302         * modules/readlinkat (configure.ac): ... to here.
8303
8304 2011-05-21  Bruno Haible  <bruno@clisp.org>
8305
8306         readlink: Move AC_LIBOBJ invocations to module description.
8307         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8308         gl_PREREQ_READLINK invocations from here...
8309         * modules/readlink (configure.ac): ... to here.
8310
8311 2011-05-21  Bruno Haible  <bruno@clisp.org>
8312
8313         readline: Move AC_LIBOBJ invocations to module description.
8314         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8315         gl_PREREQ_READLINE invocations from here...
8316         * modules/readline (configure.ac): ... to here.
8317
8318 2011-05-21  Bruno Haible  <bruno@clisp.org>
8319
8320         read: Move AC_LIBOBJ invocations to module description.
8321         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8322         * modules/read (configure.ac): ... to here.
8323
8324 2011-05-21  Bruno Haible  <bruno@clisp.org>
8325
8326         rawmemchr: Move AC_LIBOBJ invocations to module description.
8327         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8328         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8329         from here...
8330         * modules/rawmemchr (configure.ac): ... to here.
8331
8332 2011-05-21  Bruno Haible  <bruno@clisp.org>
8333
8334         random_r: Move AC_LIBOBJ invocations to module description.
8335         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8336         gl_PREREQ_RANDOM_R invocations from here...
8337         * modules/random_r (configure.ac): ... to here.
8338
8339 2011-05-21  Bruno Haible  <bruno@clisp.org>
8340
8341         pwrite: Move AC_LIBOBJ invocations to module description.
8342         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8343         * modules/pwrite (configure.ac): ... to here.
8344
8345 2011-05-21  Bruno Haible  <bruno@clisp.org>
8346
8347         putenv: Move AC_LIBOBJ invocations to module description.
8348         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8349         * modules/putenv (configure.ac): ... to here.
8350
8351 2011-05-21  Bruno Haible  <bruno@clisp.org>
8352
8353         login_tty: Move AC_LIBOBJ invocations to module description.
8354         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8355         * modules/login_tty (configure.ac): ... to here.
8356
8357 2011-05-21  Bruno Haible  <bruno@clisp.org>
8358
8359         openpty: Move AC_LIBOBJ invocations to module description.
8360         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8361         * modules/openpty (configure.ac): ... to here.
8362
8363 2011-05-21  Bruno Haible  <bruno@clisp.org>
8364
8365         forkpty: Move AC_LIBOBJ invocations to module description.
8366         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8367         * modules/forkpty (configure.ac): ... to here.
8368
8369 2011-05-21  Bruno Haible  <bruno@clisp.org>
8370
8371         ptsname: Move AC_LIBOBJ invocations to module description.
8372         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8373         invocations from here...
8374         * modules/ptsname (configure.ac): ... to here.
8375
8376 2011-05-21  Bruno Haible  <bruno@clisp.org>
8377
8378         pread: Move AC_LIBOBJ invocations to module description.
8379         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8380         * modules/pread (configure.ac): ... to here.
8381
8382 2011-05-21  Bruno Haible  <bruno@clisp.org>
8383
8384         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8385         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8386         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8387         * modules/posix_spawn (configure.ac): ... to here.
8388         * modules/posix_spawnp (configure.ac): ... and here.
8389
8390 2011-05-21  Bruno Haible  <bruno@clisp.org>
8391
8392         popen: Move AC_LIBOBJ invocations to module description.
8393         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8394         invocations from here...
8395         * modules/popen (configure.ac): ... to here.
8396
8397 2011-05-21  Bruno Haible  <bruno@clisp.org>
8398
8399         poll: Move AC_LIBOBJ invocations to module description.
8400         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8401         invocations from here...
8402         * modules/poll (configure.ac): ... to here.
8403
8404 2011-05-21  Bruno Haible  <bruno@clisp.org>
8405
8406         pipe-posix: Move AC_LIBOBJ invocations to module description.
8407         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8408         * modules/pipe-posix (configure.ac): ... to here.
8409
8410 2011-05-21  Bruno Haible  <bruno@clisp.org>
8411
8412         openat: Respect rules for use of AC_LIBOBJ.
8413         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8414         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8415         * modules/openat (configure.ac): ... to here.
8416
8417 2011-05-21  Bruno Haible  <bruno@clisp.org>
8418
8419         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8420         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8421         invocation from here...
8422         * modules/obstack-printf (configure.ac): ... to here.
8423         * modules/obstack-printf-posix (configure.ac): ... and here.
8424
8425 2011-05-21  Bruno Haible  <bruno@clisp.org>
8426
8427         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8428         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8429         from here...
8430         * modules/nl_langinfo (configure.ac): ... to here.
8431
8432 2011-05-21  Bruno Haible  <bruno@clisp.org>
8433
8434         nanosleep: Move AC_LIBOBJ invocations to module description.
8435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8436         gl_PREREQ_NANOSLEEP invocations from here...
8437         * modules/nanosleep (configure.ac): ... to here.
8438
8439 2011-05-21  Bruno Haible  <bruno@clisp.org>
8440
8441         mountlist: Move AC_LIBOBJ invocations to module description.
8442         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8443         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8444         * modules/mountlist (configure.ac): ... to here.
8445
8446 2011-05-21  Bruno Haible  <bruno@clisp.org>
8447
8448         mktime: Respect rules for use of AC_LIBOBJ.
8449         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8450         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8451         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8452         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8453         * modules/mktime (configure.ac): ... to here.
8454         * modules/mktime-internal (configure.ac): ... and here.
8455         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8456
8457 2011-05-21  Bruno Haible  <bruno@clisp.org>
8458
8459         mkstemps: Move AC_LIBOBJ invocations to module description.
8460         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8461         here...
8462         * modules/mkstemps (configure.ac): ... to here.
8463
8464 2011-05-21  Bruno Haible  <bruno@clisp.org>
8465
8466         mkstemp: Move AC_LIBOBJ invocations to module description.
8467         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8468         gl_PREREQ_MKSTEMP invocations from here...
8469         * modules/mkstemp (configure.ac): ... to here.
8470
8471 2011-05-21  Bruno Haible  <bruno@clisp.org>
8472
8473         mkostemps: Move AC_LIBOBJ invocations to module description.
8474         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8475         here...
8476         * modules/mkostemps (configure.ac): ... to here.
8477
8478 2011-05-21  Bruno Haible  <bruno@clisp.org>
8479
8480         mkostemp: Move AC_LIBOBJ invocations to module description.
8481         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8482         gl_PREREQ_MKOSTEMP invocations from here...
8483         * modules/mkostemp (configure.ac): ... to here.
8484
8485 2011-05-21  Bruno Haible  <bruno@clisp.org>
8486
8487         mknod: Move AC_LIBOBJ invocations to module description.
8488         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8489         * modules/mknod (configure.ac): ... to here.
8490
8491 2011-05-21  Bruno Haible  <bruno@clisp.org>
8492
8493         mkfifoat: Move AC_LIBOBJ invocations to module description.
8494         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8495         here...
8496         * modules/mkfifoat (configure.ac): ... to here.
8497
8498 2011-05-21  Bruno Haible  <bruno@clisp.org>
8499
8500         mkfifo: Respect rules for use of AC_LIBOBJ.
8501         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8502         here...
8503         * modules/mkfifo (configure.ac): ... to here.
8504
8505 2011-05-21  Bruno Haible  <bruno@clisp.org>
8506
8507         mkdtemp: Move AC_LIBOBJ invocations to module description.
8508         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8509         invocations from here...
8510         * modules/mkdtemp (configure.ac): ... to here.
8511
8512 2011-05-21  Bruno Haible  <bruno@clisp.org>
8513
8514         mkdir: Move AC_LIBOBJ invocations to module description.
8515         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8516         * modules/mkdir (configure.ac): ... to here.
8517
8518 2011-05-21  Bruno Haible  <bruno@clisp.org>
8519
8520         memset: Move AC_LIBOBJ invocations to module description.
8521         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8522         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8523         here...
8524         * modules/memset (configure.ac): ... to here.
8525
8526 2011-05-21  Bruno Haible  <bruno@clisp.org>
8527
8528         memrchr: Move AC_LIBOBJ invocations to module description.
8529         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8530         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8531         here...
8532         * modules/memrchr (configure.ac): ... to here.
8533
8534 2011-05-21  Bruno Haible  <bruno@clisp.org>
8535
8536         mempcpy: Move AC_LIBOBJ invocations to module description.
8537         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8538         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8539         here...
8540         * modules/mempcpy (configure.ac): ... to here.
8541
8542 2011-05-21  Bruno Haible  <bruno@clisp.org>
8543
8544         memmove: Move AC_LIBOBJ invocations to module description.
8545         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8546         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8547         here...
8548         * modules/memmove (configure.ac): ... to here.
8549
8550 2011-05-21  Bruno Haible  <bruno@clisp.org>
8551
8552         memmem*: Move AC_LIBOBJ invocations to module description.
8553         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8554         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8555         here...
8556         (gl_FUNC_MEMMEM): ... and here...
8557         * modules/memmem-simple (configure.ac): ... to here.
8558         * modules/memmem (configure.ac): ... and here.
8559
8560 2011-05-21  Bruno Haible  <bruno@clisp.org>
8561
8562         memcpy: Move AC_LIBOBJ invocations to module description.
8563         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8564         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8565         here...
8566         * modules/memcpy (configure.ac): ... to here.
8567
8568 2011-05-21  Bruno Haible  <bruno@clisp.org>
8569
8570         memcmp: Simplify autoconf macro.
8571         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8572         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8573         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8574
8575 2011-05-21  Bruno Haible  <bruno@clisp.org>
8576
8577         memcmp: Move AC_LIBOBJ invocations to module description.
8578         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8579         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8580         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8581         * modules/memcmp (configure.ac): ... to here.
8582         (Depends-on): Update conditions.
8583
8584 2011-05-21  Bruno Haible  <bruno@clisp.org>
8585
8586         memchr: Respect rules for use of AC_LIBOBJ.
8587         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8588         invocations from here...
8589         * modules/memchr (configure.ac): ... to here.
8590
8591 2011-05-21  Bruno Haible  <bruno@clisp.org>
8592
8593         mbtowc: Move AC_LIBOBJ invocations to module description.
8594         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8595         invocations from here...
8596         * modules/mbtowc (configure.ac): ... to here.
8597
8598 2011-05-21  Bruno Haible  <bruno@clisp.org>
8599
8600         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8601         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8602         gl_PREREQ_MBSRTOWCS invocations from here...
8603         * modules/mbsrtowcs (configure.ac): ... to here.
8604
8605 2011-05-21  Bruno Haible  <bruno@clisp.org>
8606
8607         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8608         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8609         gl_PREREQ_MBSNRTOWCS invocations from here...
8610         * modules/mbsnrtowcs (configure.ac): ... to here.
8611
8612 2011-05-21  Bruno Haible  <bruno@clisp.org>
8613
8614         mbsinit: Move AC_LIBOBJ invocations to module description.
8615         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8616         invocations from here...
8617         * modules/mbsinit (configure.ac): ... to here.
8618
8619 2011-05-21  Bruno Haible  <bruno@clisp.org>
8620
8621         mbrlen: Move AC_LIBOBJ invocations to module description.
8622         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8623         invocations from here...
8624         * modules/mbrlen (configure.ac): ... to here.
8625
8626 2011-05-21  Bruno Haible  <bruno@clisp.org>
8627
8628         mbrtowc: Respect rules for use of AC_LIBOBJ.
8629         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8630         invocations from here...
8631         * modules/mbrtowc (configure.ac): ... to here.
8632
8633 2011-05-21  Bruno Haible  <bruno@clisp.org>
8634
8635         malloc-*: Move AC_LIBOBJ invocations to module description.
8636         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8637         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8638         AC_LIBOBJ invocations from here...
8639         * modules/malloc-gnu (configure.ac): ... to here.
8640         * modules/malloc-posix (configure.ac): ... and here.
8641
8642 2011-05-21  Bruno Haible  <bruno@clisp.org>
8643
8644         lstat, openat: Respect rules for use of AC_LIBOBJ.
8645         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8646         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8647         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8648         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8649         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8650         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8651         here.
8652         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8653
8654 2011-05-21  Bruno Haible  <bruno@clisp.org>
8655
8656         lseek: Move AC_LIBOBJ invocations to module description.
8657         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8658         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8659         * modules/lseek (configure.ac): ... to here.
8660
8661 2011-05-21  Bruno Haible  <bruno@clisp.org>
8662
8663         linkat: Move AC_LIBOBJ invocations to module description.
8664         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8665         here...
8666         * modules/linkat (configure.ac): ... to here.
8667
8668 2011-05-21  Bruno Haible  <bruno@clisp.org>
8669
8670         link: Respect rules for use of AC_LIBOBJ.
8671         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8672         * modules/link (configure.ac): ... to here.
8673
8674 2011-05-21  Bruno Haible  <bruno@clisp.org>
8675
8676         lchown: Move AC_LIBOBJ invocations to module description.
8677         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8678         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8679         * modules/lchown (configure.ac): ... to here.
8680
8681 2011-05-21  Bruno Haible  <bruno@clisp.org>
8682
8683         iswctype: Move AC_LIBOBJ invocations to module description.
8684         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8685         here...
8686         * modules/iswctype (configure.ac): ... to here.
8687
8688 2011-05-21  Bruno Haible  <bruno@clisp.org>
8689
8690         iswblank: Move AC_LIBOBJ invocations to module description.
8691         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8692         here...
8693         * modules/iswblank (configure.ac): ... to here.
8694
8695 2011-05-21  Bruno Haible  <bruno@clisp.org>
8696
8697         atanl: Move AC_LIBOBJ invocations to module description.
8698         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8699         * modules/atanl (configure.ac): ... to here.
8700
8701 2011-05-21  Bruno Haible  <bruno@clisp.org>
8702
8703         acosl: Move AC_LIBOBJ invocations to module description.
8704         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8705         * modules/acosl (configure.ac): ... to here.
8706
8707 2011-05-21  Bruno Haible  <bruno@clisp.org>
8708
8709         asinl: Respect rules for use of AC_LIBOBJ.
8710         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8711         * modules/asinl (configure.ac): ... to here.
8712
8713 2011-05-21  Bruno Haible  <bruno@clisp.org>
8714
8715         tanl: Move AC_LIBOBJ invocations to module description.
8716         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8717         * modules/tanl (configure.ac): ... to here.
8718
8719 2011-05-21  Bruno Haible  <bruno@clisp.org>
8720
8721         cosl: Move AC_LIBOBJ invocations to module description.
8722         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8723         * modules/cosl (configure.ac): ... to here.
8724
8725 2011-05-21  Bruno Haible  <bruno@clisp.org>
8726
8727         sinl: Move AC_LIBOBJ invocations to module description.
8728         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8729         * modules/sinl (configure.ac): ... to here.
8730
8731 2011-05-21  Bruno Haible  <bruno@clisp.org>
8732
8733         logl: Move AC_LIBOBJ invocations to module description.
8734         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8735         * modules/logl (configure.ac): ... to here.
8736
8737 2011-05-21  Bruno Haible  <bruno@clisp.org>
8738
8739         expl: Move AC_LIBOBJ invocations to module description.
8740         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8741         * modules/expl (configure.ac): ... to here.
8742
8743 2011-05-21  Bruno Haible  <bruno@clisp.org>
8744
8745         roundl: Move AC_LIBOBJ invocations to module description.
8746         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8747         * modules/roundl (configure.ac): ... to here.
8748
8749 2011-05-21  Bruno Haible  <bruno@clisp.org>
8750
8751         round: Move AC_LIBOBJ invocations to module description.
8752         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8753         * modules/round (configure.ac): ... to here.
8754
8755 2011-05-21  Bruno Haible  <bruno@clisp.org>
8756
8757         roundf: Move AC_LIBOBJ invocations to module description.
8758         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8759         * modules/roundf (configure.ac): ... to here.
8760
8761 2011-05-21  Bruno Haible  <bruno@clisp.org>
8762
8763         truncl: Move AC_LIBOBJ invocations to module description.
8764         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8765         * modules/truncl (configure.ac): ... to here.
8766
8767 2011-05-21  Bruno Haible  <bruno@clisp.org>
8768
8769         trunc: Move AC_LIBOBJ invocations to module description.
8770         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8771         * modules/trunc (configure.ac): ... to here.
8772
8773 2011-05-21  Bruno Haible  <bruno@clisp.org>
8774
8775         truncf: Move AC_LIBOBJ invocations to module description.
8776         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8777         * modules/truncf (configure.ac): ... to here.
8778
8779 2011-05-21  Bruno Haible  <bruno@clisp.org>
8780
8781         ceill: Move AC_LIBOBJ invocations to module description.
8782         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8783         * modules/ceill (configure.ac): ... to here.
8784
8785 2011-05-21  Bruno Haible  <bruno@clisp.org>
8786
8787         ceil: Move AC_LIBOBJ invocations to module description.
8788         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8789         * modules/ceil (configure.ac): ... to here.
8790
8791 2011-05-21  Bruno Haible  <bruno@clisp.org>
8792
8793         ceilf: Move AC_LIBOBJ invocations to module description.
8794         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8795         * modules/ceilf (configure.ac): ... to here.
8796
8797 2011-05-21  Bruno Haible  <bruno@clisp.org>
8798
8799         floorl: Respect rules for use of AC_LIBOBJ.
8800         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8801         * modules/floorl (configure.ac): ... to here.
8802
8803 2011-05-21  Bruno Haible  <bruno@clisp.org>
8804
8805         floor: Respect rules for use of AC_LIBOBJ.
8806         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8807         * modules/floor (configure.ac): ... to here.
8808
8809 2011-05-21  Bruno Haible  <bruno@clisp.org>
8810
8811         floorf: Move AC_LIBOBJ invocations to module description.
8812         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8813         * modules/floorf (configure.ac): ... to here.
8814
8815 2011-05-20  Bruno Haible  <bruno@clisp.org>
8816
8817         sqrtl: Respect rules for use of AC_LIBOBJ.
8818         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8819         * modules/sqrtl (configure.ac): ... to here.
8820
8821 2011-05-20  Bruno Haible  <bruno@clisp.org>
8822
8823         ldexpl: Respect rules for use of AC_LIBOBJ.
8824         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8825         * modules/ldexpl (configure.ac): ... to here.
8826
8827 2011-05-20  Bruno Haible  <bruno@clisp.org>
8828
8829         frexpl*: Respect rules for use of AC_LIBOBJ.
8830         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8831         invocation from here...
8832         * modules/frexpl (configure.ac): ... to here.
8833         * modules/frexpl-nolibm (configure.ac): ... and here.
8834
8835 2011-05-20  Bruno Haible  <bruno@clisp.org>
8836
8837         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8838         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8839         invocation from here...
8840         * modules/frexp (configure.ac): ... to here.
8841         * modules/frexp-nolibm (configure.ac): ... and here.
8842
8843 2011-05-20  Bruno Haible  <bruno@clisp.org>
8844
8845         isnan: Respect rules for use of AC_LIBOBJ.
8846         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8847         invocations here.
8848         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8849         REPLACE_ISNAN.
8850         * modules/isnand (configure.ac): Likewise.
8851         * modules/isnanl (configure.ac): Likewise.
8852
8853 2011-05-20  Bruno Haible  <bruno@clisp.org>
8854
8855         isnanl*: Respect rules for use of AC_LIBOBJ.
8856         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8857         invocation from here...
8858         * modules/isnanl (configure.ac): ... to here.
8859         * modules/isnanl-nolibm (configure.ac): ... and here.
8860
8861 2011-05-20  Bruno Haible  <bruno@clisp.org>
8862
8863         isnand*: Move AC_LIBOBJ invocations to module description.
8864         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8865         invocation from here...
8866         * modules/isnand (configure.ac): ... to here.
8867         * modules/isnand-nolibm (configure.ac): ... and here.
8868
8869 2011-05-20  Bruno Haible  <bruno@clisp.org>
8870
8871         isnanf*: Move AC_LIBOBJ invocations to module description.
8872         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8873         invocation from here...
8874         * modules/isnanf (configure.ac): ... to here.
8875         * modules/isnanf-nolibm (configure.ac): ... and here.
8876
8877 2011-05-20  Bruno Haible  <bruno@clisp.org>
8878
8879         isnan*: Separate the AC_LIBOBJ invocations.
8880         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8881         AC_LIBOBJ invocation.
8882         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8883         here.
8884         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8885         AC_LIBOBJ invocation.
8886         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8887         here.
8888         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8889         AC_LIBOBJ invocation.
8890         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8891         here.
8892         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8893
8894 2011-05-08  Bruno Haible  <bruno@clisp.org>
8895
8896         isinf: Move AC_LIBOBJ invocations to module description.
8897         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8898         * modules/isinf (configure.ac): ... to here.
8899
8900 2011-05-08  Bruno Haible  <bruno@clisp.org>
8901
8902         isfinite: Move AC_LIBOBJ invocations to module description.
8903         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8904         * modules/isfinite (configure.ac): ... to here.
8905
8906 2011-05-08  Bruno Haible  <bruno@clisp.org>
8907
8908         isblank: Move AC_LIBOBJ invocations to module description.
8909         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8910         here...
8911         * modules/isblank (configure.ac): ... to here.
8912
8913 2011-05-08  Bruno Haible  <bruno@clisp.org>
8914
8915         isapipe: Move AC_LIBOBJ invocations to module description.
8916         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8917         gl_PREREQ_ISAPIPE invocations from here...
8918         * modules/isapipe (configure.ac): ... to here.
8919         (Depends-on): Update condition.
8920
8921 2011-05-08  Bruno Haible  <bruno@clisp.org>
8922
8923         ioctl: Move AC_LIBOBJ invocations to module description.
8924         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8925         invocations from here...
8926         * modules/ioctl (configure.ac): ... to here.
8927         (Depends-on): Update condition.
8928
8929 2011-05-08  Bruno Haible  <bruno@clisp.org>
8930
8931         imaxdiv: Move AC_LIBOBJ invocations to module description.
8932         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8933         invocations from here...
8934         * modules/imaxdiv (configure.ac): ... to here.
8935
8936 2011-05-08  Bruno Haible  <bruno@clisp.org>
8937
8938         imaxabs: Move AC_LIBOBJ invocations to module description.
8939         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8940         invocations from here...
8941         * modules/imaxabs (configure.ac): ... to here.
8942
8943 2011-05-08  Bruno Haible  <bruno@clisp.org>
8944
8945         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8946         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8947         AC_LIBOBJ invocations from here...
8948         * modules/getaddrinfo (configure.ac): ... to here.
8949         (Depends-on): Add conditions.
8950
8951 2011-05-08  Bruno Haible  <bruno@clisp.org>
8952
8953         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8954         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8955         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8956         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8957         (gl_PREREQ_INET_PTON): ... from here.
8958         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8959         gl_PREREQ_INET_PTON here.
8960         (Depends-on): Update condition.
8961
8962 2011-05-08  Bruno Haible  <bruno@clisp.org>
8963
8964         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8965         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8966         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8967         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8968         (gl_PREREQ_INET_NTOP): ... from here.
8969         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8970         gl_PREREQ_INET_NTOP here.
8971         (Depends-on): Update condition.
8972
8973 2011-05-08  Bruno Haible  <bruno@clisp.org>
8974
8975         iconv_open: Move AC_LIBOBJ invocations to module description.
8976         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8977         AC_LIBOBJ invocations from here...
8978         * modules/iconv_open (configure.ac): ... to here.
8979
8980 2011-05-08  Bruno Haible  <bruno@clisp.org>
8981
8982         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8983         If module 'iconv_open' is among the main modules and module
8984         'iconv_open-utf' is among the tests dependencies, then
8985         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8986         return the special iconv_t values. Therefore iconv() and iconv_close()
8987         must support these special iconv_t values, already in lib, not only in
8988         tests.
8989         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8990         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8991         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8992         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8993         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8994         (Depends-on): Add the dependencies of iconv_open-utf.
8995         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8996         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8997         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8998
8999 2011-05-08  Bruno Haible  <bruno@clisp.org>
9000
9001         group-member: Move AC_LIBOBJ invocations to module description.
9002         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9003         gl_PREREQ_GROUP_MEMBER invocations from here...
9004         * modules/group-member (configure.ac): ... to here.
9005
9006 2011-05-08  Bruno Haible  <bruno@clisp.org>
9007
9008         grantpt: Move AC_LIBOBJ invocations to module description.
9009         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9010         invocations from here...
9011         * modules/grantpt (configure.ac): ... to here.
9012
9013 2011-05-08  Bruno Haible  <bruno@clisp.org>
9014
9015         glob: Move AC_LIBOBJ invocations to module description.
9016         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9017         from here...
9018         * modules/glob (configure.ac): ... to here.
9019
9020 2011-05-08  Bruno Haible  <bruno@clisp.org>
9021
9022         getusershell: Move AC_LIBOBJ invocations to module description.
9023         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9024         Move AC_LIBOBJ invocation from here...
9025         * modules/getusershell (configure.ac): ... to here.
9026         (Depends-on): Update condition.
9027
9028 2011-05-08  Bruno Haible  <bruno@clisp.org>
9029
9030         gettimeofday: Move AC_LIBOBJ invocations to module description.
9031         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9032         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9033         gl_PREREQ_GETTIMEOFDAY invocations from here...
9034         * modules/gettimeofday (configure.ac): ... to here.
9035
9036 2011-05-08  Bruno Haible  <bruno@clisp.org>
9037
9038         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9039         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9040         just gl_FUNC_TZSET.
9041         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9042         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9043         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9044         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9045
9046 2011-05-08  Bruno Haible  <bruno@clisp.org>
9047
9048         getsubopt: Move AC_LIBOBJ invocations to module description.
9049         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9050         gl_PREREQ_GETSUBOPT invocations from here...
9051         * modules/getsubopt (configure.ac): ... to here.
9052
9053 2011-05-08  Bruno Haible  <bruno@clisp.org>
9054
9055         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9056         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9057         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9058         * modules/getpass-gnu (configure.ac): ... to here.
9059
9060 2011-05-08  Bruno Haible  <bruno@clisp.org>
9061
9062         getpass: Move AC_LIBOBJ invocations to module description.
9063         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9064         gl_PREREQ_GETPASS invocations from here...
9065         * modules/getpass (configure.ac): ... to here.
9066
9067 2011-05-08  Bruno Haible  <bruno@clisp.org>
9068
9069         getpagesize: Move AC_LIBOBJ invocations to module description.
9070         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9071         from here...
9072         * modules/getpagesize (configure.ac): ... to here.
9073
9074 2011-05-08  Bruno Haible  <bruno@clisp.org>
9075
9076         getopt: Move AC_LIBOBJ invocations to module description.
9077         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9078         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9079         invocations from here...
9080         * modules/getopt-gnu (configure.ac): ... to here.
9081         * modules/getopt-posix (configure.ac): ... and here.
9082         (Depends-on): Update condition.
9083
9084 2011-05-08  Bruno Haible  <bruno@clisp.org>
9085
9086         getopt, argp: Respect rules for use of AC_LIBOBJ.
9087         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9088         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9089         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9090         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9091
9092 2011-05-08  Bruno Haible  <bruno@clisp.org>
9093
9094         getlogin_r: Move AC_LIBOBJ invocations to module description.
9095         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9096         gl_PREREQ_GETLOGIN_R invocations from here...
9097         * modules/getlogin_r (configure.ac): ... to here.
9098
9099 2011-05-08  Bruno Haible  <bruno@clisp.org>
9100
9101         getlogin: Move AC_LIBOBJ invocations to module description.
9102         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9103         here...
9104         * modules/getlogin (configure.ac): ... to here.
9105
9106 2011-05-08  Bruno Haible  <bruno@clisp.org>
9107
9108         getloadavg: Move AC_LIBOBJ invocations to module description.
9109         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9110         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9111         * modules/getloadavg (configure.ac): ... to here.
9112
9113 2011-05-08  Bruno Haible  <bruno@clisp.org>
9114
9115         gethrxtime: Move AC_LIBOBJ invocations to module description.
9116         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9117         LIB_GETHRXTIME from here...
9118         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9119         invocations from here...
9120         * modules/gethrxtime (configure.ac): ... to here.
9121
9122 2011-05-08  Bruno Haible  <bruno@clisp.org>
9123
9124         gethostname: Move AC_LIBOBJ invocations to module description.
9125         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9126         gl_PREREQ_GETHOSTNAME invocations from here...
9127         * modules/gethostname (configure.ac): ... to here.
9128
9129 2011-05-08  Bruno Haible  <bruno@clisp.org>
9130
9131         getgroups: Move AC_LIBOBJ invocations to module description.
9132         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9133         here...
9134         * modules/getgroups (configure.ac): ... to here.
9135
9136 2011-05-08  Bruno Haible  <bruno@clisp.org>
9137
9138         getdtablesize: Move AC_LIBOBJ invocations to module description.
9139         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9140         invocation from here...
9141         * modules/getdtablesize (configure.ac): ... to here.
9142
9143 2011-05-08  Bruno Haible  <bruno@clisp.org>
9144
9145         getdomainname: Move AC_LIBOBJ invocations to module description.
9146         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9147         gl_PREREQ_GETDOMAINNAME invocations from here...
9148         * modules/getdomainname (configure.ac): ... to here.
9149
9150 2011-05-08  Bruno Haible  <bruno@clisp.org>
9151
9152         getline: Move AC_LIBOBJ invocations to module description.
9153         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9154         invocations from here...
9155         * modules/getline (configure.ac): ... to here.
9156
9157 2011-05-08  Bruno Haible  <bruno@clisp.org>
9158
9159         getline: Simplify.
9160         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9161         It's already handled through the module dependency.
9162
9163 2011-05-08  Bruno Haible  <bruno@clisp.org>
9164
9165         getdelim: Move AC_LIBOBJ invocations to module description.
9166         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9167         and gl_PREREQ_GETDELIM invocations from here...
9168         * modules/getdelim (configure.ac): ... to here.
9169         (Depends-on): Fix condition.
9170
9171 2011-05-08  Bruno Haible  <bruno@clisp.org>
9172
9173         getcwd: Move AC_LIBOBJ invocations to module description.
9174         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9175         invocations from here...
9176         * modules/getcwd (configure.ac): ... to here.
9177
9178 2011-05-08  Bruno Haible  <bruno@clisp.org>
9179
9180         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9181         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9182         here...
9183         * modules/getcwd-lgpl (configure.ac): ... to here.
9184
9185 2011-05-07  Bruno Haible  <bruno@clisp.org>
9186
9187         crypto/gc: Move AC_LIBOBJ invocations to module description.
9188         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9189         * modules/crypto/gc (configure.ac): ... to here.
9190
9191 2011-05-07  Bruno Haible  <bruno@clisp.org>
9192
9193         fwriting: Move AC_LIBOBJ invocations to module description.
9194         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9195         here...
9196         * modules/fwriting (configure.ac): ... to here.
9197
9198 2011-05-07  Bruno Haible  <bruno@clisp.org>
9199
9200         fwritable: Move AC_LIBOBJ invocations to module description.
9201         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9202         here...
9203         * modules/fwritable (configure.ac): ... to here.
9204
9205 2011-05-07  Bruno Haible  <bruno@clisp.org>
9206
9207         futimens: Move AC_LIBOBJ invocations to module description.
9208         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9209         here...
9210         * modules/futimens (configure.ac): ... to here.
9211
9212 2011-05-07  Bruno Haible  <bruno@clisp.org>
9213
9214         ftruncate: Move AC_LIBOBJ invocations to module description.
9215         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9216         gl_PREREQ_FTRUNCATE invocations from here...
9217         * modules/ftruncate (configure.ac): ... to here.
9218
9219 2011-05-07  Bruno Haible  <bruno@clisp.org>
9220
9221         fsync: Move AC_LIBOBJ invocations to module description.
9222         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9223         invocations from here...
9224         * modules/fsync (configure.ac): ... to here.
9225
9226 2011-05-07  Bruno Haible  <bruno@clisp.org>
9227
9228         fsusage: Move AC_LIBOBJ invocations to module description.
9229         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9230         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9231         * modules/fsusage (configure.ac): ... to here.
9232
9233 2011-05-07  Bruno Haible  <bruno@clisp.org>
9234
9235         freopen: Move AC_LIBOBJ invocations to module description.
9236         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9237         invocations from here...
9238         * modules/freopen (configure.ac): ... to here.
9239
9240 2011-05-07  Bruno Haible  <bruno@clisp.org>
9241
9242         free: Move AC_LIBOBJ invocations to module description.
9243         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9244         invocations from here...
9245         * modules/free (configure.ac): ... to here.
9246
9247 2011-05-07  Bruno Haible  <bruno@clisp.org>
9248
9249         freadable: Move AC_LIBOBJ invocations to module description.
9250         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9251         here...
9252         * modules/freadable (configure.ac): ... to here.
9253
9254 2011-05-07  Bruno Haible  <bruno@clisp.org>
9255
9256         fpurge: Move AC_LIBOBJ invocations to module description.
9257         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9258         invocations from here...
9259         * modules/fpurge (configure.ac): ... to here.
9260
9261 2011-05-07  Bruno Haible  <bruno@clisp.org>
9262
9263         fpending: Move AC_LIBOBJ invocations to module description.
9264         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9265         gl_FUNC_FPENDING.
9266         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9267         invocations from here...
9268         * modules/fpending (configure.ac): ... to here.
9269
9270 2011-05-07  Bruno Haible  <bruno@clisp.org>
9271
9272         fopen: Move AC_LIBOBJ invocations to module description.
9273         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9274         invocations from here...
9275         * modules/fopen (configure.ac): ... to here.
9276
9277 2011-05-07  Bruno Haible  <bruno@clisp.org>
9278
9279         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9280         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9281         gl_FUNC_FNMATCH_POSIX.
9282         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9283         invocations from here...
9284         * modules/fnmatch (configure.ac): ... to here.
9285         * modules/fnmatch-gnu (configure.ac): ... and here.
9286
9287 2011-05-07  Bruno Haible  <bruno@clisp.org>
9288
9289         flock: Move AC_LIBOBJ invocations to module description.
9290         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9291         invocations from here...
9292         * modules/flock (configure.ac): ... to here.
9293
9294 2011-05-07  Bruno Haible  <bruno@clisp.org>
9295
9296         fileblocks: Move AC_LIBOBJ invocations to module description.
9297         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9298         gl_PREREQ_FILEBLOCKS invocations from here...
9299         * modules/fileblocks (configure.ac): ... to here.
9300
9301 2011-05-06  Bruno Haible  <bruno@clisp.org>
9302
9303         fflush: Move AC_LIBOBJ invocations to module description.
9304         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9305         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9306         invocations from here...
9307         * modules/fflush (configure.ac): ... to here.
9308
9309 2011-05-06  Bruno Haible  <bruno@clisp.org>
9310
9311         fdopendir: Move AC_LIBOBJ invocations to module description.
9312         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9313         here...
9314         * modules/fdopendir (configure.ac): ... to here.
9315         (Depends-on): Improve conditions.
9316
9317 2011-05-06  Bruno Haible  <bruno@clisp.org>
9318
9319         _Exit: Move AC_LIBOBJ invocations to module description.
9320         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9321         invocations from here...
9322         * modules/_Exit (configure.ac): ... to here.
9323
9324 2011-05-21  Bruno Haible  <bruno@clisp.org>
9325
9326         euidaccess: Respect rules for use of AC_LIBOBJ.
9327         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9328         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9329         from here...
9330         * modules/euidaccess (configure.ac): ... to here.
9331
9332 2011-05-06  Bruno Haible  <bruno@clisp.org>
9333
9334         error: Move AC_LIBOBJ invocations to module description.
9335         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9336         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9337         invocations from here...
9338         * modules/error (configure.ac): ... to here.
9339
9340 2011-05-06  Bruno Haible  <bruno@clisp.org>
9341
9342         duplocale: Move AC_LIBOBJ invocations to module description.
9343         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9344         gl_PREREQ_DUPLOCALE invocations from here...
9345         * modules/duplocale (configure.ac): ... to here.
9346
9347 2011-05-05  Bruno Haible  <bruno@clisp.org>
9348
9349         dirfd: Move AC_LIBOBJ invocations to module description.
9350         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9351         gl_FUNC_DIRFD.
9352         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9353         here...
9354         * modules/dirfd (configure.ac): ... to here.
9355         (Depends-on): Fix condition.
9356
9357 2011-05-05  Bruno Haible  <bruno@clisp.org>
9358
9359         chown: Respect rules for use of AC_LIBOBJ.
9360         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9361         * modules/chown (configure.ac): ... to here.
9362
9363 2011-05-05  Bruno Haible  <bruno@clisp.org>
9364
9365         chdir-long: Move AC_LIBOBJ invocations to module description.
9366         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9367         gl_PREREQ_CHDIR_LONG invocations from here...
9368         * modules/chdir-long (configure.ac): ... to here.
9369
9370 2011-05-05  Bruno Haible  <bruno@clisp.org>
9371
9372         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9373         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9374         from here...
9375         * modules/canonicalize-lgpl (configure.ac): ... to here.
9376
9377 2011-05-05  Bruno Haible  <bruno@clisp.org>
9378
9379         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9380         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9381         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9382         REPLACE_CALLOC.
9383         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9384         * modules/calloc-gnu (configure.ac): Likewise.
9385
9386 2011-05-05  Bruno Haible  <bruno@clisp.org>
9387
9388         btowc: Move AC_LIBOBJ invocations to module description.
9389         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9390         invocations from here...
9391         * modules/btowc (configure.ac): ... to here.
9392
9393 2011-05-21  Bruno Haible  <bruno@clisp.org>
9394
9395         atexit: Move AC_LIBOBJ invocations to module description.
9396         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9397         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9398         here...
9399         * modules/atexit (configure.ac): ... to here.
9400
9401 2011-05-05  Bruno Haible  <bruno@clisp.org>
9402
9403         atoll: Move AC_LIBOBJ invocations to module description.
9404         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9405         invocations from here...
9406         * modules/atoll (configure.ac): ... to here.
9407
9408 2011-05-05  Bruno Haible  <bruno@clisp.org>
9409
9410         argz: Move AC_LIBOBJ invocations to module description.
9411         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9412         * modules/argz (configure.ac): ... to here.
9413
9414 2011-05-05  Bruno Haible  <bruno@clisp.org>
9415
9416         alphasort: Move AC_LIBOBJ invocations to module description.
9417         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9418         gl_PREREQ_ALPHASORT invocations from here...
9419         * modules/alphasort (configure.ac): ... to here.
9420
9421 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9422
9423         verify: new macro verify_expr; verify_true deprecated
9424         * NEWS: Mention this.
9425         * doc/verify.texi (Compile-time Assertions): Document this.
9426         * lib/verify.h (verify_true): Deprecate.
9427         (verify_expr): New macro.
9428         * tests/test-verify.c (function): Test verify_expr.
9429
9430 2011-06-14  Jim Meyering  <meyering@redhat.com>
9431
9432         init.sh: give more portable redirection-related advice in a comment
9433         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9434         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9435         for lots of discussion.  Stefano Lattarini suggested the solution
9436         of putting "9>&2" after the command.  Reported by Bruno Haible.
9437
9438 2011-06-13  Bruno Haible  <bruno@clisp.org>
9439
9440         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9441         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9442         'none'.
9443
9444 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9445
9446         ftoastr: use strtof only if HAVE_STRTOF
9447         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9448         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9449         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9450         * modules/ftoastr (configure.ac): Check for strtof.
9451
9452 2011-06-13  Bruno Haible  <bruno@clisp.org>
9453
9454         gnulib-tool: Addendum to 2011-06-08 commit.
9455         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9456         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9457
9458 2011-06-13  Bruno Haible  <bruno@clisp.org>
9459
9460         fseeko: Provide a non-inline replacement of fseek().
9461         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9462         * modules/fseeko (Depends-on): Add fseek.
9463         * modules/fseek (License): Change to LGPLv2+.
9464
9465 2011-06-13  Bruno Haible  <bruno@clisp.org>
9466
9467         ftello: Provide a non-inline replacement of ftell().
9468         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9469         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9470         not have ftello() (such as on mingw).
9471         * modules/ftello (Depends-on): Add ftell.
9472         * modules/ftell (License): Change to LGPLv2+.
9473
9474 2011-05-07  Bruno Haible  <bruno@clisp.org>
9475
9476         ftell: Move AC_LIBOBJ invocations to module description.
9477         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9478         * modules/ftell (configure.ac): ... to here.
9479
9480 2011-05-07  Bruno Haible  <bruno@clisp.org>
9481
9482         ftello: Respect rules for use of AC_LIBOBJ.
9483         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9484         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9485         here...
9486         * modules/ftello (configure.ac): ... to here.
9487
9488 2011-05-07  Bruno Haible  <bruno@clisp.org>
9489
9490         fseeko: Simplify.
9491         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9492         (gl_FUNC_FSEEKO): Inline it here.
9493
9494 2011-05-07  Bruno Haible  <bruno@clisp.org>
9495
9496         fseek: Move AC_LIBOBJ invocations to module description.
9497         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9498         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9499         * modules/fseek (configure.ac): ... to here.
9500
9501 2011-05-07  Bruno Haible  <bruno@clisp.org>
9502
9503         fseek: Respect rules for use of AC_LIBOBJ.
9504         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9505         here...
9506         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9507
9508 2011-05-07  Bruno Haible  <bruno@clisp.org>
9509
9510         fseeko: Respect rules for use of AC_LIBOBJ.
9511         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9512         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9513         here...
9514         * modules/fseeko (configure.ac): ... to here.
9515
9516 2011-06-13  Bruno Haible  <bruno@clisp.org>
9517
9518         gnulib-tool: Allow comments in the 'Depends-on' section.
9519         * doc/gnulib.texi (Module description): Mention comment syntax in the
9520         Depends-on section.
9521         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9522
9523 2011-06-13  Bruno Haible  <bruno@clisp.org>
9524
9525         file-set.h: guard __attibute__ use, now that it's not always defined
9526         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9527         versions that support it.  This fixes a coreutils build failure with
9528         the vendor cc on HP-UX 11.31.
9529
9530 2011-06-12  Bruno Haible  <bruno@clisp.org>
9531
9532         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9533         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9534         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9535         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9536         (acl, aclsort): New declarations.
9537         (aclv_nontrivial): New declaration.
9538         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9539         (file_has_acl): Read also the second kind of HP-UX ACLs.
9540         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9541         kind of HP-UX ACLs if the first kind fails.
9542         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9543         second kind of HP-UX ACLs.
9544         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9545         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9546         agree.
9547         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9548         hpuxjfs.
9549         Handle hpuxjfs.
9550         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9551         hpuxjfs.
9552         Handle hpuxjfs.
9553         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9554         (func_test_same_acls): Use both lsacl and getacl.
9555         Handle hpuxjfs.
9556         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9557         (func_test_same_acls): Use both lsacl and getacl.
9558         Handle hpuxjfs.
9559
9560 2011-06-12  Bruno Haible  <bruno@clisp.org>
9561
9562         acl: Complete the 2010-08-10 fix.
9563         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9564         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9565         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9566         explicitly.
9567         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9568         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9569
9570 2011-06-12  Bruno Haible  <bruno@clisp.org>
9571
9572         spawn-pipe tests: Comments.
9573         * tests/test-spawn-pipe-child.c (main): Update comment.
9574         Reported by James Youngman <jay@gnu.org>.
9575
9576 2011-06-11  James Youngman  <jay@gnu.org>
9577
9578         New module 'stat-size'.
9579         * modules/stat-size: New module.  Provides macros for accessing
9580         file size information in instances of struct stat.  Depends on the
9581         fileblocks module because it calls st_blocks.
9582         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9583         * doc/gnulib.texi: Include stat-size.texi.
9584         * doc/stat-size.texi: Documentation for this module.
9585         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9586         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9587         AC_STRUCT_ST_BLOCKS.
9588
9589 2011-06-09  Bruno Haible  <bruno@clisp.org>
9590
9591         thread: Support pthreads-win32.
9592         * lib/glthread/thread.h (gl_thread_self): Define differently on
9593         pthreads-win32.
9594         (gl_null_thread): New declaration.
9595         (gl_thread_self_pointer): New macro.
9596         * lib/glthread/thread.c (gl_null_thread): New constant.
9597         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9598         gl_thread_self.
9599         * tests/test-tls.c: Likewise.
9600         Suggested by Paul Eggert. Reported by Eric Blake.
9601
9602 2011-06-09  Bruno Haible  <bruno@clisp.org>
9603
9604         thread: Fix confusion between NULL and 0.
9605         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9606         Reported by Paul Eggert.
9607
9608 2011-06-09  Bruno Haible  <bruno@clisp.org>
9609
9610         spawn-pipe tests: Avoid test failure on HP-UX 11.
9611         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9612         is closed.
9613
9614 2011-06-09  Bruno Haible  <bruno@clisp.org>
9615
9616         acl tests: Fix compilation error on HP-UX 11.
9617         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9618
9619 2011-06-09  Bruno Haible  <bruno@clisp.org>
9620
9621         rmdir: Avoid test failure on HP-UX 10.20.
9622         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9623         EEXIST.
9624
9625 2011-06-08  Eric Blake  <eblake@redhat.com>
9626
9627         perror: fix test on mingw
9628         * modules/perror-tests (Depends-on): Add dup2.
9629
9630         strerror_r-posix: fix on MacOS
9631         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9632         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9633         logic bug.
9634         * lib/strerror_r.c (strerror_r): Fix the bug.
9635         * lib/strerror.c (strerror): Likewise.
9636         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9637         problem.
9638         * doc/posix-functions/strerror.texi (strerror): Likewise.
9639         * doc/posix-functions/perror.texi (perror): Likewise.
9640         * tests/test-strerror.c (main): Enhance test.
9641         * tests/test-strerror_r.c (main): Likewise.
9642
9643 2011-06-08  Bruno Haible  <bruno@clisp.org>
9644
9645         gnulib-tool: Better isolation between different gnulib-tool invocations.
9646         * gnulib-tool: New option --witness-c-macro.
9647         (witness_c_macro): New variable.
9648         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9649         AM_CPPFLAGS define it as a C macro.
9650         (func_emit_tests_Makefile_am): Likewise.
9651         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9652         read it from there.
9653         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9654         m4_define, not AC_DEFUN.
9655         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9656         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9657         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9658         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9659         s|...|...|, to substitute the values of the GNULIB_* module indicator
9660         variables.
9661         * modules/dirent (Makefile.am): Likewise.
9662         * modules/fcntl-h (Makefile.am): Likewise.
9663         * modules/iconv-h (Makefile.am): Likewise.
9664         * modules/langinfo (Makefile.am): Likewise.
9665         * modules/locale (Makefile.am): Likewise.
9666         * modules/math (Makefile.am): Likewise.
9667         * modules/netdb (Makefile.am): Likewise.
9668         * modules/poll-h (Makefile.am): Likewise.
9669         * modules/pty (Makefile.am): Likewise.
9670         * modules/search (Makefile.am): Likewise.
9671         * modules/signal (Makefile.am): Likewise.
9672         * modules/spawn (Makefile.am): Likewise.
9673         * modules/stdio (Makefile.am): Likewise.
9674         * modules/stdlib (Makefile.am): Likewise.
9675         * modules/string (Makefile.am): Likewise.
9676         * modules/sys_ioctl (Makefile.am): Likewise.
9677         * modules/sys_select (Makefile.am): Likewise.
9678         * modules/sys_socket (Makefile.am): Likewise.
9679         * modules/sys_stat (Makefile.am): Likewise.
9680         * modules/sys_times (Makefile.am): Likewise.
9681         * modules/sys_utsname (Makefile.am): Likewise.
9682         * modules/sys_wait (Makefile.am): Likewise.
9683         * modules/termios (Makefile.am): Likewise.
9684         * modules/time (Makefile.am): Likewise.
9685         * modules/unistd (Makefile.am): Likewise.
9686         * modules/wchar (Makefile.am): Likewise.
9687
9688 2011-06-08  Eric Blake  <eblake@redhat.com>
9689
9690         strerror: simplify replacement
9691         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9692         * modules/strerror (configure.ac): No prereqs needed here...
9693         * modules/strerror-override (configure.ac): ...but this needs it.
9694         (Files): Add file for needed prereq macro.
9695
9696 2011-06-08  Bruno Haible  <bruno@clisp.org>
9697
9698         strerror_r-posix: Tweaks.
9699         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9700         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9701         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9702         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9703         (gl_FUNC_STRERROR_R): ... to here.
9704         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9705
9706 2011-06-07  Eric Blake  <eblake@redhat.com>
9707
9708         perror: document fixed bugs
9709         * doc/posix-functions/perror.texi (perror): Document recent
9710         patches.
9711
9712 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9713
9714         stat-time: get_stat_birthtime failure is better-defined
9715         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9716         return a timestamp whose tv_sec and tv_nsec values are both -1.
9717         Previously, the spec said only that the tv_nsec value was negative.
9718         This upward-compatible change simplifies GNU tar a bit.
9719
9720 2011-06-07  Eric Blake  <eblake@redhat.com>
9721
9722         strerror_r-posix: work around cygwin 1.7.9
9723         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9724         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9725         bug without replacing strerror_r.
9726         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9727         strerror_r is buggy, but without requiring strerror_r compilation.
9728         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9729
9730         test-perror: relax test to ignore cygwin bug
9731         * tests/test-perror2.c (main): Relax test on requiring detection
9732         of stream errors, and use unbuffered stream.
9733         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9734         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9735         * doc/posix-functions/fputc.texi (fputc): Likewise.
9736         * doc/posix-functions/fputs.texi (fputs): Likewise.
9737         * doc/posix-functions/fputws.texi (fputws): Likewise.
9738         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9739         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9740         * doc/posix-functions/getopt.texi (getopt): Likewise.
9741         * doc/posix-functions/perror.texi (perror): Likewise.
9742         * doc/posix-functions/printf.texi (printf): Likewise.
9743         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9744         * doc/posix-functions/psignal.texi (psignal): Likewise.
9745         * doc/posix-functions/putc.texi (putc): Likewise.
9746         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9747         Likewise.
9748         * doc/posix-functions/putchar.texi (putchar): Likewise.
9749         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9750         Likewise.
9751         * doc/posix-functions/puts.texi (puts): Likewise.
9752         * doc/posix-functions/putwc.texi (putwc): Likewise.
9753         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9754         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9755         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9756         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9757         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9758         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9759         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9760         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9761
9762 2011-05-22  Bruno Haible  <bruno@clisp.org>
9763
9764         strerror: Move AC_LIBOBJ invocations to module description.
9765         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9766         gl_PREREQ_STRERROR invocations from here...
9767         * modules/strerror (configure.ac): ... to here.
9768
9769 2011-05-21  Bruno Haible  <bruno@clisp.org>
9770
9771         perror: Use common idiom.
9772         * modules/perror (configure.ac): Reorder statements.
9773
9774 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9775
9776         tests: fix usage message in 'mktempd_'
9777         * tests/init.sh (mktempd_): In the usage message, use literal
9778         'mktempd_', not '$ME' (which is even undefined), as the name of
9779         the subroutine.
9780
9781 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9782
9783         tests init: new function 'fatal_', for hard errors
9784         Before this patch, the only way offered by tests/init.sh to
9785         properly signal a hard error was the `framework_failure_'
9786         function.  But the error message issued by that function,
9787         as its name would suggest, refers to a set-up failure in the
9788         testsuite, while hard errors can obviously also be due to
9789         other reasons.  The best way to fix this inconsistency is to
9790         introduce a new function with a more general error message.
9791         * tests/init.sh (fatal_): New function.
9792
9793 2011-06-06  Eric Blake  <eblake@redhat.com>
9794
9795         canonicalize-lgpl: use common idiom
9796         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9797         over newer POSIX -Rf.
9798         Reported by Bruno Haible.
9799
9800         canonicalize-lgpl: work around AIX realpath bug
9801         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9802         * doc/posix-functions/realpath.texi (realpath): Document it.
9803         Reported by Bruno Haible.
9804
9805         strerror: work around FreeBSD bug
9806         * lib/strerror.c (strerror): Special case 0.
9807         Reported by Bruno Haible.
9808
9809         strerror-override: avoid bloating errno module
9810         * modules/errno (Files, configure.ac): Move replacement strings...
9811         * modules/strerror-override: ...to new module.
9812         * modules/strerror (Depends-on): Add strerror-override.
9813         * modules/strerror_r-posix (Depends-on): Likewise.
9814         * MODULES.html.sh: Document new module.
9815         Reported by Bruno Haible.
9816
9817 2011-06-06  Bruno Haible  <bruno@clisp.org>
9818
9819         spawn-pipe tests: Rename program.
9820         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9821         * tests/test-spawn-pipe-child.c: Update comment.
9822         * tests/test-spawn-pipe.sh: Update.
9823         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9824
9825         spawn-pipe tests: Link the child program only against libc.
9826         * tests/test-spawn-pipe-child.c: New file, extracted from
9827         tests/test-spawn-pipe.c.
9828         (main): Expect only one argument.
9829         (is_open): New function, copied from tests/test-pipe.c.
9830         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9831         (child_main): Remove function.
9832         (test_pipe): Pass only one argument to the child program.
9833         (main): Remove child process code. Expect the child program's name as
9834         first argument.
9835         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9836         argument.
9837         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9838         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9839         test-spawn-pipe-child against no libraries.
9840
9841 2011-06-06  Bruno Haible  <bruno@clisp.org>
9842
9843         careadlinkat: Avoid mismatch between ssize_t and int.
9844         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9845         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9846
9847 2011-06-06  Jim Meyering  <meyering@redhat.com>
9848
9849         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9850         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9851         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9852
9853 2011-06-05  Bruno Haible  <bruno@clisp.org>
9854
9855         ansi-c++-opt: Interoperability with libtool.
9856         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9857         set the variable to "no", not to ":".
9858         * NEWS: Mention the change.
9859
9860 2011-06-05  Bruno Haible  <bruno@clisp.org>
9861
9862         acl: Fix test failure on AIX 7.
9863         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9864         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9865
9866 2011-06-05  Bruno Haible  <bruno@clisp.org>
9867
9868         pipe-filter-ii: Fix test failure on AIX and IRIX.
9869         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9870         with EAGAIN, retry with a smaller buffer size.
9871
9872 2011-06-05  Bruno Haible  <bruno@clisp.org>
9873
9874         localename: Fix link dependencies.
9875         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9876         * modules/localename-tests (Makefile.am): Link test-localename with
9877         $(LIBTHREAD).
9878
9879 2011-06-05  Bruno Haible  <bruno@clisp.org>
9880
9881         error: Avoid gcc warning.
9882         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9883
9884 2011-06-05  Bruno Haible  <bruno@clisp.org>
9885
9886         unsetenv: Avoid gcc warning.
9887         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9888
9889 2011-06-05  Bruno Haible  <bruno@clisp.org>
9890
9891         setenv: Avoid gcc warning.
9892         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9893
9894 2011-06-05  Bruno Haible  <bruno@clisp.org>
9895
9896         sys_select: Ensure memset is declared also on AIX 7.
9897         * lib/sys_select.in.h: Include <string.h> also on AIX.
9898         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9899         self-contained also on AIX 7.1.
9900
9901 2011-06-04  Jim Meyering  <meyering@redhat.com>
9902
9903         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9904         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9905         function name, "error".
9906         (_gl_translatable_diag_func_re): New configurable variable.
9907
9908 2011-06-04  Bruno Haible  <bruno@clisp.org>
9909
9910         getopt: Avoid gcc warning.
9911         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9912
9913 2011-06-04  Bruno Haible  <bruno@clisp.org>
9914
9915         strerror_r: Fix comments.
9916         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9917         commit.
9918
9919 2011-06-04  Bruno Haible  <bruno@clisp.org>
9920
9921         perror: Fix compilation error.
9922         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9923         Undefine fprintf, not sprintf.
9924         * modules/perror (Depends-on): Remove intprops, verify.
9925
9926 2011-06-04  Bruno Haible  <bruno@clisp.org>
9927
9928         setlocale: Enable replacement on Cygwin 1.5.
9929         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9930         Cygwin 1.5.x.
9931         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9932         LC_CTYPE category also exists on Cygwin 1.5.x.
9933
9934 2011-06-04  Bruno Haible  <bruno@clisp.org>
9935
9936         strerror-override: Don't disable symbol renamings.
9937         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9938         * lib/strerror-override.c: Include config.h.
9939         (strerror_override): Don't undefine.
9940
9941 2011-06-03  Bruno Haible  <bruno@clisp.org>
9942
9943         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9944         * lib/localename.h: Update copyright header.
9945         * lib/localename.c: Likewise.
9946         * lib/relocatable.h: Likewise.
9947         * lib/relocatable.c: Likewise.
9948
9949 2011-06-02  Bruno Haible  <bruno@clisp.org>
9950
9951         doc: Fix a module name.
9952         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9953
9954 2011-06-02  Bruno Haible  <bruno@clisp.org>
9955
9956         pipe2: Remove dependency on 'nonblocking' module.
9957         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9958         O_NONBLOCK is defined by gnulib.
9959         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9960         is zero.
9961         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9962         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9963         defined by gnulib.
9964         (get_nonblocking_flag): New function.
9965         (main): Test O_NONBLOCK flag only if it is nonzero.
9966         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9967
9968 2011-06-03  Jim Meyering  <meyering@redhat.com>
9969
9970         maint: three new prohibit-header-without-use rules
9971         Prohibit use of cloexec.h, posixver.h, same.h without use.
9972         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9973         (sc_prohibit_posixver_without_use): Likewise.
9974         (sc_prohibit_same_without_use): Likewise.
9975
9976 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9977
9978         allocator: 'die' routine is now given requested size
9979         * lib/allocator.h (struct allocator.die): New size arg.
9980         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9981         If the actual problem is an ssize_t limitation, not a size_t or
9982         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9983
9984 2011-06-01  Eric Blake  <eblake@redhat.com>
9985
9986         strerror: drop strerror_r dependency
9987         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9988         * lib/strerror-override.c (strerror_override): ...to new file.
9989         * lib/strerror-override.h: Add prototype.
9990         * lib/strerror-impl.h: Delete.
9991         * lib/strerror.c (strerror): New implementation.
9992         * modules/errno (Files): Add new files.
9993         (configure.ac): Compile new file as appropriate.
9994         * modules/strerror (Files): Drop unused file.
9995         (Depends-on): Drop strerror_r-posix.
9996         * MODULES.html.sh: Document strerror_r-posix.
9997         Requested by Sam Steingold.
9998
9999         perror: call strerror_r directly
10000         * modules/perror (Files): Drop strerror-impl.h.
10001         * lib/perror.c (perror): Use our own stack buffer, rather than
10002         calling a wrapper that uses static storage.
10003         * doc/posix-functions/perror.texi (perror): Document a limitation
10004         of our replacement.
10005
10006         strerror_r: fix includes for FreeBSD
10007         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10008         since we use abort on some platforms.
10009         Reported by Matthias Bolte.
10010
10011 2011-05-31  Bruno Haible  <bruno@clisp.org>
10012
10013         Fix link errors in tests: openat-die uses gettext-h.
10014         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10015         against $(LIBINTL).
10016         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10017         against $(LIBINTL).
10018         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10019         $(LIBINTL).
10020         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10021         against $(LIBINTL).
10022         * modules/linkat-tests (Makefile.am): Link test-linkat against
10023         $(LIBINTL).
10024         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10025         $(LIBINTL).
10026         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10027         against $(LIBINTL).
10028         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10029         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10030         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10031         $(LIBINTL).
10032         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10033         $(LIBINTL).
10034         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10035         $(LIBINTL).
10036         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10037
10038 2011-05-31  Bruno Haible  <bruno@clisp.org>
10039
10040         Fix link errors in tests: wait-process uses gettext-h.
10041         * modules/nonblocking-pipe-tests (Makefile.am): Set
10042         test_nonblocking_pipe_main_LDADD.
10043         * modules/nonblocking-socket-tests (Makefile.am): Link
10044         test-nonblocking-socket-main against $(LIBINTL).
10045         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10046
10047 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10048
10049         assert-h: work around 'verify' incompatibility
10050         * lib/verify.h: Use @...@ directives, not ifdef.
10051         * modules/assert-h (assert.h): Implement the directives.
10052         (assert.h): Substitute the symbol-prefix more consistently.
10053
10054 2011-05-29  Jim Meyering  <meyering@redhat.com>
10055
10056         trim: remove three superfluous assignments
10057         * lib/trim.c (trim2): Remove three superfluous assignments
10058         and correct brace positioning.
10059
10060 2011-05-29  Bruno Haible  <bruno@clisp.org>
10061
10062         wctype-h: Avoid namespace pollution on Solaris 2.6.
10063         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10064         identifiers.
10065         * doc/posix-headers/wctype.texi: Mention the problem.
10066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10067
10068 2011-05-28  Jim Meyering  <meyering@redhat.com>
10069
10070         parse-datetime.y: accommodate -Wstrict-overflow
10071         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10072         placate -Wstrict-overflow.
10073
10074         trim: avoid a warning from -O2 -Wstrict-overflow
10075         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10076
10077 2011-05-29  Bruno Haible  <bruno@clisp.org>
10078
10079         gnulib-tool: Fix bug in yesterday's commit.
10080         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10081         twice.
10082
10083 2011-05-29  Bruno Haible  <bruno@clisp.org>
10084
10085         Allow multiple gnulib generated include files to be combined.
10086         * gnulib-tool (func_compute_include_guard_prefix): New function.
10087         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10088         ${gl_include_guard_prefix} references.
10089         (func_import, func_create_testdir): Invoke
10090         func_compute_include_guard_prefix.
10091         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10092         * lib/ctype.in.h: Likewise.
10093         * lib/dirent.in.h: Likewise.
10094         * lib/errno.in.h: Likewise.
10095         * lib/fcntl.in.h: Likewise.
10096         * lib/float.in.h: Likewise.
10097         * lib/getopt.in.h: Likewise.
10098         * lib/iconv.in.h: Likewise.
10099         * lib/langinfo.in.h: Likewise.
10100         * lib/locale.in.h: Likewise.
10101         * lib/math.in.h: Likewise.
10102         * lib/netdb.in.h: Likewise.
10103         * lib/netinet_in.in.h: Likewise.
10104         * lib/poll.in.h: Likewise.
10105         * lib/pthread.in.h: Likewise.
10106         * lib/pty.in.h: Likewise.
10107         * lib/sched.in.h: Likewise.
10108         * lib/se-selinux.in.h: Likewise.
10109         * lib/search.in.h: Likewise.
10110         * lib/signal.in.h: Likewise.
10111         * lib/spawn.in.h: Likewise.
10112         * lib/stdarg.in.h: Likewise.
10113         * lib/stddef.in.h: Likewise.
10114         * lib/stdint.in.h: Likewise.
10115         * lib/stdio.in.h: Likewise.
10116         * lib/stdlib.in.h: Likewise.
10117         * lib/string.in.h: Likewise.
10118         * lib/strings.in.h: Likewise.
10119         * lib/sys_file.in.h: Likewise.
10120         * lib/sys_ioctl.in.h: Likewise.
10121         * lib/sys_select.in.h: Likewise.
10122         * lib/sys_socket.in.h: Likewise.
10123         * lib/sys_stat.in.h: Likewise.
10124         * lib/sys_time.in.h: Likewise.
10125         * lib/sys_times.in.h: Likewise.
10126         * lib/sys_uio.in.h: Likewise.
10127         * lib/sys_utsname.in.h: Likewise.
10128         * lib/sys_wait.in.h: Likewise.
10129         * lib/sysexits.in.h: Likewise.
10130         * lib/termios.in.h: Likewise.
10131         * lib/time.in.h: Likewise.
10132         * lib/unistd.in.h: Likewise.
10133         * lib/wchar.in.h: Likewise.
10134         * lib/wctype.in.h: Likewise.
10135         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10136         * modules/ctype (Makefile.am): Likewise.
10137         * modules/dirent (Makefile.am): Likewise.
10138         * modules/errno (Makefile.am): Likewise.
10139         * modules/fcntl-h (Makefile.am): Likewise.
10140         * modules/float (Makefile.am): Likewise.
10141         * modules/getopt-posix (Makefile.am): Likewise.
10142         * modules/iconv-h (Makefile.am): Likewise.
10143         * modules/langinfo (Makefile.am): Likewise.
10144         * modules/locale (Makefile.am): Likewise.
10145         * modules/math (Makefile.am): Likewise.
10146         * modules/netdb (Makefile.am): Likewise.
10147         * modules/netinet_in (Makefile.am): Likewise.
10148         * modules/poll-h (Makefile.am): Likewise.
10149         * modules/pthread (Makefile.am): Likewise.
10150         * modules/pty (Makefile.am): Likewise.
10151         * modules/sched (Makefile.am): Likewise.
10152         * modules/search (Makefile.am): Likewise.
10153         * modules/selinux-h (Makefile.am): Likewise.
10154         * modules/signal (Makefile.am): Likewise.
10155         * modules/spawn (Makefile.am): Likewise.
10156         * modules/stdarg (Makefile.am): Likewise.
10157         * modules/stddef (Makefile.am): Likewise.
10158         * modules/stdint (Makefile.am): Likewise.
10159         * modules/stdio (Makefile.am): Likewise.
10160         * modules/stdlib (Makefile.am): Likewise.
10161         * modules/string (Makefile.am): Likewise.
10162         * modules/strings (Makefile.am): Likewise.
10163         * modules/sys_file (Makefile.am): Likewise.
10164         * modules/sys_ioctl (Makefile.am): Likewise.
10165         * modules/sys_select (Makefile.am): Likewise.
10166         * modules/sys_socket (Makefile.am): Likewise.
10167         * modules/sys_stat (Makefile.am): Likewise.
10168         * modules/sys_time (Makefile.am): Likewise.
10169         * modules/sys_times (Makefile.am): Likewise.
10170         * modules/sys_uio (Makefile.am): Likewise.
10171         * modules/sys_utsname (Makefile.am): Likewise.
10172         * modules/sys_wait (Makefile.am): Likewise.
10173         * modules/sysexits (Makefile.am): Likewise.
10174         * modules/termios (Makefile.am): Likewise.
10175         * modules/time (Makefile.am): Likewise.
10176         * modules/unistd (Makefile.am): Likewise.
10177         * modules/wchar (Makefile.am): Likewise.
10178         * modules/wctype-h (Makefile.am): Likewise.
10179         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10180
10181 2011-05-29  Bruno Haible  <bruno@clisp.org>
10182
10183         assert-h: Allow multiple gnulib generated replacements to coexist.
10184         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10185
10186 2011-05-29  Bruno Haible  <bruno@clisp.org>
10187
10188         argp: Allow coexistence with strerror_r-posix module.
10189         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10190         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10191         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10192         not the glibc signature.
10193
10194 2011-05-28  Bruno Haible  <bruno@clisp.org>
10195
10196         gnulib-tool: Alternative structure of testdirs, similar to --import.
10197         * gnulib-tool: New option --single-configure.
10198         (func_usage): Document it.
10199         (single_configure): New variable.
10200         (func_modules_transitive_closure_separately,
10201         func_modules_transitive_closure_separately,
10202         func_determine_use_libtests, func_modules_add_dummy_separately,
10203         func_modules_to_filelist_separately): New functions, extracted from
10204         func_import.
10205         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10206         (func_import): Use the new functions.
10207         (func_create_testdir): Set final_modules. Handle $single_configure =
10208         true case.
10209
10210 2011-05-28  Bruno Haible  <bruno@clisp.org>
10211
10212         getloadavg: Remove an unreliable safety check.
10213         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10214         getloadavg.c is in place.
10215         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10216         Reported by Sam Steingold <sds@gnu.org>.
10217
10218 2011-05-28  Bruno Haible  <bruno@clisp.org>
10219
10220         doc: Cleanup yet another file produced by texinfo.tex.
10221         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10222
10223 2011-05-28  Bruno Haible  <bruno@clisp.org>
10224
10225         Finish the conditional dependencies mechanism.
10226         * gnulib-tool: New option --no-conditional-dependencies.
10227         (func_usage): Document it. Don't mark --conditional-dependencies as
10228         experimental.
10229         (cond_dependencies): The possible values can now be true, false, empty.
10230         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10231         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10232         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10233
10234 2011-05-28  Bruno Haible  <bruno@clisp.org>
10235
10236         doc: Use a recent texinfo.tex.
10237         * doc/Makefile (tex_opts): New variable.
10238         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10239
10240 2011-05-28  Jim Meyering  <meyering@redhat.com>
10241
10242         intprops.h: adjust comment to match code change
10243         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10244         only once, it *may* have side effects.  Also fix an unrelated typo.
10245         (_GL_INT_SIGNED): Likewise.
10246
10247 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10248
10249         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10250
10251 2011-05-26  Bruno Haible  <bruno@clisp.org>
10252
10253         mbsrchr: Avoid collision with system function on Interix.
10254         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10255         Reported by Markus Duft <mduft@gentoo.org>.
10256
10257 2011-05-15  James Youngman  <jay@gnu.org>
10258
10259         getopt: for ambiguous options, enumerate the possibilities.
10260         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10261         the ambiguous options when an ambiguous prefix is given. This was
10262         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10263         glibc change was
10264         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10265
10266 2011-05-25  Eric Blake  <eblake@redhat.com>
10267
10268         getcwd: work around mingw bug
10269         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10270         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10271         Reported by Matthias Bolte.
10272
10273 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10274
10275         test-intprops: disable -Wtype-limits diagnostics
10276         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10277         diagnostics.  Otherwise, the integer overflow macros generate many
10278         diagnostics.  Reported by Jim Meyering in
10279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10280
10281         intprops: shorten, to pacify gcc -Woverlength-strings
10282         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10283         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10284         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10285         likely to run afoul of C compiler limits for string constant lengths.
10286         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10287
10288 2011-05-24  Eric Blake  <eblake@redhat.com>
10289
10290         docs: document recently fixed glibc printf bug
10291         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10292         * doc/posix-functions/printf.texi (printf): Likewise.
10293         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10294         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10295
10296         closein-tests: convert to init.sh
10297         * modules/closein-tests (Files): Add init.sh
10298         * tests/test-closein.sh Use it.
10299
10300         yesno-tests: convert to init.sh
10301         * modules/yesno-tests (Files): Add init.sh.
10302         * tests/test-yesno.sh: Use it.
10303
10304         atexit-tests: ensure reliable exit status
10305         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10306         Reported by Bruno Haible.
10307
10308 2011-05-24  Bruno Haible  <bruno@clisp.org>
10309
10310         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10311         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10312         gl_PREREQ_STRERROR_R invocations from here...
10313         * modules/strerror_r-posix (configure.ac): ... to here.
10314
10315 2011-05-24  Eric Blake  <eblake@redhat.com>
10316
10317         strerror_r: fix missing header
10318         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10319
10320         strerror_r: fix AIX test failures
10321         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10322         ERANGE failure.
10323
10324         strerror_r: fix Solaris test failures
10325         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10326         failures.
10327         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10328
10329         strerror_r: enforce POSIX recommendations
10330         * lib/strerror_r.c (safe_copy): New helper method.
10331         (strerror_r): Guarantee a non-empty string.
10332         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10333         recent POSIX rulings and to match our strerror guarantees.
10334         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10335
10336 2011-05-24  Jim Meyering  <meyering@redhat.com>
10337
10338         test-perror2.c: avoid warning about unused variable
10339         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10340
10341 2011-05-24  Eric Blake  <eblake@redhat.com>
10342
10343         perror: avoid spurious test failure on HP-UX
10344         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10345
10346         tests: fix logic bug in init.sh
10347         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10348         shell.
10349
10350 2011-05-24  Jim Meyering  <meyering@redhat.com>
10351
10352         utimensat: do not reference an out-of-scope buffer
10353         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10354         declared in an inner scope, yet "times" would be dereferenced outside
10355         the scope in which "ts" was valid.
10356         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10357         of ts[2] "out/up", so that the use of aliased "times" (via
10358         "times = ts;") does not end up referencing an out-of-scope "ts"
10359
10360         opendir-safer.c: don't clobber errno; don't close negative FD
10361         * lib/opendir-safer.c (opendir_safer):
10362         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10363         file descriptor, and more importantly, don't clobber the
10364         offending errno value with EINVAL.  Before, upon failure
10365         of dup_safer, we would pass the negative file descriptor to
10366         fdopendir, which would clobber errno.
10367
10368 2011-05-23  Bruno Haible  <bruno@clisp.org>
10369
10370         idcache: Fix module description.
10371         * modules/idcache (Include): Set to "idcache.h".
10372
10373 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10374
10375         gnulib-tool: fix portability problem with MacOS sed
10376         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10377         before the "}".  Problem reported by Leo in
10378         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10379         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10380         sed_extract_condition1, sed_extract_condition2.
10381
10382 2011-05-23  Bruno Haible  <bruno@clisp.org>
10383
10384         hash: Simplify autoconf macro.
10385         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10386
10387 2011-05-23  Bruno Haible  <bruno@clisp.org>
10388
10389         getugroups: Fix module description.
10390         * modules/getugroups (Include): Set to "getugroups.h".
10391
10392 2011-05-23  Bruno Haible  <bruno@clisp.org>
10393
10394         linkat: Simplify autoconf macro.
10395         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10396
10397 2011-05-23  Bruno Haible  <bruno@clisp.org>
10398             Eric Blake  <eblake@redhat.com>
10399
10400         linkat, renameat: Update dependencies.
10401         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10402         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10403         symlinkat.
10404
10405 2011-05-23  Jim Meyering  <meyering@redhat.com>
10406
10407         maint.mk: more tight_scope improvements
10408         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10409         (_gl_TS_headers): Define only in if-0'd block.
10410         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10411         sometimes we must *not* use it.  Adjust uses accordingly.
10412         (sc_tight_scope): Use much simpler grep-based test to determine
10413         whether we skip this rule.
10414
10415         maint.mk: generalize/improve the tight-scope rule
10416         * top/maint.mk: Emit a warning when the test is skipped.
10417         (_gl_TS_dir): Add $(srcdir)/ prefix.
10418         (_gl_TS_function_match): Simplify, rather than trying
10419         to enumerate common types.  Otherwise, it would fail to match an
10420         "extern unsigned char const *" declaration in idutils.
10421         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10422         a way to support use of that type of macro.
10423         (_gl_TS_var_match): Simplify regexp.
10424         (_gl_TS_obj_files): New configurable variable.
10425         (_gl_TS_headers): Likewise.
10426
10427 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10428
10429         verify: fix bug when gnulib <assert.h> is also included
10430         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10431         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10432         Perhaps there's a better way, but this fixes the immediate problem.
10433         Problem reported by Bruno Haible in
10434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10435
10436 2011-05-22  Bruno Haible  <bruno@clisp.org>
10437
10438         xgetcwd: Simplify autoconf macro.
10439         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10440
10441 2011-05-22  Bruno Haible  <bruno@clisp.org>
10442
10443         New module 'mktime-internal'.
10444         * modules/mktime-internal: New file.
10445         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10446         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10447         mktime_internal as a C macro if libc has __mktime_internal.
10448         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10449         conditions.
10450         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10451
10452 2011-05-22  Bruno Haible  <bruno@clisp.org>
10453
10454         timegm: Correct mktime replacement statements.
10455         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10456         defining mktime as a C macro. This completes a 2009-07-28 commit.
10457
10458 2011-05-22  Bruno Haible  <bruno@clisp.org>
10459
10460         timegm: Simplify autoconf macro.
10461         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10462
10463 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10464
10465         clock-time: change to LGPLv2+.
10466         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10467         BSD-like but we have no mark for that; this is good enough for now.
10468
10469 2011-05-21  Bruno Haible  <bruno@clisp.org>
10470
10471         strerror_r: Fix comments.
10472         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10473
10474 2011-05-21  Bruno Haible  <bruno@clisp.org>
10475
10476         relocatable-prog-wrapper: Fix possible link error.
10477         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10478         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10479         (gl_FUNC_SETENV): ... to here.
10480         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10481         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10482
10483 2011-05-21  Bruno Haible  <bruno@clisp.org>
10484
10485         relocatable-prog-wrapper: Assume strerror() exists.
10486         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10487         m4/strerror.m4.
10488         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10489         * lib/relocwrapper.c: Remove mention of strerror module.
10490         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10491         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10492         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10493         C macro.
10494
10495 2011-05-21  Bruno Haible  <bruno@clisp.org>
10496
10497         select: Simplify replacement idiom.
10498         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10499         Win32 platforms.
10500         * lib/sys_select.in.h (select): Simplify accordingly.
10501         * modules/select (Depends-on): Likewise.
10502
10503 2011-05-21  Bruno Haible  <bruno@clisp.org>
10504
10505         mkdir-p: Simplify autoconf macro.
10506         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10507         gl_FUNC_LCHOWN.
10508
10509 2011-05-21  Eric Blake  <eblake@redhat.com>
10510
10511         strerror_r: avoid clobbering strerror on cygwin
10512         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10513         fall back instead to sys_errlist.
10514         * modules/strerror (configure.ac): Add witness.
10515         * tests/test-strerror_r.c (main): Enhance test.
10516         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10517         * tests/test-perror2.c (main): Free memory before exit.
10518
10519 2011-05-21  Bruno Haible  <bruno@clisp.org>
10520
10521         mkdtemp: Use gnulib naming conventions.
10522         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10523         * modules/mkdtemp (configure.ac): Update.
10524
10525 2011-05-20  Eric Blake  <eblake@redhat.com>
10526
10527         strerror_r: avoid corrupting errno on Solaris
10528         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10529         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10530
10531         strerror_r: avoid compiler warning
10532         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10533
10534         strerror_r: simplify AIX code
10535         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10536
10537         test-perror: avoid spurious failure on FreeBSD
10538         * modules/perror-tests (Depends-on): Add strerror, now that
10539         strerror_r no longer pulls it in.
10540
10541 2011-05-20  Bruno Haible  <bruno@clisp.org>
10542
10543         strerror_r-posix: Remove unused dependencies.
10544         * modules/strerror_r-posix (Depends-on): Remove strerror.
10545         Reported by Eric Blake.
10546
10547 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10548
10549         intprops: remove assumption about A|B representation
10550         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10551         is a valid integer if both A and B are.  Although this is true for
10552         all known practical hosts, the C standard doesn't guarantee it,
10553         and the code need not assume it.  Also, this change may work around
10554         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10556
10557 2011-05-20  Eric Blake  <eblake@redhat.com>
10558
10559         perror: work around FreeBSD bug
10560         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10561         is broken.  Move AC_LIBOBJ...
10562         * modules/perror (configure.ac): Here.
10563         * doc/posix-functions/perror.texi (perror): Document this.
10564         * tests/test-perror2.c (main): Enhance test.
10565
10566         test-perror: check for strerror interactions
10567         * tests/macros.h (STREQ): Add macro.
10568         * modules/perror-tests (Files): Add second test.
10569         * tests/test-perror2.c (main): New file.
10570         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10571
10572         test-perror: rewrite to use init script
10573         * modules/perror-tests (Files): Add init.sh.
10574         * tests/test-perror.sh: Use temporary directory.
10575
10576 2011-05-20  Jim Meyering  <meyering@redhat.com>
10577
10578         maint: replace misused "a" with "an"
10579         * doc/intprops.texi: "a integer"
10580         * doc/regex.texi: "a explanation"
10581         * lib/alignof.h: "a object"
10582         * lib/argmatch.h: "a explanation"
10583         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10584         * lib/stdint.in.h: "a integer"
10585         * lib/userspec.c: "a owner"
10586         * doc/gnulib.texi: Fix "a idea", and reword.
10587
10588 2011-05-19  Jim Meyering  <meyering@redhat.com>
10589
10590         maint: correct misuse of "a" and "an"
10591         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10592         * lib/argp-help.c: "an docum...": s/an/a/
10593         * lib/argp-parse.c: "An vector": s/An/A/
10594         * lib/execute.c: "an native": s/an/a/
10595         * lib/spawn-pipe.c: Likewise.
10596         * lib/gc.h: "an Gc_rc": s/an/a/
10597         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10598         * lib/fts.c: "an stat.st_dev": s/an/a/
10599
10600 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10601
10602         intprops-tests: work around HP-UX 11.23 cc bug with constants
10603         * tests/test-intprops.c (VERIFY): New macro.
10604         (main): Use it, instead of verify, to work around the compiler bug; see
10605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10606
10607         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10608         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10609         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10610         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10611         (_GL_REMAINDER_OVERFLOW): Use it.
10612
10613         intprops-tests: revert unsigned part of previous change
10614         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10615         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10616         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10617         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10618
10619 2011-05-19  Bruno Haible  <bruno@clisp.org>
10620
10621         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10622         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10623         strerror_r() returned without filling the buffer.
10624         Reported by Eric Blake.
10625
10626 2011-05-19  Eric Blake  <eblake@redhat.com>
10627
10628         strerror_r: guarantee unchanged errno
10629         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10630         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10631         failure.
10632         * tests/test-strerror_r.c (main): Enhance test.
10633
10634 2011-05-19  Bruno Haible  <bruno@clisp.org>
10635
10636         strerror_r: Reorder #if blocks.
10637         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10638         for consistency with the previous commit.
10639
10640 2011-05-19  Bruno Haible  <bruno@clisp.org>
10641
10642         perror: Avoid clobbering the strerror buffer when possible.
10643         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10644         * lib/strerror.c: Include it.
10645         * modules/strerror (Files): Add lib/strerror-impl.h.
10646         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10647         (my_strerror): New function, defined through lib/strerror-impl.h.
10648         (perror): Use it instead of strerror.
10649         * modules/perror (Files): Add lib/strerror-impl.h.
10650         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10651
10652 2011-05-19  Eric Blake  <eblake@redhat.com>
10653
10654         strerror_r: fix on newer cygwin
10655         * lib/strerror_r.c (strerror_r): Cygwin now has
10656         __xpg_strerror_r, use it.
10657
10658 2011-05-19  Bruno Haible  <bruno@clisp.org>
10659
10660         strerror_r: Avoid clobbering the strerror buffer when possible.
10661         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10662         (sys_nerr, sys_errlist): New declarations.
10663         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10664         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10665         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10666
10667 2011-05-19  Bruno Haible  <bruno@clisp.org>
10668
10669         strerror_r: Fix test failure on mingw.
10670         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10671         EXTEND_STRERROR_R.
10672         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10673         macros from errno.in.h instead.
10674
10675 2011-05-19  Eric Blake  <eblake@redhat.com>
10676
10677         strerror: relax test for Solaris
10678         * tests/test-strerror.c (main): Permit Solaris behavior.
10679         * tests/test-strerror_r.c (main): Likewise.
10680
10681         strerror: enforce POSIX ruling on strerror(0)
10682         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10683         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10684         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10685         * doc/posix-functions/strerror.texi (strerror): Document it.
10686         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10687         * tests/test-strerror.c (main): Strengthen test.
10688         * tests/test-strerror_r.c (main): Likewise.
10689
10690 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10691
10692         intprop-tests: port to older and more-pedantic compilers
10693         * modules/intprops-tests (Files): Add tests/macros.h.
10694         * tests/test-intprops.c: Include macros.h.
10695         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10696         it's no longer documented to expand to an integer constant expression.
10697         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10698         argument is floating point, as it's no longer documented to expand
10699         to an integer constant expression in that case.
10700         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10701         compiler bugs reported by Bruno Haible.  See
10702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10703         (U0, U1): New constants, to work around the same bugs.  Also,
10704         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10705
10706         intprops: work around C compiler bugs
10707         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10708         bug in Sun C 5.11 2010/08/13 and other compilers; see
10709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10710
10711         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10712         * doc/intprops.texi (Integer Type Determination): Fix
10713         documentation for TYPE_IS_INTEGER: it returns an constant
10714         expression, not an integer constant expression.  Fix doc for
10715         TYPE_SIGNED: it returns an integer constant expression only if its
10716         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10717         hardly worth documented that way....)
10718
10719 2011-05-18  Bruno Haible  <bruno@clisp.org>
10720
10721         strerror_r: Avoid clobbering the strerror buffer when possible.
10722         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10723         Handle gnulib defined errno values here. When strerror() returns NULL
10724         or an empty string, return EINVAL.
10725         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10726         gnulib defined errno values here.
10727         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10728
10729 2011-05-18  Eric Blake  <eblake@redhat.com>
10730
10731         fnmatch: avoid compiler warning
10732         * lib/fnmatch_loop.c (FCT): Use correct type.
10733         Reported by Matthias Bolte.
10734
10735 2011-05-13  Jim Meyering  <meyering@redhat.com>
10736
10737         maint.mk: three new prohibit_<HDR>_without_use rules
10738         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10739         (sc_prohibit_stdio-safer_without_use): Likewise.
10740         (sc_prohibit_xfreopen_without_use): Likewise.
10741
10742 2011-05-17  Jim Meyering  <meyering@redhat.com>
10743
10744         announce-gen: fail if the NEWS delta is empty
10745         If there's nothing noteworthy in NEWS, then either you forgot
10746         or you shouldn't be releasing.
10747         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10748
10749 2011-05-17  Pádraig Brady <P@draigBrady.com>
10750
10751         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10752         reserved symbols starting with double underscore from the check.
10753
10754 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10755
10756         intprops: add doc
10757         * doc/intprops.texi: New file, documenting intprops.
10758         * doc/gnulib.texi (Particular Modules): Include it.
10759
10760         verify: add doc to gnulib manual and fix example
10761         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10762         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10763         (Compile-time Assertions): Fix example so it can't overflow.
10764
10765 2011-05-17  Jim Meyering  <meyering@redhat.com>
10766
10767         warnings.m4: don't usurp save_CPPFLAGS variable name
10768         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10769
10770         doc: fix typo
10771         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10772
10773 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10774             Bruno Haible  <bruno@clisp.org>
10775
10776         doc: Tweak recent change.
10777         * README (Portability guidelines): Tweak new text.
10778         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10779         Interix 6.1.
10780
10781 2011-05-16  Eric Blake  <eblake@redhat.com>
10782
10783         inttypes: avoid autoconf warning
10784         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10785         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10786
10787 2011-05-16  Sam Steingold <sds@gnu.org>
10788         and Eric Blake  <eblake@redhat.com>
10789
10790         vc-list-files: accept multiple directory operands
10791         * build-aux/vc-list-files: Iterate over all remaining operands.
10792
10793 2011-05-16  Bruno Haible  <bruno@clisp.org>
10794
10795         Fix confusion regarding deprecated modules.
10796         * modules/calloc (Status, Notice): Mark module as deprecated, not
10797         obsolete.
10798         * modules/fnmatch-posix (Status, Notice): Likewise.
10799         * modules/getdate (Status, Notice): Likewise.
10800         * modules/getopt (Status, Notice): Likewise.
10801         * modules/malloc (Status, Notice): Likewise.
10802         * modules/pipe (Status, Notice): Likewise.
10803         * modules/realloc (Status, Notice): Likewise.
10804         * modules/rename-dest-slash (Status, Notice): Likewise.
10805         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10806         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10807         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10808         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10809         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10810
10811 2011-05-16  Bruno Haible  <bruno@clisp.org>
10812
10813         doc: List the target platforms.
10814         * doc/gnulib-intro.texi (Target Platforms): New section.
10815         * doc/gnulib.texi (Introduction): Update menu.
10816         * README (Portability guidelines): Refer to the new section. Update
10817         statement about oldest supported environment. Remove rationale why
10818         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10819         unportable C89 function.
10820         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10821         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10822
10823 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10824
10825         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10826
10827 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10828
10829         intprops-tests: new module
10830         * modules/intprops-tests, tests/test-intprops.c: New files.
10831
10832         intprops: add safe, portable integer overflow checking
10833         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10834         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10835         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10836         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10837         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10838         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10839         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10840         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10841         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10842         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10843         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10844
10845 2011-05-12  James Youngman  <jay@gnu.org>
10846
10847         Add a test for glibc's Bugzilla bug #12378.
10848         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10849         doesn't allow the literal matching of a lone "[" (which is
10850         required by POSIX).
10851         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10852
10853 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10854
10855         Sync glibc change fixing Bugzilla bug #12378.
10856         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10857         beginning and fall back to matching as normal character if the
10858         string ends before the matching ']' is found.  This is what POSIX
10859         requires.
10860
10861 2011-05-13  Eric Blake  <eblake@redhat.com>
10862
10863         getcwd-lgpl: relax test for FreeBSD
10864         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10865         issue.
10866         * tests/test-getcwd-lgpl.c (main): Relax test.
10867         Reported by Matthias Bolte.
10868
10869 2011-05-11  Eric Blake  <eblake@redhat.com>
10870
10871         test-fflush: silence compiler warning
10872         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10873
10874 2011-05-11  Bruno Haible  <bruno@clisp.org>
10875
10876         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10877         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10878         * modules/canonicalize (Depends-on): Add 'nocrash'.
10879         * modules/canonicalize-lgpl (Depends-on): Likewise.
10880         * doc/posix-functions/realpath.texi: Update platforms list.
10881         Reported by Ryan Schmidt <ryandesign@macports.org>.
10882
10883 2011-05-11  Bruno Haible  <bruno@clisp.org>
10884
10885         group-member: Declare function in <unistd.h>.
10886         * lib/unistd.in.h (group_member): New declaration.
10887         * lib/group-member.h: Remove file.
10888         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10889         * tests/test-unistd-c++.cc: Check signature of group_member.
10890         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10891         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10892         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10893         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10894         HAVE_GROUP_MEMBER.
10895         * modules/group-member (Files): Remove lib/group-member.h.
10896         (Depends-on): Add unistd. Specify conditions.
10897         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10898         (Include): Change to <unistd.h>.
10899         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10900         HAVE_GROUP_MEMBER.
10901         * NEWS: Mention the change.
10902         * lib/euidaccess.c: Don't include group-member.h.
10903
10904 2011-05-11  Bruno Haible  <bruno@clisp.org>
10905
10906         group-member: Document module.
10907         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10908         module.
10909
10910 2011-05-11  Bruno Haible  <bruno@clisp.org>
10911
10912         fclose: Fix mistake earlier today.
10913         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10914
10915 2011-05-11  Eric Blake  <eblake@redhat.com>
10916
10917         fclose: preserve fflush errors
10918         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10919         Reported by Jim Meyering.
10920
10921         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10922         * build-aux/bootstrap (check_versions): When no specific version
10923         is required, merely check that the app produces an exit status
10924         that indicates its existence.
10925
10926         maint.mk: drop redundant check
10927         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10928         the same but better.
10929
10930 2011-05-11  Bruno Haible  <bruno@clisp.org>
10931
10932         fclose: Fix possible link error.
10933         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10934         unregister_shadow_fd. Improve comments.
10935         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10936         Eric Blake.
10937
10938 2011-05-11  Jim Meyering  <meyering@redhat.com>
10939
10940         maint.mk: improve "can not" detection and generalize rule name
10941         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10942         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10943         Use the same technique as in sc_prohibit_doubled_word, so that
10944         we recognize "can not" also when the words are separated by a newline.
10945         Suggested by Eric Blake.
10946         (perl_filename_lineno_text_): Define.  Factored out of...
10947         (prohibit_doubled_word_): ...here.  Use the new definition.
10948         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10949         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10950         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10951
10952 2011-05-10  Eric Blake  <eblake@redhat.com>
10953
10954         fclose: avoid double close race when possible
10955         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10956         all but WINDOWS_SOCKETS.
10957
10958 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10959
10960         openat: correct new comment
10961         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10962
10963 2011-05-10  Jim Meyering  <meyering@redhat.com>
10964
10965         openat: add comments
10966         * lib/openat-proc.c (openat_proc_name): Add comments,
10967         mostly from Eric Blake.
10968
10969 2011-05-09  Eric Blake  <eblake@redhat.com>
10970
10971         openat: reduce syscalls in first probe of /proc
10972         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10973         be a directory.  Simplify the probe for .. bugs.
10974         * modules/openat (Depends-on): Drop same-inode.
10975         Reported by Bastien ROUCARIES.
10976
10977 2011-05-09  Jim Meyering  <meyering@redhat.com>
10978
10979         maint.mk: change semantics/name of tight_scope variables
10980         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10981         Rename variables to align with semantics that make them more useful.
10982
10983         maint.mk: tweak new rule's name not to impinge
10984         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10985         (sc_tight_scope): Use new rule name rather than $@-0.
10986
10987         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10988         * top/maint.mk (sc_tight_scope): New rule.
10989         (sc_tight_scope-0): New rule, ifdef'd out.
10990         (_gl_TS_dir): Default.
10991         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10992         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10993
10994 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10995
10996         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10997         Haible <bruno@clisp.org>.
10998
10999 2011-05-08  Bruno Haible  <bruno@clisp.org>
11000
11001         Comments.
11002         * m4/isnanf.m4: Add comment.
11003         * m4/isnanl.m4: Likewise.
11004
11005 2011-05-08  Bruno Haible  <bruno@clisp.org>
11006
11007         glob: Remove obsolete macro.
11008         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11009
11010 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11011
11012         intprops: Sun C 5.11 supports __typeof__
11013         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11014         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11015         which is new.
11016         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11017
11018         intprops: switch to usual gnulib indenting and naming
11019         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11020         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11021
11022         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11023
11024 2011-05-08  Jim Meyering  <meyering@redhat.com>
11025
11026         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11027         * top/maint.mk (release-prep): Use make's --no-print-directory
11028         option when generating the announcement.  This eliminates the
11029         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11030         generated announcement template.
11031
11032 2011-05-08  Bruno Haible  <bruno@clisp.org>
11033
11034         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11035         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11036         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11037
11038 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11039
11040         ignore-value, verify: Omit include files from lib_SOURCES.
11041         * modules/ignore-value, modules/verify (Makefile.am):
11042         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11043         that leads Automake to duplicate use of am__objects_... variables
11044         in Makefile.in.  See
11045         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11046
11047 2011-05-07  Bruno Haible  <bruno@clisp.org>
11048
11049         fclose: Simplify autoconf macro.
11050         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11051         defined.
11052
11053 2011-05-07  Bruno Haible  <bruno@clisp.org>
11054
11055         canonicalize-lgpl: Fix autoconf macro ordering bug.
11056         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11057         gl_STDLIB_H_DEFAULTS.
11058
11059 2011-05-06  Eric Blake  <eblake@redhat.com>
11060
11061         maintainer-makefile: make sc_po_check easier to tune
11062         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11063         to probe for strings, such as an alternate location for gnulib.
11064
11065         fclose: guarantee behavior on seekable stdin
11066         * modules/fclose (Depends-on): Add fflush.
11067         * doc/posix-functions/fclose.texi (fclose): Document this.
11068         * tests/test-fclose.c (main): Make test for this unconditional.
11069
11070 2011-05-06  Bruno Haible  <bruno@clisp.org>
11071
11072         fflush, fpurge: Relicense under LGPLv2+.
11073         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11074         * modules/fpurge (License): Likewise.
11075         With permission from Eric Blake and Jim Meyering.
11076         Suggested by Eric Blake.
11077
11078 2011-05-06  Karl Berry  <karl@gnu.org>
11079
11080         * MODULES.html.sh (func_all_modules): remove exit.
11081
11082 2011-05-06  Jim Meyering  <meyering@redhat.com>
11083
11084         maint.mk: use info-gnu@ as the default only for a stable release
11085         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11086         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11087         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11088         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11089
11090 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11091
11092         assert-h: new module, which supports C1X-style static_assert
11093         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11094         * lib/verify.h: Revamp so that this can be copied into assert.h,
11095         while retaining the ability to use it standalone as before.
11096         Rename private identifiers so as not to encroach on the
11097         standard C namespace, since this is now used by assert.h.
11098         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11099         the old verify_true.
11100         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11101         the old verify_true.  Use _GL_VERIFY_TYPE.
11102         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11103         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11104         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11105         defined when this file is copied into the replacement assert.h.
11106         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11107         and _Static_assert is not built in.
11108         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11109         defined, and use the new macros mentioned above.
11110         * doc/posix-headers/assert.texi: Document this.
11111
11112 2011-05-05  Bruno Haible  <bruno@clisp.org>
11113
11114         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11115         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11116         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11117         gl_REPLACE_FCLOSE here.
11118         * modules/fflush (Depends-on): Remove fclose.
11119         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11120         combination with module 'fclose'.
11121
11122 2011-05-05  Bruno Haible  <bruno@clisp.org>
11123
11124         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11125         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11126         gl_FUNC_FFLUSH.
11127         (gl_FUNC_FFLUSH): Use it.
11128         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11129         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11130         gl_REPLACE_FSEEKO here.
11131
11132 2011-05-05  Bruno Haible  <bruno@clisp.org>
11133
11134         tzset: Relicense under LGPL.
11135         * modules/tzset (License): Change to LGPL.
11136         No agreement needed; it's a no-op.
11137
11138         strtoimax, strtoumax: Relicense under LGPL.
11139         * modules/strtoimax (License): Change to LGPL.
11140         * modules/strtoumax (License): Likewise.
11141         With permission from Jim Meyering, Paul Eggert:
11142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11143         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11144
11145         getgroups: Relicense under LGPL.
11146         * modules/getgroups (License): Change to LGPL.
11147         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11151
11152         nanosleep: Relicense under LGPL.
11153         * modules/nanosleep (License): Change to LGPL.
11154         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11155         Haible:
11156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11160
11161         futimens: Relicense under LGPL.
11162         * modules/futimens (License): Change to LGPL.
11163         With permission from Eric Blake:
11164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11165
11166         fflush: Relicense under LGPL.
11167         * modules/fflush (License): Change to LGPL.
11168         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11169         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11172
11173         tmpfile: Relicense under LGPL.
11174         * modules/tmpfile (License): Change to LGPL.
11175         With permission from Ben Pfaff:
11176         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11177
11178         isfinite: Relicense under LGPL.
11179         * modules/isfinite (License): Change to LGPL.
11180         With permission from Ben Pfaff, Bruno Haible:
11181         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11183
11184         acosl..tanl: Relicense under LGPL.
11185         * modules/acosl (License): Change to LGPL.
11186         * modules/asinl (License): Likewise.
11187         * modules/atanl (License): Likewise.
11188         * modules/cosl (License): Likewise.
11189         * modules/expl (License): Likewise.
11190         * modules/logl (License): Likewise.
11191         * modules/sinl (License): Likewise.
11192         * modules/sqrtl (License): Likewise.
11193         * modules/tanl (License): Likewise.
11194         Source code originally from glibc and Paolo Bonzini. Agreements:
11195         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11197
11198 2011-05-05  Bruno Haible  <bruno@clisp.org>
11199
11200         signal: Define sighandler_t.
11201         * lib/signal.in.h (sighandler_t): New type.
11202         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11203         whether sighandler_t is defined.
11204         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11205         * modules/signal (Depends-on): Add extensions.
11206         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11207         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11208         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11209
11210 2011-05-05  Eric Blake  <eblake@redhat.com>
11211
11212         maint: remove useless REPLACE_*_H macros
11213         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11214         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11215         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11216         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11217         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11218         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11219         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11220         * m4/btowc.m4: Update callers.
11221         * m4/dirfd.m4: Likewise.
11222         * m4/duplocale.m4: Likewise.
11223         * m4/fchdir.m4: Likewise.
11224         * m4/fdopendir.m4: Likewise.
11225         * m4/inet_ntop.m4: Likewise.
11226         * m4/inet_pton.m4: Likewise.
11227         * m4/ioctl.m4: Likewise.
11228         * m4/mbrlen.m4: Likewise.
11229         * m4/mbrtowc.m4: Likewise.
11230         * m4/mbsinit.m4: Likewise.
11231         * m4/mbsnrtowcs.m4: Likewise.
11232         * m4/mbsrtowcs.m4: Likewise.
11233         * m4/poll.m4: Likewise.
11234         * m4/setlocale.m4: Likewise.
11235         * m4/wcrtomb.m4: Likewise.
11236         * m4/wcsnrtombs.m4: Likewise.
11237         * m4/wcsrtombs.m4: Likewise.
11238         * m4/wctob.m4: Likewise.
11239         * m4/wcwidth.m4: Likewise.
11240         * modules/posix_spawn: Likewise.
11241         * modules/posix_spawn_file_actions_addclose: Likewise.
11242         * modules/posix_spawn_file_actions_adddup2: Likewise.
11243         * modules/posix_spawn_file_actions_addopen: Likewise.
11244         * modules/posix_spawn_file_actions_destroy: Likewise.
11245         * modules/posix_spawn_file_actions_init: Likewise.
11246         * modules/posix_spawnattr_destroy: Likewise.
11247         * modules/posix_spawnattr_getflags: Likewise.
11248         * modules/posix_spawnattr_getpgroup: Likewise.
11249         * modules/posix_spawnattr_getschedparam: Likewise.
11250         * modules/posix_spawnattr_getschedpolicy: Likewise.
11251         * modules/posix_spawnattr_getsigdefault: Likewise.
11252         * modules/posix_spawnattr_getsigmask: Likewise.
11253         * modules/posix_spawnattr_init: Likewise.
11254         * modules/posix_spawnattr_setflags: Likewise.
11255         * modules/posix_spawnattr_setpgroup: Likewise.
11256         * modules/posix_spawnattr_setschedparam: Likewise.
11257         * modules/posix_spawnattr_setschedpolicy: Likewise.
11258         * modules/posix_spawnattr_setsigdefault: Likewise.
11259         * modules/posix_spawnattr_setsigmask: Likewise.
11260         * modules/posix_spawnp: Likewise.
11261
11262 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11263
11264         Add option to do-release-commit-and-tag to specify branch.
11265         * build-aux/do-release-commit-and-tag: Add --branch.
11266
11267 2011-05-03  Bruno Haible  <bruno@clisp.org>
11268
11269         Avoid unnecessary compilation units, through conditional dependencies.
11270         * modules/accept (Depends-on): Add conditions to the dependencies.
11271         * modules/acosl (Depends-on): Likewise.
11272         * modules/argz (Depends-on): Likewise.
11273         * modules/asinl (Depends-on): Likewise.
11274         * modules/atanl (Depends-on): Likewise.
11275         * modules/atoll (Depends-on): Likewise.
11276         * modules/bind (Depends-on): Likewise.
11277         * modules/btowc (Depends-on): Likewise.
11278         * modules/canonicalize-lgpl (Depends-on): Likewise.
11279         * modules/ceil (Depends-on): Likewise.
11280         * modules/ceilf (Depends-on): Likewise.
11281         * modules/ceill (Depends-on): Likewise.
11282         * modules/chdir-long (Depends-on): Likewise.
11283         * modules/chown (Depends-on): Likewise.
11284         * modules/close (Depends-on): Likewise.
11285         * modules/connect (Depends-on): Likewise.
11286         * modules/cosl (Depends-on): Likewise.
11287         * modules/dirfd (Depends-on): Likewise.
11288         * modules/dprintf (Depends-on): Likewise.
11289         * modules/dprintf-posix (Depends-on): Likewise.
11290         * modules/error (Depends-on): Likewise.
11291         * modules/euidaccess (Depends-on): Likewise.
11292         * modules/expl (Depends-on): Likewise.
11293         * modules/faccessat (Depends-on): Likewise.
11294         * modules/fchdir (Depends-on): Likewise.
11295         * modules/fclose (Depends-on): Likewise.
11296         * modules/fcntl (Depends-on): Likewise.
11297         * modules/fdopendir (Depends-on): Likewise.
11298         * modules/fflush (Depends-on): Likewise.
11299         * modules/floor (Depends-on): Likewise.
11300         * modules/floorf (Depends-on): Likewise.
11301         * modules/floorl (Depends-on): Likewise.
11302         * modules/fnmatch (Depends-on): Likewise.
11303         * modules/fopen (Depends-on): Likewise.
11304         * modules/fprintf-posix (Depends-on): Likewise.
11305         * modules/frexp (Depends-on): Likewise.
11306         * modules/frexp-nolibm (Depends-on): Likewise.
11307         * modules/frexpl (Depends-on): Likewise.
11308         * modules/frexpl-nolibm (Depends-on): Likewise.
11309         * modules/fseek (Depends-on): Likewise.
11310         * modules/fsusage (Depends-on): Likewise.
11311         * modules/ftell (Depends-on): Likewise.
11312         * modules/ftello (Depends-on): Likewise.
11313         * modules/futimens (Depends-on): Likewise.
11314         * modules/getcwd (Depends-on): Likewise.
11315         * modules/getcwd-lgpl (Depends-on): Likewise.
11316         * modules/getdelim (Depends-on): Likewise.
11317         * modules/getdomainname (Depends-on): Likewise.
11318         * modules/getgroups (Depends-on): Likewise.
11319         * modules/gethostname (Depends-on): Likewise.
11320         * modules/getline (Depends-on): Likewise.
11321         * modules/getlogin_r (Depends-on): Likewise.
11322         * modules/getopt-posix (Depends-on): Likewise.
11323         * modules/getpeername (Depends-on): Likewise.
11324         * modules/getsockname (Depends-on): Likewise.
11325         * modules/getsockopt (Depends-on): Likewise.
11326         * modules/getsubopt (Depends-on): Likewise.
11327         * modules/getusershell (Depends-on): Likewise.
11328         * modules/glob (Depends-on): Likewise.
11329         * modules/grantpt (Depends-on): Likewise.
11330         * modules/iconv_open (Depends-on): Likewise.
11331         * modules/iconv_open-utf (Depends-on): Likewise.
11332         * modules/inet_ntop (Depends-on): Likewise.
11333         * modules/inet_pton (Depends-on): Likewise.
11334         * modules/ioctl (Depends-on): Likewise.
11335         * modules/isapipe (Depends-on): Likewise.
11336         * modules/isfinite (Depends-on): Likewise.
11337         * modules/isinf (Depends-on): Likewise.
11338         * modules/lchown (Depends-on): Likewise.
11339         * modules/ldexpl (Depends-on): Likewise.
11340         * modules/link (Depends-on): Likewise.
11341         * modules/linkat (Depends-on): Likewise.
11342         * modules/listen (Depends-on): Likewise.
11343         * modules/logl (Depends-on): Likewise.
11344         * modules/lstat (Depends-on): Likewise.
11345         * modules/mbrlen (Depends-on): Likewise.
11346         * modules/mbrtowc (Depends-on): Likewise.
11347         * modules/mbsinit (Depends-on): Likewise.
11348         * modules/mbsnrtowcs (Depends-on): Likewise.
11349         * modules/mbsrtowcs (Depends-on): Likewise.
11350         * modules/mbtowc (Depends-on): Likewise.
11351         * modules/memcmp (Depends-on): Likewise.
11352         * modules/mkdir (Depends-on): Likewise.
11353         * modules/mkdtemp (Depends-on): Likewise.
11354         * modules/mkfifo (Depends-on): Likewise.
11355         * modules/mkfifoat (Depends-on): Likewise.
11356         * modules/mknod (Depends-on): Likewise.
11357         * modules/mkostemp (Depends-on): Likewise.
11358         * modules/mkostemps (Depends-on): Likewise.
11359         * modules/mkstemp (Depends-on): Likewise.
11360         * modules/mkstemps (Depends-on): Likewise.
11361         * modules/mktime (Depends-on): Likewise.
11362         * modules/nanosleep (Depends-on): Likewise.
11363         * modules/open (Depends-on): Likewise.
11364         * modules/openat (Depends-on): Likewise.
11365         * modules/perror (Depends-on): Likewise.
11366         * modules/poll (Depends-on): Likewise.
11367         * modules/popen (Depends-on): Likewise.
11368         * modules/posix_spawn (Depends-on): Likewise.
11369         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11370         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11371         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11372         * modules/posix_spawnp (Depends-on): Likewise.
11373         * modules/pread (Depends-on): Likewise.
11374         * modules/printf-posix (Depends-on): Likewise.
11375         * modules/ptsname (Depends-on): Likewise.
11376         * modules/putenv (Depends-on): Likewise.
11377         * modules/pwrite (Depends-on): Likewise.
11378         * modules/readline (Depends-on): Likewise.
11379         * modules/readlink (Depends-on): Likewise.
11380         * modules/readlinkat (Depends-on): Likewise.
11381         * modules/recv (Depends-on): Likewise.
11382         * modules/recvfrom (Depends-on): Likewise.
11383         * modules/regex (Depends-on): Likewise.
11384         * modules/remove (Depends-on): Likewise.
11385         * modules/rename (Depends-on): Likewise.
11386         * modules/renameat (Depends-on): Likewise.
11387         * modules/rmdir (Depends-on): Likewise.
11388         * modules/round (Depends-on): Likewise.
11389         * modules/roundf (Depends-on): Likewise.
11390         * modules/roundl (Depends-on): Likewise.
11391         * modules/rpmatch (Depends-on): Likewise.
11392         * modules/select (Depends-on): Likewise.
11393         * modules/send (Depends-on): Likewise.
11394         * modules/sendto (Depends-on): Likewise.
11395         * modules/setenv (Depends-on): Likewise.
11396         * modules/setlocale (Depends-on): Likewise.
11397         * modules/setsockopt (Depends-on): Likewise.
11398         * modules/shutdown (Depends-on): Likewise.
11399         * modules/sigaction (Depends-on): Likewise.
11400         * modules/signbit (Depends-on): Likewise.
11401         * modules/sigprocmask (Depends-on): Likewise.
11402         * modules/sinl (Depends-on): Likewise.
11403         * modules/sleep (Depends-on): Likewise.
11404         * modules/snprintf (Depends-on): Likewise.
11405         * modules/snprintf-posix (Depends-on): Likewise.
11406         * modules/socket (Depends-on): Likewise.
11407         * modules/sprintf-posix (Depends-on): Likewise.
11408         * modules/sqrtl (Depends-on): Likewise.
11409         * modules/stat (Depends-on): Likewise.
11410         * modules/strchrnul (Depends-on): Likewise.
11411         * modules/strdup-posix (Depends-on): Likewise.
11412         * modules/strerror (Depends-on): Likewise.
11413         * modules/strerror_r-posix (Depends-on): Likewise.
11414         * modules/strndup (Depends-on): Likewise.
11415         * modules/strnlen (Depends-on): Likewise.
11416         * modules/strptime (Depends-on): Likewise.
11417         * modules/strsep (Depends-on): Likewise.
11418         * modules/strsignal (Depends-on): Likewise.
11419         * modules/strstr-simple (Depends-on): Likewise.
11420         * modules/strtod (Depends-on): Likewise.
11421         * modules/strtoimax (Depends-on): Likewise.
11422         * modules/strtok_r (Depends-on): Likewise.
11423         * modules/strtoumax (Depends-on): Likewise.
11424         * modules/symlink (Depends-on): Likewise.
11425         * modules/symlinkat (Depends-on): Likewise.
11426         * modules/tanl (Depends-on): Likewise.
11427         * modules/tcgetsid (Depends-on): Likewise.
11428         * modules/tmpfile (Depends-on): Likewise.
11429         * modules/trunc (Depends-on): Likewise.
11430         * modules/truncf (Depends-on): Likewise.
11431         * modules/truncl (Depends-on): Likewise.
11432         * modules/uname (Depends-on): Likewise.
11433         * modules/unlink (Depends-on): Likewise.
11434         * modules/unlockpt (Depends-on): Likewise.
11435         * modules/unsetenv (Depends-on): Likewise.
11436         * modules/usleep (Depends-on): Likewise.
11437         * modules/utimensat (Depends-on): Likewise.
11438         * modules/vasprintf (Depends-on): Likewise.
11439         * modules/vdprintf (Depends-on): Likewise.
11440         * modules/vdprintf-posix (Depends-on): Likewise.
11441         * modules/vfprintf-posix (Depends-on): Likewise.
11442         * modules/vprintf-posix (Depends-on): Likewise.
11443         * modules/vsnprintf (Depends-on): Likewise.
11444         * modules/vsnprintf-posix (Depends-on): Likewise.
11445         * modules/vsprintf-posix (Depends-on): Likewise.
11446         * modules/wcrtomb (Depends-on): Likewise.
11447         * modules/wcscasecmp (Depends-on): Likewise.
11448         * modules/wcscspn (Depends-on): Likewise.
11449         * modules/wcsdup (Depends-on): Likewise.
11450         * modules/wcsncasecmp (Depends-on): Likewise.
11451         * modules/wcsnrtombs (Depends-on): Likewise.
11452         * modules/wcspbrk (Depends-on): Likewise.
11453         * modules/wcsrtombs (Depends-on): Likewise.
11454         * modules/wcsspn (Depends-on): Likewise.
11455         * modules/wcsstr (Depends-on): Likewise.
11456         * modules/wcstok (Depends-on): Likewise.
11457         * modules/wcswidth (Depends-on): Likewise.
11458         * modules/wctob (Depends-on): Likewise.
11459         * modules/wctomb (Depends-on): Likewise.
11460         * modules/wctype (Depends-on): Likewise.
11461         * modules/wcwidth (Depends-on): Likewise.
11462         * modules/write (Depends-on): Likewise.
11463
11464 2011-05-03  Bruno Haible  <bruno@clisp.org>
11465
11466         Support for conditional dependencies.
11467         * doc/gnulib.texi (Module description): Document the syntax of
11468         conditional dependencies.
11469         * gnulib-tool: New option --conditional-dependencies.
11470         (func_usage): Document it.
11471         (cond_dependencies): New variable.
11472         (func_get_automake_snippet_conditional,
11473         func_get_automake_snippet_unconditional): New functions, extracted from
11474         func_get_automake_snippet.
11475         (func_get_automake_snippet): Use them.
11476         (sed_first_32_chars): New variable.
11477         (func_module_shellfunc_name): New function.
11478         (func_module_shellvar_name): New function.
11479         (func_module_conditional_name): New function.
11480         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11481         func_cond_module_condition): New functions.
11482         (func_modules_transitive_closure): Add support for conditional
11483         dependencies.
11484         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11485         conditional automake snippet in an automake conditional.
11486         (func_emit_autoconf_snippets): Emit shell functions that contain the
11487         code for conditional modules.
11488         (func_import, func_create_testdir): Update specification.
11489
11490 2011-05-03  Eric Blake  <eblake@redhat.com>
11491
11492         test-getaddrinfo: report error information
11493         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11494
11495 2011-05-03  Jim Meyering  <meyering@redhat.com>
11496
11497         bootstrap: avoid build failure when $GZIP is set
11498         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11499         program name.  If defined at all, it is supposed to list gzip options.
11500         Reported by Alan Curry in http://debbugs.gnu.org/8609
11501
11502 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11503
11504         readme-release: new module with release instructions
11505         * modules/readme-release: New module.
11506         * top/README-release: New file, from coreutils, grep, diffutils.
11507         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11508
11509 2011-05-02  Eric Blake  <eblake@redhat.com>
11510
11511         fflush: also replace fclose when fixing fflush
11512         * modules/fflush (Depends-on): Add fclose.
11513         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11514         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11515         memstreams with no backing fd.
11516         * doc/posix-functions/fclose.texi (fclose): Document the use of
11517         fflush module to fix the bug.
11518         * tests/test-fclose.c (main): Relax test when fclose is used in
11519         isolation.
11520
11521         fclose: add some tests
11522         * modules/fclose-tests: New test module.
11523         * tests/test-fclose.c: New file.
11524         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11525
11526         fclose: reduced dependencies
11527         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11528         simpler lseek.
11529         * lib/fclose.c (rpl_fclose): Likewise.
11530         Reported by Simon Josefsson.
11531
11532         exit: drop remaining clients
11533         * modules/argmatch (Depends-on): Replace exit with stdlib.
11534         * modules/copy-file (Depends-on): Likewise.
11535         * modules/execute (Depends-on): Likewise.
11536         * modules/exitfail (Depends-on): Likewise.
11537         * modules/obstack (Depends-on): Likewise.
11538         * modules/pagealign_alloc (Depends-on): Likewise.
11539         * modules/pipe-filter-gi (Depends-on): Likewise.
11540         * modules/pipe-filter-ii (Depends-on): Likewise.
11541         * modules/savewd (Depends-on): Likewise.
11542         * modules/spawn-pipe (Depends-on): Likewise.
11543         * modules/wait-process (Depends-on): Likewise.
11544         * modules/xsetenv (Depends-on): Likewise.
11545         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11546         * modules/git-merge-changelog (Depends-on): Likewise.
11547         * modules/long-options (Depends-on): Likewise.
11548         * modules/pt_chown (Depends-on): Likewise.
11549         * modules/sysexits (Depends-on): Likewise.
11550
11551         freading: relax license from LGPLv3+ to LGPLv2+
11552         * modules/freading (License): Relax LGPL version.
11553
11554 2011-05-02  Bruno Haible  <bruno@clisp.org>
11555
11556         fchdir: Remove unused dependencies.
11557         * modules/fchdir (Depends-on): Remove include_next.
11558
11559 2011-05-02  Bruno Haible  <bruno@clisp.org>
11560
11561         gnulib-tool: Refactor.
11562         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11563         from func_emit_autoconf_snippets.
11564         (func_emit_autoconf_snippets): Use it.
11565
11566 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11567
11568         * NEWS: Document removal of 'exit'.
11569         * modules/exit: Remove file.
11570
11571 2011-05-01  Bruno Haible  <bruno@clisp.org>
11572
11573         Update DEPENDENCIES.
11574         * DEPENDENCIES (gettext): Recommend the newest release.
11575         Reported by Simon Josefsson.
11576
11577 2011-05-01  Bruno Haible  <bruno@clisp.org>
11578
11579         gnulib-tool: Reduce code duplication.
11580         * gnulib-tool (func_emit_autoconf_snippets): New function.
11581         (func_import, func_create_testdir): Use it.
11582
11583 2011-04-30  Eric Blake  <eblake@redhat.com>
11584
11585         fclose: don't fail on non-seekable input stream
11586         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11587         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11588         since fflush is allowed to fail in that case.
11589
11590 2011-04-30  Bruno Haible  <bruno@clisp.org>
11591
11592         dup3: cleanup
11593         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11594
11595 2011-04-30  Bruno Haible  <bruno@clisp.org>
11596
11597         netdb: Make it work in C++ mode.
11598         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11599         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11600         module.
11601         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11602         gl_MODULE_INDICATOR_FOR_TESTS.
11603         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11604         * modules/netdb-c++-tests: New file.
11605         * tests/test-netdb-c++.cc: New file.
11606
11607 2011-04-30  Bruno Haible  <bruno@clisp.org>
11608
11609         New modules 'vfscanf', 'vscanf'.
11610         * modules/vfscanf: New file.
11611         * modules/vscanf: New file.
11612         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11613         here.
11614         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11615         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11616
11617 2011-04-30  Bruno Haible  <bruno@clisp.org>
11618
11619         passfd: Add comments.
11620         * lib/passfd.c: Add comments about platforms.
11621
11622 2011-04-30  Bruno Haible  <bruno@clisp.org>
11623
11624         sys_uio: Make <sys/uio.h> self-contained.
11625         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11626         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11627
11628 2011-04-30  Bruno Haible  <bruno@clisp.org>
11629
11630         sys_socket: Ensure 'struct iovec' definition.
11631         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11632         <sys/socket.h>.
11633         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11634
11635 2011-04-30  Bruno Haible  <bruno@clisp.org>
11636
11637         sys_uio: Protect definition of 'struct iovec'.
11638         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11639         it as a C struct.
11640
11641 2011-04-30  Bruno Haible  <bruno@clisp.org>
11642
11643         manywarnings: fix indentation
11644         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11645
11646 2011-04-30  Pádraig Brady <P@draigBrady.com>
11647
11648         manywarnings: add -Wno-missing-field-initializers if needed.
11649         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11650         option if it's needed to allow initialization with { 0, }
11651
11652 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11653
11654         announce-gen: cosmetic improvement
11655         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11656
11657 2011-04-29  Jim Meyering  <meyering@redhat.com>
11658
11659         vc-list-files: indent with spaces, not TABs
11660         * build-aux/vc-list-files: Convert leading TABs to spaces,
11661         to match the style of most other files in gnulib.
11662
11663         announce-gen: indent with spaces, not TABs
11664         * build-aux/announce-gen: Convert all TABs to spaces, to match
11665         the style of most other files in gnulib.
11666
11667 2011-04-29  Eric Blake  <eblake@redhat.com>
11668
11669         quotearg: avoid uninitialized variable use
11670         * lib/quotearg.c (quoting_options_from_style): Initialize
11671         remaining fields, and ensure that custom styles are only used via
11672         quoting_options rather than quoting_style.
11673
11674 2011-04-29  Jim Meyering  <meyering@redhat.com>
11675
11676         maint.mk: remove unused VC-tag variable
11677         * top/maint.mk (VC-tag): Remove unused variable.
11678
11679 2011-04-29  Bruno Haible  <bruno@clisp.org>
11680
11681         netdb: fix gai_strerror replacements
11682         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11683         * modules/netdb: Substitute it.
11684
11685 2011-04-29  Jim Meyering  <meyering@redhat.com>
11686
11687         test-getcwd.c: avoid new set-but-not-used warning
11688         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11689         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11690         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11691         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11692
11693         test-hash.c: avoid a new shadowing warning
11694         * tests/test-hash.c (main): Don't shadow "dup".
11695
11696 2011-04-28  Eric Blake  <eblake@redhat.com>
11697
11698         getaddrinfo: fix gai_strerror signature
11699         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11700         and work around mingw with UNICODE defined.
11701         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11702         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11703         * modules/netdb (Makefile.am): Substitute it.
11704         * lib/netdb.in.h (gai_strerror): Declare replacement.
11705         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11706         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11707         the fix.
11708
11709         getsockopt: avoid compiler warning
11710         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11711         Reported by Matthias Bolte.
11712
11713         tests: drop unused link dependency
11714         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11715         * modules/dirent-safer-tests (Makefile.am): Likewise.
11716         * modules/fdopendir-tests (Makefile.am): Likewise.
11717         * modules/mkfifoat-tests (Makefile.am): Likewise.
11718         * modules/openat-safer-tests (Makefile.am): Likewise.
11719         * modules/openat-tests (Makefile.am): Likewise.
11720         * modules/readlinkat-tests (Makefile.am): Likewise.
11721         * modules/symlinkat-tests (Makefile.am): Likewise.
11722         * modules/linkat-tests (Makefile.am): Likewise.
11723         (Depends-on): Switch to filenamecat-lgpl.
11724         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11725         LIBINTL.
11726         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11727         * tests/test-linkat.c (main): Don't require xalloc.
11728
11729         hash, mgetgroups: drop xalloc dependency
11730         * lib/hash.c (includes): Adjust includes.
11731         * lib/mgetgroups.c (includes): Likewise.
11732         (xgetgroups): Move...
11733         * lib/xgetgroups.c: ...to new file.
11734         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11735         * modules/xgetgroups: New file, split from...
11736         * modules/mgetgroups: ...here.
11737         (Depends-on): Add xalloc-oversized.
11738         * modules/hash (Depends-on): Likewise.
11739         * modules/hash-tests (Depends-on): Drop xalloc.
11740         (test_hash_LDADD): Drop unused library.
11741         * tests/test-hash.c (main): Break xalloc dependency.
11742         (includes): Drop unused include.
11743
11744         xalloc-oversized: new module
11745         * modules/xalloc-oversized: New module.
11746         * modules/xalloc (Depends-on): Add it.
11747         * lib/xalloc.h (xalloc_oversized): Move...
11748         * lib/xalloc-oversized.h: ...into new file.
11749
11750         utimecmp: drop dependency on xmalloc
11751         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11752         due to memory pressure.
11753         * modules/utimecmp (Depends-on): Drop xalloc.
11754
11755 2011-04-27  Eric Blake  <eblake@redhat.com>
11756
11757         getcwd: fix mingw bugs
11758         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11759         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11760         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11761
11762 2011-04-27  Bruno Haible  <bruno@clisp.org>
11763
11764         mkstemps: Ensure declaration on MacOS X 10.5.
11765         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11766         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11767         MacOS X.
11768
11769 2011-04-27  Bruno Haible  <bruno@clisp.org>
11770
11771         mkstemp: More documentation.
11772         * doc/posix-functions/mkstemp.texi: Document header file problem on
11773         MacOS X.
11774
11775 2011-04-27  Bruno Haible  <bruno@clisp.org>
11776
11777         mkstemp: Tweak configure message when cross-compiling.
11778         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11779         result as a guess.
11780
11781 2011-04-27  Bruno Haible  <bruno@clisp.org>
11782
11783         clean-temp: Clarify what it does.
11784         * lib/clean-temp.h: Add more comments.
11785         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11786         module.
11787         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11788         * doc/glibc-functions/mkstemps.texi: Likewise.
11789         * doc/glibc-functions/mkostemps.texi: Likewise.
11790
11791 2011-04-27  Eric Blake  <eblake@redhat.com>
11792
11793         fchdir: avoid extra chdir and fix test
11794         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11795         getcwd-lgpl.
11796         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11797         have to be canonical.
11798         (canonicalize_file_name): Drop unused macro.
11799         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11800
11801         filenamecat-lgpl: fix licence
11802         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11803         when it was first created.
11804
11805         linkat, renameat: add missing dependency
11806         * modules/linkat (Depends-on): Require getcwd-lgpl.
11807         * modules/renameat (Depends-on): Likewise.
11808
11809         tests: reduce dependencies
11810         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11811         * tests/test-renameat.c (main): Likewise.
11812         * modules/linkat-tests (Depends-on): Relax dependency.
11813         * modules/renameat-tests (Depends-on): Likewise.
11814         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11815         dependency explicit.
11816
11817         save-cwd: reduce default dependency
11818         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11819         * lib/save-cwd.c: Update comments.
11820         * NEWS: Document the semantic change.
11821
11822         getcwd: enhance tests
11823         * tests/test-getcwd-lgpl.c: New file, taken from...
11824         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11825         repeat long path stress tests from m4 probe.
11826         * modules/getcwd-lgpl-tests: New module.
11827         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11828         * m4/getcwd-abort-bug.m4: Update comment.
11829         * m4/getcwd-path-max.m4: Likewise.
11830
11831         getcwd-lgpl: new module
11832         * modules/getcwd-lgpl: New module.
11833         * lib/getcwd-lgpl.c: New file.
11834         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11835         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11836         * modules/getcwd (configure.ac): Set C witness.
11837         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11838
11839         getcwd: tweak comments
11840         * m4/getcwd-abort-bug.m4: Fix comments.
11841         * m4/getcwd-path-max.m4: Likewise.
11842         * m4/getcwd.m4: Likewise.
11843
11844 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11845         and Eric Blake  <eblake@redhat.com>
11846
11847         mkstemp: replace if system version uses wrong permissions
11848         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11849         read/write mode bits set in file created by mkstemp.
11850         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11851
11852 2011-04-27  Eric Blake  <eblake@redhat.com>
11853
11854         passfd: avoid compiler warning
11855         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11856         Reported by Laine Stump.
11857
11858 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11859
11860         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11861         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11862
11863 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11864         and Eric Blake  <eblake@redhat.com>
11865
11866         mkstemp: mention clean-temp module
11867         * lib/mkstemp.c: Add comment.
11868         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11869
11870 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11871
11872         inttypes: also provide default values for 32-bit tests
11873         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11874         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11875
11876 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11877
11878         strtoumax: remove dependency on strtoimax
11879         This is like the strtoull change of yesterday.
11880         * modules/strtoumax (Files): Add lib/strtoimax.c.
11881         (Depends-on): Remove strtoimax and add verify.
11882
11883         inttypes-incomplete: new module
11884         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11885         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11886         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11887         of gl_INTTYPES_H.
11888         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11889         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11890         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11891         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11892         * modules/strtoumax, modules/xstrtol (Depends-on):
11893         Depend on inttypes-incomplete, not inttypes.
11894         * modules/inttypes-incomplete: New module, containing the contents
11895         of the old modules/inttypes module, except that the Files: section
11896         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11897         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11898         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11899         (Depends-on): Depend only on inttypes-incomplete.
11900         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11901
11902         inttypes: omit now-redundant strtoimax and strtoumax work
11903         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11904         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11905
11906         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11907         This supports apps that need pointers to strtoimax and strtoumax,
11908         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11909         nonexistent functions.  See
11910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11911         et seq.
11912         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11913         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11914         a macro.
11915         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11916
11917 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11918
11919         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11920
11921 2011-04-25  Bruno Haible  <bruno@clisp.org>
11922
11923         strtol, strtoul: Mark modules as obsolete.
11924         * modules/strtol (Status, Notice): New sections.
11925         * modules/strtoul (Status, Notice): New sections.
11926
11927 2011-04-25  Bruno Haible  <bruno@clisp.org>
11928
11929         strtod: Remove check for strtod, unless supporting old platforms.
11930         * modules/strtod-obsolete: New file.
11931         * m4/strtod-obsolete.m4: New file.
11932         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11933         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11934         * modules/strtod (Depends-on): Add strtod-obsolete.
11935         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11936
11937 2011-04-25  Bruno Haible  <bruno@clisp.org>
11938
11939         strcase: Make module obsolete.
11940         * modules/strcase (Status, Notice): New sections.
11941
11942 2011-04-25  Bruno Haible  <bruno@clisp.org>
11943
11944         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11945         * modules/dup2-obsolete: New file.
11946         * m4/dup2-obsolete.m4: New file.
11947         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11948         gl_FUNC_DUP2_OBSOLETE is not also defined.
11949         * modules/dup2 (Depends-on): Add dup2-obsolete.
11950         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11951
11952 2011-04-25  Bruno Haible  <bruno@clisp.org>
11953
11954         strnlen: Avoid memchr related link error on old obsolete platforms.
11955         * modules/memchr-obsolete: New file.
11956         * m4/memchr-obsolete.m4: New file.
11957         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11958         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11959         * modules/memchr (Depends-on): Add memchr-obsolete.
11960         * modules/strnlen (Depends-on): Likewise.
11961         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11962
11963 2011-04-25  Jim Meyering  <meyering@redhat.com>
11964
11965         maint.mk: makefile_at_at_check extend and clean up
11966         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11967         in addition to */Makefile.am.
11968         Exempt legitimate uses of @VAR@ notation, e.g.,
11969         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11970         Remove obsolete coreutils-specific comment.
11971         Prompted by discussion here:
11972         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11973
11974 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11975
11976         strtoul: remove dependency on strtol
11977         This is so that 'configure' need not check for strtol merely because
11978         the application needs strtoul.
11979         * modules/strtoul (Files): Add lib/strtol.c.
11980         (Depends-on): Remove strtol.
11981
11982         strtoull: remove dependency on strtoul
11983         This is like the strtoll change.
11984         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11985         (Depends-on): Remove strtoul.
11986
11987         strtoll: remove dependency on strtol
11988         This is so that 'configure' need not check for strtol merely because
11989         the application needs strtoll.
11990         * modules/strtoll (Files): Add lib/strtol.c.
11991         (Depends-on): Remove strtol.
11992
11993 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11994
11995         inttypes: Move some configure check to module 'imaxdiv'.
11996         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11997         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11998         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11999
12000 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12001
12002         inttypes: Move some configure check to module 'imaxabs'.
12003         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12004         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12005         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12006
12007 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12008
12009         inttypes: Remove configure tests that are not needed since 2009-12-31.
12010         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12011         gl_cv_header_working_inttypes_h.
12012
12013 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12014
12015         * modules/strnlen (Depends-on): Remove memchr.
12016         The strnlen implementation doesn't need the memchr module's fixes; see
12017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12018
12019         strtol: remove dependency on wchar
12020         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12021         * modules/strtol (Depends-on): Remove wchar.
12022
12023 2011-04-21  Eric Blake  <eblake@redhat.com>
12024
12025         passfd: fix test regression on Linux
12026         * modules/passfd-tests (configure.ac): Correct socketpair check.
12027
12028         passfd: speed up configure and drop unused code
12029         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12030         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12031         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12032         Instead of probing at configure for unix_scm_rights_bsd44_way,
12033         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12034         check to a struct member probe.
12035         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12036         (sendfd, recvfd): Update preprocessor checks.
12037         * modules/passfd (Files): Reflect rename, and drop unused file.
12038         (Depends-on): Drop unused dependency.
12039
12040         passfd: allow compilation on mingw
12041         * modules/sys_socket (Depends-on): Add sys_uio.
12042         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12043         iovec and a minimal struct msghdr.
12044         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12045         * tests/test-sys_socket.c (main): Enhance test.
12046         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12047         guaranteed to provide what we need.
12048         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12049         * modules/passfd-tests (Depends-on): Add sys_wait.
12050         * tests/test-passfd.c (main): Skip test on mingw, for now.
12051         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12052         partial 'struct msghdr' implementation.
12053
12054         sys_uio: new module
12055         * modules/sys_uio: New module.
12056         * modules/sys_uio-tests: Likewise.
12057         * lib/sys_uio.in.h: New file.
12058         * m4/sys_uio_h.m4: Likewise.
12059         * tests/test-sys_uio.c: Likewise.
12060         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12061         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12062
12063 2011-04-20  Jim Meyering  <meyering@redhat.com>
12064
12065         useless-if-before-free: avoid false-positive
12066         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12067         disjunct so that it too requires a terminating ";".  Without that,
12068         this script would identify as useless one statement from gcc that
12069         was not:
12070           if (aligned_ptr)
12071             free (((void **) aligned_ptr) [-1]);
12072
12073 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12074
12075         doc: update users.txt.
12076         * users.txt: Add barcode.
12077
12078 2011-04-19  Bruno Haible  <bruno@clisp.org>
12079
12080         ioctl: Remove link dependency on native Windows.
12081         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12082         (gl_close_fn, gl_ioctl_fn): New types.
12083         (struct fd_hook): Renamed from struct close_hook. Change type of
12084         private_close_fn field. Add private_ioctl_fn field.
12085         (close_hook_fn): Add parameter for primary close method.
12086         (execute_close_hooks, execute_all_close_hooks): Likewise.
12087         (ioctl_hook_fn): New type.
12088         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12089         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12090         argument.
12091         (unregister_fd_hook): Renamed from unregister_close_hook.
12092         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12093         Don't include <unistd.h>.
12094         (close): Remove undef.
12095         (anchor): Update.
12096         (execute_close_hooks): Add argument for primary close method.
12097         (execute_all_close_hooks): Likewise.
12098         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12099         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12100         argument. Allow each argument to be NULL.
12101         (unregister_fd_hook): Renamed from unregister_close_hook.
12102         * lib/close.c (rpl_close): Pass 'close' function pointer to
12103         execute_all_close_hooks.
12104         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12105         (primary_ioctl): New function.
12106         (ioctl): Don't call ioctlsocket here. Instead, call
12107         execute_all_ioctl_hooks.
12108         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12109         close method.
12110         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12111         (fd_sockets_hook): Renamed from close_sockets_hook.
12112         (gl_sockets_startup, gl_sockets_cleanup): Update.
12113         * modules/fd-hook: Renamed from modules/close-hook. Update.
12114         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12115         * modules/sockets (Depends-on): Likewise.
12116         * modules/ioctl (Depends-on): Add fd-hook.
12117         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12118         GNULIB_SOCKET.
12119
12120 2011-04-19  Bruno Haible  <bruno@clisp.org>
12121
12122         Move the support of O_NONBLOCK in open() to the 'open' module.
12123         * modules/nonblocking (Depends-on): Remove 'open'.
12124         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12125         gl_cv_have_open_O_NONBLOCK.
12126         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12127         O_NONBLOCK support.
12128         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12129
12130 2011-04-17  Bruno Haible  <bruno@clisp.org>
12131
12132         pipe2: Simplify code.
12133         * lib/pipe2.c (pipe2): Reduce code duplication.
12134
12135 2011-04-17  Bruno Haible  <bruno@clisp.org>
12136
12137         nonblocking: Add comment.
12138         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12139
12140 2011-04-17  Bruno Haible  <bruno@clisp.org>
12141
12142         nonblocking: Add tests for sockets.
12143         * tests/test-nonblocking-socket.sh: New file.
12144         * tests/test-nonblocking-socket-main.c: New file.
12145         * tests/test-nonblocking-socket-child.c: New file.
12146         * tests/test-nonblocking-socket.h: New file.
12147         * tests/socket-server.h: New file.
12148         * tests/socket-client.h: New file.
12149         * modules/nonblocking-socket-tests: New file.
12150         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12151
12152 2011-04-17  Bruno Haible  <bruno@clisp.org>
12153
12154         nonblocking: Add tests for pipes.
12155         * tests/test-nonblocking-pipe.sh: New file.
12156         * tests/test-nonblocking-pipe-main.c: New file.
12157         * tests/test-nonblocking-pipe-child.c: New file.
12158         * tests/test-nonblocking-pipe.h: New file.
12159         * tests/test-nonblocking-writer.h: New file.
12160         * tests/test-nonblocking-reader.h: New file.
12161         * tests/test-nonblocking-misc.h: New file.
12162         * modules/nonblocking-pipe-tests: New file.
12163         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12164
12165 2011-04-16  Bruno Haible  <bruno@clisp.org>
12166
12167         gettext: Clarify the needed programmer actions.
12168         * modules/gettext (Notice): New field.
12169         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12170
12171 2011-04-16  Bruno Haible  <bruno@clisp.org>
12172
12173         strchrnul: Tweak last commit.
12174         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12175         bug.
12176         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12177         as in _GL_FUNCDECL_SYS.
12178         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12179         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12180
12181 2011-04-15  Eric Blake  <eblake@redhat.com>
12182
12183         strchrnul: work around cygwin bug
12184         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12185         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12187         * modules/string (Makefile.am): Substitute it.
12188         * lib/string.in.h (strchrnul): Use it.
12189
12190 2011-04-15  Bruno Haible  <bruno@clisp.org>
12191
12192         Don't require lib/stdio-write.c when only module 'stdio' is used.
12193         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12194         invocation.
12195         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12196
12197 2011-04-14  Bruno Haible  <bruno@clisp.org>
12198
12199         Support non-blocking pipe I/O in read() on native Windows.
12200         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12201         (read): New declaration.
12202         * lib/read.c: New file.
12203         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12204         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12205         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12206         vscanf): New declarations.
12207         * lib/stdio-read.c: New file.
12208         * m4/read.m4: New file.
12209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12210         REPLACE_READ.
12211         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12212         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12213         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12214         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12215         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12216         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12217         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12218         * modules/read: New file.
12219         * modules/nonblocking (Files): Add lib/stdio-read.c.
12220         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12221         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12222         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12223         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12224         * modules/pread (Depends-on): Add read.
12225         * modules/safe-read (Depends-on): Likewise.
12226         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12227         gets, scanf, vfscanf, vscanf): Verify signatures.
12228         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12229         problem with non-blocking pipes.
12230         * doc/posix-functions/fgetc.texi: Likewise.
12231         * doc/posix-functions/fgets.texi: Likewise.
12232         * doc/posix-functions/fread.texi: Likewise.
12233         * doc/posix-functions/fscanf.texi: Likewise.
12234         * doc/posix-functions/getc.texi: Likewise.
12235         * doc/posix-functions/getchar.texi: Likewise.
12236         * doc/posix-functions/gets.texi: Likewise.
12237         * doc/posix-functions/scanf.texi: Likewise.
12238         * doc/posix-functions/vfscanf.texi: Likewise.
12239         * doc/posix-functions/vscanf.texi: Likewise.
12240
12241 2011-04-14  Bruno Haible  <bruno@clisp.org>
12242
12243         Support non-blocking pipe I/O in write() on native Windows.
12244         * lib/write.c (rpl_write): Split a write request that failed merely
12245         because the byte count was larger than the pipe buffer's size.
12246         * doc/posix-functions/write.texi: Mention the problem with large byte
12247         counts.
12248
12249 2011-04-14  Bruno Haible  <bruno@clisp.org>
12250
12251         wchar: Ensure that wchar_t gets defined on uClibc.
12252         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12253         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12254
12255 2011-04-13  Bruno Haible  <bruno@clisp.org>
12256
12257         safe-write, full-read: Avoid unnecessary compilation units.
12258         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12259         (Depends-on): Remove safe-read. Add ssize_t.
12260         * modules/full-read (Files): Add lib/full-write.c.
12261         (Depends-on): Add full-write.
12262
12263 2011-04-13  Bruno Haible  <bruno@clisp.org>
12264
12265         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12266         * modules/pwrite (Depends-on): Add 'write'.
12267
12268 2011-04-13  Bruno Haible  <bruno@clisp.org>
12269
12270         Support non-blocking pipe I/O in write() on native Windows.
12271         * lib/unistd.in.h (write): Enable replacement also if
12272         GNULIB_UNISTD_H_NONBLOCKING is 1.
12273         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12274         (rpl_write): When failing to write on a non-blocking pipe, change
12275         errno from ENOSPC to EAGAIN.
12276         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12277         putchar, puts, vfprintf, vprintf): Enable replacement also if
12278         GNULIB_STDIO_H_NONBLOCKING is 1.
12279         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12280         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12281         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12282         CALL_WITH_SIGPIPE_EMULATION.
12283         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12284         * m4/nonblocking.m4: New file.
12285         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12286         for non-blocking I/O support.
12287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12288         GNULIB_UNISTD_H_NONBLOCKING.
12289         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12290         required for non-blocking I/O support.
12291         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12292         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12293         lib/stdio-write.c, m4/asm-underscore.m4.
12294         (Depends-on): Add stdio, unistd.
12295         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12296         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12297         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12298         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12299         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12300         problem with non-blocking pipes.
12301         * doc/posix-functions/fputc.texi: Likewise.
12302         * doc/posix-functions/fputs.texi: Likewise.
12303         * doc/posix-functions/fwrite.texi: Likewise.
12304         * doc/posix-functions/printf.texi: Likewise.
12305         * doc/posix-functions/putc.texi: Likewise.
12306         * doc/posix-functions/putchar.texi: Likewise.
12307         * doc/posix-functions/puts.texi: Likewise.
12308         * doc/posix-functions/vfprintf.texi: Likewise.
12309         * doc/posix-functions/vprintf.texi: Likewise.
12310         * doc/posix-functions/write.texi: Likewise.
12311
12312 2011-04-10  Jim Meyering  <meyering@redhat.com>
12313
12314         maint.mk: prohibit doubled words
12315         Detect them also when they're separated by a newline.
12316         There are 3 ways to customize it:
12317           - disable the test on a per file basis, as usual with rules using
12318             $(VC_LIST_EXCEPT)
12319           - replace the default doubled-word-selecting regexp (affects all files)
12320           - ignore a particular file-vs-doubled-word match
12321         I nearly used that last one to ignore the "is is" match in
12322         coreutils' NEWS file, since the text was "ls -is is ..."
12323         To do that, I would have added this line to cfg.mk:
12324           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12325         but it would have ignored any "is is" match in NEWS.
12326         Low probability, but still...
12327         Instead, I changed the text, slightly:
12328           -  ls -is is now consistent with ls -lis in ignoring values returned
12329           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12330         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12331         (prohibit_doubled_word_): Define.
12332         (sc_prohibit_doubled_word): New rule.
12333         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12334
12335 2011-04-10  Jim Meyering  <meyering@redhat.com>
12336
12337         maint: fix doubled-word typo in comment
12338         * m4/gethostname.m4: s/is is/it is/
12339         * m4/getdomainname.m4: Likewise.
12340
12341 2011-04-10  Jim Meyering  <meyering@redhat.com>
12342
12343         maint: remove doubled word: s/it it/it/
12344         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12345
12346 2011-04-10  Jim Meyering  <meyering@redhat.com>
12347
12348         maint.mk: remove useless semicolon and backslash
12349         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12350         semicolon and backslash.
12351
12352 2011-04-10  Bruno Haible  <bruno@clisp.org>
12353
12354         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12355         * modules/stdint-tests (Depends-on): Add wchar.
12356
12357 2011-04-10  Jim Meyering  <meyering@redhat.com>
12358
12359         maint: remove doubled words in comments, e.g., s/a a/a/
12360         * lib/strptime.c (day_of_the_week): s/the the/the/
12361         * tests/test-chown.h (test_chown): s/a a/a/
12362
12363         test-chown.h: correct a cast
12364         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12365         when the destination is a stat.st_gid.
12366
12367 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12368
12369         getaddrinfo: Fix test for sa_len member.
12370         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12371         include <sys/types.h> before <sys/socket.h>.
12372
12373 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12374
12375         maint: change "can not" to "cannot"
12376         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12377         boundaries.
12378
12379 2011-04-09  Jim Meyering  <meyering@redhat.com>
12380
12381         maint: change "a a" to "a"
12382         * tests/test-lchown.h (test_lchown): s/a a/a/
12383
12384         maint.mk: prohibit \<the the\>
12385         * top/maint.mk (sc_prohibit_the_the): New rule.
12386
12387         maint: fix "the the" in comment
12388         * lib/count-one-bits.h: s/the the/the/
12389
12390         maint: change "can not" to "cannot"
12391         But do not change the occurrences in maintain.texi or in
12392         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12393         * doc/gnulib-tool.texi: s/can not/cannot/
12394         * doc/posix-functions/accept.texi (accept): Likewise.
12395         * doc/posix-functions/socket.texi (socket): Likewise.
12396         * lib/mbrtowc.c: Likewise.
12397
12398         maint.mk: prohibit use of "can not"
12399         * top/maint.mk (sc_prohibit_can_not): New rule.
12400         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12401
12402 2011-04-09  Bruno Haible  <bruno@clisp.org>
12403
12404         careadlinkat: Guard against misuse of careadlinkatcwd.
12405         * lib/careadlinkat.c: Include <stdlib.h>.
12406         (careadlinkatcwd): Check that the fd argument is as expected.
12407
12408 2011-04-09  Bruno Haible  <bruno@clisp.org>
12409
12410         careadlinkat: Use common coding style.
12411         * lib/careadlinkat.c: Move gnulib includes after system includes.
12412
12413 2011-04-09  Bruno Haible  <bruno@clisp.org>
12414
12415         careadlinkat: Clarify specification.
12416         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12417         (careadlinkatcwd): Add comment.
12418         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12419
12420 2011-04-09  Bruno Haible  <bruno@clisp.org>
12421
12422         areadlinkat: Avoid link error on many platforms.
12423         * modules/areadlinkat (Depends-on): Add areadlink.
12424
12425 2011-04-09  Bruno Haible  <bruno@clisp.org>
12426
12427         allocator, careadlinkat: Fix double-inclusion guard.
12428         * lib/allocator.h: Fix double-inclusion guard.
12429         * lib/careadlinkat.h: Likewise.
12430
12431 2011-04-09  Bruno Haible  <bruno@clisp.org>
12432
12433         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12434         * lib/relocwrapper.c: Update dependencies hierarchy.
12435         * build-aux/install-reloc: Update list of files to be compiled.
12436         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12437         lib/allocator.[hc].
12438
12439 2011-04-08  Eric Blake  <eblake@redhat.com>
12440
12441         strftime: silence gnulib-tool warning
12442         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12443
12444 2011-04-08  Bruno Haible  <bruno@clisp.org>
12445
12446         verify: Fix syntax error with GCC 4.6 in C++ mode.
12447         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12448         (HAVE_STATIC_ASSERT): New macro.
12449         (verify_true, verify): Use 'static_assert' if it is supported and
12450         '_Static_assert' is not supported.
12451
12452 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12453
12454         allocator: New module.
12455         * modules/allocator, lib/allocator.c: New files.
12456         * lib/allocator.h (stdlib_allocator): New decl.
12457         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12458         Remove.  Do not include <stdlib.h>.
12459         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12460         * modules/careadlinkat (Files): Remove lib/allocator.h.
12461         (Depends-on): Add allocator.
12462
12463         stdlib: let modules use system malloc, realloc
12464         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12465         if !_GL_USE_STDLIB_ALLOC.
12466         (malloc, realloc): Limit this change to a smaller scope.
12467
12468         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12469         (malloc, realloc): Don't #undef; no longer needed.
12470         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12471         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12472         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12473         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12474         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12475         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12476         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12477         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12478
12479         careadlinkat: rename members to avoid problem
12480         * lib/allocator.h (struct allocator): Rename members from
12481         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12482         and realloc are #define'd.  Reported by Eric Blake in
12483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12484         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12485
12486 2011-04-08  Eric Blake  <eblake@redhat.com>
12487
12488         nonblocking: reduce dependency
12489         * tests/test-nonblocking.c: Only test sockets when in use.
12490         * modules/nonblocking-tests (Depends-on): Drop socket.
12491         (Makefile.am): Link even if sockets are not present.
12492         * modules/pipe2-tests (Makefile.am): Likewise.
12493         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12494
12495         pipe2: fix O_NONBLOCK support on mingw
12496         * modules/pipe2 (Depends-on): Add nonblocking.
12497         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12498         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12499         * tests/test-nonblocking.c (main): Likewise.
12500         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12501
12502         fcntl-h: fix O_ACCMODE on cygwin
12503         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12504         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12505
12506         pipe-filter: drop O_NONBLOCK workarounds
12507         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12508         * modules/pipe-filter-ii (Depends-on): Likewise.
12509         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12510
12511         nonblocking: provide O_NONBLOCK for mingw
12512         * modules/nonblocking (Depends-on): Add open.
12513         (configure.ac): Set new witness macro.
12514         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12515         * modules/fcntl-h (Makefile.am): Substitute it.
12516         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12517         nonblocking module is in use.
12518         * lib/nonblocking.c: Adjust portability test.
12519         * lib/open.c (open): Don't let native open see gnulib flag.
12520         * tests/test-fcntl-h.c (main): Enhance test.
12521         * tests/test-open.h (test_open): Likewise.
12522         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12523
12524         careadlinkat: fix compilation error on mingw
12525         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12526         within struct allocator.
12527
12528 2011-04-06  Eric Blake  <eblake@redhat.com>
12529
12530         binary-io: relicense under LGPLv2+
12531         * modules/binary-io (License): Relax to LGPLv2+.
12532         Requested for libvirt, and required by pipe2.
12533
12534 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12535
12536         verify: use _Static_assert if available
12537         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12538         (verify_true, verify): Use it if available.  This generates better
12539         diagnostics with GCC 4.6.0 and later.
12540
12541 2011-04-05  Bruno Haible  <bruno@clisp.org>
12542
12543         Remove leftover generated .h files after config.status changed.
12544
12545         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12546         GL_GENERATE_ALLOCA_H.
12547         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12548         GL_GENERATE_ALLOCA_H evaluates to false.
12549
12550         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12551         GL_GENERATE_ARGZ_H.
12552         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12553         evaluates to false.
12554
12555         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12556         GL_GENERATE_BYTESWAP_H.
12557         * modules/byteswap (Makefile.am): Remove byteswap.h if
12558         GL_GENERATE_BYTESWAP_H evaluates to false.
12559
12560         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12561         GL_GENERATE_ERRNO_H.
12562         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12563         evaluates to false.
12564
12565         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12566         GL_GENERATE_FLOAT_H.
12567         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12568         evaluates to false.
12569
12570         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12571         GL_GENERATE_FNMATCH_H.
12572         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12573         GL_GENERATE_FNMATCH_H evaluates to false.
12574
12575         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12576         GL_GENERATE_GLOB_H.
12577         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12578         evaluates to false.
12579
12580         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12581         automake conditional GL_GENERATE_ICONV_H.
12582         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12583         evaluates to false.
12584
12585         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12586         GL_GENERATE_NETINET_IN_H.
12587         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12588         GL_GENERATE_NETINET_IN_H evaluates to false.
12589
12590         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12591         conditional GL_GENERATE_PTHREAD_H.
12592         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12593         * modules/pthread (Makefile.am): Remove pthread.h if
12594         GL_GENERATE_PTHREAD_H evaluates to false.
12595
12596         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12597         GL_GENERATE_SCHED_H.
12598         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12599         evaluates to false.
12600
12601         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12602         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12603         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12604         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12605
12606         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12607         GL_GENERATE_STDARG_H.
12608         * modules/stdarg (Makefile.am): Remove stdarg.h if
12609         GL_GENERATE_STDARG_H evaluates to false.
12610
12611         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12612         GL_GENERATE_STDBOOL_H.
12613         * modules/stdbool (Makefile.am): Remove stdbool.h if
12614         GL_GENERATE_STDBOOL_H evaluates to false.
12615
12616         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12617         conditional GL_GENERATE_STDDEF_H.
12618         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12619         * modules/stddef (Makefile.am): Remove stddef.h if
12620         GL_GENERATE_STDDEF_H evaluates to false.
12621
12622         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12623         GL_GENERATE_STDINT_H.
12624         * modules/stdint (Makefile.am): Remove stdint.h if
12625         GL_GENERATE_STDINT_H evaluates to false.
12626
12627         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12628         GL_GENERATE_SYSEXITS_H.
12629         * modules/sysexits (Makefile.am): Remove sysexits.h if
12630         GL_GENERATE_SYSEXITS_H evaluates to false.
12631
12632         Reported by Karl Berry and Ralf Wildenhues.
12633
12634 2011-04-05  Bruno Haible  <bruno@clisp.org>
12635
12636         Ensure to rebuild generated .h files when config.status has changed.
12637         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12638         config.status.
12639         * modules/ctype (Makefile.am): Likewise.
12640         * modules/dirent (Makefile.am): Likewise.
12641         * modules/errno (Makefile.am): Likewise.
12642         * modules/fcntl-h (Makefile.am): Likewise.
12643         * modules/float (Makefile.am): Likewise.
12644         * modules/getopt-posix (Makefile.am): Likewise.
12645         * modules/glob (Makefile.am): Likewise.
12646         * modules/iconv-h (Makefile.am): Likewise.
12647         * modules/inttypes (Makefile.am): Likewise.
12648         * modules/langinfo (Makefile.am): Likewise.
12649         * modules/locale (Makefile.am): Likewise.
12650         * modules/math (Makefile.am): Likewise.
12651         * modules/netdb (Makefile.am): Likewise.
12652         * modules/netinet_in (Makefile.am): Likewise.
12653         * modules/poll-h (Makefile.am): Likewise.
12654         * modules/pthread (Makefile.am): Likewise.
12655         * modules/pty (Makefile.am): Likewise.
12656         * modules/sched (Makefile.am): Likewise.
12657         * modules/search (Makefile.am): Likewise.
12658         * modules/selinux-h (Makefile.am): Likewise.
12659         * modules/signal (Makefile.am): Likewise.
12660         * modules/spawn (Makefile.am): Likewise.
12661         * modules/stdarg (Makefile.am): Likewise.
12662         * modules/stdbool (Makefile.am): Likewise.
12663         * modules/stddef (Makefile.am): Likewise.
12664         * modules/stdint (Makefile.am): Likewise.
12665         * modules/stdio (Makefile.am): Likewise.
12666         * modules/stdlib (Makefile.am): Likewise.
12667         * modules/string (Makefile.am): Likewise.
12668         * modules/strings (Makefile.am): Likewise.
12669         * modules/sys_file (Makefile.am): Likewise.
12670         * modules/sys_ioctl (Makefile.am): Likewise.
12671         * modules/sys_select (Makefile.am): Likewise.
12672         * modules/sys_socket (Makefile.am): Likewise.
12673         * modules/sys_stat (Makefile.am): Likewise.
12674         * modules/sys_time (Makefile.am): Likewise.
12675         * modules/sys_times (Makefile.am): Likewise.
12676         * modules/sys_utsname (Makefile.am): Likewise.
12677         * modules/sys_wait (Makefile.am): Likewise.
12678         * modules/sysexits (Makefile.am): Likewise.
12679         * modules/termios (Makefile.am): Likewise.
12680         * modules/time (Makefile.am): Likewise.
12681         * modules/unistd (Makefile.am): Likewise.
12682         * modules/wchar (Makefile.am): Likewise.
12683         * modules/wctype-h (Makefile.am): Likewise.
12684         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12685
12686 2011-04-05  Bruno Haible  <bruno@clisp.org>
12687
12688         pipe2: Relicense under LGPLv2+.
12689         * modules/pipe2 (License): Change to LGPLv2+.
12690         Requested by Eric Blake, for libvirt.
12691
12692 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12693
12694         bootstrap: compute gnulib_extra_files after updating build_aux
12695         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12696         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12697
12698 2011-04-05  Eric Blake  <eblake@redhat.com>
12699
12700         bootstrap: preserve git whitelist item sorting
12701         * build-aux/bootstrap (sort_patterns): New function.
12702         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12703
12704 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12705
12706         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12707         sc_space_tab check.
12708
12709 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12710
12711         areadlink, areadlinkat: rewrite in terms of careadlinkat
12712         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12713         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12714         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12715         (malloc, realloc): Remove #undefs.
12716         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12717         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12718         readlink, ssize_t, stdint, unistd.
12719         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12720         areadlink, stdint.
12721
12722         careadlinkat: new module
12723         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12724         * modules/careadlinkat: New files, written by me with
12725         a review and feedback from Ben Pfaff in
12726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12727
12728 2011-04-01  Bruno Haible  <bruno@clisp.org>
12729
12730         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12731         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12732         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12733         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12734         Reported by Bruce Korb <bruce.korb@gmail.com>.
12735
12736 2011-04-01  Bruno Haible  <bruno@clisp.org>
12737
12738         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12739         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12740         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12741         * modules/wcpcpy (Depends-on): Add extensions.
12742         * modules/wcpncpy (Depends-on): Likewise.
12743         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12744         systems.
12745         * doc/posix-functions/wcpncpy.texi: Likewise.
12746         * doc/posix-functions/wcwidth.texi: Likewise.
12747
12748 2011-03-31  Eric Blake  <eblake@redhat.com>
12749
12750         nonblocking: fix mingw test failures
12751         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12752         non-blocking flag on regular file.
12753         (get_nonblocking_flag): Set errno on invalid fd.
12754         * tests/test-nonblocking.c (main): Avoid test failure on
12755         directories if fchdir is not active.
12756         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12757
12758 2011-03-31  Bruno Haible  <bruno@clisp.org>
12759
12760         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12761         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12762         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12763         Reported by Simon Josefsson <simon@josefsson.org>.
12764
12765 2011-03-31  Bruno Haible  <bruno@clisp.org>
12766         and Eric Blake  <eblake@redhat.com>
12767
12768         nonblocking: new module
12769         * modules/nonblocking: New module.
12770         * modules/nonblocking-tests: Likewise.
12771         * lib/nonblocking.h: New file.
12772         * lib/nonblocking.c: Likewise.
12773         * tests/test-nonblocking.c: New test.
12774         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12775
12776 2011-03-30  Bruno Haible  <bruno@clisp.org>
12777
12778         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12779         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12780         instead of 'printf' format for GCC >= 4.4.
12781         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12782         (fprintf, printf, vfprintf, vprintf): Declare with
12783         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12784         the system's vfprintf() function.
12785         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12786
12787 2011-03-30  Eric Blake  <eblake@redhat.com>
12788
12789         passfd: fix scoping bug
12790         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12791         before sendmsg/recvmsg.
12792
12793         passfd: standardize coding conventions
12794         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12795         can be learned at compile time.
12796         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12797         ifdefs.
12798         (sendfd, recvfd): Follow gnulib code conventions.
12799
12800         passfd: fix incorrect sendmsg arguments
12801         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12802         incorrect msg_controllen value.
12803         * modules/passfd-tests (Depends-on): Check for alarm.
12804         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12805         Reported by Bastien ROUCARIES.
12806
12807 2011-03-30  Bruno Haible  <bruno@clisp.org>
12808
12809         c-strcasestr: Relicense under LGPLv2+.
12810         * modules/c-strcasestr (License): Change to LGPLv2+.
12811         Requested by Eric Blake, for libvirt.
12812
12813 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12814
12815         * users.txt: Add libidn2.  Fix libtasn1 link.
12816
12817 2011-03-30  Jim Meyering  <meyering@redhat.com>
12818
12819         tests: readlink* ("",... fails with EINVAL on newer kernels
12820         readlink and readlinkat have typically failed with ENOENT for
12821         the invalid, empty file name,  "".  However, with the advent
12822         of linux-2.6.39, they fail with EINVAL.
12823         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12824         when operating on the empty file name.
12825         * tests/test-readlink.h (test_readlink): Likewise.
12826
12827 2011-03-29  Bruno Haible  <bruno@clisp.org>
12828
12829         Relicense some modules under LGPLv2+, for libidn2.
12830         * modules/array-mergesort (License): Change to LGPLv2+.
12831         * modules/c-strcaseeq (License): Likewise.
12832         * modules/striconveh (License): Likewise.
12833         * modules/striconveha (License): Likewise.
12834         * modules/uniconv/base (License): Likewise.
12835         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12836         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12837         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12838         * modules/unictype/base (License): Likewise.
12839         * modules/unictype/bidiclass-of (License): Likewise.
12840         * modules/unictype/category-M (License): Likewise.
12841         * modules/unictype/category-none (License): Likewise.
12842         * modules/unictype/category-of (License): Likewise.
12843         * modules/unictype/category-test (License): Likewise.
12844         * modules/unictype/category-test-withtable (License): Likewise.
12845         * modules/unictype/combining-class (License): Likewise.
12846         * modules/unictype/joiningtype-of (License): Likewise.
12847         * modules/unictype/scripts (License): Likewise.
12848         * modules/uninorm/base (License): Likewise.
12849         * modules/uninorm/canonical-decomposition (License): Likewise.
12850         * modules/uninorm/composition (License): Likewise.
12851         * modules/uninorm/decompose-internal (License): Likewise.
12852         * modules/uninorm/decomposition-table (License): Likewise.
12853         * modules/uninorm/nfc (License): Likewise.
12854         * modules/uninorm/nfd (License): Likewise.
12855         * modules/uninorm/u32-normalize (License): Likewise.
12856         * modules/unistr/base (License): Likewise.
12857         * modules/unistr/u32-cpy (License): Likewise.
12858         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12859         * modules/unistr/u32-to-u8 (License): Likewise.
12860         * modules/unistr/u32-uctomb (License): Likewise.
12861         * modules/unistr/u8-check (License): Likewise.
12862         * modules/unistr/u8-mblen (License): Likewise.
12863         * modules/unistr/u8-mbtouc (License): Likewise.
12864         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12865         * modules/unistr/u8-mbtoucr (License): Likewise.
12866         * modules/unistr/u8-prev (License): Likewise.
12867         * modules/unistr/u8-strlen (License): Likewise.
12868         * modules/unistr/u8-to-u32 (License): Likewise.
12869         * modules/unistr/u8-uctomb (License): Likewise.
12870         * modules/unitypes (License): Likewise.
12871         Requested by Simon Josefsson.
12872
12873 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12874
12875         lib-symbol-visibility: Add a notice.
12876         * modules/lib-symbol-visibility (Notice): New field.
12877
12878 2011-03-29  Bruno Haible  <bruno@clisp.org>
12879
12880         getaddrinfo: Doc fix.
12881         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12882         section "fixed in Gnulib".
12883
12884 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12885
12886         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12887         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12888
12889 2011-03-26  Bruno Haible  <bruno@clisp.org>
12890
12891         unictype/property-byname: Reduce the number of load-time relocations.
12892         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12893         (UC_PROPERTY_INDEX_*): New enumeration values.
12894         (uc_property_byname): Convert an index from the lookup table to an
12895         uc_property_t.
12896         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12897         values.
12898
12899 2011-03-26  Bruno Haible  <bruno@clisp.org>
12900
12901         unictype/property-byname: Allow omitted word separators and aliases.
12902         * lib/unictype/pr_byname.gperf: Add property names without word
12903         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12904         for 'space'.
12905
12906 2011-03-26  Bruno Haible  <bruno@clisp.org>
12907
12908         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12909         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12910         also hyphens to space.
12911         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12912         without spaces.
12913         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12914
12915 2011-03-26  Bruno Haible  <bruno@clisp.org>
12916
12917         unictype/joiningtype-byname: Recognize long names as well.
12918         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12919         a long name.
12920         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12921         unictype/joiningtype_byname.h.
12922         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12923         * lib/unictype/joiningtype_byname.gperf: New file.
12924         * modules/unictype/joiningtype-byname (Files): Add
12925         lib/unictype/joiningtype_byname.gperf.
12926         (Depends-on): Add gperf.
12927         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12928         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12929         long names.
12930
12931         Tests for module 'unictype/joiningtype-longname'.
12932         * modules/unictype/joiningtype-longname-tests: New file.
12933         * tests/unictype/test-joiningtype_longname.c: New file.
12934
12935         New module 'unictype/joiningtype-longname'.
12936         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12937         * lib/unictype/joiningtype_longname.c: New file.
12938         * modules/unictype/joiningtype-longname: New file.
12939         * modules/unictype/joiningtype-all (Depends-on): Add
12940         unictype/joiningtype-longname.
12941
12942 2011-03-26  Bruno Haible  <bruno@clisp.org>
12943
12944         unictype/bidiclass-byname: Recognize long names as well.
12945         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12946         name.
12947         * lib/unictype/bidi_byname.c: Include <string.h>,
12948         unictype/bidi_byname.h.
12949         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12950         * lib/unictype/bidi_byname.gperf: New file.
12951         * modules/unictype/bidiclass-byname (Files): Add
12952         lib/unictype/bidi_byname.gperf.
12953         (Depends-on): Add gperf.
12954         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12955         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12956         long names.
12957
12958         Tests for module 'unictype/bidiclass-longname'.
12959         * modules/unictype/bidiclass-longname-tests: New file.
12960         * tests/unictype/test-bidi_longname.c: New file.
12961
12962         New module 'unictype/bidiclass-longname'.
12963         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12964         * lib/unictype/bidi_longname.c: New file.
12965         * modules/unictype/bidiclass-longname: New file.
12966         * modules/unictype/bidiclass-all (Depends-on): Add
12967         unictype/bidiclass-longname.
12968
12969 2011-03-26  Bruno Haible  <bruno@clisp.org>
12970
12971         unictype/bidi*: Rename modules.
12972         * modules/unictype/bidiclass-all: Renamed from
12973         modules/unictype/bidicategory-all.
12974         * modules/unictype/bidiclass-name: Renamed from
12975         modules/unictype/bidiclass-name.
12976         (Description): Update.
12977         * modules/unictype/bidiclass-name-tests: Renamed from
12978         modules/unictype/bidicategory-name-tests.
12979         * modules/unictype/bidiclass-byname: Renamed from
12980         modules/unictype/bidicategory-byname.
12981         (Description): Update.
12982         * modules/unictype/bidiclass-byname-tests: Renamed from
12983         modules/unictype/bidicategory-byname-tests.
12984         * modules/unictype/bidiclass-of: Renamed from
12985         modules/unictype/bidicategory-of.
12986         (Description): Update.
12987         * modules/unictype/bidiclass-of-tests: Renamed from
12988         modules/unictype/bidicategory-of-tests.
12989         * modules/unictype/bidiclass-test: Renamed from
12990         modules/unictype/bidicategory-test.
12991         (Description): Update.
12992         * modules/unictype/bidiclass-test-tests: Renamed from
12993         modules/unictype/bidicategory-test-tests.
12994         * modules/unictype/bidicategory-all: New file, a simple redirection.
12995         * modules/unictype/bidicategory-name: Likewise.
12996         * modules/unictype/bidicategory-byname: Likewise.
12997         * modules/unictype/bidicategory-of: Likewise.
12998         * modules/unictype/bidicategory-test: Likewise.
12999         * modules/unictype/property-bidi-* (Dependencies): Update.
13000         * lib/unictype/bidi_*.c: Update comment.
13001
13002 2011-03-26  Bruno Haible  <bruno@clisp.org>
13003
13004         unictype/bidi*: Rename functions, part 2.
13005         * modules/unictype/bidicategory-name (configure.ac): Update required
13006         libunistring version.
13007         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13008
13009 2011-03-25  Bruno Haible  <bruno@clisp.org>
13010
13011         New module 'unictype/combining-class-all'.
13012         * modules/unictype/combining-class-all: New file.
13013
13014         Tests for module 'unictype/combining-class-byname'.
13015         * modules/unictype/combining-class-byname-tests: New file.
13016         * tests/unictype/test-combiningclass_byname.c: New file.
13017
13018         New module 'unictype/combining-class-byname'.
13019         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13020         * lib/unictype/combiningclass_byname.c: New file.
13021         * lib/unictype/combiningclass_byname.gperf: New file.
13022         * modules/unictype/combining-class-byname: New file.
13023
13024         Tests for module 'unictype/combining-class-longname'.
13025         * modules/unictype/combining-class-longname-tests: New file.
13026         * tests/unictype/test-combiningclass_longname.c: New file.
13027
13028         New module 'unictype/combining-class-longname'.
13029         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13030         * lib/unictype/combiningclass_longname.c: New file.
13031         * modules/unictype/combining-class-longname: New file.
13032
13033         Tests for module 'unictype/combining-class-name'.
13034         * modules/unictype/combining-class-name-tests: New file.
13035         * tests/unictype/test-combiningclass_name.c: New file.
13036
13037         New module 'unictype/combining-class-name'.
13038         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13039         * lib/unictype/combiningclass_name.c: New file.
13040         * modules/unictype/combining-class-name: New file.
13041
13042 2011-03-25  Bruno Haible  <bruno@clisp.org>
13043
13044         unictype/combining-class: Rename source files.
13045         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13046         of unictype/combining.h.
13047         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13048         Update.
13049         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13050         * modules/unictype/combining-class (Description): Fix.
13051         (Files, Makefile.am): Update.
13052         * tests/unictype/test-combiningclass.c: Renamed from
13053         tests/unictype/test-combining.c.
13054         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13055
13056 2011-03-25  Bruno Haible  <bruno@clisp.org>
13057
13058         unictype: Update list of canonical combining classes.
13059         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13060
13061 2011-03-25  Bruno Haible  <bruno@clisp.org>
13062
13063         unictype/category-byname: Recognize long names as well.
13064         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13065         a long name.
13066         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13067         unictype/categ_byname.h.
13068         (UC_CATEGORY_INDEX_*): New enumeration values.
13069         (uc_general_category_byname): Use uc_general_category_lookup and
13070         convert from index to value.
13071         * lib/unictype/categ_byname.gperf: New file.
13072         * modules/unictype/category-byname (Files): Add
13073         lib/unictype/categ_byname.gperf.
13074         (Depends-on): Add gperf.
13075         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13076         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13077         long names.
13078
13079         Tests for module 'unictype/category-longname'.
13080         * modules/unictype/category-longname-tests: New file.
13081         * tests/unictype/test-categ_longname.c: New file.
13082
13083         New module 'unictype/category-longname'.
13084         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13085         * lib/unictype/categ_longname.c: New file.
13086         * modules/unictype/category-longname: New file.
13087         * modules/unictype/category-all (Depends-on): Add it.
13088
13089 2011-03-25  Bruno Haible  <bruno@clisp.org>
13090
13091         Tests for module 'unictype/category-LC'.
13092         * modules/unictype/category-LC-tests: New file.
13093         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13094
13095         New module 'unictype/category-LC'.
13096         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13097         (UC_CATEGORY_LC): New declaration.
13098         (UC_CASED_LETTER): New macro.
13099         * lib/gen-uni-tables.c (is_category_LC): New function.
13100         (output_categories): Also handle category LC.
13101         (UC_CATEGORY_MASK_LC): New enumeration value.
13102         (general_category_byname): Also handle category LC.
13103         * lib/unictype/categ_LC.c: New file.
13104         * lib/unictype/categ_LC.h: New file, automatically generated.
13105         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13106         category LC.
13107         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13108         * modules/unictype/category-LC: New file.
13109         * modules/unictype/category-byname (Depends-on): Add
13110         unictype/category-LC.
13111         * modules/unictype/category-all (Depends-on): Likewise.
13112
13113 2011-03-25  Eric Blake  <eblake@redhat.com>
13114
13115         xmalloc: revert yesterday's regression
13116         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13117         realloc's underlying behavior (allowing allocation of zero-size
13118         objects, especially if malloc-gnu is also in use).
13119
13120 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13121
13122         maint.mk: add missing version to VC-tag
13123         * top/maint.mk: git tag was missing actual tag name; add it.
13124
13125         valgrind: do leak checking, and exit with code 1 on error (not 0)
13126         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13127         to VALGRIND.
13128
13129 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13130
13131         posix-modules: say what it does.
13132         * posix-modules: Add a line to the --help output saying what it does.
13133
13134 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13135
13136         xmalloc: Do not leak if underlying realloc is C99 compatible.
13137         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13138         This avoids a leak on C99-based systems.  See
13139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13140
13141 2011-03-24  Eric Blake  <eblake@redhat.com>
13142
13143         realloc: document portability problem
13144         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13145         passing 0 size to realloc.
13146
13147 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13148
13149         doc: update users.txt
13150         * users.txt: Add cvsps, tmpwatch
13151
13152 2011-03-23  Matt Rice  <ratmice@gmail.com>
13153
13154         doc: update users.txt
13155         * users.txt: Add gdb.
13156
13157 2011-03-23  Jim Meyering  <meyering@redhat.com>
13158
13159         doc: update users.txt
13160         Looking through matches up to the following URL (there are still
13161         several more pages), I found several projects that use gnulib:
13162         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13163         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13164         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13165
13166 2011-03-22  Bruno Haible  <bruno@clisp.org>
13167
13168         unictype/bidi*: Rename functions.
13169         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13170         uc_bidi_class, uc_is_bidi_class): New declarations.
13171         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13172         uc_bidi_category_byname.
13173         (uc_bidi_category_byname): New function.
13174         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13175         u_bidi_category_name.
13176         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13177         (uc_bidi_category_name): New function.
13178         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13179         uc_bidi_category.
13180         (uc_bidi_category): New function.
13181         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13182         uc_is_bidi_category. Invoke uc_bidi_class.
13183         (uc_is_bidi_category): New function.
13184         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13185         instead of uc_bidi_category_byname.
13186         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13187         instead of uc_bidi_category_name.
13188         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13189         uc_bidi_category.
13190         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13191         instead of uc_is_bidi_category.
13192
13193 2011-03-21  Bruno Haible  <bruno@clisp.org>
13194
13195         New module 'unictype/joininggroup-all'.
13196         * modules/unictype/joininggroup-all: New file.
13197
13198         Tests for module 'unictype/joininggroup-of'.
13199         * modules/unictype/joininggroup-of-tests: New file.
13200         * tests/unictype/test-joininggroup_of.c: New file.
13201         * tests/unictype/test-joininggroup_of.h: New file, automatically
13202         generated by gen-uni-tables.
13203
13204         New module 'unictype/joininggroup-of'.
13205         * modules/unictype/joininggroup-of: New file.
13206         * lib/unictype/joininggroup_of.c: New file.
13207         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13208         gen-uni-tables.
13209
13210         Tests for module 'unictype/joininggroup-byname'.
13211         * modules/unictype/joininggroup-byname-tests: New file.
13212         * tests/unictype/test-joininggroup_byname.c: New file.
13213
13214         New module 'unictype/joininggroup-byname'.
13215         * modules/unictype/joininggroup-byname: New file.
13216         * lib/unictype/joininggroup_byname.c: New file.
13217         * lib/unictype/joininggroup_byname.gperf: New file.
13218
13219         Tests for module 'unictype/joininggroup-name'.
13220         * modules/unictype/joininggroup-name-tests: New file.
13221         * tests/unictype/test-joininggroup_name.c: New file.
13222
13223         New module 'unictype/joininggroup-name'.
13224         * modules/unictype/joininggroup-name: New file.
13225         * lib/unictype/joininggroup_name.c: New file.
13226         * lib/unictype/joininggroup_name.h: New file.
13227
13228         New module 'unictype/joiningtype-all'.
13229         * modules/unictype/joiningtype-all: New file.
13230
13231         Tests for module 'unictype/joiningtype-of'.
13232         * modules/unictype/joiningtype-of-tests: New file.
13233         * tests/unictype/test-joiningtype_of.c: New file.
13234         * tests/unictype/test-joiningtype_of.h: New file, automatically
13235         generated by gen-uni-tables.
13236
13237         New module 'unictype/joiningtype-of'.
13238         * modules/unictype/joiningtype-of: New file.
13239         * lib/unictype/joiningtype_of.c: New file.
13240         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13241         gen-uni-tables.
13242
13243         Tests for module 'unictype/joiningtype-byname'.
13244         * modules/unictype/joiningtype-byname-tests: New file.
13245         * tests/unictype/test-joiningtype_byname.c: New file.
13246
13247         New module 'unictype/joiningtype-byname'.
13248         * modules/unictype/joiningtype-byname: New file.
13249         * lib/unictype/joiningtype_byname.c: New file.
13250
13251         Tests for module 'unictype/joiningtype-name'.
13252         * modules/unictype/joiningtype-name-tests: New file.
13253         * tests/unictype/test-joiningtype_name.c: New file.
13254
13255         New module 'unictype/joiningtype-name'.
13256         * modules/unictype/joiningtype-name: New file.
13257         * lib/unictype/joiningtype_name.c: New file.
13258
13259         unictype: Add support for Arabic shaping properties.
13260         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13261         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13262         declarations.
13263         (UC_JOINING_GROUP_*): New enumeration values.
13264         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13265         declarations.
13266         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13267         (unicode_joining_type): New variable.
13268         (UC_JOINING_GROUP_*): New enumeration values.
13269         (unicode_joining_group): New variable.
13270         (fill_arabicshaping, joining_type_as_c_identifier,
13271         output_joining_type_test, output_joining_type,
13272         joining_group_as_c_identifier, output_joining_group_test,
13273         output_joining_group): New functions.
13274         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13275         fill_arabicshaping and output_joining_type_test, output_joining_type,
13276         output_joining_group_test, output_joining_group.
13277         Reported by Simon Josefsson.
13278
13279 2011-03-21  Jim Meyering  <meyering@redhat.com>
13280
13281         strftime: fix a bug in yesterday's change
13282         * lib/strftime.c (add): Accommodate width's initial value of -1.
13283         Otherwise, nstrftime would copy uninitialized data into
13284         the result buffer.
13285
13286 2011-03-21  Jim Meyering  <meyering@redhat.com>
13287
13288         tests: add strftime-tests module
13289         * tests/test-strftime.c: New file.
13290         * modules/strftime-tests: New module.
13291
13292 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13293
13294         strftime: don't assume a byte count fits in 'int'
13295         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13296         found this problem by static analysis, using gcc -Wstrict-overflow
13297         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13298         on an integer overflow having undefined behavior, but it turns out
13299         that the argument is a size, which might not fit in 'int' anyway,
13300
13301 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13302
13303         stdio: don't require ignore_value around fwrite
13304
13305         This patch works around libc bug 11959
13306         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13307         Without this patch, applications must often write
13308         ignore_value (fwrite (...)) even though the ignore_value is
13309         not helpful here.  It's common to write many objects, using
13310         fwrite/printf/etc., and then use ferror to detect output error.
13311
13312         I considered making this patch optional, but decided against it,
13313         because libc is obviously being inconsistent here: there is no
13314         reason libc should insist that user code must inspect fwrite
13315         return's value without also insisting that it inspect printf's,
13316         putchar's, etc.  If user code wants to have a strict style where
13317         all these functions' values are checked (so that ferror need not
13318         be checked), we could add support for that style in a new gnulib
13319         module, but in the meantime it's better to be consistent and to
13320         support common usage.
13321
13322         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13323         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13324         that we are compiling in checking mode, and if not C++, and
13325         if not already wrapping fwrite for some other reason.
13326         (fwrite): #define to rpl_fwrite if the latter is defined.
13327
13328 2011-03-20  Bruno Haible  <bruno@clisp.org>
13329
13330         verror: Fix compilation error introduced on 2011-02-13.
13331         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13332         instead of __attribute__.
13333         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13334
13335 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13336             Bruno Haible  <bruno@clisp.org>
13337
13338         socklen: do not depend on sys_socket
13339         While trying to modify Emacs to use gnulib's socklen module,
13340         I discovered a circular dependency: socklen depends on sys_socket
13341         and vice versa.  Emacs can use socklen, but it does not need
13342         sys_socket because it has its own substitute for sys/socket.h.
13343         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13344         gl_TYPE_SOCKLEN_T.
13345         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13346         gl_PREREQ_SYS_H_SOCKET.
13347         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13348         gl_PREREQ_SYS_H_SOCKET.
13349         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13350         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13351         * modules/socklen (Depends-on): Do not depend on sys_socket.
13352         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13353
13354 2011-03-20  Jim Meyering  <meyering@redhat.com>
13355
13356         maint.mk: sort file names *after* new transformation
13357         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13358         prefix would have led to an unwarranted failure in GNU parted.
13359         Sort after that transformation.
13360
13361 2011-03-19  Jim Meyering  <meyering@redhat.com>
13362
13363         maint.mk: fix po-file syntax-check rule
13364         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13365         Patch by Bruno Haible.
13366
13367 2011-03-19  Bruno Haible  <bruno@clisp.org>
13368
13369         socklen: Update comment.
13370         * m4/socklen.m4: Update comment about platforms.
13371
13372 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13373             Bruno Haible  <bruno@clisp.org>
13374
13375         inet_ntop, inet_pton: Simplify.
13376         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13377         documented to provide socklen_t and we already depend on sys_socket.
13378         * modules/inet_pton (Depends-on): Likewise.
13379         * lib/arpa_inet.in.h: Adjust comment.
13380
13381 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13382             Bruno Haible  <bruno@clisp.org>
13383
13384         netdb: Simplify.
13385         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13386         documented to provide socklen_t and we already depend on sys_socket.
13387         * lib/netdb.in.h: Adjust comment.
13388
13389 2011-03-19  Bruno Haible  <bruno@clisp.org>
13390
13391         sys_socket, netdb: Document problem with socklen_t.
13392         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13393         platforms.
13394         * doc/posix-headers/netdb.texi: Likewise.
13395
13396 2011-03-18  Eric Blake  <eblake@redhat.com>
13397
13398         maint.mk: let po check work in VPATH build
13399         * top/maint.mk (po_file): Allow cfg.mk override.
13400         (sc_po_check): Allow VPATH use.
13401         Reported by Jiri Denemark.
13402
13403 2011-03-16  Jim Meyering  <meyering@redhat.com>
13404
13405         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13406         Before, you would have had to create one .x-sc_ file per rule in order
13407         to exempt offending files.  Now, you may instead use a Make variable --
13408         usually defined in cfg.mk -- whose name identifies the affected rule.
13409         * top/maint.mk (_sc_excl): Define.
13410         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13411         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13412
13413 2011-03-13  Bruno Haible  <bruno@clisp.org>
13414
13415         ignore-value tests: Avoid warnings.
13416         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13417         empty for gcc < 3.4.
13418
13419 2011-03-13  Bruno Haible  <bruno@clisp.org>
13420
13421         passfd: Fix link error on Solaris.
13422         * modules/passfd (Description): Correct.
13423         (Depends-on): Add socketlib.
13424         (Link): New section.
13425         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13426
13427 2011-03-13  Bruno Haible  <bruno@clisp.org>
13428
13429         passfd: Fix link error on AIX 5.2.
13430         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13431
13432 2011-03-13  Bruno Haible  <bruno@clisp.org>
13433
13434         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13435         * lib/sys_socket.in.h: Include <stddef.h>.
13436         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13437         CMSG_FIRSTHDR. Remove unused variable.
13438
13439 2011-03-13  Bruno Haible  <bruno@clisp.org>
13440
13441         passfd: Fix compilation error on OpenBSD.
13442         * lib/passfd.c: Include <sys/uio.h>.
13443
13444 2011-03-13  Bruno Haible  <bruno@clisp.org>
13445
13446         passfd test: Fix warnings.
13447         * tests/test-passfd.c: Include <sys/wait.h>.
13448         (main): Fix typo.
13449
13450 2011-03-13  Bruno Haible  <bruno@clisp.org>
13451
13452         passfd module, part 4, tweaks.
13453         * tests/test-passfd.c: Reorder includes.
13454         (main): Fix perror and printf calls.
13455
13456 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13457
13458         passfd module, part 4.
13459         * modules/passfd-tests: New file.
13460         * tests/test-passfd.c: New file.
13461
13462 2011-03-13  Jim Meyering  <meyering@redhat.com>
13463
13464         Makefile: rely on GNU make; derive syntax-check rule names
13465         Rather than requiring that each sc_ rule be listed as a dependent
13466         of "check", use features of GNU make to derive the list.
13467         * Makefile (syntax-check-rules): Define.
13468         (check): Depend on the new variable, not the hard-coded list.
13469
13470 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13471             Bruno Haible  <bruno@clisp.org>
13472
13473         passfd module, part 3.
13474         * lib/passfd.h (recvfd): Add a flags argument.
13475         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13476         (recvfd): Add a flags argument.
13477         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13478         exists.
13479         * modules/passfd (Depends-on): Add cloexec.
13480         Suggested by Eric Blake.
13481
13482 2011-03-13  Bruno Haible  <bruno@clisp.org>
13483
13484         passfd module, part 2, tweaks.
13485         * modules/passfd (Files): Reorder.
13486         (Depends-on): Remove errno.
13487         (Include): Remove <sys/socket.h>, <sys/un.h>.
13488         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13489         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13490         specification header. Include <sys/socket.h> always. Don't include
13491         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13492         (sendfd): Clarify that it sets errno when it fails.
13493         (recvfd): Fix specification.
13494
13495 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13496
13497         passfd module, part 2.
13498         * modules/passfd: New file.
13499         * lib/passfd.h: New file.
13500         * lib/passfd.c: New file.
13501
13502 2011-03-12  Bruno Haible  <bruno@clisp.org>
13503
13504         wcswidth, mbswidth: Avoid integer overflow.
13505         * lib/wcswidth.c: Include <limits.h>.
13506         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13507         * lib/mbswidth.c: Include <limits.h>.
13508         (mbsnwidth): Avoid 'int' overflow.
13509         Reported by Jim Meyering.
13510
13511 2011-03-12  Bruno Haible  <bruno@clisp.org>
13512
13513         futimens, utimensat: Avoid endless recursion on Solaris 10.
13514         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13515         Solaris.
13516         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13517         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13518
13519 2011-03-11  Jim Meyering  <meyering@redhat.com>
13520
13521         maint.mk: relax a regexp to accommodate other formatting styles
13522         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13523         between "ngettext" and the following "(".
13524
13525 2011-03-11  Pádraig Brady <P@draigBrady.com>
13526
13527         maint.mk: suppress a false positive warning
13528         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13529         diagnostics are marked with ngettext.
13530
13531 2011-03-10  Eric Blake  <eblake@redhat.com>
13532
13533         wchar: add explicit dependencies, for Tru64
13534         * modules/mbmemcasecoll (Depends-on): Add wchar.
13535         * modules/mbtowc (Depends-on): Likewise.
13536         * modules/vasnprintf (Depends-on): Likewise.
13537         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13538         * modules/wctomb (Depends-on): Likewise.
13539         Reported by Peter O'Gorman.
13540
13541 2011-03-08  Bruno Haible  <bruno@clisp.org>
13542
13543         passfd module, part 1, tweaks.
13544         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13545         Improve indentation. Improve AC_MSG_CHECKING messages.
13546         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13547         gl_SOCKET_FAMILIES.
13548
13549 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13550
13551         passfd module, part 1.
13552         * m4/afunix.m4: New file.
13553         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13554         sockets.
13555
13556 2011-03-08  Bruno Haible  <bruno@clisp.org>
13557
13558         regex-quote: New API.
13559         * lib/regex-quote.h: Include <stdbool.h>.
13560         (struct regex_quote_spec): New type.
13561         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13562         New declarations.
13563         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13564         'const struct regex_quote_spec *' argument.
13565         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13566         (pcre_special): New constant.
13567         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13568         New functions.
13569         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13570         'const struct regex_quote_spec *' argument.
13571         * modules/regex-quote (Depends-on): Add stdbool.
13572         * tests/test-regex-quote.c (check): Update for new API. Add test for
13573         anchored results.
13574         * NEWS: Mention the API change.
13575         Reported by Reuben Thomas and Eric Blake.
13576
13577 2011-03-06  Bruno Haible  <bruno@clisp.org>
13578
13579         regex-quote: Fix creation of POSIX extended regular expressions.
13580         * lib/regex-quote.c (ere_special): Add grouping and alternation
13581         operators.
13582
13583 2011-03-05  Bruno Haible  <bruno@clisp.org>
13584
13585         doc: Improve doc regarding autopoint vs. gnulib.
13586         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13587         disable autopoint while running autoreconf.
13588         Suggested by Ralf Wildenhues.
13589
13590 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13591
13592         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13593         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13594
13595 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13596
13597         parse-duration: remove xalloc.h dependency
13598         * lib/parse-duration.c (parse_period): handle NULL return from
13599         strdup instead of calling xstrdup().
13600         * modules/parse-duration: remove "xalloc" dependency
13601
13602 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13603
13604         bootstrap: honor m4_base when running aclocal
13605         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13606
13607 2011-03-02  Jim Meyering  <meyering@redhat.com>
13608
13609         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13610         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13611         on request from Matt Booth.
13612
13613 2011-03-01  Eric Blake  <eblake@redhat.com>
13614
13615         test-link: work on Hurd
13616         * tests/test-link.h (test_link): Hurd rejects linking directories
13617         with EISDIR instead of the POSIX-mandated EPERM.
13618
13619 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13620
13621         stdio: simplify by moving files to printf-posix, sigpipe
13622         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13623         since this symbol is needed only if printf is replaced.
13624         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13625         Require gl_ASM_SYMBOL_PREFIX.
13626         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13627         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13628         (Depends-on): Add 'raise'.
13629         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13630         * modules/stdio (Files): Remove lib/stdio-write.c,
13631         m4/asm-underscore.m4.
13632         (Depends-on): Remove 'raise'.
13633
13634         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13635         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13636         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13637         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13638
13639 2011-02-28  Bruno Haible  <bruno@clisp.org>
13640
13641         localcharset: Assume ANSI C behaviour of free().
13642         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13643         calling free().
13644         Suggested by Simon Josefsson <simon@josefsson.org>.
13645
13646 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13647             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13648             Bruno Haible  <bruno@clisp.org>  (tiny change)
13649
13650         On Cygwin, use /proc file system instead of win32 API.
13651         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13652         Win32 file names.
13653         (DllMain): Simplify by removing Cygwin specific code.
13654         (find_shared_library_fullname): Use Linux specific implementation also
13655         for Cygwin.
13656         (get_shared_library_fullname): Update accordingly.
13657         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13658         Win32 file names.
13659         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13660         Cygwin specific code.
13661
13662 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13663             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13664
13665         Fix OpenMP flag detection for various Fortran compilers.
13666         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13667         OpenMP-conditional compilation construct, to force compile
13668         failure with missing OpenMP flag.
13669         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13670
13671 2011-02-25  Eric Blake  <eblake@redhat.com>
13672
13673         strstr: expand test coverage
13674         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13675         compilation.
13676         * tests/test-memmem.c (main): Duplicate tests.
13677         * tests/test-strcasestr.c (main): Likewise.
13678         * tests/test-c-strcasestr.c (main): Likewise.
13679
13680 2011-02-25  Jim Meyering  <meyering@redhat.com>
13681
13682         maint.mk: detect missing-NL-at-EOF, too
13683         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13684         it also detects when a file lacks a newline at EOF.
13685         (require_exactly_one_NL_at_EOF_): Renamed from
13686         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13687         since people may well have .x-sc_... file names tied to the
13688         existing name.  Suggested by Eric Blake.
13689
13690 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13691
13692         dirname: move m4/dos.m4 functionality into lib/dosname.h
13693
13694         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13695         extracts symbols from it, puts them into config.h; but it's much
13696         easier to use the symbols directly.  filename.h already does this,
13697         but it disagrees with dos.m4 in some respects.  This patch
13698         introduces a different include file dosname.h that packages up
13699         dos.m4, and then later we can work on merging filename.h and
13700         dosname.h.  Applications that need only the easy-to-configure
13701         symbols should consider including dosname.h rather than dirname.h.
13702         * NEWS: Mention incompatible changes.
13703         * m4/dos.m4: Remove.
13704         * lib/dosname.h, modules/dosname: New files.
13705         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13706         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13707         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13708         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13709         Include dosname.h, not dirname.h.
13710         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13711         Include dosname.h, for definitions of symbols like ISSLASH
13712         that used to be in config.h.
13713         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13714         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13715         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13716         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13717         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13718         * modules/rmdir (Files): Likewise.
13719         * modules/stat (Files): Likewise.
13720         * modules/unlink (Files): Likewise.
13721         * modules/dirname-lgpl (Depends-on): Add dosname.
13722         * modules/lstat (Depends-on): Likewise.
13723         * modules/openat (Depends-on): Likewise.
13724         * modules/rmdir (Depends-on): Likewise.
13725         * modules/savewd (Depends-on): Likewise.
13726         * modules/stat (Depends-on): Likewise.
13727         * modules/unlink (Depends-on): Likewise.
13728         * modules/openat (Depends-on): Remove dirname-lgpl.
13729         * modules/savewd (Depends-on): Likewise.
13730         * tests/test-dirname.c: Do not use removed symbols like
13731         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13732         the remaining symbols, e.g., ISSLASH ('\\').
13733
13734 2011-02-25  Eric Blake  <eblake@redhat.com>
13735
13736         strstr: revert patches that introduced bug and pessimization
13737         * lib/str-two-way.h: Add another reference.
13738         (two_way_short_needle, two_way_long_needle): Revert changes from
13739         2011-02-24; they pessimize search speed.
13740         (critical_factorization): Partially revert changes from
13741         2010-06-22; they violate the requirement that the left half of the
13742         needle be smaller than the period of the needle.
13743
13744 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13745
13746         filenamecat: remove unnecessary dependency on dirname-lgpl
13747         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13748         is no direct dependency, just an indirect one via filenamecat-lgpl.
13749
13750         remove: remove unnecessary use of m4/dos.m4
13751         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13752         * modules/remove (FILES): Remove m4/dos.m4.
13753
13754         * lib/openat-proc.c: Don't include dirname.h; not needed.
13755
13756         backupfile: remove unnecessary use of m4/dos.m4
13757         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13758         of its symbols are used by the backupfile code.  backupfile.c does
13759         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13760         for the rare case of programs that want all their backup file
13761         names to live within 8+3 limits, and dos.m4 doesn't address that.
13762         * modules/backupfile (Files): Remove m4/dos.m4.
13763
13764 2011-02-24  Jim Meyering  <meyering@redhat.com>
13765
13766         strstr: fix a bug whereby strstr would mistakenly return NULL
13767         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13768         in period calculation.
13769         (two_way_long_needle): Likewise.
13770         The original problem was reported by Mike Stump in
13771         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13772         Ralf Wildenhues provided the short needle and haystack.
13773         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13774         Add a more involved test to trigger the bug in two_way_long_needle.
13775
13776 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13777
13778         gnulib-tool: remove use of bold display in help screen
13779         * gnulib-tool (func_usage): Do not use bold display anymore in the
13780         help screen.  That was just meant to be a temporary emphasis for a
13781         backward-incompatible change.
13782
13783 2011-02-23  Bruno Haible  <bruno@clisp.org>
13784
13785         Fix misindentation of preprocessor directives.
13786         * lib/argp-namefrob.h: Reindent preprocessor directives.
13787         * lib/getopt_int.h (struct _getopt_data): Likewise.
13788         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13789         * lib/vasnprintf.c (decode_long_double): Likewise.
13790         * tests/test-argmatch.c: Insert blank lines, for clarity.
13791         * tests/test-exclude.c: Likewise.
13792
13793 2011-02-22  Bruno Haible  <bruno@clisp.org>
13794
13795         ioctl: Fix for MacOS X in 64-bit mode.
13796         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13797         value.
13798         Suggested by Eric Blake.
13799         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13800
13801 2011-02-22  Jim Meyering  <meyering@redhat.com>
13802
13803         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13804         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13805         in lib/.
13806
13807 2011-02-22  Eric Blake  <eblake@redhat.com>
13808
13809         maint: avoid any CDPATH issue
13810         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13811
13812         maint: adjust cpp indentation for my modules, as well
13813         * Makefile (sc_cpp_indent_check): Add my name.
13814         * lib/fbufmode.c: Filter through cppi.
13815         * lib/fpurge.c: Likewise.
13816         * lib/freadable.c: Likewise.
13817         * lib/freading.c: Likewise.
13818         * lib/fwritable.c: Likewise.
13819         * lib/fwriting.c: Likewise.
13820         * lib/sigaction.c: Likewise.
13821
13822 2011-02-22  Jim Meyering  <meyering@redhat.com>
13823
13824         maint: adjust cpp indentation to reflect nesting depth
13825         I.e., in a block of code that begins with an unnested "#if",
13826         put one space between the "#" in column 1 and following token.
13827         For example,
13828         -#include <sys/vfs.h>
13829         +# include <sys/vfs.h>
13830         Do this only in .c files that are part of a module I maintain.
13831         * lib/linkat.c: Filter through cppi.
13832         * lib/nanosleep.c: Likewise.
13833         * lib/openat.c: Likewise.
13834         * lib/openat-die.c: Likewise.
13835         * lib/dup3.c: Likewise.
13836         * lib/fchownat.c: Likewise.
13837         * lib/flock.c: Likewise.
13838         * lib/fsync.c: Likewise.
13839         * lib/fts.c: Likewise.
13840         * lib/getpass.c: Likewise.
13841         * lib/gettimeofday.c: Likewise.
13842         * lib/userspec.c: Likewise.
13843         * Makefile (sc_cpp_indent_check): New rule, to check this.
13844
13845 2011-02-22  Bruno Haible  <bruno@clisp.org>
13846
13847         New module 'wctomb'.
13848         * lib/stdlib.in.h (wctomb): New declaration.
13849         * lib/wctomb.c: New file.
13850         * lib/wctomb-impl.h: New file.
13851         * m4/wctomb.m4: New file.
13852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13853         REPLACE_WCTOMB.
13854         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13855         REPLACE_WCTOMB.
13856         * modules/wctomb: New file.
13857         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13858         * doc/posix-functions/wctomb.texi: Mention the new module.
13859         * modules/wctob (Depends-on): Add wctomb.
13860
13861 2011-02-22  Bruno Haible  <bruno@clisp.org>
13862
13863         New module 'mbtowc'.
13864         * lib/stdlib.in.h (mbtowc): New declaration.
13865         * lib/mbtowc.c: New file.
13866         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13867         * m4/mbtowc.m4: New file.
13868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13869         REPLACE_MBTOWC.
13870         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13871         REPLACE_MBTOWC.
13872         * modules/mbtowc: New file.
13873         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13874         * doc/posix-functions/mbtowc.texi: Mention the new module.
13875         * modules/btowc (Depends-on): Add mbtowc.
13876
13877 2011-02-22  Bruno Haible  <bruno@clisp.org>
13878
13879         wcrtomb: Add more tests for native Windows platforms.
13880         * tests/test-wcrtomb-w32-1.sh: New file.
13881         * tests/test-wcrtomb-w32-2.sh: New file.
13882         * tests/test-wcrtomb-w32-3.sh: New file.
13883         * tests/test-wcrtomb-w32-4.sh: New file.
13884         * tests/test-wcrtomb-w32-5.sh: New file.
13885         * tests/test-wcrtomb-w32.c: New file.
13886         * modules/wcrtomb-tests (Files): Add them.
13887         (Makefile.am): Arrange to run these tests.
13888         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13889         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13890
13891 2011-02-20  Bruno Haible  <bruno@clisp.org>
13892
13893         wcrtomb: Enhance test.
13894         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13895
13896 2011-02-20  Bruno Haible  <bruno@clisp.org>
13897
13898         mbrtowc: Tiny optimization.
13899         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13900
13901 2011-02-20  Jim Meyering  <meyering@redhat.com>
13902
13903         test-exclude.c: remove unmatched #endif
13904         * tests/test-exclude.c: Remove stray #endif, left over from
13905         the change of a week ago.
13906
13907 2011-02-19  Jim Meyering  <meyering@redhat.com>
13908
13909         git-version-gen: skip "-dirty" check when appropriate
13910         * build-aux/git-version-gen: Don't run any git commands when the
13911         version string comes from .tarball-version.  Prior to this, we
13912         would run git update-index --refresh even from a just-unpacked
13913         tarball directory, and that could affect a .git/ directory in a
13914         parent of the build directory.  Reported by Mike Frysinger.
13915
13916 2011-02-19  Bruno Haible  <bruno@clisp.org>
13917
13918         unictype/property-byname: Reduce the size of the 'data' segment.
13919         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13920
13921 2011-02-19  Bruno Haible  <bruno@clisp.org>
13922
13923         unictype/scripts: Reduce the size of the 'data' segment.
13924         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13925         '%pic'.
13926         * lib/unictype/scripts_byname.gperf: Regenerated.
13927
13928 2011-02-19  Bruno Haible  <bruno@clisp.org>
13929
13930         stdint: Update documentation.
13931         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13932
13933 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13934
13935         stdint: omit redundant check for wchar.h
13936         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13937         always tests whether wchar.h exists, so remove the now-redundant test.
13938
13939 2011-02-18  Bruno Haible  <bruno@clisp.org>
13940
13941         stdint: Cut dependency to module 'wchar'.
13942         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13943         include the necessary prerequisites.
13944         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13945         * modules/stdint (Depends-on): Remove wchar.
13946         (Makefile.am): Substitute HAVE_WCHAR_H.
13947         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13948
13949 2011-02-18  Eric Blake  <eblake@redhat.com>
13950
13951         longlong: skip, rather than fail, on cross-compilation
13952         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13953         when cross-compiling; regression from 2011-02-16.
13954
13955 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13956
13957         * NEWS: Mention 2011-02-08 change to stdlib.
13958
13959 2011-02-17  Bruno Haible  <bruno@clisp.org>
13960
13961         getloadavg: Add comments about platforms.
13962         * m4/getloadavg.m4: Add comment.
13963         * lib/getloadavg.c: Likewise.
13964
13965 2011-02-17  Bruno Haible  <bruno@clisp.org>
13966
13967         getloadavg: Fix link error on Solaris 2.6.
13968         * modules/getloadavg (Link): New section.
13969         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13970         linking test-getloadavg.
13971         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13972         getloadavg.
13973
13974 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13975
13976         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13977         It was 'int', but this doesn't match the IRIX 6.5 manual.
13978         Suggested by Bruno Haible in
13979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13980
13981 2011-02-17  Bruno Haible  <bruno@clisp.org>
13982
13983         havelib: Fix comments.
13984         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13985         change.
13986
13987 2011-02-17  Bruno Haible  <bruno@clisp.org>
13988
13989         havelib: Update config.rpath.
13990         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13991
13992 2011-02-17  Bruno Haible  <bruno@clisp.org>
13993
13994         getloadavg test: Add some plausibility checks.
13995         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13996         is improbable.
13997
13998 2011-02-16  Eric Blake  <eblake@redhat.com>
13999
14000         maintainer-makefile: make syntax-check a no-op from tarballs
14001         * top/maint.mk (no-vc-detected): New rule.
14002         (local-checks-available): Use it to avoid hanging if someone tries
14003         'make syntax-check' from a tarball.  Also append to any non-syntax
14004         checks already defined in cfg.mk.
14005
14006 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14007
14008         longlong: tune, particularly for common case of c99
14009
14010         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14011         or running anything if c99, or if unsigned long long int does not
14012         work.  In either case, we know the answer without further tests.
14013         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14014         it at most once, and use its results for both long long int and
14015         unsigned long long int.  This is more likely to be efficient in
14016         the common case where the program wants to check for both long
14017         long int and unsigned long long int.
14018         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14019         since the answer is already known.
14020
14021 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14022
14023         getloadavg: set errno
14024         * lib/getloadavg.c: Set errno when returning -1.  If no other
14025         error number looks appropriate, set it to ENOSYS if the getloadavg
14026         looks like it can't possibly ever work, ENOTSUP otherwise.
14027         Suggested by Bruno Haible in
14028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14029
14030         getloadavg: trim unused parts and speed up 'configure'
14031         * NEWS: Document this.
14032         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14033         always compiled if getloadavg is absent.
14034         Move test code to ...
14035         * tests/test-getloadavg.c: New file, containing previous
14036         contents of test from lib/getloadavg.c.  It also contains
14037         suggestions by Bruno Haible in
14038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14039         * modules/getloadavg-tests: New file.
14040         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14041         Do tests in the same order as they're needed for getloadavg.c.
14042         Omit setgid-related tests that generate symbols KMEM_GROUP,
14043         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14044         Do only the tests that are needed to see whether the system has
14045         getloadavg, moving the other tests into ...
14046         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14047         NLIST_NAME_UNION; nobody should be using it.  Do not define
14048         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14049         relevant, as the user of this module shouldn't care how getloadavg
14050         is implemented.
14051
14052         getloadavg: omit unused var
14053         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14054
14055 2011-02-15  Jim Meyering  <meyering@redhat.com>
14056
14057         doc: update users.txt
14058         * users.txt: Update iwhd's URL.
14059
14060 2011-02-13  Bruno Haible  <bruno@clisp.org>
14061
14062         Consistent macro naming for macros that use GCC __attribute__.
14063         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14064         _ATTRIBUTE_NONNULL_.
14065         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14066         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14067         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14068         ATTRIBUTE_DEPRECATED.
14069         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14070         ATTRIBUTE_NORETURN.
14071         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14072         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14073         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14074         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14075         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14076         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14077         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14078         ATTRIBUTE_SENTINEL.
14079         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14080         ATTRIBUTE_RETURN_CHECK.
14081         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14082         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14083         ATTRIBUTE_NORETURN.
14084         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14085         Reported by Paul Eggert.
14086
14087 2011-02-13  Bruno Haible  <bruno@clisp.org>
14088
14089         Don't interfere with a program's definition of __attribute__.
14090         * lib/argp.h (__attribute__): Remove definition.
14091         (_GL_ATTRIBUTE_FORMAT): New macro.
14092         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14093         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14094         (_GL_ATTRIBUTE_FORMAT): New macro.
14095         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14096         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14097         GCC 3 or newer.
14098         * lib/error.h (__attribute__): Remove definition.
14099         (_GL_ATTRIBUTE_FORMAT): New macro.
14100         (error, error_at_line): Use it.
14101         * lib/hash.h (__attribute__): Remove definition.
14102         (ATTRIBUTE_WUR): Update definition. Define always.
14103         * lib/openat.h (__attribute__): Remove definition.
14104         (ATTRIBUTE_NORETURN): Update definition. Define always.
14105         * lib/sigpipe-die.h (__attribute__): Remove definition.
14106         (ATTRIBUTE_NORETURN): Update definition. Define always.
14107         * lib/vasnprintf.h (__attribute__): Remove definition.
14108         (_GL_ATTRIBUTE_FORMAT): New macro.
14109         (asnprintf, vasnprintf): Use it.
14110         * lib/xalloc.h (__attribute__): Remove definition.
14111         (ATTRIBUTE_NORETURN): Update definition. Define always.
14112         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14113         * lib/xmemdup0.h (__attribute__): Remove definition.
14114         (ATTRIBUTE_NORETURN): Update definition. Define always.
14115         * lib/xprintf.h (__attribute__): Remove definition.
14116         (_GL_ATTRIBUTE_FORMAT): New macro.
14117         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14118         * lib/xstrtol.h (__attribute__): Remove definition.
14119         (ATTRIBUTE_NORETURN): Update definition. Define always.
14120         * lib/xvasprintf.h (__attribute__): Remove definition.
14121         (_GL_ATTRIBUTE_FORMAT): New macro.
14122         (xasprintf, xvasprintf): Use it.
14123         * tests/test-argmatch.c (__attribute__): Remove definition.
14124         (ATTRIBUTE_NORETURN): Update definition. Define always.
14125         * tests/test-exclude.c (__attribute__): Remove definition.
14126         (ATTRIBUTE_NORETURN): Update definition. Define always.
14127         Reported by Paul Eggert.
14128
14129 2011-02-13  Bruno Haible  <bruno@clisp.org>
14130
14131         mbrtowc: Add more tests for native Windows platforms.
14132         * tests/test-mbrtowc-w32-1.sh: New file.
14133         * tests/test-mbrtowc-w32-2.sh: New file.
14134         * tests/test-mbrtowc-w32-3.sh: New file.
14135         * tests/test-mbrtowc-w32-4.sh: New file.
14136         * tests/test-mbrtowc-w32-5.sh: New file.
14137         * tests/test-mbrtowc-w32.c: New file.
14138         * modules/mbrtowc-tests (Files): Add them.
14139         (Makefile.am): Arrange to run these tests.
14140         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14141         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14142
14143 2011-02-13  Bruno Haible  <bruno@clisp.org>
14144
14145         mbrtowc: Work around native Windows bug.
14146         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14147         guess when no suitable locale for testing was found.
14148         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14149
14150 2011-02-13  Bruno Haible  <bruno@clisp.org>
14151
14152         mbsinit: Work around mingw bug.
14153         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14154         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14155         Windows.
14156         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14157
14158 2011-02-13  Bruno Haible  <bruno@clisp.org>
14159
14160         mbsinit: Don't crash for a NULL argument.
14161         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14162         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14163
14164 2011-02-13  Bruno Haible  <bruno@clisp.org>
14165
14166         Don't interfere with a program's definition of __attribute__.
14167         * lib/stdio.in.h (__attribute__): Remove definition.
14168         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14169         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14170         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14171         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14172         * lib/string.in.h (__attribute__): Remove definition.
14173         Reported by Paul Eggert.
14174
14175 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14176
14177         stdlib: don't get in the way of non-GCC __attribute__
14178         See thread starting at
14179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14180         Revert previous stdlib change, installing the following instead:
14181         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14182         to get in the way of a non-GCC compiler that supports __attribute__.
14183         (_GL_ATTRIBUTE_RETURN): New macro.
14184         (_Exit): Use it instead of __attribute__.
14185
14186 2011-02-12  Bruno Haible  <bruno@clisp.org>
14187
14188         quotearg test: Avoid test failure on mingw.
14189         * tests/test-quotearg.sh: Convert the locale identifier from native
14190         Windows syntax to Unix syntax.
14191
14192 2011-02-12  Bruno Haible  <bruno@clisp.org>
14193
14194         setlocale: Prefer gnulib's override over libintl's override.
14195         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14196         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14197         GNULIB_defined_setlocale is set.
14198
14199 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14200
14201         stdlib: support non-GCC __attribute__
14202
14203         Fix a serious and tricky problem encountered when attempting to
14204         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14205         5.5, but it crashed due to memory corruption on Solaris 10 with
14206         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14207         bits that are otherwise zero.  This tagging is optional inside
14208         Emacs but is preferred and is used when __attribute__ ((__aligned
14209         (8))) works, as it does with both recent-enough GCC and with Sun C
14210         5.11.  However, Sun C 5.11 is not GCC and does not #define
14211         __GNUC__ and __GNUC_MINOR__.
14212
14213         When I added the getloadavg module to Emacs, it brought in
14214         stdlib.in.h, which contained this fragment:
14215
14216            #ifndef __attribute__
14217            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14218            #  define __attribute__(Spec)   /* empty */
14219            # endif
14220            #endif
14221
14222         When files that include <stdlib.h> were compiled with Sun C 5.11,
14223         the above code disabled __attribute__ ((__aligned (8))), which
14224         caused variables to not be properly aligned, which eventually led
14225         to the pointer corruption mentioned above.  (This was a bit hard
14226         to diagnose, unfortunately.)
14227
14228         Several "#define __attribute__(X) /* empty */" code snippets need
14229         to be eradicated from Gnulib to work with non-GCC compilers that
14230         support __attribute__.  The Autoconf way to do this is to test for
14231         each kind of attribute that we want support for, and selectively
14232         enable that in source code.
14233
14234         Fix this problem just for stdlib.h, by adding a test for the
14235         __noreturn__ attribute, and change stdlib.in.h to use that test
14236         when needed.  This technique can be easily generalized to the
14237         other *.in.h files and attributes, and a similar technique can be
14238         used for *.h and *.c files.  This patch is enough to solve the
14239         problem for Emacs + getloadavg, and I thought I'd publish it for
14240         feedback before undertaking further, similar fixes in other
14241         modules.
14242
14243         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14244         because it's not needed for stdlib.h.  It merely substitutes the
14245         value directly into stdlib.h.  We may well need to #define it, or
14246         similar symbols, for other modules, but it's nice to also have an
14247         option to not #define it for applications like Emacs that do not
14248         need it.
14249
14250         * lib/stdlib.in.h (__attribute__): Do not #define.
14251         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14252         be defined only if the _Exit module is also used.
14253         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14255         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14256         platforms.
14257         * modules/_Exit (Files): Add m4/attribute.m4.
14258         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14259         * m4/attribute.m4: New file.
14260
14261 2011-02-12  Bruno Haible  <bruno@clisp.org>
14262
14263         wcsrtombs: Work around bug on native Windows.
14264         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14265         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14266         instead of len.
14267         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14268
14269 2011-02-12  Bruno Haible  <bruno@clisp.org>
14270
14271         mbsrtowcs: Work around bug on native Windows.
14272         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14273         against mingw bug.
14274         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14275
14276 2011-02-12  Bruno Haible  <bruno@clisp.org>
14277
14278         Avoid setlocale bugs in tests.
14279         * modules/btowc (Dependencies): Add setlocale.
14280         * modules/c-strcase (Dependencies): Likewise.
14281         * modules/mbmemcasecmp (Dependencies): Likewise.
14282         * modules/mbmemcasecoll (Dependencies): Likewise.
14283         * modules/mbrtowc (Dependencies): Likewise.
14284         * modules/mbscasecmp (Dependencies): Likewise.
14285         * modules/mbscasestr (Dependencies): Likewise.
14286         * modules/mbschr (Dependencies): Likewise.
14287         * modules/mbscspn (Dependencies): Likewise.
14288         * modules/mbsinit (Dependencies): Likewise.
14289         * modules/mbsncasecmp (Dependencies): Likewise.
14290         * modules/mbsnrtowcs (Dependencies): Likewise.
14291         * modules/mbspbrk (Dependencies): Likewise.
14292         * modules/mbspcasecmp (Dependencies): Likewise.
14293         * modules/mbsrchr (Dependencies): Likewise.
14294         * modules/mbsrtowcs (Dependencies): Likewise.
14295         * modules/mbsspn (Dependencies): Likewise.
14296         * modules/mbsstr (Dependencies): Likewise.
14297         * modules/nl_langinfo (Dependencies): Likewise.
14298         * modules/quotearg (Dependencies): Likewise.
14299         * modules/unicase/locale-language (Dependencies): Likewise.
14300         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14301         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14302         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14303         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14304         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14305         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14306         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14307         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14308         * modules/vasnprintf-posix (Dependencies): Likewise.
14309         * modules/wcrtomb (Dependencies): Likewise.
14310         * modules/wcsnrtombs (Dependencies): Likewise.
14311         * modules/wcsrtombs (Dependencies): Likewise.
14312
14313 2011-02-12  Bruno Haible  <bruno@clisp.org>
14314
14315         setlocale: Workaround native Windows bug.
14316         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14317         succeeds but sets LC_CTYPE to "C", report a failure.
14318         * tests/test-setlocale2.sh: New file.
14319         * tests/test-setlocale2.c: New file.
14320         * modules/setlocale-tests (Files): Add the new files.
14321         (Makefile.am): Enable test-setlocale2.sh test.
14322         * doc/posix-functions/setlocale.texi: Mention workaround.
14323
14324 2011-02-11  Bruno Haible  <bruno@clisp.org>
14325
14326         Tests for module 'setlocale'.
14327         * modules/setlocale-tests: New file.
14328         * tests/test-setlocale1.sh: New file.
14329         * tests/test-setlocale1.c: New file.
14330
14331         New module 'setlocale'.
14332         * lib/locale.in.h (setlocale): New declaration.
14333         * lib/setlocale.c: New file, based on
14334         gettext/gettext-runtime/intl/setlocale.c.
14335         * m4/setlocale.m4: New file.
14336         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14337         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14338         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14339         REPLACE_SETLOCALE.
14340         * modules/setlocale: New file.
14341         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14342         * doc/posix-functions/setlocale.texi: Mention the new module.
14343
14344 2011-02-11  Bruno Haible  <bruno@clisp.org>
14345
14346         Prepare for locale dependent tests on mingw.
14347         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14348         because it has the wrong locale encoding.
14349         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14350         French_France.1252 instead of "fr".
14351         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14352         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14353         because it has the wrong locale encoding.
14354         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14355         native Windows, try Turkish_Turkey.65001.
14356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14357         Chinese_China.54936.
14358
14359         Prepare for locale dependent tests on mingw.
14360         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14361         differently.
14362         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14363         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14364         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14365         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14366
14367 2011-02-11  Eric Blake  <eblake@redhat.com>
14368
14369         strptime: avoid compiler warnings
14370         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14371         compiler warnings about dead code.
14372         Reported by Daniel P. Berrange.
14373
14374 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14375
14376         doc: update users.txt
14377         * users.txt: Add rcs.
14378
14379 2011-02-10  John W. Eaton  <jwe@gnu.org>
14380
14381         doc: update users.txt
14382         * users.txt: Add octave.
14383
14384 2011-02-10  Jim Meyering  <meyering@redhat.com>
14385
14386         doc: update users.txt
14387         * users.txt: Add iwhd.
14388
14389 2011-02-09  Bruno Haible  <bruno@clisp.org>
14390
14391         gnulib-tool: Make copyright notice adjustment more robust.
14392         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14393         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14394         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14395         License".
14396         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14397
14398 2011-02-06  Bruno Haible  <bruno@clisp.org>
14399
14400         New module 'towctrans'.
14401         * modules/towctrans: New file.
14402         * lib/wctype.in.h (towctrans): New declaration.
14403         * lib/towctrans.c: New file.
14404         * lib/towctrans-impl.h: New file.
14405         * m4/towctrans.m4: New file.
14406         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14407         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14408         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14409         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14410         * doc/posix-functions/towctrans.texi: Mention the new module.
14411
14412 2011-02-06  Bruno Haible  <bruno@clisp.org>
14413
14414         New module 'wctrans'.
14415         * modules/wctrans: New file.
14416         * lib/wctype.in.h (wctrans): New declaration.
14417         * lib/wctrans.c: New file.
14418         * lib/wctrans-impl.h: New file.
14419         * m4/wctrans.m4: New file.
14420         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14421         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14422         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14423         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14424         * doc/posix-functions/wctrans.texi: Mention the new module.
14425
14426 2011-02-06  Bruno Haible  <bruno@clisp.org>
14427
14428         New module 'iswctype'.
14429         * modules/iswctype: New file.
14430         * lib/wctype.in.h (iswctype): New declaration.
14431         * lib/iswctype.c: New file.
14432         * lib/iswctype-impl.h: New file.
14433         * m4/iswctype.m4: New file.
14434         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14435         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14436         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14437         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14438         * doc/posix-functions/iswctype.texi: Mention the new module and the
14439         HP-UX 11.00 problem.
14440
14441 2011-02-06  Bruno Haible  <bruno@clisp.org>
14442
14443         New module 'wctype'.
14444         * modules/wctype: Change to represent the wctype() substitute.
14445         * lib/wctype.in.h (wctype): New declaration.
14446         * lib/wctype.c: New file.
14447         * lib/wctype-impl.h: New file.
14448         * m4/wctype.m4: New file.
14449         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14450         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14451         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14452         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14453         * doc/posix-functions/wctype.texi: Mention the new module and the
14454         HP-UX 11.00 problem.
14455
14456 2011-02-06  Bruno Haible  <bruno@clisp.org>
14457
14458         wctype-h: Ensure wctype_t and wctrans_t are defined.
14459         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14460         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14461         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14462         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14463         HAVE_WCTRANS_T.
14464         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14465
14466 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14467
14468         flock: fix license typo
14469
14470         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14471         omitted.
14472
14473 2011-02-08  Bruno Haible  <bruno@clisp.org>
14474
14475         Split large sed scripts, for HP-UX sed.
14476         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14477         to avoid HP-UX limit of 99 commands, in the near future.
14478         * modules/stdlib (Makefile.am): Likewise.
14479         * modules/unistd (Makefile.am): Likewise.
14480         * modules/wchar (Makefile.am): Likewise.
14481         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14482         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14483         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14484
14485 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14486             Bruno Haible  <bruno@clisp.org>
14487
14488         stdlib: improve random_r modularization
14489         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14490         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14491         you also need the random_r module to get this material right.
14492         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14493         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14494         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14495
14496 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14497
14498         stdlib: don't depend on stdint
14499         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14500         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14501         be independent of whether stdint.h is needed.
14502         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14503         here, instead of ...
14504         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14505         struct random_data should be using the random_r module, not just
14506         the stdlib module (which wouldn't make sense: what package needs
14507         just struct random_data without also needing random_r?).
14508         * modules/stdlib (Depends-on): Remove stdint.
14509
14510         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14511         See the thread rooted at
14512         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14513         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14514         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14515         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14516         __VMS)); previously it was always included (via fcntl--.h).
14517         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14518         hand; this is good enough for load averages.  Also, do not use
14519         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14520         flags directly if available and don't bother otherwise.  (Packages
14521         that need the extra reliability should use the modules that define
14522         these flags on older platforms that lack them.)
14523         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14524         fcntl-safer.
14525
14526 2011-02-08  Jim Meyering  <meyering@redhat.com>
14527
14528         di-set.h, ino-map.h: add multiple-inclusion guard
14529         Technically, the guard is required only for ino-map.h, due to its
14530         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14531         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14532         * lib/ino-map.h: Likewise.
14533
14534 2011-02-06  Bruno Haible  <bruno@clisp.org>
14535
14536         iswblank: Ensure declaration on glibc systems.
14537         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14538         * modules/iswblank (Dependencies): Add 'extensions'.
14539         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14540
14541 2011-02-06  Bruno Haible  <bruno@clisp.org>
14542
14543         New module 'iswblank'.
14544         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14545         * modules/iswblank: New file.
14546         * modules/wctype-h (Files): Remove lib/iswblank.c.
14547         (Makefile.am): Substitute GNULIB_ISWBLANK.
14548         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14549         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14550         (gl_WCTYPE_H_DEFAULTS): New macro.
14551         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14552         * modules/iswblank-tests: New file.
14553         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14554         * tests/test-wctype-h.c (main): Remove iswblank tests.
14555         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14556         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14557         of 'wctype-h'.
14558         * NEWS: Mention the change.
14559         * modules/mbchar (Depends-on): Add iswblank.
14560
14561 2011-02-08  Bruno Haible  <bruno@clisp.org>
14562
14563         di-set tests: Refactor.
14564         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14565         unnecessary includes.
14566         (ASSERT): Remove macro.
14567         (main): Make C90 compliant by avoiding variable declaration after
14568         statement.
14569         * modules/di-set-tests (Files): Add tests/macros.h.
14570
14571 2011-02-08  Bruno Haible  <bruno@clisp.org>
14572
14573         ino-map tests: Refactor.
14574         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14575         unnecessary includes.
14576         (ASSERT): Remove macro.
14577         (main): Make C90 compliant by avoiding variable declaration after
14578         statement.
14579         * modules/ino-map-tests (Files): Add tests/macros.h.
14580
14581 2011-02-08  Jim Meyering  <meyering@redhat.com>
14582
14583         di-set: add "const" to a cast
14584         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14585         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14586
14587 2011-02-06  Bruno Haible  <bruno@clisp.org>
14588
14589         Rename module 'wctype' to 'wctype-h'.
14590         * modules/wctype-h: Renamed from modules/wctype.
14591         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14592         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14593         (Files, Depends-on, Makefile.am): Update.
14594         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14595         (Files, Makefile.am): Update.
14596         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14597         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14598         * doc/posix-headers/wctype.texi: Update.
14599         * doc/posix-functions/iswalnum.texi: Update.
14600         * doc/posix-functions/iswalpha.texi: Update.
14601         * doc/posix-functions/iswblank.texi: Update.
14602         * doc/posix-functions/iswcntrl.texi: Update.
14603         * doc/posix-functions/iswdigit.texi: Update.
14604         * doc/posix-functions/iswgraph.texi: Update.
14605         * doc/posix-functions/iswlower.texi: Update.
14606         * doc/posix-functions/iswprint.texi: Update.
14607         * doc/posix-functions/iswpunct.texi: Update.
14608         * doc/posix-functions/iswspace.texi: Update.
14609         * doc/posix-functions/iswupper.texi: Update.
14610         * doc/posix-functions/iswxdigit.texi: Update.
14611         * doc/posix-functions/towlower.texi: Update.
14612         * doc/posix-functions/towupper.texi: Update.
14613         * NEWS: Mention the change.
14614         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14615         * modules/mbchar (Dependencies): Likewise.
14616         * modules/mbswidth (Dependencies): Likewise.
14617         * modules/quotearg (Dependencies): Likewise.
14618         * modules/regex (Dependencies): Likewise.
14619         * modules/wcscasecmp (Dependencies): Likewise.
14620         * modules/wcsncasecmp (Dependencies): Likewise.
14621         * modules/wcwidth (Dependencies): Likewise.
14622
14623 2011-02-06  Bruno Haible  <bruno@clisp.org>
14624
14625         New module 'wcswidth'.
14626         * modules/wcswidth: New file.
14627         * lib/wchar.in.h (wcswidth): New declaration.
14628         * lib/wcswidth.c: New file.
14629         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14630         * m4/wcswidth.m4: New file.
14631         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14632         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14633         REPLACE_WCSWIDTH.
14634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14635         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14636         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14637         * doc/posix-functions/wcswidth.texi: Mention the new module.
14638
14639 2011-02-06  Bruno Haible  <bruno@clisp.org>
14640
14641         New module 'wcstok'.
14642         * modules/wcstok: New file.
14643         * lib/wchar.in.h (wcstok): New declaration.
14644         * lib/wcstok.c: New file.
14645         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14646         * m4/wcstok.m4: New file.
14647         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14648         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14649         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14650         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14651         * doc/posix-functions/wcstok.texi: Mention the new module.
14652
14653 2011-02-06  Bruno Haible  <bruno@clisp.org>
14654
14655         New module 'wcsstr'.
14656         * modules/wcsstr: New file.
14657         * lib/wchar.in.h (wcsstr): New declaration.
14658         * lib/wcsstr.c: New file.
14659         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14660         * m4/wcsstr.m4: New file.
14661         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14662         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14663         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14664         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14665         * doc/posix-functions/wcsstr.texi: Mention the new module.
14666
14667 2011-02-06  Bruno Haible  <bruno@clisp.org>
14668
14669         New module 'wcspbrk'.
14670         * modules/wcspbrk: New file.
14671         * lib/wchar.in.h (wcspbrk): New declaration.
14672         * lib/wcspbrk.c: New file.
14673         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14674         * m4/wcspbrk.m4: New file.
14675         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14676         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14677         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14678         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14679         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14680
14681 2011-02-06  Bruno Haible  <bruno@clisp.org>
14682
14683         New module 'wcsspn'.
14684         * modules/wcsspn: New file.
14685         * lib/wchar.in.h (wcsspn): New declaration.
14686         * lib/wcsspn.c: New file.
14687         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14688         * m4/wcsspn.m4: New file.
14689         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14690         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14691         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14692         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14693         * doc/posix-functions/wcsspn.texi: Mention the new module.
14694
14695 2011-02-06  Bruno Haible  <bruno@clisp.org>
14696
14697         New module 'wcscspn'.
14698         * modules/wcscspn: New file.
14699         * lib/wchar.in.h (wcscspn): New declaration.
14700         * lib/wcscspn.c: New file.
14701         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14702         * m4/wcscspn.m4: New file.
14703         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14704         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14705         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14706         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14707         * doc/posix-functions/wcscspn.texi: Mention the new module.
14708
14709 2011-02-06  Bruno Haible  <bruno@clisp.org>
14710
14711         New module 'wcsrchr'.
14712         * modules/wcsrchr: New file.
14713         * lib/wchar.in.h (wcsrchr): New declaration.
14714         * lib/wcsrchr.c: New file.
14715         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14716         * m4/wcsrchr.m4: New file.
14717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14719         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14720         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14721         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14722
14723 2011-02-06  Bruno Haible  <bruno@clisp.org>
14724
14725         New module 'wcschr'.
14726         * modules/wcschr: New file.
14727         * lib/wchar.in.h (wcschr): New declaration.
14728         * lib/wcschr.c: New file.
14729         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14730         * m4/wcschr.m4: New file.
14731         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14732         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14733         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14734         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14735         * doc/posix-functions/wcschr.texi: Mention the new module.
14736
14737 2011-02-06  Bruno Haible  <bruno@clisp.org>
14738
14739         New module 'wcsdup'.
14740         * modules/wcsdup: New file.
14741         * lib/wchar.in.h (wcsdup): New declaration.
14742         * lib/wcsdup.c: New file.
14743         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14744         * m4/wcsdup.m4: New file.
14745         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14746         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14747         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14748         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14749         * doc/posix-functions/wcsdup.texi: Mention the new module.
14750
14751 2011-02-06  Bruno Haible  <bruno@clisp.org>
14752
14753         New module 'wcsxfrm'.
14754         * modules/wcsxfrm: New file.
14755         * lib/wchar.in.h (wcsxfrm): New declaration.
14756         * lib/wcsxfrm.c: New file.
14757         * lib/wcsxfrm-impl.h: New file.
14758         * m4/wcsxfrm.m4: New file.
14759         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14760         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14761         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14762         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14763         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14764
14765 2011-02-06  Bruno Haible  <bruno@clisp.org>
14766
14767         New module 'wcscoll'.
14768         * modules/wcscoll: New file.
14769         * lib/wchar.in.h (wcscoll): New declaration.
14770         * lib/wcscoll.c: New file.
14771         * lib/wcscoll-impl.h: New file.
14772         * m4/wcscoll.m4: New file.
14773         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14774         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14775         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14776         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14777         * doc/posix-functions/wcscoll.texi: Mention the new module.
14778
14779 2011-02-06  Bruno Haible  <bruno@clisp.org>
14780
14781         New module 'wcsncasecmp'.
14782         * modules/wcsncasecmp: New file.
14783         * lib/wchar.in.h (wcsncasecmp): New declaration.
14784         * lib/wcsncasecmp.c: New file.
14785         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14786         * m4/wcsncasecmp.m4: New file.
14787         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14788         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14789         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14790         HAVE_WCSNCASECMP.
14791         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14792         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14793
14794 2011-02-06  Bruno Haible  <bruno@clisp.org>
14795
14796         New module 'wcscasecmp'.
14797         * modules/wcscasecmp: New file.
14798         * lib/wchar.in.h (wcscasecmp): New declaration.
14799         * lib/wcscasecmp.c: New file.
14800         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14801         * m4/wcscasecmp.m4: New file.
14802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14805         HAVE_WCSCASECMP.
14806         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14807         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14808
14809 2011-02-05  Bruno Haible  <bruno@clisp.org>
14810
14811         New module 'wcsncmp'.
14812         * modules/wcsncmp: New file.
14813         * lib/wchar.in.h (wcsncmp): New declaration.
14814         * lib/wcsncmp.c: New file.
14815         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14816         * m4/wcsncmp.m4: New file.
14817         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14818         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14819         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14820         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14821         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14822
14823 2011-02-05  Bruno Haible  <bruno@clisp.org>
14824
14825         New module 'wcscmp'.
14826         * modules/wcscmp: New file.
14827         * lib/wchar.in.h (wcscmp): New declaration.
14828         * lib/wcscmp.c: New file.
14829         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14830         * m4/wcscmp.m4: New file.
14831         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14832         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14833         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14834         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14835         * doc/posix-functions/wcscmp.texi: Mention the new module.
14836
14837 2011-02-05  Bruno Haible  <bruno@clisp.org>
14838
14839         New module 'wcsncat'.
14840         * modules/wcsncat: New file.
14841         * lib/wchar.in.h (wcsncat): New declaration.
14842         * lib/wcsncat.c: New file.
14843         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14844         * m4/wcsncat.m4: New file.
14845         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14846         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14847         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14848         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14849         * doc/posix-functions/wcsncat.texi: Mention the new module.
14850
14851 2011-02-05  Bruno Haible  <bruno@clisp.org>
14852
14853         New module 'wcscat'.
14854         * modules/wcscat: New file.
14855         * lib/wchar.in.h (wcscat): New declaration.
14856         * lib/wcscat.c: New file.
14857         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14858         * m4/wcscat.m4: New file.
14859         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14860         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14861         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14862         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14863         * doc/posix-functions/wcscat.texi: Mention the new module.
14864
14865 2011-02-05  Bruno Haible  <bruno@clisp.org>
14866
14867         New module 'wcpncpy'.
14868         * modules/wcpncpy: New file.
14869         * lib/wchar.in.h (wcpncpy): New declaration.
14870         * lib/wcpncpy.c: New file.
14871         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14872         * m4/wcpncpy.m4: New file.
14873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14875         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14876         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14877         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14878
14879 2011-02-05  Bruno Haible  <bruno@clisp.org>
14880
14881         New module 'wcsncpy'.
14882         * modules/wcsncpy: New file.
14883         * lib/wchar.in.h (wcsncpy): New declaration.
14884         * lib/wcsncpy.c: New file.
14885         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14886         * m4/wcsncpy.m4: New file.
14887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14890         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14891         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14892
14893 2011-02-05  Bruno Haible  <bruno@clisp.org>
14894
14895         New module 'wcpcpy'.
14896         * modules/wcpcpy: New file.
14897         * lib/wchar.in.h (wcpcpy): New declaration.
14898         * lib/wcpcpy.c: New file.
14899         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14900         * m4/wcpcpy.m4: New file.
14901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14903         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14904         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14905         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14906
14907 2011-02-05  Bruno Haible  <bruno@clisp.org>
14908
14909         New module 'wcscpy'.
14910         * modules/wcscpy: New file.
14911         * lib/wchar.in.h (wcscpy): New declaration.
14912         * lib/wcscpy.c: New file.
14913         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14914         * m4/wcscpy.m4: New file.
14915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14918         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14919         * doc/posix-functions/wcscpy.texi: Mention the new module.
14920
14921 2011-02-05  Bruno Haible  <bruno@clisp.org>
14922
14923         New module 'wcsnlen'.
14924         * modules/wcsnlen: New file.
14925         * lib/wchar.in.h (wcsnlen): New declaration.
14926         * lib/wcsnlen.c: New file.
14927         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14928         * m4/wcsnlen.m4: New file.
14929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14932         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14933         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14934
14935 2011-02-05  Bruno Haible  <bruno@clisp.org>
14936
14937         New module 'wcslen'.
14938         * modules/wcslen: New file.
14939         * lib/wchar.in.h (wcslen): New declaration.
14940         * lib/wcslen.c: New file.
14941         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14942         * m4/wcslen.m4: New file.
14943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14945         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14946         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14947         * doc/posix-functions/wcslen.texi: Mention the new module.
14948
14949 2011-02-05  Bruno Haible  <bruno@clisp.org>
14950
14951         New module 'wmemset'.
14952         * modules/wmemset: New file.
14953         * lib/wchar.in.h (wmemset): New declaration.
14954         * lib/wmemset.c: New file.
14955         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14956         * m4/wmemset.m4: New file.
14957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14959         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14960         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14961         * doc/posix-functions/wmemset.texi: Mention the new module.
14962
14963 2011-02-05  Bruno Haible  <bruno@clisp.org>
14964
14965         New module 'wmemmove'.
14966         * modules/wmemmove: New file.
14967         * lib/wchar.in.h (wmemmove): New declaration.
14968         * lib/wmemmove.c: New file.
14969         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14970         * m4/wmemmove.m4: New file.
14971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14973         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14974         HAVE_WMEMMOVE.
14975         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14976         * doc/posix-functions/wmemmove.texi: Mention the new module.
14977
14978 2011-02-05  Bruno Haible  <bruno@clisp.org>
14979
14980         New module 'wmemcpy'.
14981         * modules/wmemcpy: New file.
14982         * lib/wchar.in.h (wmemcpy): New declaration.
14983         * lib/wmemcpy.c: New file.
14984         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14985         * m4/wmemcpy.m4: New file.
14986         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14987         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14988         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14989         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14990         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14991
14992 2011-02-05  Bruno Haible  <bruno@clisp.org>
14993
14994         New module 'wmemcmp'.
14995         * modules/wmemcmp: New file.
14996         * lib/wchar.in.h (wmemcmp): New declaration.
14997         * lib/wmemcmp.c: New file.
14998         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14999         * m4/wmemcmp.m4: New file.
15000         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15001         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15002         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15003         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15004         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15005
15006 2011-02-07  Jim Meyering  <meyering@redhat.com>
15007
15008         di-set, ino-map: new modules, from coreutils
15009         * lib/di-set.c: New file.
15010         * lib/di-set.h: Likewise.
15011         * lib/ino-map.c: Likewise.
15012         * lib/ino-map.h: Likewise.
15013         * modules/di-set: Likewise.
15014         * modules/di-set-tests: Likewise.
15015         * modules/ino-map: Likewise.
15016         * modules/ino-map-tests: Likewise.
15017         * tests/test-di-set.c: Likewise.
15018         * tests/test-ino-map.c: Likewise.
15019
15020 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15021
15022         getloadavg: merge minor changes from Emacs
15023
15024         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15025         (getloadavg): Use memset, not bzero.
15026
15027         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15028         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15029         clash (bug#86).
15030
15031 2010-11-14  Bruno Haible  <bruno@clisp.org>
15032
15033         Allow multiple gnulib generated replacements to coexist.
15034         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15035         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15036         * lib/langinfo.in.h (nl_item): Likewise.
15037         * lib/math.in.h (_NaN, NAN): Likewise.
15038         * lib/netdb.in.h (struct addrinfo): Likewise.
15039         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15040         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15041         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15042         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15043         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15044         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15045         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15046         pthread_mutexattr_init, pthread_mutexattr_settype,
15047         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15048         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15049         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15050         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15051         * lib/sched.in.h (struct sched_param): Likewise.
15052         * lib/se-selinux.in.h (security_class_t, security_context_t,
15053         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15054         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15055         lsetfilecon, fsetfilecon, security_check_context,
15056         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15057         Likewise.
15058         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15059         Likewise.
15060         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15061         _gl_function_taking_int_returning_void_t, union sigval,
15062         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15063         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15064         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15065         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15066         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15067         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15068         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15069         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15070         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15071         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15072         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15073         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15074         socklen_t, rpl_fd_isset): Likewise.
15075         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15076         * lib/sys_time.in.h (struct timeval): Likewise.
15077         * lib/sys_times.in.h (struct tms): Likewise.
15078         * lib/sys_utsname.in.h (struct utsname):
15079         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15080         * lib/unistd.in.h (getpagesize): Likewise.
15081         * lib/wchar.in.h (mbstate_t): Likewise.
15082         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15083         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15084         towlower, towupper): Likewise.
15085         Reported by Sam Steingold <sds@gnu.org>.
15086
15087 2011-02-05  Eric Blake  <eblake@redhat.com>
15088
15089         unsetenv: work around Haiku issues
15090         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15091         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15092
15093 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15094
15095         libposix: avoid calling error() within libposix
15096         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15097         is defined.
15098
15099 2011-02-05  Eric Blake  <eblake@redhat.com>
15100
15101         strerror_r-posix: port to cygwin
15102         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15103         implementation.
15104         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15105         * tests/test-strerror_r.c (main): Fix test.
15106         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15107         issue.
15108
15109 2011-02-05  Bruno Haible  <bruno@clisp.org>
15110
15111         New module 'wmemchr'.
15112         * modules/wmemchr: New file.
15113         * lib/wchar.in.h (wmemchr): New declaration.
15114         * lib/wmemchr.c: New file.
15115         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15116         * m4/wmemchr.m4: New file.
15117         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15118         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15119         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15120         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15121         * doc/posix-functions/wmemchr.texi: Mention the new module.
15122
15123 2011-02-04  Eric Blake  <eblake@redhat.com>
15124
15125         fdopendir: detect FreeBSD bug
15126         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15127         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15128
15129 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15130
15131         stdbool: do not define HAVE_STDBOOL_H
15132         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15133         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15134         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15135         imported from the latest Autoconf git.  It was motivated by Emacs,
15136         which uses gnulib but does not need HAVE_STDBOOL_H.
15137
15138 2011-02-04  Bruno Haible  <bruno@clisp.org>
15139
15140         wcsnrtombs: Prepare for new module wwcsnrtombs.
15141         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15142         * lib/wcsnrtombs.c: Include it.
15143         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15144
15145         wcsrtombs: Prepare for new module wwcsrtombs.
15146         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15147         * lib/wcsrtombs.c: Include it.
15148         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15149
15150         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15151         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15152         * lib/mbsnrtowcs.c: Include it.
15153         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15154
15155         mbsrtowcs: Prepare for new module mbsrtowwcs.
15156         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15157         * lib/mbsrtowcs.c: Include it.
15158         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15159
15160 2011-02-04  Bruno Haible  <bruno@clisp.org>
15161
15162         vasnprintf: Reduce use of malloc for small format strings.
15163         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15164         (arguments): Add room for the first 7 arguments.
15165         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15166         (char_directives, u8_directives, u16_directives, u32_directives): Add
15167         room for the first 7 directives.
15168         * lib/printf-parse.c: Include <string.h>.
15169         (PRINTF_PARSE): Change memory handling code so that it uses the first
15170         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15171         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15172         Reported by Pádraig Brady <P@draigbrady.com>.
15173
15174 2011-01-31  Eric Blake  <eblake@redhat.com>
15175
15176         dup2: work around Haiku bug
15177         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15178         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15179         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15180         * tests/test-dup2.c (main): Enhance test.
15181
15182 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15183
15184         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15185         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15186         declared by eglibc 2.11.2.
15187         * lib/stdio.in.h: Likewise.
15188
15189 2011-01-31  Eric Blake  <eblake@redhat.com>
15190
15191         ignore-value: add missing test dependency
15192         * tests/test-ignore-value.c: Revert previous change; stdio.h
15193         provides off_t.
15194         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15195
15196 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15197
15198         mktime: clarify long_int width checking
15199         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15200         the top level, to make it clearer that the assumption about
15201         long_int width is being checked.  See
15202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15203
15204 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15205
15206         ignore-value: Fix self-test.
15207         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15208
15209 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15210
15211         TYPE_MAXIMUM: avoid theoretically undefined behavior
15212         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15213         negative number, which the C Standard says has undefined behavior.
15214         In practice this is not a problem, but might as well do it by the book.
15215         Reported by Rich Felker and Eric Blake; see
15216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15217         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15218         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15219         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15220         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15221         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15222         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15223
15224         mktime: #undef mktime before #defining it
15225         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15226
15227         mktime: systematically normalize tm_isdst comparisons
15228         * lib/mktime.c (isdst_differ): New function.
15229         (__mktime_internal): Use it systematically for all isdst comparisons.
15230         This completes the fix for libc BZ #6723, and removes the need for
15231         normalizing tm_isdst.  See
15232         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15233         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15234
15235         mktime: fix some integer overflow issues and sidestep the rest
15236
15237         This was prompted by a bug report by Benjamin Lindner for MinGW
15238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15239         His bug is due to signed integer overflow (0 - INT_MIN), and I
15240         I scanned through mktime.c looking for other integer overflow
15241         problems, fixing all the bugs I found.
15242
15243         Although the C Standard says the resulting code is still not safe
15244         in the presence of integer overflow, in practice it should be good
15245         enough for all real-world two's-complement implementations, except
15246         for debugging environments that deliberately trap on integer
15247         overflow (e.g., gcc -ftrapv).
15248
15249         * lib/mktime.c (WRAPV): New macro.
15250         (SHR): Also check that long_int and time_t shift right in the
15251         usual way, before using the fast-but-unportable method.
15252         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15253         used.  The code already assumed two's complement, so there's
15254         no need to test for alternatives.  All uses removed.
15255         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15256         the C standard.  Problem reported by Rich Felker in
15257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15258         (twos_complement_arithmetic): Also check long_int and time_t.
15259         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15260         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15261         (__mktime_internal): Avoid integer overflow with unary subtraction
15262         in two instances where -1 - X is an adequate replacement for -X,
15263         since the calculations are approximate.
15264
15265 2011-01-29  Eric Blake  <eblake@redhat.com>
15266
15267         mktime: avoid infinite loop
15268         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15269         type; behavior is still undefined but portable to all known targets.
15270         Reported by Rich Felker.
15271
15272 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15273
15274         rename, unlink, same-inode: Relicense.
15275         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15276         * modules/unlink (License): Likewise.
15277         * modules/same-inode (License): Likewise.
15278
15279 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15280
15281         mktime: avoid problems on NetBSD 5 / i386
15282         * lib/mktime.c (long_int): New type.  This works around a problem
15283         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15284         but time_t is 64 bits, and where I expect the existing code is
15285         wrong in some cases.
15286         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15287         (ydhms_diff): Bring back the compile-time check for wide-enough
15288         year and yday.
15289
15290         mktime: fix misspelling in comment
15291         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15292         This merges all recent glibc changes of importance.
15293
15294 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15295
15296         move-if-change: cope with concurrent mv of identical file.
15297         * build-aux/move-if-change (CMPPROG): Accept environment
15298         variable as an override for `cmp'.
15299         (usage): Document CMPPROG.
15300         Adjust comparison to drop stdout.  Cope with failure of mv if
15301         the target file exists and is identical to the source, for
15302         parallel builds.
15303         Report from H.J. Lu against binutils in PR binutils/12283.
15304
15305 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15306
15307         * users.txt: Mention sharutils.
15308
15309 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15310
15311         * users.txt: Mention OATH Toolkit.
15312
15313 2011-01-27  Bruno Haible  <bruno@clisp.org>
15314
15315         Prepare for supporting FreeBSD 10.
15316         * build-aux/config.libpath: Remove handling of freebsd1*.
15317
15318 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15319
15320         Prepare for supporting FreeBSD 10.
15321         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15322         match FreeBSD 10.0.
15323
15324 2011-01-27  Bruno Haible  <bruno@clisp.org>
15325
15326         vma-iter, get-rusage-as: Add OpenBSD support.
15327         * modules/vma-iter (configure.ac): Test for mquery.
15328         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15329         * lib/vma-iter.c: Include <sys/mman.h>.
15330         (vma_iterate): Add an implementation based on mquery().
15331         * lib/resource-ext.h (get_rusage_as): Update comments.
15332         * lib/get-rusage-as.c: Likewise.
15333         * lib/get-rusage-data.c: Likewise.
15334
15335 2011-01-26  Karl Berry  <karl@gnu.org>
15336
15337         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15338         variables to make it easier to override the makeinfo program used.
15339
15340 2011-01-26  Eric Blake  <eblake@redhat.com>
15341
15342         fcntl: work around Haiku F_DUPFD bugs
15343         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15344         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15345         cloexec bit on duplication.
15346         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15347
15348 2011-01-26  Bruno Haible  <bruno@clisp.org>
15349
15350         Enable memory leak tests on AIX.
15351         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15352         * tests/test-fprintf-posix3.c (main): Likewise.
15353
15354 2011-01-26  Bruno Haible  <bruno@clisp.org>
15355
15356         Tests for module 'get-rusage-data'.
15357         * modules/get-rusage-data-tests: New file.
15358         * tests/test-get-rusage-data.c: New file.
15359
15360         New module 'get-rusage-data'.
15361         * lib/resource-ext.h (get_rusage_data): New declaration.
15362         * lib/get-rusage-data.c: New file.
15363         * modules/get-rusage-data: New file.
15364
15365 2011-01-25  Bruno Haible  <bruno@clisp.org>
15366
15367         get-rusage-as: Allow for easier testing.
15368         * lib/resource-ext.h (get_rusage_as): Add comment.
15369         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15370         (main): New function for interactive testing.
15371
15372 2011-01-25  Bruno Haible  <bruno@clisp.org>
15373
15374         vma-iter: Treat Haiku like BeOS.
15375         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15376         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15377
15378 2011-01-25  Eric Blake  <eblake@redhat.com>
15379
15380         c-stack: fix regression on cygwin when libsigsegv is present
15381         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15382
15383 2011-01-24  Bruno Haible  <bruno@clisp.org>
15384
15385         vma-iter: Avoid empty intervals.
15386         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15387         on an empty interval.
15388
15389 2011-01-24  Jim Meyering  <meyering@redhat.com>
15390
15391         u64: remove unnecessary #include
15392         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15393
15394 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15395
15396         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15397         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15398
15399 2011-01-23  Bruno Haible  <bruno@clisp.org>
15400
15401         New module 'vma-iter'.
15402         * lib/vma-iter.h: New file.
15403         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15404         * modules/vma-iter: New file.
15405         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15406         for get_rusage_as_via_iterator.
15407         (vma_iterate_callback): New function.
15408         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15409         * modules/get-rusage-as (Depends-on): Add vma-iter.
15410
15411 2011-01-23  Bruno Haible  <bruno@clisp.org>
15412
15413         uninorm: Tweak includes.
15414         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15415         Reported by Jim Meyering.
15416
15417 2011-01-23  Bruno Haible  <bruno@clisp.org>
15418
15419         get-rusage-as: Improve on NetBSD.
15420         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15421         /proc, like on FreeBSD.
15422
15423 2011-01-23  Jim Meyering  <meyering@redhat.com>
15424
15425         xreadlink.h: remove unnecessary #include
15426         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15427
15428         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15429         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15430
15431 2011-01-23  Bruno Haible  <bruno@clisp.org>
15432
15433         get-rusage-as: Fix bug.
15434         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15435         original limit when aborting the first loop.
15436
15437 2011-01-23  Bruno Haible  <bruno@clisp.org>
15438
15439         wctype: Ensure valid C syntax.
15440         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15441         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15442
15443 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15444
15445         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15447         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15448         as they are needed only for configure's test case.
15449         This removes two unnecessary symbols from config.h.
15450
15451         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15452         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15454         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15455         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15456         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15457         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15458         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15459         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15460         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15461         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15462         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15463         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15464         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15465         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15466         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15467         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15468         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15469
15470 2011-01-21  Eric Blake  <eblake@redhat.com>
15471
15472         maintainer-makefile: work with older git for submodule check
15473         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15474         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15475         Reported by Matthias Bolte.
15476
15477         bootstrap: minor portability fixes
15478         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15479         (usage): Omit leading capital and trailing . on help phrases, per
15480         GNU Coding Standards.
15481         (check_versions, top level): Prefix messages with script name.
15482
15483 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15484
15485         bootstrap: support --no-git option
15486         * build-aux/bootstrap: Add --no-git option, to be used when
15487         --gnulib-srcdir points to the exact desired checkout.
15488
15489 2011-01-21  Eric Blake  <eblake@redhat.com>
15490
15491         strerror_r-posix: work with glibc 2.13
15492         * lib/strerror_r.c (strerror_r): Fix return type.
15493
15494 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15495             Bruno Haible  <bruno@clisp.org>
15496
15497         uN_strstr: New unit tests.
15498         * modules/unistr/u8-strstr-tests: New file.
15499         * modules/unistr/u16-strstr-tests: New file.
15500         * modules/unistr/u32-strstr-tests: New file.
15501         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15502         * tests/unistr/test-u8-strstr.c: New file.
15503         * tests/unistr/test-u16-strstr.c: New file.
15504         * tests/unistr/test-u32-strstr.c: New file.
15505
15506 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15507             Bruno Haible  <bruno@clisp.org>
15508
15509         Make uN_strstr functions O(n) worst-case.
15510         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15511         16-bit and 32-bit unit cases, use the unibyte algorithm from
15512         lib/mbsstr.c.
15513         * lib/unistr/u8-strstr.c: Include <string.h>.
15514         (UNIT_IS_UINT8_T): New macro.
15515         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15516         (U_STRLEN, U_STRNLEN): New macros.
15517         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15518         (U_STRLEN, U_STRNLEN): New macros.
15519         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15520         (configure.ac): Update required libunistring version.
15521         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15522         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15523         malloca.
15524         (configure.ac): Update required libunistring version.
15525         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15526         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15527         malloca.
15528         (configure.ac): Update required libunistring version.
15529
15530 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15531             Bruno Haible  <bruno@clisp.org>
15532
15533         Prepare for faster uN_strstr functions.
15534         * lib/str-kmp.h: Support definable UNITs.
15535         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15536         needle_len argument.
15537         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15538         * lib/mbscasestr.c (mbscasestr): Likewise.
15539
15540 2011-01-21  Pádraig Brady <P@draigBrady.com>
15541
15542         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15543         * tests/test-malloca.c (main): Unset the environment variable
15544         to greatly speed up the test.
15545         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15546         * modules/malloca-tests: Depend on unsetenv.
15547
15548 2011-01-21  Pádraig Brady <P@draigBrady.com>
15549
15550         ignore-value: remove stdint dependency
15551         * lib/ignore-value.h: Remove <stdint.h>
15552         * modules/ignore-value: Remove stdint dependency.
15553
15554 2011-01-21  Jim Meyering  <meyering@redhat.com>
15555
15556         maint.mk: adjust variable name to be consistent with other gl_ vars
15557         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15558         to be lower case.
15559
15560 2011-01-20  Jim Meyering  <meyering@redhat.com>
15561
15562         maint.mk: make "check" depend on public-submodule-commit by default
15563         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15564
15565 2011-01-20  Bruno Haible  <bruno@clisp.org>
15566
15567         mbfile, mbiter: Complete change from 2008-12-21.
15568         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15569         * m4/mbiter.m4 (gl_MBITER): Likewise.
15570
15571 2011-01-20  Jim Meyering  <meyering@redhat.com>
15572
15573         init.sh: insert space between each function name and "()"
15574         * tests/init.sh: Make it a little easier to see that a function's
15575         name is "warn_", and not "warn" when looking at the first part of
15576         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15577
15578 2011-01-20  Jim Meyering  <meyering@redhat.com>
15579
15580         mountlist: clean up code formatting
15581         * lib/mountlist.c (read_file_system_list): Split a long line,
15582         correct bracing style, use NULL in place of "(struct statfs *)0",
15583         don't parenthesize return value, add spaces around "=" and after
15584         ";-in-for-stmt".
15585
15586 2011-01-14  Markus Duft <mduft@gentoo.org>
15587
15588         mountlist: add support for Interix
15589         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15590         Apply statvfs to all entries of /dev/fs.
15591         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15592         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15593
15594 2011-01-20  Jim Meyering  <meyering@redhat.com>
15595
15596         maint.mk: improve the public-submodule-commit rule
15597         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15598         to suppress printing of its commands... unless V=1.
15599         Add git submodule's --quiet option to suppress printing of e.g.,
15600         "Entering gnulib" output.
15601         "cd" into $(srcdir) before running git submodule.
15602
15603 2011-01-20  Bruno Haible  <bruno@clisp.org>
15604
15605         include_next: Fix bug introduced on 2011-01-18.
15606         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15607         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15608         ac_cv_header_... variable if the second argument is not 'check'.
15609         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15610         gl_NEXT_HEADERS_INTERNAL.
15611
15612 2011-01-20  Bruno Haible  <bruno@clisp.org>
15613
15614         Allow the user to avoid the GNULIB_TEST_* macros.
15615         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15616         Suggested by Paul Eggert.
15617
15618 2011-01-14  Jim Meyering  <meyering@redhat.com>
15619
15620         bootstrap: avoid failure when there is no .gitmodules file
15621         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15622         has been assigned to, even when its value is the empty string.
15623         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15624         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15625         Reported by John W. Eaton <jwe@gnu.org>.
15626
15627 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15628
15629         assume <ctype.h>, ..., <time.h> exist
15630         For years gnulib has been assuming the existence of the headers
15631         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15632         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15633         them, since they don't appear to be needed.
15634         * README (Portability guidelines): Document this.
15635         * lib/flock.c: Assume <fcntl.h> exists.
15636         * lib/regex_internal.h: Assume <locale.h> exists.
15637         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15638         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15639         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15640         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15641         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15642         * m4/regex.m4 (gl_REGEX): Likewise.
15643         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15644         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15645         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15646         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15647         * tests/test-argp.c: Likewise.
15648         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15649
15650         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15651         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15652         AA_APPLE_UNIVERSAL_BUILD.  See
15653         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15654         * NEWS: Document this.
15655
15656 2011-01-19  Eric Blake  <eblake@redhat.com>
15657
15658         c-stack: assume stack overflow if SA_SIGINFO unsupported
15659         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15660         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15661         sigaction will work.
15662         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15663         behavior match Linux.
15664         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15665
15666         stdbool-tests: accomodate Haiku
15667         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15668
15669         binary-io: fix O_TEXT on Haiku
15670         * modules/binary-io (Depends-on): Add fcntl-h.
15671         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15672         than blindly undefining O_TEXT.
15673         Reported by Scott McCreary.
15674
15675 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15676
15677         include_next: do not check for standard headers like stddef.h
15678
15679         I found this problem when modifying Emacs to use gnulib.
15680         I noticed that it added HAVE_STDDEF_H to config.h, even though
15681         gnulib always assumes <stddef.h> exists as per README and this
15682         symbol is unnecessary.
15683         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15684         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15685         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15686         faster for headers like stddef.h that are known to exist.
15687         (gl_CHECK_NEXT_HEADERS): Use it.
15688         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15689         rather than gl_CHECK_NEXT_HEADERS.
15690         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15691         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15692
15693 2011-01-18  Eric Blake  <eblake@redhat.com>
15694
15695         ansi-c++-opt: skip C++ dependency style if C++ is unused
15696         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15697         tests when we know C++ compilation is not desired.
15698         Reported by Scott McCreary.
15699
15700 2011-01-18  Bruno Haible  <bruno@clisp.org>
15701
15702         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15703         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15704         (main): Perform test also when getrlimit and setrlimit don't exist or
15705         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15706         limiting the address space size using setrlimit, compare the address
15707         space size before and after the the test.
15708         * tests/test-dprintf-posix2.c: Likewise.
15709         * tests/test-fprintf-posix3.sh: Update skip messages.
15710         * tests/test-dprintf-posix2.sh: Likewise.
15711         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15712         * modules/dprintf-posix-tests (Depends-on): Likewise.
15713         Reported by Bruce Korb <bkorb@gnu.org> and
15714         Gary V. Vaughan <gary@gnu.org>.
15715
15716 2011-01-18  Bruno Haible  <bruno@clisp.org>
15717
15718         get-rusage-as: Improvement for Cygwin.
15719         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15720         areas that are merely reserved.
15721
15722 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15723
15724         strftime: remove dependencies on multibyte modules
15725
15726         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15727         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15728         only if __osf__ is defined, and I suspect OSF doesn't need these
15729         other modules.  If my guess is wrong, we'll need to come up with a
15730         variant of strftime that doesn't need the multibyte modules.
15731
15732         I discovered this problem when attempting modify Emacs to use the
15733         strftime module.  With the previous gnulib, this caused Emacs to
15734         need 31 new files, ranging from lib/config.charset to
15735         m4/wint_t.m4.  This was overkill and I expect would be offputting
15736         to the Emacs maintainers.  After this change, only 6 new files are
15737         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15738         stdbool.m4, and tm_gmtoff.m4.
15739
15740         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15741         Suggested by Bruno Haible in
15742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15743         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15744         and do not check for wchar.h.
15745         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15746         (Depends-on): Remove mbrlen, mbsinit, wchar.
15747
15748 2011-01-18  Bruno Haible  <bruno@clisp.org>
15749
15750         Tests for module 'get-rusage-as'.
15751         * modules/get-rusage-as-tests: New file.
15752         * tests/test-get-rusage-as.c: New file.
15753
15754         New module 'get-rusage-as'.
15755         * modules/get-rusage-as: New file.
15756         * lib/resource-ext.h: New file.
15757         * lib/get-rusage-as.c: New file.
15758
15759 2011-01-17  Eric Blake  <eblake@redhat.com>
15760
15761         sigaction: relax license from LGPLv3+ to LGPLv2+
15762         * modules/sigaction (License): Relax to LGPLv2+.
15763
15764 2011-01-14  Bruno Haible  <bruno@clisp.org>
15765
15766         filemode: Make function declarations usable in C++ mode.
15767         * lib/filemode.h: Enclose function declarations in extern "C" block.
15768         Reported by John W. Eaton <jwe@gnu.org>.
15769
15770 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15771
15772         save-cwd: no longer include "xgetcwd.h"
15773         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15774         This avoids a compilation failure in projects that use save-cwd
15775         without also using the xgetcwd module.
15776
15777 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15778
15779         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15780         This is so that a program like Emacs, which needs only dtoastr,
15781         does not have to bother with distributing and compiling ftoastr
15782         and ldtoastr.
15783         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15784         * modules/dtoastr, modules/ldtoastr: New files.
15785         * modules/ftoastr: Now works just for 'float'.
15786         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15787         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15788         dtoastr.c, ldtoastr.c.
15789
15790 2011-01-11  Jim Meyering  <meyering@redhat.com>
15791
15792         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15793         There is no need to work around the lack of the fchdir function,
15794         since gnulib can now provide a replacement when required.
15795         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15796         * modules/save-cwd (Depends-on): Add fchdir.
15797
15798 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15799
15800         openat, save-cwd: avoid xmalloc
15801
15802         This removes a direct (but undocumented) dependency of openat on
15803         xalloc, along with an indirect dependency via save-cwd.  It also
15804         removes a dependency of save-cwd on xgetcwd, and thereby
15805         indirectly on xalloc.  This change causes the openat substitute
15806         to fall back on save_cwd when memory is tight, and for save_cwd to
15807         fail instead of dying when memory is tight, but that's good enough.
15808         Problem and initial idea for fix reported by Bastien Roucaries in
15809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15810
15811         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15812         xalloc.h (for xmalloc).
15813         (openat_proc_name): Use malloc, not xmalloc.
15814         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15815         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15816
15817         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15818         This avoids heap allocation for file names whose lengths are in
15819         the range 512..1023, with the upper bound increasing to at most
15820         4031 depending on the platform's PATH_MAX.  (We do not want
15821         pathmax.h here as it might supply a non-constant PATH_MAX.)
15822         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15823         Perhaps they should be moved to malloca.h?
15824         (OPENAT_BUFFER_SIZE): Use them.
15825
15826 2011-01-10  Bruno Haible  <bruno@clisp.org>
15827
15828         doc: Update users.txt.
15829         * users.txt: Add recutils.
15830
15831 2011-01-09  Karl Berry  <karl@gnu.org>
15832
15833         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15834
15835         * doc/configmake.texi: New file.
15836         * doc/gnulib.texi: Include it.
15837         * modules/configmake: Move documentation from here.
15838
15839 2011-01-09  Bruno Haible  <bruno@clisp.org>
15840
15841         Update to Unicode 6.0.0.
15842         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15843         (get_lbp): Update for Unicode 6.0.0.
15844         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15845         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15846         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15847         U+11001, U+11038..U+11046. Remove U+06DE.
15848         (uc_width): Fix bounds of planes.
15849         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15850         lib/uniwidth/width.c.
15851         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15852         trailing whitespace removed.
15853         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15854         without comments, but with the original copyright notice.
15855         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15856         * lib/unicase/ignorable.h: Likewise.
15857         * lib/unicase/tocasefold.h: Likewise.
15858         * lib/unicase/tolower.h: Likewise.
15859         * lib/unicase/totitle.h: Likewise.
15860         * lib/unicase/toupper.h: Likewise.
15861         * lib/unictype/bidi_of.h: Likewise.
15862         * lib/unictype/blocks.h: Likewise.
15863         * lib/unictype/categ_C.h: Likewise.
15864         * lib/unictype/categ_Cn.h: Likewise.
15865         * lib/unictype/categ_L.h: Likewise.
15866         * lib/unictype/categ_Ll.h: Likewise.
15867         * lib/unictype/categ_Lm.h: Likewise.
15868         * lib/unictype/categ_Lo.h: Likewise.
15869         * lib/unictype/categ_Lu.h: Likewise.
15870         * lib/unictype/categ_M.h: Likewise.
15871         * lib/unictype/categ_Mc.h: Likewise.
15872         * lib/unictype/categ_Me.h: Likewise.
15873         * lib/unictype/categ_Mn.h: Likewise.
15874         * lib/unictype/categ_N.h: Likewise.
15875         * lib/unictype/categ_Nd.h: Likewise.
15876         * lib/unictype/categ_No.h: Likewise.
15877         * lib/unictype/categ_P.h: Likewise.
15878         * lib/unictype/categ_Po.h: Likewise.
15879         * lib/unictype/categ_S.h: Likewise.
15880         * lib/unictype/categ_Sc.h: Likewise.
15881         * lib/unictype/categ_Sk.h: Likewise.
15882         * lib/unictype/categ_Sm.h: Likewise.
15883         * lib/unictype/categ_So.h: Likewise.
15884         * lib/unictype/categ_of.h: Likewise.
15885         * lib/unictype/combining.h: Likewise.
15886         * lib/unictype/ctype_alnum.h: Likewise.
15887         * lib/unictype/ctype_alpha.h: Likewise.
15888         * lib/unictype/ctype_graph.h: Likewise.
15889         * lib/unictype/ctype_lower.h: Likewise.
15890         * lib/unictype/ctype_print.h: Likewise.
15891         * lib/unictype/ctype_punct.h: Likewise.
15892         * lib/unictype/ctype_upper.h: Likewise.
15893         * lib/unictype/decdigit.h: Likewise.
15894         * lib/unictype/digit.h: Likewise.
15895         * lib/unictype/numeric.h: Likewise.
15896         * lib/unictype/pr_alphabetic.h: Likewise.
15897         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15898         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15899         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15900         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15901         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15902         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15903         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15904         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15905         * lib/unictype/pr_case_ignorable.h: Likewise.
15906         * lib/unictype/pr_cased.h: Likewise.
15907         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15908         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15909         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15910         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15911         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15912         * lib/unictype/pr_combining.h: Likewise.
15913         * lib/unictype/pr_composite.h: Likewise.
15914         * lib/unictype/pr_currency_symbol.h: Likewise.
15915         * lib/unictype/pr_decimal_digit.h: Likewise.
15916         * lib/unictype/pr_deprecated.h: Likewise.
15917         * lib/unictype/pr_format_control.h: Likewise.
15918         * lib/unictype/pr_grapheme_base.h: Likewise.
15919         * lib/unictype/pr_grapheme_extend.h: Likewise.
15920         * lib/unictype/pr_grapheme_link.h: Likewise.
15921         * lib/unictype/pr_id_continue.h: Likewise.
15922         * lib/unictype/pr_id_start.h: Likewise.
15923         * lib/unictype/pr_ideographic.h: Likewise.
15924         * lib/unictype/pr_lowercase.h: Likewise.
15925         * lib/unictype/pr_math.h: Likewise.
15926         * lib/unictype/pr_numeric.h: Likewise.
15927         * lib/unictype/pr_other_alphabetic.h: Likewise.
15928         * lib/unictype/pr_other_id_continue.h: Likewise.
15929         * lib/unictype/pr_other_math.h: Likewise.
15930         * lib/unictype/pr_punctuation.h: Likewise.
15931         * lib/unictype/pr_sentence_terminal.h: Likewise.
15932         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15933         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15934         * lib/unictype/pr_unified_ideograph.h: Likewise.
15935         * lib/unictype/pr_uppercase.h: Likewise.
15936         * lib/unictype/pr_xid_continue.h: Likewise.
15937         * lib/unictype/pr_xid_start.h: Likewise.
15938         * lib/unictype/scripts.h: Likewise.
15939         * lib/unictype/scripts_byname.gperf: Likewise.
15940         * lib/unictype/sy_java_ident.h: Likewise.
15941         * lib/unigbrk/gbrkprop.h: Likewise.
15942         * lib/unilbrk/lbrkprop1.h: Likewise.
15943         * lib/unilbrk/lbrkprop2.h: Likewise.
15944         * lib/uninorm/decomposition-table2.h: Likewise.
15945         * lib/uniwbrk/wbrkprop.h: Likewise.
15946         * tests/unicase/test-cased.c: Likewise.
15947         * tests/unicase/test-ignorable.c: Likewise.
15948         * tests/unicase/test-uc_tolower.c: Likewise.
15949         * tests/unicase/test-uc_totitle.c: Likewise.
15950         * tests/unicase/test-uc_toupper.c: Likewise.
15951         * tests/unictype/test-categ_C.c: Likewise.
15952         * tests/unictype/test-categ_Cn.c: Likewise.
15953         * tests/unictype/test-categ_L.c: Likewise.
15954         * tests/unictype/test-categ_Ll.c: Likewise.
15955         * tests/unictype/test-categ_Lm.c: Likewise.
15956         * tests/unictype/test-categ_Lo.c: Likewise.
15957         * tests/unictype/test-categ_Lu.c: Likewise.
15958         * tests/unictype/test-categ_M.c: Likewise.
15959         * tests/unictype/test-categ_Mc.c: Likewise.
15960         * tests/unictype/test-categ_Me.c: Likewise.
15961         * tests/unictype/test-categ_Mn.c: Likewise.
15962         * tests/unictype/test-categ_N.c: Likewise.
15963         * tests/unictype/test-categ_Nd.c: Likewise.
15964         * tests/unictype/test-categ_No.c: Likewise.
15965         * tests/unictype/test-categ_P.c: Likewise.
15966         * tests/unictype/test-categ_Po.c: Likewise.
15967         * tests/unictype/test-categ_S.c: Likewise.
15968         * tests/unictype/test-categ_Sc.c: Likewise.
15969         * tests/unictype/test-categ_Sk.c: Likewise.
15970         * tests/unictype/test-categ_Sm.c: Likewise.
15971         * tests/unictype/test-categ_So.c: Likewise.
15972         * tests/unictype/test-ctype_alnum.c: Likewise.
15973         * tests/unictype/test-ctype_alpha.c: Likewise.
15974         * tests/unictype/test-ctype_graph.c: Likewise.
15975         * tests/unictype/test-ctype_lower.c: Likewise.
15976         * tests/unictype/test-ctype_print.c: Likewise.
15977         * tests/unictype/test-ctype_punct.c: Likewise.
15978         * tests/unictype/test-ctype_upper.c: Likewise.
15979         * tests/unictype/test-decdigit.h: Likewise.
15980         * tests/unictype/test-digit.h: Likewise.
15981         * tests/unictype/test-numeric.h: Likewise.
15982         * tests/unictype/test-pr_alphabetic.c: Likewise.
15983         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15984         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15985         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15986         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15987         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15988         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15989         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15990         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15991         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15992         * tests/unictype/test-pr_cased.c: Likewise.
15993         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15994         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15995         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15996         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15997         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15998         * tests/unictype/test-pr_combining.c: Likewise.
15999         * tests/unictype/test-pr_composite.c: Likewise.
16000         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16001         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16002         * tests/unictype/test-pr_deprecated.c: Likewise.
16003         * tests/unictype/test-pr_format_control.c: Likewise.
16004         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16005         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16006         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16007         * tests/unictype/test-pr_id_continue.c: Likewise.
16008         * tests/unictype/test-pr_id_start.c: Likewise.
16009         * tests/unictype/test-pr_ideographic.c: Likewise.
16010         * tests/unictype/test-pr_lowercase.c: Likewise.
16011         * tests/unictype/test-pr_math.c: Likewise.
16012         * tests/unictype/test-pr_numeric.c: Likewise.
16013         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16014         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16015         * tests/unictype/test-pr_other_math.c: Likewise.
16016         * tests/unictype/test-pr_punctuation.c: Likewise.
16017         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16018         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16019         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16020         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16021         * tests/unictype/test-pr_uppercase.c: Likewise.
16022         * tests/unictype/test-pr_xid_continue.c: Likewise.
16023         * tests/unictype/test-pr_xid_start.c: Likewise.
16024         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16025         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16026         changes.
16027         * lib/unictype/categ_Cc.h: Likewise.
16028         * lib/unictype/categ_Cf.h: Likewise.
16029         * lib/unictype/categ_Co.h: Likewise.
16030         * lib/unictype/categ_Cs.h: Likewise.
16031         * lib/unictype/categ_Lt.h: Likewise.
16032         * lib/unictype/categ_Nl.h: Likewise.
16033         * lib/unictype/categ_Pc.h: Likewise.
16034         * lib/unictype/categ_Pd.h: Likewise.
16035         * lib/unictype/categ_Pe.h: Likewise.
16036         * lib/unictype/categ_Pf.h: Likewise.
16037         * lib/unictype/categ_Pi.h: Likewise.
16038         * lib/unictype/categ_Ps.h: Likewise.
16039         * lib/unictype/categ_Z.h: Likewise.
16040         * lib/unictype/categ_Zl.h: Likewise.
16041         * lib/unictype/categ_Zp.h: Likewise.
16042         * lib/unictype/categ_Zs.h: Likewise.
16043         * lib/unictype/ctype_blank.h: Likewise.
16044         * lib/unictype/ctype_cntrl.h: Likewise.
16045         * lib/unictype/ctype_digit.h: Likewise.
16046         * lib/unictype/ctype_space.h: Likewise.
16047         * lib/unictype/ctype_xdigit.h: Likewise.
16048         * lib/unictype/mirror.h: Likewise.
16049         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16050         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16051         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16052         * lib/unictype/pr_bidi_control.h: Likewise.
16053         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16054         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16055         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16056         * lib/unictype/pr_bidi_pdf.h: Likewise.
16057         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16058         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16059         * lib/unictype/pr_dash.h: Likewise.
16060         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16061         * lib/unictype/pr_diacritic.h: Likewise.
16062         * lib/unictype/pr_extender.h: Likewise.
16063         * lib/unictype/pr_hex_digit.h: Likewise.
16064         * lib/unictype/pr_hyphen.h: Likewise.
16065         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16066         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16067         * lib/unictype/pr_ignorable_control.h: Likewise.
16068         * lib/unictype/pr_iso_control.h: Likewise.
16069         * lib/unictype/pr_join_control.h: Likewise.
16070         * lib/unictype/pr_left_of_pair.h: Likewise.
16071         * lib/unictype/pr_line_separator.h: Likewise.
16072         * lib/unictype/pr_logical_order_exception.h: Likewise.
16073         * lib/unictype/pr_non_break.h: Likewise.
16074         * lib/unictype/pr_not_a_character.h: Likewise.
16075         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16076         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16077         * lib/unictype/pr_other_id_start.h: Likewise.
16078         * lib/unictype/pr_other_lowercase.h: Likewise.
16079         * lib/unictype/pr_other_uppercase.h: Likewise.
16080         * lib/unictype/pr_paired_punctuation.h: Likewise.
16081         * lib/unictype/pr_paragraph_separator.h: Likewise.
16082         * lib/unictype/pr_pattern_syntax.h: Likewise.
16083         * lib/unictype/pr_pattern_white_space.h: Likewise.
16084         * lib/unictype/pr_private_use.h: Likewise.
16085         * lib/unictype/pr_quotation_mark.h: Likewise.
16086         * lib/unictype/pr_radical.h: Likewise.
16087         * lib/unictype/pr_soft_dotted.h: Likewise.
16088         * lib/unictype/pr_space.h: Likewise.
16089         * lib/unictype/pr_titlecase.h: Likewise.
16090         * lib/unictype/pr_variation_selector.h: Likewise.
16091         * lib/unictype/pr_white_space.h: Likewise.
16092         * lib/unictype/pr_zero_width.h: Likewise.
16093         * lib/unictype/sy_c_ident.h: Likewise.
16094         * lib/unictype/sy_c_whitespace.h: Likewise.
16095         * lib/unictype/sy_java_whitespace.h: Likewise.
16096         * lib/uninorm/composition-table.gperf: Likewise.
16097         * lib/uninorm/decomposition-table1.h: Likewise.
16098         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16099         LB8.
16100         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16101         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16102         * modules/unictype/*: Bump version number of expected libunistring
16103         version.
16104
16105 2011-01-09  Bruno Haible  <bruno@clisp.org>
16106
16107         Update to Unicode 5.2.0.
16108         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16109         trailing whitespace removed.
16110
16111 2011-01-09  Bruno Haible  <bruno@clisp.org>
16112
16113         New Unicode character properties, from Unicode 5.2.0.
16114         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16115         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16116         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16117         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16118         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16119         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16120         uc_is_property_cased, uc_is_property_case_ignorable,
16121         uc_is_property_changes_when_lowercased,
16122         uc_is_property_changes_when_uppercased,
16123         uc_is_property_changes_when_titlecased,
16124         uc_is_property_changes_when_casefolded,
16125         uc_is_property_changes_when_casemapped): New declarations.
16126         * lib/unictype/pr_byname.gperf: Add the new properties.
16127         * modules/unictype/property-byname (Depends-on): Depend on the new
16128         properties modules.
16129         * modules/unictype/property-all (Depends-on): Likewise.
16130         * MODULES.html.sh (Unicode string functions): Add
16131         unictype/property-case-ignorable, unictype/property-cased,
16132         unictype/property-changes-when-casefolded,
16133         unictype/property-changes-when-casemapped,
16134         unictype/property-changes-when-lowercased,
16135         unictype/property-changes-when-titlecased,
16136         unictype/property-changes-when-uppercased.
16137
16138         New module 'unictype/property-changes-when-casemapped'.
16139         * modules/unictype/property-changes-when-casemapped: New file.
16140         * lib/unictype/pr_changes_when_casemapped.c: New file.
16141         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16142         generated by gen-uni-tables.
16143         * modules/unictype/property-changes-when-casemapped-tests: New file.
16144         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16145         automatically generated by gen-uni-tables.
16146
16147         New module 'unictype/property-changes-when-casefolded'.
16148         * modules/unictype/property-changes-when-casefolded: New file.
16149         * lib/unictype/pr_changes_when_casefolded.c: New file.
16150         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16151         generated by gen-uni-tables.
16152         * modules/unictype/property-changes-when-casefolded-tests: New file.
16153         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16154         automatically generated by gen-uni-tables.
16155
16156         New module 'unictype/property-changes-when-titlecased'.
16157         * modules/unictype/property-changes-when-titlecased: New file.
16158         * lib/unictype/pr_changes_when_titlecased.c: New file.
16159         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16160         generated by gen-uni-tables.
16161         * modules/unictype/property-changes-when-titlecased-tests: New file.
16162         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16163         automatically generated by gen-uni-tables.
16164
16165         New module 'unictype/property-changes-when-uppercased'.
16166         * modules/unictype/property-changes-when-uppercased: New file.
16167         * lib/unictype/pr_changes_when_uppercased.c: New file.
16168         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16169         generated by gen-uni-tables.
16170         * modules/unictype/property-changes-when-uppercased-tests: New file.
16171         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16172         automatically generated by gen-uni-tables.
16173
16174         New module 'unictype/property-changes-when-lowercased'.
16175         * modules/unictype/property-changes-when-lowercased: New file.
16176         * lib/unictype/pr_changes_when_lowercased.c: New file.
16177         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16178         generated by gen-uni-tables.
16179         * modules/unictype/property-changes-when-lowercased-tests: New file.
16180         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16181         automatically generated by gen-uni-tables.
16182
16183         New module 'unictype/property-case-ignorable'.
16184         * modules/unictype/property-case-ignorable: New file.
16185         * lib/unictype/pr_case_ignorable.c: New file.
16186         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16187         by gen-uni-tables.
16188         * modules/unictype/property-case-ignorable-tests: New file.
16189         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16190         generated by gen-uni-tables.
16191
16192         New module 'unictype/property-cased'.
16193         * modules/unictype/property-cased: New file.
16194         * lib/unictype/pr_cased.c: New file.
16195         * lib/unictype/pr_cased.h: New file, automatically generated by
16196         gen-uni-tables.
16197         * modules/unictype/property-cased-tests: New file.
16198         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16199         gen-uni-tables.
16200
16201 2011-01-09  Bruno Haible  <bruno@clisp.org>
16202
16203         Update to Unicode 5.2.0.
16204         * lib/gen-uni-tables.c (output_predicate, output_category,
16205         output_combclass, output_bidi_category, output_decimal_digit_test,
16206         output_decimal_digit, output_digit_test, output_digit,
16207         output_numeric_test, output_numeric, output_mirror, output_scripts,
16208         output_scripts_byname, output_blocks, output_ident_category): Fix
16209         comment header.
16210         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16211         get_wbp.
16212         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16213         items.
16214         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16215         Changes_When_Lowercased, Changes_When_Uppercased,
16216         Changes_When_Titlecased, Changes_When_Casefolded,
16217         Changes_When_Casemapped.
16218         (is_property_alphabetic, is_property_default_ignorable_code_point):
16219         Update for Unicode 5.2.0.
16220         (is_property_cased, is_property_case_ignorable,
16221         is_property_changes_when_lowercased,
16222         is_property_changes_when_uppercased,
16223         is_property_changes_when_titlecased,
16224         is_property_changes_when_casefolded,
16225         is_property_changes_when_casemapped): New functions.
16226         (output_properties): Output also the properties cased, case_ignorable,
16227         changes_when_lowercased, changes_when_uppercased,
16228         changes_when_titlecased, changes_when_casefolded,
16229         changes_when_casemapped.
16230         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16231         Unicode TR#11 revision 17 -> 19.
16232         (LBP_CP): New enumeration value.
16233         (LBP_*): Adjust values accordingly.
16234         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16235         TR#14 revision 22 -> 24.
16236         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16237         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16238         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16239         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16240         is_WBP_MIDLETTER.
16241         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16242         the code1 and code2 of each composition rule.
16243         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16244         * lib/unicase/ignorable.h: Likewise.
16245         * lib/unicase/tocasefold.h: Likewise.
16246         * lib/unicase/tolower.h: Likewise.
16247         * lib/unicase/totitle.h: Likewise.
16248         * lib/unicase/toupper.h: Likewise.
16249         * lib/unictype/bidi_of.h: Likewise.
16250         * lib/unictype/blocks.h: Likewise.
16251         * lib/unictype/categ_C.h: Likewise.
16252         * lib/unictype/categ_Cf.h: Likewise.
16253         * lib/unictype/categ_Cn.h: Likewise.
16254         * lib/unictype/categ_L.h: Likewise.
16255         * lib/unictype/categ_Ll.h: Likewise.
16256         * lib/unictype/categ_Lm.h: Likewise.
16257         * lib/unictype/categ_Lo.h: Likewise.
16258         * lib/unictype/categ_Lu.h: Likewise.
16259         * lib/unictype/categ_M.h: Likewise.
16260         * lib/unictype/categ_Mc.h: Likewise.
16261         * lib/unictype/categ_Mn.h: Likewise.
16262         * lib/unictype/categ_N.h: Likewise.
16263         * lib/unictype/categ_Nd.h: Likewise.
16264         * lib/unictype/categ_Nl.h: Likewise.
16265         * lib/unictype/categ_No.h: Likewise.
16266         * lib/unictype/categ_P.h: Likewise.
16267         * lib/unictype/categ_Pd.h: Likewise.
16268         * lib/unictype/categ_Po.h: Likewise.
16269         * lib/unictype/categ_S.h: Likewise.
16270         * lib/unictype/categ_Sc.h: Likewise.
16271         * lib/unictype/categ_So.h: Likewise.
16272         * lib/unictype/categ_of.h: Likewise.
16273         * lib/unictype/combining.h: Likewise.
16274         * lib/unictype/ctype_alnum.h: Likewise.
16275         * lib/unictype/ctype_alpha.h: Likewise.
16276         * lib/unictype/ctype_graph.h: Likewise.
16277         * lib/unictype/ctype_lower.h: Likewise.
16278         * lib/unictype/ctype_print.h: Likewise.
16279         * lib/unictype/ctype_punct.h: Likewise.
16280         * lib/unictype/ctype_upper.h: Likewise.
16281         * lib/unictype/decdigit.h: Likewise.
16282         * lib/unictype/digit.h: Likewise.
16283         * lib/unictype/numeric.h: Likewise.
16284         * lib/unictype/pr_alphabetic.h: Likewise.
16285         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16286         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16287         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16288         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16289         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16290         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16291         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16292         * lib/unictype/pr_combining.h: Likewise.
16293         * lib/unictype/pr_composite.h: Likewise.
16294         * lib/unictype/pr_currency_symbol.h: Likewise.
16295         * lib/unictype/pr_dash.h: Likewise.
16296         * lib/unictype/pr_decimal_digit.h: Likewise.
16297         * lib/unictype/pr_deprecated.h: Likewise.
16298         * lib/unictype/pr_diacritic.h: Likewise.
16299         * lib/unictype/pr_extender.h: Likewise.
16300         * lib/unictype/pr_grapheme_base.h: Likewise.
16301         * lib/unictype/pr_grapheme_extend.h: Likewise.
16302         * lib/unictype/pr_grapheme_link.h: Likewise.
16303         * lib/unictype/pr_id_continue.h: Likewise.
16304         * lib/unictype/pr_id_start.h: Likewise.
16305         * lib/unictype/pr_ideographic.h: Likewise.
16306         * lib/unictype/pr_ignorable_control.h: Likewise.
16307         * lib/unictype/pr_logical_order_exception.h: Likewise.
16308         * lib/unictype/pr_lowercase.h: Likewise.
16309         * lib/unictype/pr_numeric.h: Likewise.
16310         * lib/unictype/pr_other_alphabetic.h: Likewise.
16311         * lib/unictype/pr_punctuation.h: Likewise.
16312         * lib/unictype/pr_sentence_terminal.h: Likewise.
16313         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16314         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16315         * lib/unictype/pr_unified_ideograph.h: Likewise.
16316         * lib/unictype/pr_uppercase.h: Likewise.
16317         * lib/unictype/pr_xid_continue.h: Likewise.
16318         * lib/unictype/pr_xid_start.h: Likewise.
16319         * lib/unictype/pr_zero_width.h: Likewise.
16320         * lib/unictype/scripts.h: Likewise.
16321         * lib/unictype/scripts_byname.gperf: Likewise.
16322         * lib/unictype/sy_java_ident.h: Likewise.
16323         * lib/unigbrk/gbrkprop.h: Likewise.
16324         * lib/unilbrk/lbrkprop1.h: Likewise.
16325         * lib/unilbrk/lbrkprop2.h: Likewise.
16326         * lib/unilbrk/lbrktables.h: Likewise.
16327         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16328         LBP_CP. Implement rule LB30.
16329         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16330         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16331         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16332         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16333         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16334         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16335         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16336         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16337         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16338         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16339         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16340         bits instead of 16 bits in the code1 and code2 of each composition
16341         rule.
16342         (uc_composition): Update for Unicode 5.2.0.
16343         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16344         * lib/uninorm/decomposition-table2.h: Likewise.
16345         * lib/uniwbrk/wbrkprop.h: Likewise.
16346         * tests/unicase/test-cased.c: Likewise.
16347         * tests/unicase/test-ignorable.c: Likewise.
16348         * tests/unicase/test-uc_tolower.c: Likewise.
16349         * tests/unicase/test-uc_totitle.c: Likewise.
16350         * tests/unicase/test-uc_toupper.c: Likewise.
16351         * tests/unictype/test-categ_C.c: Likewise.
16352         * tests/unictype/test-categ_Cf.c: Likewise.
16353         * tests/unictype/test-categ_Cn.c: Likewise.
16354         * tests/unictype/test-categ_L.c: Likewise.
16355         * tests/unictype/test-categ_Ll.c: Likewise.
16356         * tests/unictype/test-categ_Lm.c: Likewise.
16357         * tests/unictype/test-categ_Lo.c: Likewise.
16358         * tests/unictype/test-categ_Lu.c: Likewise.
16359         * tests/unictype/test-categ_M.c: Likewise.
16360         * tests/unictype/test-categ_Mc.c: Likewise.
16361         * tests/unictype/test-categ_Mn.c: Likewise.
16362         * tests/unictype/test-categ_N.c: Likewise.
16363         * tests/unictype/test-categ_Nd.c: Likewise.
16364         * tests/unictype/test-categ_Nl.c: Likewise.
16365         * tests/unictype/test-categ_No.c: Likewise.
16366         * tests/unictype/test-categ_P.c: Likewise.
16367         * tests/unictype/test-categ_Pd.c: Likewise.
16368         * tests/unictype/test-categ_Po.c: Likewise.
16369         * tests/unictype/test-categ_S.c: Likewise.
16370         * tests/unictype/test-categ_Sc.c: Likewise.
16371         * tests/unictype/test-categ_So.c: Likewise.
16372         * tests/unictype/test-ctype_alnum.c: Likewise.
16373         * tests/unictype/test-ctype_alpha.c: Likewise.
16374         * tests/unictype/test-ctype_graph.c: Likewise.
16375         * tests/unictype/test-ctype_lower.c: Likewise.
16376         * tests/unictype/test-ctype_print.c: Likewise.
16377         * tests/unictype/test-ctype_punct.c: Likewise.
16378         * tests/unictype/test-ctype_upper.c: Likewise.
16379         * tests/unictype/test-decdigit.h: Likewise.
16380         * tests/unictype/test-digit.h: Likewise.
16381         * tests/unictype/test-numeric.h: Likewise.
16382         * tests/unictype/test-pr_alphabetic.c: Likewise.
16383         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16384         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16385         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16386         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16387         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16388         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16389         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16390         * tests/unictype/test-pr_combining.c: Likewise.
16391         * tests/unictype/test-pr_composite.c: Likewise.
16392         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16393         * tests/unictype/test-pr_dash.c: Likewise.
16394         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16395         * tests/unictype/test-pr_deprecated.c: Likewise.
16396         * tests/unictype/test-pr_diacritic.c: Likewise.
16397         * tests/unictype/test-pr_extender.c: Likewise.
16398         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16399         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16400         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16401         * tests/unictype/test-pr_id_continue.c: Likewise.
16402         * tests/unictype/test-pr_id_start.c: Likewise.
16403         * tests/unictype/test-pr_ideographic.c: Likewise.
16404         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16405         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16406         * tests/unictype/test-pr_lowercase.c: Likewise.
16407         * tests/unictype/test-pr_numeric.c: Likewise.
16408         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16409         * tests/unictype/test-pr_punctuation.c: Likewise.
16410         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16411         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16412         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16413         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16414         * tests/unictype/test-pr_uppercase.c: Likewise.
16415         * tests/unictype/test-pr_xid_continue.c: Likewise.
16416         * tests/unictype/test-pr_xid_start.c: Likewise.
16417         * tests/unictype/test-pr_zero_width.c: Likewise.
16418         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16419         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16420         changed behaviour: line breaking is now disallowed between a letter
16421         or '=' and '('.
16422         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16423         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16424         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16425         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16426         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16427         lib/uniwidth/width.c.
16428         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16429         without comments, but with the original copyright notice.
16430         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16431         changes.
16432         * lib/unictype/categ_Cc.h: Likewise.
16433         * lib/unictype/categ_Co.h: Likewise.
16434         * lib/unictype/categ_Cs.h: Likewise.
16435         * lib/unictype/categ_Lt.h: Likewise.
16436         * lib/unictype/categ_Me.h: Likewise.
16437         * lib/unictype/categ_Pc.h: Likewise.
16438         * lib/unictype/categ_Pe.h: Likewise.
16439         * lib/unictype/categ_Pf.h: Likewise.
16440         * lib/unictype/categ_Pi.h: Likewise.
16441         * lib/unictype/categ_Ps.h: Likewise.
16442         * lib/unictype/categ_Sk.h: Likewise.
16443         * lib/unictype/categ_Sm.h: Likewise.
16444         * lib/unictype/categ_Z.h: Likewise.
16445         * lib/unictype/categ_Zl.h: Likewise.
16446         * lib/unictype/categ_Zp.h: Likewise.
16447         * lib/unictype/categ_Zs.h: Likewise.
16448         * lib/unictype/ctype_blank.h: Likewise.
16449         * lib/unictype/ctype_cntrl.h: Likewise.
16450         * lib/unictype/ctype_digit.h: Likewise.
16451         * lib/unictype/ctype_space.h: Likewise.
16452         * lib/unictype/ctype_xdigit.h: Likewise.
16453         * lib/unictype/mirror.h: Likewise.
16454         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16455         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16456         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16457         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16458         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16459         * lib/unictype/pr_bidi_control.h: Likewise.
16460         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16461         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16462         * lib/unictype/pr_bidi_pdf.h: Likewise.
16463         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16464         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16465         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16466         * lib/unictype/pr_format_control.h: Likewise.
16467         * lib/unictype/pr_hex_digit.h: Likewise.
16468         * lib/unictype/pr_hyphen.h: Likewise.
16469         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16470         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16471         * lib/unictype/pr_iso_control.h: Likewise.
16472         * lib/unictype/pr_join_control.h: Likewise.
16473         * lib/unictype/pr_left_of_pair.h: Likewise.
16474         * lib/unictype/pr_line_separator.h: Likewise.
16475         * lib/unictype/pr_math.h: Likewise.
16476         * lib/unictype/pr_non_break.h: Likewise.
16477         * lib/unictype/pr_not_a_character.h: Likewise.
16478         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16479         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16480         * lib/unictype/pr_other_id_continue.h: Likewise.
16481         * lib/unictype/pr_other_id_start.h: Likewise.
16482         * lib/unictype/pr_other_lowercase.h: Likewise.
16483         * lib/unictype/pr_other_math.h: Likewise.
16484         * lib/unictype/pr_other_uppercase.h: Likewise.
16485         * lib/unictype/pr_paired_punctuation.h: Likewise.
16486         * lib/unictype/pr_paragraph_separator.h: Likewise.
16487         * lib/unictype/pr_pattern_syntax.h: Likewise.
16488         * lib/unictype/pr_pattern_white_space.h: Likewise.
16489         * lib/unictype/pr_private_use.h: Likewise.
16490         * lib/unictype/pr_quotation_mark.h: Likewise.
16491         * lib/unictype/pr_radical.h: Likewise.
16492         * lib/unictype/pr_soft_dotted.h: Likewise.
16493         * lib/unictype/pr_space.h: Likewise.
16494         * lib/unictype/pr_titlecase.h: Likewise.
16495         * lib/unictype/pr_variation_selector.h: Likewise.
16496         * lib/unictype/pr_white_space.h: Likewise.
16497         * lib/unictype/sy_c_ident.h: Likewise.
16498         * lib/unictype/sy_c_whitespace.h: Likewise.
16499         * lib/unictype/sy_java_whitespace.h: Likewise.
16500         * modules/uni*/*: Bump version number of expected libunistring version.
16501         Reported by Simon Josefsson.
16502
16503 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16504
16505         useless-if-before-free: fix typo in --help and make the internal,
16506         automatic version date update process work once again.
16507         --help output contained a NUL character instead of the
16508         backslash-zero that was intended.  Also, the "must lie within
16509         the first 8 lines" line is on line 9, and hence not getting
16510         automatically updated.
16511         * build-aux/useless-if-before-free: Fix the former by adding a
16512         backslash, and the latter by condensing the three lines of what-it-does
16513         to a single line, leaving one line of slack for the future.
16514
16515 2011-01-09  Bruno Haible  <bruno@clisp.org>
16516
16517         uniwidth/width: Fix width of U+1D173..U+1D17A.
16518         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16519         symbolic_width, output_width_property_test): New functions.
16520         (main): Invoke output_nonspacing_property, output_width_property_test.
16521         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16522         U+1D173..U+1D17A.
16523         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16524         1.
16525         * modules/uniwidth/*: Bump version number of expected libunistring
16526         version.
16527         * modules/unilbrk/*: Likewise.
16528
16529 2011-01-08  Bruno Haible  <bruno@clisp.org>
16530
16531         uninorm tests: Preserve copyright of Unicode data file.
16532         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16533         Mention modifications.
16534
16535 2011-01-08  Bruno Haible  <bruno@clisp.org>
16536
16537         gen-uni-tables: Prepare for Unicode 5.2.0.
16538         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16539         (debug_output_lbp, output_lbp): Update.
16540
16541 2011-01-08  Bruno Haible  <bruno@clisp.org>
16542
16543         unilbrk: Clarify gen-uni-tables.c code.
16544         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16545         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16546         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16547
16548 2011-01-07  Bruno Haible  <bruno@clisp.org>
16549
16550         strtod: Restore errno when successfully parsing Infinity or NaN.
16551         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16552         restore the original errno.
16553
16554 2011-01-07  Bruno Haible  <bruno@clisp.org>
16555
16556         remove test: Avoid failure on HP-UX 11.
16557         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16558
16559 2011-01-07  Bruno Haible  <bruno@clisp.org>
16560
16561         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16562         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16563         error code.
16564
16565 2011-01-07  Pádraig Brady <P@draigBrady.com>
16566
16567         ignore-value: fixup comments, and add Eric Blake
16568         as an author since he rewrote the macros.
16569         * lib/ignore-value.h (ignore_value):  State that
16570         we now support aggregates.  Also specify exactly
16571         when the GCC warn_unused_result feature was added.
16572
16573 2011-01-06  Eric Blake  <eblake@redhat.com>
16574
16575         ignore-value: support aggregate types
16576         * lib/ignore-value.h (ignore_value): Provide separate gcc
16577         definition.
16578         * modules/ignore-value-tests: New test module.
16579         * tests/test-ignore-value.c: New test.
16580
16581         maint.mk: improve sc_prohibit_strcmp regex
16582         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16583         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16584         definition of STRNEQ.
16585
16586         signal: work around Haiku issue with SIGBUS
16587         * lib/siglist.h: Add comment.
16588         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16589         strsignal's favoring of SIGSEGV.
16590         * tests/test-signal.c (main): Avoid test failure.
16591         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16592         Reported by Scott McCreary.
16593
16594         maint.mk: add pre-release check to ensure submodule commits are public
16595         * top/maint.mk (public-submodule-commit): New rule.
16596         (submodule-checks): New variable.
16597         (alpha beta stable): Depend on the variable.
16598
16599 2011-01-05  Pádraig Brady <P@draigBrady.com>
16600         and Jim Meyering  <meyering@redhat.com>
16601
16602         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16603         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16604         (ATTRIBUTE_DEPRECATED): Define.
16605         (_ignore_case): New function.
16606         (ignore_value): New macro, to replace the old function.
16607         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16608         * modules/ignore-value (Depends-on): Add stdint.
16609
16610 2011-01-04  Eric Blake  <eblake@redhat.com>
16611
16612         doc: regenerate INSTALL
16613         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16614         @firstparagraphindent support, now that autoconf dropped it.
16615         (INSTALL_PRELUDE): Reinstate old macro.
16616         * doc/install.texi: Resync from autoconf.
16617         * doc/INSTALL: Reflect recent autoconf update.
16618         * doc/INSTALL.ISO: Likewise.
16619         * doc/INSTALL.UTF-8: Likewise.
16620         Reported by Karl Berry.
16621
16622 2011-01-04  Bruce Korb  <address@hidden>
16623
16624         git-version-gen: avoid a sub-shell
16625         * build-aux/git-version-gen: Redirect stderr in `...` via
16626         "exec 2>...", rather than via an added sub-shell.
16627
16628 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16629
16630         git-version-gen: use (...) rather than sh -c '...'
16631         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16632         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16633
16634 2011-01-03  Jim Meyering  <meyering@redhat.com>
16635
16636         git-version-gen: convert leading TABs to spaces
16637         * build-aux/git-version-gen: Expand leading TABs.
16638
16639         git-version-gen: handle failed "git rev-list"
16640         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16641         from git and proceeding as if it had succeeded but printed no SHA1
16642         checksums, suppress the diagnostic and handle the failure.
16643         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16644
16645         git-version-gen: include command name in one more diagnostic
16646         * build-aux/git-version-gen: When the required .tarball-version file
16647         was missing or unreadable, you might see the diagnostic from "cat",
16648         but no trace of the name of the invoking script.  Now, you still see
16649         the diagnostic from cat, but also get one from "git-version-gen: ".
16650         Inspired by a patch from Bruce Korb.
16651
16652         update-copyright: adjust test to match changed code
16653         * tests/test-update-copyright.sh: Change test's expected output
16654         to match new actual output.
16655
16656 2011-01-02  Bruno Haible  <bruno@clisp.org>
16657
16658         getlogin_r: Avoid test failure on HP-UX 11.
16659         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16660         ERANGE when the second argument is zero.
16661         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16662         portability problem.
16663
16664 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16665
16666         * build-aux/update-copyright: doc Simon's changes
16667
16668 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16669
16670         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16671         environment variable.
16672
16673 2011-01-02  Bruno Haible  <bruno@clisp.org>
16674
16675         unigbrk: Avoid gcc warnings.
16676         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16677         unused variable.
16678         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16679         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16680         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16681         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16682         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16683         Change type of first argument to 'const char *'.
16684         (main): Remove unused variable.
16685         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16686         type of first argument to 'const char *'.
16687         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16688         Likewise.
16689         (main): Change type of variable 's'.
16690         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16691         to 'int'.
16692
16693 2011-01-02  Bruno Haible  <bruno@clisp.org>
16694
16695         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16696         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16697         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16698         bug.
16699         * lib/pwrite.c: Undo 2010-12-31 patch.
16700         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16701
16702 2011-01-02  Bruno Haible  <bruno@clisp.org>
16703
16704         pread: Fix test whether it works.
16705         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16706
16707 2011-01-02  Bruno Haible  <bruno@clisp.org>
16708
16709         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16710         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16711         ends in "6". Don't require a specific month name. Try also the locale
16712         names found on HP-UX 11 and Solaris 7.
16713
16714 2011-01-02  Bruno Haible  <bruno@clisp.org>
16715
16716         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16717         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16718         C linkage.
16719         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16720
16721 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16722
16723         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16724         for consistency, since the "cluster" term is not used elsewhere.
16725         * lib/unigbrk.in.h: Update name.
16726         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16727         * lib/unigbrk/u16-grapheme-next.c: Update name.
16728         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16729         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16730         * lib/unigbrk/u32-grapheme-next.c: Update name.
16731         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16732         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16733         * lib/unigbrk/u8-grapheme-next.c: Update name.
16734         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16735         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16736         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16737         Suggested by Bruno Haible.
16738
16739 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16740
16741         Remove module 'u8-grapheme-len' as too redundant with
16742         'u8-grapheme-next'.
16743         * modules/unigbrk/u8-grapheme-len: Delete file.
16744         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16745         * lib/unigbrk.in.h: Remove prototype for deleted function.
16746         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16747         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16748
16749         Remove module 'u16-grapheme-len' as too redundant with
16750         'u16-grapheme-next'.
16751         * modules/unigbrk/u16-grapheme-len: Delete file.
16752         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16753         * lib/unigbrk.in.h: Remove prototype for deleted function.
16754         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16755         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16756
16757         Remove module 'u32-grapheme-len' as too redundant with
16758         'u32-grapheme-next'.
16759         * modules/unigbrk/u32-grapheme-len: Delete file.
16760         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16761         * lib/unigbrk.in.h: Remove prototype for deleted function.
16762         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16763         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16764
16765         Suggested by Bruno Haible.
16766
16767 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16768
16769         * unigbrk.in.h: Fix typo: "ben" => "been".
16770         Reported by Bruno Haible.
16771
16772 2011-01-01  Jim Meyering  <meyering@redhat.com>
16773
16774         maint: update almost all copyright ranges to include 2011
16775         Run the new "make update-copyright" rule.
16776
16777 2011-01-01  Jim Meyering  <meyering@redhat.com>
16778
16779         maint: update-copyright: exempt doc/INSTALL*
16780         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16781         since they are generated.  Suggested by Bruno Haible.
16782
16783 2011-01-01  Jim Meyering  <meyering@redhat.com>
16784
16785         maint: refine the update-copyright rule
16786         * Makefile (update-copyright): Also exclude any file that includes
16787         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16788         code that merely generates the comment.
16789
16790 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16791
16792         New module 'u8-grapheme-len'.
16793         * modules/unigbrk/u8-grapheme-len: New file.
16794         * modules/unigbrk/u8-grapheme-len-tests: New file.
16795         * lib/unigbrk.in.h: Add prototype for new function.
16796         * lib/unigbrk/u8-grapheme-len.c: New file.
16797         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16798
16799         New module 'u16-grapheme-len'.
16800         * modules/unigbrk/u16-grapheme-len: New file.
16801         * modules/unigbrk/u16-grapheme-len-tests: New file.
16802         * lib/unigbrk.in.h: Add prototype for new function.
16803         * lib/unigbrk/u16-grapheme-len.c: New file.
16804         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16805
16806         New module 'u32-grapheme-len'.
16807         * modules/unigbrk/u32-grapheme-len: New file.
16808         * modules/unigbrk/u32-grapheme-len-tests: New file.
16809         * lib/unigbrk.in.h: Add prototype for new function.
16810         * lib/unigbrk/u32-grapheme-len.c: New file.
16811         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16812
16813         New module 'u8-grapheme-next'.
16814         * modules/unigbrk/u8-grapheme-next: New file.
16815         * modules/unigbrk/u8-grapheme-next-tests: New file.
16816         * lib/unigbrk.in.h: Add prototype for new function.
16817         * lib/unigbrk/u8-grapheme-next.c: New file.
16818         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16819
16820         New module 'u16-grapheme-next'.
16821         * modules/unigbrk/u16-grapheme-next: New file.
16822         * modules/unigbrk/u16-grapheme-next-tests: New file.
16823         * lib/unigbrk.in.h: Add prototype for new function.
16824         * lib/unigbrk/u16-grapheme-next.c: New file.
16825         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16826
16827         New module 'u32-grapheme-next'.
16828         * modules/unigbrk/u32-grapheme-next: New file.
16829         * modules/unigbrk/u32-grapheme-next-tests: New file.
16830         * lib/unigbrk.in.h: Add prototype for new function.
16831         * lib/unigbrk/u32-grapheme-next.c: New file.
16832         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16833
16834         New module 'u8-grapheme-prev'.
16835         * modules/unigbrk/u8-grapheme-prev: New file.
16836         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16837         * lib/unigbrk.in.h: Add prototype for new function.
16838         * lib/unigbrk/u8-grapheme-prev.c: New file.
16839         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16840
16841         New module 'u16-grapheme-prev'.
16842         * modules/unigbrk/u16-grapheme-prev: New file.
16843         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16844         * lib/unigbrk.in.h: Add prototype for new function.
16845         * lib/unigbrk/u16-grapheme-prev.c: New file.
16846         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16847
16848         New module 'u32-grapheme-prev'.
16849         * modules/unigbrk/u32-grapheme-prev: New file.
16850         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16851         * lib/unigbrk.in.h: Add prototype for new function.
16852         * lib/unigbrk/u32-grapheme-prev.c: New file.
16853         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16854
16855         New module 'u8-grapheme-breaks'.
16856         * modules/unigbrk/u8-grapheme-breaks: New file.
16857         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16858         * lib/unigbrk.in.h: Add prototype for new function.
16859         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16860         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16861
16862         New module 'u16-grapheme-breaks'.
16863         * modules/unigbrk/u16-grapheme-breaks: New file.
16864         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16865         * lib/unigbrk.in.h: Add prototype for new function.
16866         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16867         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16868
16869         New module 'u32-grapheme-breaks'.
16870         * modules/unigbrk/u32-grapheme-breaks: New file.
16871         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16872         * lib/unigbrk.in.h: Add prototype for new function.
16873         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16874         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16875
16876         New module 'ulc-grapheme-breaks'.
16877         * modules/unigbrk/ulc-grapheme-breaks: New file.
16878         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16879         * m4/locale-ar.m4: New file.
16880         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16881         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16882         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16883
16884 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16885
16886         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16887         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16888         modified how this file was generated before I initially submitted
16889         the module, but failed to regenerate it.  This meant that several
16890         of the level2 entries were wrong.
16891         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16892         Remove the division-by-2 that is folded into the table now that
16893         gbrkprop.h has been regenerated properly.  Now -1 entries are
16894         handled correctly.
16895
16896         New module 'unigbrk/uc-gbrk-prop-tests'.
16897         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16898         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16899         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16900         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16901
16902 2011-01-01  Bruno Haible  <bruno@clisp.org>
16903
16904         Avoid use of hexadecimal escapes.
16905         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16906         instead of hexadecimal escapes.
16907
16908 2011-01-01  Jim Meyering  <meyering@redhat.com>
16909
16910         maint: new rule to update copyright year ranges
16911         * Makefile (update-copyright): New rule.
16912
16913         maint: indent with TABs in Makefile
16914         * Makefile: Expand leading sequences of spaces to TABs
16915
16916         version-etc: update the copyright year it reports
16917         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16918
16919 2010-12-31  Bruno Haible  <bruno@clisp.org>
16920
16921         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16922         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16923         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16924         zero.
16925
16926 2010-12-31  Bruno Haible  <bruno@clisp.org>
16927
16928         pwrite: Work around HP-UX 11.11 bug.
16929         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16930         works and set REPLACE_PWRITE if not.
16931         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16932         function.
16933         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16934
16935 2010-12-31  Bruno Haible  <bruno@clisp.org>
16936
16937         pread: Work around HP-UX 11 bugs.
16938         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16939         and set REPLACE_PREAD if not.
16940         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16941
16942 2010-12-31  Eric Blake  <eblake@redhat.com>
16943
16944         nl_langinfo: fix YESEXPR on Irix 6.5
16945         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16946         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16947         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16948         it.
16949
16950 2010-12-31  Bruno Haible  <bruno@clisp.org>
16951
16952         iconv: Document HP-UX 11 bug.
16953         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16954
16955 2010-12-31  Bruno Haible  <bruno@clisp.org>
16956
16957         ldexpl: Fix link error on HP-UX 11.
16958         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16959         LDEXPL_LIBM, using $ISNANL_LIBM.
16960
16961 2010-12-31  Eric Blake  <eblake@redhat.com>
16962
16963         ftello: avoid compilation failure with SunStudio c89
16964         * lib/ftello.c (ftello): Use lseek, not llseek.
16965
16966         tests: avoid failing coreutils tests on cygwin
16967         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16968         (create_exe_shims_): Return 0 when skipping.
16969
16970 2010-12-31  Bruno Haible  <bruno@clisp.org>
16971
16972         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16973         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16974
16975 2010-12-31  Bruno Haible  <bruno@clisp.org>
16976
16977         waitpid: Fix link error in C++ mode.
16978         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16979
16980 2010-12-31  Bruno Haible  <bruno@clisp.org>
16981
16982         isnan: Use GCC built-ins when possible.
16983         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16984         __builtin_isnan.
16985         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16986         (isnan): Define using GCC built-ins for GCC >= 4.0.
16987
16988 2010-12-31  Bruno Haible  <bruno@clisp.org>
16989
16990         isnand: Fix mistake.
16991         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16992         __builtin_isnand.
16993
16994 2010-12-31  Bruno Haible  <bruno@clisp.org>
16995
16996         open: Avoid C++ error on HP-UX 11.
16997         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16998
16999 2010-12-31  Bruno Haible  <bruno@clisp.org>
17000
17001         time_r: Add missing declarations on HP-UX 11.
17002         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17003         instead of HAVE_LOCALTIME_R.
17004         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17005         HAVE_LOCALTIME_R always.
17006         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17007         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17008         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17009         HAVE_LOCALTIME_R.
17010         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17011         * doc/posix-functions/localtime_r.texi: Likewise.
17012
17013 2010-12-29  Eric Blake  <eblake@redhat.com>
17014
17015         mountlist: tweak previous commit
17016         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17017         Reported by Paul Eggert.
17018
17019         mountlist: fix local drive detection on cygwin
17020         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17021         that works for cygwin.
17022
17023 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17024
17025         ftoastr, snprintf: ftoastr + snprintf module
17026         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17027         since the snprintf module now should be good enough here.
17028         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17029         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17030         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17031         GNULIB_SNPRINTF only for the test directory, and the latter
17032         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17033         seems to suffice by itself.
17034
17035 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17036
17037         alloca: one step towards thread-safety
17038         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17039         need for a static variable.  All callers changed.  This does not
17040         make the alloca replacement thread-safe, but it's one step.
17041
17042         tests: minor indenting change
17043         * tests/init.sh: Sync from coreutils housekeeping patch
17044         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17045         to keep lines within 80 columns.
17046
17047 2010-12-28  Jim Meyering  <meyering@redhat.com>
17048
17049         regex: don't infloop on persistent failing calloc
17050         * lib/regexec.c (build_trtable): Return failure indication upon
17051         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17052         In glibc, this was fixed for version 2.13:
17053         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17054
17055 2010-12-28  Bruno Haible  <bruno@clisp.org>
17056             Paul Eggert <eggert@cs.ucla.edu>
17057
17058         linkat: Make implementation robust against system behaviour variations.
17059         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17060         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17061         way, and to -2 if it needs a generic runtime test.
17062         * lib/linkat.c (solaris_optimized_link_immediate,
17063         solaris_optimized_link_follow): New functions.
17064         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17065         (check_same_link): Use it.
17066
17067 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17068
17069         New module 'unigbrk/base'.
17070         * modules/unigbrk/base: New file.
17071         * lib/unigbrk.in.h: New file.
17072
17073         New module 'unigbrk/uc-gbrk-prop'.
17074         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17075         * modules/unigbrk/uc-gbrk-prop: New file.
17076         * lib/unigbrk/gbrkprop.h: New file.
17077         * lib/unigbrk/uc-gbrk-prop.c: New file.
17078
17079         New module 'unigbrk/uc-is-grapheme-break'.
17080         * modules/unigbrk/uc-is-grapheme-break: New file.
17081         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17082         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17083         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17084         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17085         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17086
17087         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17088
17089 2010-12-27  Bruno Haible  <bruno@clisp.org>
17090
17091         linkat test: Avoid failure on Solaris 11 2010-11.
17092         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17093
17094 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17095
17096         utimens: work around glibc rounding bug on more platforms
17097         * lib/utimens.c (fdutimens): Work around rounding bug even if
17098         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17099         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17100
17101 2010-12-27  Bruno Haible  <bruno@clisp.org>
17102
17103         select tests: Improve comments.
17104         * tests/test-select.c (do_select): Add comments.
17105
17106 2010-12-27  Bruno Haible  <bruno@clisp.org>
17107
17108         select tests: Safer way of handling timeout.
17109         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17110         at every invocation.
17111
17112 2010-12-27  Bruno Haible  <bruno@clisp.org>
17113
17114         select tests: Use 'bool' where appropriate.
17115         * tests/test-select.c (connect_to_socket): Change argument type to
17116         'bool'.
17117
17118 2010-12-27  Bruno Haible  <bruno@clisp.org>
17119
17120         select tests: Use existing modules.
17121         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17122         (configure.ac): Don't test for unistd.h.
17123         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17124         declared in <unistd.h>.
17125
17126 2010-12-27  Bruno Haible  <bruno@clisp.org>
17127
17128         mbrtowc: Work around a Solaris 7 bug.
17129         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17130         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17131         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17132         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17133         MBRTOWC_NULL_ARG1_BUG.
17134         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17135         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17136         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17137         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17138
17139 2010-12-27  Jim Meyering  <meyering@redhat.com>
17140
17141         read-file.c: tweak syntax
17142         * lib/read-file.c (fread_file): Remove space after "*" in function
17143         definitions.
17144
17145 2010-12-27  Bruno Haible  <bruno@clisp.org>
17146
17147         times test: Avoid gcc warnings on OSF/1.
17148         * tests/test-times.c (main): Cast printf arguments from clock_t to
17149         'long int'.
17150
17151 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17152
17153         utimens: work around glibc rounding bug on older Linux kernels
17154         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17155         on Linux with a glibc whose utimes might not work, then work
17156         around a longstanding glibc bug involving rounding rather than
17157         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17158         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17159
17160 2010-12-26  Bruno Haible  <bruno@clisp.org>
17161
17162         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17163         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17164         _GL_CXXALIAS_SYS.
17165         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17166
17167 2010-12-26  Bruno Haible  <bruno@clisp.org>
17168
17169         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17170         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17171         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17172         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17173         looking for the declaration.
17174         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17175         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17176         problem.
17177         * doc/posix-functions/inet_pton.texi: Likewise.
17178
17179 2010-12-26  Bruno Haible  <bruno@clisp.org>
17180
17181         arpa_inet: Use the common idioms with C++ support.
17182         * lib/arpa_inet.in.h: Include c++defs.h.
17183         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17184         support.
17185         * modules/arpa_inet (Depends-on): Add c++defs.
17186         (Makefile.am): Substitute the contents of c++defs.h.
17187         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17188         * modules/arpa_inet-c++-tests: New file.
17189         * tests/test-arpa_inet-c++.cc: New file.
17190
17191 2010-12-25  Bruno Haible  <bruno@clisp.org>
17192
17193         Fix more C++ link errors on Solaris 8.
17194         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17195         $(LIB_EACCESS).
17196         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17197         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17198         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17199         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17200         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17201
17202 2010-12-25  Bruno Haible  <bruno@clisp.org>
17203
17204         printf-posix: Fix link error when a non-GCC compiler is used.
17205         * lib/stdio.in.h (printf): When not using GCC, override printf
17206         correctly.
17207         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17208
17209 2010-12-25  Bruno Haible  <bruno@clisp.org>
17210
17211         strerror_r-posix: Update doc.
17212         * doc/posix-functions/strerror_r.texi: Update doc about the return
17213         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17214
17215 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17216
17217         utimens: simplify the logic of the previous change
17218         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17219         This should not affect whether the test succeeds or fails.
17220
17221         utimens: configure better on hosts with NFS clock skew
17222         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17223         uses the clock of the local host.  It might use the clock of the
17224         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17225         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17226
17227 2010-12-25  Bruno Haible  <bruno@clisp.org>
17228
17229         ptsname test: Avoid failure on Solaris.
17230         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17231         open a pseudo-terminal; don't use BSD-style ptys.
17232         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17233
17234 2010-12-25  Bruno Haible  <bruno@clisp.org>
17235
17236         ptsname: Avoid ERANGE failure on some systems.
17237         * lib/ptsname.c (buffer): Increase size.
17238
17239 2010-12-25  Bruno Haible  <bruno@clisp.org>
17240
17241         rename, renameat: Avoid test failures at NFS mounted locations.
17242         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17243         so that subsequent mkdir calls succeed.
17244
17245 2010-12-25  Bruno Haible  <bruno@clisp.org>
17246
17247         iswblank: Fix C++ link error on Solaris 8.
17248         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17249         _GL_FUNCDECL_SYS.
17250
17251 2010-12-25  Bruno Haible  <bruno@clisp.org>
17252
17253         unistd: Fix C++ link error on Solaris 8.
17254         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17255
17256 2010-12-25  Bruno Haible  <bruno@clisp.org>
17257
17258         readlink doc: Mention an old glibc bug.
17259         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17260
17261 2010-12-25  Bruno Haible  <bruno@clisp.org>
17262
17263         fcntl-h: Fix for use of C++ on glibc systems.
17264         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17265         also on glibc systems in C++ mode.
17266         Reported by Gary V. Vaughan <gary@gnu.org>.
17267
17268 2010-12-25  Bruno Haible  <bruno@clisp.org>
17269
17270         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17271         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17272
17273 2010-12-25  Bruno Haible  <bruno@clisp.org>
17274
17275         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17276         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17277         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17278         test whether truncl works according to ISO C 99 with IEC 60559.
17279         * m4/truncl-ieee.m4: New file.
17280         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17281         m4/signbit.m4.
17282         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17283
17284 2010-12-25  Bruno Haible  <bruno@clisp.org>
17285
17286         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17287         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17288         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17289         test whether ceill works according to ISO C 99 with IEC 60559.
17290         * m4/ceill-ieee.m4: New file.
17291         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17292         m4/signbit.m4.
17293         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17294
17295 2010-12-25  Bruno Haible  <bruno@clisp.org>
17296
17297         Ensure all prerequisites of <wchar.h> are included.
17298         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17299         before <wchar.h>.
17300         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17301         gl_MBRLEN_NUL_RETVAL): Likewise.
17302         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17303         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17304         AC_FUNC_MBRTOWC): Likewise.
17305         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17306         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17307         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17308         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17309         Likewise.
17310         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17311         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17312         (gl_WCHAR_H): Improve comments.
17313         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17314
17315 2010-12-25  Bruno Haible  <bruno@clisp.org>
17316
17317         strtok_r: Fix C syntax error in autoconf macro.
17318         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17319         characters in test program.
17320
17321 2010-12-24  Bruno Haible  <bruno@clisp.org>
17322
17323         ceil, trunc, round: Fix gcc warnings.
17324         * lib/ceil.c (MIN): Undefine before redefining.
17325         * lib/trunc.c (MIN): Likewise.
17326         * lib/round.c (MIN): Likewise.
17327         Include <math.h> first.
17328
17329 2010-12-24  Bruno Haible  <bruno@clisp.org>
17330
17331         select tests: Avoid failures on OSF/1 5.1.
17332         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17333         failure of closing the last socket; it may fail with ECONNRESET.
17334
17335 2010-12-24  Eric Blake  <eblake@redhat.com>
17336
17337         stdint: avoid HP-UX 10.20 preprocessor bug
17338         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17339         than #if.
17340         * tests/test-floor2.c (main): Likewise.
17341         Reported by Peter O'Gorman.
17342
17343         pipe: make obsoletion transition easier
17344         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17345         * modules/pipe (Files): Include revived file.
17346         (Include): Drop reference, to mirror getdate's behavior.
17347
17348 2010-12-24  Bruno Haible  <bruno@clisp.org>
17349
17350         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17351         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17352         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17353         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17354
17355 2010-12-24  Bruno Haible  <bruno@clisp.org>
17356
17357         gethostname: Ensure declaration on NonStop Kernel.
17358         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17359         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17360
17361 2010-12-24  Bruno Haible  <bruno@clisp.org>
17362
17363         sys_select: Ensure all necessary types on NonStop Kernel.
17364         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17365         include <sys/time.h>.
17366         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17367         NonStop Kernel.
17368         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17369
17370 2010-12-24  Bruno Haible  <bruno@clisp.org>
17371
17372         sys_select: Remove unneeded include.
17373         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17374         have <sys/select.h>.
17375
17376 2010-12-24  Bruno Haible  <bruno@clisp.org>
17377
17378         gethostname: Provide a fallback for HOST_NAME_MAX.
17379         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17380         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17381         instead.
17382         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17383
17384 2010-12-24  Bruno Haible  <bruno@clisp.org>
17385
17386         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17387         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17388         (SA_RESTART): Likewise.
17389         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17390
17391 2010-12-24  Bruno Haible  <bruno@clisp.org>
17392
17393         signal: Define NSIG.
17394         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17395         * tests/test-signal.c (nsig): New variable.
17396         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17397
17398 2010-12-24  Bruno Haible  <bruno@clisp.org>
17399
17400         rename, renameat: Avoid test failures on OSF/1 5.1.
17401         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17402         alternative error codes.
17403         * tests/test-renameat.c (main): Likewise.
17404
17405 2010-12-24  Bruno Haible  <bruno@clisp.org>
17406
17407         *printf: Detect large precisions bug on Solaris 10/SPARC.
17408         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17409         by Paul Eggert.
17410         * tests/test-snprintf-posix.h (test_function): Add this test code here
17411         too.
17412         * tests/test-sprintf-posix.h (test_function): Likewise.
17413         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17414         * tests/test-vasprintf-posix.c (test_function): Likewise.
17415         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17416         around by gnulib.
17417         * doc/posix-functions/printf.texi: Likewise.
17418         * doc/posix-functions/snprintf.texi: Likewise.
17419         * doc/posix-functions/sprintf.texi: Likewise.
17420         * doc/posix-functions/vfprintf.texi: Likewise.
17421         * doc/posix-functions/vprintf.texi: Likewise.
17422         * doc/posix-functions/vsnprintf.texi: Likewise.
17423         * doc/posix-functions/vsprintf.texi: Likewise.
17424         * doc/posix-functions/dprintf.texi: Undo last commit.
17425         * doc/posix-functions/vdprintf.texi: Likewise.
17426
17427 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17428
17429         tests: port test-fdutimensat.c to Solaris 8
17430         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17431         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17432         On Solaris 8, it fails with errno == ENOSYS, because there is no
17433         futimens (so it can't use the fd), and there is no lutimens (so it
17434         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17435
17436         vsnprintf: make more consistent with snprintf; doc fixes
17437
17438         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17439         the byte count return problem was promoted from the snprintf-posix
17440         to the snprintf module.
17441         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17442         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17443         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17444         * tests/test-snprintf.c (main): Check the byte count returned.
17445         * tests/test-vsnprintf.c (main): Likewise.
17446
17447 2010-12-23  Eric Blake  <eblake@redhat.com>
17448
17449         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17450         * modules/sigpipe (License): Relax license.
17451
17452 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17453
17454         doc: document Solaris printf bug with large float precisions
17455         * doc/posix-functions/dprintf.texi (dprintf):
17456         * doc/posix-functions/fprintf.texi (fprintf):
17457         * doc/posix-functions/printf.texi (printf):
17458         * doc/posix-functions/snprintf.texi (snprintf):
17459         * doc/posix-functions/sprintf.texi (sprintf):
17460         * doc/posix-functions/vdprintf.texi (vdprintf):
17461         * doc/posix-functions/vfprintf.texi (vfprintf):
17462         * doc/posix-functions/vprintf.texi (vprintf):
17463         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17464         * doc/posix-functions/vsprintf.texi (vsprintf):
17465         Mention that these functions mishandle large floating point
17466         precisions on Solaris 10.  The same bug is also present in Solaris
17467         8, and I assume earlier.  This causes "cd gnulib-tests; make
17468         check" to fail on Solaris 8 (and I assume, later) when building
17469         the latest coreutils, in test-vasprintf-posix's call to
17470         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17471         the wide flavors (e.g., wprintf) so this patch just updates the
17472         documentation for the narrow ones.
17473
17474         test-posixtm.c: add two tests
17475         * tests/test-posixtm.c: Add two tests, to highlight the
17476         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17477         around this bug; this is merely to document it.
17478
17479 2010-12-22  Bruno Haible  <bruno@clisp.org>
17480
17481         getlogin_r: Work around portability problem on OSF/1.
17482         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17483         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17484         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17485         test for a truncated result.
17486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17487         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17488         * modules/getlogin_r (Depends-on): Add memchr.
17489         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17490
17491 2010-12-22  Bruno Haible  <bruno@clisp.org>
17492
17493         ptsname: Avoid test failure on OSF/1 5.1.
17494         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17495         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17496         (same_slave): New function.
17497         (main): Use it to compare ptsname's result with the expected file name.
17498
17499 2010-12-22  Bruno Haible  <bruno@clisp.org>
17500
17501         Port extended stdio modules to HP NonStop Kernel.
17502         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17503         macros.
17504         * lib/fbufmode.c: Update comments.
17505         * lib/fflush.c: Likewise.
17506         * lib/fpurge.c: Likewise.
17507         * lib/freadable.c: Likewise.
17508         * lib/freadahead.c: Likewise.
17509         * lib/freading.c: Likewise.
17510         * lib/freadptr.c: Likewise.
17511         * lib/freadseek.c: Likewise.
17512         * lib/fseeko.c: Likewise.
17513         * lib/fseterr.c: Likewise.
17514         * lib/fwritable.c: Likewise.
17515         * lib/fwriting.c: Likewise.
17516         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17517
17518 2010-12-22  Bruno Haible  <bruno@clisp.org>
17519
17520         ttyname_r: Work around bug on OSF/1 5.1.
17521         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17522         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17523         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17524         present.
17525         * lib/ttyname_r.c (ttyname_r): Update comments.
17526
17527 2010-12-22  Bruno Haible  <bruno@clisp.org>
17528
17529         round: Implement result sign according to IEEE 754.
17530         * lib/round.c (MIN, MINUS_ZERO): New macros.
17531         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17532         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17533         * tests/test-round-ieee.c (main): Likewise.
17534         * tests/test-roundl-ieee.c (main): Likewise.
17535
17536         trunc: Implement result sign according to IEEE 754.
17537         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17538         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17539         * tests/test-trunc2.c: Include minus-zero.h.
17540         (MINUS_ZERO): New macro.
17541         (trunc_reference): Keep in sync with lib/trunc.c.
17542         * tests/test-truncf2.c: Include minus-zero.h.
17543         (MINUS_ZERO): New macro.
17544         (truncf_reference): Keep in sync with lib/trunc.c.
17545         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17546         * tests/test-trunc-ieee.c (main): Likewise.
17547         * tests/test-truncl-ieee.c (main): Likewise.
17548
17549         ceil: Implement result sign according to IEEE 754.
17550         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17551         (FUNC): Return -0.0 for -1 < x < 0.
17552         * tests/test-ceil2.c: Include minus-zero.h.
17553         (MINUS_ZERO): New macro.
17554         (ceil_reference): Keep in sync with lib/ceil.c.
17555         * tests/test-ceilf2.c: Include minus-zero.h.
17556         (MINUS_ZERO): New macro.
17557         (ceilf_reference): Keep in sync with lib/ceil.c.
17558         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17559         * tests/test-ceil-ieee.c (main): Likewise.
17560         * tests/test-ceill-ieee.c (main): Likewise.
17561
17562         floor: Implement result sign according to IEEE 754.
17563         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17564         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17565         * tests/test-floorf2.c (floorf_reference): Likewise.
17566         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17567         * tests/test-floor-ieee.c (main): Likewise.
17568         * tests/test-floorl-ieee.c (main): Likewise.
17569
17570 2010-12-22  Bruno Haible  <bruno@clisp.org>
17571
17572         getaddrinfo: Update doc.
17573         * doc/posix-functions/gai_strerror.texi: Return type is also different
17574         on AIX and HP-UX.
17575
17576 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17577
17578         getaddrinfo, inet_ntop: Update doc for Solaris.
17579         * doc/posix-functions/gai_strerror.texi: Return type is also an
17580         issue on Solaris 9 and earlier.
17581         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17582         on Solaris 10 and earlier.
17583
17584 2010-12-21  Bruno Haible  <bruno@clisp.org>
17585
17586         New module 'roundl-ieee'.
17587         * modules/roundl-ieee: New file.
17588         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17589         test whether roundl works according to ISO C 99 with IEC 60559.
17590         * m4/roundl-ieee.m4: New file.
17591         * modules/roundl-ieee-tests: New file.
17592         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17593         * tests/test-roundl.c (main): Remove signbit tests.
17594         * modules/roundl-tests (Depends-on): Remove signbit.
17595         * doc/posix-functions/roundl.texi: Mention the new module.
17596
17597 2010-12-21  Bruno Haible  <bruno@clisp.org>
17598
17599         New module 'truncl-ieee'.
17600         * modules/truncl-ieee: New file.
17601         * modules/truncl-ieee-tests: New file.
17602         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17603         * tests/test-truncl.c (main): Remove signbit tests.
17604         * modules/truncl-tests (Depends-on): Remove signbit.
17605         * doc/posix-functions/truncl.texi: Mention the new module.
17606
17607 2010-12-21  Bruno Haible  <bruno@clisp.org>
17608
17609         New module 'ceill-ieee'.
17610         * modules/ceill-ieee: New file.
17611         * modules/ceill-ieee-tests: New file.
17612         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17613         * tests/test-ceill.c (main): Remove signbit tests.
17614         * modules/ceill-tests (Depends-on): Remove signbit.
17615         * doc/posix-functions/ceill.texi: Mention the new module.
17616
17617 2010-12-21  Bruno Haible  <bruno@clisp.org>
17618
17619         New module 'floorl-ieee'.
17620         * modules/floorl-ieee: New file.
17621         * modules/floorl-ieee-tests: New file.
17622         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17623         * tests/test-floorl.c (main): Remove signbit tests.
17624         * modules/floorl-tests (Depends-on): Remove signbit.
17625         * doc/posix-functions/floorl.texi: Mention the new module.
17626
17627 2010-12-21  Bruno Haible  <bruno@clisp.org>
17628
17629         New module 'round-ieee'.
17630         * modules/round-ieee: New file.
17631         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17632         whether round works according to ISO C 99 with IEC 60559.
17633         * m4/round-ieee.m4: New file.
17634         * modules/round-ieee-tests: New file.
17635         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17636         * tests/test-round1.c (main): Remove signbit tests.
17637         * modules/round-tests (Depends-on): Remove 'signbit'.
17638         * doc/posix-functions/round.texi: Mention the new module.
17639
17640 2010-12-21  Bruno Haible  <bruno@clisp.org>
17641
17642         New module 'trunc-ieee'.
17643         * modules/trunc-ieee: New file.
17644         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17645         whether trunc works according to ISO C 99 with IEC 60559.
17646         * m4/trunc-ieee.m4: New file.
17647         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17649         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17650         * modules/trunc-ieee-tests: New file.
17651         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17652         * tests/test-trunc1.c (main): Remove signbit tests.
17653         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17654         * doc/posix-functions/trunc.texi: Mention the new module.
17655
17656 2010-12-21  Bruno Haible  <bruno@clisp.org>
17657
17658         New module 'ceil-ieee'.
17659         * modules/ceil-ieee: New file.
17660         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17661         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17662         ISO C 99 with IEC 60559.
17663         * m4/ceil-ieee.m4: New file.
17664         * modules/ceil (Files): Add lib/ceil.c.
17665         (Depends-on): Add 'float'.
17666         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17667         * lib/math.in.h (ceil): New declaration.
17668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17669         REPLACE_CEIL.
17670         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17671         * modules/ceil-ieee-tests: New file.
17672         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17673         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17674         * doc/posix-functions/ceil.texi: Mention the new module.
17675
17676 2010-12-21  Bruno Haible  <bruno@clisp.org>
17677
17678         New module 'floor-ieee'.
17679         * modules/floor-ieee: New file.
17680         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17681         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17682         ISO C 99 with IEC 60559.
17683         * m4/floor-ieee.m4: New file.
17684         * modules/floor (Files): Add lib/floor.c.
17685         (Depends-on): Add 'float'.
17686         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17687         * lib/math.in.h (floor): New declaration.
17688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17689         REPLACE_FLOOR.
17690         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17691         * modules/floor-ieee-tests: New file.
17692         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17693         * tests/test-math-c++.cc: Check the signature of 'floor'.
17694         * doc/posix-functions/floor.texi: Mention the new module.
17695
17696 2010-12-21  Bruno Haible  <bruno@clisp.org>
17697
17698         New module 'roundf-ieee'.
17699         * modules/roundf-ieee: New file.
17700         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17701         test whether roundf works according to ISO C 99 with IEC 60559.
17702         * m4/roundf-ieee.m4: New file.
17703         * modules/roundf-ieee-tests: New file.
17704         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17705         * tests/test-roundf1.c (main): Remove signbit tests.
17706         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17707         * doc/posix-functions/roundf.texi: Mention the new module.
17708
17709 2010-12-21  Bruno Haible  <bruno@clisp.org>
17710
17711         New module 'truncf-ieee'.
17712         * modules/truncf-ieee: New file.
17713         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17714         test whether truncf works according to ISO C 99 with IEC 60559.
17715         * m4/truncf-ieee.m4: New file.
17716         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17718         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17719         * modules/truncf-ieee-tests: New file.
17720         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17721         * tests/test-truncf1.c (main): Remove signbit tests.
17722         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17723         * doc/posix-functions/truncf.texi: Mention the new module.
17724
17725 2010-12-21  Bruno Haible  <bruno@clisp.org>
17726
17727         New module 'ceilf-ieee'.
17728         * modules/ceilf-ieee: New file.
17729         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17730         test whether ceilf works according to ISO C 99 with IEC 60559.
17731         * m4/ceilf-ieee.m4: New file.
17732         * modules/ceilf-ieee-tests: New file.
17733         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17734         * tests/test-ceilf1.c (main): Remove signbit tests.
17735         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17736         * doc/posix-functions/ceilf.texi: Mention the new module.
17737
17738 2010-12-21  Bruno Haible  <bruno@clisp.org>
17739
17740         New module 'floorf-ieee'.
17741         * modules/floorf-ieee: New file.
17742         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17743         test whether floorf works according to ISO C 99 with IEC 60559.
17744         * m4/floorf-ieee.m4: New file.
17745         * modules/floorf-ieee-tests: New file.
17746         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17747         * tests/test-floorf1.c (main): Remove signbit tests.
17748         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17749         * doc/posix-functions/floorf.texi: Mention the new module.
17750
17751 2010-12-21  Bruno Haible  <bruno@clisp.org>
17752
17753         Support for minus zero in autoconf macros.
17754         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17755         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17756         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17757         * tests/minus-zero.h: Update comments.
17758
17759 2010-12-21  Bruno Haible  <bruno@clisp.org>
17760
17761         Tests for module 'ceil'.
17762         * modules/ceil-tests: New file.
17763         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17764         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17765
17766 2010-12-21  Bruno Haible  <bruno@clisp.org>
17767
17768         Tests for module 'floor'.
17769         * modules/floor-tests: New file.
17770         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17771         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17772
17773 2010-12-21  Bruno Haible  <bruno@clisp.org>
17774
17775         math: Fix indentation.
17776         * lib/math.in.h (floorf): Fix indentation.
17777
17778 2010-12-21  Bruno Haible  <bruno@clisp.org>
17779
17780         Fix cross-compilation guesses on Solaris.
17781         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17782         not match "solaris2.10".
17783         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17784         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17785         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17786
17787 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17788
17789         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17790         This fixes a problem observed with the latest coreutils snapshot
17791         that caused a test to fail on Solaris 8.  src/csplit.c's call
17792         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17793         earlier, instead of returning the number of bytes that would have
17794         been generated; this causes csplit to incorrectly report memory
17795         exhaustion.
17796         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17797         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17798         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17799         comments to match.
17800         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17801         Fix typo in matching older versions of Solaris: "solaris2.10"
17802         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17803         only for guessing while cross-compiling.
17804         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17805
17806 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17807
17808         ftoastr: fix comment again
17809         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17810         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17811         Also, simplify example a bit by using flags = 0.
17812
17813 2010-12-20  Bruno Haible  <bruno@clisp.org>
17814
17815         round*, trunc*: Update documentation regarding glibc.
17816         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17817         * doc/posix-functions/round.texi: Likewise.
17818         * doc/posix-functions/roundl.texi: Likewise.
17819         * doc/posix-functions/truncf.texi: Likewise.
17820         * doc/posix-functions/trunc.texi: Likewise.
17821         * doc/posix-functions/truncl.texi: Likewise.
17822
17823 2010-12-20  Bruno Haible  <bruno@clisp.org>
17824
17825         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17826         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17827         * doc/posix-functions/round.texi: Likewise.
17828         * doc/posix-functions/roundl.texi: Likewise.
17829
17830 2010-12-20  Bruno Haible  <bruno@clisp.org>
17831
17832         ttyname_r: Add missing declaration on HP-UX 11.
17833         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17834         HAVE_TTYNAME_R.
17835         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17836         declared. Set HAVE_TTYNAME_R always.
17837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17838         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17839         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17840         HAVE_TTYNAME_R.
17841         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17842
17843 2010-12-20  Bruno Haible  <bruno@clisp.org>
17844
17845         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17846         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17847         * doc/posix-functions/getlogin_r.texi: Likewise.
17848         * tests/test-getlogin.c: Include <errno.h>.
17849         (main): Avoid test failure on HP-UX 11.11.
17850         * tests/test-getlogin_r.c (main): Likewise.
17851
17852 2010-12-20  Bruno Haible  <bruno@clisp.org>
17853
17854         getlogin_r: Add missing declaration on HP-UX 11.
17855         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17856         declared also when it exists as a function.
17857         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17858
17859 2010-12-20  Bruno Haible  <bruno@clisp.org>
17860
17861         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17862         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17863         through wcrtomb.
17864
17865 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17866
17867         ftoastr: fix comment
17868         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17869         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17870
17871 2010-12-19  Bruno Haible  <bruno@clisp.org>
17872
17873         isnan: Ensure it is a macro.
17874         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17875         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17876         Solaris.
17877
17878 2010-12-19  Bruno Haible  <bruno@clisp.org>
17879
17880         ldexpl test: Fix link error on OSF/1 5.1.
17881         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17882
17883 2010-12-19  Bruno Haible  <bruno@clisp.org>
17884
17885         wctype: Make it work in C++ mode on OSF/1 5.1.
17886         * lib/wctype.in.h (iswblank): Declare but not define here.
17887         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17888         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17889         * modules/wctype (Files): Add lib/iswblank.c.
17890
17891 2010-12-19  Bruno Haible  <bruno@clisp.org>
17892
17893         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17894         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17895         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17896
17897 2010-12-19  Bruno Haible  <bruno@clisp.org>
17898
17899         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17900         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17901         _POSIX_PII_SOCKET.
17902         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17903         * doc/posix-functions/recvfrom.texi: Likewise.
17904         * doc/posix-functions/send.texi: Likewise.
17905         * doc/posix-functions/sendto.texi: Likewise.
17906
17907 2010-12-19  Bruno Haible  <bruno@clisp.org>
17908
17909         tcgetsid: Add missing declaration on OSF/1 5.1.
17910         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17911         HAVE_TCGETSID.
17912         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17913         Don't set HAVE_TCGETSID.
17914         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17915         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17916         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17917         HAVE_TCGETSID.
17918         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17919
17920 2010-12-19  Bruno Haible  <bruno@clisp.org>
17921
17922         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17923         * lib/stdio.in.h: During the include_next statement, let recursive
17924         includes of this file include only the system header file.
17925
17926 2010-12-19  Bruno Haible  <bruno@clisp.org>
17927
17928         iconv_open: Fix regression from 2010-12-04.
17929         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17930         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17931
17932 2010-12-19  Bruno Haible  <bruno@clisp.org>
17933
17934         stdbool test: Avoid a gcc warning.
17935         * tests/test-stdbool.c (main): Fail if e1 is false.
17936         Reported by Jim Meyering.
17937
17938 2010-12-19  Jim Meyering  <meyering@redhat.com>
17939
17940         setenv: restore to working order
17941         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17942         mistakenly removed.
17943         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17944         HAVE_SETENV.
17945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17946         HAVE_SETENV.
17947
17948 2010-12-19  Bruno Haible  <bruno@clisp.org>
17949
17950         Document some different function declarations on OSF/1 5.1.
17951         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17952         * doc/posix-functions/inet_ntop.texi: Likewise.
17953         * doc/posix-functions/gethostname.texi: Likewise.
17954         * lib/unistd.in.h (gethostname): Update comment.
17955
17956 2010-12-19  Bruno Haible  <bruno@clisp.org>
17957
17958         doc: Mention vasprintf-posix module.
17959         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17960         the 'vasprintf-posix' module.
17961         * doc/glibc-functions/vasprintf.texi: Likewise.
17962
17963 2010-12-19  Bruno Haible  <bruno@clisp.org>
17964
17965         unsetenv: Add missing declaration on OSF/1 5.1.
17966         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17967         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17968         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17970         not HAVE_UNSETENV.
17971         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17972         HAVE_UNSETENV.
17973         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17974
17975 2010-12-19  Bruno Haible  <bruno@clisp.org>
17976
17977         setenv: Add missing declaration on OSF/1 5.1.
17978         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17979         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17980         declared. Don't set HAVE_SETENV.
17981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17982         not HAVE_SETENV.
17983         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17984         HAVE_SETENV.
17985         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17986
17987 2010-12-19  Bruno Haible  <bruno@clisp.org>
17988
17989         nl_langinfo tests: Avoid gcc warning.
17990         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17991
17992 2010-12-19  Bruno Haible  <bruno@clisp.org>
17993
17994         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17995         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17996         _GL_CXXALIAS_SYS.
17997
17998 2010-12-19  Bruno Haible  <bruno@clisp.org>
17999
18000         stdbool: Relax test.
18001         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18002         address to 'bool' work in static initializer, for compilers other than
18003         GCC.
18004
18005 2010-12-19  Bruno Haible  <bruno@clisp.org>
18006
18007         ftello: Add missing declaration on OSF/1 5.1.
18008         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18009         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18011         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18012         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18013
18014 2010-12-19  Bruno Haible  <bruno@clisp.org>
18015
18016         fseeko: Add missing declaration on OSF/1 5.1.
18017         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18018         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18020         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18021         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18022
18023 2010-12-19  Bruno Haible  <bruno@clisp.org>
18024
18025         fchdir: Add missing declaration on OSF/1 5.1.
18026         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18027         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18029         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18030         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18031
18032 2010-12-19  Bruno Haible  <bruno@clisp.org>
18033
18034         relocatable-prog-wrapper: Separate from relocatable-prog.
18035         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18036         uninstall-relocwrapper rule here.
18037         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18038         Reported by Ian Beckwith <ianb@erislabs.net>.
18039
18040 2010-12-19  Bruno Haible  <bruno@clisp.org>
18041
18042         unistr/u8-mbsnlen: Add missing dependency.
18043         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18044         Reported by Ian Beckwith <ianb@erislabs.net>.
18045
18046 2010-12-19  Bruno Haible  <bruno@clisp.org>
18047
18048         iconv: Make it possible again to use this module without 'iconv-h'.
18049         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18050         if it is not defined.
18051         Reported by Ian Beckwith <ianb@erislabs.net>.
18052
18053 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18054
18055         acl: port to Solaris 8 when copying from tmpfs to ufs
18056         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18057         error number.  Problem observed on Solaris 8 with latest
18058         coreutils, with "mv A B", where A is on a tmpfs file system and B
18059         is on a ufs file system.  This caused coreutils' mv/part-symlink
18060         test to fail.
18061
18062         tests: set fail=0 at start
18063         * tests/init.sh (setup_): Move fail=0 initialization here ...
18064         (mktempd_): ... from here, so that tests can rely on fail being
18065         set to 0 initially.  This fixes a problem in coreutils; see:
18066         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18067
18068 2010-12-18  Bruno Haible  <bruno@clisp.org>
18069
18070         memmem-simple: Stylistic changes.
18071         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18072         Fix preprocessor directive indentation.
18073
18074 2010-12-15  Pádraig Brady <P@draigBrady.com>
18075
18076         memmem, memmem-simple: reorganize and expand empty needle check
18077         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18078         functional checks to memmem-simple so that one has a fully functional
18079         memmem by using just this module.
18080         Restrict the performance only check to the memmem module.
18081         Also expand the empty needle check to ensure the correct
18082         pointer is returned, not just a non NULL pointer.
18083         * doc/glibc-functions/memmem.texi: Rearrange the portability
18084         documentation to correlate with the rearranged checks.
18085         Clarify exactly how the memmem and memmem-simple modules
18086         relate to each other.
18087
18088 2010-12-15  Pádraig Brady <P@draigBrady.com>
18089             Bruno Haible  <bruno@clisp.org>
18090
18091         Improve cross-compilation guesses for uClibc.
18092         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18093         that uClibc does not have the glibc bug.
18094         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18095         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18096
18097 2010-12-14  Eric Blake  <eblake@redhat.com>
18098
18099         configmake: provide fallbacks for oldest supported autotools
18100         * m4/configmake.m4: New file.
18101         * modules/configmake (Files): Ship it.
18102         (configure.ac): Use it to guarantee fallbacks.
18103
18104 2010-12-13  Pádraig Brady <P@draigBrady.com>
18105
18106         read-file: Improve handling of large files
18107         * lib/read-file.c (fread_file): Minimize realloc()s
18108         for regular files, and better manage sizes around SIZE_MAX.
18109
18110 2010-12-13  Eric Blake  <eblake@redhat.com>
18111
18112         cloexec, fcntl: relax license
18113         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18114         consent from all contributors.
18115         * modules/fcntl (License): Likewise.
18116
18117 2010-12-10  Bruno Haible  <bruno@clisp.org>
18118
18119         Tests for module 'pipe-posix'.
18120         * modules/pipe-posix-tests: New file.
18121         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18122
18123 2010-12-10  Bruno Haible  <bruno@clisp.org>
18124
18125         pipe-posix: Make it work in C++ mode.
18126         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18127         (pipe): Use common idiom, not a macro definition.
18128         * lib/pipe.c: New file.
18129         * m4/pipe.m4: New file.
18130         * modules/pipe-posix (Description): Enhance.
18131         (Files): Add lib/pipe.c, m4/pipe.m4.
18132         (configure.ac): Invoke gl_FUNC_PIPE.
18133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18134         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18135         * tests/test-unistd-c++.cc: Check the signature of pipe.
18136
18137 2010-12-10  Bruno Haible  <bruno@clisp.org>
18138
18139         Rename module 'pipe' to 'spawn-pipe'.
18140         * modules/spawn-pipe: New file, renamed from modules/pipe.
18141         (Files, configure.ac, Makefile.am): Update.
18142         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18143         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18144         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18145         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18146         "spawn-pipe.h" instead of "pipe.h".
18147         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18148         to gl_SPAWN_PIPE.
18149         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18150         (Files, Makefile.am): Update.
18151         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18152         Update.
18153         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18154         Include "spawn-pipe.h" instead of "pipe.h".
18155         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18156         * lib/javacomp.c: Likewise.
18157         * lib/javaversion.c: Likewise.
18158         * lib/pipe-filter-gi.c: Likewise.
18159         * lib/pipe-filter-ii.c: Likewise.
18160         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18161         * modules/javacomp (Depends-on): Likewise.
18162         * modules/javaversion (Depends-on): Likewise.
18163         * modules/pipe-filter-gi (Depends-on): Likewise.
18164         * modules/pipe-filter-ii (Depends-on): Likewise.
18165         * MODULES.html.sh (Executing programs): Update.
18166         * NEWS: Mention the change.
18167
18168 2010-12-10  Eric Blake  <eblake@redhat.com>
18169
18170         pipe-posix: new module
18171         * modules/pipe-posix: New file.
18172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18173         (gl_UNISTD_H): Check for declaration.
18174         * modules/unistd (Makefile.am): Substitute it.
18175         * lib/unistd.in.h (pipe): Provide it for mingw.
18176         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18177         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18178
18179 2010-12-07  Bruno Haible  <bruno@clisp.org>
18180
18181         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18182         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18183         u8_strcmp_gnu.
18184         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18185
18186 2010-12-06  Bruno Haible  <bruno@clisp.org>
18187
18188         Update internal documentation.
18189         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18190
18191 2010-12-04  Bruno Haible  <bruno@clisp.org>
18192
18193         Put more information about failed tests into the test return codes.
18194         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18195         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18196         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18197         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18198         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18199         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18200         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18201         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18202         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18204         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18205         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18206         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18207         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18208         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18209         returns a bit mask.
18210         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18211         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18212         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18213         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18214         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18215         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18216         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18218         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18219         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18220         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18221         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18222         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18223         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18224         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18225         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18226         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18227         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18228         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18229         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18230         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18231         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18232         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18233         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18234         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18235         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18236         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18237         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18238         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18239         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18240         gl_PRINTF_PRECISION): Likewise.
18241         * m4/regex.m4 (gl_REGEX): Likewise.
18242         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18243         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18244         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18245         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18246         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18247         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18248         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18249         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18250         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18251         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18252         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18253         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18254         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18255         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18256         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18257         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18258         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18259         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18261         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18262         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18263         enumerated value.
18264         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18265
18266 2010-12-04  Bruno Haible  <bruno@clisp.org>
18267
18268         Update for Solaris 11 2010-11.
18269         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18270         Express, released in November 2010.
18271
18272 2010-12-04  Bruno Haible  <bruno@clisp.org>
18273
18274         nproc: Relax license.
18275         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18276         and Paul Eggert.
18277         Requested by Ludovic Courtès <ludo@gnu.org>.
18278
18279 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18280
18281         utimecmp: fine-grained src to nearby coarse-grained dest
18282
18283         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18284         and the source is on a file system with higher-resolution time
18285         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18286         not work, and the time stamps are close together, the algorithm to
18287         determine the exact resolution from the read-back mtime was buggy:
18288         it had a "!=" where it should have had an "==".  This bug has been
18289         in the code ever since it was introduced to gnulib.
18290         Problem reported by Dan Jacobson in
18291         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18292
18293 2010-11-30  Bruno Haible  <bruno@clisp.org>
18294
18295         strerror_r-posix: Fix autoconf test.
18296         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18297
18298 2010-11-28  Bruno Haible  <bruno@clisp.org>
18299             Paul Eggert  <eggert@cs.ucla.edu>
18300
18301         Tests for module 'getdomainname'.
18302         * modules/getdomainname-tests: New file.
18303         * tests/test-getdomainname.c: New file, based on
18304         tests/test-gethostname.c.
18305
18306 2010-11-28  Bruno Haible  <bruno@clisp.org>
18307             Paul Eggert  <eggert@cs.ucla.edu>
18308
18309         getdomainname: Use the system function when possible.
18310         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18311         (getdomainname): Replace if needed. Provide the declaration if it is
18312         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18313         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18314         (getdomainname): When the system has getdomainname, call the system
18315         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18316         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18317         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18318         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18319         the function if its second argument is of type 'int' or if it is found
18320         in libnsl.
18321         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18322         <sys/systeminfo.h> and sysinfo().
18323         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18325         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18326         HAVE_GETDOMAINNAME.
18327         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18328         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18329         * doc/glibc-functions/getdomainname.texi: Document the problems with
18330         the getdomainname declaration.
18331
18332 2010-11-28  Bruno Haible  <bruno@clisp.org>
18333
18334         sys_socket: Ensure ss_family field on AIX.
18335         * lib/sys_socket.in.h (ss_family): New macro definition.
18336         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18337         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18338         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18339         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18340         * modules/sys_socket (Makefile.am): Substitute
18341         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18342         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18343
18344 2010-11-27  Bruno Haible  <bruno@clisp.org>
18345
18346         readline: Improve configure output.
18347         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18348         "checking for readline..." result understandable.
18349
18350 2010-11-27  Bruno Haible  <bruno@clisp.org>
18351
18352         *printf-posix: Detect a bug on Solaris 10/x86.
18353         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18354         for floating-point output.
18355         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18356         directive.
18357         * tests/test-snprintf-posix.h (test_function): Likewise.
18358         * tests/test-sprintf-posix.h (test_function): Likewise.
18359         * tests/test-vasprintf-posix.c (test_function): Likewise.
18360         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18361         * doc/posix-functions/printf.texi: Likewise.
18362         * doc/posix-functions/snprintf.texi: Likewise.
18363         * doc/posix-functions/sprintf.texi: Likewise.
18364         * doc/posix-functions/vfprintf.texi: Likewise.
18365         * doc/posix-functions/vprintf.texi: Likewise.
18366         * doc/posix-functions/vsnprintf.texi: Likewise.
18367         * doc/posix-functions/vsprintf.texi: Likewise.
18368         * doc/glibc-functions/obstack_printf.texi: Likewise.
18369         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18370
18371 2010-11-27  Bruno Haible  <bruno@clisp.org>
18372
18373         Fix link error when module libunistring-optional is in use.
18374         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18375         * modules/striconveha-tests (Makefile.am): Likewise.
18376
18377 2010-11-27  Bruno Haible  <bruno@clisp.org>
18378
18379         regex: Mention link dependencies.
18380         * modules/regex (Link): New section.
18381         * modules/rpmatch (Link): Likewise.
18382         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18383
18384 2010-11-27  Bruno Haible  <bruno@clisp.org>
18385
18386         ftoastr: Fix compilation error on Solaris.
18387         * lib/ftoastr.c: Include <config.h>.
18388
18389 2010-11-27  Bruno Haible  <bruno@clisp.org>
18390
18391         getloadavg: Update documentation.
18392         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18393
18394 2010-11-27  Bruno Haible  <bruno@clisp.org>
18395
18396         sys_socket: Fix test whether the functions are declared.
18397         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18398         not <sys/select.h>.
18399
18400 2010-11-27  Bruno Haible  <bruno@clisp.org>
18401
18402         getpass: Make sure to get system declaration on some platforms.
18403         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18404         gl_USE_SYSTEM_EXTENSIONS.
18405         * modules/getpass (Depends-on): Add extensions.
18406
18407 2010-11-26  Bruno Haible  <bruno@clisp.org>
18408
18409         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18410         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18411         'iconv' module is present.
18412         (ICONV_CONST): New macro.
18413         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18414         ICONV_CONST.
18415         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18416         set ICONV_CONST.
18417         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18418         here.
18419         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18420         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18421         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18422         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18423         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18424         present.
18425
18426 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18427
18428         ftoastr: comment fix
18429         * lib/ftoastr.c: "little" -> "little or no" in comment
18430
18431 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18432
18433         stdint: port to GCC 4.3 + OSX + Octave
18434         On this platform, stdint.h is buggy and defines int64_t to long
18435         long int.  The replacement defined it to long int, causing
18436         problems with C++ style name mangling.  Instead, trust the system
18437         definition if INT64_MAX is defined, and likewise for the unsigned
18438         variant.   Problem reported by Jarno Rajahalme in
18439         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18440         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18441         and don't mess with int64_t and INT64_MAX in this case.
18442         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18443
18444 2010-11-24  Bruno Haible  <bruno@clisp.org>
18445
18446         doc: Corrections regarding MacOS X 10.4 and 10.5.
18447         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18448         MacOS X.
18449         Reported by Simon Josefsson.
18450
18451 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18452
18453         Uninstall ".bin" files installed by relocwrapper.
18454         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18455         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18456         unless it is already there.
18457
18458 2010-11-21  Bruno Haible  <bruno@clisp.org>
18459
18460         Update for NetBSD 5.0.
18461         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18462         NetBSD; the test fails on NetBSD 5.0.
18463         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18464         about NetBSD.
18465
18466 2010-11-21  Bruno Haible  <bruno@clisp.org>
18467
18468         Update for HP-UX 11.23 and HP-UX 11.31.
18469         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18470         HP-UX.
18471
18472 2010-11-21  Bruno Haible  <bruno@clisp.org>
18473
18474         Update for MacOS X 10.5.
18475         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18476         MacOS X; the test fails on MacOS X 10.5.8.
18477         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18478         about MacOS X.
18479
18480 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18481
18482         bootstrap: add bootstrap_sync option.
18483         See discussion at
18484         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18485         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18486         * build-aux/bootstrap: Accept --bootstrap-sync to update
18487         bootstrap if it is not identical to the local gnulib's
18488         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18489         enable this by default.  Accept --no-bootstrap-sync to disable
18490         it.
18491
18492 2010-11-20  Bruno Haible  <bruno@clisp.org>
18493
18494         Ensure that <features.h> is included before __GLIBC__ is tested.
18495         * lib/printf-parse.h: Include <features.h>.
18496         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18497         Reported by Mike Frysinger <vapier@gentoo.org>.
18498
18499         Ensure that <features.h> is included before __GLIBC__ is tested.
18500         * lib/wchar.in.h: Include <features.h>.
18501         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18502         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18503         Reported by Mike Frysinger <vapier@gentoo.org>.
18504
18505         Ensure that <features.h> is included before __GLIBC__ is tested.
18506         * lib/arpa_inet.in.h: Include <features.h>.
18507         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18508         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18509         Reported by Mike Frysinger <vapier@gentoo.org>.
18510
18511         Ensure that <features.h> is included before __GLIBC__ is tested.
18512         * build-aux/link-warning.h: Include <features.h>.
18513         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18514         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18515         Reported by Mike Frysinger <vapier@gentoo.org>.
18516
18517         Ensure that <features.h> is included before __GLIBC__ is tested.
18518         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18519         Reported by Mike Frysinger <vapier@gentoo.org>.
18520
18521 2010-11-20  Bruno Haible  <bruno@clisp.org>
18522
18523         memmem: Fix autoconf test.
18524         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18525
18526 2010-11-20  Bruno Haible  <bruno@clisp.org>
18527
18528         Port to uClibc.
18529         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18530         * lib/fcntl.in.h: Likewise.
18531         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18532         * lib/mbrtowc.c (mbrtowc): Likewise.
18533         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18534         * lib/strerror_r.c: Likewise.
18535         * lib/unistr/u8-strnlen.c: Likewise.
18536         * lib/vasnprintf.c (decimal_point_char): Likewise.
18537         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18538         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18539         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18540         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18541         * tests/test-sigaction.c (handler, main): Likewise.
18542         * lib/freading.h: Treat uClibc like a non-glibc platform.
18543         * lib/freading.c: Likewise.
18544         * lib/gettext.h: Likewise.
18545         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18546         Likewise.
18547         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18548         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18549         * lib/propername.c (proper_name_utf8): Likewise.
18550         * lib/spawn.in.h: Likewise.
18551         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18552         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18553         mem_cd_iconveh_internal): Likewise.
18554         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18555         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18556         strstr, strcasestr): Likewise.
18557         * lib/unicodeio.c (unicode_to_mb): Likewise.
18558         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18559         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18560         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18561         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18562         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18563         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18564         * lib/unistr/u8-stpncpy.c: Likewise.
18565         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18566         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18567         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18568         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18569         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18570         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18571         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18572         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18573         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18574         Likewise.
18575         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18576         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18577         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18578         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18579         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18580         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18581         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18582         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18583         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18584         * tests/test-striconveha.c (main): Likewise.
18585         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18586         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18587         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18588         * doc/posix-functions/getline.texi: Likewise.
18589         Reported by Mike Frysinger <vapier@gentoo.org>.
18590
18591 2010-11-20  Bruno Haible  <bruno@clisp.org>
18592
18593         nproc: Fix condition.
18594         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18595         HAVE_PTHREAD_AFFINITY_NP.
18596
18597 2010-11-20  Bruno Haible  <bruno@clisp.org>
18598
18599         Fix a comment.
18600         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18601
18602 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18603
18604         ftoastr: don't assume snprintf
18605         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18606         Implement a subset of snprintf here, by using sprintf safely.
18607         * modules/ftoastr (Depends-on): Remove snprintf.
18608
18609 2010-11-19  Jim Meyering  <meyering@redhat.com>
18610
18611         test-rename.h: fix compilation failure
18612         * tests/test-rename.h (test_rename): Add omitted "}".
18613
18614 2010-11-17  Jim Meyering  <meyering@redhat.com>
18615
18616         maint.mk: add a URL discussing the no-@acronym policy
18617         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18618
18619 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18620
18621         ftoastr: depend on snprintf, improve comments
18622         * lib/ftoastr.c: Also mention Loitsch's draft.
18623         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18624         needed in the current implementation, but it might simplify
18625         speeding up the code later.
18626         * modules/ftoastr: Depend on snprintf; this improves portability.
18627         Suggested by Bruno Haible in the same email.
18628
18629         ftoastr: port to hosts lacking strtof and strtold
18630         Problem reported by Bruno Haible in
18631         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18632         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18633         environment and strtold (and presumably strtof) are not available.
18634         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18635         (configure.ac): Require gl_C99_STRTOLD.
18636
18637 2010-11-18  Bruno Haible  <bruno@clisp.org>
18638
18639         c-strtold: Avoid link error on AIX 7.
18640         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18641         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18642         (gl_C_STRTOLD): Test whether strtold_l exists.
18643         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18644
18645 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18646
18647         intprops: new macro INT_BITS_STRLEN_BOUND
18648         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18649         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18650         not exposed.  Also, it uses a slightly tighter bound than before;
18651         though this makes no practical difference, we might as well be as
18652         tight as we easily can.
18653
18654         ftoastr: new module, for lossless conversion of floats to short strings
18655         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18656         * modules/ftoastr: New files.
18657
18658 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18659
18660         bootstrap: port to Solaris sed
18661         * build-aux/bootstrap (get_version): Port to Solaris sed.
18662         See Ralf Wildenhues's note in
18663         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18664
18665 2010-11-14  Jim Meyering  <meyering@redhat.com>
18666
18667         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18668         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18669         and move definition closer to sole use.
18670
18671 2010-11-13  Jim Meyering  <meyering@redhat.com>
18672
18673         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18674         Now we require at least autoconf-2.59, which means the work-around
18675         is no longer needed.
18676         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18677         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18678         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18679         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18680         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18681
18682 2010-11-13  Bruno Haible  <bruno@clisp.org>
18683
18684         rename, renameat: Avoid test failures at NFS mounted locations.
18685         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18686         functions.
18687         (test_rename): Use assert_nonexistent.
18688         * tests/test-rename.c: Include <dirent.h>.
18689         * tests/test-renameat.c: Likewise.
18690         Reported by Gary V. Vaughan <gary@gnu.org>.
18691
18692         rename, renameat: Document Linux bug with NFS
18693         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18694         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18695         * doc/posix-functions/renameat.texi: Likewise.
18696         Suggested by Eric Blake.
18697
18698 2010-11-13  Bruno Haible  <bruno@clisp.org>
18699
18700         rename test: Add comments.
18701         * tests/test-rename.h (test_rename): Add structure and comments.
18702
18703 2010-11-13  Eric Blake  <eblake@redhat.com>
18704
18705         maintainer-makefile: cover a few more files
18706         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18707         scripts generated within C files, for libvirt.
18708
18709 2010-11-13  Bruno Haible  <bruno@clisp.org>
18710
18711         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18712         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18713         character, return the number of bytes that belong together, not always
18714         1.
18715         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18716         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18717         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18718         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18719         number of bytes of an invalid character.
18720         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18721         (main): Invoke it.
18722         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18723         results.
18724         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18725         malformed byte sequences.
18726         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18727         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18728         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18729         Reported by Ben Pfaff and Paolo Bonzini.
18730
18731 2010-11-13  Bruno Haible  <bruno@clisp.org>
18732
18733         openat: Work around glibc bug with fchownat() and empty file names.
18734         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18735         (gl_FUNC_FCHOWNAT): Invoke it.
18736         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18737         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18738         Reported by Gary V. Vaughan <gary@gnu.org>.
18739
18740 2010-11-13  Bruno Haible  <bruno@clisp.org>
18741
18742         openat: Ensure autoconf macro ordering.
18743         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18744         gl_USE_SYSTEM_EXTENSIONS.
18745         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18746
18747 2010-11-13  Bruno Haible  <bruno@clisp.org>
18748
18749         Update comments.
18750         * lib/unistr/u8-check.c: Update file name in comments.
18751         * lib/unistr/u8-mblen.c: Likewise.
18752         * lib/unistr/u8-prev.c: Likewise.
18753         * lib/unistr/u8-strmblen.c: Likewise.
18754         * lib/unistr/u8-strmbtouc.c: Likewise.
18755
18756 2010-11-13  Jim Meyering  <meyering@redhat.com>
18757
18758         tests: avoid test failure on Solaris 10 due to lack of PATH export
18759         * tests/test-update-copyright.sh: Don't forget to export PATH.
18760
18761         init.sh: ensure that IFS is defined, just in case...
18762         * tests/init.sh (setup_): Ensure that IFS is defined,
18763         so that saving and restoring it works as expected.  This
18764         appears to be useful at least for an old version of dash
18765         from a long time ago (RH 6).  See here for details:
18766         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18767
18768         maint.mk: tighten "test a == b" check
18769         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18770         test to files that contain something like #!/bin/sh.
18771         Without this, coreutils would get two false positives in
18772         the comments of C source files.
18773
18774 2010-11-12  Eric Blake  <eblake@redhat.com>
18775
18776         bootstrap: fix typo in previous attempt
18777         * build-aux/bootstrap (buildreq): Correct the grouping.
18778         Reported by Paul Eggert.
18779
18780         maintainer-makefile: prohibit test x == x
18781         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18782         Based on a report by Matthias Bolte.
18783
18784         bootstrap: allow FreeBSD gzip
18785         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18786         which has no '.' and goes to stderr.
18787         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18788         Reported by Matthias Bolte.
18789
18790         maintainer-makefile: check for i18n setup
18791         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18792         will likely work.
18793
18794 2010-11-12  Bruno Haible  <bruno@clisp.org>
18795
18796         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18797         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18798         * lib/nanosleep.c (nanosleep): Likewise.
18799
18800 2010-11-11  Bruno Haible  <bruno@clisp.org>
18801
18802         fcntl-h: Fix for use of C++ on glibc systems.
18803         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18804         also on glibc systems in C++ mode.
18805         Reported by Gary V. Vaughan <gary@gnu.org>.
18806
18807 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18808
18809         mknod: avoid false failure with dash
18810         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18811
18812 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18813
18814         unlink: Fix "is it should" typo in diagnostic.
18815         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18816         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18817
18818 2010-11-11  Bruno Haible  <bruno@clisp.org>
18819
18820         Tests for module 'strerror_r-posix'.
18821         * modules/strerror_r-posix-tests: New file.
18822         * tests/test-strerror_r.c: New file.
18823         * tests/test-string-c++.cc: Check the signature of strerror_r.
18824
18825         New module 'strerror_r-posix'.
18826         * lib/string.in.h (strerror_r): New declaration.
18827         * lib/strerror_r.c: New file.
18828         * m4/strerror_r.m4: New file.
18829         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18830         of strerror_r.
18831         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18832         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18833         * modules/strerror_r-posix: New file.
18834         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18835         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18836         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18837         portability problems.
18838
18839 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18840
18841         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18842         line is also considered for output. Quoted function name in shell
18843         command, so temporary files for functions like MyClass::operator()
18844         are removed correctly without errors.
18845
18846 2010-11-09  Bruno Haible  <bruno@clisp.org>
18847
18848         * doc/posix-functions/strerror.texi: List more failing platforms.
18849
18850         * doc/posix-functions/strerror.texi: Add a comment.
18851
18852 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18853
18854         fdopendir: fix bug on MacOS X when low on file descriptors
18855
18856         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18857         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18858         All callers changed.
18859         (fdopendir): Invoke save_cwd at the top level, not after using
18860         multiple dup() calls to use up file descriptors.  Then retry
18861         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18862         less than the maximum number of open file descriptors, because
18863         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18864         on Mac OS X 10.6.4 for tar 1.24
18865         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18866         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18867         and for tar 1.25
18868         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18869
18870 2010-11-07  Bruno Haible  <bruno@clisp.org>
18871
18872         vasnprintf: Support I flag on glibc systems.
18873         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18874         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18875         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18876         snprintf function.
18877         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18878         glibc systems.
18879         * tests/test-vasnprintf-posix3.c: New file.
18880         * modules/vasnprintf-posix-tests (Files): Add it.
18881         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18882
18883 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18884
18885         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18886         * MODULES.html.sh: For compiler warnings, use name
18887         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18888
18889 2010-11-05  Eric Blake  <eblake@redhat.com>
18890
18891         ceil, floor: avoid spurious failure with icc
18892         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18893         [denormals-as-zero] when optimizing without -mieee-fp option.
18894         * tests/test-floorf2.c (floorf_reference): Likewise.
18895         * tests/test-ceilf1.c (dummy): New function.
18896         (main): Use it to outsmart icc's optimization.
18897         * tests/test-floorf1.c (dummy, main): Likewise.
18898
18899         tests: require working signbit
18900         * modules/ceilf-tests (Depends-on): Add signbit.
18901         * modules/ceill-tests (Depends-on): Likewise.
18902         * modules/floorf-tests (Depends-on): Likewise.
18903         * modules/floorl-tests (Depends-on): Likewise.
18904         * modules/round-tests (Depends-on): Likewise.
18905         * modules/roundf-tests (Depends-on): Likewise.
18906         * modules/roundl-tests (Depends-on): Likewise.
18907         * modules/trunc-tests (Depends-on): Likewise.
18908         * modules/truncf-tests (Depends-on): Likewise.
18909         * modules/truncl-tests (Depends-on): Likewise.
18910
18911         strtod: work around icc bug
18912         * lib/strtod.c (minus_zero): Define to working value.
18913         (strtod): Use it to avoid icc bug.
18914
18915         copysign: enhance tests
18916         * modules/copysign-tests (Files): Add minus-zero.h.
18917         * tests/test-copysign.c (main): Also test zeros.
18918
18919 2010-11-04  Eric Blake  <eblake@redhat.com>
18920
18921         ceil, floor, round, trunc: enhance tests of -0
18922         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18923         * tests/test-ceill.c (main): Likewise.
18924         * tests/test-floorf1.c (main): Likewise.
18925         * tests/test-floorl.c (main): Likewise.
18926         * tests/test-round1.c (main): Likewise.
18927         * tests/test-roundf1.c (main): Likewise.
18928         * tests/test-roundl.c (main): Likewise.
18929         * tests/test-trunc1.c (main): Likewise.
18930         * tests/test-truncf1.c (main): Likewise.
18931         * tests/test-truncl.c (main): Likewise.
18932
18933 2010-11-04  Eric Blake  <eblake@redhat.com>
18934
18935         frexp, tests: work around ICC bug with -zero
18936         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18937         works with more compilers.
18938         * tests/minus-zero.h: New file.
18939         * modules/ceilf-tests (Files): Include it.
18940         * modules/ceill-tests (Files): Likewise.
18941         * modules/floorf-tests (Files): Likewise.
18942         * modules/floorl-tests (Files): Likewise.
18943         * modules/frexp-nolibm-tests (Files): Likewise.
18944         * modules/frexp-tests (Files): Likewise.
18945         * modules/frexpl-nolibm-tests (Files): Likewise.
18946         * modules/frexpl-tests (Files): Likewise.
18947         * modules/isnan-tests (Files): Likewise.
18948         * modules/isnand-nolibm-tests (Files): Likewise.
18949         * modules/isnand-tests (Files): Likewise.
18950         * modules/isnanf-nolibm-tests (Files): Likewise.
18951         * modules/isnanf-tests (Files): Likewise.
18952         * modules/isnanl-nolibm-tests (Files): Likewise.
18953         * modules/isnanl-tests (Files): Likewise.
18954         * modules/round-tests (Files): Likewise.
18955         * modules/roundf-tests (Files): Likewise.
18956         * modules/roundl-tests (Files): Likewise.
18957         * modules/ldexpl-tests (Files): Likewise.
18958         * modules/signbit-tests (Files): Likewise.
18959         * modules/snprintf-posix-tests (Files): Likewise.
18960         * modules/sprintf-posix-tests (Files): Likewise.
18961         * modules/strtod-tests (Files): Likewise.
18962         * modules/trunc-tests (Files): Likewise.
18963         * modules/truncf-tests (Files): Likewise.
18964         * modules/truncl-tests (Files): Likewise.
18965         * modules/vsnprintf-posix-tests (Files): Likewise.
18966         * modules/vsprintf-posix-tests (Files): Likewise.
18967         * modules/vasnprintf-posix-tests (Files): Likewise.
18968         * modules/vasprintf-posix-tests (Files): Likewise.
18969         * tests/test-ceilf1.c (main): Use it.
18970         * tests/test-ceill.c (main): Likewise.
18971         * tests/test-floorf1.c (main): Likewise.
18972         * tests/test-floorl.c (main): Likewise.
18973         * tests/test-frexp.c (main): Likewise.
18974         * tests/test-frexpl.c (main): Likewise.
18975         * tests/test-isnan.c (main): Likewise.
18976         * tests/test-isnand.h (main): Likewise.
18977         * tests/test-isnanf.h (main): Likewise.
18978         * tests/test-isnanl.h (main): Likewise.
18979         * tests/test-ldexpl.c (main): Likewise.
18980         * tests/test-round.c (main): Likewise.
18981         * tests/test-roundf.c (main): Likewise.
18982         * tests/test-roundl.c (main): Likewise.
18983         * tests/test-signbit.c (test_signbitf, test_signbitd)
18984         (test_signbitl): Likewise.
18985         * tests/test-snprintf-posix.h (test_function): Likewise.
18986         * tests/test-sprintf-posix.h (test_function): Likewise.
18987         * tests/test-strtod.c (main): Likewise.
18988         * tests/test-trunc1.c (main): Likewise.
18989         * tests/test-truncf1.c (main): Likewise.
18990         * tests/test-truncl.c (main): Likewise.
18991
18992         isnanl: work around icc bug
18993         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18994
18995 2010-11-03  Eric Blake  <eblake@redhat.com>
18996
18997         tests: fix compiler warnings
18998         * tests/test-getopt.h (test_getopt): Fix condition.
18999         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19000         * tests/test-pipe2.c (main): Likewise.
19001         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19002
19003         utimens: fix broken m4 test
19004         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19005
19006 2010-10-28  Bruno Haible  <bruno@clisp.org>
19007
19008         posix_spawn*, getdtablesize: Relax license.
19009         * modules/posix_spawn (License): Change to LGPLv2+.
19010         * modules/posix_spawnp (License): Likewise.
19011         * modules/posix_spawn-internal (License): Likewise.
19012         * modules/posix_spawnattr_init (License): Likewise.
19013         * modules/posix_spawnattr_getflags (License): Likewise.
19014         * modules/posix_spawnattr_setflags (License): Likewise.
19015         * modules/posix_spawnattr_getpgroup (License): Likewise.
19016         * modules/posix_spawnattr_setpgroup (License): Likewise.
19017         * modules/posix_spawnattr_getschedparam (License): Likewise.
19018         * modules/posix_spawnattr_setschedparam (License): Likewise.
19019         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19020         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19021         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19022         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19023         * modules/posix_spawnattr_getsigmask (License): Likewise.
19024         * modules/posix_spawnattr_setsigmask (License): Likewise.
19025         * modules/posix_spawnattr_destroy (License): Likewise.
19026         * modules/posix_spawn_file_actions_init (License): Likewise.
19027         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19028         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19029         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19030         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19031         * modules/getdtablesize (License): Likewise.
19032         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19033
19034 2010-10-26  Bruno Haible  <bruno@clisp.org>
19035
19036         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19037         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19038         Cygwin and mingw.
19039         Suggested by Eric Blake.
19040
19041 2010-10-26  Bruno Haible  <bruno@clisp.org>
19042
19043         stdio: Work around compilation error due to renameat() on Solaris 10.
19044         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19045         * lib/renameat.c: Don't include <unistd.h> here.
19046         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19047         Reported by Paul Eggert and Eric Blake.
19048
19049 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19050
19051         renameat: port to Solaris 10, which declares renameat in unistd.h
19052
19053         * lib/renameat.c: Include unistd.h before stdio.h, because
19054         Solaris 10 declares renameat in unistd.h.  Problem encountered
19055         when building GNU tar 1.24 on Solaris 10.
19056
19057 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19058
19059         fdopendir: fix C89 compilation
19060         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19061         compilers.
19062
19063 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19064
19065         inttostr: simplify by removing unnecessary redundancy
19066         * lib/anytostr.c: Don't include verify.h.
19067         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19068         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19069         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19070         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19071         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19072         Likewise.
19073         * modules/inttostr (Depends-on): Remove 'verify'.
19074
19075 2010-10-23  Bruno Haible  <bruno@clisp.org>
19076
19077         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19078         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19079         Reported by Eric Blake.
19080
19081 2010-10-23  Bruno Haible  <bruno@clisp.org>
19082
19083         Tests: Fix LOCALE_JA on MirBSD 10.
19084         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19085         to an UTF-8 locale.
19086         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19087         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19088         Reported by Eric Blake.
19089
19090 2010-10-21  Bruno Haible  <bruno@clisp.org>
19091
19092         nl_langinfo test: Avoid test failure on NetBSD 5.
19093         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19094         Reported by Eric Blake.
19095
19096 2010-10-21  Eric Blake  <eblake@redhat.com>
19097
19098         c-stack: work around libsigsegv 2.8 bug
19099         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19100         overflow on at least PowerPC64.
19101
19102 2010-10-17  Bruno Haible  <bruno@clisp.org>
19103
19104         userspec: Drop redundant file.
19105         * modules/userspec (Files): Remove lib/inttostr.h.
19106
19107 2010-10-17  Bruno Haible  <bruno@clisp.org>
19108
19109         nl_langinfo tests: Silence some warnings.
19110         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19111         Reported by Jim Meyering.
19112
19113 2010-10-17  Bruno Haible  <bruno@clisp.org>
19114
19115         Make use of GCC's attribute __alloc_size__.
19116         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19117         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19118         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19119         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19120         __alloc_size__.
19121         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19122         Suggested by Jim Meyering.
19123
19124 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19125
19126         bootstrap: anchor .gitignore entries.
19127         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19128         with...
19129         (insert_vc_ignore): ... this new function, which prepends `/' to
19130         all .gitignore entries before passing them to
19131         insert_sorted_if_absent.
19132
19133 2010-10-16  Bruno Haible  <bruno@clisp.org>
19134
19135         nextafter: Fix configure check.
19136         * modules/nextafter (configure.ac): Correct expected prototype.
19137
19138 2010-10-16  Bruno Haible  <bruno@clisp.org>
19139
19140         termios: Update documentation.
19141         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19142
19143 2010-10-16  Bruno Haible  <bruno@clisp.org>
19144
19145         tests: Make them compile with TinyCC.
19146         * tests/test-strstr.c (main): Remove parentheses around array
19147         initializer.
19148
19149 2010-10-15  Eric Blake  <eblake@redhat.com>
19150
19151         ignore-value: make header idempotent
19152         * lib/ignore-value.h: Add double-inclusion guards.
19153         Reported by Stefan Berger.
19154
19155 2010-10-15  Jim Meyering  <meyering@redhat.com>
19156
19157         GNUmakefile: handle "stable" target, not "major"
19158         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19159         lists in maint.mk and announce-gen.  Without this, "make stable"
19160         would fail to ensure that $(VERSION) is up to date.
19161
19162 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19163
19164         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19165         & co.
19166
19167 2010-10-14  Bruno Haible  <bruno@clisp.org>
19168
19169         vasnprintf: Don't set errno to 0.
19170         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19171         block that sets it to 0.
19172         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19173
19174 2010-10-14  Bruno Haible  <bruno@clisp.org>
19175
19176         socketlib: Fix.
19177         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19178         gl_PREREQ_SYS_H_WINSOCK2.
19179         Reported by Ian Beckwith <ianb@erislabs.net>.
19180
19181 2010-10-13  Jim Meyering  <meyering@redhat.com>
19182
19183         test-select-stdin.c: avoid warn_unused_result warnings
19184         * tests/test-select-stdin.c: Include "macros.h".
19185         ASSERT that read and fflush succeed.
19186
19187 2010-10-13  Jim Meyering  <meyering@redhat.com>
19188
19189         git-version-gen: do require git-VC'd files in cwd
19190         * build-aux/git-version-gen: Reject a git version string
19191         if there are no commits associated with the current directory.
19192         This avoids an unlikely false-positive (unrelated dir whose parent
19193         repository also contains a tag matching v*), as pointed out
19194         by Giuseppe Scrivano in
19195         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19196
19197 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19198
19199         argv-iter: omit nonconforming declaration
19200         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19201         enum arg_iter_err declaration, which doesn't conform to C99.
19202         Solaris 10 cc warns about this.
19203
19204 2010-10-13  Eric Blake  <eblake@redhat.com>
19205
19206         termios: fix compilation on mingw
19207         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19208         (gl_TERMIOS_H): Adjust it on mingw.
19209         * modules/termios (Makefile.am): Substitute new key.
19210         * lib/termios.in.h (includes): Make include_next conditional.
19211         * doc/posix-headers/termios.texi (termios.h): Update
19212         documentation.
19213         Reported by Daniel P. Berrange.
19214
19215 2010-10-13  Jim Meyering  <meyering@redhat.com>
19216
19217         git-version-gen: don't require that .git/ be in the current dir
19218         * build-aux/git-version-gen: Adjust this script so that it works
19219         when run from any working directory beneath the top-level .git/-
19220         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19221         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19222
19223         test-select: avoid warn_unused_result warnings
19224         * tests/test-select.c: Include "macros.h".
19225         ASSERT that each call to read, write, and pipe succeeds.
19226         While not technically required, also check each "close".
19227         * modules/select-tests (Files): Add tests/macros.h.
19228
19229         test-symlinkat: remove declaration of unused local
19230         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19231
19232         test-inttostr: avoid shadowing warnings
19233         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19234         and use malloc rather than the stack for the same reason as
19235         mentioned in the comment justifying the other allocation.
19236
19237 2010-10-11  Bruno Haible  <bruno@clisp.org>
19238
19239         stdlib: Allow multiple gnulib generated replacements to coexist.
19240         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19241         Reported by Sam Steingold <sds@gnu.org>.
19242
19243 2010-10-11  Jim Meyering  <meyering@redhat.com>
19244
19245         fix a documentation typo
19246         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19247
19248 2010-10-11  Eric Blake  <eblake@redhat.com>
19249
19250         futimens: work around Solaris 11 bug
19251         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19252         * tests/test-futimens.h (test_futimens): Enhance, rather than
19253         weaken test.
19254         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19255
19256 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19257
19258         Indentation.
19259         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19260         higher-level operators more to the left.
19261
19262 2010-10-11  Jim Meyering  <meyering@redhat.com>
19263
19264         test-futimens: avoid unwarranted test failure on Solaris 5.11
19265         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19266         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19267         because it tries to dereference the NULL name argument.
19268
19269 2010-10-11  Bruno Haible  <bruno@clisp.org>
19270
19271         Indentation.
19272         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19273         indentation.
19274
19275 2010-10-11  Jim Meyering  <meyering@redhat.com>
19276
19277         spawn.in.h: make indentation consistent with parentheses
19278         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19279         Make indentation consistent with parentheses.
19280
19281 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19282
19283         Fix mismatched parens in previous commit
19284         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19285         parens.
19286
19287 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19288
19289         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19290
19291         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19292         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19293         * lib/malloca.c: Include "verify.h".
19294         (verify1): Remove, replacing with a verify call.
19295         * lib/relocwrapper.c (verify1): Likewise.
19296         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19297         Likewise.
19298         * modules/malloca (Depends-on): Add 'verify'.
19299         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19300         * modules/vasnprintf (Depends-on): Add 'verify'.
19301         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19302         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19303         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19304         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19305         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19306         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19307         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19308
19309         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19310
19311         Formerly the style was sometimes 2*X - 1, because the C standard
19312         was wrongly thought to disallow ?: in integral constant expressions.
19313         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19314         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19315         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19316         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19317         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19318         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19319         verify that time_t cannot be floating.
19320
19321 2010-10-08  Eric Blake  <eblake@redhat.com>
19322
19323         time: enforce recent POSIX ruling that time_t is integral
19324         * lib/time.in.h (__time_t_must_be_integral): Detect any
19325         problematic systems, allowing the rest of gnulib to assume POSIX.
19326
19327 2010-10-08  Jim Meyering  <meyering@redhat.com>
19328
19329         fdopendir: fix a bug on systems lacking openat and /proc support
19330         OpenBSD 4.7 is one such system.  The most noticeable effect was
19331         failure of any application making nontrivial use of fts: rm, du,
19332         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19333           ./rm: traversal failed: `a': Bad file descriptor
19334         Debugging that, you see that even though FD 6 was closed just
19335         prior to the opendir call in fd_clone_opendir, its resulting
19336         dir->dd_fd was 8, rather than the expected value of 6:
19337
19338         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19339         93                close (fd);
19340         (gdb) n
19341         94                dir = fd_clone_opendir (dupfd);
19342         (gdb) n
19343         95                saved_errno = errno;
19344         (gdb) p dir->dd_fd
19345         $11 = 8
19346
19347         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19348         The problem is that on OpenBSD, fd_clone_opendir has to resort
19349         to using the old-style save/restore CWD mechanism, due to its
19350         lack of openat/proc support, and *that* would steal the FD (6)
19351         that opendir was supposed to use.
19352
19353         The fix is to squirrel away the desired FD so that save_cwd uses a
19354         different one, and then free the dest FD right before calling opendir.
19355         That guarantees opendir will use the required file descriptor.
19356
19357         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19358
19359 2010-10-08  Bruno Haible  <bruno@clisp.org>
19360
19361         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19362         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19363
19364 2010-10-08  Bruno Haible  <bruno@clisp.org>
19365
19366         nanosleep: Make replacement POSIX compliant.
19367         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19368         is out of range.
19369         Reported by Jim Meyering.
19370
19371 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19372
19373         bootstrap: add hook for altering gnulib.mk, for Bison
19374         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19375         the Bison bootstrapping process can rewrite file names and variables
19376         in this file before later parts of 'bootstrap' use the file.
19377         Bison wants to include lib/gnulib.mk from the top-level makefile,
19378         so it needs the file names in this file to be relative to the top
19379         level, not relative to lib; plus it needs variable names to be
19380         rewritten.
19381         (slurp): Use the new function.
19382
19383         bootstrap: reformat for readability
19384         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19385
19386 2010-10-08  Eric Blake  <eblake@redhat.com>
19387
19388         docs: update cygwin progress
19389         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19390         1.7.7.
19391         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19392         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19393         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19394         * doc/posix-functions/carg.texi (carg): Likewise.
19395         * doc/posix-functions/cargf.texi (cargf): Likewise.
19396         * doc/posix-functions/casin.texi (casin): Likewise.
19397         * doc/posix-functions/casinf.texi (casinf): Likewise.
19398         * doc/posix-functions/casinh.texi (casinh): Likewise.
19399         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19400         * doc/posix-functions/catan.texi (catan): Likewise.
19401         * doc/posix-functions/catanf.texi (catanf): Likewise.
19402         * doc/posix-functions/catanh.texi (catanh): Likewise.
19403         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19404         * doc/posix-functions/ccos.texi (ccos): Likewise.
19405         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19406         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19407         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19408         * doc/posix-functions/cexp.texi (cexp): Likewise.
19409         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19410         * doc/posix-functions/cimag.texi (cimag): Likewise.
19411         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19412         * doc/posix-functions/clog.texi (clog): Likewise.
19413         * doc/posix-functions/clogf.texi (clogf): Likewise.
19414         * doc/posix-functions/conj.texi (conj): Likewise.
19415         * doc/posix-functions/conjf.texi (conjf): Likewise.
19416         * doc/posix-functions/cpow.texi (cpow): Likewise.
19417         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19418         * doc/posix-functions/cproj.texi (cproj): Likewise.
19419         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19420         * doc/posix-functions/creal.texi (creal): Likewise.
19421         * doc/posix-functions/crealf.texi (crealf): Likewise.
19422         * doc/posix-functions/csin.texi (csin): Likewise.
19423         * doc/posix-functions/csinf.texi (csinf): Likewise.
19424         * doc/posix-functions/csinh.texi (csinh): Likewise.
19425         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19426         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19427         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19428         * doc/posix-functions/ctan.texi (ctan): Likewise.
19429         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19430         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19431         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19432         * doc/posix-headers/complex.texi (complex.h): Likewise.
19433
19434 2010-10-07  Jim Meyering  <meyering@redhat.com>
19435
19436         parse-datetime: avoid compilation failure on OpenBSD 4.7
19437         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19438         This works around a compilation failure on OpenBSD 4.7:
19439         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19440
19441 2010-10-07  Eric Blake  <eblake@redhat.com>
19442
19443         docs: update cygwin progress
19444         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19445         1.7.6.
19446         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19447         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19448         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19449         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19450         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19451         Likewise.
19452         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19453         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19454         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19455         Likewise.
19456         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19457         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19458         Likewise.
19459         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19460         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19461         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19462         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19463         Likewise.
19464         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19465         Likewise.
19466         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19467
19468         docs: update parse-datetime history
19469         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19470         documentation of this function's history and alternatives.
19471
19472         cygwin: use more robust version check
19473         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19474         exclude an eventual cygwin 1.9.1.
19475         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19477         (gl_FUNC_STRCASESTR): Likewise.
19478         Reported by Bruno Haible.
19479
19480 2010-10-06  Bruno Haible  <bruno@clisp.org>
19481
19482         string, sys_select: Avoid #including large headers unless necessary.
19483         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19484         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19485         OSF/1, BeOS, Haiku.
19486         Reported by Jim Meyering.
19487
19488 2010-10-05  Eric Blake  <eblake@redhat.com>
19489
19490         memmem, strstr, strcasestr: fix bug with long periodic needle
19491         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19492         periodic needle having false positive.
19493         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19494         and cygwin 1.7.7.
19495         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19496         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19497         (gl_FUNC_STRCASESTR): Likewise.
19498         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19499         * tests/test-memmem.c (main): Expose the bug.
19500         * tests/test-strcasestr.c (main): Likewise.
19501         * tests/test-strstr.c (main): Likewise.
19502         * tests/test-c-strcasestr.c (main): Likewise.
19503         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19504         * doc/posix-functions/strstr.texi (strstr): Likewise.
19505         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19506         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19507
19508 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19509
19510         parse-datetime: do some more renaming
19511         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19512         parse_datetime, not get_date.  Mention the renaming.
19513         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19514         in comments.
19515         * m4/bison.m4: Likewise.
19516
19517 2010-10-05  Eric Blake  <eblake@redhat.com>
19518
19519         parse-datetime: better name than get_date
19520         * NEWS: Reword the deprecation notice.
19521         * modules/get_date: Rename to modules/parse-datetime.
19522         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19523         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19524         * lib/get_date.y: Rename to lib/parse-datetime.y.
19525         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19526         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19527         * doc/getdate.texi: Provide fallback wrapper.
19528         * lib/getdate.h: Move guts, and wrap...
19529         * lib/parse-datetime.h: ...new file.
19530         * lib/parse-datetime.y (get_date): Rename...
19531         (parse_datetime): ...to this.
19532         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19533         (gl_PARSE_DATETIME): ...to this.
19534         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19535         documentation.
19536         * modules/getdate (Files): Provide fallback docs and header.
19537         (Notice, Depends-on): Update references.
19538         * tests/test-parse-datetime.c: Likewise.
19539         * DEPENDENCIES: Likewise.
19540         * MODULES.html.sh (Date and time <time.h>): Likewise.
19541         * doc/parse-datetime.texi (Date input formats)
19542         (Authors of parse_datetime): Likewise.
19543         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19544         (Include): Likewise.
19545         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19546         * gnulib-tool: Likewise.
19547         * m4/bison.m4 (gl_BISON): Likewise.
19548         Suggested by Bruno Haible.
19549
19550 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19551
19552         more ports to Solaris tr, which needs [] around ranges
19553         * gnulib-tool: Solaris tr needs [] around ranges.
19554         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19555         * tests/test-pipe-filter-gi1.c (main): Likewise.
19556         * tests/test-pipe-filter-ii1.c (main): Likewise.
19557
19558 2010-10-05  Eric Blake  <eblake@redhat.com>
19559
19560         bootstrap: fix Solaris regression
19561         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19562         around ranges.
19563         Reported by Pádraig Brady.
19564
19565         bootstrap: work with pkg-config
19566         * build-aux/bootstrap (check_versions): Also transliterate - in
19567         prerequisite name.
19568         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19569         prerequisites that were already found, to avoid confusion.
19570         Reported by Justin Clift.
19571
19572         faccessat: remove unused wrappers
19573         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19574         presence of these wrappers dragged in -lgen on Solaris.
19575         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19576
19577 2010-10-05  Jim Meyering  <meyering@redhat.com>
19578
19579         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19580         * Makefile (sc_pragma_columns): New syntax-check rule.
19581
19582 2010-10-04  Bruno Haible  <bruno@clisp.org>
19583
19584         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19585         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19586         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19587         Reported by Bruce Korb and Eric Blake.
19588
19589 2010-10-04  Bruno Haible  <bruno@clisp.org>
19590
19591         threadlib: Make option --with-libpth-prefix work.
19592         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19593         use $LIBPTH, not just -lpth.
19594
19595 2010-10-04  Bruno Haible  <bruno@clisp.org>
19596
19597         Avoid line length limitation from HP NonStop system header files.
19598         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19599         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19600         * lib/ctype.in.h: Likewise.
19601         * lib/dirent.in.h: Likewise.
19602         * lib/errno.in.h: Likewise.
19603         * lib/fcntl.in.h: Likewise.
19604         * lib/float.in.h: Likewise.
19605         * lib/getopt.in.h: Likewise.
19606         * lib/iconv.in.h: Likewise.
19607         * lib/inttypes.in.h: Likewise.
19608         * lib/langinfo.in.h: Likewise.
19609         * lib/locale.in.h: Likewise.
19610         * lib/math.in.h: Likewise.
19611         * lib/netdb.in.h: Likewise.
19612         * lib/netinet_in.in.h: Likewise.
19613         * lib/poll.in.h: Likewise.
19614         * lib/pthread.in.h: Likewise.
19615         * lib/pty.in.h: Likewise.
19616         * lib/sched.in.h: Likewise.
19617         * lib/se-selinux.in.h: Likewise.
19618         * lib/search.in.h: Likewise.
19619         * lib/signal.in.h: Likewise.
19620         * lib/spawn.in.h: Likewise.
19621         * lib/stdarg.in.h: Likewise.
19622         * lib/stddef.in.h: Likewise.
19623         * lib/stdint.in.h: Likewise.
19624         * lib/stdio.in.h: Likewise.
19625         * lib/stdlib.in.h: Likewise.
19626         * lib/string.in.h: Likewise.
19627         * lib/strings.in.h: Likewise.
19628         * lib/sys_file.in.h: Likewise.
19629         * lib/sys_ioctl.in.h: Likewise.
19630         * lib/sys_select.in.h: Likewise.
19631         * lib/sys_socket.in.h: Likewise.
19632         * lib/sys_stat.in.h: Likewise.
19633         * lib/sys_time.in.h: Likewise.
19634         * lib/sys_times.in.h: Likewise.
19635         * lib/sys_utsname.in.h: Likewise.
19636         * lib/sys_wait.in.h: Likewise.
19637         * lib/sysexits.in.h: Likewise.
19638         * lib/termios.in.h: Likewise.
19639         * lib/time.in.h: Likewise.
19640         * lib/unistd.in.h: Likewise.
19641         * lib/wchar.in.h: Likewise.
19642         * lib/wctype.in.h: Likewise.
19643         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19644         * modules/ctype (Makefile.am): Likewise.
19645         * modules/dirent (Makefile.am): Likewise.
19646         * modules/errno (Makefile.am): Likewise.
19647         * modules/fcntl-h (Makefile.am): Likewise.
19648         * modules/float (Makefile.am): Likewise.
19649         * modules/getopt-posix (Makefile.am): Likewise.
19650         * modules/iconv-h (Makefile.am): Likewise.
19651         * modules/inttypes (Makefile.am): Likewise.
19652         * modules/langinfo (Makefile.am): Likewise.
19653         * modules/locale (Makefile.am): Likewise.
19654         * modules/math (Makefile.am): Likewise.
19655         * modules/netdb (Makefile.am): Likewise.
19656         * modules/netinet_in (Makefile.am): Likewise.
19657         * modules/poll-h (Makefile.am): Likewise.
19658         * modules/pthread (Makefile.am): Likewise.
19659         * modules/pty (Makefile.am): Likewise.
19660         * modules/sched (Makefile.am): Likewise.
19661         * modules/search (Makefile.am): Likewise.
19662         * modules/selinux-h (Makefile.am): Likewise.
19663         * modules/signal (Makefile.am): Likewise.
19664         * modules/spawn (Makefile.am): Likewise.
19665         * modules/stdarg (Makefile.am): Likewise.
19666         * modules/stddef (Makefile.am): Likewise.
19667         * modules/stdint (Makefile.am): Likewise.
19668         * modules/stdio (Makefile.am): Likewise.
19669         * modules/stdlib (Makefile.am): Likewise.
19670         * modules/string (Makefile.am): Likewise.
19671         * modules/strings (Makefile.am): Likewise.
19672         * modules/sys_file (Makefile.am): Likewise.
19673         * modules/sys_ioctl (Makefile.am): Likewise.
19674         * modules/sys_select (Makefile.am): Likewise.
19675         * modules/sys_socket (Makefile.am): Likewise.
19676         * modules/sys_stat (Makefile.am): Likewise.
19677         * modules/sys_time (Makefile.am): Likewise.
19678         * modules/sys_times (Makefile.am): Likewise.
19679         * modules/sys_utsname (Makefile.am): Likewise.
19680         * modules/sys_wait (Makefile.am): Likewise.
19681         * modules/sysexits (Makefile.am): Likewise.
19682         * modules/termios (Makefile.am): Likewise.
19683         * modules/time (Makefile.am): Likewise.
19684         * modules/unistd (Makefile.am): Likewise.
19685         * modules/wchar (Makefile.am): Likewise.
19686         * modules/wctype (Makefile.am): Likewise.
19687
19688 2010-10-04  Bruno Haible  <bruno@clisp.org>
19689
19690         read-file tests: Avoid a test failure on NonStop Kernel.
19691         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19692         a regular file.
19693         Reported by Joachim Schmitz <schmitz@hp.com>.
19694
19695 2010-10-03  Bruno Haible  <bruno@clisp.org>
19696
19697         gnulib-tool: Fixes for --create-testdir with --libtool.
19698         * gnulib-tool (func_get_automake_snippet): Don't augment
19699         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19700         an executable.
19701         (func_create_testdir): Handle module 'alloca' like func_import.
19702         Reported by Bruce Korb <bruce.korb@gmail.com>.
19703
19704 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19705
19706         Avoid some lines longer than 80 characters.
19707         * lib/stdint.in.h: Break long comment lines.
19708         * lib/math.in.h: Likewise.
19709         (_GL_NUM_UINT_WORDS): New macro, for readability.
19710         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19711         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19712         * lib/stdlib.in.h: Likewise.
19713         * lib/spawn.in.h: Likewise.
19714         * lib/sys_socket.in.h: Update an URL.
19715         * lib/sys_stat.in.h: Break long line.
19716
19717 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19718
19719         Improve pmccabe2html.
19720         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19721         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19722         when the sources change. Remove the line in the HTML about "Used
19723         ranges" (which implied that there might be other unused ranges),
19724         rename "Resume" to "Summary" (easier to understand for more users).
19725         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19726         styles, and some unnecessary blank lines.
19727
19728 2010-10-03  Bruno Haible  <bruno@clisp.org>
19729             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19730
19731         acl: Add support for ACLs on NonStop Kernel.
19732         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19733         Check whether the function aclsort() exists.
19734         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19735         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19736         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19737         (acl_nontrivial [HAVE_ACLSORT]: New function.
19738         (file_has_acl): Implement for NonStop Kernel.
19739         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19740         (qset_acl): Implement for NonStop Kernel.
19741         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19742         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19743         (main): Implement for NonStop Kernel.
19744         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19745         Kernel. Handle this flavor.
19746         * tests/test-set-mode-acl.sh: Likewise.
19747         * tests/test-copy-acl.sh: Likewise.
19748         * tests/test-copy-file.sh: Likewise.
19749
19750 2010-10-03  Bruno Haible  <bruno@clisp.org>
19751
19752         Info about ACLs on NonStop Kernel.
19753         * doc/acl-resources.txt: Add info about NonStop Kernel.
19754         References by Joachim Schmitz <schmitz@hp.com>.
19755
19756 2010-10-02  Bruno Haible  <bruno@clisp.org>
19757
19758         Define missing EDQUOT on NonStop Kernel.
19759         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19760         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19761         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19762         missing.
19763         * doc/posix-headers/errno.texi: Mention the NSK bug.
19764         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19765         Reported by Joachim Schmitz <schmitz@hp.com>.
19766
19767 2010-10-02  Bruno Haible  <bruno@clisp.org>
19768
19769         Update doc for POSIX:2008.
19770         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19771         Update URL of POSIX specification.
19772
19773 2010-10-02  Bruno Haible  <bruno@clisp.org>
19774
19775         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19776         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19777         from gnulib, not from Automake.
19778
19779 2010-10-02  Bruno Haible  <bruno@clisp.org>
19780
19781         New module 'system-posix'.
19782         * modules/system-posix: New file.
19783         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19784         module is present.
19785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19786         GNULIB_SYSTEM_POSIX.
19787         * modules/stdlib (Depends-on): Remove sys_wait.
19788         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19789         * doc/posix-functions/system.texi: Mention the new module.
19790         * doc/posix-headers/stdlib.texi: Likewise.
19791         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19792         define test_sys_wait_macros to a no-op.
19793         Reported by Sam Steingold <sds@gnu.org>.
19794
19795 2010-09-30  Bruno Haible  <bruno@clisp.org>
19796
19797         More renaming from 'getdate' to 'get_date'.
19798         * doc/get_date.texi: Renamed from doc/getdate.texi.
19799         * modules/get_date (Files): Update.
19800         * MODULES.html.sh (Date and time <time.h>): Update.
19801         * DEPENDENCIES: Update.
19802         * gnulib-tool: Update comment.
19803         * m4/bison.m4 (gl_BISON): Likewise.
19804         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19805
19806 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19807
19808         bootstrap: support ACLOCAL_FLAGS during aclocal
19809         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19810         can add additional -I dir for third-party .m4 files.
19811
19812 2010-09-30  Eric Blake  <eblake@redhat.com>
19813
19814         bootstrap: use glibtoolize on MacOS
19815         * build-aux/bootstrap (check_versions): Convert libtool into
19816         libtoolize.
19817         (tool search): Move libtool check earlier, and look for
19818         glibtoolize for MacOS.
19819         (gnulib_tool_options): Auto-add --libtool when appropriate.
19820         Reported by Justin Clift.
19821
19822         poll: fix typo that broke test on MacOS
19823         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19824         Reported by Justin Clift.
19825
19826         getdate: rename to get_date
19827         Note: getdate.h is not renamed, to minimize client impact.
19828         * modules/getdate: Mark obsolete.  Move old contents...
19829         * modules/get_date: ...to new module name.
19830         * modules/getdate-tests: Move...
19831         * modules/get_date-tests: ...here.
19832         * m4/getdate.m4: Move...
19833         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19834         * lib/getdate.y: Move...
19835         * lib/get_date.y: ...here.
19836         * tests/test-getdate.c: Move...
19837         * tests/test-get_date.c: ...here.
19838         * doc/posix-functions/getdate.texi (getdate): Update name.
19839         * NEWS: Mention the change.
19840
19841 2010-09-29  Bruno Haible  <bruno@clisp.org>
19842
19843         Separate the module 'waitpid' from the module 'sys_wait'.
19844         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19845         present.
19846         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19847         gl_MODULE_INDICATOR_FOR_TESTS.
19848         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19849         * modules/sys_wait (Depends-on): Remove waitpid.
19850         (Makefile.am): Substitute GNULIB_WAITPID.
19851         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19852         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19853         signature only if the 'waitpid' module is present.
19854         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19855         * NEWS: Mention the change.
19856         * modules/grantpt (Depends-on): Add waitpid.
19857         * modules/wait-process (Depends-on): Likewise.
19858
19859 2010-09-29  Bruno Haible  <bruno@clisp.org>
19860
19861         More tests for module 'sys_wait'.
19862         * modules/sys_wait-c++-tests: New file.
19863         * tests/test-sys_wait-c++.cc: New file.
19864         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19865         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19866
19867 2010-09-29  Bruno Haible  <bruno@clisp.org>
19868
19869         New module 'waitpid'.
19870         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19871         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19872         Don't include <process.h>.
19873         (waitpid): Declare only, using modern idiom.
19874         * m4/waitpid.m4: New file.
19875         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19876         * modules/waitpid: New file.
19877         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19878         (Makefile.am): Update.
19879         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19880
19881 2010-09-28  Bruno Haible  <bruno@clisp.org>
19882
19883         poll: Assume ANSI C.
19884         * lib/poll.c (poll): Use an ANSI C declaration.
19885
19886 2010-09-28  Bruno Haible  <bruno@clisp.org>
19887
19888         poll-h: Create poll.h on all platforms.
19889         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19890         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19891         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19892         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19893         (gl_REPLACE_POLL_H): Don't set POLL_H.
19894         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19895         * modules/poll-h (Depends-on): Add include_next.
19896         (Makefile.am): Create poll.h unconditionally. Substitute also
19897         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19898
19899 2010-09-28  Bruno Haible  <bruno@clisp.org>
19900
19901         Tests for module 'poll-h'.
19902         * modules/poll-h-c++-tests: New file.
19903         * tests/test-poll-h-c++.cc: New file.
19904
19905         Tests for module 'poll-h'.
19906         * modules/poll-h-tests: New file.
19907         * tests/test-poll-h.c: New file.
19908
19909 2010-09-28  Bruno Haible  <bruno@clisp.org>
19910
19911         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19912         * modules/poll-h (Depends-on): Add 'extensions'.
19913
19914 2010-09-28  Bruno Haible  <bruno@clisp.org>
19915
19916         New module 'poll-h'.
19917         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19918         (poll): Use modern idiom.
19919         * modules/poll-h: New file.
19920         * modules/poll (Files): Remove lib/poll.in.h.
19921         (Depends-on): Add poll-h.
19922         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19923         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19924         * m4/poll_h.m4: New file.
19925         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19926         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19927         and invoke gl_REPLACE_POLL_H.
19928         * lib/poll.c: Use common idiom.
19929         * tests/test-poll.c: Likewise.
19930         * doc/posix-headers/poll.texi: Mention the poll-h module.
19931         Suggested by Eric Blake.
19932
19933 2010-09-26  Bruno Haible  <bruno@clisp.org>
19934
19935         sys_wait: Implement WSTOPSIG.
19936         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19937         Reported by Simon Josefsson.
19938
19939 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19940
19941         stdlib, sys_wait: Avoid compilation error on mingw.
19942         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19943
19944 2010-09-26  Bruno Haible  <bruno@clisp.org>
19945
19946         stdlib tests: Avoid code duplication.
19947         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19948         * modules/sys_wait-tests (Files): Likewise.
19949         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19950         * tests/test-stdlib.c: Include test-sys_wait.h.
19951         (main): Invoke test_sys_wait_macros.
19952         * tests/test-sys_wait.c: Include test-sys_wait.h.
19953         (main): Invoke test_sys_wait_macros.
19954
19955 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19956
19957         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19958         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19959         sure Windows sockets are working before calling getaddrinfo.
19960         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19961         * doc/gnulib.texi (Windows sockets): Fix typo.
19962
19963 2010-09-25  Bruno Haible  <bruno@clisp.org>
19964
19965         Tests for module 'regex-quote'.
19966         * modules/regex-quote-tests: New file.
19967         * tests/test-regex-quote.c: New file.
19968
19969         New module 'regex-quote'.
19970         * lib/regex-quote.h: New file.
19971         * lib/regex-quote.c: New file.
19972         * modules/regex-quote: New file.
19973         Suggested by Reuben Thomas <rrt@sc3d.org>.
19974
19975 2010-09-24  Bruno Haible  <bruno@clisp.org>
19976
19977         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19978         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19979
19980 2010-09-23  Bruno Haible  <bruno@clisp.org>
19981
19982         setenv: Relax license.
19983         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19984         Blake.
19985         Requested by Eric Blake.
19986
19987 2010-09-22  Bruno Haible  <bruno@clisp.org>
19988
19989         termios: Relax license.
19990         * modules/termios (License): Change to LGPLv2+.
19991         Requested by Eric Blake.
19992
19993 2010-09-22  Bruno Haible  <bruno@clisp.org>
19994
19995         threadlib: Allow the package to change the default to 'no'.
19996         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19997         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19998         Reported by Paul Eggert.
19999
20000 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20001             Bruno Haible  <bruno@clisp.org>
20002
20003         Fix endless loop in mbmemcasecoll.
20004         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20005         byte.
20006         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20007
20008 2010-09-22  Bruno Haible  <bruno@clisp.org>
20009
20010         Tests for module 'memcoll'.
20011         * modules/memcoll-tests: New file.
20012         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20013
20014         memcoll, xmemcoll: Clarify size vs. length.
20015         * modules/memcoll.c (memcoll0): Clarify specification.
20016         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20017         passed to collate_error.
20018
20019 2010-09-22  Bruno Haible  <bruno@clisp.org>
20020
20021         Tests for module 'memcasecmp'.
20022         * modules/memcasecmp-tests: New file.
20023         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20024
20025 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20026
20027         * lib/pthread.in.h: Add split double-inclusion guard, and include
20028         system <pthread.h> if there is one.  Use @@-style as in other
20029         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20030         pthread.h doesn't.
20031         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20032         (pthread_mutexattr_settype, pthread_mutex_trylock):
20033         New static inline functions, if there's no system <pthread.h>.
20034         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20035         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20036         Approximate with mutexes if the system lacks spinlocks, as in
20037         MacOS.
20038         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20039         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20040         @@-style.  Check for spinlocks separately.
20041         (gl_PTHREAD_DEFAULTS): New macro.
20042         * modules/pthread: Redo to use a more typical style for in.h files.
20043
20044 2010-09-21  Eric Blake  <eblake@redhat.com>
20045
20046         net_if: enhance tests
20047         * tests/test-net_if.c (main): Move signature checks earlier.
20048         Print failures to stderr.
20049         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20050         Document the bug that we do not yet fix.
20051
20052 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20053
20054         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20055         about gnulib, not GSS.
20056
20057 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20058
20059         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20060         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20061         for Emacs.
20062         * build-aux/pmccabe2html: Make Makefile.am example code more
20063         cut-and-paste friendly.
20064
20065 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20066
20067         * tests/test-net_if.c: New file.
20068         * modules/net_if-tests: New file.
20069
20070 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20071
20072         pthread: add pthread_spin_destroy
20073         * lib/pthread.in.h (pthread_spin_destroy): New function.
20074
20075 2010-09-19  Bruno Haible  <bruno@clisp.org>
20076
20077         gnulib-tool: Fix --help output.
20078         * gnulib-tool (func_usage): Fix help message.
20079         Reported by Reuben Thomas <rrt@sc3d.org>.
20080
20081 2010-09-18  Jim Meyering  <meyering@redhat.com>
20082
20083         maint.mk: avoid unexpanded \n in two diagnostics
20084         * top/maint.mk (sc_prohibit_always_true_header_tests):
20085         Don't use a literal \n in a halt=... assignment.  It would not be
20086         expanded, and the two \n bytes would appear in the diagnostic output
20087         rather than the desired newline.  Use halt=$$(printf ... instead.
20088         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20089
20090 2010-09-18  Bruno Haible  <bruno@clisp.org>
20091
20092         netinet_in: Doc tweak.
20093         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20094         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20095
20096 2010-09-18  Jim Meyering  <meyering@redhat.com>
20097
20098         init.sh: correct an outdated comment
20099         * tests/init.sh (create_exe_shims_):  s/function/alias/
20100
20101         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20102         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20103         a file named "*.exe" is removed between the glob expansion and the
20104         processing of that oddly named file.
20105
20106 2010-09-17  Eric Blake  <eblake@redhat.com>
20107
20108         mirbsd: add some more support
20109         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20110         in BSD family.
20111         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20112         devices as OpenBSD.
20113         * m4/host-os.m4 (mirbsd): Add MirBSD.
20114
20115         tests: fix unportable assumption on sys/wait.h
20116         * tests/test-sys_wait.c (main): Relax test.
20117         * tests/test-stdlib.c (main): Likewise.
20118
20119         init.sh: accomodate directory with no .exes
20120         * tests/init.sh: Accomodate directory containing only scripts.
20121
20122         tests: avoid compiler warning
20123         * tests/test-stdlib.c (main): Use the variable.
20124
20125         fdutimens, fdutimensat: update signature, again
20126         * lib/utimens.h (gl_futimens): Delete, and move signature...
20127         (fdutimens): ...here.
20128         (fdutimensat): Rearrange signature.
20129         (lutimensat): Rename variable for clarity.
20130         * lib/fdutimensat.c (fdutimensat): Update signature.
20131         * lib/utimens.c (fdutimens): Likewise.
20132         (gl_futimens): Delete.
20133         (utimens, lutimens): Update callers.
20134         * lib/futimens.c (futimens): Likewise.
20135         * tests/test-fdutimensat.c: Likewise.
20136         * tests/test-utimens.c: Likewise.
20137         * tests/test-futimens.h: Update comment.
20138         * NEWS: Mention this.
20139         Suggested by Paul Eggert.
20140
20141 2010-09-17  Bruno Haible  <bruno@clisp.org>
20142
20143         Take over the maintenance of some older macros from Autoconf.
20144         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20145         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20146         GNU Autoconf.
20147         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20148         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20149
20150 2010-09-17  Eric Blake  <eblake@redhat.com>
20151
20152         fdutimensat: drop atflag validation
20153         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20154         with valid fd, to close a race scenario where futimens is
20155         unsupported and FILE was replaced by a symlink.
20156         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20157         accordingly.
20158         Suggested by Paul Eggert.
20159
20160 2010-09-16  Bruno Haible  <bruno@clisp.org>
20161
20162         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20163         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20164
20165 2010-09-16  Bruno Haible  <bruno@clisp.org>
20166
20167         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20168         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20169         login_tty exists.
20170         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20171
20172 2010-09-16  Bruno Haible  <bruno@clisp.org>
20173
20174         login_tty: Make the replacement code work on BSD systems.
20175         * lib/login_tty.c: Include <sys/ioctl.h>.
20176         (login_tty): Use ioctl TIOCSCTTY when available.
20177         * modules/login_tty (Depends-on): Add sys_ioctl.
20178         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20179
20180 2010-09-16  Bruno Haible  <bruno@clisp.org>
20181
20182         login_tty: Stricter unit test.
20183         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20184         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20185         and tcgetsid() after login_tty.
20186         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20187
20188 2010-09-16  Bruno Haible  <bruno@clisp.org>
20189
20190         New module 'tcgetsid'.
20191         * lib/tcgetsid.c: New file.
20192         * m4/tcgetsid.m4: New file.
20193         * modules/tcgetsid: New file.
20194         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20195         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20196         GNULIB_TCGETSID, HAVE_TCGETSID.
20197         * lib/termios.in.h: Include <sys/types.h>.
20198         (tcgetsid): New declaration.
20199         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20200         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20201         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20202         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20203
20204 2010-09-16  Bruno Haible  <bruno@clisp.org>
20205
20206         Tests for module 'termios'.
20207         * modules/termios-c++-tests: New file.
20208         * modules/termios-tests: New file.
20209         * tests/test-termios-c++.cc: New file.
20210         * tests/test-termios.c: New file.
20211
20212         New module 'termios'.
20213         * modules/termios: New file.
20214         * lib/termios.in.h: New file.
20215         * m4/termios_h.m4: New file.
20216         * doc/posix-headers/termios.texi: Mention the new module.
20217
20218 2010-09-16  Eric Blake  <eblake@redhat.com>
20219
20220         fdutimensat: add an atflag parameter
20221         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20222         * lib/utimens.h (fdutimensat): Update prototype.
20223         * tests/test-fdutimensat.c: Adjust test to match.
20224         * NEWS: Document the change.
20225         Suggested by Paul Eggert.
20226
20227 2010-09-16  Bruno Haible  <bruno@clisp.org>
20228
20229         Fix typos in comments.
20230         * lib/striconveh.h: Fix typo in comment.
20231         * lib/login_tty.c (login_tty): Likewise.
20232
20233 2010-09-15  Bruno Haible  <bruno@clisp.org>
20234
20235         stdlib: clarify MirBSD WEXITSTATUS bug
20236         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20237         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20238
20239 2010-09-15  Eric Blake  <eblake@redhat.com>
20240
20241         stdlib: work around MirBSD WEXITSTATUS bug
20242         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20243         * modules/stdlib (Depends-on): Add sys_wait.
20244         * tests/test-sys_wait.c (main): Enhance test.
20245         * tests/test-stdlib.c (main): Likewise.
20246         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20247
20248         docs: mention MacOS issue with WEXITSTATUS(constant)
20249         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20250         issue.
20251         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20252
20253         strnlen: add tests
20254         * modules/strnlen-tests: New file.
20255         * tests/test-strnlen.c: Likewise.
20256
20257 2010-09-14  Bruno Haible  <bruno@clisp.org>
20258
20259         unistr/base: Avoid link errors when module 'libunistring' is also used.
20260         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20261         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20262         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20263         Declare also when HAVE_LIBUNISTRING is set.
20264         Reported by Pádraig Brady <P@draigbrady.com>.
20265
20266 2010-09-14  Eric Blake  <eblake@redhat.com>
20267
20268         test-rawmemchr: make more robust
20269         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20270         (Depends-on, configure.ac): Add needed prerequisites to use it.
20271         * modules/memchr-tests (Files, Depends-on, configure.ac):
20272         Likewise, to avoid implicit reliance on memchr module prereqs.
20273         * tests/test-memchr.c (main): Ensure proper masking.
20274         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20275         reads.
20276
20277         memchr: detect glibc Alpha bug
20278         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20279         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20280         Alpha.
20281         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20282         * tests/test-memchr.c (main): Enhance test.
20283         Reported by Nelson H. F. Beebe.
20284
20285 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20286
20287         fts, getcwd, glob: audit for dirfd returning -1
20288         * lib/fts.c (opendir): Remove #define; no longer used.
20289         (opendirat): New arg PDIR_FD.  All callers changed.
20290         (fts_build, _opendir2): Use new opendirat to avoid the need for
20291         dirfd, or for checking whether dirfd returns a negative value.
20292         Don't use opendir; always use openat followed by fdopendir.
20293         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20294         it.
20295         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20296         returns -1 here.
20297         * modules/fts (Depends-on): Remove dirfd.
20298         * modules/getcwd (Depends-on): Likewise.
20299
20300 2010-09-13  Eric Blake  <eblake@redhat.com>
20301
20302         float: fix broken MirBSD header
20303         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20304         * doc/posix-headers/float.texi (float.h): Document it.
20305
20306 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20307
20308         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20309         * lib/fts.c (opendirat): New arg extra_flags.
20310         (__opendir2): Use it to avoid following symlinks when opening
20311         a directory, if symlinks are not supposed to be followed.  See
20312         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20313
20314         fdopendir: preserve argument fd before returning
20315         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20316         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20317         (fdopendir): Use them, arranging for FD to be open to the same
20318         directory that it was when it started.  (It might be temporarily
20319         closed while fdopendir is running, so this not thread- or
20320         signal-safe.)  Be careful to do the right thing even when file
20321         descriptors are scarce and dup fails with errno == EMFILE.  See
20322         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20323
20324 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20325
20326         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20327         * NEWS: Document change.
20328         * m4/regex.m4: Disable test for regoff_t size.
20329
20330 2010-09-13  Jim Meyering  <meyering@redhat.com>
20331
20332         fts: don't operate on an invalid file descriptor after failed dup
20333         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20334         negative file descriptor.
20335
20336 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20337
20338         savedir: add streamsavedir, deprecate fdsavedir
20339         * NEWS: Mention deprecation of fdsavedir.
20340         * lib/savedir.c (streamsavedir): New extern function, whose name
20341         ends in "savedir" to be consistent with the others.  This differs
20342         from savedirstream in that it doesn't close its argument.  The
20343         next version of GNU tar will use this instead of fdsavedir, to
20344         avoid some race conditions and conserve file descriptors.
20345         (savedirstream): Reimplement as a wrapper around streamsavedir.
20346         (fdsavedir): Add a comment deprecating this function.  As far as
20347         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20348         * lib/savedir.h (streamsavedir): New decl.
20349         (fdsavedir): Add a comment deprecating this.
20350
20351 2010-09-10  Bruno Haible  <bruno@clisp.org>
20352
20353         langinfo: Fix last commit.
20354         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20355         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20357
20358 2010-09-10  Bruno Haible  <bruno@clisp.org>
20359
20360         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20361         * lib/progreloc.c (O_EXEC): Define fallback.
20362
20363 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20364
20365         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20366         * NEWS: Document recent changes to fcntl-h.
20367         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20368         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20369         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20370         Similarly for O_SEARCH; this last was already true, but not documented.
20371         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20372         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20373         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20374         Likewise.
20375         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20376         is zero, not whether it is defined.
20377         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20378         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20379         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20380
20381 2010-09-10  Bruno Haible  <bruno@clisp.org>
20382
20383         langinfo, nl_langinfo: Fix for IRIX 5.3.
20384         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20385         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20386         HAVE_LANGINFO_YESEXPR.
20387         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20388         HAVE_LANGINFO_YESEXPR.
20389         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20390         HAVE_LANGINFO_T_FMT_AMPM is 0.
20391         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20392         HAVE_LANGINFO_YESEXPR is 0.
20393         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20394         NOEXPR.
20395         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20396         * doc/posix-functions/nl_langinfo.texi: Likewise.
20397         Reported by Eric Blake.
20398
20399 2010-09-10  Bruno Haible  <bruno@clisp.org>
20400
20401         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20402         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20403         on FreeBSD 8.0 and OpenBSD 4.6.
20404         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20405         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20406         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20407         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20408         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20409         ac_includes_default.
20410         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20411
20412 2010-09-09  Eric Blake  <eblake@redhat.com>
20413
20414         strsignal: work around NetBSD bug
20415         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20416         * lib/string.in.h (includes): Likewise.
20417         * doc/posix-functions/strsignal.texi (strsignal): Document the
20418         bug.
20419         Reported by Nelson H. F. Beebe.
20420
20421         gnulib-tool: work with NetBSD /bin/sh
20422         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20423         (func_get_description, func_get_comment, func_get_status)
20424         (func_get_notice, func_get_applicability, func_get_filelist)
20425         (func_get_dependencies, func_get_autoconf_early_snippet)
20426         (func_get_autoconf_snippet, func_get_automake_snippet)
20427         (func_get_include_directive, func_get_link_directive)
20428         (func_get_license, func_get_maintainer, func_import): Avoid
20429         shell syntax errors from parsing syntax extensions.
20430
20431 2010-09-09  Bruno Haible  <bruno@clisp.org>
20432
20433         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20434         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20435         a reliable way to determine whether the 'alias' command works.
20436
20437 2010-09-08  Jim Meyering  <meyering@redhat.com>
20438
20439         init.sh: penalize a set-x-impaired shell; don't disqualify it
20440         * tests/init.sh: Too many shells corrupt application stderr when
20441         you set -x, so we can't afford to disqualify them, since at least
20442         on Irix-6.5, that would disqualify all bourne shells.
20443         Instead, use a two-pass approach.
20444         On the first pass, try to find a shell that meets the stricter
20445         condition that set -x does not corrupt stderr.
20446         If no shell meets the stricter condition, retest each candidate
20447         shell, but without that extra condition.  Finally, when
20448         VERBOSE=yes is requested and set -x might cause trouble, simply
20449         issue a warning and refrain from enabling debug output.
20450
20451 2010-09-08  Eric Blake  <eblake@redhat.com>
20452
20453         unsetenv: fix OpenBSD bug
20454         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20455         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20456         documentation.
20457         Reported by Jim Meyering.
20458
20459         strtod: work around IRIX 6.5 bug
20460         * lib/strtod.c (strtod): Reparse number on shorter string if
20461         exponent parse was invalid.
20462         * tests/test-strtod.c (main): Add check for "0x1p 2".
20463         Reported by Tom G. Christensen.
20464
20465         getopt: optimize previous patch
20466         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20467         empty variable.  Speed up awk script.
20468         Reported by Paolo Bonzini.
20469
20470 2010-09-08  Jim Meyering  <meyering@redhat.com>
20471
20472         test.sh: disqualify shells for which set -x corrupts stderr
20473         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20474         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20475         appear in stderr output.  For example, this command:
20476             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20477         prints "P=1" on those two systems:
20478
20479 2010-09-08  Bruno Haible  <bruno@clisp.org>
20480
20481         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20482         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20483         commands, because some shells ignore redirections when there is an
20484         error in the command lookup.
20485         Reported by Eric Blake.
20486
20487 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20488
20489         * lib/regex.h: Fix a mention of `regex_compile' (should be
20490         `re_compile_pattern').
20491         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20492         (re_set_registers): Correct name of parameter in comment.
20493
20494         * doc/regex.texi: Add documentation for missing syntax flags.
20495         Remove commented-out documentation of defunct syntax option
20496         RE_NO_EMPTY_ALTS.
20497         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20498         Add documentation of re_set_registers.
20499         Document trick to re-use a pattern buffer by setting fastmap manually.
20500         Update documentation of struct re_pattern_buffer per public members.
20501         Uncomment documentation of equivalence class operators and
20502         collating symbol operators, since they are now implemented,
20503         Explain leftmost-longest matching in relation to alternatives.
20504         Tidy documentation of substring matching.
20505         Remove POSIX documentation, which is done better in
20506         glibc, and refer the reader there. Keep BSD API documentation, as
20507         that is not readily available elsewhere.
20508
20509 2010-09-07  Eric Blake  <eblake@redhat.com>
20510
20511         getopt: handle POSIXLY_CORRECT set but not exported
20512         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20513         export state of POSIXLY_CORRECT, due to bash set -o posix.
20514         Reported by Dustin J. Mitchell.
20515
20516 2010-09-05  Bruno Haible  <bruno@clisp.org>
20517
20518         gnulib-tool: Highlight the changed options.
20519         * gnulib-tool (func_usage): Display the --import, --add-import,
20520         --remove-import explanations in bold font.
20521
20522 2010-09-06  Karl Berry  <karl@gnu.org>
20523
20524         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20525
20526 2010-09-05  Bruno Haible  <bruno@clisp.org>
20527
20528         uniwidth/width: Update comment.
20529         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20530         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20531
20532 2010-09-05  Bruno Haible  <bruno@clisp.org>
20533
20534         isinf, isnan: Relax license.
20535         * modules/isinf (License): Change from GPL to LGPL, with consent from
20536         Ben Pfaff.
20537         * modules/isnan (License): Likewise.
20538         Requested by Ludovic Courtès.
20539
20540 2010-09-04  Bruno Haible  <bruno@clisp.org>
20541
20542         gnulib-tool: Help migration from --import to --add-import or --update.
20543         * gnulib-tool: Emit a verbose error message when --import is used
20544         without any module name.
20545
20546 2010-09-04  Bruno Haible  <bruno@clisp.org>
20547
20548         Update doc about gnulib-tool.
20549         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20550         'gnulib-tool --update' in more detail.
20551         Reported by Eric Blake.
20552
20553 2010-09-04  Bruno Haible  <bruno@clisp.org>
20554
20555         gnulib-tool: Change --import. New options --add/remove-import.
20556         * gnulib-tool: New options --add-import, --remove-import.
20557         (func_usage): Document them.
20558         (have_associative): Define always.
20559         (func_import): In import mode, don't merge the specified settings with
20560         the cached settings. Implement remove-import mode.
20561         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20562         Explain when to use them versus --import.
20563         (Simple update): Use --add-import instead of --import.
20564         * NEWS: Mention the change.
20565
20566 2010-09-04  Bruno Haible  <bruno@clisp.org>
20567
20568         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20569         separate gnulib.mk.
20570
20571 2010-09-04  Bruno Haible  <bruno@clisp.org>
20572
20573         gnulib-tool: Don't talk about CVS any more.
20574         * gnulib-tool (func_usage, func_import): Write "version control"
20575         instead of CVS.
20576
20577 2010-09-04  Jim Meyering  <meyering@redhat.com>
20578
20579         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20580         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20581         false positives (whose names may be ill-chosen) when searching
20582         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20583         would cause a false-positive.
20584
20585         avoid coreutils "make distcheck" failure
20586         Coreutils tests with an absolute build directory name that contains
20587         a space.  Not quoting this directory name caused a failure.
20588         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20589         * tests/test-vc-list-files-cvs.sh: Likewise.
20590
20591 2010-09-04  Bruno Haible  <bruno@clisp.org>
20592
20593         gnulib-tool: Avoid error when run in a package without Makefile.am.
20594         * gnulib-tool: When collecting the m4dirs in a package that does not
20595         have a Makefile.am, eliminate those directories that contain no
20596         gnulib-cache.m4. Fix expression that counts these directories.
20597
20598 2010-09-04  Bruno Haible  <bruno@clisp.org>
20599
20600         update-copyright test: Improve output when perl is missing or too old.
20601         * tests/test-update-copyright.sh: Move test of Perl version down after
20602         the test whether Perl exists. Provide an explanation relating Perl's
20603         error message to Automake's SKIP: message.
20604
20605 2010-09-04  Bruno Haible  <bruno@clisp.org>
20606
20607         Don't augment PATH in TESTS_ENVIRONMENT.
20608         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20609         set abs_aux_dir instead of augmenting PATH.
20610         * modules/vc-list-files-tests (Makefile.am): Likewise.
20611         * tests/test-update-copyright.sh: Augment PATH here.
20612         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20613         path_prepend_.
20614         * tests/test-vc-list-files-git.sh: Likewise.
20615
20616 2010-09-04  Jim Meyering  <meyering@redhat.com>
20617
20618         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20619         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20620
20621 2010-09-04  Bruno Haible  <bruno@clisp.org>
20622
20623         strdup: Fix compilation error in C++ mode.
20624         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20625         the macro.
20626
20627 2010-09-04  Bruno Haible  <bruno@clisp.org>
20628
20629         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20630         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20631         macro into a function.
20632         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20633
20634 2010-09-04  Bruno Haible  <bruno@clisp.org>
20635
20636         Set PATH_SEPARATOR the same way autoconf does.
20637         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20638         the value of PATH_SEPARATOR the same way autoconf-generated configure
20639         scripts do.
20640         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20641         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20642
20643 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20644
20645         Set PATH_SEPARATOR the same way autoconf does.
20646         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20647         the same way autoconf-generated configure scripts do.
20648         * posix-modules: Likewise.
20649
20650 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20651
20652         hash: fix safe_hasher const typo
20653         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20654         const; otherwise, there is a type error later.
20655
20656 2010-09-02  Jim Meyering  <meyering@redhat.com>
20657
20658         test-update-copyright.sh: require perl 5.8.0
20659         * tests/test-update-copyright.sh: Require 5.8.0,
20660         which Tom G. Christensen has confirmed is adequate,
20661         while 5.6.1 is not.
20662
20663 2010-09-02  Eric Blake  <eblake@redhat.com>
20664
20665         tests: init.sh improvements for re-exec'ing with zsh
20666         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20667         -vx through shell re-exec.
20668         Reported by Tom G. Christensen.
20669
20670         wctype: fix typo in previous commit
20671         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20672         Reported by Ludovic Courtès.
20673
20674 2010-09-02  Jim Meyering  <meyering@redhat.com>
20675
20676         test-update-copyright.sh: skip test if Perl is too old
20677         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20678         Reported by Tom G. Christensen.
20679
20680 2010-09-02  Bruno Haible  <bruno@clisp.org>
20681
20682         wctype: Avoid compilation error on IRIX 6.5.30.
20683         * lib/wctype.in.h (iswblank): Declare with a replacement if
20684         REPLACE_ISWBLANK is set.
20685         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20686         declared. Set REPLACE_ISWBLANK.
20687         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20688         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20689         * doc/posix-headers/wctype.texi: Likewise.
20690         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20691
20692 2010-09-01  Bruno Haible  <bruno@clisp.org>
20693
20694         New module 'socketlib'.
20695         * modules/socketlib: New file.
20696         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20697         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20698         * modules/sockets (Depends-on): Add socketlib.
20699         Suggested by Sam Steingold <sds@gnu.org>.
20700
20701 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20702
20703         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20704
20705         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20706         when one needs search access to a directory but not read access.
20707         On systems where it is available, it works in some cases where
20708         O_RDONLY does not, namely on directories that are searchable but
20709         not readable, and which need only to be searchable.  If O_SEARCH
20710         is not available, fall back to the traditional method of using
20711         O_RDONLY.
20712
20713         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20714         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20715         when opening a directory that needs only to be searchable.
20716         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20717         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20718         * lib/openat-proc.c (openat_proc_name): Likewise.
20719         * lib/openat.c (openat_needs_fchdir): Likewise.
20720         * lib/save-cwd.c (save_cwd): Likewise.
20721         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20722
20723 2010-08-28  Bruno Haible  <bruno@clisp.org>
20724
20725         New module 'host-cpu-c-abi'.
20726         * modules/host-cpu-c-abi: New file.
20727         * m4/host-cpu-c-abi.m4: New file, based on part of
20728         clisp/src/m4/general.m4.
20729         Requested by Sam Steingold <sds@gnu.org>.
20730
20731 2010-08-31  Eric Blake  <eblake@redhat.com>
20732         and Jim Meyering  <meyering@redhat.com>
20733
20734         hash: factor, and guard against misbehaving hasher function
20735         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20736         of table->hasher's return value.  Also protect against a hash value
20737         so large that adding it to table->bucket results in a NULL pointer.
20738         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20739         Use it in place of open-coded check-and-abort.
20740
20741 2010-08-30  Bruno Haible  <bruno@clisp.org>
20742
20743         hash: silence spurious clang warning
20744         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20745         Reported by Eric Blake.
20746
20747 2010-08-30  Eric Blake  <eblake@redhat.com>
20748
20749         strstr, memmem, strcasestr: avoid leaked shell message
20750         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20751         FreeBSD.
20752         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20753         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20754
20755         tests: silence clang warning
20756         * tests/test-malloca.c (do_allocation): Avoid dead store.
20757
20758 2010-08-29  Bruno Haible  <bruno@clisp.org>
20759
20760         gettext: Fix recent mistake.
20761         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20762
20763 2010-08-29  Bruno Haible  <bruno@clisp.org>
20764
20765         selinux-h: Offer a --without-selinux option.
20766         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20767         --without-selinux was specified, skip all tests and define
20768         HAVE_SELINUX_SELINUX_H to 0.
20769         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20770         set LIB_SELINUX to empty.
20771         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20772         gl_LIBSELINUX. If --without-selinux was specified, replace
20773         selinux/context.h.
20774         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20775
20776 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20777             Bruno Haible  <bruno@clisp.org>
20778
20779         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20780         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20781         of HAVE_REALLOC.
20782         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20783         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20784         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20785         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20786
20787 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20788             Bruno Haible  <bruno@clisp.org>
20789
20790         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20791         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20792         HAVE_CALLOC.
20793         * lib/xmalloc.c: Update accordingly.
20794         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20795         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20796         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20797
20798 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20799             Bruno Haible  <bruno@clisp.org>
20800
20801         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20802         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20803         HAVE_MALLOC.
20804         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20805         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20806         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20807
20808 2010-08-29  Bruno Haible  <bruno@clisp.org>
20809
20810         Update modules list.
20811         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20812         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20813         (String handling <string.h>): Add astrxfrm.
20814         (File system functions): Add readlinkat.
20815
20816 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20817
20818         Tests for module 'realloc-gnu'.
20819         * modules/realloc-gnu-tests: New file.
20820         * tests/test-realloc-gnu.c: New file.
20821
20822         Tests for module 'calloc-gnu'.
20823         * modules/calloc-gnu-tests: New file.
20824         * tests/test-calloc-gnu.c: New file.
20825
20826         Tests for module 'malloc-gnu'.
20827         * modules/malloc-gnu-tests: New file.
20828         * tests/test-malloc-gnu.c: New file.
20829
20830 2010-08-28  Bruno Haible  <bruno@clisp.org>
20831
20832         Rename module 'realloc' -> 'realloc-gnu'.
20833         * modules/realloc-gnu: New file, copied from modules/realloc.
20834         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20835         obsolete.
20836         * modules/mgetgroups (Depends-on): Update.
20837         * doc/posix-functions/realloc.texi: Update.
20838         * NEWS: Mention the change.
20839
20840         Rename module 'calloc' -> 'calloc-gnu'.
20841         * modules/calloc-gnu: New file, copied from modules/calloc.
20842         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20843         obsolete.
20844         * doc/posix-functions/calloc.texi: Update.
20845         * NEWS: Mention the change.
20846
20847         Rename module 'malloc' -> 'malloc-gnu'.
20848         * modules/malloc-gnu: New file, copied from modules/malloc.
20849         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20850         obsolete.
20851         * modules/argp (Depends-on): Update.
20852         * modules/regex (Depends-on): Update.
20853         * doc/posix-functions/malloc.texi: Update.
20854         * NEWS: Mention the change.
20855
20856 2010-08-28  Eric Blake  <eblake@redhat.com>
20857
20858         pread, pwrite: add missing dependency
20859         * modules/pread (Depends-on): Add extensions.
20860         * modules/pwrite (Depends-on): Likewise.
20861
20862 2010-08-28  Bruno Haible  <bruno@clisp.org>
20863
20864         unistr/u*-strchr: Fix tests dependencies.
20865         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20866         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20867         Reported by Ian Beckwith <ianb@erislabs.net>.
20868
20869 2010-08-28  Bruno Haible  <bruno@clisp.org>
20870
20871         read-file: Don't occupy too much unused memory.
20872         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20873
20874 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20875             Eric Blake  <eblake@redhat.com>
20876             Bruno Haible  <bruno@clisp.org>
20877
20878         read-file: Avoid memory reallocations with regular files.
20879         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20880         (fread_file): With regular files, use the remaining length as the
20881         initial buffer size.  Check against overflow.
20882         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20883         sys_stat.
20884
20885 2010-08-28  Bruno Haible  <bruno@clisp.org>
20886
20887         ftello: Relax license.
20888         * modules/ftello (License): Relax to LGPLv2+.
20889         Reported by Eric Blake.
20890
20891 2010-08-28  Bruno Haible  <bruno@clisp.org>
20892
20893         Avoid relocwrapper link errors due to gnulib replacement functions.
20894         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20895         function.
20896         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20897
20898 2010-08-28  Bruno Haible  <bruno@clisp.org>
20899
20900         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20901         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20902         defined.
20903         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20904         Suggested by Eric Blake.
20905
20906 2010-08-28  Bruno Haible  <bruno@clisp.org>
20907
20908         sys_socket, netdb: Ensure socklen_t gets defined.
20909         * modules/sys_socket (Depends-on): Add socklen.
20910         * modules/netdb (Depends-on): Likewise.
20911         * modules/getaddrinfo (Depends-on): Remove socklen.
20912         * modules/getsockopt (Depends-on): Likewise.
20913         * modules/setsockopt (Depends-on): Likewise.
20914         * tests/test-sys_socket.c: Check that socklen_t is defined.
20915         * tests/test-netdb.c: Likewise.
20916         * m4/socklen.m4: Update comments.
20917         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20918
20919 2010-08-27  Eric Blake  <eblake@redhat.com>
20920
20921         login_tty: add missing dependency
20922         * modules/login_tty (Depends-on): Add pty.
20923
20924 2010-08-26  Eric Blake  <eblake@redhat.com>
20925
20926         lib-symbol-versions: fix m4 quoting
20927         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20928         format for AC_LINK_IFELSE.
20929
20930         glob: fix compile test
20931         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20932
20933         btowc: fix missing file
20934         * modules/btowc (Files): Also ship locale-fr.m4.
20935
20936         lseek: fix link test
20937         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20938         AC_LINK_IFELSE.
20939
20940         include_next: silence autoconf 2.68 warning
20941         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20942         AC_COMPILE_IFELSE as special.
20943         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20944         autoconf < 2.68.
20945
20946         acl: fix compilation test
20947         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20948         AC_COMPILE_IFELSE.
20949
20950 2010-08-26  Bruno Haible  <bruno@clisp.org>
20951
20952         Modernize AC_TRY_RUN invocations.
20953         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20954         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20955         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20956         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20957         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20958         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20959         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20960         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20961         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20962         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20963         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20964         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20965         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20966         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20967         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20968         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20969         gl_MBRLEN_NUL_RETVAL): Likewise.
20970         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20971         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20972         Likewise.
20973         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20974         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20975         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20976         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20977         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20978         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20979         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20980         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20981         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20982         Likewise.
20983         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20984         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20985         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20986         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20987         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20988         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20989         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20990         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20991         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20993
20994 2010-08-26  Bruno Haible  <bruno@clisp.org>
20995
20996         Modernize AC_TRY_LINK invocations.
20997         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20998         AC_TRY_LINK.
20999         * m4/argp.m4 (gl_ARGP): Likewise.
21000         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21001         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21002         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21003         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21004         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21005         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21006         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21007         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21008         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21009         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21010         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21011         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21012         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21013         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21014         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21015         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21016         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21017         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21018         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21019         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21020         Likewise.
21021         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21022         Likewise.
21023         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21024         Likewise.
21025         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21026         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21027         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21028         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21029         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21030         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21031         * m4/servent.m4 (gl_SERVENT): Likewise.
21032         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21033         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21034         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21035         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21036         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21037         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21038         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21039         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21040         * modules/tsearch-tests (configure.ac): Likewise.
21041
21042 2010-08-26  Bruno Haible  <bruno@clisp.org>
21043
21044         Modernize AC_TRY_COMPILE invocations.
21045         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21046         AC_TRY_COMPILE.
21047         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21048         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21049         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21050         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21051         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21052         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21053         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21054         * m4/lock.m4 (gl_LOCK): Likewise.
21055         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21056         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21057         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21058         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21059         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21060         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21061         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21062         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21063         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21064         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21065         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21066         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21067         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21068         extraneous semicolon.
21069
21070 2010-08-26  Jim Meyering  <meyering@redhat.com>
21071
21072         stat-time: relax license LGPL
21073         * modules/stat-time (License): Change from GPL to LGPL,
21074         with consent from all contributors, for use in libguile.
21075         Requested by Ludovic Courtès.
21076
21077 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21078
21079         poll: return immediately on POLLHUP.
21080         * lib/poll.c (poll): Always set timeout before wait_timeout is
21081         computed.
21082
21083 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21084
21085         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21086         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21087         rmdir ("dir/.//"), unlinkat.
21088
21089 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21090
21091         stdbool: avoid spurious failure with modern xlc
21092         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21093
21094 2010-08-24  Bruno Haible  <bruno@clisp.org>
21095
21096         getloadavg: simplify code
21097         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21098         gl_have_func. Update comments.
21099
21100 2010-08-24  Eric Blake  <eblake@redhat.com>
21101
21102         getloadavg: don't define SVR4 on cygwin
21103         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21104         only define SVR4 when -lkvm is required.
21105         Reported by Yaakov Selkowitz.
21106
21107 2010-08-24  Bruno Haible  <bruno@clisp.org>
21108
21109         priv-set: fix comment
21110         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21111
21112 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21113
21114         priv-set: fix comments
21115         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21116         to match code, as suggested by David Bartley in:
21117         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21118
21119 2010-08-23  Eric Blake  <eblake@redhat.com>
21120
21121         stdbool: avoid rejecting clang
21122         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21123         * tests/test-stdbool.c: Enable more tests if using the system
21124         <stdbool.h> instead of the gnulib replacement.
21125         (main): Move xlc bug test to a runtime test for all compilers.
21126         Reported by Anders Kaseorg.
21127
21128         argz: fix shell quoting issue
21129         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21130         Reported by Charles Wilson.
21131
21132 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21133             Erik Faye-Lund <kusmabite@gmail.com>
21134
21135         poll, select: handle ERROR_BROKEN_PIPE.
21136         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21137         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21138         * lib/select.c (win32_compute_revents): Do not mark a pipe
21139         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21140
21141 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21142
21143         fts: allow compilation with C++
21144         * lib/fts_.h: Specify extern "C" linkage with C++.
21145
21146 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21147
21148         Fix gnulib-tool sed script de-commentation for AIX sed.
21149         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21150         sed.
21151
21152 2010-08-17  Eric Blake  <eblake@redhat.com>
21153
21154         test-stddef: test for (some) offsetof bugs
21155         * tests/test-stddef.c: Enhance test to ensure correct type of
21156         offsetof.
21157         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21158         that we are not fixing at this time.
21159
21160 2010-08-15  Bruno Haible  <bruno@clisp.org>
21161
21162         stpncpy: Allow stpncpy to be defined as a macro.
21163         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21164         if it's already correctly declared.
21165         * lib/string.in.h (stpncpy): Undefine before redefining.
21166         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21167
21168 2010-08-14  Bruno Haible  <bruno@clisp.org>
21169
21170         Rename module 'memxfrm' to 'amemxfrm'.
21171         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21172         (amemxfrm): Renamed from memxfrm.
21173         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21174         (amemxfrm): Renamed from memxfrm.
21175         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21176         * NEWS: Mention the change.
21177         * MODULES.html.sh (String handling <string.h>): Update.
21178         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21179         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21180         * lib/unicase/u16-casexfrm.c: Likewise.
21181         * lib/unicase/u32-casexfrm.c: Likewise.
21182         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21183         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21184         * lib/uninorm/u16-normxfrm.c: Likewise.
21185         * lib/uninorm/u32-normxfrm.c: Likewise.
21186         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21187         memxfrm.
21188         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21189         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21190         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21191         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21192         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21193         Suggested by Paul Eggert.
21194
21195 2010-08-14  Bruno Haible  <bruno@clisp.org>
21196
21197         Tests for module 'astrxfrm'.
21198         * modules/astrxfrm-tests: New file.
21199         * tests/test-astrxfrm.c: New file.
21200
21201         New module 'astrxfrm'.
21202         * lib/astrxfrm.h: New file.
21203         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21204         * modules/astrxfrm: New file.
21205
21206 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21207
21208         regex: Tweak doc.
21209         * doc/regex.texi (Overview): Don't mention regex.c.
21210         (GNU Regular Expression Compiling): Likewise.
21211         (Match-end-of-line Operator): Mention 'not_eol'.
21212
21213 2010-08-14  Brian Gough  <bjg@gnu.org>
21214             Bruno Haible  <bruno@clisp.org>
21215
21216         git-merge-changelog: add doc relating to use with bzr and hg.
21217         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21218
21219 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21220
21221         pthread: fix pthread.h creation for srcdir != builddir
21222         * modules/pthread (Makefile.am): Fix the rule to work also in a
21223         non-srcdir build.
21224
21225 2010-08-13  Karl Berry  <karl@gnu.org>
21226
21227         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21228         * doc/posix-*/*: force line break before @url of POSIX
21229         specifications.
21230         Suggested by Werner Lemberg.
21231
21232 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21233
21234         strtod: fix const diagnostic
21235         * lib/strtod.c (strtod): Don't assign const char * to char *,
21236         as this elicits a warning from GCC when warnings are enabled.
21237
21238 2010-08-10  Pádraig Brady <P@draigbrady.com>
21239         and Eric Blake  <eblake@redhat.com>
21240
21241         copy-acl: ignore ENOTSUP on HP-UX
21242         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21243         so that it is available for HP-UX.
21244         * lib/copy-acl.c (qcopy_acl): Use it.
21245         Reported by Patrick M. Callahan.
21246
21247 2010-08-10  Eric Blake  <eblake@redhat.com>
21248
21249         open, chown: relax license
21250         * modules/open (License): Change to LGPLv2+, with consent by all
21251         authors, for use in augeas.
21252         * modules/chown (License): Likewise.
21253         * modules/lchown (Likewise): Likewise.
21254         Requested by Adam Stokes.
21255
21256 2010-08-09  Karl Berry  <karl@gnu.org>
21257
21258         * build-aux/ar-lib: new file, import from Automake.
21259         * config/srclist.txt: autocheck for updates.
21260
21261 2010-08-09  Eric Blake  <eblake@redhat.com>
21262
21263         readlinkat: adjust client modules
21264         * modules/areadlinkat (Depends-on): Use readlinkat, not
21265         symlinkat.
21266         * modules/areadlinkat-with-size (Depends-on): Likewise.
21267
21268         mknod: be more vocal about danger of running tests as root
21269         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21270         root, since that is just asking for problems.
21271         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21272
21273         readlinkat: split into its own module
21274         * modules/symlinkat: Split readlinkat...
21275         * modules/readlinkat: ...into separate module.
21276         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21277         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21278         * lib/symlinkat.c (readlinkat): Move...
21279         * lib/readlinkat.c: ...into new file.
21280         * modules/symlinkat-tests: Split readlinkat test...
21281         * modules/readlinkat-tests: ...into separate module.
21282         * tests/test-symlinkat.c: Split...
21283         * tests/test-readlinkat.c: ...into new file.
21284         * NEWS: Document the split.
21285         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21286         * lib/unistd.in.h (readlinkat): Likewise.
21287         Suggested by Bruno Haible.
21288
21289 2010-08-08  Bruno Haible  <bruno@clisp.org>
21290
21291         memxfrm: Speed up.
21292         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21293         that usually only one call to strxfrm is necessary for each string
21294         part.
21295         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21296
21297 2010-08-07  Karl Berry  <karl@gnu.org>
21298
21299         * doc/posix-headers/limits.texi,
21300         * doc/posix-functions/malloc.texi,
21301         * doc/posix-functions/strsignal.texi: missing @item.
21302         * doc/ld-version-script.texi: spurious leading i.
21303         * doc/regex.texi (Interval Operators): no commas inside @var.
21304
21305 2010-08-01  Bruno Haible  <bruno@clisp.org>
21306
21307         Integrate the regex documentation.
21308         * doc/gnulib.texi: Define 'cn' index.
21309         (Regular expressions): New a chapter that includes regex.texi and
21310         regexprops-generic.texi.
21311         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21312         syntax.
21313
21314         Whitespace cleanup.
21315         * doc/regex.texi: Remove trailing spaces.
21316
21317         Add regex documentation.
21318         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21319         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21320         Written by Kathy A. Hargreaves and Karl Berry.
21321
21322 2010-08-01  Bruno Haible  <bruno@clisp.org>
21323
21324         link: Update documentation.
21325         * doc/posix-functions/link.texi: Update regarding Solaris.
21326
21327 2010-07-31  Bruno Haible  <bruno@clisp.org>
21328
21329         Update modules list.
21330         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21331         (String handling <string.h>): Add memcmp2, memxfrm.
21332         (Container data structures): Add xlist, xsublist, xoset.
21333         (Core language properties): Add alignof, unused-parameter.
21334         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21335         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21336         (Unibyte characters <ctype.h>): New section.
21337         (String handling <string.h>): New section.
21338         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21339         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21340         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21341         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21342         tan, tanh, tanl, y0, y1, yn.
21343         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21344         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21345         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21346         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21347         unlockpt, vdprintf, vdprintf-posix.
21348         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21349         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21350         xconcat-filename.
21351         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21352         getdtablesize, pipe2, pipe2-safer.
21353         (Security): New section.
21354         (Networking functions): Add accept4.
21355         (Signal handling): Add sigpipe.
21356         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21357         mbmemcasecoll.
21358         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21359         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21360         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21361         pipe-filter-ii.
21362         (Misc): Add argp-version-etc, login_tty, parse-duration.
21363
21364 2010-07-31  Bruno Haible  <bruno@clisp.org>
21365
21366         Improve doc in MODULES.html.
21367         * modules/linkat (Description): Add the word "function".
21368         * modules/mkfifo (Description): Likewise.
21369         * modules/mknod (Description): Likewise.
21370         * modules/remove (Description): Likewise.
21371         * modules/renameat (Description): Likewise.
21372         * modules/stat (Description): Likewise.
21373         * modules/symlink (Description): Likewise.
21374         * modules/unlink (Description): Likewise.
21375
21376 2010-07-31  Bruno Haible  <bruno@clisp.org>
21377
21378         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21379         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21380         option --enable/disable-c++ instead of --enable/disable-cxx.
21381         * NEWS: Mention the change.
21382
21383 2010-07-31  Bruno Haible  <bruno@clisp.org>
21384
21385         readlink, areadlink: Relax test a bit.
21386         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21387         alternative to ENOTDIR.
21388         * tests/test-areadlink.h (test_areadlink): Likewise.
21389         Reported by Rainer Tammer.
21390
21391 2010-07-31  Bruno Haible  <bruno@clisp.org>
21392
21393         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21394         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21395         character, perform the search using U_STRCHR.
21396         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21397         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21398         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21399         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21400         Suggested by Paolo Bonzini.
21401
21402 2010-07-31  Bruno Haible  <bruno@clisp.org>
21403
21404         unistr/u*-strstr: Fix dependencies.
21405         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21406         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21407         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21408
21409 2010-07-31  Bruno Haible  <bruno@clisp.org>
21410
21411         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21412         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21413         the beginning of the loop.
21414         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21415         cases in 'switch' statement.
21416
21417         unistr/u8-strchr: Fix several bugs.
21418         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21419         the string. When not found, return NULL, not a pointer near the end.
21420
21421         More tests for unistr/u8-strchr.
21422         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21423         that the function does not read past the first occurrence of the byte
21424         being searched.
21425         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21426         * tests/unistr/test-u16-strchr.c (main): New function.
21427         * tests/unistr/test-u32-strchr.c (main): New function.
21428
21429 2010-07-31  Bruno Haible  <bruno@clisp.org>
21430
21431         posix-modules: Ignore backup files of documentation files.
21432         * posix-modules: grep only through files named *.texi.
21433
21434 2010-07-31  Bruno Haible  <bruno@clisp.org>
21435
21436         symlinkat: Fix documentation.
21437         * doc/posix-functions/readlinkat.texi: Fix module name.
21438
21439 2010-07-31  Bruno Haible  <bruno@clisp.org>
21440
21441         fchownat: Replace also when chown has the trailing slash bug.
21442         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21443         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21444         introduced on 2010-04-10.
21445         Reported by Rainer Tammer.
21446
21447 2010-07-31  Bruno Haible  <bruno@clisp.org>
21448
21449         linkat: Work around AIX 7.1 bug.
21450         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21451         whether linkat handles trailing slash correctly. If not, replace linkat
21452         and define LINKAT_TRAILING_SLASH_BUG.
21453         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21454         check whether (fd1,file1) points to a directory if file1 or file2 ends
21455         in a slash. Code taken from lib/link.c.
21456         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21457         Reported by Rainer Tammer.
21458
21459 2010-07-31  Bruno Haible  <bruno@clisp.org>
21460
21461         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21462         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21463         This disables an xlc optimization that was causing wrong test results.
21464         Reported by Rainer Tammer.
21465
21466 2010-07-31  Bruno Haible  <bruno@clisp.org>
21467
21468         iconv: Work around AIX 6.1..7.1 bug.
21469         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21470         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21471         cross-compiling, guess no on all versions of AIX.
21472         Reported by Rainer Tammer.
21473
21474 2010-07-31  Bruno Haible  <bruno@clisp.org>
21475
21476         readlink: Relax test a bit.
21477         * tests/test-readlink.h (test_readlink): Allow different errno value
21478         when readlink is called with a file name that ends in / and refers to
21479         a file.
21480         Suggested by Eric Blake.
21481         Reported by Rainer Tammer.
21482
21483 2010-07-31  Bruno Haible  <bruno@clisp.org>
21484
21485         copysign: Does not require -lm on glibc systems.
21486         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21487         gl_COMMON_DOUBLE_MATHFUNC.
21488         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21489
21490 2010-07-31  Bruno Haible  <bruno@clisp.org>
21491
21492         duplocale: Work around AIX 7.1 bug.
21493         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21494         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21495         * lib/duplocale.c (rpl_duplocale): Update comment.
21496         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21497         Reported by Rainer Tammer.
21498
21499 2010-07-30  Bruno Haible  <bruno@clisp.org>
21500
21501         dirfd: Avoid link error on AIX 7.1.
21502         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21503         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21504         exist, set REPLACE_DIRFD.
21505         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21506         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21507         * doc/posix-functions/dirfd.texi: Update.
21508         Reported by Rainer Tammer.
21509
21510 2010-07-30  Eric Blake  <eblake@redhat.com>
21511
21512         strtod: next round of AIX fixes
21513         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21514         exponent.
21515         * tests/test-strtod.c (main): Enhance tests.
21516         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21517         Reported by Rainer Tammer.
21518
21519         futimens: fix configure check
21520         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21521         Reported by Bruno Haible.
21522
21523 2010-07-30  Bruno Haible  <bruno@clisp.org>
21524
21525         getline: Update regarding AIX.
21526         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21527         Reported by Rainer Tammer.
21528
21529 2010-07-30  Bruno Haible  <bruno@clisp.org>
21530
21531         wcwidth: Drop replacement on AIX 7.
21532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21533         AIX 7.
21534         Reported by Rainer Tammer.
21535
21536 2010-07-30  Bruno Haible  <bruno@clisp.org>
21537
21538         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21539         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21540         a 'char *'.
21541         Reported by Rainer Tammer.
21542
21543 2010-07-30  Bruno Haible  <bruno@clisp.org>
21544
21545         unlink: Update regarding AIX.
21546         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21547         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21548         Reported by Rainer Tammer.
21549
21550 2010-07-30  Bruno Haible  <bruno@clisp.org>
21551
21552         symlink: Update regarding AIX.
21553         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21554         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21555         Reported by Rainer Tammer.
21556
21557 2010-07-30  Bruno Haible  <bruno@clisp.org>
21558
21559         strndup: Update regarding AIX.
21560         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21561         AIX 7.
21562         Reported by Rainer Tammer.
21563
21564 2010-07-30  Bruno Haible  <bruno@clisp.org>
21565
21566         stat: Update regarding AIX.
21567         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21568         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21569         Reported by Rainer Tammer.
21570
21571 2010-07-30  Bruno Haible  <bruno@clisp.org>
21572
21573         truncl: Fix autoconf test.
21574         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21575         whether truncl works.
21576         Reported by Rainer Tammer.
21577
21578 2010-07-30  Bruno Haible  <bruno@clisp.org>
21579
21580         round: Update regarding AIX.
21581         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21582         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21583         Reported by Rainer Tammer.
21584
21585 2010-07-30  Bruno Haible  <bruno@clisp.org>
21586
21587         rename: Update regarding AIX.
21588         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21589         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21590         Reported by Rainer Tammer.
21591
21592 2010-07-30  Bruno Haible  <bruno@clisp.org>
21593
21594         printf.m4: Update regarding AIX.
21595         * m4/printf.m4: Update comments regarding AIX.
21596         Reported by Rainer Tammer.
21597
21598 2010-07-30  Bruno Haible  <bruno@clisp.org>
21599
21600         iconv: Update regarding AIX.
21601         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21602         AIX 7.
21603         Reported by Rainer Tammer.
21604
21605 2010-07-30  Bruno Haible  <bruno@clisp.org>
21606
21607         getopt: Update regarding AIX.
21608         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21609         no on AIX.
21610         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21611         Reported by Rainer Tammer.
21612
21613 2010-07-30  Bruno Haible  <bruno@clisp.org>
21614
21615         ldexpl; Update regarding AIX.
21616         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21617         on AIX 7.
21618         Reported by Rainer Tammer.
21619
21620 2010-07-30  Bruno Haible  <bruno@clisp.org>
21621
21622         frexpl: Update regarding AIX.
21623         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21624         on AIX 7.
21625         Reported by Rainer Tammer.
21626
21627 2010-07-30  Bruno Haible  <bruno@clisp.org>
21628
21629         open, fopen: Update regarding AIX.
21630         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21631         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21632         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21633         * doc/posix-functions/fopen.texi: Likewise.
21634         Reported by Rainer Tammer.
21635
21636 2010-07-30  Bruno Haible  <bruno@clisp.org>
21637
21638         chown: Update doc regarding AIX.
21639         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21640         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21641         Reported by Rainer Tammer.
21642
21643 2010-07-30  Eric Blake  <eblake@redhat.com>
21644
21645         strtod: fix bug in replacement function on AIX
21646         * lib/strtod.c (strtod): Special case broken "0x" parse in
21647         underlying strtod.
21648         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21649         * doc/posix-functions/strtod.texi (strtod): Likewise.
21650         Reported by Rainer Tammer.
21651
21652 2010-07-30  Bruno Haible  <bruno@clisp.org>
21653
21654         mbrlen: Fix cross-compilation guess for AIX.
21655         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21656         guess. Leftover from 2008-12-22.
21657
21658 2010-07-30  Bruno Haible  <bruno@clisp.org>
21659
21660         mbrtowc: Fix cross-compilation guess for AIX.
21661         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21662         guess. Leftover from 2008-12-21.
21663
21664 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21665
21666         init.sh: work around trap limitation of some shells
21667         * tests/init.sh (setup_): Move exit trap outside of shell function.
21668
21669 2010-07-29  Eric Blake  <eblake@redhat.com>
21670
21671         strtod: aid debugging
21672         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21673         understanding why strtod is rejected.
21674
21675 2010-07-28  Bruno Haible  <bruno@clisp.org>
21676
21677         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21678         * lib/unistr/u8-chr.c: Include <string.h>.
21679         * tests/unistr/test-u8-chr.c: Likewise.
21680         * tests/unistr/test-u16-chr.c: Likewise.
21681         * tests/unistr/test-u32-chr.c: Likewise.
21682         * tests/unistr/test-u8-strchr.c: Likewise.
21683         * tests/unistr/test-u16-strchr.c: Likewise.
21684         * tests/unistr/test-u32-strchr.c: Likewise.
21685         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21686         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21687         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21688         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21689
21690 2010-07-28  Bruno Haible  <bruno@clisp.org>
21691
21692         Use spaces for indentation, not tabs.
21693         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21694
21695 2010-07-27  Bruno Haible  <bruno@clisp.org>
21696
21697         mbspcasecmp: Fix function specification.
21698         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21699         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21700         Reported by Eric Blake <eblake@redhat.com>.
21701
21702 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21703
21704         timespec: use cast and not conditional, as truncation isn't possible
21705         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21706         instead of a conditional.  Comment about the situation in more detail.
21707         This undoes most of the 2009-10-29 patch.
21708
21709 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21710
21711         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21712         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21713         * lib/unistr/u8-strchr.c: Likewise.
21714         * modules/unistr/u8-chr: Depend on memchr.
21715
21716         unistr/u*-strchr: add tests
21717         * modules/unistr/u8-strchr-tests: New file.
21718         * modules/unistr/u16-strchr-tests: New file.
21719         * modules/unistr/u32-strchr-tests: New file.
21720         * tests/unistr/test-strchr.h: New file.
21721         * tests/unistr/test-u8-strchr.c: New file.
21722         * tests/unistr/test-u16-strchr.c: New file.
21723         * tests/unistr/test-u32-strchr.c: New file.
21724
21725         unistr/u*-chr: test multibyte sequences more
21726         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21727         test vector.
21728         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21729         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21730         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21731
21732         unistr/u*-chr: test multibyte sequences
21733         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21734
21735         unistr/u*-chr: prepare for multibyte tests
21736         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21737         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21738         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21739         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21740         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21741         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21742
21743 2010-07-18  Bruno Haible  <bruno@clisp.org>
21744
21745         unistr/u8-strchr: Optimize non-ASCII argument case.
21746         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21747         because the first byte often matches anyway.
21748         Reported by Pádraig Brady <P@draigbrady.com>.
21749
21750 2010-07-15  Karl Berry  <karl@gnu.org>
21751
21752         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21753
21754 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21755
21756         getcwd: on Solaris, work better if ancestors are inaccessible
21757         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21758         buffer and size, try again with a large buffer.  This works better
21759         on Solaris, since its getcwd succeeds even if the path to the root
21760         is inaccessible, and this is helpful in common cases such as .zfs
21761         hidden directories.  Problem reported by J Chapman Flack in
21762         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21763         Use system getcwd if it's declared, not merely if it's partly
21764         working; use the partly-working test only to avoid needless effort
21765         if the system getcwd fails.
21766         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21767         comment that was already obsolete and is now even more obsolete.
21768         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21769         now might call strdup.
21770
21771 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21772
21773         pthread: Add enough so that coreutils/src/sort.c compiles.
21774         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21775         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21776         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21777         Include <sys/types.h>, in case it defines pthread_t.
21778         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21779         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21780         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21781         (pthread_rwlockattr_t, pthread_spinlock_t):
21782         New typedefs, if HAVE_PTHREAD_T is not defined.
21783         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21784         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21785         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21786         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21787         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21788         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21789         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21790         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21791         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21792         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21793         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21794         New macros.
21795         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21796         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21797         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21798         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21799         (pthread_spin_unlock): New dummy functions.
21800         (pthread_create): Return EAGAIN; don't set errno.
21801         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21802         require AC_C_INLINE.
21803         * modules/pthread (Depends-on): Add sched, time.
21804         (pthread.h): Use AM_V_GEN.
21805
21806 2010-07-13  Bruno Haible  <bruno@clisp.org>
21807
21808         striconveh: Don't malloc memory if the result buffer is sufficient.
21809         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21810         buffer if its size is sufficient.
21811         Reported by Ludovic Courtès <ludo@gnu.org>.
21812
21813 2010-07-13  Bruno Haible  <bruno@clisp.org>
21814
21815         strtod: Add safety check.
21816         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21817
21818 2010-07-12  Bruno Haible  <bruno@clisp.org>
21819
21820         Unify tests that set gl_cv_func_ldexpl_no_libm.
21821         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21822         gl_FUNC_LDEXPL.
21823         (gl_FUNC_LDEXPL): Invoke it.
21824         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21825
21826 2010-07-12  Bruno Haible  <bruno@clisp.org>
21827
21828         Unify tests that set gl_cv_func_ldexp_no_libm.
21829         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21830         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21831         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21832         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21833         * modules/strtod (Files): Add m4/ldexp.m4.
21834
21835 2010-07-12  Bruno Haible  <bruno@clisp.org>
21836
21837         Unify tests that set gl_cv_func_frexpl_no_libm.
21838         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21839         gl_FUNC_FREXPL_NO_LIBM.
21840         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21841         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21842
21843 2010-07-12  Bruno Haible  <bruno@clisp.org>
21844
21845         Unify tests that set gl_cv_func_frexp_no_libm.
21846         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21847         gl_FUNC_FREXP_NO_LIBM.
21848         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21849         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21850
21851 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21852
21853         memcoll: clarify sizes versus lengths, document better, and tweak perf
21854         * lib/memcoll.c (strcoll_loop, memcoll0):
21855         Improve quality of descriptive comments.  Name variables
21856         consistently as to whether they are lengths (which do not include
21857         terminating null) versus sizes (which do).
21858         * lib/xmemcoll.c (xmemcoll0): Likewise.
21859         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21860         returned when s1size == 0; this is easier to compile and saves
21861         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21862
21863 2010-07-12  Bruno Haible  <bruno@clisp.org>
21864
21865         Tests for module '_Exit'.
21866         * modules/_Exit-tests: New file.
21867         * tests/test-_Exit.sh: New file.
21868         * tests/test-_Exit.c: New file.
21869
21870         New module '_Exit'.
21871         * lib/stdlib.in.h (__attribute__): New macro.
21872         (_Exit): New declaration.
21873         * lib/_Exit.c: New file.
21874         * m4/_Exit.m4: New file.
21875         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21876         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21877         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21878         * modules/_Exit: New file.
21879         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21880         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21881
21882 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21883
21884         strtod: make it more-accurate typically, and don't require libm
21885         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21886         Include limits.h.  Don't include string.h.
21887         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21888         (locale_isspace): New function, so that no casts are needed to
21889         check whether *s is a space.
21890         (ldexp): Provide an unused dummy if not available.
21891         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21892         (strtod): Use them.  This implementation prefers to use the
21893         underlying strtod if available, falling back on our own code
21894         only to fix known bugs.  This is more likely to produce an
21895         accurate result.  Also, it avoids the use of libm functions.
21896         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21897         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21898         was absent, but it caused a test failure with coreutils.
21899         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21900         with libm.
21901         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21902         * modules/strtod-tests (Makefile.am): Likewise.
21903
21904 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21905             Bruno Haible  <bruno@clisp.org>
21906
21907         unistr/u8-strchr: Optimize ASCII argument case.
21908         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21909
21910 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21911
21912         (x)memcoll: minor tweaks
21913         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21914         is after the type that it qualifies.
21915         (memcoll0): Likewise.
21916         * lib/memcoll.h (memcoll0): Likewise.
21917         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21918         * lib/xmemcoll.h (xmemcoll0): Likewise.
21919         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21920         differs from memcoll in that the NUL byte is part of the argument.
21921         Omit the abort-checks, as performance is a real issue here.  Plus,
21922         the checks were wrong anyway (an off-by-one error).  Omit local
21923         variable 'diff', as it's a bit clearer that way.
21924         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21925         no longer needed.
21926
21927 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21928
21929         (x)memcoll: speedup when input is known to be NUL delimited
21930         * lib/memcoll.c: Include stdlib.
21931         (memcoll0): New function.
21932         (strcoll_loop): New function, refactored for use in both memcoll
21933         and memcoll0.
21934         * lib/memcoll.h (memcoll0): Add prototype.
21935         * lib/xmemcoll.c (xmemcoll0): New function.
21936         (collate_error): New function, refactored for use in both xmemcoll
21937         and xmemcoll0.
21938         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21939         * m4/memcoll.m4: add inline invocation.
21940
21941 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21942
21943         * build-aux/bootstrap: Remove any local translations
21944         from the translation project synchronization directory,
21945         so that local only translations are not distributed.
21946
21947 2010-07-04  Bruno Haible  <bruno@clisp.org>
21948
21949         fsusage: Clarify which code applies to which platforms.
21950         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21951         platform.
21952         * lib/fsusage.c (get_fs_usage): Likewise.
21953
21954 2010-07-04  Bruno Haible  <bruno@clisp.org>
21955
21956         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21957         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21958         Reported by Martin Lambers <marlam@marlam.de>.
21959
21960 2010-07-04  Jim Meyering  <meyering@redhat.com>
21961
21962         hash: once again explicitly disallow insertion of NULL
21963         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21964         inserting a NULL pointer cannot work with these functions.
21965         Add a comment with details.
21966         This reverts part of the 2010-07-01 commit, 5bef1a35
21967         "hash: extend module to deal with non-pointer keys".
21968
21969 2010-07-01  Bruno Haible  <bruno@clisp.org>
21970
21971         stdbool: Update doc.
21972         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21973         Info from Christian Weisgerber <naddy@mips.inka.de>.
21974
21975 2010-07-01  Jim Meyering  <meyering@redhat.com>
21976
21977         hash: extend module to deal with non-pointer keys
21978         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21979         but that allows insertion of non-pointer entries.
21980         Do not disallow an ENTRY value of NULL.
21981         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21982         * lib/hash.h (hash_insert0): Declare.
21983
21984 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21985
21986         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21987         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21988         not present (i.e. with autoconf 2.59 and when using gettextize, not
21989         gnulib), require AC_GNU_SOURCE instead.
21990
21991 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21992
21993         idpriv-drop: Fix tests.
21994         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21995         not to the test-idpriv-droptemp program.
21996
21997 2010-06-29  Bruno Haible  <bruno@clisp.org>
21998
21999         string: Fix syntax error with g++ 2.96.
22000         * lib/string.in.h (__pure__): Remove definition.
22001         (_GL_ATTRIBUTE_PURE): New macro.
22002         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22003         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22004         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22005
22006 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22007
22008         unitypes: Fix bug introduced on 2010-05-18.
22009         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22010
22011 2010-06-22  Eric Blake  <eblake@redhat.com>
22012
22013         memmem: slight optimization
22014         * lib/str-two-way.h (critical_factorization): Update comments.
22015         Reduce work during factorization phase.
22016         Reported by Carlos Bueno <carlos@bueno.org>.
22017
22018 2010-06-21  Bruno Haible  <bruno@clisp.org>
22019
22020         Fix HAVE_CALLOC_POSIX misnomer.
22021         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22022         !HAVE_CALLOC_POSIX.
22023         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22024         HAVE_CALLOC_POSIX.
22025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22026         instead of HAVE_CALLOC_POSIX.
22027         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22028         HAVE_CALLOC_POSIX.
22029
22030         Use modern idiom for calloc() replacement.
22031         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22032         AC_FUNC_CALLOC.
22033         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22034         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22035         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22036         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22037         (gl_REPLACE_CALLOC): New macro.
22038
22039 2010-06-21  Bruno Haible  <bruno@clisp.org>
22040
22041         Fix HAVE_REALLOC_POSIX misnomer.
22042         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22043         !HAVE_REALLOC_POSIX.
22044         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22045         HAVE_REALLOC_POSIX.
22046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22047         instead of HAVE_REALLOC_POSIX.
22048         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22049         HAVE_REALLOC_POSIX.
22050
22051         Use modern idiom for realloc() replacement.
22052         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22053         AC_FUNC_REALLOC.
22054         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22055         Autoconf's AC_FUNC_REALLOC.
22056         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22057         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22058         (gl_REPLACE_REALLOC): New macro.
22059         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22060
22061 2010-06-21  Bruno Haible  <bruno@clisp.org>
22062
22063         Fix HAVE_MALLOC_POSIX misnomer.
22064         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22065         !HAVE_MALLOC_POSIX.
22066         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22067         HAVE_MALLOC_POSIX.
22068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22069         instead of HAVE_MALLOC_POSIX.
22070         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22071         HAVE_MALLOC_POSIX.
22072
22073         Use modern idiom for malloc() replacement.
22074         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22075         AC_FUNC_MALLOC.
22076         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22077         Autoconf's AC_FUNC_MALLOC.
22078         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22079         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22080         (gl_REPLACE_MALLOC): New macro.
22081         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22082
22083 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22084
22085         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22086         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22087         This macro takes 3 arguments, not 4.
22088
22089 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22090
22091         ipv6: fix detection under mingw
22092         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22093         in6_addr.
22094
22095 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22096
22097         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22098         that strtod() works when cross-compiling to a glibc version known
22099         to work.
22100
22101 2010-06-15  Bruno Haible  <bruno@clisp.org>
22102
22103         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22104
22105 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22106
22107         select: Correct timeout.
22108         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22109
22110 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22111
22112         git-version-gen: init shell var to avoid env var influence
22113         * build-aux/git-version-gen (v): Init shell var to empty.
22114
22115 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22116
22117         priv-set: Don't assume that priv.h exists merely because getppriv does.
22118         See Jan Andersen's bug report about AIX 5L in
22119         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22120         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22121         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22122         * lib/priv-set.h: Likewise.
22123         * tests/test-priv-set.c: Likewise.
22124
22125 2010-06-13  Bruno Haible  <bruno@clisp.org>
22126
22127         relocatable: Make it easier to test whether to install wrappers.
22128         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22129         RELOCATABLE_VIA_WRAPPER.
22130
22131 2010-06-13  Bruno Haible  <bruno@clisp.org>
22132
22133         gnulib-tool: Display specified modules and dependencies differently.
22134         * gnulib-tool (func_show_module_list): New function.
22135         (func_import, func_create_testdir): Invoke it.
22136         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22137
22138 2010-06-13  Bruno Haible  <bruno@clisp.org>
22139
22140         gnulib-tool: Align code of func_import and func_create_testdir.
22141         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22142         specified_modules.
22143
22144 2010-06-12  Jim Meyering  <meyering@redhat.com>
22145
22146         test-inttostr: avoid spurious failure on Solaris 9
22147         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22148         to accept "%ju".  Reported by Bruno Haible.
22149
22150 2010-06-11  Jim Meyering  <meyering@redhat.com>
22151
22152         test-sys_socket: mark variables as used more readably
22153         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22154         as "used" explicitly via (void) statement casts.  This is more
22155         readable than using them in an artificial return expression.
22156         Suggestion from Bruno Haible.
22157
22158 2010-06-11  Bruno Haible  <bruno@clisp.org>
22159
22160         Avoid some more warnings from "gcc -Wwrite-strings".
22161         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22162         to 'const char *'.
22163         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22164         * tests/test-c-strcasestr.c (main): Likewise.
22165         * tests/test-mbscasestr1.c (main): Likewise.
22166         * tests/test-mbscasestr2.c (main): Likewise.
22167         * tests/test-memmem.c (main): Likewise.
22168         * tests/test-strstr.c (main): Likewise.
22169         * tests/test-strcasestr.c (main): Likewise.
22170
22171 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22172
22173         init.sh: change framework_failure_ to fail with status 99, not 1
22174         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22175         automake's parallel-tests rule that this is an unexpected failure,
22176         even if the test is listed in XFAIL_TESTS.
22177
22178 2010-06-11  Jim Meyering  <meyering@redhat.com>
22179
22180         test-inttostr: avoid warnings about 4-6KB literal strings
22181         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22182         Include "macros.h", for its definition of ASSERT.
22183         (CK): s/assert/ASSERT/
22184         * modules/inttostr-tests (Files): Add macros.h.
22185
22186         init.sh: don't use $ME_ or skip_ before they are defined
22187         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22188         their first uses.  Also hoist their companions: warn_, fail_,
22189         framework_failure_, $stderr_fileno.  Prompted by a patch from
22190         Stefano Lattarini.
22191
22192         test-sys_socket: avoid set-but-not-used warnings from gcc
22193         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22194         avoid warning about set-but-not-used variables.
22195
22196         test-xvasprintf: avoid 'const' discard warnings
22197         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22198         "const" when assigning from literal strings.
22199         (test_xasprintf): Add "void" in function argument list to placate
22200         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22201
22202         tests: avoid compilation warnings in argmatch and exclude tests...
22203         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22204         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22205         Since it always exits, declare with the "noreturn" attribute.
22206         * tests/test-argmatch.c: Likewise.
22207
22208         tests: avoid 'const' discard warnings in mbsstr tests
22209         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22210         * tests/test-mbsstr2.c (main): Likewise.
22211
22212         test-verify: avoid warning from gcc's -Wmissing-declarations
22213         * tests/test-verify.c (function): Declare to be static.
22214
22215         test-inttostr.c: include <string.h> for use of strcmp
22216         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22217
22218         test-linkat: avoid failed assertion on "other" architectures
22219         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22220         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22221         sparc: https://bugs.launchpad.net/bugs/591968
22222
22223 2010-06-11  Jim Meyering  <meyering@redhat.com>
22224
22225         printf.m4: avoid autoconf's "Expanded Before Required" warning
22226         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22227         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22228         autoconf warning.
22229
22230 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22231
22232         Replacement header templates are now named with ".in", not "_".
22233         * doc/gnulib-intro.texi: Correct.
22234
22235 2010-06-10  Jim Meyering  <meyering@redhat.com>
22236
22237         inttostr-tests: depend on snprintf, not snprintf-posix
22238         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22239         snprintf-posix, to avoid this aclocal failure:
22240           missing file gnulib-tests/vasnprintf.c
22241           configure.ac:45: error: expected source file, required through \
22242           AC_LIBSOURCES, not found
22243
22244 2010-06-10  Jim Meyering  <meyering@redhat.com>
22245
22246         inttostr: add a new function, inttostr, and tests
22247         The namesake function was not available.  The existence of the
22248         template file, inttostr.c makes its addition nontrivial.
22249         * lib/anytostr.c: Rename from inttostr.c.
22250         (anytostr): Rename from inttostr.
22251         * lib/inttostr.c: New file.
22252         * modules/inttostr (Files): Add anytostr.c.
22253         (Makefile.am): Set lib_SOURCES instead of ...
22254         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22255         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22256         * lib/offtostr.c: Likewise.
22257         * lib/uinttostr.c: Likewise.
22258         * lib/umaxtostr.c: Likewise.
22259         * modules/inttostr-tests: New file.
22260         * tests/test-inttostr.c: New file.  Test these functions.
22261
22262 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22263             Bruno Haible  <bruno@clisp.org>
22264
22265         Add "Extending Gnulib" chapter to manual.
22266         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22267         chapter.
22268         (Extending Gnulib): New chapter.
22269         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22270         chapter.
22271
22272 2010-06-09  Bruno Haible  <bruno@clisp.org>
22273
22274         Avoid relocwrapper link errors due to gnulib replacement functions.
22275         * lib/areadlink.c: Use the system's malloc, realloc functions.
22276         (areadlink): Set errno to ENOMEM explicitly.
22277         * modules/areadlink (Depends-on): Remove malloc-posix.
22278         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22279
22280 2010-06-09  Bruno Haible  <bruno@clisp.org>
22281
22282         Avoid relocwrapper link errors due to gnulib replacement functions.
22283         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22284         * lib/malloca.c: Likewise.
22285         * lib/relocatable.c: Likewise.
22286         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22287         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22288         * lib/setenv.c: Use the system's malloc, realloc functions.
22289         * lib/strerror.c: Use the system's sprintf function.
22290         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22291
22292 2010-06-04  Bruno Haible  <bruno@clisp.org>
22293
22294         Prefer documented low-level autoconf macro names.
22295         * m4/lib-link.m4: Use m4_translit instead of translit.
22296         * m4/environ.m4: Likewise.
22297         * m4/mathfunc.m4: Likewise.
22298         * m4/onceonly.m4: Likewise.
22299         * m4/stdint.m4: Likewise.
22300         Suggested by Eric Blake.
22301
22302 2010-06-04  Martin Lambers  <marlam@marlam.de>
22303             Bruno Haible  <bruno@clisp.org>
22304
22305         havelib: Allow library names with '+' characters.
22306         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22307         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22308
22309 2010-06-09  Bruno Haible  <bruno@clisp.org>
22310
22311         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22312         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22313         realloc failed.
22314
22315 2010-06-08  Peter Simons  <simons@cryp.to>
22316
22317         maint.mk: make the news-check rule more configurable
22318         * top/maint.mk (news-check-lines-spec): New variable.
22319         (news-check): Use "sed -n 1,10p" in place of "head".
22320
22321 2010-06-07  Jim Meyering  <meyering@redhat.com>
22322
22323         do-release-commit-and-tag: fix typo in --help
22324         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22325
22326         regex: avoid new dead-code warning with gcc-4.6.0
22327         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22328         if-block containing a while-loop.  It's been unused for at least
22329         5 years.
22330
22331 2010-06-05  Bruno Haible  <bruno@clisp.org>
22332
22333         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22334         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22335
22336 2010-06-04  Bruno Haible  <bruno@clisp.org>
22337
22338         Update to GNU gettext 0.18.1.
22339         * modules/gettext (configure.ac): Require gettext infrastructure from
22340         version 0.18.1.
22341
22342 2010-06-03  Bruno Haible  <bruno@clisp.org>
22343
22344         Don't use AC_LIBOBJ with file names in subdirectories.
22345         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22346         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22347         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22348         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22349         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22350         gl_LIBUNISTRING_LIBSOURCE.
22351         (Makefile.am): Augment lib_SOURCES here, conditionally.
22352         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22353
22354 2010-06-03  Bruno Haible  <bruno@clisp.org>
22355
22356         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22357         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22358         expansion does not end with a newline.
22359         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22360         unnecessary newline.
22361
22362 2010-06-03  Bruno Haible  <bruno@clisp.org>
22363
22364         Reduce dependencies.
22365         * tests/test-quotearg.h: New file, extracted from
22366         tests/test-quotearg.c.
22367         * tests/test-quotearg-simple.c: New file, extracted from
22368         tests/test-quotearg.c.
22369         * tests/test-quotearg.c: Don't include <ctype.h>.
22370         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22371         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22372         use_quote_double_quotes, use_quotearg_colon): Moved to
22373         tests/test-quotearg.h.
22374         (results_g, flag_results, custom_quotes, custom_results): Moved
22375         to tests/test-quotearg-simple.c.
22376         (main): Moved the part that does not depend on gettext to
22377         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22378         performed.
22379         * modules/quotearg-simple: New file.
22380         * modules/quotearg-simple-tests: New file.
22381         * modules/quotearg (Depends-on): Add quotearg-simple.
22382         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22383         (Files): Add tests/test-quotearg.h.
22384         Reported by Paolo Bonzini.
22385
22386 2010-06-03  Bruno Haible  <bruno@clisp.org>
22387
22388         Reduce dependencies.
22389         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22390
22391 2010-06-03  Bruno Haible  <bruno@clisp.org>
22392
22393         time: Undefine more broken macros.
22394         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22395         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22396         Reported by Eric Blake.
22397
22398 2010-06-03  Bruno Haible  <bruno@clisp.org>
22399
22400         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22401         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22402         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22403         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22404         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22405         Reported by Ludovic Courtès <ludo@gnu.org>.
22406
22407 2010-06-02  Eric Blake  <eblake@redhat.com>
22408
22409         time: work with mingw + pthreads-win32 library
22410         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22411         if timespec is defined only in pthread.h.
22412         * modules/time (Makefile.am): Substitute it.
22413         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22414         <pthread.h>, when needed.
22415         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22416         from the library.
22417
22418 2010-05-31  Bruno Haible  <bruno@clisp.org>
22419
22420         Avoid expanding two macros in the wrong order.
22421         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22422         gl_LIBUNISTRING if it is defined.
22423         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22424         autoconf >= 2.64.
22425         Reported by Ludovic Courtès <ludo@gnu.org>.
22426
22427 2010-05-27  Jim Meyering  <meyering@redhat.com>
22428
22429         maint.mk: also prohibit "#undef" of always-defined symbols
22430         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22431         Allow more than one space before the symbol name.
22432         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22433         the regexp uses alternation.
22434
22435 2010-05-26  Eric Blake  <eblake@redhat.com>
22436
22437         maint.mk: avoid echo -e
22438         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22439         Convert all uses of echo -* to printf.
22440         Reported by Matthias Bolte.
22441
22442 2010-05-25  Bruno Haible  <bruno@clisp.org>
22443
22444         Update to GNU gettext 0.18, part 2.
22445         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22446         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22447
22448 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22449
22450         Add missing include in test-pwrite.c.
22451         * tests/test-pwrite.c: Include string.h, for strcmp.
22452
22453 2010-05-24  Bruno Haible  <bruno@clisp.org>
22454
22455         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22456
22457 2010-05-24  Bruno Haible  <bruno@clisp.org>
22458
22459         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22460         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22461         iconveh_error argument.
22462         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22463         U_STRCONV_TO_LOCALE.
22464         * lib/unistr/u16-strcoll.c: Likewise.
22465         * lib/unistr/u32-strcoll.c: Likewise.
22466         * modules/unistr/u8-strcoll (Depends-on): Add
22467         uniconv/u8-strconv-to-enc, localcharset. Remove
22468         uniconv/u8-strconv-to-locale.
22469         (configure.ac): Bump version number.
22470         * modules/unistr/u16-strcoll (Depends-on): Add
22471         uniconv/u16-strconv-to-enc, localcharset. Remove
22472         uniconv/u16-strconv-to-locale.
22473         (configure.ac): Bump version number.
22474         * modules/unistr/u32-strcoll (Depends-on): Add
22475         uniconv/u32-strconv-to-enc, localcharset. Remove
22476         uniconv/u32-strconv-to-locale.
22477         (configure.ac): Bump version number.
22478
22479 2010-05-24  Bruno Haible  <bruno@clisp.org>
22480
22481         Avoid a test failure on NetBSD 5.0.
22482         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22483         an iconv() bug.
22484
22485 2010-05-24  Bruno Haible  <bruno@clisp.org>
22486
22487         Adjust #include directive style.
22488         * modules/regex (Includes): Recommend to write <regex.h>.
22489
22490 2010-05-24  Bruno Haible  <bruno@clisp.org>
22491
22492         regex: Don't require alloca.
22493         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22494         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22495         only inside if (0).
22496
22497 2010-05-23  Jim Meyering  <meyering@redhat.com>
22498
22499         test-renameat.c: include <sys/stat.h>
22500         * tests/test-renameat.c: Include <sys/stat.h>; required for
22501         definition of S_IS* macros.
22502
22503 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22504
22505         Update maintainer documentation for 'relocatable-prog' module.
22506         * doc/relocatable-maint.texi: Update.
22507         Comments by Bruno Haible.
22508
22509 2010-05-23  Bruno Haible  <bruno@clisp.org>
22510
22511         git-merge-changelog: Enable --split-merged-entry by default.
22512         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22513         (usage): Don't mention this option any more.
22514         Reported by Ralf Wildenhues.
22515
22516 2010-05-23  Jim Meyering  <meyering@redhat.com>
22517
22518         test-pwrite: do not leave behind a test file named "out"
22519         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22520         The trivial-looking use of init.sh is really necessary.
22521         It ensures that the temporary file, "out", is created in
22522         a temporary directory, and removed upon termination.
22523         * tests/test-pwrite.sh: Re-add file.
22524         * modules/pwrite-tests: Reference it.
22525
22526 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22527
22528         Fix output redirection buglet in init.sh.
22529         * tests/init.sh: Fix redirection of stderr.
22530
22531 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22532
22533         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22534
22535 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22536
22537         * modules/valgrind-tests: New file.
22538         * m4/valgrind-tests.m4: New file.
22539         * doc/valgrind-tests.texi: New file.
22540         * doc/gnulib.texi (Running self-tests under valgrind): New
22541         section.
22542
22543 2010-05-19  Bruno Haible  <bruno@clisp.org>
22544
22545         Clean up dead code in recent commit.
22546         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22547         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22548         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22549         Suggested by Paolo Bonzini.
22550
22551 2010-05-19  Bruno Haible  <bruno@clisp.org>
22552
22553         Avoid valgrind error reports from libunistring.
22554         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22555         * modules/libunistring (Files): Add it.
22556         * modules/libunistring-optional (Files): Likewise.
22557
22558 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22559             Bruno Haible  <bruno@clisp.org>
22560
22561         New module 'libunistring-optional'.
22562         * modules/libunistring-optional: New file.
22563         * m4/libunistring-base.m4: New file.
22564         * m4/libunistring-optional.m4: New file.
22565         * lib/unicase.in.h: Renamed from lib/unicase.h.
22566         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22567         * lib/unictype.in.h: Renamed from lib/unictype.h.
22568         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22569         * lib/uniname.in.h: Renamed from lib/uniname.h.
22570         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22571         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22572         * lib/unistr.in.h: Renamed from lib/unistr.h.
22573         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22574         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22575         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22576         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22577         gl_LIBUNISTRING. If the library was found, determine the installed
22578         version and set LIBUNISTRING_VERSION.
22579         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22580         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22581         handle a configuration option --with-included-libunistring.
22582         * modules/libunistring (Files): Add m4/absolute-header.m4.
22583         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22584         Add m4/libunistring-base.m4.
22585         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22586         (Makefile.am): Build unicase.h from unicase.in.h.
22587         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22588         Add m4/libunistring-base.m4.
22589         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22590         (Makefile.am): Build uniconv.h from uniconv.in.h.
22591         * modules/unictype/base (Files): Use unictype.in.h instead of
22592         unictype.h. Add m4/libunistring-base.m4.
22593         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22594         (Makefile.am): Build unictype.h from unictype.in.h.
22595         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22596         Add m4/libunistring-base.m4.
22597         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22598         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22599         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22600         Add m4/libunistring-base.m4.
22601         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22602         (Makefile.am): Build uniname.h from uniname.in.h.
22603         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22604         Add m4/libunistring-base.m4.
22605         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22606         (Makefile.am): Build uninorm.h from uninorm.in.h.
22607         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22608         unistdio.h. Add m4/libunistring-base.m4.
22609         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22610         (Makefile.am): Build unistdio.h from unistdio.in.h.
22611         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22612         Add m4/libunistring-base.m4.
22613         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22614         (Makefile.am): Build unistr.h from unistr.in.h.
22615         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22616         Add m4/libunistring-base.m4.
22617         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22618         (Makefile.am): Build unitypes.h from unitypes.in.h.
22619         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22620         Add m4/libunistring-base.m4.
22621         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22622         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22623         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22624         uniwidth.h. Add m4/libunistring-base.m4.
22625         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22626         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22627         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22628         instead of augmenting lib_SOURCES.
22629         * modules/unicase/empty-suffix-context: Likewise.
22630         * modules/unicase/locale-language: Likewise.
22631         * modules/unicase/tolower: Likewise.
22632         * modules/unicase/totitle: Likewise.
22633         * modules/unicase/toupper: Likewise.
22634         * modules/unicase/u8-casecmp: Likewise.
22635         * modules/unicase/u8-casecoll: Likewise.
22636         * modules/unicase/u8-casefold: Likewise.
22637         * modules/unicase/u8-casexfrm: Likewise.
22638         * modules/unicase/u8-ct-casefold: Likewise.
22639         * modules/unicase/u8-ct-tolower: Likewise.
22640         * modules/unicase/u8-ct-totitle: Likewise.
22641         * modules/unicase/u8-ct-toupper: Likewise.
22642         * modules/unicase/u8-is-cased: Likewise.
22643         * modules/unicase/u8-is-casefolded: Likewise.
22644         * modules/unicase/u8-is-lowercase: Likewise.
22645         * modules/unicase/u8-is-titlecase: Likewise.
22646         * modules/unicase/u8-is-uppercase: Likewise.
22647         * modules/unicase/u8-prefix-context: Likewise.
22648         * modules/unicase/u8-suffix-context: Likewise.
22649         * modules/unicase/u8-tolower: Likewise.
22650         * modules/unicase/u8-totitle: Likewise.
22651         * modules/unicase/u8-toupper: Likewise.
22652         * modules/unicase/u16-casecmp: Likewise.
22653         * modules/unicase/u16-casecoll: Likewise.
22654         * modules/unicase/u16-casefold: Likewise.
22655         * modules/unicase/u16-casexfrm: Likewise.
22656         * modules/unicase/u16-ct-casefold: Likewise.
22657         * modules/unicase/u16-ct-tolower: Likewise.
22658         * modules/unicase/u16-ct-totitle: Likewise.
22659         * modules/unicase/u16-ct-toupper: Likewise.
22660         * modules/unicase/u16-is-cased: Likewise.
22661         * modules/unicase/u16-is-casefolded: Likewise.
22662         * modules/unicase/u16-is-lowercase: Likewise.
22663         * modules/unicase/u16-is-titlecase: Likewise.
22664         * modules/unicase/u16-is-uppercase: Likewise.
22665         * modules/unicase/u16-prefix-context: Likewise.
22666         * modules/unicase/u16-suffix-context: Likewise.
22667         * modules/unicase/u16-tolower: Likewise.
22668         * modules/unicase/u16-totitle: Likewise.
22669         * modules/unicase/u16-toupper: Likewise.
22670         * modules/unicase/u32-casecmp: Likewise.
22671         * modules/unicase/u32-casecoll: Likewise.
22672         * modules/unicase/u32-casefold: Likewise.
22673         * modules/unicase/u32-casexfrm: Likewise.
22674         * modules/unicase/u32-ct-casefold: Likewise.
22675         * modules/unicase/u32-ct-tolower: Likewise.
22676         * modules/unicase/u32-ct-totitle: Likewise.
22677         * modules/unicase/u32-ct-toupper: Likewise.
22678         * modules/unicase/u32-is-cased: Likewise.
22679         * modules/unicase/u32-is-casefolded: Likewise.
22680         * modules/unicase/u32-is-lowercase: Likewise.
22681         * modules/unicase/u32-is-titlecase: Likewise.
22682         * modules/unicase/u32-is-uppercase: Likewise.
22683         * modules/unicase/u32-prefix-context: Likewise.
22684         * modules/unicase/u32-suffix-context: Likewise.
22685         * modules/unicase/u32-tolower: Likewise.
22686         * modules/unicase/u32-totitle: Likewise.
22687         * modules/unicase/u32-toupper: Likewise.
22688         * modules/unicase/ulc-casecmp: Likewise.
22689         * modules/unicase/ulc-casecoll: Likewise.
22690         * modules/unicase/ulc-casexfrm: Likewise.
22691         * modules/uniconv/u8-conv-from-enc: Likewise.
22692         * modules/uniconv/u8-conv-to-enc: Likewise.
22693         * modules/uniconv/u8-strconv-from-enc: Likewise.
22694         * modules/uniconv/u8-strconv-from-locale: Likewise.
22695         * modules/uniconv/u8-strconv-to-enc: Likewise.
22696         * modules/uniconv/u8-strconv-to-locale: Likewise.
22697         * modules/uniconv/u16-conv-from-enc: Likewise.
22698         * modules/uniconv/u16-conv-to-enc: Likewise.
22699         * modules/uniconv/u16-strconv-from-enc: Likewise.
22700         * modules/uniconv/u16-strconv-from-locale: Likewise.
22701         * modules/uniconv/u16-strconv-to-enc: Likewise.
22702         * modules/uniconv/u16-strconv-to-locale: Likewise.
22703         * modules/uniconv/u32-conv-from-enc: Likewise.
22704         * modules/uniconv/u32-conv-to-enc: Likewise.
22705         * modules/uniconv/u32-strconv-from-enc: Likewise.
22706         * modules/uniconv/u32-strconv-from-locale: Likewise.
22707         * modules/uniconv/u32-strconv-to-enc: Likewise.
22708         * modules/uniconv/u32-strconv-to-locale: Likewise.
22709         * modules/unictype/bidicategory-byname: Likewise.
22710         * modules/unictype/bidicategory-name: Likewise.
22711         * modules/unictype/bidicategory-of: Likewise.
22712         * modules/unictype/bidicategory-test: Likewise.
22713         * modules/unictype/block-list: Likewise.
22714         * modules/unictype/block-test: Likewise.
22715         * modules/unictype/category-C: Likewise.
22716         * modules/unictype/category-Cc: Likewise.
22717         * modules/unictype/category-Cf: Likewise.
22718         * modules/unictype/category-Cn: Likewise.
22719         * modules/unictype/category-Co: Likewise.
22720         * modules/unictype/category-Cs: Likewise.
22721         * modules/unictype/category-L: Likewise.
22722         * modules/unictype/category-Ll: Likewise.
22723         * modules/unictype/category-Lm: Likewise.
22724         * modules/unictype/category-Lo: Likewise.
22725         * modules/unictype/category-Lt: Likewise.
22726         * modules/unictype/category-Lu: Likewise.
22727         * modules/unictype/category-M: Likewise.
22728         * modules/unictype/category-Mc: Likewise.
22729         * modules/unictype/category-Me: Likewise.
22730         * modules/unictype/category-Mn: Likewise.
22731         * modules/unictype/category-N: Likewise.
22732         * modules/unictype/category-Nd: Likewise.
22733         * modules/unictype/category-Nl: Likewise.
22734         * modules/unictype/category-No: Likewise.
22735         * modules/unictype/category-P: Likewise.
22736         * modules/unictype/category-Pc: Likewise.
22737         * modules/unictype/category-Pd: Likewise.
22738         * modules/unictype/category-Pe: Likewise.
22739         * modules/unictype/category-Pf: Likewise.
22740         * modules/unictype/category-Pi: Likewise.
22741         * modules/unictype/category-Po: Likewise.
22742         * modules/unictype/category-Ps: Likewise.
22743         * modules/unictype/category-S: Likewise.
22744         * modules/unictype/category-Sc: Likewise.
22745         * modules/unictype/category-Sk: Likewise.
22746         * modules/unictype/category-Sm: Likewise.
22747         * modules/unictype/category-So: Likewise.
22748         * modules/unictype/category-Z: Likewise.
22749         * modules/unictype/category-Zl: Likewise.
22750         * modules/unictype/category-Zp: Likewise.
22751         * modules/unictype/category-Zs: Likewise.
22752         * modules/unictype/category-and: Likewise.
22753         * modules/unictype/category-and-not: Likewise.
22754         * modules/unictype/category-byname: Likewise.
22755         * modules/unictype/category-name: Likewise.
22756         * modules/unictype/category-none: Likewise.
22757         * modules/unictype/category-of: Likewise.
22758         * modules/unictype/category-or: Likewise.
22759         * modules/unictype/category-test: Likewise.
22760         * modules/unictype/combining-class: Likewise.
22761         * modules/unictype/ctype-alnum: Likewise.
22762         * modules/unictype/ctype-alpha: Likewise.
22763         * modules/unictype/ctype-blank: Likewise.
22764         * modules/unictype/ctype-cntrl: Likewise.
22765         * modules/unictype/ctype-digit: Likewise.
22766         * modules/unictype/ctype-graph: Likewise.
22767         * modules/unictype/ctype-lower: Likewise.
22768         * modules/unictype/ctype-print: Likewise.
22769         * modules/unictype/ctype-punct: Likewise.
22770         * modules/unictype/ctype-space: Likewise.
22771         * modules/unictype/ctype-upper: Likewise.
22772         * modules/unictype/ctype-xdigit: Likewise.
22773         * modules/unictype/decimal-digit: Likewise.
22774         * modules/unictype/digit: Likewise.
22775         * modules/unictype/mirror: Likewise.
22776         * modules/unictype/numeric: Likewise.
22777         * modules/unictype/property-alphabetic: Likewise.
22778         * modules/unictype/property-ascii-hex-digit: Likewise.
22779         * modules/unictype/property-bidi-arabic-digit: Likewise.
22780         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22781         * modules/unictype/property-bidi-block-separator: Likewise.
22782         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22783         * modules/unictype/property-bidi-common-separator: Likewise.
22784         * modules/unictype/property-bidi-control: Likewise.
22785         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22786         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22787         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22788         * modules/unictype/property-bidi-european-digit: Likewise.
22789         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22790         * modules/unictype/property-bidi-left-to-right: Likewise.
22791         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22792         * modules/unictype/property-bidi-other-neutral: Likewise.
22793         * modules/unictype/property-bidi-pdf: Likewise.
22794         * modules/unictype/property-bidi-segment-separator: Likewise.
22795         * modules/unictype/property-bidi-whitespace: Likewise.
22796         * modules/unictype/property-byname: Likewise.
22797         * modules/unictype/property-combining: Likewise.
22798         * modules/unictype/property-composite: Likewise.
22799         * modules/unictype/property-currency-symbol: Likewise.
22800         * modules/unictype/property-dash: Likewise.
22801         * modules/unictype/property-decimal-digit: Likewise.
22802         * modules/unictype/property-default-ignorable-code-point: Likewise.
22803         * modules/unictype/property-deprecated: Likewise.
22804         * modules/unictype/property-diacritic: Likewise.
22805         * modules/unictype/property-extender: Likewise.
22806         * modules/unictype/property-format-control: Likewise.
22807         * modules/unictype/property-grapheme-base: Likewise.
22808         * modules/unictype/property-grapheme-extend: Likewise.
22809         * modules/unictype/property-grapheme-link: Likewise.
22810         * modules/unictype/property-hex-digit: Likewise.
22811         * modules/unictype/property-hyphen: Likewise.
22812         * modules/unictype/property-id-continue: Likewise.
22813         * modules/unictype/property-id-start: Likewise.
22814         * modules/unictype/property-ideographic: Likewise.
22815         * modules/unictype/property-ids-binary-operator: Likewise.
22816         * modules/unictype/property-ids-trinary-operator: Likewise.
22817         * modules/unictype/property-ignorable-control: Likewise.
22818         * modules/unictype/property-iso-control: Likewise.
22819         * modules/unictype/property-join-control: Likewise.
22820         * modules/unictype/property-left-of-pair: Likewise.
22821         * modules/unictype/property-line-separator: Likewise.
22822         * modules/unictype/property-logical-order-exception: Likewise.
22823         * modules/unictype/property-lowercase: Likewise.
22824         * modules/unictype/property-math: Likewise.
22825         * modules/unictype/property-non-break: Likewise.
22826         * modules/unictype/property-not-a-character: Likewise.
22827         * modules/unictype/property-numeric: Likewise.
22828         * modules/unictype/property-other-alphabetic: Likewise.
22829         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22830         * modules/unictype/property-other-grapheme-extend: Likewise.
22831         * modules/unictype/property-other-id-continue: Likewise.
22832         * modules/unictype/property-other-id-start: Likewise.
22833         * modules/unictype/property-other-lowercase: Likewise.
22834         * modules/unictype/property-other-math: Likewise.
22835         * modules/unictype/property-other-uppercase: Likewise.
22836         * modules/unictype/property-paired-punctuation: Likewise.
22837         * modules/unictype/property-paragraph-separator: Likewise.
22838         * modules/unictype/property-pattern-syntax: Likewise.
22839         * modules/unictype/property-pattern-white-space: Likewise.
22840         * modules/unictype/property-private-use: Likewise.
22841         * modules/unictype/property-punctuation: Likewise.
22842         * modules/unictype/property-quotation-mark: Likewise.
22843         * modules/unictype/property-radical: Likewise.
22844         * modules/unictype/property-sentence-terminal: Likewise.
22845         * modules/unictype/property-soft-dotted: Likewise.
22846         * modules/unictype/property-space: Likewise.
22847         * modules/unictype/property-terminal-punctuation: Likewise.
22848         * modules/unictype/property-test: Likewise.
22849         * modules/unictype/property-titlecase: Likewise.
22850         * modules/unictype/property-unassigned-code-value: Likewise.
22851         * modules/unictype/property-unified-ideograph: Likewise.
22852         * modules/unictype/property-uppercase: Likewise.
22853         * modules/unictype/property-variation-selector: Likewise.
22854         * modules/unictype/property-white-space: Likewise.
22855         * modules/unictype/property-xid-continue: Likewise.
22856         * modules/unictype/property-xid-start: Likewise.
22857         * modules/unictype/property-zero-width: Likewise.
22858         * modules/unictype/scripts: Likewise.
22859         * modules/unictype/syntax-c-ident: Likewise.
22860         * modules/unictype/syntax-c-whitespace: Likewise.
22861         * modules/unictype/syntax-java-ident: Likewise.
22862         * modules/unictype/syntax-java-whitespace: Likewise.
22863         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22864         * modules/unilbrk/u8-width-linebreaks: Likewise.
22865         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22866         * modules/unilbrk/u16-width-linebreaks: Likewise.
22867         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22868         * modules/unilbrk/u32-width-linebreaks: Likewise.
22869         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22870         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22871         * modules/uniname/uniname: Likewise.
22872         * modules/uninorm/canonical-decomposition: Likewise.
22873         * modules/uninorm/composition: Likewise.
22874         * modules/uninorm/decomposing-form: Likewise.
22875         * modules/uninorm/decomposition: Likewise.
22876         * modules/uninorm/filter: Likewise.
22877         * modules/uninorm/nfc: Likewise.
22878         * modules/uninorm/nfd: Likewise.
22879         * modules/uninorm/nfkc: Likewise.
22880         * modules/uninorm/nfkd: Likewise.
22881         * modules/uninorm/u8-normalize: Likewise.
22882         * modules/uninorm/u8-normcmp: Likewise.
22883         * modules/uninorm/u8-normcoll: Likewise.
22884         * modules/uninorm/u8-normxfrm: Likewise.
22885         * modules/uninorm/u16-normalize: Likewise.
22886         * modules/uninorm/u16-normcmp: Likewise.
22887         * modules/uninorm/u16-normcoll: Likewise.
22888         * modules/uninorm/u16-normxfrm: Likewise.
22889         * modules/uninorm/u32-normalize: Likewise.
22890         * modules/uninorm/u32-normcmp: Likewise.
22891         * modules/uninorm/u32-normcoll: Likewise.
22892         * modules/uninorm/u32-normxfrm: Likewise.
22893         * modules/unistdio/u8-asnprintf: Likewise.
22894         * modules/unistdio/u8-asprintf: Likewise.
22895         * modules/unistdio/u8-snprintf: Likewise.
22896         * modules/unistdio/u8-sprintf: Likewise.
22897         * modules/unistdio/u8-u8-asnprintf: Likewise.
22898         * modules/unistdio/u8-u8-asprintf: Likewise.
22899         * modules/unistdio/u8-u8-snprintf: Likewise.
22900         * modules/unistdio/u8-u8-sprintf: Likewise.
22901         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22902         * modules/unistdio/u8-u8-vasprintf: Likewise.
22903         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22904         * modules/unistdio/u8-u8-vsprintf: Likewise.
22905         * modules/unistdio/u8-vasnprintf: Likewise.
22906         * modules/unistdio/u8-vasprintf: Likewise.
22907         * modules/unistdio/u8-vsnprintf: Likewise.
22908         * modules/unistdio/u8-vsprintf: Likewise.
22909         * modules/unistdio/u16-asnprintf: Likewise.
22910         * modules/unistdio/u16-asprintf: Likewise.
22911         * modules/unistdio/u16-snprintf: Likewise.
22912         * modules/unistdio/u16-sprintf: Likewise.
22913         * modules/unistdio/u16-u16-asnprintf: Likewise.
22914         * modules/unistdio/u16-u16-asprintf: Likewise.
22915         * modules/unistdio/u16-u16-snprintf: Likewise.
22916         * modules/unistdio/u16-u16-sprintf: Likewise.
22917         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22918         * modules/unistdio/u16-u16-vasprintf: Likewise.
22919         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22920         * modules/unistdio/u16-u16-vsprintf: Likewise.
22921         * modules/unistdio/u16-vasnprintf: Likewise.
22922         * modules/unistdio/u16-vasprintf: Likewise.
22923         * modules/unistdio/u16-vsnprintf: Likewise.
22924         * modules/unistdio/u16-vsprintf: Likewise.
22925         * modules/unistdio/u32-asnprintf: Likewise.
22926         * modules/unistdio/u32-asprintf: Likewise.
22927         * modules/unistdio/u32-snprintf: Likewise.
22928         * modules/unistdio/u32-sprintf: Likewise.
22929         * modules/unistdio/u32-u32-asnprintf: Likewise.
22930         * modules/unistdio/u32-u32-asprintf: Likewise.
22931         * modules/unistdio/u32-u32-snprintf: Likewise.
22932         * modules/unistdio/u32-u32-sprintf: Likewise.
22933         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22934         * modules/unistdio/u32-u32-vasprintf: Likewise.
22935         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22936         * modules/unistdio/u32-u32-vsprintf: Likewise.
22937         * modules/unistdio/u32-vasnprintf: Likewise.
22938         * modules/unistdio/u32-vasprintf: Likewise.
22939         * modules/unistdio/u32-vsnprintf: Likewise.
22940         * modules/unistdio/u32-vsprintf: Likewise.
22941         * modules/unistdio/ulc-asnprintf: Likewise.
22942         * modules/unistdio/ulc-asprintf: Likewise.
22943         * modules/unistdio/ulc-fprintf: Likewise.
22944         * modules/unistdio/ulc-snprintf: Likewise.
22945         * modules/unistdio/ulc-sprintf: Likewise.
22946         * modules/unistdio/ulc-vasnprintf: Likewise.
22947         * modules/unistdio/ulc-vasprintf: Likewise.
22948         * modules/unistdio/ulc-vfprintf: Likewise.
22949         * modules/unistdio/ulc-vsnprintf: Likewise.
22950         * modules/unistdio/ulc-vsprintf: Likewise.
22951         * modules/unistr/u8-check: Likewise.
22952         * modules/unistr/u8-chr: Likewise.
22953         * modules/unistr/u8-cmp: Likewise.
22954         * modules/unistr/u8-cmp2: Likewise.
22955         * modules/unistr/u8-cpy: Likewise.
22956         * modules/unistr/u8-cpy-alloc: Likewise.
22957         * modules/unistr/u8-endswith: Likewise.
22958         * modules/unistr/u8-mblen: Likewise.
22959         * modules/unistr/u8-mbsnlen: Likewise.
22960         * modules/unistr/u8-mbtouc: Likewise.
22961         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22962         * modules/unistr/u8-mbtoucr: Likewise.
22963         * modules/unistr/u8-move: Likewise.
22964         * modules/unistr/u8-next: Likewise.
22965         * modules/unistr/u8-prev: Likewise.
22966         * modules/unistr/u8-set: Likewise.
22967         * modules/unistr/u8-startswith: Likewise.
22968         * modules/unistr/u8-stpcpy: Likewise.
22969         * modules/unistr/u8-stpncpy: Likewise.
22970         * modules/unistr/u8-strcat: Likewise.
22971         * modules/unistr/u8-strchr: Likewise.
22972         * modules/unistr/u8-strcmp: Likewise.
22973         * modules/unistr/u8-strcoll: Likewise.
22974         * modules/unistr/u8-strcpy: Likewise.
22975         * modules/unistr/u8-strcspn: Likewise.
22976         * modules/unistr/u8-strdup: Likewise.
22977         * modules/unistr/u8-strlen: Likewise.
22978         * modules/unistr/u8-strmblen: Likewise.
22979         * modules/unistr/u8-strmbtouc: Likewise.
22980         * modules/unistr/u8-strncat: Likewise.
22981         * modules/unistr/u8-strncmp: Likewise.
22982         * modules/unistr/u8-strncpy: Likewise.
22983         * modules/unistr/u8-strnlen: Likewise.
22984         * modules/unistr/u8-strpbrk: Likewise.
22985         * modules/unistr/u8-strrchr: Likewise.
22986         * modules/unistr/u8-strspn: Likewise.
22987         * modules/unistr/u8-strstr: Likewise.
22988         * modules/unistr/u8-strtok: Likewise.
22989         * modules/unistr/u8-to-u16: Likewise.
22990         * modules/unistr/u8-to-u32: Likewise.
22991         * modules/unistr/u8-uctomb: Likewise.
22992         * modules/unistr/u16-check: Likewise.
22993         * modules/unistr/u16-chr: Likewise.
22994         * modules/unistr/u16-cmp: Likewise.
22995         * modules/unistr/u16-cmp2: Likewise.
22996         * modules/unistr/u16-cpy: Likewise.
22997         * modules/unistr/u16-cpy-alloc: Likewise.
22998         * modules/unistr/u16-endswith: Likewise.
22999         * modules/unistr/u16-mblen: Likewise.
23000         * modules/unistr/u16-mbsnlen: Likewise.
23001         * modules/unistr/u16-mbtouc: Likewise.
23002         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23003         * modules/unistr/u16-mbtoucr: Likewise.
23004         * modules/unistr/u16-move: Likewise.
23005         * modules/unistr/u16-next: Likewise.
23006         * modules/unistr/u16-prev: Likewise.
23007         * modules/unistr/u16-set: Likewise.
23008         * modules/unistr/u16-startswith: Likewise.
23009         * modules/unistr/u16-stpcpy: Likewise.
23010         * modules/unistr/u16-stpncpy: Likewise.
23011         * modules/unistr/u16-strcat: Likewise.
23012         * modules/unistr/u16-strchr: Likewise.
23013         * modules/unistr/u16-strcmp: Likewise.
23014         * modules/unistr/u16-strcoll: Likewise.
23015         * modules/unistr/u16-strcpy: Likewise.
23016         * modules/unistr/u16-strcspn: Likewise.
23017         * modules/unistr/u16-strdup: Likewise.
23018         * modules/unistr/u16-strlen: Likewise.
23019         * modules/unistr/u16-strmblen: Likewise.
23020         * modules/unistr/u16-strmbtouc: Likewise.
23021         * modules/unistr/u16-strncat: Likewise.
23022         * modules/unistr/u16-strncmp: Likewise.
23023         * modules/unistr/u16-strncpy: Likewise.
23024         * modules/unistr/u16-strnlen: Likewise.
23025         * modules/unistr/u16-strpbrk: Likewise.
23026         * modules/unistr/u16-strrchr: Likewise.
23027         * modules/unistr/u16-strspn: Likewise.
23028         * modules/unistr/u16-strstr: Likewise.
23029         * modules/unistr/u16-strtok: Likewise.
23030         * modules/unistr/u16-to-u32: Likewise.
23031         * modules/unistr/u16-to-u8: Likewise.
23032         * modules/unistr/u16-uctomb: Likewise.
23033         * modules/unistr/u32-check: Likewise.
23034         * modules/unistr/u32-chr: Likewise.
23035         * modules/unistr/u32-cmp: Likewise.
23036         * modules/unistr/u32-cmp2: Likewise.
23037         * modules/unistr/u32-cpy: Likewise.
23038         * modules/unistr/u32-cpy-alloc: Likewise.
23039         * modules/unistr/u32-endswith: Likewise.
23040         * modules/unistr/u32-mblen: Likewise.
23041         * modules/unistr/u32-mbsnlen: Likewise.
23042         * modules/unistr/u32-mbtouc: Likewise.
23043         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23044         * modules/unistr/u32-mbtoucr: Likewise.
23045         * modules/unistr/u32-move: Likewise.
23046         * modules/unistr/u32-next: Likewise.
23047         * modules/unistr/u32-prev: Likewise.
23048         * modules/unistr/u32-set: Likewise.
23049         * modules/unistr/u32-startswith: Likewise.
23050         * modules/unistr/u32-stpcpy: Likewise.
23051         * modules/unistr/u32-stpncpy: Likewise.
23052         * modules/unistr/u32-strcat: Likewise.
23053         * modules/unistr/u32-strchr: Likewise.
23054         * modules/unistr/u32-strcmp: Likewise.
23055         * modules/unistr/u32-strcoll: Likewise.
23056         * modules/unistr/u32-strcpy: Likewise.
23057         * modules/unistr/u32-strcspn: Likewise.
23058         * modules/unistr/u32-strdup: Likewise.
23059         * modules/unistr/u32-strlen: Likewise.
23060         * modules/unistr/u32-strmblen: Likewise.
23061         * modules/unistr/u32-strmbtouc: Likewise.
23062         * modules/unistr/u32-strncat: Likewise.
23063         * modules/unistr/u32-strncmp: Likewise.
23064         * modules/unistr/u32-strncpy: Likewise.
23065         * modules/unistr/u32-strnlen: Likewise.
23066         * modules/unistr/u32-strpbrk: Likewise.
23067         * modules/unistr/u32-strrchr: Likewise.
23068         * modules/unistr/u32-strspn: Likewise.
23069         * modules/unistr/u32-strstr: Likewise.
23070         * modules/unistr/u32-strtok: Likewise.
23071         * modules/unistr/u32-to-u16: Likewise.
23072         * modules/unistr/u32-to-u8: Likewise.
23073         * modules/unistr/u32-uctomb: Likewise.
23074         * modules/uniwbrk/u8-wordbreaks: Likewise.
23075         * modules/uniwbrk/u16-wordbreaks: Likewise.
23076         * modules/uniwbrk/u32-wordbreaks: Likewise.
23077         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23078         * modules/uniwbrk/wordbreak-property: Likewise.
23079         * modules/uniwidth/u8-strwidth: Likewise.
23080         * modules/uniwidth/u8-width: Likewise.
23081         * modules/uniwidth/u16-strwidth: Likewise.
23082         * modules/uniwidth/u16-width: Likewise.
23083         * modules/uniwidth/u32-strwidth: Likewise.
23084         * modules/uniwidth/u32-width: Likewise.
23085         * modules/uniwidth/width: Likewise.
23086         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23087         with $(LIBUNISTRING).
23088         * modules/unicase/ignorable-tests: Likewise.
23089         * modules/unicase/locale-language-tests: Likewise.
23090         * modules/unicase/tolower-tests: Likewise.
23091         * modules/unicase/totitle-tests: Likewise.
23092         * modules/unicase/toupper-tests: Likewise.
23093         * modules/unicase/u8-casecmp-tests: Likewise.
23094         * modules/unicase/u8-casecoll-tests: Likewise.
23095         * modules/unicase/u8-casefold-tests: Likewise.
23096         * modules/unicase/u8-is-cased-tests: Likewise.
23097         * modules/unicase/u8-is-casefolded-tests: Likewise.
23098         * modules/unicase/u8-is-lowercase-tests: Likewise.
23099         * modules/unicase/u8-is-titlecase-tests: Likewise.
23100         * modules/unicase/u8-is-uppercase-tests: Likewise.
23101         * modules/unicase/u8-tolower-tests: Likewise.
23102         * modules/unicase/u8-totitle-tests: Likewise.
23103         * modules/unicase/u8-toupper-tests: Likewise.
23104         * modules/unicase/u16-casecmp-tests: Likewise.
23105         * modules/unicase/u16-casecoll-tests: Likewise.
23106         * modules/unicase/u16-casefold-tests: Likewise.
23107         * modules/unicase/u16-is-cased-tests: Likewise.
23108         * modules/unicase/u16-is-casefolded-tests: Likewise.
23109         * modules/unicase/u16-is-lowercase-tests: Likewise.
23110         * modules/unicase/u16-is-titlecase-tests: Likewise.
23111         * modules/unicase/u16-is-uppercase-tests: Likewise.
23112         * modules/unicase/u16-tolower-tests: Likewise.
23113         * modules/unicase/u16-totitle-tests: Likewise.
23114         * modules/unicase/u16-toupper-tests: Likewise.
23115         * modules/unicase/u32-casecmp-tests: Likewise.
23116         * modules/unicase/u32-casecoll-tests: Likewise.
23117         * modules/unicase/u32-casefold-tests: Likewise.
23118         * modules/unicase/u32-is-cased-tests: Likewise.
23119         * modules/unicase/u32-is-casefolded-tests: Likewise.
23120         * modules/unicase/u32-is-lowercase-tests: Likewise.
23121         * modules/unicase/u32-is-titlecase-tests: Likewise.
23122         * modules/unicase/u32-is-uppercase-tests: Likewise.
23123         * modules/unicase/u32-tolower-tests: Likewise.
23124         * modules/unicase/u32-totitle-tests: Likewise.
23125         * modules/unicase/u32-toupper-tests: Likewise.
23126         * modules/unicase/ulc-casecmp-tests: Likewise.
23127         * modules/unicase/ulc-casecoll-tests: Likewise.
23128         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23129         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23130         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23131         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23132         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23133         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23134         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23135         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23136         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23137         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23138         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23139         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23140         * modules/unictype/bidicategory-byname-tests: Likewise.
23141         * modules/unictype/bidicategory-name-tests: Likewise.
23142         * modules/unictype/bidicategory-of-tests: Likewise.
23143         * modules/unictype/bidicategory-test-tests: Likewise.
23144         * modules/unictype/block-list-tests: Likewise.
23145         * modules/unictype/block-of-tests: Likewise.
23146         * modules/unictype/block-test-tests: Likewise.
23147         * modules/unictype/category-C-tests: Likewise.
23148         * modules/unictype/category-Cc-tests: Likewise.
23149         * modules/unictype/category-Cf-tests: Likewise.
23150         * modules/unictype/category-Cn-tests: Likewise.
23151         * modules/unictype/category-Co-tests: Likewise.
23152         * modules/unictype/category-Cs-tests: Likewise.
23153         * modules/unictype/category-L-tests: Likewise.
23154         * modules/unictype/category-Ll-tests: Likewise.
23155         * modules/unictype/category-Lm-tests: Likewise.
23156         * modules/unictype/category-Lo-tests: Likewise.
23157         * modules/unictype/category-Lt-tests: Likewise.
23158         * modules/unictype/category-Lu-tests: Likewise.
23159         * modules/unictype/category-M-tests: Likewise.
23160         * modules/unictype/category-Mc-tests: Likewise.
23161         * modules/unictype/category-Me-tests: Likewise.
23162         * modules/unictype/category-Mn-tests: Likewise.
23163         * modules/unictype/category-N-tests: Likewise.
23164         * modules/unictype/category-Nd-tests: Likewise.
23165         * modules/unictype/category-Nl-tests: Likewise.
23166         * modules/unictype/category-No-tests: Likewise.
23167         * modules/unictype/category-P-tests: Likewise.
23168         * modules/unictype/category-Pc-tests: Likewise.
23169         * modules/unictype/category-Pd-tests: Likewise.
23170         * modules/unictype/category-Pe-tests: Likewise.
23171         * modules/unictype/category-Pf-tests: Likewise.
23172         * modules/unictype/category-Pi-tests: Likewise.
23173         * modules/unictype/category-Po-tests: Likewise.
23174         * modules/unictype/category-Ps-tests: Likewise.
23175         * modules/unictype/category-S-tests: Likewise.
23176         * modules/unictype/category-Sc-tests: Likewise.
23177         * modules/unictype/category-Sk-tests: Likewise.
23178         * modules/unictype/category-Sm-tests: Likewise.
23179         * modules/unictype/category-So-tests: Likewise.
23180         * modules/unictype/category-Z-tests: Likewise.
23181         * modules/unictype/category-Zl-tests: Likewise.
23182         * modules/unictype/category-Zp-tests: Likewise.
23183         * modules/unictype/category-Zs-tests: Likewise.
23184         * modules/unictype/category-and-not-tests: Likewise.
23185         * modules/unictype/category-and-tests: Likewise.
23186         * modules/unictype/category-byname-tests: Likewise.
23187         * modules/unictype/category-name-tests: Likewise.
23188         * modules/unictype/category-none-tests: Likewise.
23189         * modules/unictype/category-of-tests: Likewise.
23190         * modules/unictype/category-or-tests: Likewise.
23191         * modules/unictype/category-test-withtable-tests: Likewise.
23192         * modules/unictype/combining-class-tests: Likewise.
23193         * modules/unictype/ctype-alnum-tests: Likewise.
23194         * modules/unictype/ctype-alpha-tests: Likewise.
23195         * modules/unictype/ctype-blank-tests: Likewise.
23196         * modules/unictype/ctype-cntrl-tests: Likewise.
23197         * modules/unictype/ctype-digit-tests: Likewise.
23198         * modules/unictype/ctype-graph-tests: Likewise.
23199         * modules/unictype/ctype-lower-tests: Likewise.
23200         * modules/unictype/ctype-print-tests: Likewise.
23201         * modules/unictype/ctype-punct-tests: Likewise.
23202         * modules/unictype/ctype-space-tests: Likewise.
23203         * modules/unictype/ctype-upper-tests: Likewise.
23204         * modules/unictype/ctype-xdigit-tests: Likewise.
23205         * modules/unictype/decimal-digit-tests: Likewise.
23206         * modules/unictype/digit-tests: Likewise.
23207         * modules/unictype/mirror-tests: Likewise.
23208         * modules/unictype/numeric-tests: Likewise.
23209         * modules/unictype/property-alphabetic-tests: Likewise.
23210         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23211         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23212         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23213         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23214         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23215         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23216         * modules/unictype/property-bidi-control-tests: Likewise.
23217         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23218         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23219         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23220         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23221         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23222         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23223         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23224         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23225         * modules/unictype/property-bidi-pdf-tests: Likewise.
23226         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23227         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23228         * modules/unictype/property-byname-tests: Likewise.
23229         * modules/unictype/property-combining-tests: Likewise.
23230         * modules/unictype/property-composite-tests: Likewise.
23231         * modules/unictype/property-currency-symbol-tests: Likewise.
23232         * modules/unictype/property-dash-tests: Likewise.
23233         * modules/unictype/property-decimal-digit-tests: Likewise.
23234         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23235         * modules/unictype/property-deprecated-tests: Likewise.
23236         * modules/unictype/property-diacritic-tests: Likewise.
23237         * modules/unictype/property-extender-tests: Likewise.
23238         * modules/unictype/property-format-control-tests: Likewise.
23239         * modules/unictype/property-grapheme-base-tests: Likewise.
23240         * modules/unictype/property-grapheme-extend-tests: Likewise.
23241         * modules/unictype/property-grapheme-link-tests: Likewise.
23242         * modules/unictype/property-hex-digit-tests: Likewise.
23243         * modules/unictype/property-hyphen-tests: Likewise.
23244         * modules/unictype/property-id-continue-tests: Likewise.
23245         * modules/unictype/property-id-start-tests: Likewise.
23246         * modules/unictype/property-ideographic-tests: Likewise.
23247         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23248         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23249         * modules/unictype/property-ignorable-control-tests: Likewise.
23250         * modules/unictype/property-iso-control-tests: Likewise.
23251         * modules/unictype/property-join-control-tests: Likewise.
23252         * modules/unictype/property-left-of-pair-tests: Likewise.
23253         * modules/unictype/property-line-separator-tests: Likewise.
23254         * modules/unictype/property-logical-order-exception-tests: Likewise.
23255         * modules/unictype/property-lowercase-tests: Likewise.
23256         * modules/unictype/property-math-tests: Likewise.
23257         * modules/unictype/property-non-break-tests: Likewise.
23258         * modules/unictype/property-not-a-character-tests: Likewise.
23259         * modules/unictype/property-numeric-tests: Likewise.
23260         * modules/unictype/property-other-alphabetic-tests: Likewise.
23261         * modules/unictype/property-other-default-ignorable-code-point-tests:
23262         Likewise.
23263         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23264         * modules/unictype/property-other-id-continue-tests: Likewise.
23265         * modules/unictype/property-other-id-start-tests: Likewise.
23266         * modules/unictype/property-other-lowercase-tests: Likewise.
23267         * modules/unictype/property-other-math-tests: Likewise.
23268         * modules/unictype/property-other-uppercase-tests: Likewise.
23269         * modules/unictype/property-paired-punctuation-tests: Likewise.
23270         * modules/unictype/property-paragraph-separator-tests: Likewise.
23271         * modules/unictype/property-pattern-syntax-tests: Likewise.
23272         * modules/unictype/property-pattern-white-space-tests: Likewise.
23273         * modules/unictype/property-private-use-tests: Likewise.
23274         * modules/unictype/property-punctuation-tests: Likewise.
23275         * modules/unictype/property-quotation-mark-tests: Likewise.
23276         * modules/unictype/property-radical-tests: Likewise.
23277         * modules/unictype/property-sentence-terminal-tests: Likewise.
23278         * modules/unictype/property-soft-dotted-tests: Likewise.
23279         * modules/unictype/property-space-tests: Likewise.
23280         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23281         * modules/unictype/property-test-tests: Likewise.
23282         * modules/unictype/property-titlecase-tests: Likewise.
23283         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23284         * modules/unictype/property-unified-ideograph-tests: Likewise.
23285         * modules/unictype/property-uppercase-tests: Likewise.
23286         * modules/unictype/property-variation-selector-tests: Likewise.
23287         * modules/unictype/property-white-space-tests: Likewise.
23288         * modules/unictype/property-xid-continue-tests: Likewise.
23289         * modules/unictype/property-xid-start-tests: Likewise.
23290         * modules/unictype/property-zero-width-tests: Likewise.
23291         * modules/unictype/scripts-tests: Likewise.
23292         * modules/unictype/syntax-c-ident-tests: Likewise.
23293         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23294         * modules/unictype/syntax-java-ident-tests: Likewise.
23295         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23296         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23297         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23298         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23299         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23300         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23301         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23302         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23303         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23304         * modules/uniname/uniname-tests: Likewise.
23305         * modules/uninorm/canonical-decomposition-tests: Likewise.
23306         * modules/uninorm/compat-decomposition-tests: Likewise.
23307         * modules/uninorm/composition-tests: Likewise.
23308         * modules/uninorm/decomposing-form-tests: Likewise.
23309         * modules/uninorm/decomposition-tests: Likewise.
23310         * modules/uninorm/filter-tests: Likewise.
23311         * modules/uninorm/nfc-tests: Likewise.
23312         * modules/uninorm/nfd-tests: Likewise.
23313         * modules/uninorm/nfkc-tests: Likewise.
23314         * modules/uninorm/nfkd-tests: Likewise.
23315         * modules/uninorm/u8-normcmp-tests: Likewise.
23316         * modules/uninorm/u8-normcoll-tests: Likewise.
23317         * modules/uninorm/u16-normcmp-tests: Likewise.
23318         * modules/uninorm/u16-normcoll-tests: Likewise.
23319         * modules/uninorm/u32-normcmp-tests: Likewise.
23320         * modules/uninorm/u32-normcoll-tests: Likewise.
23321         * modules/unistdio/u8-asnprintf-tests: Likewise.
23322         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23323         * modules/unistdio/u8-vasprintf-tests: Likewise.
23324         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23325         * modules/unistdio/u8-vsprintf-tests: Likewise.
23326         * modules/unistdio/u16-asnprintf-tests: Likewise.
23327         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23328         * modules/unistdio/u16-vasprintf-tests: Likewise.
23329         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23330         * modules/unistdio/u16-vsprintf-tests: Likewise.
23331         * modules/unistdio/u32-asnprintf-tests: Likewise.
23332         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23333         * modules/unistdio/u32-vasprintf-tests: Likewise.
23334         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23335         * modules/unistdio/u32-vsprintf-tests: Likewise.
23336         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23337         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23338         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23339         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23340         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23341         * modules/unistr/u8-check-tests: Likewise.
23342         * modules/unistr/u8-chr-tests: Likewise.
23343         * modules/unistr/u8-cmp-tests: Likewise.
23344         * modules/unistr/u8-cmp2-tests: Likewise.
23345         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23346         * modules/unistr/u8-cpy-tests: Likewise.
23347         * modules/unistr/u8-mblen-tests: Likewise.
23348         * modules/unistr/u8-mbsnlen-tests: Likewise.
23349         * modules/unistr/u8-mbtouc-tests: Likewise.
23350         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23351         * modules/unistr/u8-mbtoucr-tests: Likewise.
23352         * modules/unistr/u8-move-tests: Likewise.
23353         * modules/unistr/u8-next-tests: Likewise.
23354         * modules/unistr/u8-prev-tests: Likewise.
23355         * modules/unistr/u8-set-tests: Likewise.
23356         * modules/unistr/u8-stpcpy-tests: Likewise.
23357         * modules/unistr/u8-stpncpy-tests: Likewise.
23358         * modules/unistr/u8-strcat-tests: Likewise.
23359         * modules/unistr/u8-strcmp-tests: Likewise.
23360         * modules/unistr/u8-strcoll-tests: Likewise.
23361         * modules/unistr/u8-strcpy-tests: Likewise.
23362         * modules/unistr/u8-strdup-tests: Likewise.
23363         * modules/unistr/u8-strlen-tests: Likewise.
23364         * modules/unistr/u8-strmblen-tests: Likewise.
23365         * modules/unistr/u8-strmbtouc-tests: Likewise.
23366         * modules/unistr/u8-strncat-tests: Likewise.
23367         * modules/unistr/u8-strncmp-tests: Likewise.
23368         * modules/unistr/u8-strncpy-tests: Likewise.
23369         * modules/unistr/u8-strnlen-tests: Likewise.
23370         * modules/unistr/u8-to-u16-tests: Likewise.
23371         * modules/unistr/u8-to-u32-tests: Likewise.
23372         * modules/unistr/u8-uctomb-tests: Likewise.
23373         * modules/unistr/u16-check-tests: Likewise.
23374         * modules/unistr/u16-chr-tests: Likewise.
23375         * modules/unistr/u16-cmp-tests: Likewise.
23376         * modules/unistr/u16-cmp2-tests: Likewise.
23377         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23378         * modules/unistr/u16-cpy-tests: Likewise.
23379         * modules/unistr/u16-mblen-tests: Likewise.
23380         * modules/unistr/u16-mbsnlen-tests: Likewise.
23381         * modules/unistr/u16-mbtouc-tests: Likewise.
23382         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23383         * modules/unistr/u16-mbtoucr-tests: Likewise.
23384         * modules/unistr/u16-move-tests: Likewise.
23385         * modules/unistr/u16-next-tests: Likewise.
23386         * modules/unistr/u16-prev-tests: Likewise.
23387         * modules/unistr/u16-set-tests: Likewise.
23388         * modules/unistr/u16-stpcpy-tests: Likewise.
23389         * modules/unistr/u16-stpncpy-tests: Likewise.
23390         * modules/unistr/u16-strcat-tests: Likewise.
23391         * modules/unistr/u16-strcmp-tests: Likewise.
23392         * modules/unistr/u16-strcoll-tests: Likewise.
23393         * modules/unistr/u16-strcpy-tests: Likewise.
23394         * modules/unistr/u16-strdup-tests: Likewise.
23395         * modules/unistr/u16-strlen-tests: Likewise.
23396         * modules/unistr/u16-strmblen-tests: Likewise.
23397         * modules/unistr/u16-strmbtouc-tests: Likewise.
23398         * modules/unistr/u16-strncat-tests: Likewise.
23399         * modules/unistr/u16-strncmp-tests: Likewise.
23400         * modules/unistr/u16-strncpy-tests: Likewise.
23401         * modules/unistr/u16-strnlen-tests: Likewise.
23402         * modules/unistr/u16-to-u32-tests: Likewise.
23403         * modules/unistr/u16-to-u8-tests: Likewise.
23404         * modules/unistr/u16-uctomb-tests: Likewise.
23405         * modules/unistr/u32-check-tests: Likewise.
23406         * modules/unistr/u32-chr-tests: Likewise.
23407         * modules/unistr/u32-cmp-tests: Likewise.
23408         * modules/unistr/u32-cmp2-tests: Likewise.
23409         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23410         * modules/unistr/u32-cpy-tests: Likewise.
23411         * modules/unistr/u32-mblen-tests: Likewise.
23412         * modules/unistr/u32-mbsnlen-tests: Likewise.
23413         * modules/unistr/u32-mbtouc-tests: Likewise.
23414         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23415         * modules/unistr/u32-mbtoucr-tests: Likewise.
23416         * modules/unistr/u32-move-tests: Likewise.
23417         * modules/unistr/u32-next-tests: Likewise.
23418         * modules/unistr/u32-prev-tests: Likewise.
23419         * modules/unistr/u32-set-tests: Likewise.
23420         * modules/unistr/u32-stpcpy-tests: Likewise.
23421         * modules/unistr/u32-stpncpy-tests: Likewise.
23422         * modules/unistr/u32-strcat-tests: Likewise.
23423         * modules/unistr/u32-strcmp-tests: Likewise.
23424         * modules/unistr/u32-strcoll-tests: Likewise.
23425         * modules/unistr/u32-strcpy-tests: Likewise.
23426         * modules/unistr/u32-strdup-tests: Likewise.
23427         * modules/unistr/u32-strlen-tests: Likewise.
23428         * modules/unistr/u32-strmblen-tests: Likewise.
23429         * modules/unistr/u32-strmbtouc-tests: Likewise.
23430         * modules/unistr/u32-strncat-tests: Likewise.
23431         * modules/unistr/u32-strncmp-tests: Likewise.
23432         * modules/unistr/u32-strncpy-tests: Likewise.
23433         * modules/unistr/u32-strnlen-tests: Likewise.
23434         * modules/unistr/u32-to-u16-tests: Likewise.
23435         * modules/unistr/u32-to-u8-tests: Likewise.
23436         * modules/unistr/u32-uctomb-tests: Likewise.
23437         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23438         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23439         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23440         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23441         * modules/uniwidth/u8-strwidth-tests: Likewise.
23442         * modules/uniwidth/u8-width-tests: Likewise.
23443         * modules/uniwidth/u16-strwidth-tests: Likewise.
23444         * modules/uniwidth/u16-width-tests: Likewise.
23445         * modules/uniwidth/u32-strwidth-tests: Likewise.
23446         * modules/uniwidth/u32-width-tests: Likewise.
23447         * modules/uniwidth/width-tests: Likewise.
23448
23449 2010-05-18  Richard Jones  <rjones@redhat.com>
23450
23451         doc: users.txt: list hivex
23452         * users.txt: Add hivex.
23453
23454 2010-05-18  Richard Jones  <rjones@redhat.com>
23455
23456         doc: users.txt: list febootstrap
23457         * users.txt: Add febootstrap.
23458
23459 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23460
23461         bootstrap: fix an error when gnulib is not used as a git submodule
23462         * build-aux/bootstrap (gnulib_path): If its length is zero then
23463         assign "gnulib" to it.
23464         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23465
23466 2010-05-16  Bruno Haible  <bruno@clisp.org>
23467
23468         Avoid autoconf warnings about AM_ICONV.
23469         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23470         2.64.
23471
23472 2010-05-16  Bruno Haible  <bruno@clisp.org>
23473
23474         absolute-header: Make the macro usable in more situations.
23475         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23476         from gl_ABSOLUTE_HEADER.
23477         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23478
23479 2010-05-16  James Youngman  <jay@gnu.org>
23480
23481         doc: update users.txt
23482         * users.txt: Add CSSC.
23483
23484 2010-05-16  Jim Meyering  <meyering@redhat.com>
23485
23486         init.sh: fix an error in the previous change; add more comments
23487         * tests/init.sh: Compare exit code in loop against 9, not 2.
23488         Patch by Bruno Haible.
23489         Make the two tests more similar by adding an empty "then" clause.
23490         Add comments.
23491
23492         init.sh: avoid unnecessary shell re-exec
23493         * tests/init.sh: Improve the re-exec-required check to first test the
23494         current shell.  If it passes the test, do not search for a shell that
23495         does pass, and do not re-exec.  This test is particularly contorted to
23496         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23497         of $(...) evokes a syntax error and causes immediate shell exit with
23498         status 2.  Bruno Haible reported that the re-exec made it impossible
23499         to single-step through any init.sh-using script.
23500
23501 2010-05-16  Bruno Haible  <bruno@clisp.org>
23502
23503         Fix collision between gnulib's and libintl's printf replacements.
23504         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23505         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23506         (printf): When using GNU C, map the __printf__ function to rpl_printf
23507         via __asm__. When not using GNU C, define rpl_printf instead of
23508         __printf__.
23509         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23510         commit.
23511         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23512         commit.
23513         * m4/asm-underscore.m4: New file.
23514         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23515         * modules/stdio (Files): Add m4/asm-underscore.m4.
23516         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23517         Reported by Ben Pfaff.
23518
23519 2010-05-16  Bruno Haible  <bruno@clisp.org>
23520
23521         verify: Avoid skipping the test on openSUSE 11.0.
23522         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23523
23524 2010-05-13  Bruno Haible  <bruno@clisp.org>
23525
23526         Avoid useless warnings from G++.
23527         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23528         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23529         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23530
23531 2010-05-11  Jim Meyering  <meyering@redhat.com>
23532
23533         maint.mk: tweak preceding change
23534         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23535         regexps tighter by anchoring at EOL, and make the new group "shy"
23536         for slightly decreased overhead.
23537
23538 2010-05-11  Eric Blake  <eblake@redhat.com>
23539
23540         maint.mk: gnulib doesn't guarantee NSIG
23541         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23542
23543 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23544
23545         test-pwrite.c: Remove unused variable declaration.
23546         * tests/test-pwrite.c (main): Remove read_buf declaration.
23547
23548         Remove useless test-pwrite.sh file.
23549         * tests/test-pwrite.sh: Delete file.
23550         * modules/pwrite-tests: Remove references.
23551         Reported by Bruno Haible.
23552
23553 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23554
23555         init.sh: fix a typo
23556         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23557
23558 2010-05-10  Jim Meyering  <meyering@redhat.com>
23559
23560         maint.mk: avoid using a temporary file in the always-defined-macros check
23561         * top/maint.mk (.re-defmac): Remove rule.
23562         (gl_trap_): Remove definition.
23563         (sc_prohibit_always-defined_macros): Rewrite not to create and
23564         depend on a temporary file.  Instead, depend on GNU grep's ability
23565         to read a list of regular expressions from stdin when given "-f -".
23566
23567 2010-05-09  Bruno Haible  <bruno@clisp.org>
23568
23569         Update to GNU gettext 0.18, part 1.
23570         * m4/gettext.m4: Update to GNU gettext 0.18.
23571         * m4/intl.m4: Likewise.
23572         * m4/po.m4: Likewise.
23573         * modules/gettext (Files): Add m4/fcntl-o.m4.
23574         (configure.ac): Require gettext infrastructure from version 0.18.
23575
23576 2010-05-09  Jim Meyering  <meyering@redhat.com>
23577
23578         init.sh: enable MALLOC_PERTURB_
23579         * tests/init.sh: Enable glibc's malloc-perturbing option.
23580
23581         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23582         With my recent change in init.sh from the two-line form:
23583             -#   : ${srcdir=.}
23584             -#   . "$srcdir/init.sh"; path_prepend_ .
23585             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23586         I noticed that using the one-line form would cause this test
23587         to fail with a false-positive, or to stop working altogether,
23588         depending on whether help-version changed or all the tests did.
23589         * top/maint.mk (_hv_regex): Remove this definition.
23590         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23591         (_hv_regex_strong): Use a stronger regex to check for conformance.
23592         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23593         Give a separate diagnostic for lack of conforming use.
23594
23595         maint.mk: prohibit definition of symbols defined by gnulib
23596         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23597         definition of symbols defined by gnulib.
23598
23599 2010-05-09  Bruno Haible  <bruno@clisp.org>
23600
23601         acl: Avoid test failure on Cygwin-hosted mingw.
23602         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23603
23604 2010-05-09  Bruno Haible  <bruno@clisp.org>
23605
23606         error: Use system's fcntl function.
23607         * lib/error.c (fcntl): Undefine.
23608
23609 2010-05-09  Jim Meyering  <meyering@redhat.com>
23610
23611         verify: adjust formatting to be more consistent
23612         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23613         argument-list '('s, and after one comma.
23614
23615 2010-05-09  Bruno Haible  <bruno@clisp.org>
23616
23617         error: More reliable output on mingw.
23618         * lib/error.c: Include <windows.h>.
23619         (is_open): New function.
23620         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23621         defined.
23622
23623 2010-05-09  Bruno Haible  <bruno@clisp.org>
23624
23625         vasnprintf: Fix syntax errors in libintl build on mingw.
23626         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23627         pad_ourselves and prec_ourselves after use.
23628
23629 2010-05-08  Bruno Haible  <bruno@clisp.org>
23630
23631         * lib/config.charset: Update comments for Cygwin 1.7.
23632         * lib/localcharset.c: Likewise.
23633
23634 2010-05-07  Jim Meyering  <meyering@redhat.com>
23635
23636         init.sh: improve comments
23637         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23638         . "${srcdir=.}/init.sh"; path_prepend_ .
23639         Add a note about path_prepend_ and the alternative of using
23640         TESTS_ENVIRONMENT.
23641
23642 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23643
23644         exclude: Unescape hashed patterns in wildcard mode.
23645         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23646         to the hash list.
23647         * tests/test-exclude8.sh: New test case.
23648         * modules/exclude-tests: Add new test.
23649
23650 2010-05-05  Eric Blake  <eblake@redhat.com>
23651
23652         verify: automate tests
23653         * modules/verify-tests: New module.
23654         * tests/test-verify.sh: New file.
23655         * tests/test-verify.c: Guard each negative test with a unique id.
23656         Also avoid warning about unused left hand of comma expressions.
23657
23658 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23659
23660         Further improvements to verify.h, suggested by Eric Blake.
23661         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23662         the GL_* versions, to avoid collision with OpenGL.
23663         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23664         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23665         than testing merely whether it's defined.
23666
23667         Modify verify.h to pacify gcc -Wredundant_decls.
23668         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23669         These use the prefix "GL_" since they're likely to be useful elsewhere.
23670         We may need to break them out into a different .h file.
23671         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23672         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23673         of verify_function__.
23674
23675 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23676
23677         Tests for module pwrite.
23678         * modules/pwrite-tests: New file.
23679         * tests/test-pwrite.sh: New file.
23680         * tests/test-pwrite.c: New file.
23681
23682         New module pwrite.
23683         * lib/unistd.in.h (pwrite): New declaration.
23684         * lib/pwrite.c: New file, from glibc with modifications.
23685         * m4/pwrite.m4: New file.
23686         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23687         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23688         REPLACE_PWRITE.
23689         * modules/pwrite: New file.
23690         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23691         REPLACE_PWRITE.
23692         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23693         * doc/posix-functions/pwrite.texi: Mention the new module.
23694
23695 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23696
23697         pread: Update documentation.
23698         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23699
23700 2010-05-04  Eric Blake  <eblake@redhat.com>
23701
23702         docs: update cygwin progress
23703         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23704         this bug.
23705         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23706         Added in cygwin 1.7.2.
23707         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23708         Likewise.
23709         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23710         Likewise.
23711         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23712         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23713         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23714         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23715         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23716         Mention nproc module.
23717         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23718         bug in cygwin 1.7.5 addition.
23719         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23720         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23721         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23722         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23723         1.7.5.
23724         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23725         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23726         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23727         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23728         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23729         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23730         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23731         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23732         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23733         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23734         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23735         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23736         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23737         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23738         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23739         Likewise.
23740         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23741         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23742         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23743         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23744         Likewise.
23745         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23746         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23747         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23748         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23749         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23750         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23751         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23752         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23753         Likewise.
23754         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23755         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23756         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23757         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23758         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23759         Likewise.
23760         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23761         Likewise.
23762         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23763         Likewise.
23764         * doc/glibc-functions/xdrrec_endofrecord.texi
23765         (xdrrec_endofrecord): Likewise.
23766         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23767         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23768         Likewise.
23769         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23770         Likewise.
23771
23772 2010-05-04  Jim Meyering  <meyering@redhat.com>
23773
23774         gendocs.sh: make its "-s FILE" option more useful
23775         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23776         $PACKAGE to reflect the probably-different basename of "FILE".
23777
23778 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23779
23780         bootstrap: don't ignore download_po_files failure
23781         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23782         failure.
23783
23784 2010-05-03  Jim Meyering  <meyering@redhat.com>
23785
23786         maint.mk: allow to pass options to gendocs.sh
23787         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23788         (gendocs_options_): New overridable variable.
23789
23790         gnu-web-doc-update: don't ignore configure or build failure
23791         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23792
23793         announce-gen: backslash-escape '@'s in --help output
23794         * build-aux/announce-gen: Fix syntax errors.
23795
23796         maint.mk, announce-gen: allow project-specific announcement mail headers
23797         * top/maint.mk (translation_project_): Define default.
23798         (announcement_Cc_, announcement_mail_headers_): Likewise.
23799         (announcement): Invoke announce-gen with new --mail-headers option.
23800         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23801
23802         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23803         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23804         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23805         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23806         line in the "err2" output file when running "make check" in verbose
23807         mode (i.e., with set -x enabled).
23808
23809 2010-05-03  Bruno Haible  <bruno@clisp.org>
23810
23811         wctob: Fix for weird platforms.
23812         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23813         argument value.
23814
23815 2010-05-03  Jim Meyering  <meyering@redhat.com>
23816
23817         maint.mk: prohibit unwarranted use of <strings.h>
23818         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23819         strings.h in a file that does not also use strcasecmp, strncasecmp,
23820         ffs or ffsll.
23821
23822         maint.mk: remove obsolete comments
23823         * top/maint.mk: Remove stale, commented-out rules.
23824
23825 2010-05-02  Bruno Haible  <bruno@clisp.org>
23826
23827         wcwidth: Declare also when it's aliased.
23828         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23829         macro.
23830
23831 2010-05-02  Bruno Haible  <bruno@clisp.org>
23832
23833         Fix regression from 2010-04-25.
23834         * gnulib-tool (func_modules_transitive_closure): Check the status of
23835         all modules, not only of the tests that are of the form foo-tests where
23836         foo is a module.
23837
23838 2010-05-02  Bruno Haible  <bruno@clisp.org>
23839
23840         wctob: Work around nasty Cygwin 1.7.2 bug.
23841         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23842         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23843
23844 2010-05-01  Bruno Haible  <bruno@clisp.org>
23845
23846         fpurge: Sharper test.
23847         * tests/test-fpurge.c (main): Add one more ftell check.
23848         * modules/fpurge-tests (Depends-on): Add ftell.
23849         Suggested by Eric Blake.
23850
23851 2010-05-01  Bruno Haible  <bruno@clisp.org>
23852
23853         ftello: Another test.
23854         * tests/test-ftello3.c: New file.
23855         * modules/ftello-tests (Files): Add it.
23856         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23857         MOSTLYCLEANFILES.
23858
23859         ftell: Another test.
23860         * tests/test-ftell3.c: New file.
23861         * modules/ftell-tests (Files): Add it.
23862         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23863         MOSTLYCLEANFILES.
23864
23865 2010-05-01  Bruno Haible  <bruno@clisp.org>
23866
23867         ftell, ftello: Work around Solaris bug.
23868         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23869         * lib/ftello.c: Include stdio-impl.h.
23870         (ftello): On Solaris, when _IOWRT is set, compute the result without
23871         looking at _IOREAD.
23872         * modules/ftello (Files): Add lib/stdio-impl.h.
23873         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23874         * doc/posix-functions/ftello.texi: Likewise.
23875         Reported by Eric Blake.
23876
23877 2010-05-01  Bruno Haible  <bruno@clisp.org>
23878
23879         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23880         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23881         the _IOWRT flag is also set.
23882
23883 2010-05-01  Bruno Haible  <bruno@clisp.org>
23884
23885         Fix doc about a HP-UX stdio bug.
23886         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23887         * doc/posix-functions/ftello.texi: Likewise.
23888
23889 2010-05-01  Bruno Haible  <bruno@clisp.org>
23890
23891         lseek test: Fix failure on Solaris.
23892         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23893         output.
23894
23895 2010-04-30  Jim Meyering  <meyering@redhat.com>
23896
23897         bootstrap: don't ignore failure to generate po*/Makevars
23898         * build-aux/bootstrap (with_gettext): Don't ignore failure
23899         to create po/Makevars or runtime-po/Makevars.
23900
23901 2010-04-29  Eric Blake  <eblake@redhat.com>
23902
23903         headers: relax license to LGPLv2+
23904         * modules/fcntl-h (License): Relax license.
23905         * modules/getopt-posix (License): Likewise.
23906         * modules/locale (License): Likewise.
23907         * modules/math (License): Likewise.
23908         * modules/pty (License): Likewise.
23909         * modules/sched (License): Likewise.
23910         * modules/search (License): Likewise.
23911         * modules/spawn (License): Likewise.
23912         * modules/stdarg (License): Likewise.
23913         * modules/sysexits (License): Likewise.
23914
23915 2010-04-29  Jim Meyering  <meyering@redhat.com>
23916
23917         inttypes: relax license to LGPLv2+
23918         * modules/inttypes (License): Relax license.
23919
23920 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23921
23922         * top/maint.mk (indent): Run twice to produce idempotent results.
23923
23924 2010-04-28  Bruno Haible  <bruno@clisp.org>
23925
23926         getdate: Generate getdate.c in the source directory.
23927         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23928         MOSTLYCLEANFILES.
23929         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23930
23931 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23932
23933         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23934         is not declared as a const *; avoid warnings in that case.
23935
23936 2010-04-28  Eric Blake  <eblake@redhat.com>
23937
23938         canonicalize-lgpl: avoid compiler warning
23939         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23940         declaration' / 'extraneous semicolon' warning with some compilers.
23941         Reported by Andreas Gruenbacher.
23942
23943 2010-04-28  Jim Meyering  <meyering@redhat.com>
23944
23945         init.sh: ensure a more reliable exit status when exiting via trap
23946         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23947         Inspired by patches from Dmitry V. Levin.
23948         Also trap on signal 3 (SIGQUIT).
23949
23950 2010-04-27  Bruno Haible  <bruno@clisp.org>
23951
23952         Update doc about utimes().
23953         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23954         'utimens' module.
23955         Reported by Andreas Gruenbacher <agruen@suse.de>.
23956
23957 2010-04-27  Eric Blake  <eblake@redhat.com>
23958
23959         full-read, full-write: relax license
23960         * modules/full-read (License): Drop to LGPLv2+.
23961         * modules/full-write (License): Likewise.
23962         * modules/safe-read (License): Likewise.
23963         * modules/safe-write (License): Likewise.
23964
23965         pthread: mention library for linking
23966         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23967
23968 2010-04-27  Jim Meyering  <meyering@redhat.com>
23969
23970         maint.mk: fix a bug introduced in last change
23971         * top/maint.mk (gl_assured_headers_): Now that all names are on
23972         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23973         is not anchored to end of word, it should be adequate.
23974
23975         maint.mk: avoid side-effect in latest syntax-check
23976         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23977         to run commands via $(shell...), and hence to incur cost only when
23978         the new rule is actually run.
23979
23980         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23981         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23982         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23983         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23984         (gl_assured_headers_, az_, AZ_): Define.
23985         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23986
23987 2010-04-26  Jim Meyering  <jim@meyering.net>
23988             Bruno Haible  <bruno@clisp.org>
23989
23990         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23991         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23992         Prompted by an exchange with Gilles Espinasse.
23993
23994 2010-04-26  Jim Meyering  <meyering@redhat.com>
23995
23996         git-version-gen: aesthetic tweak
23997         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23998         so that the command remains on a single line.
23999
24000 2010-04-26  Eric Blake  <eblake@redhat.com>
24001
24002         git-version-gen: allow use on EBCDIC hosts
24003         * build-aux/git-version-gen (dirty): Use literal rather than tying
24004         ourselves to ascii.
24005         Reported by Steve Goetze.
24006
24007 2010-04-25  Bruno Haible  <bruno@clisp.org>
24008
24009         netdb: Add support for GNULIB_POSIXCHECK.
24010         * lib/netdb.in.h: Include warn-on-use.h.
24011         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24012         functions are used when GNULIB_POSIXCHECK is defined and the
24013         getaddrinfo module is not in use.
24014         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24015         freeaddrinfo, gai_strerror, getnameinfo are declared.
24016         * modules/netdb (Depends-on): Add warn-on-use.
24017         (Makefile.am): Include warn-on-use.h in netdb.h.
24018
24019 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24020
24021         build: avoid "make check" failure without .git/ directory
24022         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24023         there is no .git/ directory.
24024
24025 2010-04-25  Bruno Haible  <bruno@clisp.org>
24026
24027         ptsname: Fix misuse of ttyname_r.
24028         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24029         of errno.
24030
24031 2010-04-25  Bruno Haible  <bruno@clisp.org>
24032
24033         ttyname_r: Make it work on Solaris 10.
24034         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24035         if the system function has the POSIX declaration. Test whether the
24036         function fails if the buffer is less than 128 bytes large.
24037         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24038         system's ttyname_r function. Provide a reasonably large buffer.
24039         * modules/ttyname_r (Depends-on): Add extensions.
24040         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24041
24042 2010-04-25  Bruno Haible  <bruno@clisp.org>
24043
24044         Use the 'extensions' module for some more functions on Solaris.
24045         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24046         module.
24047         * doc/posix-functions/ctime_r.texi: Likewise.
24048         * doc/posix-functions/getgrgid_r.texi: Likewise.
24049         * doc/posix-functions/getgrnam_r.texi: Likewise.
24050         * doc/posix-functions/getpwnam_r.texi: Likewise.
24051         * doc/posix-functions/getpwuid_r.texi: Likewise.
24052         * doc/posix-functions/readdir_r.texi: Likewise.
24053         * doc/posix-functions/sigwait.texi: Likewise.
24054         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24055         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24056
24057 2010-04-25  Bruno Haible  <bruno@clisp.org>
24058
24059         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24060         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24061         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24062         * lib/ttyname_r.c: Include <limits.h>.
24063         (ttyname_r): Define using the system's ttyname_r function, if it exists
24064         and not on Solaris.
24065         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24066         set.
24067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24068         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24069         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24070         Reported by Simon Josefsson.
24071
24072 2010-04-25  Bruno Haible  <bruno@clisp.org>
24073
24074         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24075         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24076         * doc/posix-functions/ctime_r.texi: Likewise.
24077         * doc/posix-functions/getgrgid_r.texi: Likewise.
24078         * doc/posix-functions/getgrnam_r.texi: Likewise.
24079         * doc/posix-functions/getlogin_r.texi: Likewise.
24080         * doc/posix-functions/getpwnam_r.texi: Likewise.
24081         * doc/posix-functions/getpwuid_r.texi: Likewise.
24082         * doc/posix-functions/readdir_r.texi: Likewise.
24083         * doc/posix-functions/sigwait.texi: Likewise.
24084         * doc/posix-functions/ttyname_r.texi: Likewise.
24085         Reported by Simon Josefsson.
24086
24087 2010-04-25  Bruno Haible  <bruno@clisp.org>
24088
24089         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24090         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24091         also to --create-testdir.
24092         (func_acceptable): Don't consider the status of *-tests modules here.
24093         (func_modules_transitive_closure): Consider it here, before including a
24094         test module.
24095         (func_import, func_create_testdir): Set inc_all_direct_tests,
24096         inc_all_indirect_tests.
24097         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24098         --create-testdir and --create-megatestdir.
24099
24100 2010-04-25  Bruno Haible  <bruno@clisp.org>
24101
24102         gnulib-tool: Add --without-*-tests options.
24103         * gnulib-tool (func_usage): Document the --without-*-tests options.
24104         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24105         excl_unportable_tests): New variables.
24106         Fail if they are specified with --import or --update.
24107         (func_acceptable): Respect the excl_*_tests variables.
24108         (func_import): Set the excl_*_tests variables to empty.
24109
24110 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24111             Bruno Haible  <bruno@clisp.org>
24112
24113         Work around a MacOS X 10.4 bug with openpty.
24114         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24115         * tests/test-openpty.c (main): Close the master side explicitly.
24116
24117 2010-04-25  Bruno Haible  <bruno@clisp.org>
24118
24119         strnlen: Fix a C++ test error on MacOS X and Solaris.
24120         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24121         the function is not declared.
24122         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24123         Simon Josefsson.
24124
24125 2010-04-24  Bruno Haible  <bruno@clisp.org>
24126
24127         Avoid a gcc warning.
24128         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24129         of correct type for %08lx directive.
24130         Reported by Eric Blake.
24131
24132 2010-04-24  Bruno Haible  <bruno@clisp.org>
24133
24134         vasnprintf: Correct errno value in case of out-of-memory.
24135         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24136         or sprintf. Use the errno value from SNPRINTF or sprintf.
24137         Reported by Ian Beckwith <ianb@erislabs.net>.
24138
24139 2010-04-24  Bruno Haible  <bruno@clisp.org>
24140
24141         ansi-c++-opt: Find correct compiler when cross-compiling.
24142         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24143         AC_CHECK_PROGS.
24144         Reported by Simon Josefsson.
24145
24146 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24147
24148         vc-list-files: Add support for subversion
24149         * build-aux/vc-list-files: Use "svn list" to generate the list of
24150         files controlled by subversion.
24151
24152 2010-04-23  Jim Meyering  <meyering@redhat.com>
24153
24154         vc-list-files tests: convert to use init.sh
24155         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24156         path_prepend_.
24157         Use Exit, not exit.
24158         Use skip_ rather than open coding it.
24159         Remove trap set-up and compare definitions.
24160         * tests/test-vc-list-files-git.sh: Likewise.
24161         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24162
24163 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24164
24165         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24166         backup files.
24167
24168 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24169
24170         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24171
24172 2010-04-20  Eric Blake  <eblake@redhat.com>
24173
24174         tests: be robust to ignored SIGPIPE
24175         * tests/test-select-in.sh: Consume all output.
24176         * tests/test-lseek.sh: Check correct exit status, while avoiding
24177         EPIPE.
24178
24179 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24180             Bruno Haible  <bruno@clisp.org>
24181
24182         visibility: Don't use -fvisibility if it leads to a warning.
24183         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24184         yes, don't pretend that visibility works if it leads to a warning.
24185         Reported by Mike Gran <spk121@yahoo.com>.
24186
24187 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24188
24189         * build-aux/bootstrap: Use "git -h" for testing for supported options
24190         instead of "git --help".  The short-form option only shows a summary,
24191         and doesn't layout the full man page.  Grep for the full option name
24192         in the summary, too.
24193
24194 2010-04-19  Bruno Haible  <bruno@clisp.org>
24195
24196         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24197         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24198         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24199         mention of RELOCATABLE_STRIP.
24200         Reported by Sylvain Beucler <beuc@beuc.net>.
24201
24202 2010-04-19  Bruno Haible  <bruno@clisp.org>
24203
24204         * lib/diffseq.h: Fix typo in comment.
24205         Reported by Eric Blake.
24206
24207 2010-04-19  Bruno Haible  <bruno@clisp.org>
24208
24209         ioctl: Move autoconf macro to a .m4 file.
24210         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24211         * modules/ioctl (Files): Add it.
24212         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24213         Reported by Ian Beckwith <ianb@erislabs.net>.
24214
24215 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24216             Bruno Haible  <bruno@clisp.org>
24217
24218         diffseq: Accommodate use-case with abstract arrays.
24219         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24220         is not defined.
24221         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24222         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24223
24224 2010-04-18  Bruno Haible  <bruno@clisp.org>
24225
24226         * doc/posix-headers/stdbool.texi: More precise wording.
24227
24228 2010-04-17  Jim Meyering  <meyering@redhat.com>
24229
24230         maint.mk: use gnu-style indentation in an embedded perl script
24231         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24232         Rename variable: s/two/last_two_bytes/
24233
24234 2010-04-16  Eric Blake  <eblake@redhat.com>
24235
24236         test-stdbool: skip test that fails with Solaris CC
24237         * tests/test-stdbool.c (f): Skip test that causes compilation
24238         error under buggy C++ compiler.
24239         * lib/stdbool.in.h: Document the limitation.
24240         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24241
24242         setenv: allow compilation with C++
24243         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24244         register keyword.
24245
24246         stdint: allow test to pass with C++
24247         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24248
24249         getopt: allow compilation with C++
24250         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24251         struct.
24252         * lib/getopt.c (_getopt_internal_r): Use correct type.
24253         Reported by Dagobert Michelson, via Joel E. Denny.
24254
24255 2010-04-16  Bruno Haible  <bruno@clisp.org>
24256
24257         Override netdb.h always.
24258         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24259         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24260         Reported by Ludovic Courtès <ludo@gnu.org>.
24261
24262 2010-04-15  Bruno Haible  <bruno@clisp.org>
24263
24264         openpty: Fix mistake from 2010-03-21.
24265         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24266         Reported by Simon Josefsson.
24267
24268 2010-04-15  Eric Blake  <eblake@redhat.com>
24269
24270         test-forkpty: fix expected signature
24271         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24272         Reported by Simon Josefsson.
24273
24274 2010-04-15  Jim Meyering  <meyering@redhat.com>
24275
24276         maint.mk: texinfo_suffix_re_: correct the default regexp
24277         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24278
24279         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24280         make it configurable via texinfo_suffix_re_.
24281
24282 2010-04-14  Eric Blake  <eblake@redhat.com>
24283
24284         strtok_r: relax license to LGPLv2+
24285         * modules/strtok_r (License): Relax license.
24286         Reported by Matthias Bolte.
24287
24288 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24289
24290         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24291         version 1.4.4 by default instead of requiring the libgcrypt
24292         version used during build.  This makes it possible to use the
24293         application with older but still binary compatible libgcrypt
24294         versions.
24295
24296 2010-04-13  Eric Blake  <eblake@redhat.com>
24297
24298         getopt-gnu: match recent glibc fixes and posix ruling
24299         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24300         '+' handling, when requesting extensions.
24301         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24302         'W;' handling.
24303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24304         * doc/posix-functions/getopt.texi (getopt): Document this.
24305         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24306         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24307         Likewise.
24308
24309         getopt: merge bug fixes from glibc
24310         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24311         diagnostics.  Honor '+:' correctly.  Reject ';'.
24312
24313         getopt-posix: detect MacOS bug
24314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24315         optind when missing a required argument.
24316         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24317         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24318         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24319         Likewise.
24320
24321         getopt-posix: avoid spurious failure on Solaris
24322         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24323         an indicator that setting optind=1 is sufficient for reset.
24324
24325         getopt-posix: avoid spurious failure on FreeBSD
24326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24327         in POSIX mode, since the m4 test uses it.
24328
24329         gnulib-tool: silence warning on BSD sh
24330         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24331
24332 2010-04-13  Jim Meyering  <meyering@redhat.com>
24333
24334         doc: users.txt: GNU patch now uses gnulib
24335         * users.txt: Add patch.
24336
24337 2010-04-12  Jim Meyering  <meyering@redhat.com>
24338
24339         maint.mk: generate more concise timing data for syntax-check rules
24340         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24341         " done" from each line that reports a syntax-check test duration.
24342
24343 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24344
24345         git-version-gen: use "git update-index..." rather than "git status"
24346         * build-aux/git-version-gen: Use git update-index --refresh, not
24347         "git status".  With some versions of git, "git status" would fail
24348         to update the index and result in an unwarranted "-dirty" suffix.
24349
24350 2010-04-11  Jim Meyering  <meyering@redhat.com>
24351
24352         openat: correct formatting (no semantic change)
24353         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24354         Suggested by Bruno Haible.
24355
24356 2010-04-11  Bruno Haible  <bruno@clisp.org>
24357
24358         Stricter declaration checking in testdirs.
24359         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24360         If for_tests is true, augment AM_CPPFLAGS to define
24361         GNULIB_STRICT_CHECKING.
24362         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24363         GNULIB_STRICT_CHECKING is defined, verify that the function is
24364         declared.
24365
24366 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24367             Bruno Haible  <bruno@clisp.org>
24368
24369         libunistring: Improve configure output.
24370         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24371         Don't say "consider installing GNU libunistring" when checking again
24372         with libiconv.
24373
24374 2010-04-11  Bruno Haible  <bruno@clisp.org>
24375
24376         libunistring: Correct value of $LTLIBUNISTRING.
24377         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24378         correct the value of $LTLIBUNISTRING.
24379
24380 2010-04-11  Bruno Haible  <bruno@clisp.org>
24381
24382         havelib: Add static libraries to LIBS in the right order.
24383         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24384         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24385
24386 2010-04-11  Bruno Haible  <bruno@clisp.org>
24387
24388         libunistring: Detect libunistring also when it depends on libiconv.
24389         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24390         the second AC_LIB_HAVE_LINKFLAGS invocation.
24391
24392 2010-04-11  James Youngman  <jay@gnu.org>
24393
24394         close-stream: declare local scalars to be "const"
24395         * lib/close-stream.c (close_stream): Make boolean variables const
24396         to document the fact that we set but do not change them.
24397
24398 2010-04-11  Bruno Haible  <bruno@clisp.org>
24399
24400         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24401
24402 2010-04-11  Jim Meyering  <meyering@redhat.com>
24403
24404         maint.mk: don't include dist-check.mk
24405         * top/maint.mk: Remove bogus include directive.
24406
24407         maint.mk: improve empty-line-at-EOF check
24408         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24409         solution, rather than tail+Perl-based one.  The latter would read
24410         a few kilobytes from the end of each file, and did not handle empty
24411         files properly.
24412
24413         maint.mk: print the elapsed time for each syntax-check rule
24414         * top/maint.mk (sc_m_rules_): Save start time in a file.
24415         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24416         (local-check): Interpose the .z rules
24417
24418 2010-04-11  Jim Meyering  <meyering@redhat.com>
24419
24420         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24421         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24422         empty file with one that ends in an empty line.
24423
24424 2010-04-10  Bruno Haible  <bruno@clisp.org>
24425
24426         mkdir: Make it work on mingw64.
24427         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24428         * lib/mkdir.c: Update comment.
24429         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24430
24431 2010-04-10  Bruno Haible  <bruno@clisp.org>
24432
24433         Don't override improved macro from newer autoconf.
24434         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24435         autoconf >= 2.62.
24436         Reported by Joel E. Denny <jdenny@clemson.edu>.
24437
24438 2010-04-10  Jim Meyering  <meyering@redhat.com>
24439
24440         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24441         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24442
24443         maint.mk: correct a diagnostic
24444         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24445         in diagnostic; now use $prohibit.
24446
24447 2010-04-10  Bruno Haible  <address@hidden>
24448
24449         fchownat: Fix a C++ test error on Solaris 8.
24450         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24451         the function does not exist.
24452
24453 2010-04-10  Bruno Haible  <bruno@clisp.org>
24454
24455         vasnprintf: Add more tests.
24456         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24457         (test_function): Test converting an invalid wide string.
24458
24459         vasnprintf: Correct handling of unconvertible wide string arguments.
24460         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24461         VASNPRINTF.
24462         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24463         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24464         smaller than the expected maximum need for the directive. Set errno to
24465         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24466         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24467         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24468         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24469         * modules/vasnprintf (Files): Add m4/printf.m4.
24470         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24471
24472 2010-04-10  Bruno Haible  <bruno@clisp.org>
24473
24474         vasnprintf: Fix crash in %ls directive.
24475         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24476         string is passed as argument to %ls, with no precision and no width.
24477         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24478
24479 2010-04-10  Bruno Haible  <bruno@clisp.org>
24480
24481         vasnprintf: Fix multiple test failures on mingw.
24482         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24483         _snprintf, or snwprintf, not _snwprintf.
24484
24485 2010-04-10  Bruno Haible  <bruno@clisp.org>
24486
24487         write: Fix a C++ test error on mingw.
24488         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24489
24490 2010-04-10  Bruno Haible  <bruno@clisp.org>
24491
24492         vasnprintf test: Reduce code duplication.
24493         * tests/test-vasnprintf.c (test_function): New function, extracted from
24494         test_vasnprintf.
24495         (test_vasnprintf, test_asnprintf): Invoke it.
24496
24497 2010-04-10  Bruno Haible  <bruno@clisp.org>
24498
24499         strnlen: Fix warning in C++ mode on MacOS X.
24500         * lib/string.in.h (strnlen): Use the modern idiom.
24501         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24502         defining strnlen as a macro already in <config.h>.
24503         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24504         REPLACE_STRNLEN.
24505         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24506         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24507
24508 2010-04-08  James Youngman  <jay@gnu.org>
24509
24510         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24511         the example.
24512
24513 2010-04-09  Jim Meyering  <meyering@redhat.com>
24514
24515         maint.mk: print better diagnostic when there is no $(_hv_file)
24516         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24517         announce that when $(_hv_file) (aka help-version) does not exist.
24518
24519         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24520         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24521         not try to interpret its random input bytes.  Jarno Rajahalme reported
24522         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24523         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24524         (mktempd_): Likewise, just in case.
24525
24526         ftruncate: add two years to projected module removal date: 2012
24527         * m4/ftruncate.m4: Adjust comments.
24528
24529         ftruncate: mark module as obsolete; even MinGW provides it, now
24530         * modules/ftruncate (Status): Obsolete.
24531         (Notice): Say that.
24532         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24533         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24534
24535 2010-04-08  Bruno Haible  <bruno@clisp.org>
24536
24537         Fix side effects from tests-related modules.
24538         * modules/dprintf-posix (Comment): New section.
24539         * modules/fprintf-posix (Comment): Likewise.
24540         * modules/obstack-printf-posix (Comment): Likewise.
24541         * modules/printf-posix (Comment): Likewise.
24542         * modules/snprintf-posix (Comment): Likewise.
24543         * modules/sprintf-posix (Comment): Likewise.
24544         * modules/vasnprintf-posix (Comment): Likewise.
24545         * modules/vasprintf-posix (Comment): Likewise.
24546         * modules/vdprintf-posix (Comment): Likewise.
24547         * modules/vfprintf-posix (Comment): Likewise.
24548         * modules/vprintf-posix (Comment): Likewise.
24549         * modules/vsnprintf-posix (Comment): Likewise.
24550         * modules/vsprintf-posix (Comment): Likewise.
24551         * modules/xprintf-posix (Comment): Likewise.
24552         * modules/xvasprintf-posix (Comment): Likewise.
24553         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24554         * modules/floorf-tests (Depends-on): Likewise.
24555         * modules/round-tests (Depends-on): Likewise.
24556         * modules/roundf-tests (Depends-on): Likewise.
24557         * modules/trunc-tests (Depends-on): Likewise.
24558         * modules/truncf-tests (Depends-on): Likewise.
24559         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24560         'fprintf-posix' module is not present.
24561         * tests/test-floorf2.c (check): Likewise.
24562         * tests/test-trunc2.c (check): Likewise.
24563         * tests/test-truncf2.c (check): Likewise.
24564         * tests/test-round2.c (equal): Likewise.
24565         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24566
24567 2010-04-07  Karl Berry  <karl@gnu.org>
24568
24569         * config/srclist.txt,
24570         * config/srclistvars.sh,
24571         * config/srclist-update: doc fixes.
24572
24573 2010-04-07  Jim Meyering  <meyering@redhat.com>
24574
24575         maint.mk: add a PATH crosschecking syntax-check rule
24576         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24577         Useful if you use a test like the one in help-version (coreutils,
24578         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24579         printed by prog --version.
24580
24581 2010-04-06  Bruno Haible  <bruno@clisp.org>
24582
24583         Fix link error on mingw.
24584         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24585         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24586
24587 2010-04-06  Bruno Haible  <bruno@clisp.org>
24588
24589         Assume rmdir exists.
24590         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24591
24592 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24593
24594         doc: update users.txt
24595         * users.txt: Add gcal.
24596
24597 2010-04-06  Jim Meyering  <meyering@redhat.com>
24598
24599         init.sh: simply unset TMPDIR rather than risking env -i
24600         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24601         although it probably works fine on all Unix-based systems, some
24602         systems (Cygwin?) cannot tolerate a totally cleared environment.
24603         Suggestion from Eric Blake.
24604
24605 2010-04-06  Jim Meyering  <meyering@redhat.com>
24606
24607         init.sh: portability fix: use env's POSIX-specified -i option not -u
24608         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24609         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24610
24611 2010-04-05  Bruno Haible  <bruno@clisp.org>
24612
24613         btowc: Work around Cygwin 1.7.2 bug.
24614         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24615         does not map NUL to 0.
24616         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24617
24618 2010-04-05  Bruno Haible  <bruno@clisp.org>
24619
24620         Make the multithread modules work on Cygwin 1.7.2.
24621         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24622         imported symbols can be declared weak, so that it returns "no" on
24623         Cygwin 1.7.2.
24624
24625 2010-04-05  Bruno Haible  <bruno@clisp.org>
24626
24627         Use the module 'strncat'.
24628         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24629
24630         Tests for module 'strncat'.
24631         * modules/strncat-tests: New file.
24632         * tests/test-strncat.c: New file.
24633
24634         New module 'strncat'.
24635         * lib/string.in.h (strncat): New declaration.
24636         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24637         * m4/strncat.m4: New file, based on m4/memchr.m4.
24638         * modules/strncat: New file.
24639         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24640         is declared.
24641         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24642         REPLACE_STRNCAT.
24643         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24644         REPLACE_STRNCAT.
24645         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24646         module.
24647         * tests/test-string-c++.cc: Check signature of strncat.
24648
24649 2010-04-05  Jim Meyering  <meyering@redhat.com>
24650
24651         xstrtoumax-tests: convert to use init.sh
24652         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24653         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24654         Use Exit, not exit.
24655         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24656
24657         xstrtoimax-tests: convert to use init.sh
24658         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24659         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24660         Use Exit, not exit.
24661         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24662
24663 2010-04-05  Bruno Haible  <bruno@clisp.org>
24664
24665         sys_socket: Avoid #define replacements in C++ mode.
24666         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24667         warning to the function if possible, rather than #defining the symbol
24668         to a dysfunctional alias.
24669
24670 2010-04-05  Bruno Haible  <bruno@clisp.org>
24671
24672         fseeko: Fix C++ test error on mingw.
24673         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24674         gl_FUNC_FSEEKO.
24675         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24676         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24677         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24678         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24679
24680 2010-04-05  Bruno Haible  <bruno@clisp.org>
24681
24682         duplocale: Improve test output.
24683         * tests/test-duplocale.c (main): Print reason for skipped test.
24684
24685 2010-04-05  Bruno Haible  <bruno@clisp.org>
24686
24687         Assume rmdir exists.
24688         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24689         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24690
24691 2010-04-05  Bruno Haible  <bruno@clisp.org>
24692
24693         Fix link error on Solaris 8 with cc.
24694         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24695
24696 2010-04-05  Bruno Haible  <bruno@clisp.org>
24697
24698         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24699         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24700
24701 2010-04-05  Bruno Haible  <bruno@clisp.org>
24702
24703         vasprintf: Update documentation.
24704         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24705
24706 2010-04-05  Bruno Haible  <bruno@clisp.org>
24707
24708         ptsname: Improve test.
24709         * tests/test-ptsname.c (main): Also try the various master names of BSD
24710         systems.
24711
24712 2010-04-05  Bruno Haible  <bruno@clisp.org>
24713
24714         memchr: Avoid a possible C++ test error.
24715         * lib/string.in.h (memchr): Provide declaration if function is missing.
24716         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24717         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24719         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24720
24721 2010-04-05  Bruno Haible  <bruno@clisp.org>
24722
24723         strtok_r: Improve idiom.
24724         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24725         AC_LIBOBJ is used.
24726
24727 2010-04-05  Bruno Haible  <bruno@clisp.org>
24728
24729         strdup: Improve idiom.
24730         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24731         AC_LIBOBJ is used.
24732         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24733         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24734         when AC_LIBOBJ is used.
24735
24736 2010-04-05  Bruno Haible  <bruno@clisp.org>
24737
24738         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24739         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24740         don't set REPLACE_MBSINIT to 1.
24741         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24742         don't set REPLACE_MBRTOWC to 1.
24743         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24744         exist, don't set REPLACE_MBSRTOWCS to 1.
24745         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24746         exist, don't set REPLACE_MBSNRTOWCS to 1.
24747         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24748         don't set REPLACE_WCRTOMB to 1.
24749         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24750         exist, don't set REPLACE_WCSRTOMBS to 1.
24751         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24752         exist, don't set REPLACE_WCSNRTOMBS to 1.
24753
24754 2010-04-05  Bruno Haible  <bruno@clisp.org>
24755
24756         ldexpl: Improve idiom.
24757         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24758         make sure to set HAVE_DECL_LDEXPL to 0.
24759
24760 2010-04-05  Jim Meyering  <meyering@redhat.com>
24761
24762         xstrtol-tests: convert to use init.sh
24763         * modules/xstrtol-tests (Files): Add tests/init.sh.
24764         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24765         Use Exit, not exit.
24766         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24767
24768         atexit-tests: convert to use init.sh
24769         * modules/atexit-tests (Files): Add tests/init.sh.
24770         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24771         Use Exit, not exit.
24772         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24773
24774         init.sh: fix typo
24775         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24776
24777         init.sh: make it easier for a test script to write to the tty, ...
24778         when using automake's parallel-tests mode.
24779         * tests/init.sh (stderr_fileno_): Define overridable variable.
24780         (warn_): New function, to use it.
24781         (fail_, skip_, framework_failure_): Use warn_.
24782
24783 2010-04-04  Bruno Haible  <bruno@clisp.org>
24784
24785         btowc: Avoid warning.
24786         * lib/btowc.c: Include <stdlib.h>.
24787         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24788
24789 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24790             Bruno Haible  <bruno@clisp.org>
24791
24792         wchar: Port to NetBSD 1.5.
24793         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24794         * lib/wctype.in.h (WEOF): Likewise.
24795
24796 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24797             Bruno Haible  <bruno@clisp.org>
24798
24799         Port extended stdio to NetBSD 1.5.
24800         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24801         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24802         older.
24803
24804 2010-04-04  Bruno Haible  <bruno@clisp.org>
24805
24806         string: Remove unused substitution.
24807         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24808         HAVE_DECL_STRERROR.
24809         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24810
24811 2010-04-04  Bruno Haible  <bruno@clisp.org>
24812
24813         strtod: Avoid a possible C++ test error.
24814         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24815         set REPLACE_STRTOD.
24816
24817 2010-04-04  Bruno Haible  <bruno@clisp.org>
24818
24819         strerror: Update documentation.
24820         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24821
24822 2010-04-04  Bruno Haible  <bruno@clisp.org>
24823
24824         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24825         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24826         _GL_CXXALIAS_SYS_CAST.
24827
24828 2010-04-04  Bruno Haible  <bruno@clisp.org>
24829
24830         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24831         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24832         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24833         REPLACE_FREXPL to 1.
24834         * doc/posix-functions/frexpl.texi: Update documentation.
24835
24836 2010-04-04  Bruno Haible  <bruno@clisp.org>
24837
24838         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24839         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24840
24841 2010-04-04  Bruno Haible  <bruno@clisp.org>
24842
24843         Implement nanosleep for native Windows.
24844         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24845
24846 2010-04-04  Bruno Haible  <bruno@clisp.org>
24847
24848         math: Fix some C++ test errors on Solaris 8.
24849         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24850
24851 2010-04-04  Bruno Haible  <bruno@clisp.org>
24852
24853         math: Fix some C++ test errors on Cygwin.
24854         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24855         truncl): Provide declaration if the system does not have it.
24856         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24857         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24858         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24859         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24860         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24861         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24862         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24863         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24864         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24865         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24866         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24867         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24868         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24869         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24870         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24871         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24873         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24874         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24875         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24876         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24877         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24878
24879 2010-04-04  Bruno Haible  <bruno@clisp.org>
24880
24881         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24882         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24883         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24884         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24885         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24886         * m4/isinf.m4 (gl_ISINF): Likewise.
24887         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24888
24889 2010-04-04  Bruno Haible  <bruno@clisp.org>
24890
24891         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24892         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24893
24894 2010-04-04  Bruno Haible  <bruno@clisp.org>
24895
24896         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24897         * modules/tmpfile (configure.ac): Update.
24898
24899         tmpfile: Fix C++ test error on mingw.
24900         * lib/stdio.in.h (tmpfile): New declaration.
24901         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24902         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24903         * modules/tmpfile (Depends-on): Add stdio.
24904         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24905         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24906         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24907         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24908         REPLACE_TMPFILE.
24909         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24910
24911 2010-04-04  Bruno Haible  <bruno@clisp.org>
24912
24913         ioctl: Fix C++ test error on mingw.
24914         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24915         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24916         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24917
24918 2010-04-03  Bruno Haible  <bruno@clisp.org>
24919
24920         wcwidth: Fix C++ test error on mingw.
24921         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24923         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24924
24925 2010-04-03  Bruno Haible  <bruno@clisp.org>
24926
24927         nanosleep: Fix C++ test error on mingw.
24928         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24929         * lib/time.in.h (nanosleep): Use modern idiom.
24930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24931         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24932         REPLACE_NANOSLEEP to 1.
24933         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24934         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24935
24936 2010-04-03  Bruno Haible  <bruno@clisp.org>
24937
24938         strptime: Fix C++ test error on mingw.
24939         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24940         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24941         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24942         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24943         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24944         not REPLACE_STRPTIME.
24945         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24946         REPLACE_STRPTIME.
24947
24948 2010-04-03  Bruno Haible  <bruno@clisp.org>
24949
24950         timegm: Fix C++ test error on mingw.
24951         * lib/time.in.h (timegm): Use modern idiom.
24952         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24953         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24954         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24955         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24956
24957 2010-04-03  Bruno Haible  <bruno@clisp.org>
24958
24959         timegm: Assume declaration if function exists.
24960         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24961         if it exists. Don't clobber ac_cv_func_timegm.
24962
24963 2010-04-03  Bruno Haible  <bruno@clisp.org>
24964
24965         time_r: Fix C++ test error on mingw.
24966         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24967         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24968         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24969         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24970         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24971
24972 2010-04-03  Bruno Haible  <bruno@clisp.org>
24973
24974         time_r: Minor updates.
24975         * modules/time_r (Description): Mention the provided functions.
24976         * lib/time_r.c: Don't include <string.h>.
24977         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24978         * doc/posix-functions/localtime_r.texi: Likewise.
24979
24980 2010-04-03  Bruno Haible  <bruno@clisp.org>
24981
24982         time: Fix regression introduced on 2010-03-08.
24983         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24984         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24985
24986 2010-04-03  Jim Meyering  <meyering@redhat.com>
24987
24988         maint.mk: don't silently disable project-specific syntax-check rules
24989         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24990         that they need to convert their project-specific syntax-check rules
24991         to use the new _sc_search_regexp.
24992
24993 2010-04-03  Bruno Haible  <bruno@clisp.org>
24994
24995         fchdir: Fix regression introduced on 2010-03-08.
24996         * lib/unistd.in.h (fchdir): Fix declaration.
24997         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24999         REPLACE_FCHDIR.
25000         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25001         REPLACE_FCHDIR.
25002
25003 2010-04-03  Bruno Haible  <bruno@clisp.org>
25004
25005         getpagesize: Fix C++ test error on mingw.
25006         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25007         system does not declare the function.
25008         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25009         declared.
25010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25011         HAVE_DECL_GETPAGESIZE.
25012         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25013
25014 2010-04-03  Bruno Haible  <bruno@clisp.org>
25015
25016         stdio: Make C++ tests work on mingw.
25017         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25018         does not declare the function.
25019
25020 2010-04-03  Bruno Haible  <bruno@clisp.org>
25021
25022         ftello: Fix C++ test error on mingw.
25023         * lib/stdio.in.h (ftello): Use modern idiom.
25024         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25025         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25026         is missing and that it needs to be replaced.
25027         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25029         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25030
25031 2010-04-03  Bruno Haible  <bruno@clisp.org>
25032
25033         fseeko: Fix C++ test error on mingw.
25034         * lib/stdio.in.h (fseeko): Use modern idiom.
25035         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25036         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25037         is missing and that it needs to be replaced.
25038         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25040         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25041
25042 2010-04-03  Bruno Haible  <bruno@clisp.org>
25043
25044         mkstemp: Fix C++ test error on mingw.
25045         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25046         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25047         function is missing and that it needs to be replaced.
25048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25049         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25050
25051 2010-04-03  Bruno Haible  <bruno@clisp.org>
25052
25053         stpncpy: Fix C++ test error on mingw.
25054         * lib/string.in.h (stpncpy): Use modern idiom.
25055         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25056         function is missing and that it needs to be replaced.
25057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25058         REPLACE_STPNCPY.
25059         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25060
25061 2010-04-03  Bruno Haible  <bruno@clisp.org>
25062
25063         sys_stat: Fix C++ test error on mingw.
25064         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25065         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25066
25067 2010-04-03  Bruno Haible  <bruno@clisp.org>
25068
25069         pty: Update doc.
25070         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25071
25072 2010-04-03  Bruno Haible  <bruno@clisp.org>
25073
25074         unistd: Fix C++ test error on mingw.
25075         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25076
25077 2010-04-03  Bruno Haible  <bruno@clisp.org>
25078
25079         Update doc regarding mingw.
25080         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25081         * doc/glibc-functions/login_tty.texi: Likewise.
25082         * doc/glibc-functions/forkpty.texi: Likewise.
25083
25084 2010-04-03  Bruno Haible  <bruno@clisp.org>
25085
25086         stdlib: Avoid compilation failure of c-strtold on mingw.
25087         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25088
25089 2010-04-03  Bruno Haible  <bruno@clisp.org>
25090
25091         locale: Make C++ tests work on Cygwin and mingw.
25092         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25093         cannot provide the function.
25094         Reported by Simon Josefsson.
25095
25096 2010-04-03  Bruno Haible  <bruno@clisp.org>
25097
25098         localename: Port to MacOS X 10.6.
25099         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25100         memory layout of the locales in MacOS X 10.6 as well.
25101         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25102
25103 2010-04-02  Bruno Haible  <bruno@clisp.org>
25104
25105         gnulib-tool: Ensure that long-running tests are executed last.
25106         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25107         running tests after the one for the other tests.
25108
25109 2010-04-02  Bruno Haible  <bruno@clisp.org>
25110
25111         gnulib-tool: Ensure the tests in the main directory are executed first.
25112         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25113         start with the current directory.
25114
25115 2010-04-02  Bruno Haible  <bruno@clisp.org>
25116
25117         Tests for module 'havelib', moved here from GNU gettext.
25118         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25119         modifications.
25120         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25121         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25122         with modifications.
25123         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25124         modifications.
25125         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25126         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25127         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25128         with modifications.
25129         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25130         with modifications.
25131         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25132         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25133         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25134         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25135         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25136         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25137         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25138         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25139         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25140         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25141         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25142         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25143         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25144         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25145         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25146         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25147         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25148         with modifications.
25149         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25150         with modifications.
25151         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25152         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25153         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25154         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25155         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25156         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25157         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25158         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25159         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25160         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25161         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25162         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25163         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25164         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25165         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25166         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25167         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25168         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25169         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25170         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25171         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25172         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25173         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25174         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25175         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25176         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25177         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25178         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25179         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25180         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25181         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25182         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25183         * tests/havelib/rpathx/rpathx.c: New file, from
25184         gettext/autoconf-lib-link.
25185         * tests/havelib/rpathx/Makefile.am: New file, from
25186         gettext/autoconf-lib-link.
25187         * tests/havelib/rpathx/configure.ac: New file, from
25188         gettext/autoconf-lib-link with modifications.
25189         * tests/havelib/rpathy/rpathy.c: New file, from
25190         gettext/autoconf-lib-link.
25191         * tests/havelib/rpathy/Makefile.am: New file, from
25192         gettext/autoconf-lib-link.
25193         * tests/havelib/rpathy/configure.ac: New file, from
25194         gettext/autoconf-lib-link with modifications.
25195         * tests/havelib/rpathz/rpathz.c: New file, from
25196         gettext/autoconf-lib-link.
25197         * tests/havelib/rpathz/Makefile.am: New file, from
25198         gettext/autoconf-lib-link.
25199         * tests/havelib/rpathz/configure.ac: New file, from
25200         gettext/autoconf-lib-link with modifications.
25201         * tests/havelib/rpathlx/usex.c: New file, from
25202         gettext/autoconf-lib-link.
25203         * tests/havelib/rpathlx/Makefile.am: New file, from
25204         gettext/autoconf-lib-link.
25205         * tests/havelib/rpathlx/configure.ac: New file, from
25206         gettext/autoconf-lib-link with modifications.
25207         * tests/havelib/rpathly/usey.c: New file, from
25208         gettext/autoconf-lib-link.
25209         * tests/havelib/rpathly/Makefile.am: New file, from
25210         gettext/autoconf-lib-link.
25211         * tests/havelib/rpathly/configure.ac: New file, from
25212         gettext/autoconf-lib-link with modifications.
25213         * tests/havelib/rpathlz/usez.c: New file, from
25214         gettext/autoconf-lib-link.
25215         * tests/havelib/rpathlz/Makefile.am: New file, from
25216         gettext/autoconf-lib-link.
25217         * tests/havelib/rpathlz/configure.ac: New file, from
25218         gettext/autoconf-lib-link with modifications.
25219         * tests/havelib/rpathlyx/usey.c: New file, from
25220         gettext/autoconf-lib-link.
25221         * tests/havelib/rpathlyx/Makefile.am: New file, from
25222         gettext/autoconf-lib-link.
25223         * tests/havelib/rpathlyx/configure.ac: New file, from
25224         gettext/autoconf-lib-link with modifications.
25225         * tests/havelib/rpathlzyx/usez.c: New file, from
25226         gettext/autoconf-lib-link.
25227         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25228         gettext/autoconf-lib-link.
25229         * tests/havelib/rpathlzyx/configure.ac: New file, from
25230         gettext/autoconf-lib-link with modifications.
25231         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25232         with modifications.
25233
25234 2010-04-02  Bruno Haible  <bruno@clisp.org>
25235
25236         gnulib-tool: Create distributed built sources also for the tests.
25237         * gnulib-tool (func_create_testdir): Also generate distributed built
25238         sources in the tests directory.
25239
25240 2010-04-02  Bruno Haible  <bruno@clisp.org>
25241
25242         gnulib-tool: Obey user's environment variables.
25243         * gnulib-tool (func_create_testdir): When creating built sources,
25244         respect the environment variables for autoconf, automake, etc. given by
25245         the user.
25246
25247 2010-04-02  Bruno Haible  <bruno@clisp.org>
25248
25249         gnulib-tool: Provide the value of --m4-base to modules.
25250         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25251         of gl_m4_base.
25252
25253 2010-04-02  Eric Blake  <eblake@redhat.com>
25254
25255         maint.mk: fix some fallout
25256         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25257         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25258
25259 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25260
25261         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25262         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25263         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25264         (sc_cast_of_x_alloc_return_value): Likewise.
25265         (sc_cast_of_alloca_return_value): Likewise.
25266         (sc_space_tab): Likewise.
25267         (sc_prohibit_atoi_atof): Likewise.
25268         (sc_prohibit_magic_number_exit): Likewise.
25269         (sc_error_exit_success): Likewise.
25270         (sc_file_system): Likewise.
25271         (sc_prohibit_have_config_h): Likewise.
25272         (sc_require_config_h): Likewise.
25273         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25274         (sc_obsolete_symbols): Likewise.
25275         (sc_changelog): Likewise.
25276         (sc_program_name): Likewise.
25277         (sc_the_the): Likewise.
25278         (sc_trailing_blank): Likewise.
25279         (sc_two_space_separator_in_usage): Likewise.
25280         (sc_useless_cpp_parens): Likewise.
25281         (sc_GPL_version): Likewise.
25282         (sc_GFDL_version): Likewise.
25283         (sc_texinfo_acronym): Likewise.
25284         (sc_prohibit_cvs_keyword): Likewise.
25285         (sc_prohibit_stat_st_blocks): Likewise.
25286         (sc_prohibit_S_IS_definition): Likewise.
25287         (sc_redundant_const): Likewise.
25288         (sc_makefile_TAB_only_indentation): Likewise.
25289         (sc_m4_quote_check): Likewise.
25290         (sc_makefile_path_separator_check): Likewise.
25291         (sc_copyright_check): Likewise.
25292         (sc_Wundef_boolean): Likewise.
25293         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25294
25295         maint.mk: match 0 or more whitespace-before-function-call '('
25296         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25297         that have zero or two-and-more spaces between the function name
25298         and the open parenthesis.
25299         (sc_error_message_warn_fatal): Likewise.
25300         (sc_error_message_uppercase): Likewise.
25301         (sc_error_message_period): Likewise.
25302
25303 2010-03-31  Eric Blake  <eblake@redhat.com>
25304
25305         maint.mk: check for [ as well as test
25306         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25307         Based on a libvirt report by Matthias Bolte.
25308
25309         gnumakefile: don't squelch _version output
25310         * top/GNUmakefile (_version): Create one-shot dependency rather
25311         than using $(shell) when version must be regenerated.
25312         (_autoreconf): Run verbosely, by default.
25313
25314         sys_time: avoid compiler warnings
25315         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25316         unconditional, fixing regression from 2010-03-29.
25317         Reported by Simon Josefsson.
25318
25319 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25320
25321         maint.mk: s/_header_without_use/_sc_header_without_use/
25322         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25323         (sc_prohibit_assert_without_use): Use the new name.
25324         (sc_prohibit_close_stream_without_use): Likewise.
25325         (sc_prohibit_getopt_without_use): Likewise.
25326         (sc_prohibit_quotearg_without_use): Likewise.
25327         (sc_prohibit_quote_without_use): Likewise.
25328         (sc_prohibit_long_options_without_use): Likewise.
25329         (sc_prohibit_inttostr_without_use): Likewise.
25330         (sc_prohibit_ignore_value_without_use): Likewise.
25331         (sc_prohibit_error_without_use): Likewise.
25332         (sc_prohibit_xalloc_without_use): Likewise.
25333         (sc_prohibit_hash_without_use): Likewise.
25334         (sc_prohibit_hash_pjw_without_use): Likewise.
25335         (sc_prohibit_safe_read_without_use): Likewise.
25336         (sc_prohibit_argmatch_without_use): Likewise.
25337         (sc_prohibit_canonicalize_without_use): Likewise.
25338         (sc_prohibit_root_dev_ino_without_use): Likewise.
25339         (sc_prohibit_openat_without_use): Likewise.
25340         (sc_prohibit_c_ctype_without_use): Likewise.
25341         (sc_prohibit_signal_without_use): Likewise.
25342         (sc_prohibit_intprops_without_use): Likewise.
25343
25344 2010-03-30  Eric Blake  <eblake@redhat.com>
25345
25346         maint: improve module indicators
25347         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25348         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25349         columns, and avoid extra macro expansion.
25350
25351         fdopendir: work around FreeBSD bug
25352         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25353         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25354         * modules/dirent (Makefile.am): Substitute it.
25355         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25356         declaration.
25357         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25358         fix.
25359         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25360
25361 2010-03-29  Bruno Haible  <bruno@clisp.org>
25362
25363         Emit #pragma system_header after the inclusion guard, not before.
25364         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25365         guard that spans the entire file, not before. This enables an
25366         optimization in GCC's preprocessor.
25367         * lib/ctype.in.h: Likewise.
25368         * lib/dirent.in.h: Likewise.
25369         * lib/errno.in.h: Likewise.
25370         * lib/float.in.h: Likewise.
25371         * lib/getopt.in.h: Likewise.
25372         * lib/iconv.in.h: Likewise.
25373         * lib/langinfo.in.h: Likewise.
25374         * lib/locale.in.h: Likewise.
25375         * lib/math.in.h: Likewise.
25376         * lib/netdb.in.h: Likewise.
25377         * lib/netinet_in.in.h: Likewise.
25378         * lib/pty.in.h: Likewise.
25379         * lib/sched.in.h: Likewise.
25380         * lib/se-selinux.in.h: Likewise.
25381         * lib/search.in.h: Likewise.
25382         * lib/spawn.in.h: Likewise.
25383         * lib/stdarg.in.h: Likewise.
25384         * lib/stdint.in.h: Likewise.
25385         * lib/string.in.h: Likewise.
25386         * lib/strings.in.h: Likewise.
25387         * lib/sys_file.in.h: Likewise.
25388         * lib/sys_ioctl.in.h: Likewise.
25389         * lib/sys_time.in.h: Likewise.
25390         * lib/sys_times.in.h: Likewise.
25391         * lib/sys_utsname.in.h: Likewise.
25392         * lib/sys_wait.in.h: Likewise.
25393         * lib/sysexits.in.h: Likewise.
25394         * lib/wctype.in.h: Likewise.
25395
25396 2010-03-28  James Youngman  <jay@gnu.org>
25397
25398         save-cwd: don't leak a file descriptor when the caller execs.
25399         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25400         saved file descriptor.
25401         * modules/save-cwd (Depends-on): Depend on cloexec.
25402
25403 2010-03-29  Bruno Haible  <bruno@clisp.org>
25404
25405         Remove vestiges of fts-lgpl module.
25406         * lib/fts_.h: Assume GNULIB_FTS is 1.
25407         * lib/fts.c: Likewise.
25408         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25409
25410 2010-03-28  Bruno Haible  <bruno@clisp.org>
25411
25412         Fix definition of tests witness macro.
25413         * gnulib-tool (func_import): Fix definition of witness macro.
25414
25415 2010-03-28  Bruno Haible  <bruno@clisp.org>
25416
25417         Fix ioctl's protoype on glibc systems.
25418         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25419         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25420         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25421         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25422         signature. If not, arrange to replace the ioctl function.
25423         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25424         REPLACE_IOCTL.
25425         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25426         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25427         Reported by Ludovic Courtès <ludo@gnu.org>.
25428
25429 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25430
25431         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25432         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25433         made it so grep -r --include=GLOB* ... did not work.
25434
25435 2010-03-26  Jim Meyering  <meyering@redhat.com>
25436             Eric Blake  <eblake@redhat.com>
25437
25438         maint.mk: prohibit use of test's -o and -a operators
25439         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25440
25441 2010-03-28  Bruno Haible  <bruno@clisp.org>
25442
25443         Remove unused GNULIB_XYZ macro definitions.
25444         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25445         invocation.
25446
25447 2010-03-28  Bruno Haible  <bruno@clisp.org>
25448
25449         Mark privileged tests modules.
25450         * modules/idpriv-drop-tests (Status): New section.
25451         * modules/idpriv-droptemp-tests (Status): New section.
25452
25453 2010-03-28  Bruno Haible  <bruno@clisp.org>
25454
25455         Split C++ tests into separate tests modules.
25456         * modules/dirent-c++-tests: New file, extracted from
25457         modules/dirent-tests.
25458         * modules/dirent-tests: Depend on it.
25459         * modules/fcntl-h-c++-tests: New file, extracted from
25460         modules/fcntl-h-tests.
25461         * modules/fcntl-h-tests: Depend on it.
25462         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25463         * modules/glob-tests: Depend on it.
25464         * modules/iconv-h-c++-tests: New file, extracted from
25465         modules/iconv-h-tests.
25466         * modules/iconv-h-tests: Depend on it.
25467         * modules/langinfo-c++-tests: New file, extracted from
25468         modules/langinfo-tests.
25469         * modules/langinfo-tests: Depend on it.
25470         * modules/locale-c++-tests: New file, extracted from
25471         modules/locale-tests.
25472         * modules/locale-tests: Depend on it.
25473         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25474         * modules/math-tests: Depend on it.
25475         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25476         * modules/pty-tests: Depend on it.
25477         * modules/search-c++-tests: New file, extracted from
25478         modules/search-tests.
25479         * modules/search-tests: Depend on it.
25480         * modules/signal-c++-tests: New file, extracted from
25481         modules/signal-tests.
25482         * modules/signal-tests: Depend on it.
25483         * modules/spawn-c++-tests: New file, extracted from
25484         modules/spawn-tests.
25485         * modules/spawn-tests: Depend on it.
25486         * modules/stdio-c++-tests: New file, extracted from
25487         modules/stdio-tests.
25488         * modules/stdio-tests: Depend on it.
25489         * modules/stdlib-c++-tests: New file, extracted from
25490         modules/stdlib-tests.
25491         * modules/stdlib-tests: Depend on it.
25492         * modules/string-c++-tests: New file, extracted from
25493         modules/string-tests.
25494         * modules/string-tests: Depend on it.
25495         * modules/sys_ioctl-c++-tests: New file, extracted from
25496         modules/sys_ioctl-tests.
25497         * modules/sys_ioctl-tests: Depend on it.
25498         * modules/sys_select-c++-tests: New file, extracted from
25499         modules/sys_select-tests.
25500         * modules/sys_select-tests: Depend on it.
25501         * modules/sys_socket-c++-tests: New file, extracted from
25502         modules/sys_socket-tests.
25503         * modules/sys_socket-tests: Depend on it.
25504         * modules/sys_stat-c++-tests: New file, extracted from
25505         modules/sys_stat-tests.
25506         * modules/sys_stat-tests: Depend on it.
25507         * modules/sys_time-c++-tests: New file, extracted from
25508         modules/sys_time-tests.
25509         * modules/sys_time-tests: Depend on it.
25510         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25511         * modules/time-tests: Depend on it.
25512         * modules/unistd-c++-tests: New file, extracted from
25513         modules/unistd-tests.
25514         * modules/unistd-tests: Depend on it.
25515         * modules/wchar-c++-tests: New file, extracted from
25516         modules/wchar-tests.
25517         * modules/wchar-tests: Depend on it.
25518         * modules/wctype-c++-tests: New file, extracted from
25519         modules/wctype-tests.
25520         * modules/wctype-tests: Depend on it.
25521         Reported by Simon Josefsson.
25522
25523 2010-03-28  Bruno Haible  <bruno@clisp.org>
25524
25525         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25526         * gnulib-tool (func_exists_module): New function, extracted from
25527         func_verify_module.
25528         (func_verify_module): Use it.
25529         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25530         'foo' only if 'foo' exists.
25531         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25532         module.
25533
25534 2010-03-28  Bruno Haible  <bruno@clisp.org>
25535
25536         gnulib-tool: Add support for special categories of tests.
25537         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25538         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25539         (func_usage): Document them.
25540         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25541         inc_unportable_tests, inc_all_tests): New variables.
25542         (func_acceptable): Consider these variables.
25543         (func_modules_transitive_closure): Make it work when the 'Status' field
25544         consists of multiple words.
25545         (func_import): Store and restore the values of inc_cxx_tests,
25546         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25547         inc_all_tests in gnulib-comp.m4.
25548         (func_create_testdir): Set inc_all_tests to true.
25549         * doc/gnulib.texi (Extra tests modules): New section.
25550         Suggested by Jim Meyering.
25551
25552 2010-03-28  Bruno Haible  <bruno@clisp.org>
25553
25554         ansi-c++-opt: Allow turning off the C++ build by default.
25555         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25556         gl_CXX_CHOICE_DEFAULT_NO is defined.
25557         Requested by Eric Blake.
25558
25559 2010-03-28  Bruno Haible  <bruno@clisp.org>
25560
25561         unistd: Avoid #define replacements in C++ mode.
25562         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25563         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25564         setsockopt, shutdown, select): In C++, attach a warning to the function
25565         if possible, rather than #defining the symbol to a dysfunctional alias.
25566         Reported by John W. Eaton <jwe@gnu.org>.
25567
25568 2010-03-28  Bruno Haible  <bruno@clisp.org>
25569
25570         Fix link errors on mingw.
25571         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25572         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25573         $(LIBSOCKET).
25574         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25575         $(LIBSOCKET).
25576
25577 2010-03-28  Bruno Haible  <bruno@clisp.org>
25578             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25579
25580         lib-ignore: Determine different options for different compilers.
25581         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25582         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25583         Add comments.
25584         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25585         * NEWS: Mention the change.
25586
25587 2010-03-27  Bruno Haible  <bruno@clisp.org>
25588
25589         Remove unused GNULIB_XYZ macro definitions.
25590         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25591         * modules/fseek (configure.ac): Likewise.
25592         * modules/ioctl (configure.ac): Likewise.
25593         * modules/open (configure.ac): Likewise.
25594         * modules/stdlib-safer (configure.ac): Likewise.
25595
25596 2010-03-27  Bruno Haible  <bruno@clisp.org>
25597
25598         Add a remark about certain modules.
25599         * modules/malloc (Comment): New section.
25600         * modules/realloc (Comment): Likewise.
25601         * modules/sigpipe (Comment): Likewise.
25602
25603 2010-03-27  Bruno Haible  <bruno@clisp.org>
25604
25605         Resolve conflict between the two kinds of module indicators.
25606         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25607         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25608         * modules/canonicalize (configure.ac): Invoke
25609         gl_MODULE_INDICATOR_FOR_TESTS.
25610         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25611         GNULIB_XYZ.
25612         * tests/test-dirent-c++.cc: Likewise.
25613         * tests/test-dirent-safer.c: Likewise.
25614         * tests/test-dup2.c: Likewise.
25615         * tests/test-fchdir.c: Likewise.
25616         * tests/test-fcntl-h-c++.cc: Likewise.
25617         * tests/test-getopt.c: Likewise.
25618         * tests/test-getopt.h: Likewise.
25619         * tests/test-langinfo-c++.cc: Likewise.
25620         * tests/test-locale-c++.cc: Likewise.
25621         * tests/test-math-c++.cc: Likewise.
25622         * tests/test-pty-c++.cc: Likewise.
25623         * tests/test-search-c++.cc: Likewise.
25624         * tests/test-signal-c++.cc: Likewise.
25625         * tests/test-spawn-c++.cc: Likewise.
25626         * tests/test-stdio-c++.cc: Likewise.
25627         * tests/test-stdlib-c++.cc: Likewise.
25628         * tests/test-string-c++.cc: Likewise.
25629         * tests/test-sys_ioctl-c++.cc: Likewise.
25630         * tests/test-sys_select-c++.cc: Likewise.
25631         * tests/test-sys_socket-c++.cc: Likewise.
25632         * tests/test-sys_stat-c++.cc: Likewise.
25633         * tests/test-sys_time-c++.cc: Likewise.
25634         * tests/test-time-c++.cc: Likewise.
25635         * tests/test-unistd-c++.cc: Likewise.
25636         * tests/test-wchar-c++.cc: Likewise.
25637         * tests/uninorm/test-u8-nfc.c: Likewise.
25638         * tests/uninorm/test-u8-nfd.c: Likewise.
25639         * tests/uninorm/test-u8-nfkc.c: Likewise.
25640         * tests/uninorm/test-u8-nfkd.c: Likewise.
25641         * tests/uninorm/test-u16-nfc.c: Likewise.
25642         * tests/uninorm/test-u16-nfd.c: Likewise.
25643         * tests/uninorm/test-u16-nfkc.c: Likewise.
25644         * tests/uninorm/test-u16-nfkd.c: Likewise.
25645         * tests/uninorm/test-u32-nfc.c: Likewise.
25646         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25647         * tests/uninorm/test-u32-nfd.c: Likewise.
25648         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25649         * tests/uninorm/test-u32-nfkc.c: Likewise.
25650         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25651         * tests/uninorm/test-u32-nfkd.c: Likewise.
25652         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25653         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25654
25655 2010-03-27  Bruno Haible  <bruno@clisp.org>
25656
25657         Distinguish two kinds of module indicators.
25658         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25659         gl_MODULE_INDICATOR.
25660         (gl_MODULE_INDICATOR): New macro.
25661         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25662         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25663         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25664         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25665         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25666         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25667         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25668         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25669         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25670         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25671         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25672         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25673         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25674         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25675         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25676         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25677         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25678         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25679         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25680         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25681         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25682         * modules/cloexec (configure.ac): Likewise.
25683         * modules/getopt-gnu (configure.ac): Likewise.
25684         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25685         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25686         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25687         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25688
25689 2010-03-27  Bruno Haible  <bruno@clisp.org>
25690
25691         New module description field 'Comment'.
25692         * gnulib-tool: New option --extract-comment.
25693         (func_usage): Document it.
25694         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25695         (func_get_comment): New function.
25696         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25697
25698 2010-03-27  Bruno Haible  <bruno@clisp.org>
25699
25700         Addendum to 2010-02-07 commit.
25701         * gnulib-tool (func_usage): Document --extract-applicability option.
25702
25703 2010-03-27  Bruno Haible  <bruno@clisp.org>
25704
25705         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25706         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25707         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25708         rather than link errors.
25709
25710 2010-03-27  Bruno Haible  <bruno@clisp.org>
25711
25712         Avoid side effects from tests-related modules on the compilation of lib.
25713         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25714         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25715         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25716         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25717         macro.
25718         (func_import): Define a witness macro. Assign it a value that depends
25719         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25720         tests-related modules.
25721         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25722         Reported by Jim Meyering.
25723
25724 2010-03-27  Bruno Haible  <bruno@clisp.org>
25725
25726         Factorize common .m4 code.
25727         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25728         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25729         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25730         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25731         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25732         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25733         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25734         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25735         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25736         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25737         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25738         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25739         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25740         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25741         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25742         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25743         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25744         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25745         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25746         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25747         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25748         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25749         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25750         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25751         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25752         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25753         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25754         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25755         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25756         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25757         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25758         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25759
25760 2010-03-27  Bruno Haible  <bruno@clisp.org>
25761
25762         Fix a compilation error on Cygwin with g++ >= 4.3.
25763         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25764         if it is undefined or if we alias it to chmod.
25765         (lstat): Don't warn about the use of this function if it is undefined
25766         or if we alias it to stat.
25767         Reported by Simon Josefsson.
25768
25769 2010-03-27  Bruno Haible  <bruno@clisp.org>
25770
25771         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25772         * modules/getlogin (configure.ac): Update.
25773
25774         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25775         * modules/getlogin_r (configure.ac): Update.
25776
25777         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25778         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25779         * modules/inet_ntop (configure.ac): Update.
25780
25781         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25782         * modules/inet_pton (configure.ac): Update.
25783
25784         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25785         * modules/mbslen (configure.ac): Update.
25786
25787         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25788         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25789         * modules/forkpty (configure.ac): Update.
25790         * modules/openpty (configure.ac): Update.
25791
25792 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25793
25794         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25795         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25796
25797 2010-03-25  Eric Blake  <eblake@redhat.com>
25798
25799         maint: use pragma consistently across replacement headers
25800         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25801         * lib/dirent.in.h (system_header): Likewise.
25802         * lib/errno.in.h (system_header): Likewise.
25803         * lib/float.in.h (system_header): Likewise.
25804         * lib/getopt.in.h (system_header): Likewise.
25805         * lib/iconv.in.h (system_header): Likewise.
25806         * lib/inttypes.in.h (system_header): Likewise.
25807         * lib/langinfo.in.h (system_header): Likewise.
25808         * lib/locale.in.h (system_header): Likewise.
25809         * lib/math.in.h (system_header): Likewise.
25810         * lib/netdb.in.h (system_header): Likewise.
25811         * lib/netinet_in.in.h (system_header): Likewise.
25812         * lib/pty.in.h (system_header): Likewise.
25813         * lib/sched.in.h (system_header): Likewise.
25814         * lib/se-selinux.in.h (system_header): Likewise.
25815         * lib/search.in.h (system_header): Likewise.
25816         * lib/spawn.in.h (system_header): Likewise.
25817         * lib/stdarg.in.h (system_header): Likewise.
25818         * lib/stdint.in.h (system_header): Likewise.
25819         * lib/string.in.h (system_header): Likewise.
25820         * lib/strings.in.h (system_header): Likewise.
25821         * lib/sys_file.in.h (system_header): Likewise.
25822         * lib/sys_ioctl.in.h (system_header): Likewise.
25823         * lib/sys_socket.in.h (system_header): Likewise.
25824         * lib/sys_times.in.h (system_header): Likewise.
25825         * lib/sys_utsname.in.h (system_header): Likewise.
25826         * lib/sys_wait.in.h (system_header): Likewise.
25827         * lib/sysexits.in.h (system_header): Likewise.
25828         * lib/unistd.in.h (system_header): Likewise.
25829         * lib/wctype.in.h (system_header): Likewise.
25830
25831         arpa/inet: fix mingw compilation warning
25832         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25833         Reported by Matthew Bolte.
25834
25835 2010-03-25  Bruno Haible  <bruno@clisp.org>
25836
25837         Avoid collision between gnulib wrapper and libintl wrapper.
25838         * lib/printf.c (printf): Don't define if a printf wrapper is already
25839         defined in intl/printf.c.
25840         Reported by Michel Boaventura <michel@michelboaventura.com>.
25841
25842 2010-03-25  Bruno Haible  <bruno@clisp.org>
25843
25844         Use ANSI C.
25845         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25846
25847 2010-03-25  Bruno Haible  <bruno@clisp.org>
25848
25849         Minor formatting changes.
25850         * lib/acosl.c: Insert space before function argument list.
25851         * lib/argz.c: Likewise.
25852         * lib/asinl.c: Likewise.
25853         * lib/expl.c: Likewise.
25854         * lib/gen-uni-tables.c: Likewise.
25855         * lib/gettext.h: Likewise.
25856         * lib/glthread/lock.h: Likewise.
25857         * lib/tanl.c: Likewise.
25858         * lib/uniname/uniname.c: Likewise.
25859         * tests/test-idpriv-drop.c: Likewise.
25860         * tests/test-idpriv-droptemp.c: Likewise.
25861         * tests/test-lock.c: Likewise.
25862         * tests/test-tls.c: Likewise.
25863         * lib/argp-help.c: Insert space before function-like macro argument
25864         list.
25865         * lib/memcmp.c: Likewise.
25866         * tests/test-base64.c: Likewise.
25867         * lib/localename.c: Insert space before sizeof's argument list.
25868         * lib/safe-alloc.h: Likewise.
25869         * lib/file-set.h: Insert space before macro argument list.
25870         * tests/test-argp.c: Likewise.
25871         * lib/argp-namefrob.h: Insert space before function parameter list.
25872         * lib/getaddrinfo.c: Likewise.
25873         * lib/netdb.in.h: Likewise.
25874         * lib/parse-duration.h: Likewise.
25875         * lib/parse-duration.c: Likewise.
25876         * lib/poll.c: Likewise.
25877         * lib/select.c: Likewise.
25878         * lib/trim.h: Likewise.
25879         * tests/test-usleep.c: Likewise.
25880         * lib/ldexpl.c: Insert space before function parameter list and before
25881         function argument list.
25882         * lib/logl.c: Likewise.
25883         * lib/sqrtl.c: Likewise.
25884         * lib/trim.c: Likewise.
25885         * lib/cosl.c: Use GNU style indentation. Insert space before function
25886         argument list.
25887         * lib/sinl.c: Likewise.
25888         * lib/tsearch.c: Insert space after 'for'.
25889         Reported by Jim Meyering.
25890
25891 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25892
25893         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25894         config header before grepping, as it's not present before
25895         autoreconf/configure are run.  Reported by Simon Josefsson.
25896
25897 2010-03-23  Bruno Haible  <bruno@clisp.org>
25898
25899         pt_chown: Make it work with automake < 1.11.
25900         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25901         Reported by Simon Josefsson.
25902
25903 2010-03-23  Bruno Haible  <bruno@clisp.org>
25904
25905         pt_chown: Don't depend on GPLed modules.
25906         * lib/pt_chown.c: Don't include idpriv.h.
25907         (main): Don't drop privileges.
25908         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25909         Reported by Simon Josefsson.
25910
25911 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25912
25913         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25914         suggestions from karl@freefriends.org (Karl Berry).
25915
25916 2010-03-22  Eric Blake  <eblake@redhat.com>
25917
25918         gethostname: further tweaks
25919         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25920         are overriding gethostname.
25921         Suggested by Bruno Haible.
25922
25923 2010-03-21  Bruno Haible  <bruno@clisp.org>
25924
25925         Fix comments.
25926         * lib/forkpty.c (rpl_forkpty): Fix comment.
25927         * lib/openpty.c (rpl_openpty): Likewise.
25928         Reported by Eric Blake.
25929
25930 2010-03-22  Eric Blake  <eblake@redhat.com>
25931
25932         gethostname: fix build on mingw
25933         * lib/unistd.in.h (includes): Work around fact that mingw
25934         <winsock2.h> re-includes <unistd.h>, by avoiding any
25935         redeclarations if we are being included by <winsock2.h>.
25936         Reported by Matthias Bolte.
25937
25938 2010-03-21  Bruno Haible  <bruno@clisp.org>
25939
25940         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25941         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25942         modifications.
25943         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25944         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25945         provide the replacement.
25946         * modules/forkpty (Depends-on): Add openpty, login_tty.
25947         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25948         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25949         * doc/glibc-functions/forkpty.texi: More supported platforms.
25950         * config/srclist.txt: Add forkpty.c (commented).
25951
25952 2010-03-21  Bruno Haible  <bruno@clisp.org>
25953
25954         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25955         (Makefile.am): Verify that PTY_LIB is defined.
25956
25957         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25958
25959 2010-03-21  Bruno Haible  <bruno@clisp.org>
25960
25961         Tests for module 'login_tty'.
25962         * modules/login_tty-tests: New file.
25963         * tests/test-login_tty.c: New file.
25964
25965         New module 'login_tty'.
25966         * lib/login_tty.c: New file.
25967         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25968         * modules/login_tty: New file.
25969         * doc/glibc-functions/login_tty.texi: Mention the new module.
25970
25971 2010-03-21  Bruno Haible  <bruno@clisp.org>
25972
25973         login_tty: Documentation.
25974         * doc/glibc-functions/login_tty.texi: New file.
25975         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25976
25977 2010-03-21  Bruno Haible  <bruno@clisp.org>
25978
25979         pty: Consistent macro naming.
25980         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25981         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25982         * modules/pty (configure.ac): Update.
25983
25984 2010-03-21  Bruno Haible  <bruno@clisp.org>
25985
25986         Tests for openpty: Make stricter.
25987         * tests/test-openpty.c (main): Add test of canonical processing and
25988         erase.
25989         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25990
25991         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25992         * lib/openpty.c (openpty): New replacement function.
25993         * lib/pty.in.h: Include <termios.h>.
25994         (openpty): Update declaration. Add comments.
25995         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25996         is not declared, arrange to provide the replacement. Check for _getpty
25997         and posix_openpt.
25998         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25999         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26000         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26001         * modules/pty-tests (test_pty_c___LDADD): New variable.
26002         * doc/glibc-functions/openpty.texi: More supported platforms.
26003
26004 2010-03-21  Bruno Haible  <bruno@clisp.org>
26005
26006         setenv: Tweaks.
26007         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26008         the test program.
26009         * doc/posix-functions/setenv.texi: Update platforms list.
26010
26011 2010-03-21  Bruno Haible  <bruno@clisp.org>
26012
26013         New module 'unlockpt'.
26014         * lib/unlockpt.c: New file, from glibc with modifications.
26015         * m4/unlockpt.m4: New file.
26016         * modules/unlockpt: New file.
26017         * lib/stdlib.in.h (unlockpt): New declaration.
26018         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26019         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26020         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26021         HAVE_UNLOCKPT.
26022         * doc/posix-functions/unlockpt.texi: Mention the new module.
26023         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26024         * config/srclist.txt: Add unlockpt.c (commented).
26025
26026 2010-03-21  Jim Meyering  <meyering@redhat.com>
26027
26028         maint.mk: prohibit inclusion of "intprops.h" without use
26029         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26030
26031 2010-03-21  Bruno Haible  <bruno@clisp.org>
26032
26033         New module 'grantpt'.
26034         * lib/grantpt.c: New file, from glibc with modifications.
26035         * m4/grantpt.m4: New file.
26036         * modules/grantpt: New file.
26037         * lib/stdlib.in.h (grantpt): New declaration.
26038         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26039         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26040         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26041         HAVE_GRANTPT.
26042         * doc/posix-functions/grantpt.texi: Mention the new module.
26043         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26044         * config/srclist.txt: Add grantpt.c (commented).
26045
26046 2010-03-21  Bruno Haible  <bruno@clisp.org>
26047
26048         New module 'pt_chown'.
26049         * lib/pt_chown.c: New file, from glibc with modifications.
26050         * lib/pty-private.h: New file, from glibc with modifications.
26051         * modules/pt_chown: New file.
26052         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26053
26054 2010-03-21  Bruno Haible  <bruno@clisp.org>
26055
26056         Tests for module 'ptsname'.
26057         * modules/ptsname-tests: New file.
26058         * tests/test-ptsname.c: New file.
26059
26060         New module 'ptsname'.
26061         * lib/ptsname.c: New file, from glibc with modifications.
26062         * m4/ptsname.m4: New file.
26063         * modules/ptsname: New file.
26064         * lib/stdlib.in.h (ptsname): New declaration.
26065         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26066         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26067         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26068         HAVE_PTSNAME.
26069         * doc/posix-functions/ptsname.texi: Mention the new module.
26070         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26071         * config/srclist.txt: Add ptsname.c (commented).
26072
26073 2010-03-21  Bruno Haible  <bruno@clisp.org>
26074
26075         Tests for module 'ttyname_r'.
26076         * modules/ttyname_r-tests: New file.
26077         * tests/test-ttyname_r.c: New file.
26078
26079         New module 'ttyname_r'.
26080         * lib/ttyname_r.c: New file.
26081         * m4/ttyname_r.m4: New file.
26082         * modules/ttyname_r: New file.
26083         * lib/unistd.in.h (ttyname_r): New declaration.
26084         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26085         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26086         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26087         HAVE_TTYNAME_R.
26088         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26089         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26090
26091 2010-03-20  Bruno Haible  <bruno@clisp.org>
26092
26093         signal: Undefine macro definitions in C++ mode.
26094         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26095         sigfillset): Undefine macro definitions from the system header in C++
26096         mode.
26097         Reported by John W. Eaton <jwe@gnu.org>.
26098
26099 2010-03-20  Bruno Haible  <bruno@clisp.org>
26100
26101         Ensure no #include statements inside extern "C" { ... }.
26102         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26103         contain #include statements.
26104         * lib/time.in.h: Likewise.
26105
26106 2010-03-20  Bruno Haible  <bruno@clisp.org>
26107
26108         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26109         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26110         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26111         Reported by John W. Eaton <jwe@gnu.org>.
26112
26113 2010-03-20  Bruno Haible  <bruno@clisp.org>
26114
26115         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26116         Reported by Jim Meyering.
26117
26118 2010-03-20  Bruno Haible  <bruno@clisp.org>
26119
26120         pipe: Set errno upon failure.
26121         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26122         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26123         errno value in error message.
26124
26125 2010-03-20  Bruno Haible  <bruno@clisp.org>
26126             Jim Meyering  <meyering@redhat.com>
26127
26128         lchown: Avoid "unused variable" warning.
26129         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26130
26131 2010-03-20  Bruno Haible  <bruno@clisp.org>
26132
26133         Work around unlink() bug on MacOS X 10.5.6.
26134         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26135         attempting to unlink a parent directory.
26136         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26137         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26138         activate for the replacement function.
26139         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26140
26141 2010-03-20  Bruno Haible  <bruno@clisp.org>
26142
26143         Fix link errors on Solaris 8.
26144         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26145         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26146
26147 2010-03-19  Jim Meyering  <meyering@redhat.com>
26148
26149         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26150         The _LIBC implementation of build_range_exp correctly honors the
26151         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26152         However, the non-_LIBC implementation would ignore that syntax-bit
26153         flag and return REG_ERANGE unconditionally.
26154         This change makes it honor that flag.
26155         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26156         Make two pointer parameters "const".
26157         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26158         (parse_bracket_exp): Update caller.
26159
26160         regex.m4: correct the reversed range endpoint ([b-a]) test
26161         * m4/regex.m4: When requiring that [b-a] evoke failure,
26162         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26163         test pass once again for x86-based systems.
26164
26165 2010-03-19  Bruno Haible  <bruno@clisp.org>
26166
26167         scandir: Fix link error on Solaris 8.
26168         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26169         macros.
26170
26171 2010-03-19  Bruno Haible  <bruno@clisp.org>
26172
26173         getusershell: Fix documentation.
26174         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26175         module.
26176         * doc/glibc-functions/setusershell.texi: Likewise.
26177
26178         getusershell: Provide declaration, missing on Solaris 9.
26179         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26180         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26181         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26182         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26184         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26185         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26186         HAVE_GETUSERSHELL.
26187         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26188
26189 2010-03-19  Bruno Haible  <bruno@clisp.org>
26190
26191         wctype: Provide iswblank function.
26192         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26193         exists and is fine.
26194         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26195         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26196         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26197         * doc/posix-functions/iswblank.texi: Update.
26198
26199 2010-03-19  Bruno Haible  <bruno@clisp.org>
26200
26201         Tests of module 'pty' in C++ mode.
26202         * modules/pty-tests: New file.
26203         * tests/test-pty-c++.cc: New file.
26204         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26205
26206 2010-03-19  Eric Blake  <eblake@redhat.com>
26207
26208         logb: fix documentation
26209         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26210         1.5 declaration bug.
26211
26212         forkpty, openpty: prefer glibc's const-safe prototype
26213         * lib/forkpty.c (rpl_forkpty): New file.
26214         * lib/openpty.c (rpl_openpty): Likewise.
26215         * modules/forkpty (Files): Distribute it.
26216         * modules/openpty (Files): Likewise.
26217         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26218         check...
26219         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26220         replacement for for non-const BSD signature.
26221         * modules/pty (Makefile.am): Substitute witnesses.
26222         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26223         * tests/test-forkpty.c: Update signature check.
26224         * tests/test-openpty.c: Likewise.
26225         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26226         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26227
26228         forkpty, openpty: split functions into new modules
26229         * modules/pty (Makefile.am): Substitute new witnesses.
26230         (Libraries): Move library detection...
26231         * modules/forkpty: ...into new module.
26232         * modules/openpty: Another new module.
26233         * modules/pty-tests: Rename and split...
26234         * modules/forkpty-tests: ...to this...
26235         * modules/openpty-tests: ...and this.
26236         * tests/test-pty.c: Rename and split...
26237         * tests/test-forkpty.c: ...to this...
26238         * tests/test-openpty.c: ...and this.
26239         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26240         (gl_PTY): Split library searching...
26241         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26242         (gl_FORKPTY, gl_OPENPTY): New macros.
26243         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26244         * NEWS: Mention the split.
26245         * MODULES.html.sh (Misc): Document the modules.
26246         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26247         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26248
26249         pty: improve replacement header
26250         * lib/pty.in.h: New file.
26251         * modules/pty (Files): Ship it.
26252         (Makefile.am): Always build replacement.
26253         * m4/pty.m4: Rename...
26254         * m4/pty_h.m4: ...to this.
26255         (gl_PTY): Modernize setting of witness macros; update check of
26256         forkpty to take proper advantage of cache.
26257         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26258
26259         getopt: avoid compiler warning
26260         * lib/getopt.c (attribute_hidden): Remove unused macro.
26261
26262 2010-03-18  Bruno Haible  <bruno@clisp.org>
26263
26264         Fix link errors on Solaris 8.
26265         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26266         * modules/search-tests (test_search_c___LDADD): Likewise.
26267         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26268         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26269         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26270         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26271         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26272         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26273         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26274
26275 2010-03-18  Bruno Haible  <bruno@clisp.org>
26276
26277         Fix bug introduced on 2010-03-14.
26278         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26279         (gl_SPAWN_H): Require it.
26280         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26281         Reported by Simon Josefsson.
26282
26283 2010-03-18  Bruno Haible  <bruno@clisp.org>
26284
26285         Fix typo introduced on 2009-12-31.
26286         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26287         posix_spawn_file_actions_adddup2.
26288
26289 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26290         and Eric Blake  <eblake@redhat.com>
26291
26292         test-vc-list-files-git: make more robust
26293         * tests/test-vc-list-files-git.sh: Unset problematic environment
26294         variables.  Chain commands together.
26295
26296 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26297
26298         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26299         `AC_CHECK_DECL' invocation.
26300
26301 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26302
26303         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26304         appears before executable statements. Suggested by Petr Sumbera
26305         <Petr.Sumbera@Sun.COM>.
26306
26307 2010-03-14  Bruno Haible  <bruno@clisp.org>
26308
26309         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26310         portability problems. Instead use a simpler test.
26311         (main): Check that invalid arguments are rejected only on Linux.
26312
26313 2010-03-14  Bruno Haible  <bruno@clisp.org>
26314
26315         Fix bug introduced on 2009-12-31.
26316         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26317         gl_PREREQ_SYS_H_WINSOCK2 always.
26318         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26319         SYS_SOCKET_H variable.
26320         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26321         Update comments.
26322         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26323         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26324         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26325         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26326         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26327
26328 2010-03-14  Bruno Haible  <bruno@clisp.org>
26329
26330         Fix values returned by sinl, cosl.
26331         * lib/trigl.h: Add specification comments.
26332         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26333         that combines the values from the precomputed table with the values of
26334         the Chebyshev polynomials.
26335
26336 2010-03-14  Bruno Haible  <bruno@clisp.org>
26337
26338         Fix compilation error when modules 'posix_spawn[p]' are not used.
26339         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26340         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26341
26342 2010-03-14  Bruno Haible  <bruno@clisp.org>
26343
26344         Fix compilation error on mingw when module 'time_r' is not used.
26345         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26346         is 1.
26347         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26348         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26349         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26350         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26351
26352 2010-03-14  Bruno Haible  <bruno@clisp.org>
26353
26354         Fix compilation error with Sun C.
26355         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26356         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26357         instead of GCC specific ULONG_LONG_MAX.
26358         * lib/xstrtoll.c: Likewise.
26359         * lib/xstrtoull.c: Likewise.
26360
26361 2010-03-13  Bruno Haible  <bruno@clisp.org>
26362
26363         Allow the user to disable C++ code and tests.
26364         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26365         (gl_PROG_ANSI_CXX): Require it.
26366
26367 2010-03-13  Bruno Haible  <bruno@clisp.org>
26368
26369         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26370         cases.
26371
26372 2010-03-13  Bruno Haible  <bruno@clisp.org>
26373
26374         Test that gnulib does not break the standard C++ headers.
26375         * tests/test-locale-c++2.cc: New file.
26376         * modules/locale-tests (Files): Add it.
26377         (Makefile.am): Compile it for test-locale-c++.
26378         * tests/test-math-c++2.cc: New file.
26379         * modules/math-tests (Files): Add it.
26380         (Makefile.am): Compile it for test-math-c++.
26381         * tests/test-signal-c++2.cc: New file.
26382         * modules/signal-tests (Files): Add it.
26383         (Makefile.am): Compile it for test-signal-c++.
26384         * tests/test-stdio-c++2.cc: New file.
26385         * modules/stdio-tests (Files): Add it.
26386         (Makefile.am): Compile it for test-stdio-c++.
26387         * tests/test-stdlib-c++2.cc: New file.
26388         * modules/stdlib-tests (Files): Add it.
26389         (Makefile.am): Compile it for test-stdlib-c++.
26390         * tests/test-string-c++2.cc: New file.
26391         * modules/string-tests (Files): Add it.
26392         (Makefile.am): Compile it for test-string-c++.
26393         * tests/test-time-c++2.cc: New file.
26394         * modules/time-tests (Files): Add it.
26395         (Makefile.am): Compile it for test-time-c++.
26396         Reported by John W. Eaton <jwe@gnu.org>.
26397
26398 2010-03-13  Bruno Haible  <bruno@clisp.org>
26399
26400         * gnulib-tool (func_usage): Clarify which options are available for
26401         --create-testdir and --create-megatestdir.
26402
26403 2010-03-13  Bruno Haible  <bruno@clisp.org>
26404
26405         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26406         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26407         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26408         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26409         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26410         when appropriate.
26411         Reported by Jim Meyering.
26412
26413 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26414
26415         * gnulib-tool (func_import): Explain origin of code.
26416
26417 2010-03-12  Bruno Haible  <bruno@clisp.org>
26418
26419         Fix problem with automake's definition of CXXLINK.
26420         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26421         Reported by Simon Josefsson and Ludovic Courtès.
26422
26423 2010-03-12  Bruno Haible  <bruno@clisp.org>
26424
26425         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26426         stable releases.
26427
26428 2010-03-11  Bruno Haible  <bruno@clisp.org>
26429
26430         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26431         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26432         whether the system provides one variant or multiple variants of the
26433         function.
26434         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26435         C++ compilers.
26436         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26437         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26438         Reported by Jim Meyering.
26439
26440 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26441
26442         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26443
26444 2010-03-08  Bruno Haible  <bruno@clisp.org>
26445
26446         gnulib-tool: Add support for --libtool in --create-testdir.
26447         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26448         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26449
26450 2010-03-08  Eric Blake  <eblake@redhat.com>
26451
26452         gnulib-tool.texi: mention possibility of git submodule
26453         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26454         submodules.
26455         * doc/.gitignore: Ignore another generated file.
26456
26457 2010-03-08  Karl Berry  <karl@gnu.org>
26458
26459         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26460         of committing gnulib files while skipping others.
26461
26462 2010-03-07  Bruno Haible  <bruno@clisp.org>
26463
26464         Tests of module 'wctype' in C++ mode.
26465         * tests/test-wctype-c++.cc: New file.
26466         * modules/wctype-tests (Files): Add it and tests/signature.h.
26467         (Depends-on): Add ansi-c++-opt.
26468         (Makefile.am): Arrange to compile and run test-wctype-c++.
26469
26470         Tests of module 'wchar' in C++ mode.
26471         * tests/test-wchar-c++.cc: New file.
26472         * modules/wchar-tests (Files): Add it and tests/signature.h.
26473         (Depends-on): Add ansi-c++-opt.
26474         (Makefile.am): Arrange to compile and run test-wchar-c++.
26475         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26476         gl_MODULE_INDICATOR.
26477
26478         Tests of module 'unistd' in C++ mode.
26479         * tests/test-unistd-c++.cc: New file.
26480         * modules/unistd-tests (Files): Add it and tests/signature.h.
26481         (Depends-on): Add ansi-c++-opt.
26482         (Makefile.am): Arrange to compile and run test-unistd-c++.
26483         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26484         gl_MODULE_INDICATOR.
26485
26486         Tests of module 'time' in C++ mode.
26487         * tests/test-time-c++.cc: New file.
26488         * modules/time-tests (Files): Add it and tests/signature.h.
26489         (Depends-on): Add ansi-c++-opt.
26490         (Makefile.am): Arrange to compile and run test-time-c++.
26491         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26492
26493         Tests of module 'sys_time' in C++ mode.
26494         * tests/test-sys_time-c++.cc: New file.
26495         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26496         (Depends-on): Add ansi-c++-opt.
26497         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26498         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26499         gl_MODULE_INDICATOR.
26500
26501         Tests of module 'sys_stat' in C++ mode.
26502         * tests/test-sys_stat-c++.cc: New file.
26503         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26504         (Depends-on): Add ansi-c++-opt.
26505         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26506         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26507         gl_MODULE_INDICATOR.
26508
26509         Tests of module 'sys_socket' in C++ mode.
26510         * tests/test-sys_socket-c++.cc: New file.
26511         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26512         (Depends-on): Add ansi-c++-opt.
26513         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26514         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26515         gl_MODULE_INDICATOR.
26516
26517         Tests of module 'sys_select' in C++ mode.
26518         * tests/test-sys_select-c++.cc: New file.
26519         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26520         (Depends-on): Add ansi-c++-opt.
26521         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26522         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26523         gl_MODULE_INDICATOR.
26524
26525         Tests of module 'sys_ioctl' in C++ mode.
26526         * tests/test-sys_ioctl-c++.cc: New file.
26527         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26528         (Depends-on): Add ansi-c++-opt.
26529         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26530         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26531         gl_MODULE_INDICATOR.
26532
26533         Tests of module 'string' in C++ mode.
26534         * tests/test-string-c++.cc: New file.
26535         * modules/string-tests (Files): Add it and tests/signature.h.
26536         (Depends-on): Add ansi-c++-opt.
26537         (Makefile.am): Arrange to compile and run test-string-c++.
26538         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26539         gl_MODULE_INDICATOR.
26540
26541         Tests of module 'stdlib' in C++ mode.
26542         * tests/test-stdlib-c++.cc: New file.
26543         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26544         (Depends-on): Add ansi-c++-opt.
26545         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26546         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26547         gl_MODULE_INDICATOR.
26548
26549         Tests of module 'stdio' in C++ mode.
26550         * tests/test-stdio-c++.cc: New file.
26551         * modules/stdio-tests (Files): Add it and tests/signature.h.
26552         (Depends-on): Add ansi-c++-opt.
26553         (Makefile.am): Arrange to compile and run test-stdio-c++.
26554         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26555         gl_MODULE_INDICATOR.
26556
26557         Tests of module 'spawn' in C++ mode.
26558         * tests/test-spawn-c++.cc: New file.
26559         * modules/spawn-tests (Files): Add it and tests/signature.h.
26560         (Depends-on): Add ansi-c++-opt.
26561         (Makefile.am): Arrange to compile and run test-spawn-c++.
26562         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26563         gl_MODULE_INDICATOR.
26564
26565         Tests of module 'signal' in C++ mode.
26566         * tests/test-signal-c++.cc: New file.
26567         * modules/signal-tests (Files): Add it and tests/signature.h.
26568         (Depends-on): Add ansi-c++-opt.
26569         (Makefile.am): Arrange to compile and run test-signal-c++.
26570         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26571         gl_MODULE_INDICATOR.
26572
26573         Tests of module 'search' in C++ mode.
26574         * tests/test-search-c++.cc: New file.
26575         * modules/search-tests (Files): Add it and tests/signature.h.
26576         (Depends-on): Add ansi-c++-opt.
26577         (Makefile.am): Arrange to compile and run test-search-c++.
26578         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26579         gl_MODULE_INDICATOR.
26580
26581         Tests of module 'math' in C++ mode.
26582         * tests/test-math-c++.cc: New file.
26583         * modules/math-tests (Files): Add it and tests/signature.h.
26584         (Depends-on): Add ansi-c++-opt.
26585         (Makefile.am): Arrange to compile and run test-math-c++.
26586         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26587
26588         Tests of module 'locale' in C++ mode.
26589         * tests/test-locale-c++.cc: New file.
26590         * modules/locale-tests (Files): Add it and tests/signature.h.
26591         (Depends-on): Add ansi-c++-opt.
26592         (Makefile.am): Arrange to compile and run test-locale-c++.
26593         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26594         gl_MODULE_INDICATOR.
26595
26596         Tests of module 'langinfo' in C++ mode.
26597         * tests/test-langinfo-c++.cc: New file.
26598         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26599         (Depends-on): Add ansi-c++-opt.
26600         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26601         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26602         gl_MODULE_INDICATOR.
26603
26604         Tests of module 'iconv-h' in C++ mode.
26605         * tests/test-iconv-h-c++.cc: New file.
26606         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26607         (Depends-on): Add ansi-c++-opt.
26608         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26609
26610         Tests of module 'glob' in C++ mode.
26611         * tests/test-glob-c++.cc: New file.
26612         * modules/glob-tests (Files): Add it.
26613         (Depends-on): Add ansi-c++-opt.
26614         (Makefile.am): Arrange to compile and run test-glob-c++.
26615
26616         Tests of module 'fcntl-h' in C++ mode.
26617         * tests/test-fcntl-h-c++.cc: New file.
26618         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26619         (Depends-on): Add ansi-c++-opt.
26620         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26621         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26622         gl_MODULE_INDICATOR.
26623
26624         Tests of module 'dirent' in C++ mode.
26625         * tests/test-dirent-c++.cc: New file.
26626         * modules/dirent-tests (Files): Add it and tests/signature.h.
26627         (Depends-on): Add ansi-c++-opt.
26628         (Makefile.am): Arrange to compile and run test-dirent-c++.
26629         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26630         gl_MODULE_INDICATOR.
26631
26632         New module 'ansi-c++-opt'.
26633         * modules/ansi-c++-opt: New file.
26634         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26635
26636         Document C++ namespace mode.
26637         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26638
26639         wctype: Avoid #define replacements in C++ mode.
26640         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26641         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26642         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26643         In C++, define a namespaced alias symbol.
26644         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26645         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26646         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26647         rule.
26648
26649         wchar: Avoid #define replacements in C++ mode.
26650         * lib/wchar.in.h: Include c++defs.h.
26651         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26652         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26653         symbol.
26654         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26655         * modules/wchar (Depends-on): Add c++defs.
26656         (Makefile.am): Update wchar.h rule.
26657
26658         unistd: Avoid #define replacements in C++ mode.
26659         * lib/unistd.in.h: Include c++defs.h.
26660         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26661         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26662         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26663         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26664         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26665         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26666         symbol.
26667         (environ): Update.
26668         * modules/unistd (Depends-on): Add c++defs.
26669         (Makefile.am): Update unistd.h rule.
26670
26671         time: Avoid #define replacements in C++ mode.
26672         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26673         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26674         define a namespaced alias symbol.
26675         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26676         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26677         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26678         * modules/time (Depends-on): Add c++defs, warn-on-use.
26679         (Makefile.am): Update time.h rule.
26680         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26681         * modules/nanosleep (configure.ac): Likewise.
26682         * modules/strptime (configure.ac): Likewise.
26683         * modules/timegm (configure.ac): Likewise.
26684
26685         sys_time: Avoid #define replacements in C++ mode.
26686         * lib/sys_time.in.h: Include c++defs.h.
26687         (gettimeofday): In C++, define a namespaced alias symbol.
26688         * modules/sys_time (Depends-on): Add c++defs.
26689         (Makefile.am): Update sys/time.h rule.
26690
26691         sys_stat: Avoid #define replacements in C++ mode.
26692         * lib/sys_stat.in.h: Include c++defs.h.
26693         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26694         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26695         namespaced alias symbol.
26696         In C++, define a namespaced alias symbol.
26697         * modules/sys_stat (Depends-on): Add c++defs.
26698         (Makefile.am): Update sys/stat.h rule.
26699
26700         sys_socket: Avoid #define replacements in C++ mode.
26701         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26702         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26703         definitions also when the system has a <sys/socket.h>.
26704         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26705         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26706         In C++, define a namespaced alias symbol.
26707         * modules/sys_socket (Depends-on): Add c++defs.
26708         (Makefile.am): Update sys/socket.h rule.
26709
26710         sys_select: Avoid #define replacements in C++ mode.
26711         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26712         definitions also when the system has a <sys/select.h>.
26713         (select): In C++, define a namespaced alias symbol.
26714         * modules/sys_select (Depends-on): Add c++defs.
26715         (Makefile.am): Update sys/select.h rule.
26716
26717         sys_ioctl: Avoid #define replacements in C++ mode.
26718         * lib/sys_ioctl.in.h: Include c++defs.h.
26719         (ioctl): In C++, define a namespaced alias symbol.
26720         * modules/sys_ioctl (Depends-on): Add c++defs.
26721         (Makefile.am): Update sys/ioctl.h rule.
26722
26723         string: Avoid #define replacements in C++ mode.
26724         * lib/string.in.h: Include c++defs.h.
26725         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26726         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26727         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26728         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26729         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26730         * modules/string (Depends-on): Add c++defs.
26731         (Makefile.am): Update string.h rule.
26732
26733         stdlib: Avoid #define replacements in C++ mode.
26734         * lib/stdlib.in.h: Include c++defs.h.
26735         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26736         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26737         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26738         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26739         symbol.
26740         * modules/stdlib (Depends-on): Add c++defs.
26741         (Makefile.am): Update stdlib.h rule.
26742
26743         stdio: Avoid #define replacements in C++ mode.
26744         * lib/stdio.in.h: Include c++defs.h.
26745         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26746         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26747         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26748         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26749         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26750         namespaced alias symbol.
26751         * modules/stdio (Depends-on): Add c++defs.
26752         (Makefile.am): Update stdio.h rule.
26753
26754         spawn: Avoid #define replacements in C++ mode.
26755         * lib/spawn.in.h: Include c++defs.h.
26756         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26757         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26758         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26759         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26760         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26761         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26762         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26763         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26764         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26765         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26766         In C++, define a namespaced alias symbol.
26767         * modules/spawn (Depends-on): Add c++defs.
26768         (Makefile.am): Update spawn.h rule.
26769
26770         signal: Avoid #define replacements in C++ mode.
26771         * lib/signal.in.h: Include c++defs.h.
26772         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26773         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26774         namespaced alias symbol.
26775         * modules/signal (Depends-on): Add c++defs.
26776         (Makefile.am): Update signal.h rule.
26777
26778         search: Avoid #define replacements in C++ mode.
26779         * lib/search.in.h: Include c++defs.h.
26780         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26781         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26782         symbol.
26783         * modules/search (Depends-on): Add c++defs.
26784         (Makefile.am): Update search.h rule.
26785
26786         math: Avoid #define replacements in C++ mode.
26787         * lib/math.in.h: Include c++defs.h.
26788         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26789         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26790         trunc, truncl): In C++, define a namespaced alias symbol.
26791         * modules/math (Depends-on): Add c++defs.
26792         (Makefile.am): Update math.h rule.
26793
26794         locale: Avoid #define replacements in C++ mode.
26795         * lib/locale.in.h: Include c++defs.h.
26796         (duplocale): In C++, define a namespaced alias symbol.
26797         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26798         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26799         * modules/locale (Depends-on): Add c++defs.
26800         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26801
26802         langinfo: Avoid #define replacements in C++ mode.
26803         * lib/langinfo.in.h: Include c++defs.h.
26804         (nl_langinfo): In C++, define a namespaced alias symbol.
26805         * modules/langinfo (Depends-on): Add c++defs.
26806         (Makefile.am): Update langinfo.h rule.
26807
26808         iconv-h: Avoid #define replacements in C++ mode.
26809         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26810         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26811         symbol.
26812         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26813         whenever iconv is present.
26814         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26815         (Makefile.am): Update iconv.h rule.
26816
26817         glob: Avoid #define replacements in C++ mode.
26818         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26819         (_gl_glob_errfunc_fn): New type.
26820         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26821         symbol.
26822         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26823         (Makefile.am): Update glob.h rule.
26824
26825         fcntl-h: Avoid #define replacements in C++ mode.
26826         * lib/fcntl.in.h: Include c++defs.h.
26827         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26828         * modules/fcntl-h (Depends-on): Add c++defs.
26829         (Makefile.am): Update fcntl.h rule.
26830
26831         dirent: Avoid #define replacements in C++ mode.
26832         * lib/dirent.in.h: Include c++defs.h.
26833         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26834         namespaced alias symbol.
26835         (dirfd): Update declaration.
26836         * modules/dirent (Depends-on): Add c++defs.
26837         (Makefile.am): Update dirent.h rule.
26838
26839         ctype: Make it usable in C++ code.
26840         * lib/ctype.in.h: Include c++defs.h.
26841         (isblank): Declare as extern "C".
26842         * modules/ctype (Depends-on): Add c++defs.
26843         (Makefile.am): Update ctype.h rule.
26844
26845         New module 'c++defs'.
26846         * modules/c++defs: New file.
26847         * build-aux/c++defs.h: New file.
26848         Reported by John W. Eaton <jwe@gnu.org>.
26849
26850 2010-03-07  Bruno Haible  <bruno@clisp.org>
26851
26852         logb: Provide missing declaration for Cygwin.
26853         * lib/math.in.h (logb): New declaration.
26854         * m4/logb.m4: New file.
26855         * modules/logb (Files): Add m4/logb.m4.
26856         (Depends-on): Add math.
26857         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26858         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26860         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26861         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26862
26863 2010-03-07  Bruno Haible  <bruno@clisp.org>
26864
26865         Fix test-cond link error.
26866         * tests/test-cond.c: Include <stdio.h>.
26867
26868 2010-03-07  Bruno Haible  <bruno@clisp.org>
26869
26870         Fix test-dirent-safer link error.
26871         * modules/dirent-safer-tests (Makefile.am): Define
26872         test_dirent_safer_LDADD.
26873
26874 2010-03-07  Bruno Haible  <bruno@clisp.org>
26875
26876         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26877         among default module list.
26878
26879 2010-03-07  Bruno Haible  <bruno@clisp.org>
26880
26881         Fix link error on platforms with GNU libiconv.
26882         * modules/unistr/u8-strcoll-tests (Makefile): Define
26883         test_u8_strcoll_LDADD.
26884         * modules/unistr/u16-strcoll-tests (Makefile): Define
26885         test_u16_strcoll_LDADD.
26886         * modules/unistr/u32-strcoll-tests (Makefile): Define
26887         test_u32_strcoll_LDADD.
26888
26889 2010-03-07  Bruno Haible  <bruno@clisp.org>
26890
26891         Use POSIX declarations for socket functions.
26892         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26893         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26894         rpl_sendto): Change declaration to match POSIX.
26895         * lib/connect.c (rpl_connect): Likewise.
26896         * lib/accept.c (rpl_accept): Likewise.
26897         * lib/bind.c (rpl_bind): Likewise.
26898         * lib/getpeername.c (rpl_getpeername): Likewise.
26899         * lib/getsockname.c (rpl_getsockname): Likewise.
26900         * lib/recv.c (rpl_recv): Likewise.
26901         * lib/send.c (rpl_send): Likewise.
26902         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26903         * lib/sendto.c (rpl_sendto): Likewise.
26904
26905 2010-03-06  Bruno Haible  <bruno@clisp.org>
26906
26907         Clarify access, euidaccess, faccessat.
26908         * doc/posix-functions/faccessat.texi: Mention security problem under
26909         "Other problems", not "Portability problems".
26910         * doc/posix-functions/access.texi: Likewise. Mention a related security
26911         problem.
26912         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26913         * lib/euidaccess.c: Add comments about platforms.
26914         * lib/unistd.in.h (access, euidaccess): Add warnings.
26915
26916 2010-03-07  Bruno Haible  <bruno@clisp.org>
26917
26918         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26919         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26920         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26921         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26922         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26923         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26924         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26925         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26926         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26927         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26928         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26929         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26930         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26931         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26932         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26933         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26934         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26935         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26936         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26937         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26938         Likewise.
26939         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26940         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26941         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26942         Likewise.
26943         * tests/test-spawn.c (main): Make it work when
26944         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26945
26946 2010-03-07  Bruno Haible  <bruno@clisp.org>
26947
26948         Fix incorrect Makefile.am generation in German locale.
26949         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26950         Execute sed command with character range in C locale.
26951
26952 2010-03-06  Bruno Haible  <bruno@clisp.org>
26953
26954         Tests for module 'iconv-h'.
26955         * modules/iconv-h-tests: New file.
26956         * tests/test-iconv-h.c: New file.
26957
26958         New module 'iconv-h'.
26959         * modules/iconv-h: New file.
26960         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26961         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26962         (configure.ac): Remove gl_ICONV_H.
26963         (Makefile.am): Remove rule for iconv.h.
26964
26965 2010-03-06  Bruno Haible  <bruno@clisp.org>
26966
26967         More consistent naming of *.m4 files.
26968         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26969         * modules/wctype (Files): Update.
26970
26971         More consistent naming of *.m4 files.
26972         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26973         * modules/wchar (Files): Update.
26974
26975 2010-03-06  Jim Meyering  <meyering@redhat.com>
26976
26977         euidaccess: relax license to LGPLv2+
26978         * modules/euidaccess (License): Relax to LGPLv2+.
26979
26980 2010-03-06  Bruno Haible  <bruno@clisp.org>
26981
26982         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26983         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26984         (Makefile.am): Augment lib_SOURCES instead.
26985
26986 2010-03-04  Jim Meyering  <meyering@redhat.com>
26987
26988         utime: remove obsolete module
26989         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26990         unnecessary for years, and has been marked as obsolete for 10 months.
26991         * modules/utime: Remove file.
26992         * lib/utime.c: Remove file.
26993         * m4/utime.m4: Remove file.
26994         * m4/utimes-null.m4: Remove file.
26995         * doc/posix-functions/utime.texi (utime): Remove reference to
26996         the module.  Move the sole "fixed by gnulib" item into the
26997         "problems not fixed by Gnulib" list.
26998         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26999
27000 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27001
27002         * modules/exit (License): Relax license to LGPLv2+.
27003         (Status): Mark as obsolete.
27004         * NEWS: Mention deprecated 'exit' module.
27005         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27006         of now obsolete 'exit'.
27007
27008 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27009
27010         fts-lgpl: remove unused module
27011         * modules/fts-lgpl: Remove.
27012         * MODULES.html.sh (func_all_modules): Adjust.
27013         * check-module (find_included_lib_files): Adjust.
27014         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27015
27016 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27017
27018         copy-acl: enhance Solaris ACL error handling
27019         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27020         * lib/set-mode-acl.c (qset_acl): Likewise.
27021
27022 2010-03-02  Bruno Haible  <bruno@clisp.org>
27023
27024         spawn: Don't override the system defined values on FreeBSD 8.
27025         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27026         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27027         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27028         if HAVE_POSIX_SPAWN is 1.
27029         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27030
27031 2010-03-01  Bruno Haible  <bruno@clisp.org>
27032
27033         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27034         regarding Automake.
27035
27036 2010-02-25  Bruno Haible  <bruno@clisp.org>
27037
27038         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27039         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27040         setting, not afterwards.
27041         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27042
27043 2010-02-24  Eric Blake  <eblake@redhat.com>
27044
27045         bootstrap, git-version-gen: use timestamp
27046         * build-aux/git-version-gen (scriptversion): Force UTC.
27047         * build-aux/bootstrap (scriptversion): New variable.
27048
27049         bootstrap: allow older git
27050         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27051         older than 1.6.4.  Requested by the libvirt project.
27052
27053 2010-02-23  Eric Blake  <eblake@redhat.com>
27054
27055         warn-on-use: work with old autoconf
27056         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27057         AS_VAR semantics of autoconf 2.60.
27058         Reported by Bruno Haible.
27059
27060         bootstrap: improve some comments
27061         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27062         clarification comments.
27063
27064         gettimeofday: provide correct function
27065         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27066         when replacement is declared, otherwise provide gettimeofday.
27067         Reported by Michael Goffioul.
27068
27069 2010-02-23  Jim Meyering  <meyering@redhat.com>
27070
27071         lib-ignore: relax license to "unlimited", not LGPLv2+
27072         * modules/lib-ignore (License): Relax to "unlimited".
27073
27074 2010-02-23  Jim Meyering  <meyering@redhat.com>
27075
27076         lib-ignore: relax license to LGPLv2+
27077         * modules/lib-ignore (License): Relax to LGPLv2+.
27078
27079 2010-02-22  Eric Blake  <eblake@redhat.com>
27080
27081         lseek: avoid bash 3.2 broken pipe bug
27082         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27083         warning from bash 3.2.
27084         Reported by Ben Pfaff, with analysis from Bruno Haible.
27085
27086         bootstrap: support non-FSF copyright holder
27087         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27088         bootstrap.conf override of COPYRIGHT_HOLDER.
27089         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27090
27091         bootstrap: interoperate with gettext 0.14.1
27092         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27093
27094         bootstrap: allow for alternate submodule location
27095         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27096         hardcoding submodule location.
27097         (gnulib_mk): Allow direct use of Makefile.am.
27098
27099         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27100         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27101         rather than reconfiguring where the submodule points.
27102
27103         gettimeofday: restore support for platforms that lack function
27104         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27105         replacement if function is missing.
27106         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27107         * modules/sys_time (Makefile.am): Substitute it.
27108         * lib/sys_time.in.h (gettimeofday): Check it.
27109         Reported by Michael Goffioul.
27110
27111 2010-02-21  Bruno Haible  <bruno@clisp.org>
27112
27113         * lib/stdio.in.h (obstack_printf): Fix typo.
27114
27115 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27116
27117         vc-list-files: use bzr ls's -R option
27118         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27119         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27120
27121 2010-02-21  Jim Meyering  <meyering@redhat.com>
27122
27123         init.sh: fix EXEEXT shims to work also for names like test-prog
27124         * tests/init.sh: Re-exec a better shell, when needed.
27125         If the current shell lacks support for posix $(...), an init.sh-using
27126         test will now try to find a shell that supports that.  If EXEEXT is
27127         nonempty, we also require support for hyphen-in-alias-name and shell
27128         substitutions like ${var#glob}.  Failure to find such a shell results
27129         in a skipped test.
27130
27131 2010-02-21  Bruno Haible  <bruno@clisp.org>
27132
27133         Really work around around "broken pipe" error message from bash 3.2.
27134         * gnulib-tool (func_reset_sigpipe): Remove function.
27135         (echo): In bash 3.2, define to a function that uses printf.
27136         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27137
27138 2010-02-20  Bruno Haible  <bruno@clisp.org>
27139
27140         Restore support for automake 1.9.6 with autoconf 2.61.
27141         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27142         Reported by James Youngman <jay@gnu.org>.
27143
27144 2010-02-20  Bruno Haible  <bruno@clisp.org>
27145
27146         Improve *printf warning condition.
27147         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27148         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27149         and the function is overridden due to SIGPIPE emulation.
27150
27151 2010-02-20  Bruno Haible  <bruno@clisp.org>
27152
27153         * lib/stdio.in.h: Tweak comments.
27154
27155 2010-02-19  Bruno Haible  <bruno@clisp.org>
27156
27157         Make it easier to find modules. New gnulib-tool option '--find'.
27158         * gnulib-tool: New option --find.
27159         (func_usage): Document it.
27160         (func_sanitize_modulelist): New function, extracted from
27161         func_all_modules.
27162         (func_all_modules): Invoke it.
27163         * doc/gnulib-tool.texi (Which modules?): New node.
27164
27165 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27166
27167         * lib/sys_select.in.h: Provide select replacement even if
27168         sys/select.h exists on a system, for Interix.
27169
27170 2010-02-18  Jim Meyering  <meyering@redhat.com>
27171
27172         init.sh: don't use $(...) just yet
27173         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27174         to accommodate e.g., Solaris' /bin/sh.
27175
27176 2010-02-17  Bruno Haible  <bruno@clisp.org>
27177
27178         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27179         Reported by Ludovic Courtès <ludo@gnu.org>.
27180
27181 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27182
27183         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27184         linking with -lintl.
27185
27186 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27187
27188         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27189         if not provided by the system's netdb.h.  Reported by
27190         ludo@gnu.org (Ludovic Courtès).
27191
27192 2010-02-15  Jim Meyering  <meyering@redhat.com>
27193
27194         init.sh: improve portability and efficiency
27195         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27196         "dummy" in a for loop.
27197         Use '!', not '^' to select the complement of a character set used
27198         in a "case" statement.
27199         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27200         Suggestions from Eric Blake.
27201
27202         init.sh: automatically accommodate programs with the .exe suffix
27203         Automatically arrange for an invocation of "prog" to execute the
27204         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27205         may use the simpler "prog", yet still work when built on a system
27206         that requires specifying the added suffix.
27207         Do this by constructing a function named "prog" that invokes
27208         "prog.exe" for each .exe file in selected directories.
27209         * tests/init.sh (find_exe_basenames_): New function.
27210         (create_exe_shim_functions_): New function.
27211         (path_prepend_): Use it.
27212
27213         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27214         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27215         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27216
27217 2010-02-14  Jim Meyering  <meyering@redhat.com>
27218
27219         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27220         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27221         (sc_prohibit_hash_pjw_without_use): New rule.
27222
27223         maint.mk: allow the default upload destination dir to be overridden
27224         * top/maint.mk (upload_dest_dir_): Define with a default that
27225         preserves the status quo.
27226         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27227         Reported by Peter Simons.
27228
27229         maint.mk: prohibit inclusion of "hash.h" without_use
27230         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27231
27232 2010-02-10  Jim Meyering  <meyering@redhat.com>
27233
27234         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27235         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27236
27237 2010-02-09  Eric Blake  <ebb9@byu.net>
27238         and Bruno Haible  <bruno@clisp.org>
27239
27240         obstack-printf-posix: ensure declaration
27241         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27242         extracted from gl_FUNC_OBSTACK_PRINTF.
27243         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27244         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27245         Likewise.
27246         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27247         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27248         0.
27249
27250 2010-02-08  Bruno Haible  <bruno@clisp.org>
27251
27252         gnulib-tool: Fix typo in 2010-02-07 commit.
27253         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27254         Reported by Eric Blake.
27255
27256 2010-02-07  Bruno Haible  <bruno@clisp.org>
27257
27258         gnulib-tool: Fix up caching patches.
27259         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27260         option --no-cache. Use associative arrays when supported by the shell.
27261         (sed_comments): New variable.
27262         (modcache): Renamed from do_cache.
27263         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27264         abbreviate unnecessarily.
27265         (have_associative): New variable.
27266         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27267         way also for ksh and zsh.
27268         (func_init_sed_convert_to_cache_statements): New function, extracted
27269         from func_cache_lookup_module. Add support for associative arrays.
27270         Don't set the c_MODULE_cached variable here. Ignore all lines before
27271         the first field header. Remove only the final newline, not all trailing
27272         newlines. Support empty fields correctly. Limit the use of 'eval' to
27273         assignments.
27274         (func_get_description, func_get_status, func_get_notice,
27275         func_get_applicability, func_get_filelist, func_get_dependencies,
27276         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27277         func_get_automake_snippet, func_get_include_directive,
27278         func_get_link_directive, func_get_license, func_get_maintainer):
27279         Update documentation. List the unoptimized code first. Add support for
27280         associative arrays. Limit the use of 'eval' to assignments.
27281         (func_get_applicability): Undo stylistic pessimisations.
27282         (func_get_automake_snippet, func_get_include_directive): Reduce code
27283         duplication.
27284         (func_modules_transitive_closure, func_modules_add_dummy,
27285         func_modules_notice, func_modules_to_filelist, func_add_file,
27286         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27287         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27288         func_create_testdir, func_create_megatestdir): Update documentation.
27289
27290 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27291
27292         * gnulib-tool (func_cache_lookup_module): Store the module name
27293         belonging to the cache variable; error out if two different
27294         module names map to the same cache variable name.
27295
27296 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27297
27298         gnulib-tool: Make caching optional.
27299         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27300         Update matching short versions of --no-changelog.
27301         (func_usage): Update.
27302         (sed_extract_cache_prog): Renamed from ...
27303         (sed_extract_prog): ... this; revert to old extraction script.
27304         (func_get_description, func_get_status)
27305         (func_get_notice, func_get_applicability, func_get_filelist)
27306         (func_get_dependencies, func_get_autoconf_early_snippet)
27307         (func_get_autoconf_snippet, func_get_automake_snippet)
27308         (func_get_include_directive, func_get_link_directive)
27309         (func_get_license, func_get_maintainer): If $do_cache is false,
27310         use old, non-caching extraction scripts.
27311         Suggestion by Bruno Haible.
27312
27313 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27314
27315         gnulib-tool: cache module metainformation.
27316         * gnulib-tool (sed_extract_prog): Match newline before each
27317         header, and rewrite header to a shell variable suffix.
27318         (func_cache_var, func_cache_lookup_module): New functions,
27319         to turn a module name into a cache variable prefix, and to
27320         look up and cache module metainformation.
27321         (func_get_description, func_get_status)
27322         (func_get_notice, func_get_applicability, func_get_filelist)
27323         (func_get_dependencies, func_get_autoconf_early_snippet)
27324         (func_get_autoconf_snippet, func_get_automake_snippet)
27325         (func_get_include_directive, func_get_link_directive)
27326         (func_get_license, func_get_maintainer): Use
27327         func_cache_lookup_module.
27328
27329 2010-02-07  Bruno Haible  <bruno@clisp.org>
27330
27331         fnctl: Fix missing dependency.
27332         * modules/fcntl (Depends-on): Add getdtablesize.
27333         Reported by John W. Eaton <jwe@gnu.org>.
27334
27335 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27336
27337         Argp: fix recognition of short alias options.
27338
27339         * lib/argp-parse.c (convert_options): Fix improper use of
27340         `|' between character values.
27341         * tests/test-argp.c (group1_option): New alias option
27342         --read (-r).
27343         (group1_parser): Special handling for 'r'.
27344         (test15): New test case.
27345         (test_fun): Add test15.
27346         * tests/test-argp-2.sh: Update expected --help and --usage
27347         outputs.
27348
27349 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27350
27351         * tests/test-argp.c: Fix indentation.
27352
27353 2010-02-04  Eric Blake  <ebb9@byu.net>
27354
27355         gettimeofday: expose type of second argument
27356         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27357         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27358         * tests/test-gettimeofday.c: Use it to silence warning.
27359         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27360         the issue.
27361
27362 2010-02-03  Jim Meyering  <meyering@redhat.com>
27363
27364         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27365         * lib/regcomp.c (TYPE_SIGNED): Define.
27366         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27367
27368         regcomp.c: avoid a new -Wshadow warning
27369         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27370
27371 2010-02-01  Jim Meyering  <meyering@redhat.com>
27372
27373         removing useless parentheses in cpp #define directives
27374         For motivation, see commit c0221df4, "define STREQ(a,b)
27375         consistently, removing useless parentheses"
27376         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27377         * lib/mountlist.c (MNT_IGNORE): Likewise.
27378         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27379
27380 2010-02-01  Eric Blake  <ebb9@byu.net>
27381
27382         sys_time: use link-warning
27383         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27384         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27385         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27386         * modules/sys_time (Depends-on): Add warn-on-use.
27387         (Makefile.am): Always build replacement.
27388         (configure.ac): Update substitutions.
27389         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27390         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27391         bother with SYS_TIME_H.
27392         * modules/gettimeofday (configure.ac): Declare indicator.
27393         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27394         in use.
27395
27396         closein-tests: silence compiler warning
27397         * tests/test-closein.c (main): Ignore fread result.
27398         * modules/closein-tests (Depends-on): Add ignore-value.
27399
27400         tests: silence warning about system return
27401         * tests/test-areadlink-with-size.c (main): Ignore system result.
27402         * tests/test-areadlink.c (main): Likewise.
27403         * tests/test-areadlinkat-with-size.c (main): Likewise.
27404         * tests/test-areadlinkat.c (main): Likewise.
27405         * tests/test-canonicalize-lgpl.c (main): Likewise.
27406         * tests/test-canonicalize.c (main): Likewise.
27407         * tests/test-chown.c (main): Likewise.
27408         * tests/test-fchownat.c (main): Likewise.
27409         * tests/test-fdutimensat.c (main): Likewise.
27410         * tests/test-fstatat.c (main): Likewise.
27411         * tests/test-futimens.c (main): Likewise.
27412         * tests/test-lchown.c (main): Likewise.
27413         * tests/test-link.c (main): Likewise.
27414         * tests/test-linkat.c (main): Likewise.
27415         * tests/test-lstat.c (main): Likewise.
27416         * tests/test-mkdir.c (main): Likewise.
27417         * tests/test-mkdirat.c (main): Likewise.
27418         * tests/test-mkfifo.c (main): Likewise.
27419         * tests/test-mkfifoat.c (main): Likewise.
27420         * tests/test-mknod.c (main): Likewise.
27421         * tests/test-readlink.c (main): Likewise.
27422         * tests/test-remove.c (main): Likewise.
27423         * tests/test-rename.c (main): Likewise.
27424         * tests/test-renameat.c (main): Likewise.
27425         * tests/test-rmdir.c (main): Likewise.
27426         * tests/test-symlink.c (main): Likewise.
27427         * tests/test-symlinkat.c (main): Likewise.
27428         * tests/test-unlink.c (main): Likewise.
27429         * tests/test-unlinkat.c (main): Likewise.
27430         * tests/test-utimens.c (main): Likewise.
27431         * tests/test-utimensat.c (main): Likewise.
27432         * modules/areadlink-tests (Depends-on): Add ignore-value.
27433         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27434         * modules/areadlinkat-tests (Depends-on): Likewise.
27435         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27436         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27437         * modules/canonicalize-tests (Depends-on): Likewise.
27438         * modules/chown-tests (Depends-on): Likewise.
27439         * modules/fdutimensat-tests (Depends-on): Likewise.
27440         * modules/futimens-tests (Depends-on): Likewise.
27441         * modules/lchown-tests (Depends-on): Likewise.
27442         * modules/link-tests (Depends-on): Likewise.
27443         * modules/linkat-tests (Depends-on): Likewise.
27444         * modules/lstat-tests (Depends-on): Likewise.
27445         * modules/mkdir-tests (Depends-on): Likewise.
27446         * modules/mkfifo-tests (Depends-on): Likewise.
27447         * modules/mkfifoat-tests (Depends-on): Likewise.
27448         * modules/mknod-tests (Depends-on): Likewise.
27449         * modules/openat-tests (Depends-on): Likewise.
27450         * modules/readlink-tests (Depends-on): Likewise.
27451         * modules/remove-tests (Depends-on): Likewise.
27452         * modules/rename-tests (Depends-on): Likewise.
27453         * modules/renameat-tests (Depends-on): Likewise.
27454         * modules/rmdir-tests (Depends-on): Likewise.
27455         * modules/symlink-tests (Depends-on): Likewise.
27456         * modules/symlinkat-tests (Depends-on): Likewise.
27457         * modules/unlink-tests (Depends-on): Likewise.
27458         * modules/utimens-tests (Depends-on): Likewise.
27459         * modules/utimensat-tests (Depends-on): Likewise.
27460
27461 2010-01-31  Bruno Haible  <bruno@clisp.org>
27462
27463         Perform the same test for many <math.h> functions.
27464         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27465         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27466         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27467         of gl_MATHFUNC.
27468         * modules/acos (configure.ac): Likewise.
27469         * modules/asin (configure.ac): Likewise.
27470         * modules/atan (configure.ac): Likewise.
27471         * modules/atan2 (configure.ac): Likewise.
27472         * modules/cbrt (configure.ac): Likewise.
27473         * modules/copysign (configure.ac): Likewise.
27474         * modules/cos (configure.ac): Likewise.
27475         * modules/cosh (configure.ac): Likewise.
27476         * modules/erf (configure.ac): Likewise.
27477         * modules/erfc (configure.ac): Likewise.
27478         * modules/exp (configure.ac): Likewise.
27479         * modules/fmod (configure.ac): Likewise.
27480         * modules/hypot (configure.ac): Likewise.
27481         * modules/j0 (configure.ac): Likewise.
27482         * modules/j1 (configure.ac): Likewise.
27483         * modules/jn (configure.ac): Likewise.
27484         * modules/lgamma (configure.ac): Likewise.
27485         * modules/log (configure.ac): Likewise.
27486         * modules/log10 (configure.ac): Likewise.
27487         * modules/log1p (configure.ac): Likewise.
27488         * modules/pow (configure.ac): Likewise.
27489         * modules/remainder (configure.ac): Likewise.
27490         * modules/sin (configure.ac): Likewise.
27491         * modules/sinh (configure.ac): Likewise.
27492         * modules/tan (configure.ac): Likewise.
27493         * modules/tanh (configure.ac): Likewise.
27494         * modules/y0 (configure.ac): Likewise.
27495         * modules/y1 (configure.ac): Likewise.
27496         * modules/yn (configure.ac): Likewise.
27497         Suggested by Paolo Bonzini.
27498
27499 2010-01-31  Bruno Haible  <bruno@clisp.org>
27500
27501         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27502
27503 2010-01-31  Bruno Haible  <bruno@clisp.org>
27504
27505         Work around getdelim() bug on FreeBSD 8.0.
27506         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27507         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27508         not work.
27509         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27510         is 1.
27511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27512         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27513         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27514         a non-zero size.
27515         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27516
27517 2010-01-31  Bruno Haible  <bruno@clisp.org>
27518
27519         Work around getline() bug on FreeBSD 8.0.
27520         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27521         and a non-zero size.
27522         * tests/test-getline.c (main): Likewise.
27523         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27524         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27525
27526 2010-01-28  Eric Blake  <ebb9@byu.net>
27527
27528         regex: fix build failure
27529         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27530         platforms.
27531
27532 2010-01-28  Jim Meyering  <meyering@redhat.com>
27533
27534         regex: do not ignore memory allocation failure
27535         * lib/regex_internal.c (create_cd_newstate): Detect
27536         re_node_set_init_copy failure.   Extracted from glibc commit
27537         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27538
27539         regex: sync more white-space changes from libc
27540         * lib/regex_internal.c: White-space only changes.
27541         * lib/regexec.c: Likewise.
27542
27543         regex: add many uses of __attribute_warn_unused_result__
27544         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27545         * lib/regexec.c: Likewise.
27546         Extracted from a messy glibc commit.
27547
27548         regcomp.c: spelling and merge-artifact from glibc
27549         * lib/regcomp.c: Merge remainder of glibc's
27550         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27551
27552         regcomp.c: sync white-space changes from glibc
27553         * lib/regcomp.c: Merge to accommodate white space
27554         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27555
27556         regcomp.c: do not ignore internal return values
27557         * lib/regcomp.c: Do not ignore internal return values.
27558         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27559         but without its white-space changes and spelling fixes.
27560
27561         regex_internal.h: define __attribute_warn_unused_result__
27562         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27563
27564         maint: add a syntax-check rule to check for vulnerable Makefile.in
27565         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27566
27567 2010-01-27  Jim Meyering  <meyering@redhat.com>
27568
27569         ncftpput-ftp: clean up spaces
27570         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27571         Remove trailing blanks.
27572
27573 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27574
27575         * build-aux/git-version-gen: Fix copyright statement.
27576         * build-aux/gnupload: Likewise.
27577         * tests/test-arcfour.c: Likewise.
27578         * tests/test-arctwo.c: Likewise.
27579         * tests/test-count-one-bits.c: Likewise.
27580         * tests/test-crc.c: Likewise.
27581         * tests/test-des.c: Likewise.
27582         * tests/test-gc-arcfour.c: Likewise.
27583         * tests/test-gc-arctwo.c: Likewise.
27584         * tests/test-gc-des.c: Likewise.
27585         * tests/test-gc-hmac-md5.c: Likewise.
27586         * tests/test-gc-hmac-sha1.c: Likewise.
27587         * tests/test-gc-md2.c: Likewise.
27588         * tests/test-gc-md4.c: Likewise.
27589         * tests/test-gc-md5.c: Likewise.
27590         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27591         * tests/test-gc-rijndael.c: Likewise.
27592         * tests/test-gc-sha1.c: Likewise.
27593         * tests/test-gc.c: Likewise.
27594         * tests/test-gethostname.c: Likewise.
27595         * tests/test-gettimeofday.c: Likewise.
27596         * tests/test-hash.c: Likewise.
27597         * tests/test-hmac-md5.c: Likewise.
27598         * tests/test-hmac-sha1.c: Likewise.
27599         * tests/test-md2.c: Likewise.
27600         * tests/test-md4.c: Likewise.
27601         * tests/test-md5.c: Likewise.
27602         * tests/test-memchr.c: Likewise.
27603         * tests/test-memchr2.c: Likewise.
27604         * tests/test-memcmp.c: Likewise.
27605         * tests/test-memmem.c: Likewise.
27606         * tests/test-memrchr.c: Likewise.
27607         * tests/test-rawmemchr.c: Likewise.
27608         * tests/test-read-file.c: Likewise.
27609         * tests/test-rijndael.c: Likewise.
27610         * tests/test-sockets.c: Likewise.
27611         * tests/test-strchrnul.c: Likewise.
27612         * tests/test-strstr.c: Likewise.
27613         * tests/test-strtod.c: Likewise.
27614         * build-aux/ncftpput-ftp: Likewise.
27615
27616 2010-01-26  Eric Blake  <ebb9@byu.net>
27617
27618         ignore-value: update recommended header name
27619         * modules/ignore-value (Include): Only use <> for headers that
27620         exist in glibc.
27621
27622 2010-01-26  Jim Meyering  <meyering@redhat.com>
27623
27624         test-userspec.c: avoid compiler warnings
27625         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27626         and "initialization discards qualifiers..." warnings.
27627         Put the first "uid" in its own scope, and make char* members "const".
27628
27629 2010-01-25  Bruno Haible  <bruno@clisp.org>
27630
27631         gnulib-tool: Make warning diagnostics consistent.
27632         * gnulib-tool (func_warning): New function.
27633         Use it everywhere where gnulib-tool produces output to stderr and it is
27634         not a fatal error.
27635
27636 2010-01-25  Bruno Haible  <bruno@clisp.org>
27637
27638         Fix test dependencies.
27639         * modules/xstrtol-tests (Depends-on): Add inttypes.
27640         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27641
27642 2010-01-25 Pádraig Brady <P@draigBrady.com>
27643
27644         syntax-check: detect incorrect boolean macro values in config.h
27645         * modules/maintainer-makefile (configure.ac): Parameterize the location
27646         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27647         The logic is from Eric Blake and the location indicated by Jim Meyering.
27648         Note the more natural CONFIG_HEADER name is prohibited by automake
27649         for backwards compatibility reasons.
27650         * top/maint.mk (sc_Wundef_boolean): New rule.
27651
27652 2010-01-25  Jim Meyering  <meyering@redhat.com>
27653
27654         bootstrap: detect MacOS 10.6's shasum, too
27655         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27656         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27657
27658 2010-01-23  Jim Meyering  <meyering@redhat.com>
27659
27660         xstrtoll: new module
27661         * modules/xstrtoll: New file.
27662         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27663         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27664         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27665         ./configure fails if you use this module and lack "long long".
27666         * modules/xstrtoll-tests: New module.
27667         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27668         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27669         new init.sh-based test framework.
27670
27671 2010-01-24  Bruno Haible  <bruno@clisp.org>
27672
27673         Tests for module 'yn'.
27674         * modules/yn-tests: New file.
27675         * tests/test-yn.c: New file.
27676
27677         Tests for module 'y1'.
27678         * modules/y1-tests: New file.
27679         * tests/test-y1.c: New file.
27680
27681         Tests for module 'y0'.
27682         * modules/y0-tests: New file.
27683         * tests/test-y0.c: New file.
27684
27685         Tests for module 'tanh'.
27686         * modules/tanh-tests: New file.
27687         * tests/test-tanh.c: New file.
27688
27689         Tests for module 'tan'.
27690         * modules/tan-tests: New file.
27691         * tests/test-tan.c: New file.
27692
27693         Tests for module 'sqrt'.
27694         * modules/sqrt-tests: New file.
27695         * tests/test-sqrt.c: New file.
27696
27697         Tests for module 'sinh'.
27698         * modules/sinh-tests: New file.
27699         * tests/test-sinh.c: New file.
27700
27701         Tests for module 'sin'.
27702         * modules/sin-tests: New file.
27703         * tests/test-sin.c: New file.
27704
27705         Tests for module 'rint'.
27706         * modules/rint-tests: New file.
27707         * tests/test-rint.c: New file.
27708
27709         Tests for module 'remainder'.
27710         * modules/remainder-tests: New file.
27711         * tests/test-remainder.c: New file.
27712
27713         Tests for module 'pow'.
27714         * modules/pow-tests: New file.
27715         * tests/test-pow.c: New file.
27716
27717         Tests for module 'nextafter'.
27718         * modules/nextafter-tests: New file.
27719         * tests/test-nextafter.c: New file.
27720
27721         Tests for module 'modf'.
27722         * modules/modf-tests: New file.
27723         * tests/test-modf.c: New file.
27724
27725         Tests for module 'logb'.
27726         * modules/logb-tests: New file.
27727         * tests/test-logb.c: New file.
27728
27729         Tests for module 'log1p'.
27730         * modules/log1p-tests: New file.
27731         * tests/test-log1p.c: New file.
27732
27733         Tests for module 'log10'.
27734         * modules/log10-tests: New file.
27735         * tests/test-log10.c: New file.
27736
27737         Tests for module 'log'.
27738         * modules/log-tests: New file.
27739         * tests/test-log.c: New file.
27740
27741         Tests for module 'lgamma'.
27742         * modules/lgamma-tests: New file.
27743         * tests/test-lgamma.c: New file.
27744
27745         Tests for module 'ldexp'.
27746         * modules/ldexp-tests: New file.
27747         * tests/test-ldexp.c: New file.
27748
27749         Tests for module 'jn'.
27750         * modules/jn-tests: New file.
27751         * tests/test-jn.c: New file.
27752
27753         Tests for module 'j1'.
27754         * modules/j1-tests: New file.
27755         * tests/test-j1.c: New file.
27756
27757         Tests for module 'j0'.
27758         * modules/j0-tests: New file.
27759         * tests/test-j0.c: New file.
27760
27761         Tests for module 'hypot'.
27762         * modules/hypot-tests: New file.
27763         * tests/test-hypot.c: New file.
27764
27765         Tests for module 'fmod'.
27766         * modules/fmod-tests: New file.
27767         * tests/test-fmod.c: New file.
27768
27769         Tests for module 'fabs'.
27770         * modules/fabs-tests: New file.
27771         * tests/test-fabs.c: New file.
27772
27773         Tests for module 'exp'.
27774         * modules/exp-tests: New file.
27775         * tests/test-exp.c: New file.
27776
27777         Tests for module 'erfc'.
27778         * modules/erfc-tests: New file.
27779         * tests/test-erfc.c: New file.
27780
27781         Tests for module 'erf'.
27782         * modules/erf-tests: New file.
27783         * tests/test-erf.c: New file.
27784
27785         Tests for module 'cosh'.
27786         * modules/cosh-tests: New file.
27787         * tests/test-cosh.c: New file.
27788
27789         Tests for module 'cos'.
27790         * modules/cos-tests: New file.
27791         * tests/test-cos.c: New file.
27792
27793         Tests for module 'copysign'.
27794         * modules/copysign-tests: New file.
27795         * tests/test-copysign.c: New file.
27796
27797         Tests for module 'cbrt'.
27798         * modules/cbrt-tests: New file.
27799         * tests/test-cbrt.c: New file.
27800
27801         Tests for module 'atan2'.
27802         * modules/atan2-tests: New file.
27803         * tests/test-atan2.c: New file.
27804
27805         Tests for module 'atan'.
27806         * modules/atan-tests: New file.
27807         * tests/test-atan.c: New file.
27808
27809         Tests for module 'asin'.
27810         * modules/asin-tests: New file.
27811         * tests/test-asin.c: New file.
27812
27813         Tests for module 'acos'.
27814         * modules/acos-tests: New file.
27815         * tests/test-acos.c: New file.
27816
27817 2010-01-24  Bruno Haible  <bruno@clisp.org>
27818
27819         Fix tests for common <math.h> functions.
27820         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27821         code snippet that references the function pointer, rather than merely
27822         calling the function. Substitute the FUNC_LIBM variable.
27823         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27824         * modules/acos (configure.ac): Likewise.
27825         * modules/asin (configure.ac): Likewise.
27826         * modules/atan (configure.ac): Likewise.
27827         * modules/atan2 (configure.ac): Likewise.
27828         * modules/cbrt (configure.ac): Likewise.
27829         * modules/copysign (configure.ac): Likewise.
27830         * modules/cos (configure.ac): Likewise.
27831         * modules/cosh (configure.ac): Likewise.
27832         * modules/erf (configure.ac): Likewise.
27833         * modules/erfc (configure.ac): Likewise.
27834         * modules/exp (configure.ac): Likewise.
27835         * modules/fabs (configure.ac): Likewise.
27836         * modules/fmod (configure.ac): Likewise.
27837         * modules/hypot (configure.ac): Likewise.
27838         * modules/j0 (configure.ac): Likewise.
27839         * modules/j1 (configure.ac): Likewise.
27840         * modules/jn (configure.ac): Likewise.
27841         * modules/ldexp (configure.ac): Likewise.
27842         * modules/lgamma (configure.ac): Likewise.
27843         * modules/log (configure.ac): Likewise.
27844         * modules/log10 (configure.ac): Likewise.
27845         * modules/log1p (configure.ac): Likewise.
27846         * modules/logb (configure.ac): Likewise.
27847         * modules/modf (configure.ac): Likewise.
27848         * modules/nextafter (configure.ac): Likewise.
27849         * modules/pow (configure.ac): Likewise.
27850         * modules/remainder (configure.ac): Likewise.
27851         * modules/rint (configure.ac): Likewise.
27852         * modules/sin (configure.ac): Likewise.
27853         * modules/sinh (configure.ac): Likewise.
27854         * modules/tan (configure.ac): Likewise.
27855         * modules/tanh (configure.ac): Likewise.
27856         * modules/y0 (configure.ac): Likewise.
27857         * modules/y1 (configure.ac): Likewise.
27858         * modules/yn (configure.ac): Likewise.
27859
27860 2010-01-24  Bruno Haible  <bruno@clisp.org>
27861
27862         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27863         * tests/test-acosl.c (x): New variable.
27864         (main): Store argument in x and fetch it from x.
27865         * tests/test-asinl.c (x): New variable.
27866         (main): Store argument in x and fetch it from x.
27867         * tests/test-atanl.c (x): New variable.
27868         (main): Store argument in x and fetch it from x.
27869         * tests/test-cosl.c (x): New variable.
27870         (main): Store argument in x and fetch it from x.
27871         * tests/test-expl.c (x): New variable.
27872         (main): Store argument in x and fetch it from x.
27873         * tests/test-logl.c (x): New variable.
27874         (main): Store argument in x and fetch it from x.
27875         * tests/test-sinl.c (x): New variable.
27876         (main): Store argument in x and fetch it from x.
27877         * tests/test-sqrtl.c (x): New variable.
27878         (main): Store argument in x and fetch it from x.
27879         * tests/test-tanl.c (x): New variable.
27880         (main): Store argument in x and fetch it from x.
27881
27882 2010-01-24  Bruno Haible  <bruno@clisp.org>
27883
27884         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27885         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27886         assignments to the initial TESTS_ENVIRONMENT.
27887         * doc/gnulib.texi (Unit test modules): Document it.
27888         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27889         TESTS_ENVIRONMENT.
27890         * modules/btowc-tests (Makefile.am): Likewise.
27891         * modules/c-stack-tests (Makefile.am): Likewise.
27892         * modules/c-strcase-tests (Makefile.am): Likewise.
27893         * modules/copy-file-tests (Makefile.am): Likewise.
27894         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27895         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27896         * modules/mbrtowc-tests (Makefile.am): Likewise.
27897         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27898         * modules/mbscasestr-tests (Makefile.am): Likewise.
27899         * modules/mbschr-tests (Makefile.am): Likewise.
27900         * modules/mbscspn-tests (Makefile.am): Likewise.
27901         * modules/mbsinit-tests (Makefile.am): Likewise.
27902         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27903         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27904         * modules/mbspbrk-tests (Makefile.am): Likewise.
27905         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27906         * modules/mbsrchr-tests (Makefile.am): Likewise.
27907         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27908         * modules/mbsspn-tests (Makefile.am): Likewise.
27909         * modules/mbsstr-tests (Makefile.am): Likewise.
27910         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27911         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27912         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27913         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27914         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27915         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27916         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27917         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27918         * modules/wcrtomb-tests (Makefile.am): Likewise.
27919         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27920         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27921         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27922         assignments from TESTS_ENVIRONMENT.
27923         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27924         augmentation.
27925         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27926         * modules/atexit-tests (Makefile.am): Likewise.
27927         * modules/binary-io-tests (Makefile.am): Likewise.
27928         * modules/closein-tests (Makefile.am): Likewise.
27929         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27930         * modules/exclude-tests (Makefile.am): Likewise.
27931         * modules/fflush-tests (Makefile.am): Likewise.
27932         * modules/fpending-tests (Makefile.am): Likewise.
27933         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27934         * modules/freadahead-tests (Makefile.am): Likewise.
27935         * modules/freadptr-tests (Makefile.am): Likewise.
27936         * modules/freadseek-tests (Makefile.am): Likewise.
27937         * modules/fseek-tests (Makefile.am): Likewise.
27938         * modules/fseeko-tests (Makefile.am): Likewise.
27939         * modules/ftell-tests (Makefile.am): Likewise.
27940         * modules/ftello-tests (Makefile.am): Likewise.
27941         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27942         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27943         * modules/lseek-tests (Makefile.am): Likewise.
27944         * modules/parse-duration-tests (Makefile.am): Likewise.
27945         * modules/perror-tests (Makefile.am): Likewise.
27946         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27947         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27948         * modules/pipe-tests (Makefile.am): Likewise.
27949         * modules/pread-tests (Makefile.am): Likewise.
27950         * modules/printf-posix-tests (Makefile.am): Likewise.
27951         * modules/select-tests (Makefile.am): Likewise.
27952         * modules/sigpipe-tests (Makefile.am): Likewise.
27953         * modules/tsearch-tests (Makefile.am): Likewise.
27954         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27955         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27956         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27957         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27958         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27959         * modules/version-etc-tests (Makefile.am): Likewise.
27960         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27961         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27962         * modules/xalloc-die-tests (Makefile.am): Likewise.
27963         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27964         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27965         * modules/xstrtol-tests (Makefile.am): Likewise.
27966         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27967         * modules/yesno-tests (Makefile.am): Likewise.
27968         Suggested by Jim Meyering.
27969
27970 2010-01-24  Bruno Haible  <bruno@clisp.org>
27971
27972         More documentation.
27973         * doc/gnulib.texi (Writing modules): New chapter.
27974         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27975         the new chapter.
27976
27977 2010-01-24  Jim Meyering  <meyering@redhat.com>
27978
27979         maint.mk: do not prepend "./" after filtering
27980         * top/maint.mk (_prepend_srcdir_prefix): New variable
27981         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27982         "./" when $(srcdir) is ".".
27983
27984         define STREQ(a,b) consistently, removing useless parentheses
27985         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27986         since the only risk is that "a" or "b" contains an unparenthesized
27987         comma, but if either did that, STREQ would have 3 or more arguments.
27988         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27989         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27990         * lib/hash-triple.c (STREQ): Likewise.
27991         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27992         * lib/getugroups.c (STREQ): Likewise.
27993
27994 2010-01-23  Jim Meyering  <meyering@redhat.com>
27995
27996         maint.mk: fix syntax-check in a non-srcdir build directory
27997         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27998         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27999
28000 2010-01-22  Jim Meyering  <meyering@redhat.com>
28001
28002         userspec: add unit tests
28003         * tests/test-userspec.c: New file.
28004         * modules/userspec-tests: Likewise.
28005
28006 2010-01-21  Jim Meyering  <meyering@redhat.com>
28007
28008         maint.mk: handle source file names containing "." robustly
28009         * top/maint.mk (_dot_escaped_srcdir): Define.
28010         (VC_LIST): Use it in LHS of sed substitution.
28011
28012 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28013
28014         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28015         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28016         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28017         from a non-srcdir build.
28018
28019 2010-01-20  Eric Blake  <ebb9@byu.net>
28020
28021         warn-on-use: use instead of link-warning
28022         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28023         * modules/unistd (Depends-on, Makefile.am): Likewise.
28024         * modules/arpa_inet (Depends-on): Replace link-warning with
28025         warn-on-use.
28026         (Makefile.am): Update rules accordingly.
28027         * modules/ctype (Depends-on, Makefile.am): Likewise.
28028         * modules/dirent (Depends-on, Makefile.am): Likewise.
28029         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28030         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28031         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28032         * modules/locale (Depends-on, Makefile.am): Likewise.
28033         * modules/math (Depends-on, Makefile.am): Likewise.
28034         * modules/search (Depends-on, Makefile.am): Likewise.
28035         * modules/signal (Depends-on, Makefile.am): Likewise.
28036         * modules/spawn (Depends-on, Makefile.am): Likewise.
28037         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28038         * modules/string (Depends-on, Makefile.am): Likewise.
28039         * modules/strings (Depends-on, Makefile.am): Likewise.
28040         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28041         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28042         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28043         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28044         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28045         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28046         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28047         * modules/wchar (Depends-on, Makefile.am): Likewise.
28048         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28049         should be poisoned.
28050         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28051         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28052         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28053         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28054         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28055         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28056         * m4/math_h.m4 (gl_MATH_H): Likewise.
28057         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28058         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28059         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28060         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28061         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28062         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28063         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28064         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28065         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28066         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28067         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28068         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28069         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28070         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28071         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28072         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28073         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28074         GL_LINK_WARNING.
28075         * lib/ctype.in.h: Likewise.
28076         * lib/dirent.in.h: Likewise.
28077         * lib/fcntl.in.h: Likewise.
28078         * lib/inttypes.in.h: Likewise.
28079         * lib/langinfo.in.h: Likewise.
28080         * lib/locale.in.h: Likewise.
28081         * lib/math.in.h: Likewise.
28082         * lib/search.in.h: Likewise.
28083         * lib/signal.in.h: Likewise.
28084         * lib/spawn.in.h: Likewise.
28085         * lib/stdio.in.h: Likewise.
28086         * lib/stdlib.in.h: Likewise.
28087         * lib/string.in.h: Likewise.
28088         * lib/strings.in.h: Likewise.
28089         * lib/sys_file.in.h: Likewise.
28090         * lib/sys_ioctl.in.h: Likewise.
28091         * lib/sys_select.in.h: Likewise.
28092         * lib/sys_socket.in.h: Likewise.
28093         * lib/sys_stat.in.h: Likewise.
28094         * lib/sys_times.in.h: Likewise.
28095         * lib/sys_utsname.in.h: Likewise.
28096         * lib/unistd.in.h: Likewise.
28097         * lib/wchar.in.h: Likewise.
28098
28099 2010-01-20  Bruno Haible  <bruno@clisp.org>
28100
28101         Avoid duplicate -lm.
28102         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28103         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28104         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28105         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28106         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28107         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28108         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28109         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28110         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28111         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28112         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28113         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28114         Reported by Paolo Bonzini.
28115
28116 2010-01-19  Bruno Haible  <bruno@clisp.org>
28117
28118         langinfo, nl_langinfo: Relicense under LGPLv2+.
28119         * modules/langinfo (License): Change to LGPLv2+.
28120         * modules/nl_langinfo (License): Likewise.
28121         Patch by David Lutterkort <lutter@redhat.com>.
28122
28123 2010-01-19  Bruno Haible  <bruno@clisp.org>
28124
28125         Avoid compilation error with cc on OSF/1 5.1.
28126         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28127         statement, not before.
28128         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28129
28130 2010-01-18  Bruno Haible  <bruno@clisp.org>
28131
28132         Avoid a link error due to the __printf__ symbol.
28133         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28134         and 2.6.x.
28135         (__format__, __printf__): Remove definitions.
28136         * lib/argp-fmtstream.h: Likewise.
28137         * lib/argp.h: Likewise.
28138         * lib/error.h: Likewise.
28139         * lib/vasnprintf.h: Likewise.
28140         * lib/xprintf.h: Likewise.
28141         * lib/xvasprintf.h: Likewise.
28142         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28143
28144 2010-01-18  Bruno Haible  <bruno@clisp.org>
28145
28146         Tests for module 'tanl'.
28147         * modules/tanl-tests: New file.
28148         * tests/test-tanl.c: New file.
28149
28150         Tests for module 'sqrtl'.
28151         * modules/sqrtl-tests: New file.
28152         * tests/test-sqrtl.c: New file.
28153
28154         Tests for module 'sinl'.
28155         * modules/sinl-tests: New file.
28156         * tests/test-sinl.c: New file.
28157
28158         Tests for module 'logl'.
28159         * modules/logl-tests: New file.
28160         * tests/test-logl.c: New file.
28161
28162         Tests for module 'expl'.
28163         * modules/expl-tests: New file.
28164         * tests/test-expl.c: New file.
28165
28166         Tests for module 'cosl'.
28167         * modules/cosl-tests: New file.
28168         * tests/test-cosl.c: New file.
28169
28170         Tests for module 'atanl'.
28171         * modules/atanl-tests: New file.
28172         * tests/test-atanl.c: New file.
28173
28174         Tests for module 'asinl'.
28175         * modules/asinl-tests: New file.
28176         * tests/test-asinl.c: New file.
28177
28178         Tests for module 'acosl'.
28179         * modules/acosl-tests: New file.
28180         * tests/test-acosl.c: New file.
28181
28182         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28183         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28184         tanl): Use the standard gnulib idiom.
28185         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28186         * lib/sinl.c: Likewise.
28187         * lib/tanl.c: Don't include trigl.c.
28188         (kernel_tanl): Make static.
28189         * lib/sincosl.c: Include trigl.h first.
28190         * lib/trigl.c: Likewise.
28191         * m4/acosl.m4: New file.
28192         * m4/asinl.m4: New file.
28193         * m4/atanl.m4: New file.
28194         * m4/cosl.m4: New file.
28195         * m4/expl.m4: New file.
28196         * m4/logl.m4: New file.
28197         * m4/sinl.m4: New file.
28198         * m4/sqrtl.m4: New file.
28199         * m4/tanl.m4: New file.
28200         * m4/mathl.m4: Remove file.
28201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28202         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28203         Don't initialize GNULIB_MATHL.
28204         * modules/acosl: New file.
28205         * modules/asinl: New file.
28206         * modules/atanl: New file.
28207         * modules/cosl: New file.
28208         * modules/expl: New file.
28209         * modules/logl: New file.
28210         * modules/sinl: New file.
28211         * modules/sqrtl: New file.
28212         * modules/tanl: New file.
28213         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28214         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28215         substitute GNULIB_MATHL.
28216         * modules/mathl: Rewritten.
28217         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28218         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28219         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28220         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28221         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28222         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28223         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28224         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28225         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28226
28227 2010-01-18  Bruno Haible  <bruno@clisp.org>
28228
28229         sqrt: Make gl_FUNC_SQRT requirable.
28230         * m4/sqrt.m4: New file.
28231         * modules/sqrt (Files): Add it.
28232         (configure.ac): Invoke gl_FUNC_SQRT.
28233
28234 2010-01-18  Bruno Haible  <bruno@clisp.org>
28235
28236         New modules for common <math.h> functions.
28237         * m4/mathfunc.m4: New file.
28238         * modules/acos: New file.
28239         * modules/asin: New file.
28240         * modules/atan: New file.
28241         * modules/atan2: New file.
28242         * modules/cbrt: New file.
28243         * modules/copysign: New file.
28244         * modules/cos: New file.
28245         * modules/cosh: New file.
28246         * modules/erf: New file.
28247         * modules/erfc: New file.
28248         * modules/exp: New file.
28249         * modules/fabs: New file.
28250         * modules/fmod: New file.
28251         * modules/hypot: New file.
28252         * modules/j0: New file.
28253         * modules/j1: New file.
28254         * modules/jn: New file.
28255         * modules/ldexp: New file.
28256         * modules/lgamma: New file.
28257         * modules/log: New file.
28258         * modules/log10: New file.
28259         * modules/log1p: New file.
28260         * modules/logb: New file.
28261         * modules/modf: New file.
28262         * modules/nextafter: New file.
28263         * modules/pow: New file.
28264         * modules/remainder: New file.
28265         * modules/rint: New file.
28266         * modules/sin: New file.
28267         * modules/sinh: New file.
28268         * modules/sqrt: New file.
28269         * modules/tan: New file.
28270         * modules/tanh: New file.
28271         * modules/y0: New file.
28272         * modules/y1: New file.
28273         * modules/yn: New file.
28274         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28275         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28276         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28277         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28278         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28279         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28280         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28281         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28282         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28283         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28284         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28285         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28286         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28287         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28288         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28289         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28290         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28291         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28292         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28293         * doc/posix-functions/log.texi: Mention the 'log' module.
28294         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28295         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28296         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28297         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28298         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28299         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28300         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28301         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28302         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28303         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28304         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28305         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28306         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28307         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28308         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28309         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28310
28311 2010-01-18  Jim Meyering  <meyering@redhat.com>
28312
28313         ignore-value: relax license to LGPLv2+
28314         * modules/ignore-value (License): Relax to LGPLv2+.
28315
28316         getdate: don't leak when TZ contains two or more '"'s
28317         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28318         double quote in TZ after the first one.
28319
28320         readtokens: do not leak internal token_lengths buffer
28321         * lib/readtokens.c (readtokens): Free the local, lengths,
28322         when the supplied "token_lengths" parameter is NULL.
28323
28324 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28325
28326         Fix a couple of missing LIBTHREAD link failures on AIX.
28327         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28328         $(LIBTHREAD).
28329         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28330
28331         Link test-poll against INET_PTON_LIB.
28332         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28333         for inet_pton on Solaris 10.
28334
28335 2010-01-17  Bruno Haible  <bruno@clisp.org>
28336
28337         unistdio/*-sprintf: Fix typo in module description.
28338         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28339         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28340         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28341         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28342         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28343         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28344         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28345         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28346
28347 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28348
28349         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28350         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28351         variables in shell case patterns, for AIX and HP-UX ksh.
28352
28353         Split large sed scripts, for HP-UX sed.
28354         * modules/stdio: Split sed scripts around 50 sed commands,
28355         to avoid HP-UX limit of 99 commands, in the near future.
28356         * modules/string: Likewise.
28357         * modules/unistd: Likewise.
28358
28359         gnulib-tool: avoid writing in the current directory.
28360         * gnulib-tool (func_emit_lib_Makefile_am)
28361         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28362         not in the current directory, so concurrent gnulib-tool
28363         instances do not interfere.
28364
28365 2010-01-16  Jim Meyering  <meyering@redhat.com>
28366
28367         doc: update users.txt
28368         * users.txt: Add grep.
28369         (diffutils, gzip): Update URLs.
28370
28371 2010-01-12  Bruno Haible  <bruno@clisp.org>
28372
28373         posix_spawn: Avoid test failure on Cygwin.
28374         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28375         characters.
28376         Reported by Simon Josefsson.
28377
28378 2010-01-12  Bruno Haible  <bruno@clisp.org>
28379
28380         * tests/test-cond.c (main): When skipping the test, show the reason.
28381
28382 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28383
28384         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28385
28386 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28387
28388         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28389         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28390
28391 2010-01-12  Eric Blake  <ebb9@byu.net>
28392
28393         build: guarantee AS_VAR_IF
28394         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28395         (gl_AS_VAR_IF): Move...
28396         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28397         Reported by Simon Josefsson.
28398
28399 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28400
28401         * lib/stdio.in.h: Fix typo.
28402
28403 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28404
28405         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28406         libgpg-error.
28407
28408 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28409
28410         * tests/test-xalloc-die.sh: Use $EXEEXT.
28411
28412 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28413             Bruno Haible  <bruno@clisp.org>
28414
28415         getlogin, getlogin_r: Avoid test failure.
28416         * tests/test-getlogin.c: Include <stdio.h>.
28417         (main): Skip the test when the function fails because stdin is not a
28418         tty.
28419         * tests/test-getlogin_r.c: Include <stdio.h>.
28420         (main): Skip the test when the function fails because stdin is not a
28421         tty.
28422
28423 2010-01-11  Eric Blake  <ebb9@byu.net>
28424
28425         tests: avoid more large file warnings
28426         * tests/test-fflush.c: Avoid warning about ftell use.
28427         * tests/test-fseek.c: Avoid warning about fseek use.
28428
28429 2010-01-10  Bruno Haible  <bruno@clisp.org>
28430
28431         nproc: Work better on Linux when /proc and /sys are not mounted.
28432         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28433         as lower bound when, on glibc/Linux systems,
28434         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28435         Suggested by Pádraig Brady <P@draigbrady.com>.
28436         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28437
28438         nproc: Refactor.
28439         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28440         extracted from num_processors.
28441         (num_processors): Call it.
28442
28443 2010-01-11  Jim Meyering  <meyering@redhat.com>
28444
28445         utimecmp: avoid new warning from upcoming gcc-4.5.0
28446         * lib/utimecmp.c (BILLION): Define using #define rather than an
28447         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28448
28449 2010-01-11  Eric Blake  <ebb9@byu.net>
28450
28451         math: add portability warnings for classification macros
28452         * modules/math (Depends-on): Add warn-on-use.
28453         (Makefile.am): Provide new substitutions.
28454         * m4/math_h.m4 (gl_MATH_H): Require inline.
28455         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28456         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28457         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28458         implement warnings.
28459
28460         unistd: warn on use of environ without module
28461         * modules/unistd (Depends-on): Add warn-on-use.
28462         (Makefile.am): Provide new substitutions.
28463         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28464         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28465
28466         stdio: warn on suspicious uses
28467         * modules/stdio (Depends-on): Add warn-on-use.
28468         (Makefile.am): Provide new substitutions.
28469         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28470         fseeko.
28471         * lib/stdio.in.h (gets): Always warn on use.
28472         (fseek, ftell): Adjust when warnings are issued, and honor
28473         _GL_NO_LARGE_FILES as a way to silence the warning.
28474         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28475         any warning about large file offsets.
28476         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28477         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28478         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28479         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28480         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28481         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28482         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28483         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28484
28485         warn-on-use: new module
28486         * modules/warn-on-use: New file.
28487         * build-aux/warn-on-use.h: Likewise.
28488         * m4/warn-on-use.m4: Likewise.
28489         * MODULES.html.sh (Support for building): Mention it.
28490
28491 2010-01-10  Bruno Haible  <bruno@clisp.org>
28492
28493         Tests for module 'unistr/u32-strdup'.
28494         * modules/unistr/u32-strdup-tests: New file.
28495         * tests/unistr/test-u32-strdup.c: New file.
28496
28497         Tests for module 'unistr/u16-strdup'.
28498         * modules/unistr/u16-strdup-tests: New file.
28499         * tests/unistr/test-u16-strdup.c: New file.
28500
28501         Tests for module 'unistr/u8-strdup'.
28502         * modules/unistr/u8-strdup-tests: New file.
28503         * tests/unistr/test-u8-strdup.c: New file.
28504         * tests/unistr/test-strdup.h: New file.
28505
28506         Tests for module 'unistr/u32-strncmp'.
28507         * modules/unistr/u32-strncmp-tests: New file.
28508         * tests/unistr/test-u32-strncmp.c: New file.
28509
28510         Tests for module 'unistr/u16-strncmp'.
28511         * modules/unistr/u16-strncmp-tests: New file.
28512         * tests/unistr/test-u16-strncmp.c: New file.
28513
28514         Tests for module 'unistr/u8-strncmp'.
28515         * modules/unistr/u8-strncmp-tests: New file.
28516         * tests/unistr/test-u8-strncmp.c: New file.
28517         * tests/unistr/test-strncmp.h: New file.
28518
28519         Tests for module 'unistr/u32-strcoll'.
28520         * modules/unistr/u32-strcoll-tests: New file.
28521         * tests/unistr/test-u32-strcoll.c: New file.
28522
28523         Tests for module 'unistr/u16-strcoll'.
28524         * modules/unistr/u16-strcoll-tests: New file.
28525         * tests/unistr/test-u16-strcoll.c: New file.
28526
28527         Tests for module 'unistr/u8-strcoll'.
28528         * modules/unistr/u8-strcoll-tests: New file.
28529         * tests/unistr/test-u8-strcoll.c: New file.
28530
28531         Tests for module 'unistr/u32-strcmp'.
28532         * modules/unistr/u32-strcmp-tests: New file.
28533         * tests/unistr/test-u32-strcmp.c: New file.
28534         * tests/unistr/test-u32-strcmp.h: New file.
28535
28536         Tests for module 'unistr/u16-strcmp'.
28537         * modules/unistr/u16-strcmp-tests: New file.
28538         * tests/unistr/test-u16-strcmp.c: New file.
28539         * tests/unistr/test-u16-strcmp.h: New file.
28540
28541         Tests for module 'unistr/u8-strcmp'.
28542         * modules/unistr/u8-strcmp-tests: New file.
28543         * tests/unistr/test-u8-strcmp.c: New file.
28544         * tests/unistr/test-u8-strcmp.h: New file.
28545         * tests/unistr/test-strcmp.h: New file.
28546
28547         Tests for module 'unistr/u32-strncat'.
28548         * modules/unistr/u32-strncat-tests: New file.
28549         * tests/unistr/test-u32-strncat.c: New file.
28550
28551         Tests for module 'unistr/u16-strncat'.
28552         * modules/unistr/u16-strncat-tests: New file.
28553         * tests/unistr/test-u16-strncat.c: New file.
28554
28555         Tests for module 'unistr/u8-strncat'.
28556         * modules/unistr/u8-strncat-tests: New file.
28557         * tests/unistr/test-u8-strncat.c: New file.
28558         * tests/unistr/test-strncat.h: New file.
28559
28560         Tests for module 'unistr/u32-strcat'.
28561         * modules/unistr/u32-strcat-tests: New file.
28562         * tests/unistr/test-u32-strcat.c: New file.
28563
28564         Tests for module 'unistr/u16-strcat'.
28565         * modules/unistr/u16-strcat-tests: New file.
28566         * tests/unistr/test-u16-strcat.c: New file.
28567
28568         Tests for module 'unistr/u8-strcat'.
28569         * modules/unistr/u8-strcat-tests: New file.
28570         * tests/unistr/test-u8-strcat.c: New file.
28571         * tests/unistr/test-strcat.h: New file.
28572
28573         Tests for module 'unistr/u32-stpncpy'.
28574         * modules/unistr/u32-stpncpy-tests: New file.
28575         * tests/unistr/test-u32-stpncpy.c: New file.
28576
28577         Tests for module 'unistr/u16-stpncpy'.
28578         * modules/unistr/u16-stpncpy-tests: New file.
28579         * tests/unistr/test-u16-stpncpy.c: New file.
28580
28581         Tests for module 'unistr/u8-stpncpy'.
28582         * modules/unistr/u8-stpncpy-tests: New file.
28583         * tests/unistr/test-u8-stpncpy.c: New file.
28584         * tests/unistr/test-stpncpy.h: New file.
28585
28586         Tests for module 'unistr/u32-strncpy'.
28587         * modules/unistr/u32-strncpy-tests: New file.
28588         * tests/unistr/test-u32-strncpy.c: New file.
28589
28590         Tests for module 'unistr/u16-strncpy'.
28591         * modules/unistr/u16-strncpy-tests: New file.
28592         * tests/unistr/test-u16-strncpy.c: New file.
28593
28594         Tests for module 'unistr/u8-strncpy'.
28595         * modules/unistr/u8-strncpy-tests: New file.
28596         * tests/unistr/test-u8-strncpy.c: New file.
28597         * tests/unistr/test-strncpy.h: New file.
28598
28599         Tests for module 'unistr/u32-stpcpy'.
28600         * modules/unistr/u32-stpcpy-tests: New file.
28601         * tests/unistr/test-u32-stpcpy.c: New file.
28602
28603         Tests for module 'unistr/u16-stpcpy'.
28604         * modules/unistr/u16-stpcpy-tests: New file.
28605         * tests/unistr/test-u16-stpcpy.c: New file.
28606
28607         Tests for module 'unistr/u8-stpcpy'.
28608         * modules/unistr/u8-stpcpy-tests: New file.
28609         * tests/unistr/test-u8-stpcpy.c: New file.
28610         * tests/unistr/test-stpcpy.h: New file.
28611
28612         Tests for module 'unistr/u32-strcpy'.
28613         * modules/unistr/u32-strcpy-tests: New file.
28614         * tests/unistr/test-u32-strcpy.c: New file.
28615
28616         Tests for module 'unistr/u16-strcpy'.
28617         * modules/unistr/u16-strcpy-tests: New file.
28618         * tests/unistr/test-u16-strcpy.c: New file.
28619
28620         Tests for module 'unistr/u8-strcpy'.
28621         * modules/unistr/u8-strcpy-tests: New file.
28622         * tests/unistr/test-u8-strcpy.c: New file.
28623         * tests/unistr/test-strcpy.h: New file.
28624
28625         Tests for module 'unistr/u32-strnlen'.
28626         * modules/unistr/u32-strnlen-tests: New file.
28627         * tests/unistr/test-u32-strnlen.c: New file.
28628
28629         Tests for module 'unistr/u16-strnlen'.
28630         * modules/unistr/u16-strnlen-tests: New file.
28631         * tests/unistr/test-u16-strnlen.c: New file.
28632
28633         Tests for module 'unistr/u8-strnlen'.
28634         * modules/unistr/u8-strnlen-tests: New file.
28635         * tests/unistr/test-u8-strnlen.c: New file.
28636         * tests/unistr/test-strnlen.h: New file.
28637
28638         Tests for module 'unistr/u32-strlen'.
28639         * modules/unistr/u32-strlen-tests: New file.
28640         * tests/unistr/test-u32-strlen.c: New file.
28641
28642         Tests for module 'unistr/u16-strlen'.
28643         * modules/unistr/u16-strlen-tests: New file.
28644         * tests/unistr/test-u16-strlen.c: New file.
28645
28646         Tests for module 'unistr/u8-strlen'.
28647         * modules/unistr/u8-strlen-tests: New file.
28648         * tests/unistr/test-u8-strlen.c: New file.
28649
28650         Tests for module 'unistr/u32-prev'.
28651         * modules/unistr/u32-prev-tests: New file.
28652         * tests/unistr/test-u32-prev.c: New file.
28653
28654         Tests for module 'unistr/u16-prev'.
28655         * modules/unistr/u16-prev-tests: New file.
28656         * tests/unistr/test-u16-prev.c: New file.
28657
28658         Tests for module 'unistr/u8-prev'.
28659         * modules/unistr/u8-prev-tests: New file.
28660         * tests/unistr/test-u8-prev.c: New file.
28661
28662         Tests for module 'unistr/u32-next'.
28663         * modules/unistr/u32-next-tests: New file.
28664         * tests/unistr/test-u32-next.c: New file.
28665
28666         Tests for module 'unistr/u16-next'.
28667         * modules/unistr/u16-next-tests: New file.
28668         * tests/unistr/test-u16-next.c: New file.
28669
28670         Tests for module 'unistr/u8-next'.
28671         * modules/unistr/u8-next-tests: New file.
28672         * tests/unistr/test-u8-next.c: New file.
28673
28674         Tests for module 'unistr/u32-strmbtouc'.
28675         * modules/unistr/u32-strmbtouc-tests: New file.
28676         * tests/unistr/test-u32-strmbtouc.c: New file.
28677
28678         Tests for module 'unistr/u16-strmbtouc'.
28679         * modules/unistr/u16-strmbtouc-tests: New file.
28680         * tests/unistr/test-u16-strmbtouc.c: New file.
28681
28682         Tests for module 'unistr/u8-strmbtouc'.
28683         * modules/unistr/u8-strmbtouc-tests: New file.
28684         * tests/unistr/test-u8-strmbtouc.c: New file.
28685
28686         Tests for module 'unistr/u32-strmblen'.
28687         * modules/unistr/u32-strmblen-tests: New file.
28688         * tests/unistr/test-u32-strmblen.c: New file.
28689
28690         Tests for module 'unistr/u16-strmblen'.
28691         * modules/unistr/u16-strmblen-tests: New file.
28692         * tests/unistr/test-u16-strmblen.c: New file.
28693
28694         Tests for module 'unistr/u8-strmblen'.
28695         * modules/unistr/u8-strmblen-tests: New file.
28696         * tests/unistr/test-u8-strmblen.c: New file.
28697
28698         Tests for module 'unistr/u32-cpy-alloc'.
28699         * modules/unistr/u32-cpy-alloc-tests: New file.
28700         * tests/unistr/test-u32-cpy-alloc.c: New file.
28701
28702         Tests for module 'unistr/u16-cpy-alloc'.
28703         * modules/unistr/u16-cpy-alloc-tests: New file.
28704         * tests/unistr/test-u16-cpy-alloc.c: New file.
28705
28706         Tests for module 'unistr/u8-cpy-alloc'.
28707         * modules/unistr/u8-cpy-alloc-tests: New file.
28708         * tests/unistr/test-u8-cpy-alloc.c: New file.
28709         * tests/unistr/test-cpy-alloc.h: New file.
28710
28711         Tests for module 'unistr/u32-mbsnlen'.
28712         * modules/unistr/u32-mbsnlen-tests: New file.
28713         * tests/unistr/test-u32-mbsnlen.c: New file.
28714
28715         Tests for module 'unistr/u16-mbsnlen'.
28716         * modules/unistr/u16-mbsnlen-tests: New file.
28717         * tests/unistr/test-u16-mbsnlen.c: New file.
28718
28719         Tests for module 'unistr/u8-mbsnlen'.
28720         * modules/unistr/u8-mbsnlen-tests: New file.
28721         * tests/unistr/test-u8-mbsnlen.c: New file.
28722
28723         Tests for module 'unistr/u32-chr'.
28724         * modules/unistr/u32-chr-tests: New file.
28725         * tests/unistr/test-u32-chr.c: New file.
28726
28727         Tests for module 'unistr/u16-chr'.
28728         * modules/unistr/u16-chr-tests: New file.
28729         * tests/unistr/test-u16-chr.c: New file.
28730
28731         Tests for module 'unistr/u8-chr'.
28732         * modules/unistr/u8-chr-tests: New file.
28733         * tests/unistr/test-u8-chr.c: New file.
28734         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28735
28736         Tests for module 'unistr/u32-cmp2'.
28737         * modules/unistr/u32-cmp2-tests: New file.
28738         * tests/unistr/test-u32-cmp2.c: New file.
28739
28740         Tests for module 'unistr/u16-cmp2'.
28741         * modules/unistr/u16-cmp2-tests: New file.
28742         * tests/unistr/test-u16-cmp2.c: New file.
28743
28744         Tests for module 'unistr/u8-cmp2'.
28745         * modules/unistr/u8-cmp2-tests: New file.
28746         * tests/unistr/test-u8-cmp2.c: New file.
28747         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28748
28749         Tests for module 'unistr/u32-cmp'.
28750         * modules/unistr/u32-cmp-tests: New file.
28751         * tests/unistr/test-u32-cmp.c: New file.
28752
28753         Tests for module 'unistr/u16-cmp'.
28754         * modules/unistr/u16-cmp-tests: New file.
28755         * tests/unistr/test-u16-cmp.c: New file.
28756
28757         Tests for module 'unistr/u8-cmp'.
28758         * modules/unistr/u8-cmp-tests: New file.
28759         * tests/unistr/test-u8-cmp.c: New file.
28760         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28761
28762         Tests for module 'unistr/u32-set'.
28763         * modules/unistr/u32-set-tests: New file.
28764         * tests/unistr/test-u32-set.c: New file.
28765
28766         Tests for module 'unistr/u16-set'.
28767         * modules/unistr/u16-set-tests: New file.
28768         * tests/unistr/test-u16-set.c: New file.
28769
28770         Tests for module 'unistr/u8-set'.
28771         * modules/unistr/u8-set-tests: New file.
28772         * tests/unistr/test-u8-set.c: New file.
28773         * tests/unistr/test-set.h: New file.
28774
28775         Tests for module 'unistr/u32-move'.
28776         * modules/unistr/u32-move-tests: New file.
28777         * tests/unistr/test-u32-move.c: New file.
28778
28779         Tests for module 'unistr/u16-move'.
28780         * modules/unistr/u16-move-tests: New file.
28781         * tests/unistr/test-u16-move.c: New file.
28782
28783         Tests for module 'unistr/u8-move'.
28784         * modules/unistr/u8-move-tests: New file.
28785         * tests/unistr/test-u8-move.c: New file.
28786         * tests/unistr/test-move.h: New file.
28787
28788         Tests for module 'unistr/u32-cpy'.
28789         * modules/unistr/u32-cpy-tests: New file.
28790         * tests/unistr/test-u32-cpy.c: New file.
28791
28792         Tests for module 'unistr/u16-cpy'.
28793         * modules/unistr/u16-cpy-tests: New file.
28794         * tests/unistr/test-u16-cpy.c: New file.
28795
28796         Tests for module 'unistr/u8-cpy'.
28797         * modules/unistr/u8-cpy-tests: New file.
28798         * tests/unistr/test-u8-cpy.c: New file.
28799         * tests/unistr/test-cpy.h: New file.
28800
28801 2010-01-09  Bruno Haible  <bruno@clisp.org>
28802
28803         Tests for module 'unistr/u32-uctomb'.
28804         * modules/unistr/u32-uctomb-tests: New file.
28805         * tests/unistr/test-u32-uctomb.c: New file.
28806
28807         Tests for module 'unistr/u16-uctomb'.
28808         * modules/unistr/u16-uctomb-tests: New file.
28809         * tests/unistr/test-u16-uctomb.c: New file.
28810
28811         Tests for module 'unistr/u8-uctomb'.
28812         * modules/unistr/u8-uctomb-tests: New file.
28813         * tests/unistr/test-u8-uctomb.c: New file.
28814
28815         Tests for module 'unistr/u32-mbtoucr'.
28816         * modules/unistr/u32-mbtoucr-tests: New file.
28817         * tests/unistr/test-u32-mbtoucr.c: New file.
28818
28819         Tests for module 'unistr/u16-mbtoucr'.
28820         * modules/unistr/u16-mbtoucr-tests: New file.
28821         * tests/unistr/test-u16-mbtoucr.c: New file.
28822
28823         Tests for module 'unistr/u8-mbtoucr'.
28824         * modules/unistr/u8-mbtoucr-tests: New file.
28825         * tests/unistr/test-u8-mbtoucr.c: New file.
28826
28827         Tests for module 'unistr/u32-mbtouc'.
28828         * modules/unistr/u32-mbtouc-tests: New file.
28829         * tests/unistr/test-u32-mbtouc.c: New file.
28830
28831         Tests for module 'unistr/u16-mbtouc'.
28832         * modules/unistr/u16-mbtouc-tests: New file.
28833         * tests/unistr/test-u16-mbtouc.c: New file.
28834
28835         Tests for module 'unistr/u8-mbtouc'.
28836         * modules/unistr/u8-mbtouc-tests: New file.
28837         * tests/unistr/test-u8-mbtouc.c: New file.
28838
28839         Tests for module 'unistr/u32-mbtouc-unsafe'.
28840         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28841         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28842         * tests/unistr/test-u32-mbtouc.h: New file.
28843
28844         Tests for module 'unistr/u16-mbtouc-unsafe'.
28845         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28846         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28847         * tests/unistr/test-u16-mbtouc.h: New file.
28848
28849         Tests for module 'unistr/u8-mbtouc-unsafe'.
28850         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28851         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28852         * tests/unistr/test-u8-mbtouc.h: New file.
28853
28854         Tests for module 'unistr/u32-mblen'.
28855         * modules/unistr/u32-mblen-tests: New file.
28856         * tests/unistr/test-u32-mblen.c: New file.
28857
28858         Tests for module 'unistr/u16-mblen'.
28859         * modules/unistr/u16-mblen-tests: New file.
28860         * tests/unistr/test-u16-mblen.c: New file.
28861
28862         Tests for module 'unistr/u8-mblen'.
28863         * modules/unistr/u8-mblen-tests: New file.
28864         * tests/unistr/test-u8-mblen.c: New file.
28865
28866         Tests for module 'unistr/u32-to-u16'.
28867         * modules/unistr/u32-to-u16-tests: New file.
28868         * tests/unistr/test-u32-to-u16.c: New file.
28869
28870         Tests for module 'unistr/u32-to-u8'.
28871         * modules/unistr/u32-to-u8-tests: New file.
28872         * tests/unistr/test-u32-to-u8.c: New file.
28873
28874         Tests for module 'unistr/u16-to-u32'.
28875         * modules/unistr/u16-to-u32-tests: New file.
28876         * tests/unistr/test-u16-to-u32.c: New file.
28877
28878         Tests for module 'unistr/u16-to-u8'.
28879         * modules/unistr/u16-to-u8-tests: New file.
28880         * tests/unistr/test-u16-to-u8.c: New file.
28881
28882         Tests for module 'unistr/u8-to-u32'.
28883         * modules/unistr/u8-to-u32-tests: New file.
28884         * tests/unistr/test-u8-to-u32.c: New file.
28885
28886         Tests for module 'unistr/u8-to-u16'.
28887         * modules/unistr/u8-to-u16-tests: New file.
28888         * tests/unistr/test-u8-to-u16.c: New file.
28889
28890         Tests for module 'unistr/u32-check'.
28891         * modules/unistr/u32-check-tests: New file.
28892         * tests/unistr/test-u32-check.c: New file.
28893
28894         Tests for module 'unistr/u16-check'.
28895         * modules/unistr/u16-check-tests: New file.
28896         * tests/unistr/test-u16-check.c: New file.
28897
28898         Tests for module 'unistr/u8-check'.
28899         * modules/unistr/u8-check-tests: New file.
28900         * tests/unistr/test-u8-check.c: New file.
28901
28902         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28903         (category_equals): New function.
28904         (main): Add more tests.
28905         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28906
28907         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28908
28909 2010-01-10  Bruno Haible  <bruno@clisp.org>
28910
28911         unistr/u*-strcoll: Try harder to distinguish different strings.
28912         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28913         compare s1 and s2 to see if they are different.
28914
28915 2010-01-10  Bruno Haible  <bruno@clisp.org>
28916
28917         unistr/u*-stpncpy: Fix the return value.
28918         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28919         description of the return value consistent with stpncpy in glibc.
28920         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28921         written non-NUL unit.
28922
28923 2010-01-10  Bruno Haible  <bruno@clisp.org>
28924
28925         unistr/u*-next: Add missing dependencies.
28926         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28927         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28928         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28929
28930 2010-01-10  Bruno Haible  <bruno@clisp.org>
28931
28932         unistr/u8-mbsnlen: Fix return value for incomplete character.
28933         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28934         u8_mblen.
28935         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28936         Remove unistr/u8-mblen.
28937         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28938         u16_mblen.
28939         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28940         Remove unistr/u16-mblen.
28941
28942 2010-01-10  Bruno Haible  <bruno@clisp.org>
28943
28944         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28945         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28946         Reported by Brian Gough <bjg@gnu.org> and
28947         Chris Clayton <chris2553@googlemail.com> via
28948         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28949
28950 2010-01-09  Bruno Haible  <bruno@clisp.org>
28951
28952         unistr/u16-to-u32: Reject invalid input.
28953         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28954         u16_mbtouc.
28955         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28956         Remove unistr/u16-mbtouc.
28957
28958         unistr/u16-to-u8: Reject invalid input.
28959         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28960         u16_mbtouc.
28961         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28962         Remove unistr/u16-mbtouc.
28963
28964         unistr/u8-to-u32: Reject invalid input.
28965         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28966         u8_mbtouc.
28967         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28968         Remove unistr/u8-mbtouc.
28969
28970         unistr/u8-to-u16: Reject invalid input.
28971         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28972         u8_mbtouc.
28973         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28974         Remove unistr/u8-mbtouc.
28975
28976 2010-01-09  Bruno Haible  <bruno@clisp.org>
28977
28978         Tests for module 'getlogin'.
28979         * modules/getlogin-tests: New file.
28980         * tests/test-getlogin.c: New file.
28981
28982         New module 'getlogin'.
28983         * lib/unistd.in.h (getlogin): New declaration.
28984         * lib/getlogin.c: New file.
28985         * m4/getlogin.m4: New file.
28986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28987         HAVE_GETLOGIN.
28988         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28989         HAVE_GETLOGIN.
28990         * modules/getlogin: New file.
28991         * doc/posix-functions/getlogin.texi: Mention the new module.
28992         Reported by John W. Eaton <jwe@gnu.org>.
28993
28994 2010-01-09  Bruno Haible  <bruno@clisp.org>
28995
28996         getlogin_r: Support for native Windows.
28997         * lib/getlogin_r.c: Include <windows.h>
28998         (getlogin_r): Implement for native Windows.
28999         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29000         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29001         via John W. Eaton <jwe@gnu.org>.
29002
29003 2010-01-09  Bruno Haible  <bruno@clisp.org>
29004
29005         getlogin_r: Small fixes.
29006         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29007         succeeds.
29008         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29009         before testing whether getlogin_r is declared. No need to set
29010         HAVE_DECL_GETLOGIN_R to 1.
29011         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29012
29013 2010-01-09  Bruno Haible  <bruno@clisp.org>
29014
29015         * lib/unistd.in.h (getlogin_r): Add comment.
29016
29017 2010-01-09  Bruno Haible  <bruno@clisp.org>
29018
29019         Tests for module 'getlogin_r'.
29020         * modules/getlogin_r-tests: New file.
29021         * tests/test-getlogin_r.c: New file.
29022
29023 2010-01-09  Jim Meyering  <meyering@redhat.com>
29024
29025         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29026         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29027         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29028
29029 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29030
29031         * lib/dup2.c (rpl_dup2): Improve comment.
29032
29033 2010-01-08  Eric Blake  <ebb9@byu.net>
29034
29035         maint.mk: allow packages to add makefile @@ exceptions
29036         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29037         (sc_makefile_check): Rename...
29038         (sc_makefile_at_at_check): ...to this, and use hook.
29039
29040         dup2: work around mingw bug
29041         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29042         Reported by Simon Josefsson.
29043
29044 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29045
29046         glob: Fix C++ compilation.
29047         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29048         C++.
29049
29050 2010-01-07  Bruno Haible  <bruno@clisp.org>
29051
29052         Fix indentation of wctype.in.h, broken since 2007-01-06.
29053         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29054
29055 2010-01-07  Bruno Haible  <bruno@clisp.org>
29056
29057         mbslen: Avoid collision with system function.
29058         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29059         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29060         * m4/mbslen.m4: New file.
29061         * modules/mbslen (Files): Add it.
29062         (configure.ac): Invoke gl_MBSLEN.
29063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29064         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29065         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29066         via Ian Beckwith <ianb@erislabs.net>.
29067
29068 2010-01-07  Bruno Haible  <bruno@clisp.org>
29069
29070         dirent: Document the last fix.
29071         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29072
29073 2010-01-07  Bruno Haible  <bruno@clisp.org>
29074
29075         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29076         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29077         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29078         va_list are defined.
29079         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29080         Reported by Eric Blake.
29081
29082 2010-01-07  Bruno Haible  <bruno@clisp.org>
29083
29084         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29085         * modules/xlist (Depends-on): Add 'list',
29086         * modules/xoset (Depends-on): Add 'oset'.
29087         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29088
29089 2010-01-07  Bruno Haible  <bruno@clisp.org>
29090
29091         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29092         * doc/posix-functions/strncasecmp.texi: Likewise.
29093
29094 2010-01-07  Bruno Haible  <bruno@clisp.org>
29095
29096         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29097
29098 2010-01-07  John W. Eaton  <jwe@octave.org>
29099
29100         wctype: allow C++ use
29101         * lib/wctype.in.h: Add extern "C" block for C++.
29102
29103 2010-01-06  Eric Blake  <ebb9@byu.net>
29104
29105         maint.mk: detect incorrect GFDL usage
29106         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29107
29108 2010-01-06  Jim Meyering  <meyering@redhat.com>
29109         and Eric Blake  <ebb9@byu.net>
29110
29111         maint.mk: ignore multi-line copyright in NEWS
29112         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29113
29114 2010-01-06  Eric Blake  <ebb9@byu.net>
29115
29116         select: add missing dependency
29117         * modules/select-tests (Depends-on): Move sockets dependency...
29118         * modules/select (Depends-on): ...here.
29119         Reported by Ian Beckwith.
29120
29121         doc: regenerate INSTALL
29122         * doc/INSTALL: Reflect recent autoconf update.
29123         * doc/INSTALL.ISO: Likewise.
29124         * doc/INSTALL.UTF-8: Likewise.
29125
29126         pread: fix compilation on glibc
29127         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29128         Reported by Ralf Wildenhues.
29129
29130         dirent: fix test failure
29131         * lib/dirent.in.h (includes): Guarantee ino_t.
29132         Reported by Ralf Wildenhues.
29133
29134 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29135
29136         linkat, renameat: avoid bad free
29137         * lib/at-func2.c (at_func2): Fix typo.
29138         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29139
29140 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29141
29142         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29143         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29144         to avoid failure of symlink test later.
29145
29146 2010-01-06  Eric Blake  <ebb9@byu.net>
29147
29148         stdio, unistd: guarantee ssize_t
29149         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29150         2008 are exposed when needed.
29151         * lib/stdio.in.h (includes): Likewise.
29152         Reported by Ralf Wildenhues.
29153
29154 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29155
29156         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29157         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29158         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29159
29160 2010-01-06  Jim Meyering  <meyering@redhat.com>
29161
29162         readtokens: this module *does* require xalloc.h
29163         It uses only functions that were omitted by the old syntax-check rule.
29164         * lib/readtokens.c: Include "xalloc.h" once again.
29165         * modules/readtokens (Depends-on): Add xalloc.
29166         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29167
29168 2010-01-05  Eric Blake  <ebb9@byu.net>
29169
29170         maint: support 'make announcement' from a VPATH build
29171         * top/maint.mk (announcement): Look for correct NEWS file.
29172
29173 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29174
29175         utimens (fdutimens): ignore a negative FD, per contract
29176         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29177         when we have a valid file descriptor.  Otherwise, using a brand
29178         new glibc (with just-patched futimens that now fails with EBADF)
29179         would cause this function to fail with ENOSYS.
29180         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29181         See also http://bugzilla.redhat.com/552320.
29182
29183 2010-01-05  Eric Blake  <ebb9@byu.net>
29184
29185         strcase: document what it provides
29186         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29187         gnulib module.
29188         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29189         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29190
29191 2010-01-05  Jim Meyering  <meyering@redhat.com>
29192
29193         maint: remove useless inclusions of "xalloc.h"
29194         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29195         * lib/readtokens.c: Likewise.
29196         * lib/same.c: Likewise.
29197         * modules/getloadavg (Depends-on): Remove xalloc.
29198         * modules/readtokens: Likewise.
29199         * modules/same: Likewise.
29200
29201         maint.mk: include 4 more function names in alloca.h-checking regexp
29202         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29203         regexp.  Before, we would give a false-positive (saying alloca.h
29204         is included unnecessarily) when the only uses involved omitted symbols.
29205
29206         xalloc.h: use consistent formatting
29207         * lib/xalloc.h: Move declarations to start in the first column.
29208
29209 2010-01-05  Eric Blake  <ebb9@byu.net>
29210
29211         mkdir: avoid xalloc
29212         * lib/mkdir.c (includes): Drop unused header.
29213         Reported by John W. Eaton.
29214
29215 2010-01-04  Jim Meyering  <meyering@redhat.com>
29216
29217         nl_langinfo: avoid configure-time syntax error
29218         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29219         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29220         the empty string.  Don't let that provoke a shell syntax error.
29221
29222         regcomp, regexec, fnmatch: avoid array bounds read error
29223         * lib/regcomp.c (build_equiv_class): From glibc:
29224         Use only the low 24 bits of a findidx return value as an index
29225         into the weights array.  Patch by Ulrich Drepper:
29226         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29227         * lib/regexec.c (check_node_accept_bytes): Likewise.
29228         * lib/fnmatch_loop.c (FCT): Likewise.
29229
29230         regcomp: skip collseq lookup when there are no rules
29231         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29232         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29233
29234         regcomp: recognize ill-formed { } expressions
29235         * lib/regcomp.c (parse_dup_op): From glibc:
29236         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29237
29238         regcomp: fix typo in comment
29239         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29240         s/satisfy/satisfies/.
29241
29242         regcomp: sync from glibc: remove dead store
29243         * lib/regcomp.c (duplicate_node_closure): Remove useless
29244         search_duplicated_node call and dead store.
29245
29246         regcomp: sync from glibc; always use nl_langinfo
29247         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29248         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29249         * modules/regex (Depends-on): Add nl_langinfo.
29250
29251 2010-01-04  Eric Blake  <ebb9@byu.net>
29252
29253         fdopendir: fix configure test
29254         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29255
29256 2010-01-01  Bruno Haible  <bruno@clisp.org>
29257
29258         wchar: Remove unused configure check.
29259         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29260
29261 2010-01-01  Eric Blake  <ebb9@byu.net>
29262
29263         headers: make check of system header explicit
29264         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29265         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29266         ourselves.
29267         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29268         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29269         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29270         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29271         internals.
29272         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29273         missing.
29274         Suggested by Bruno Haible.
29275
29276 2010-01-01  Jim Meyering  <meyering@redhat.com>
29277
29278         ChangeLog: tweak to eliminate unnecessary copyright line
29279         * ChangeLog: Remove a copyright line that was mistakenly updated
29280         by today's update-copyright run.  Reported by Eric Blake.
29281
29282         test-update-copyright: don't let envvar setting cause test failure
29283         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29284
29285 2010-01-01  Bruno Haible  <bruno@clisp.org>
29286
29287         localename: Avoid gcc warning.
29288         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29289         function if it is not used.
29290
29291 2010-01-01  Jim Meyering  <meyering@redhat.com>
29292
29293         update nearly all FSF copyright year lists to include 2010
29294         Use the same procedure as for 2009, outlined in
29295         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29296
29297         version-etc: set COPYRIGHT_YEAR to 2010
29298         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29299
29300 2009-12-31  Eric Blake  <ebb9@byu.net>
29301
29302         doc: correct availability of cygwin 1.5.x getopt
29303         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29304         variables.
29305         * doc/posix-functions/opterr.texi (opterr): Likewise.
29306         * doc/posix-functions/optind.texi (optind): Likewise.
29307         * doc/posix-functions/optopt.texi (optopt): Likewise.
29308         * doc/posix-functions/tzname.texi (tzname): Likewise.
29309
29310         openat: update maintainer
29311         * modules/openat (Maintainer): Add myself.
29312
29313         utimens: avoid shadowing warning
29314         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29315         buffers into one, to avoid shadowing, as well as avoiding a
29316         redundant stat.
29317         Reported by Jim Meyering.
29318
29319         test-dup2: avoid compiler warning
29320         * tests/test-dup2.c (is_inheritable): Only define if used.
29321
29322 2010-01-01  Bruno Haible  <bruno@clisp.org>
29323
29324         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29325         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29326         defined, use wctomb instead of wcrtomb.
29327
29328 2010-01-01  Bruno Haible  <bruno@clisp.org>
29329
29330         iconv: Reject native Solaris iconv.
29331         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29332         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29333
29334 2009-12-31  Bruno Haible  <bruno@clisp.org>
29335
29336         * tests/test-signal.c (main): Remove test of 'SIG'.
29337
29338 2009-12-31  Bruno Haible  <bruno@clisp.org>
29339
29340         spawn: Fix incomplete fix.
29341         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29342         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29343         warnings for GNULIB_POSIXCHECK again.
29344         Reported by Eric Blake.
29345
29346 2009-12-31  Bruno Haible  <bruno@clisp.org>
29347
29348         Avoid namespace pollution on glibc systems.
29349         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29350         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29351         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29352         glibc systems.
29353
29354 2009-12-31  Bruno Haible  <bruno@clisp.org>
29355
29356         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29357         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29358         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29359         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29360         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29361         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29362         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29363
29364 2009-12-31  Bruno Haible  <bruno@clisp.org>
29365
29366         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29367         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29368         afterwards.
29369
29370 2009-12-31  Bruno Haible  <bruno@clisp.org>
29371
29372         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29373         SYS_UTSNAME_H.
29374
29375 2009-12-31  Bruno Haible  <bruno@clisp.org>
29376
29377         spawn: Fix misapplied patch.
29378         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29379         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29380         warnings for GNULIB_POSIXCHECK.
29381
29382 2009-12-31  Bruno Haible  <bruno@clisp.org>
29383
29384         times: Update after sys_times changed.
29385         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29386         * modules/times (Files): Add it.
29387         (configure.ac): Invoke gl_FUNC_TIMES.
29388
29389 2009-12-31  Bruno Haible  <bruno@clisp.org>
29390
29391         Use AC_C_INLINE where necessary.
29392         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29393         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29394         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29395         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29396         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29397         * m4/mbiter.m4 (gl_MBITER): Likewise.
29398         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29399         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29400         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29401         * modules/u64 (configure.ac): Likewise.
29402
29403 2009-12-31  Bruno Haible  <bruno@clisp.org>
29404
29405         Use AC_C_INLINE instead of module 'inline' where possible.
29406         * modules/inline (Description): Clarify purpose.
29407         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29408         * modules/count-one-bits (Depends-on): Remove inline.
29409         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29410         * modules/openat (Depends-on): Remove inline.
29411         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29412         instead of depending on module 'inline'.
29413         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29414         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29415         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29416         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29417         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29418         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29419         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29420         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29421         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29422         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29423         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29424         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29425         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29426         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29427         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29428         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29429         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29430         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29431         Likewise.
29432         * modules/unictype/property-ascii-hex-digit (Depends-on,
29433         configure.ac): Likewise.
29434         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29435         configure.ac): Likewise.
29436         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29437         configure.ac): Likewise.
29438         * modules/unictype/property-bidi-block-separator (Depends-on,
29439         configure.ac): Likewise.
29440         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29441         configure.ac): Likewise.
29442         * modules/unictype/property-bidi-common-separator (Depends-on,
29443         configure.ac): Likewise.
29444         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29445         Likewise.
29446         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29447         configure.ac): Likewise.
29448         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29449         configure.ac): Likewise.
29450         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29451         configure.ac): Likewise.
29452         * modules/unictype/property-bidi-european-digit (Depends-on,
29453         configure.ac): Likewise.
29454         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29455         configure.ac): Likewise.
29456         * modules/unictype/property-bidi-left-to-right (Depends-on,
29457         configure.ac): Likewise.
29458         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29459         configure.ac): Likewise.
29460         * modules/unictype/property-bidi-other-neutral (Depends-on,
29461         configure.ac): Likewise.
29462         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29463         Likewise.
29464         * modules/unictype/property-bidi-segment-separator (Depends-on,
29465         configure.ac): Likewise.
29466         * modules/unictype/property-bidi-whitespace (Depends-on,
29467         configure.ac): Likewise.
29468         * modules/unictype/property-combining (Depends-on, configure.ac):
29469         Likewise.
29470         * modules/unictype/property-composite (Depends-on, configure.ac):
29471         Likewise.
29472         * modules/unictype/property-currency-symbol (Depends-on,
29473         configure.ac): Likewise.
29474         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29475         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29476         Likewise.
29477         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29478         configure.ac): Likewise.
29479         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29480         Likewise.
29481         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29482         Likewise.
29483         * modules/unictype/property-extender (Depends-on, configure.ac):
29484         Likewise.
29485         * modules/unictype/property-format-control (Depends-on, configure.ac):
29486         Likewise.
29487         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29488         Likewise.
29489         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29490         Likewise.
29491         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29492         Likewise.
29493         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29494         Likewise.
29495         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29496         Likewise.
29497         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29498         Likewise.
29499         * modules/unictype/property-id-start (Depends-on, configure.ac):
29500         Likewise.
29501         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29502         Likewise.
29503         * modules/unictype/property-ids-binary-operator (Depends-on,
29504         configure.ac): Likewise.
29505         * modules/unictype/property-ids-trinary-operator (Depends-on,
29506         configure.ac): Likewise.
29507         * modules/unictype/property-ignorable-control (Depends-on,
29508         configure.ac): Likewise.
29509         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29510         Likewise.
29511         * modules/unictype/property-join-control (Depends-on, configure.ac):
29512         Likewise.
29513         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29514         Likewise.
29515         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29516         Likewise.
29517         * modules/unictype/property-logical-order-exception (Depends-on,
29518         configure.ac): Likewise.
29519         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29520         Likewise.
29521         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29522         * modules/unictype/property-non-break (Depends-on, configure.ac):
29523         Likewise.
29524         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29525         Likewise.
29526         * modules/unictype/property-numeric (Depends-on, configure.ac):
29527         Likewise.
29528         * modules/unictype/property-other-alphabetic (Depends-on,
29529         configure.ac): Likewise.
29530         * modules/unictype/property-other-default-ignorable-code-point
29531         (Depends-on, configure.ac): Likewise.
29532         * modules/unictype/property-other-grapheme-extend (Depends-on,
29533         configure.ac): Likewise.
29534         * modules/unictype/property-other-id-continue (Depends-on,
29535         configure.ac): Likewise.
29536         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29537         Likewise.
29538         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29539         Likewise.
29540         * modules/unictype/property-other-math (Depends-on, configure.ac):
29541         Likewise.
29542         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29543         Likewise.
29544         * modules/unictype/property-paired-punctuation (Depends-on,
29545         configure.ac): Likewise.
29546         * modules/unictype/property-paragraph-separator (Depends-on,
29547         configure.ac): Likewise.
29548         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29549         Likewise.
29550         * modules/unictype/property-pattern-white-space (Depends-on,
29551         configure.ac): Likewise.
29552         * modules/unictype/property-private-use (Depends-on, configure.ac):
29553         Likewise.
29554         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29555         Likewise.
29556         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29557         Likewise.
29558         * modules/unictype/property-radical (Depends-on, configure.ac):
29559         Likewise.
29560         * modules/unictype/property-sentence-terminal (Depends-on,
29561         configure.ac): Likewise.
29562         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29563         Likewise.
29564         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29565         * modules/unictype/property-terminal-punctuation (Depends-on,
29566         configure.ac): Likewise.
29567         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29568         Likewise.
29569         * modules/unictype/property-unassigned-code-value (Depends-on,
29570         configure.ac): Likewise.
29571         * modules/unictype/property-unified-ideograph (Depends-on,
29572         configure.ac): Likewise.
29573         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29574         Likewise.
29575         * modules/unictype/property-variation-selector (Depends-on,
29576         configure.ac): Likewise.
29577         * modules/unictype/property-white-space (Depends-on, configure.ac):
29578         Likewise.
29579         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29580         Likewise.
29581         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29582         Likewise.
29583         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29584         Likewise.
29585         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29586         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29587         Likewise.
29588
29589 2009-12-31  Bruno Haible  <bruno@clisp.org>
29590
29591         Remove unnecessary AC_C_INLINE invocation.
29592         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29593         since 2009-08-21.
29594
29595 2009-12-31  Jim Meyering  <meyering@redhat.com>
29596
29597         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29598         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29599         With this change, we can all remove the gpg_key_ID = ... definition
29600         from our respective cfg.mk files.
29601
29602         maint.mk: create announcement template in ~/, not in /tmp
29603         * top/maint.mk (emit_upload_commands): Adjust.
29604         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29605         Remove temporary file, .ci-msg.
29606
29607 2009-12-31  Eric Blake  <ebb9@byu.net>
29608
29609         link-warning: always build headers with link warnings
29610         * modules/arpa_inet (Makefile.am): Always build replacement
29611         header.
29612         * modules/ctype (Makefile.am): Likewise.
29613         * modules/dirent (Makefile.am): Likewise.
29614         * modules/inttypes (Makefile.am): Likewise.
29615         * modules/langinfo (Makefile.am): Likewise.
29616         * modules/locale (Makefile.am): Likewise.
29617         * modules/spawn (Makefile.am): Likewise.
29618         * modules/sys_file (Makefile.am): Likewise.
29619         * modules/sys_ioctl (Makefile.am): Likewise.
29620         * modules/sys_select (Makefile.am): Likewise.
29621         * modules/sys_socket (Makefile.am): Likewise.
29622         * modules/sys_times (Makefile.am): Likewise.
29623         * modules/sys_utsname (Makefile.am): Likewise.
29624         * modules/sys_wait (Makefile.am): Likewise.
29625         * modules/wchar (Makefile.am): Likewise.
29626         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29627         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29628         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29629         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29630         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29631         Likewise.
29632         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29633         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29634         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29635         Likewise.
29636         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29637         Likewise.
29638         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29639         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29640         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29641         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29642         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29643         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29644         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29645         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29646         (gl_WCHAR_H_DEFAULTS): Likewise.
29647
29648 2009-12-31  Eric Blake  <ebb9@byu.net>
29649
29650         signal, spawn: use link warnings
29651         * lib/signal.in.h (sigset_t): Make unconditional.
29652         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29653         (sigpending, sigprocmask, sigaction): Add link warnings.
29654         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29655         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29656         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29657         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29658         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29659         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29660         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29661         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29662         (posix_spawn_file_actions_destroy)
29663         (posix_spawn_file_actions_addopen)
29664         (posix_spawn_file_actions_addclose)
29665         (posix_spawn_file_actions_adddup2): Likewise.
29666         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29667         * tests/test-signal.c (main): Enhance test.
29668
29669         spawn: improve wrapper support
29670         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29671         (gl_SPAWN_H_DEFAULTS): New defaults.
29672         * modules/spawn (Makefile.am): Substitute them.
29673         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29674         Only declare if missing or broken.
29675
29676         sys_times, sys_utsname: use include_next
29677         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29678         header.
29679         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29680         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29681         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29682         * modules/sys_times (Depends-on): Add include_next.
29683         (Makefile.am): Substitute additional values.
29684         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29685         * lib/sys_times.in.h (includes): Include native header, if
29686         available.
29687         * lib/sys_utsname.in.h (includes): Likewise.
29688         * tests/test-sys_times.c (main): Enhance test.
29689
29690         fdutimensat: revert prior patch
29691         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29692         utimens.h.
29693         Reported by Bruno Haible.
29694
29695 2009-12-30  Eric Blake  <ebb9@byu.net>
29696
29697         sys_wait: drop link-warning dependency
29698         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29699         link-warning efforts.
29700         * lib/sys_wait.in.h: Likewise.
29701
29702         fdutimensat: remove bogus dependency
29703         * modules/fdutimensat (Depends-on): Drop inline.
29704
29705         unistd: fix typo
29706         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29707
29708 2009-12-30  Bruno Haible  <bruno@clisp.org>
29709
29710         Fix compilation error with Solaris cc.
29711         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29712         * lib/unicase/u16-is-invariant.c: Likewise.
29713         * lib/unicase/u32-is-invariant.c: Likewise.
29714         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29715
29716 2009-12-30  Bruno Haible  <bruno@clisp.org>
29717
29718         Fix test crash.
29719         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29720         locales.
29721         Reported by Simon Josefsson <simon@josefsson.org>.
29722
29723 2009-12-30  Bruno Haible  <bruno@clisp.org>
29724
29725         Fix compilation error on most platforms.
29726         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29727         Reported by Simon Josefsson <simon@josefsson.org>
29728         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29729
29730 2009-12-30  Eric Blake  <ebb9@byu.net>
29731
29732         futimens, utimensat: work around ntfs-3g bug
29733         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29734         a ctime bug is present, and expand workaround to cover ntfs-3g.
29735         * lib/utimens.c (fdutimens, lutimens): Likewise.
29736         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29737         (validate_timespec): Adjust return value.
29738         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29739         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29740         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29741
29742 2009-12-29  Eric Blake  <ebb9@byu.net>
29743
29744         link-warning: make usage consistent
29745         * modules/ctype (Depends-on): Add link-warning.
29746         (Makefile.am): Update rules accordingly.
29747         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29748         * modules/locale (Depends-on, Makefile.am): Likewise.
29749         * modules/sys_file (Makefile.am): Likewise.
29750         * modules/getopt-posix (Makefile.am): Delete unused link warning
29751         efforts.
29752         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29753         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29754         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29755         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29756
29757         stdio: remove unused variables
29758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29759         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29760         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29761
29762         tests: test more substitute headers
29763         * modules/ctype-tests: New file.
29764         * modules/dirent-tests: Likewise.
29765         * modules/spawn-tests: Likewise.
29766         * modules/sys_file-tests: Likewise.
29767         * modules/sys_ioctl-tests: Likewise.
29768         * modules/sys_wait-tests: Likewise.
29769         * tests/test-ctype.c: Likewise.
29770         * tests/test-dirent.c: Likewise.
29771         * tests/test-spawn.c: Likewise.
29772         * tests/test-sys_file.c: Likewise.
29773         * tests/test-sys_ioctl.c: Likewise.
29774         * tests/test-sys_wait.c: Likewise.
29775         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29776         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29777         whether or not flock is in use.
29778
29779         tests: remove License section from module
29780         * modules/arpa_inet-tests: Remove unneeded section.
29781         * modules/byteswap-tests: Likewise.
29782         * modules/ceilf-tests: Likewise.
29783         * modules/ceill-tests: Likewise.
29784         * modules/crypto/des-tests: Likewise.
29785         * modules/crypto/gc-arcfour-tests: Likewise.
29786         * modules/crypto/gc-arctwo-tests: Likewise.
29787         * modules/crypto/gc-des-tests: Likewise.
29788         * modules/crypto/gc-hmac-md5-tests: Likewise.
29789         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29790         * modules/crypto/gc-md2-tests: Likewise.
29791         * modules/crypto/gc-md4-tests: Likewise.
29792         * modules/crypto/gc-md5-tests: Likewise.
29793         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29794         * modules/crypto/gc-rijndael-tests: Likewise.
29795         * modules/crypto/gc-sha1-tests: Likewise.
29796         * modules/crypto/gc-tests: Likewise.
29797         * modules/crypto/md2-tests: Likewise.
29798         * modules/crypto/md4-tests: Likewise.
29799         * modules/fcntl-h-tests: Likewise.
29800         * modules/floorf-tests: Likewise.
29801         * modules/floorl-tests: Likewise.
29802         * modules/frexp-nolibm-tests: Likewise.
29803         * modules/frexp-tests: Likewise.
29804         * modules/frexpl-nolibm-tests: Likewise.
29805         * modules/frexpl-tests: Likewise.
29806         * modules/getaddrinfo-tests: Likewise.
29807         * modules/inttypes-tests: Likewise.
29808         * modules/isfinite-tests: Likewise.
29809         * modules/isinf-tests: Likewise.
29810         * modules/ldexpl-tests: Likewise.
29811         * modules/locale-tests: Likewise.
29812         * modules/math-tests: Likewise.
29813         * modules/netdb-tests: Likewise.
29814         * modules/netinet_in-tests: Likewise.
29815         * modules/printf-frexp-tests: Likewise.
29816         * modules/printf-frexpl-tests: Likewise.
29817         * modules/priv-set-tests: Likewise.
29818         * modules/random_r-tests: Likewise.
29819         * modules/round-tests: Likewise.
29820         * modules/roundf-tests: Likewise.
29821         * modules/roundl-tests: Likewise.
29822         * modules/search-tests: Likewise.
29823         * modules/select-tests: Likewise.
29824         * modules/signal-tests: Likewise.
29825         * modules/stdbool-tests: Likewise.
29826         * modules/stddef-tests: Likewise.
29827         * modules/stdint-tests: Likewise.
29828         * modules/stdio-tests: Likewise.
29829         * modules/stdlib-tests: Likewise.
29830         * modules/string-tests: Likewise.
29831         * modules/strings-tests: Likewise.
29832         * modules/sys_select-tests: Likewise.
29833         * modules/sys_socket-tests: Likewise.
29834         * modules/sys_stat-tests: Likewise.
29835         * modules/sys_time-tests: Likewise.
29836         * modules/sys_utsname-tests: Likewise.
29837         * modules/sysexits-tests: Likewise.
29838         * modules/time-tests: Likewise.
29839         * modules/trunc-tests: Likewise.
29840         * modules/truncf-tests: Likewise.
29841         * modules/truncl-tests: Likewise.
29842         * modules/tsearch-tests: Likewise.
29843         * modules/unistd-tests: Likewise.
29844         * modules/wchar-tests: Likewise.
29845         * modules/wctype-tests: Likewise.
29846
29847         tests: fix license on several tests
29848         * tests/test-des.c: Update to GPLv3+.
29849         * tests/test-flock.c: Likewise.
29850         * tests/test-fsync.c: Likewise.
29851         * tests/test-futimens.h: Likewise.
29852         * tests/test-gc-arcfour.c: Likewise.
29853         * tests/test-gc-arctwo.c: Likewise.
29854         * tests/test-gc-des.c: Likewise.
29855         * tests/test-gc-hmac-md5.c: Likewise.
29856         * tests/test-gc-hmac-sha1.c: Likewise.
29857         * tests/test-gc-md2.c: Likewise.
29858         * tests/test-gc-md4.c: Likewise.
29859         * tests/test-gc-md5.c: Likewise.
29860         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29861         * tests/test-gc-rijndael.c: Likewise.
29862         * tests/test-gc-sha1.c: Likewise.
29863         * tests/test-gc.c: Likewise.
29864         * tests/test-getcwd.c: Likewise.
29865         * tests/test-link.c: Likewise.
29866         * tests/test-link.h: Likewise.
29867         * tests/test-lutimens.h: Likewise.
29868         * tests/test-md2.c: Likewise.
29869         * tests/test-md4.c: Likewise.
29870         * tests/test-mkdir.h: Likewise.
29871         * tests/test-rename.c: Likewise.
29872         * tests/test-rename.h: Likewise.
29873         * tests/test-safe-alloc.c: Likewise.
29874         * tests/test-utimens-common.h: Likewise.
29875         * tests/test-utimens.h: Likewise.
29876
29877         maint: sync license texts
29878         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29879         * doc/gpl-3.0.texi: Revert copyright year update.
29880         * doc/lgpl-3.0.texi: Likewise.
29881
29882 2009-12-29  Jim Meyering  <meyering@redhat.com>
29883
29884         update nearly all FSF copyright year lists to include 2009
29885         The files named by the following are exempted:
29886             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29887               test -f "$dst" && { echo "$dst"; continue; }
29888               test -d "$dst" || continue
29889               echo "$dst"/$(basename "$src")
29890             done > exempt
29891             git ls-files tests/unictype >> exempt
29892         In the remaining files, convert to all-interval notation if
29893         - there is already at least one year interval like 2000-2003
29894         - the file is maintained by me
29895         - the file is in lib/uni*/, where that style already prevails
29896         Otherwise, use update-copyright's default.
29897
29898 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29899         and Eric Blake  <ebb9@byu.net>
29900
29901         tests: don't require debug system() to pass
29902         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29903         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29904         * tests/test-unlink.h (test_unlink_func): Likewise.
29905         * tests/test-fstatat.c (main): ...into callers.
29906         * tests/test-lstat.c (main): Likewise.
29907         * tests/test-rmdir.c (main): Likewise.
29908         * tests/test-unlink.c (main): Likewise.
29909         * tests/test-unlinkat.c (main): Likewise.
29910         * tests/test-areadlink-with-size.c (main): Don't require a
29911         debug-only system call to pass, aiding cross-testing to mingw.
29912         * tests/test-areadlink.c (main): Likewise.
29913         * tests/test-areadlinkat-with-size.c (main): Likewise.
29914         * tests/test-areadlinkat.c (main): Likewise.
29915         * tests/test-canonicalize-lgpl.c (main): Likewise.
29916         * tests/test-canonicalize.c (main): Likewise.
29917         * tests/test-chown.c (main): Likewise.
29918         * tests/test-fchownat.c (main): Likewise.
29919         * tests/test-lchown.c (main): Likewise.
29920         * tests/test-fdutimensat.c (main): Likewise.
29921         * tests/test-futimens.c (main): Likewise.
29922         * tests/test-link.c (main): Likewise.
29923         * tests/test-linkat.c (main): Likewise.
29924         * tests/test-mkdir.c (main): Likewise.
29925         * tests/test-mkdirat.c (main): Likewise.
29926         * tests/test-mkfifo.c (main): Likewise.
29927         * tests/test-mkfifoat.c (main): Likewise.
29928         * tests/test-mknod.c (main): Likewise.
29929         * tests/test-readlink.c (main): Likewise.
29930         * tests/test-remove.c (main): Likewise.
29931         * tests/test-rename.c (main): Likewise.
29932         * tests/test-renameat.c (main): Likewise.
29933         * tests/test-symlink.c (main): Likewise.
29934         * tests/test-symlinkat.c (main): Likewise.
29935         * tests/test-utimens.c (main): Likewise.
29936         * tests/test-utimensat.c (main): Likewise.
29937
29938 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29939
29940         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29941         on $(UNUSED_PARAMETER_H) to avoid build failure.
29942
29943 2009-12-28  Jim Meyering  <meyering@redhat.com>
29944
29945         update-copyright: you may specify a max. line length other than 72
29946         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29947
29948         maint: use consistent FSF copyright line syntax
29949         * lib/posixtm.c: Add missing comma in FSF copyright line.
29950         * lib/posixtm.h: Likewise.
29951         * lib/getugroups.c: Add missing ", Inc.".
29952
29953         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29954         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29955         FSF copyright line.  Remove trailing blanks.
29956
29957 2009-12-28  Eric Blake  <ebb9@byu.net>
29958
29959         test-dup2: reduce dependencies
29960         * modules/cloexec (Configure.ac): Set witness.
29961         * modules/dup2-tests (Depends-on): Drop cloexec.
29962         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29963         not present.
29964         Suggested by Bruno Haible.
29965
29966 2009-12-26  Bruno Haible  <bruno@clisp.org>
29967
29968         Remove an unneeded dependency.
29969         * modules/fseterr (Depends-on): Remove dup2.
29970
29971 2009-12-26  Eric Blake  <ebb9@byu.net>
29972
29973         tests: use macros.h in more places
29974         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29975         (ASSERT_STREAM): Provide default of stderr.
29976         * tests/test-dirent-safer.c: Include macros.h, using alternate
29977         stream for assertions.
29978         * tests/test-dup-safer.c: Likewise.
29979         * tests/test-freopen-safer.c: Likewise.
29980         * tests/test-getopt.c: Likewise.
29981         * tests/test-openat-safer.c: Likewise.
29982         * tests/test-pipe.c: Likewise.
29983         * tests/test-popen-safer.c: Likewise.
29984         * modules/dirent-safer-tests (Files): Include macros.h.
29985         * modules/unistd-safer-tests (Files): Likewise.
29986         * modules/freopen-safer-tests (Files): Likewise.
29987         * modules/getopt-posix-tests (Files): Likewise.
29988         * modules/openat-safer-tests (Files): Likewise.
29989         * modules/pipe-tests (Files): Likewise.
29990
29991 2009-12-26  Bruno Haible  <bruno@clisp.org>
29992
29993         javacomp: Portability fix.
29994         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29995         that it also works on Solaris.
29996
29997 2009-12-26  Bruno Haible  <bruno@clisp.org>
29998
29999         localename: Fix storage allocation of gl_locale_name_thread's result.
30000         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30001         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30002         all platforms that have 'uselocale'.
30003         (gl_locale_name_thread_unsafe): New function, extracted from
30004         gl_locale_name_thread.
30005         (gl_locale_name_thread): Call struniq on all platforms that have
30006         'uselocale'.
30007         * tests/test-localename.c (test_locale_name_thread): Check that the
30008         resulting strings are permanently allocated.
30009         * modules/localename-tests (Depends-on): Add strdup.
30010
30011 2009-12-26  Bruno Haible  <bruno@clisp.org>
30012
30013         * tests/test-localename.c (categories): Fill in the strings.
30014
30015 2009-12-26  Jim Meyering  <meyering@redhat.com>
30016
30017         isdir: complete the removal of m4/isdir.m4
30018         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30019
30020         isdir: clean up, since at least grep still uses it
30021         * lib/isdir.c: Include "isdir.h".
30022         (S_ISDIR): Remove now-unneeded definition.
30023         * modules/isdir (Files): Add lib/isdir.h.
30024         * lib/isdir.h: New file, with declaration.
30025         * m4/isdir.m4: Remove file -- unneeded.
30026
30027 2009-12-25  Bruno Haible  <bruno@clisp.org>
30028
30029         selinux-h: Make generated .h files standalone.
30030         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30031         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30032         * lib/se-selinux.in.h: Likewise.
30033         * modules/selinux-h (Depends-on): Add unused-parameter.
30034         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30035         selinux/selinux.h and selinux/context.h.
30036         Suggested by Eric Blake.
30037
30038 2009-12-25  Bruno Haible  <bruno@clisp.org>
30039
30040         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30041         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30042         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30043         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30044         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30045
30046 2009-12-24  Bruno Haible  <bruno@clisp.org>
30047
30048         openat: Fix warning.
30049         * lib/openat-proc.c: Include <unistd.h>.
30050
30051 2009-12-24  Bruno Haible  <bruno@clisp.org>
30052
30053         New module 'unused-parameter'.
30054         * build-aux/unused-parameter.h: New file, extracted from earlier
30055         gnulib-common.m4.
30056         * modules/unused-parameter: New file.
30057         * lib/unistr.h: Include unused-parameter.h.
30058         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30059         _GL_UNUSED.
30060         * modules/unistr/base (Depends-on): Add unused-parameter.
30061
30062 2009-12-24  Bruno Haible  <bruno@clisp.org>
30063
30064         Add missing dependencies to 'extensions' module.
30065         * m4/extensions.m4: Add comment.
30066         * modules/accept4 (Depends-on): Add extensions.
30067         * modules/dup3 (Depends-on): Likewise.
30068         * modules/fcntl (Depends-on): Likewise.
30069         * modules/futimens (Depends-on): Likewise.
30070         * modules/mknod (Depends-on): Likewise.
30071         * modules/pipe2 (Depends-on): Likewise.
30072         * modules/stat-time (Depends-on): Likewise.
30073         * modules/strcasestr-simple (Depends-on): Likewise.
30074         * modules/strsignal (Depends-on): Likewise.
30075         * modules/utimensat (Depends-on): Likewise.
30076         * modules/localcharset (Depends-on): Likewise. Needed because of
30077         gl_FCNTL_O_FLAGS.
30078         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30079         AC_TYPE_MBSTATE_T.
30080         * modules/wcsnrtombs (Depends-on): Likewise.
30081         * modules/wcsrtombs (Depends-on): Likewise.
30082
30083 2009-12-24  Bruno Haible  <bruno@clisp.org>
30084
30085         binary-io: Avoid gcc warning due to SET_BINARY.
30086         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30087         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30088
30089 2009-12-24  Bruno Haible  <bruno@clisp.org>
30090
30091         Avoid future namespace pollution on glibc systems.
30092         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30093         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30094         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30095         glibc systems.
30096
30097 2009-12-24  Bruno Haible  <bruno@clisp.org>
30098
30099         Refactor common macros used in tests.
30100         * tests/macros.h: New file.
30101         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30102         and/or <stdlib.h>, if appropriate.
30103         (ASSERT, SIZEOF): Remove macros.
30104         * tests/test-areadlink-with-size.c: Likewise.
30105         * tests/test-areadlinkat.c: Likewise.
30106         * tests/test-areadlinkat-with-size.c: Likewise.
30107         * tests/test-argmatch.c: Likewise.
30108         * tests/test-argv-iter.c: Likewise.
30109         * tests/test-array-mergesort.c: Likewise.
30110         * tests/test-array_list.c: Likewise.
30111         * tests/test-array_oset.c: Likewise.
30112         * tests/test-avltree_list.c: Likewise.
30113         * tests/test-avltree_oset.c: Likewise.
30114         * tests/test-avltreehash_list.c: Likewise.
30115         * tests/test-base64.c: Likewise.
30116         * tests/test-binary-io.c: Likewise.
30117         * tests/test-bitrotate.c: Likewise.
30118         * tests/test-btowc.c: Likewise.
30119         * tests/test-byteswap.c: Likewise.
30120         * tests/test-c-ctype.c: Likewise.
30121         * tests/test-c-stack.c: Likewise.
30122         * tests/test-c-strcasecmp.c: Likewise.
30123         * tests/test-c-strcasestr.c: Likewise.
30124         * tests/test-c-strncasecmp.c: Likewise.
30125         * tests/test-c-strstr.c: Likewise.
30126         * tests/test-canonicalize-lgpl.c: Likewise.
30127         * tests/test-canonicalize.c: Likewise.
30128         * tests/test-carray_list.c: Likewise.
30129         * tests/test-ceilf1.c: Likewise.
30130         * tests/test-ceilf2.c: Likewise.
30131         * tests/test-ceill.c: Likewise.
30132         * tests/test-chown.c: Likewise.
30133         * tests/test-cloexec.c: Likewise.
30134         * tests/test-copy-acl.c: Likewise.
30135         * tests/test-copy-file.c: Likewise.
30136         * tests/test-count-one-bits.c: Likewise.
30137         * tests/test-dprintf-posix.c: Likewise.
30138         * tests/test-dup2.c: Likewise.
30139         * tests/test-dup3.c: Likewise.
30140         * tests/test-duplocale.c: Likewise.
30141         * tests/test-fbufmode.c: Likewise.
30142         * tests/test-fchdir.c: Likewise.
30143         * tests/test-fchownat.c: Likewise.
30144         * tests/test-fcntl-safer.c: Likewise.
30145         * tests/test-fcntl.c: Likewise.
30146         * tests/test-fdopendir.c: Likewise.
30147         * tests/test-fdutimensat.c: Likewise.
30148         * tests/test-fflush2.c: Likewise.
30149         * tests/test-file-has-acl.c: Likewise.
30150         * tests/test-filevercmp.c: Likewise.
30151         * tests/test-flock.c: Likewise.
30152         * tests/test-floorf1.c: Likewise.
30153         * tests/test-floorf2.c: Likewise.
30154         * tests/test-floorl.c: Likewise.
30155         * tests/test-fnmatch.c: Likewise.
30156         * tests/test-fopen.h: Likewise.
30157         * tests/test-fpending.c: Likewise.
30158         * tests/test-fprintf-posix.c: Likewise.
30159         * tests/test-fpurge.c: Likewise.
30160         * tests/test-freadable.c: Likewise.
30161         * tests/test-freadahead.c: Likewise.
30162         * tests/test-freading.c: Likewise.
30163         * tests/test-freadptr.c: Likewise.
30164         * tests/test-freadptr2.c: Likewise.
30165         * tests/test-freadseek.c: Likewise.
30166         * tests/test-freopen.c: Likewise.
30167         * tests/test-frexp.c: Likewise.
30168         * tests/test-frexpl.c: Likewise.
30169         * tests/test-fseek.c: Likewise.
30170         * tests/test-fseeko.c: Likewise.
30171         * tests/test-fstatat.c: Likewise.
30172         * tests/test-fstrcmp.c: Likewise.
30173         * tests/test-fsync.c: Likewise.
30174         * tests/test-ftell.c: Likewise.
30175         * tests/test-ftello.c: Likewise.
30176         * tests/test-func.c: Likewise.
30177         * tests/test-futimens.c: Likewise.
30178         * tests/test-fwritable.c: Likewise.
30179         * tests/test-fwriting.c: Likewise.
30180         * tests/test-getcwd.c: Likewise.
30181         * tests/test-getdate.c: Likewise.
30182         * tests/test-getdelim.c: Likewise.
30183         * tests/test-getdtablesize.c: Likewise.
30184         * tests/test-getgroups.c: Likewise.
30185         * tests/test-getline.c: Likewise.
30186         * tests/test-getndelim2.c: Likewise.
30187         * tests/test-glob.c: Likewise.
30188         * tests/test-hash.c: Likewise.
30189         * tests/test-i-ring.c: Likewise.
30190         * tests/test-iconv-utf.c: Likewise.
30191         * tests/test-iconv.c: Likewise.
30192         * tests/test-idpriv-drop.c: Likewise.
30193         * tests/test-idpriv-droptemp.c: Likewise.
30194         * tests/test-inet_ntop.c: Likewise.
30195         * tests/test-inet_pton.c: Likewise.
30196         * tests/test-isblank.c: Likewise.
30197         * tests/test-isfinite.c: Likewise.
30198         * tests/test-isinf.c: Likewise.
30199         * tests/test-isnan.c: Likewise.
30200         * tests/test-isnand.h: Likewise.
30201         * tests/test-isnanf.h: Likewise.
30202         * tests/test-isnanl.h: Likewise.
30203         * tests/test-lchown.c: Likewise.
30204         * tests/test-ldexpl.c: Likewise.
30205         * tests/test-link.c: Likewise.
30206         * tests/test-linkat.c: Likewise.
30207         * tests/test-linked_list.c: Likewise.
30208         * tests/test-linkedhash_list.c: Likewise.
30209         * tests/test-localename.c: Likewise.
30210         * tests/test-lseek.c: Likewise.
30211         * tests/test-lstat.c: Likewise.
30212         * tests/test-mbmemcasecmp.c: Likewise.
30213         * tests/test-mbmemcasecoll.c: Likewise.
30214         * tests/test-mbrtowc.c: Likewise.
30215         * tests/test-mbscasecmp.c: Likewise.
30216         * tests/test-mbscasestr1.c: Likewise.
30217         * tests/test-mbscasestr2.c: Likewise.
30218         * tests/test-mbscasestr3.c: Likewise.
30219         * tests/test-mbscasestr4.c: Likewise.
30220         * tests/test-mbschr.c: Likewise.
30221         * tests/test-mbscspn.c: Likewise.
30222         * tests/test-mbsinit.c: Likewise.
30223         * tests/test-mbsncasecmp.c: Likewise.
30224         * tests/test-mbsnrtowcs.c: Likewise.
30225         * tests/test-mbspbrk.c: Likewise.
30226         * tests/test-mbspcasecmp.c: Likewise.
30227         * tests/test-mbsrchr.c: Likewise.
30228         * tests/test-mbsrtowcs.c: Likewise.
30229         * tests/test-mbsspn.c: Likewise.
30230         * tests/test-mbsstr1.c: Likewise.
30231         * tests/test-mbsstr2.c: Likewise.
30232         * tests/test-mbsstr3.c: Likewise.
30233         * tests/test-memchr.c: Likewise.
30234         * tests/test-memchr2.c: Likewise.
30235         * tests/test-memcmp.c: Likewise.
30236         * tests/test-memmem.c: Likewise.
30237         * tests/test-memrchr.c: Likewise.
30238         * tests/test-mkdir.c: Likewise.
30239         * tests/test-mkdirat.c: Likewise.
30240         * tests/test-mkfifo.c: Likewise.
30241         * tests/test-mkfifoat.c: Likewise.
30242         * tests/test-mknod.c: Likewise.
30243         * tests/test-nanosleep.c: Likewise.
30244         * tests/test-nl_langinfo.c: Likewise.
30245         * tests/test-obstack-printf.c: Likewise.
30246         * tests/test-open.c: Likewise.
30247         * tests/test-openat.c: Likewise.
30248         * tests/test-pipe-filter-gi1.c: Likewise.
30249         * tests/test-pipe-filter-gi2-main.c: Likewise.
30250         * tests/test-pipe-filter-ii1.c: Likewise.
30251         * tests/test-pipe-filter-ii2-main.c: Likewise.
30252         * tests/test-pipe2.c: Likewise.
30253         * tests/test-popen.h: Likewise.
30254         * tests/test-posixtm.c: Likewise.
30255         * tests/test-pread.c: Likewise.
30256         * tests/test-printf-frexp.c: Likewise.
30257         * tests/test-printf-frexpl.c: Likewise.
30258         * tests/test-printf-posix.c: Likewise.
30259         * tests/test-priv-set.c: Likewise.
30260         * tests/test-quotearg.c: Likewise.
30261         * tests/test-random_r.c: Likewise.
30262         * tests/test-rawmemchr.c: Likewise.
30263         * tests/test-rbtree_list.c: Likewise.
30264         * tests/test-rbtree_oset.c: Likewise.
30265         * tests/test-rbtreehash_list.c: Likewise.
30266         * tests/test-readlink.c: Likewise.
30267         * tests/test-remove.c: Likewise.
30268         * tests/test-rename.c: Likewise.
30269         * tests/test-renameat.c: Likewise.
30270         * tests/test-rmdir.c: Likewise.
30271         * tests/test-round1.c: Likewise.
30272         * tests/test-roundf1.c: Likewise.
30273         * tests/test-roundl.c: Likewise.
30274         * tests/test-safe-alloc.c: Likewise.
30275         * tests/test-sameacls.c: Likewise.
30276         * tests/test-set-mode-acl.c: Likewise.
30277         * tests/test-setenv.c: Likewise.
30278         * tests/test-sigaction.c: Likewise.
30279         * tests/test-signbit.c: Likewise.
30280         * tests/test-sleep.c: Likewise.
30281         * tests/test-snprintf-posix.c: Likewise.
30282         * tests/test-snprintf.c: Likewise.
30283         * tests/test-sprintf-posix.c: Likewise.
30284         * tests/test-stat-time.c: Likewise.
30285         * tests/test-stat.c: Likewise.
30286         * tests/test-strcasestr.c: Likewise.
30287         * tests/test-strchrnul.c: Likewise.
30288         * tests/test-strerror.c: Likewise.
30289         * tests/test-striconv.c: Likewise.
30290         * tests/test-striconveh.c: Likewise.
30291         * tests/test-striconveha.c: Likewise.
30292         * tests/test-strsignal.c: Likewise.
30293         * tests/test-strstr.c: Likewise.
30294         * tests/test-strtod.c: Likewise.
30295         * tests/test-strverscmp.c: Likewise.
30296         * tests/test-symlink.c: Likewise.
30297         * tests/test-symlinkat.c: Likewise.
30298         * tests/test-trunc1.c: Likewise.
30299         * tests/test-trunc2.c: Likewise.
30300         * tests/test-truncf1.c: Likewise.
30301         * tests/test-truncf2.c: Likewise.
30302         * tests/test-truncl.c: Likewise.
30303         * tests/test-uname.c: Likewise.
30304         * tests/test-unlink.c: Likewise.
30305         * tests/test-unlinkat.c: Likewise.
30306         * tests/test-unsetenv.c: Likewise.
30307         * tests/test-usleep.c: Likewise.
30308         * tests/test-utimens.c: Likewise.
30309         * tests/test-utimensat.c: Likewise.
30310         * tests/test-vasnprintf-posix.c: Likewise.
30311         * tests/test-vasnprintf-posix2.c: Likewise.
30312         * tests/test-vasnprintf.c: Likewise.
30313         * tests/test-vasprintf-posix.c: Likewise.
30314         * tests/test-vasprintf.c: Likewise.
30315         * tests/test-vdprintf-posix.c: Likewise.
30316         * tests/test-vfprintf-posix.c: Likewise.
30317         * tests/test-vprintf-posix.c: Likewise.
30318         * tests/test-vsnprintf-posix.c: Likewise.
30319         * tests/test-vsnprintf.c: Likewise.
30320         * tests/test-vsprintf-posix.c: Likewise.
30321         * tests/test-wcrtomb.c: Likewise.
30322         * tests/test-wcsnrtombs.c: Likewise.
30323         * tests/test-wcsrtombs.c: Likewise.
30324         * tests/test-wctype.c: Likewise.
30325         * tests/test-wcwidth.c: Likewise.
30326         * tests/test-xfprintf-posix.c: Likewise.
30327         * tests/test-xmemdup0.c: Likewise.
30328         * tests/test-xprintf-posix.c: Likewise.
30329         * tests/test-xvasprintf.c: Likewise.
30330         * tests/unicase/test-locale-language.c: Likewise.
30331         * tests/unicase/test-mapping-part1.h: Likewise.
30332         * tests/unicase/test-predicate-part1.h: Likewise.
30333         * tests/unicase/test-u8-casecmp.c: Likewise.
30334         * tests/unicase/test-u8-casecoll.c: Likewise.
30335         * tests/unicase/test-u8-casefold.c: Likewise.
30336         * tests/unicase/test-u8-is-cased.c: Likewise.
30337         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30338         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30339         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30340         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30341         * tests/unicase/test-u8-tolower.c: Likewise.
30342         * tests/unicase/test-u8-totitle.c: Likewise.
30343         * tests/unicase/test-u8-toupper.c: Likewise.
30344         * tests/unicase/test-u16-casecmp.c: Likewise.
30345         * tests/unicase/test-u16-casecoll.c: Likewise.
30346         * tests/unicase/test-u16-casefold.c: Likewise.
30347         * tests/unicase/test-u16-is-cased.c: Likewise.
30348         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30349         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30350         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30351         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30352         * tests/unicase/test-u16-tolower.c: Likewise.
30353         * tests/unicase/test-u16-totitle.c: Likewise.
30354         * tests/unicase/test-u16-toupper.c: Likewise.
30355         * tests/unicase/test-u32-casecmp.c: Likewise.
30356         * tests/unicase/test-u32-casecoll.c: Likewise.
30357         * tests/unicase/test-u32-casefold.c: Likewise.
30358         * tests/unicase/test-u32-is-cased.c: Likewise.
30359         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30360         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30361         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30362         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30363         * tests/unicase/test-u32-tolower.c: Likewise.
30364         * tests/unicase/test-u32-totitle.c: Likewise.
30365         * tests/unicase/test-u32-toupper.c: Likewise.
30366         * tests/unicase/test-ulc-casecmp.c: Likewise.
30367         * tests/unicase/test-ulc-casecoll.c: Likewise.
30368         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30369         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30370         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30371         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30372         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30373         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30374         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30375         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30376         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30377         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30378         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30379         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30380         * tests/unictype/test-bidi_byname.c: Likewise.
30381         * tests/unictype/test-bidi_name.c: Likewise.
30382         * tests/unictype/test-bidi_of.c: Likewise.
30383         * tests/unictype/test-bidi_test.c: Likewise.
30384         * tests/unictype/test-block_list.c: Likewise.
30385         * tests/unictype/test-block_of.c: Likewise.
30386         * tests/unictype/test-block_test.c: Likewise.
30387         * tests/unictype/test-categ_and.c: Likewise.
30388         * tests/unictype/test-categ_and_not.c: Likewise.
30389         * tests/unictype/test-categ_byname.c: Likewise.
30390         * tests/unictype/test-categ_name.c: Likewise.
30391         * tests/unictype/test-categ_none.c: Likewise.
30392         * tests/unictype/test-categ_of.c: Likewise.
30393         * tests/unictype/test-categ_or.c: Likewise.
30394         * tests/unictype/test-categ_test_withtable.c: Likewise.
30395         * tests/unictype/test-combining.c: Likewise.
30396         * tests/unictype/test-decdigit.c: Likewise.
30397         * tests/unictype/test-digit.c: Likewise.
30398         * tests/unictype/test-mirror.c: Likewise.
30399         * tests/unictype/test-numeric.c: Likewise.
30400         * tests/unictype/test-pr_byname.c: Likewise.
30401         * tests/unictype/test-pr_test.c: Likewise.
30402         * tests/unictype/test-predicate-part1.h: Likewise.
30403         * tests/unictype/test-scripts.c: Likewise.
30404         * tests/unictype/test-sy_c_ident.c: Likewise.
30405         * tests/unictype/test-sy_java_ident.c: Likewise.
30406         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30407         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30408         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30409         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30410         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30411         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30412         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30413         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30414         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30415         * tests/uninorm/test-compat-decomposition.c: Likewise.
30416         * tests/uninorm/test-composition.c: Likewise.
30417         * tests/uninorm/test-decomposing-form.c: Likewise.
30418         * tests/uninorm/test-decomposition.c: Likewise.
30419         * tests/uninorm/test-u8-nfc.c: Likewise.
30420         * tests/uninorm/test-u8-nfd.c: Likewise.
30421         * tests/uninorm/test-u8-nfkc.c: Likewise.
30422         * tests/uninorm/test-u8-nfkd.c: Likewise.
30423         * tests/uninorm/test-u8-normcmp.c: Likewise.
30424         * tests/uninorm/test-u8-normcoll.c: Likewise.
30425         * tests/uninorm/test-u16-nfc.c: Likewise.
30426         * tests/uninorm/test-u16-nfd.c: Likewise.
30427         * tests/uninorm/test-u16-nfkc.c: Likewise.
30428         * tests/uninorm/test-u16-nfkd.c: Likewise.
30429         * tests/uninorm/test-u16-normcmp.c: Likewise.
30430         * tests/uninorm/test-u16-normcoll.c: Likewise.
30431         * tests/uninorm/test-u32-nfc.c: Likewise.
30432         * tests/uninorm/test-u32-nfd.c: Likewise.
30433         * tests/uninorm/test-u32-nfkc.c: Likewise.
30434         * tests/uninorm/test-u32-nfkd.c: Likewise.
30435         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30436         * tests/uninorm/test-u32-normcmp.c: Likewise.
30437         * tests/uninorm/test-u32-normcoll.c: Likewise.
30438         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30439         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30440         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30441         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30442         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30443         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30444         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30445         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30446         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30447         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30448         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30449         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30450         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30451         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30452         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30453         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30454         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30455         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30456         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30457         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30458         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30459         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30460         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30461         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30462         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30463         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30464         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30465         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30466         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30467         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30468         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30469         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30470         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30471         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30472         * tests/uniwidth/test-u8-width.c: Likewise.
30473         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30474         * tests/uniwidth/test-u16-width.c: Likewise.
30475         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30476         * tests/uniwidth/test-u32-width.c: Likewise.
30477         * tests/uniwidth/test-uc_width.c: Likewise.
30478         * tests/uniwidth/test-uc_width2.c: Likewise.
30479         * modules/acl-tests (Files): Add tests/macros.h.
30480         * modules/areadlink-tests (Files): Likewise.
30481         * modules/areadlink-with-size-tests (Files): Likewise.
30482         * modules/areadlinkat-tests (Files): Likewise.
30483         * modules/areadlinkat-with-size-tests (Files): Likewise.
30484         * modules/argmatch-tests (Files): Likewise.
30485         * modules/argv-iter-tests (Files): Likewise.
30486         * modules/array-list-tests (Files): Likewise.
30487         * modules/array-mergesort-tests (Files): Likewise.
30488         * modules/array-oset-tests (Files): Likewise.
30489         * modules/avltree-list-tests (Files): Likewise.
30490         * modules/avltree-oset-tests (Files): Likewise.
30491         * modules/avltreehash-list-tests (Files): Likewise.
30492         * modules/base64-tests (Files): Likewise.
30493         * modules/binary-io-tests (Files): Likewise.
30494         * modules/bitrotate-tests (Files): Likewise.
30495         * modules/btowc-tests (Files): Likewise.
30496         * modules/byteswap-tests (Files): Likewise.
30497         * modules/c-ctype-tests (Files): Likewise.
30498         * modules/c-stack-tests (Files): Likewise.
30499         * modules/c-strcase-tests (Files): Likewise.
30500         * modules/c-strcasestr-tests (Files): Likewise.
30501         * modules/c-strstr-tests (Files): Likewise.
30502         * modules/canonicalize-lgpl-tests (Files): Likewise.
30503         * modules/canonicalize-tests (Files): Likewise.
30504         * modules/carray-list-tests (Files): Likewise.
30505         * modules/ceilf-tests (Files): Likewise.
30506         * modules/ceill-tests (Files): Likewise.
30507         * modules/chown-tests (Files): Likewise.
30508         * modules/cloexec-tests (Files): Likewise.
30509         * modules/copy-file-tests (Files): Likewise.
30510         * modules/count-one-bits-tests (Files): Likewise.
30511         * modules/dprintf-posix-tests (Files): Likewise.
30512         * modules/dup2-tests (Files): Likewise.
30513         * modules/dup3-tests (Files): Likewise.
30514         * modules/duplocale-tests (Files): Likewise.
30515         * modules/fbufmode-tests (Files): Likewise.
30516         * modules/fchdir-tests (Files): Likewise.
30517         * modules/fcntl-safer-tests (Files): Likewise.
30518         * modules/fcntl-tests (Files): Likewise.
30519         * modules/fdopendir-tests (Files): Likewise.
30520         * modules/fdutimensat-tests (Files): Likewise.
30521         * modules/fflush-tests (Files): Likewise.
30522         * modules/filevercmp-tests (Files): Likewise.
30523         * modules/flock-tests (Files): Likewise.
30524         * modules/floorf-tests (Files): Likewise.
30525         * modules/floorl-tests (Files): Likewise.
30526         * modules/fnmatch-tests (Files): Likewise.
30527         * modules/fopen-safer-tests (Files): Likewise.
30528         * modules/fopen-tests (Files): Likewise.
30529         * modules/fpending-tests (Files): Likewise.
30530         * modules/fprintf-posix-tests (Files): Likewise.
30531         * modules/fpurge-tests (Files): Likewise.
30532         * modules/freadable-tests (Files): Likewise.
30533         * modules/freadahead-tests (Files): Likewise.
30534         * modules/freading-tests (Files): Likewise.
30535         * modules/freadptr-tests (Files): Likewise.
30536         * modules/freadseek-tests (Files): Likewise.
30537         * modules/freopen-tests (Files): Likewise.
30538         * modules/frexp-nolibm-tests (Files): Likewise.
30539         * modules/frexp-tests (Files): Likewise.
30540         * modules/frexpl-nolibm-tests (Files): Likewise.
30541         * modules/frexpl-tests (Files): Likewise.
30542         * modules/fseek-tests (Files): Likewise.
30543         * modules/fseeko-tests (Files): Likewise.
30544         * modules/fstrcmp-tests (Files): Likewise.
30545         * modules/fsync-tests (Files): Likewise.
30546         * modules/ftell-tests (Files): Likewise.
30547         * modules/ftello-tests (Files): Likewise.
30548         * modules/func-tests (Files): Likewise.
30549         * modules/futimens-tests (Files): Likewise.
30550         * modules/fwritable-tests (Files): Likewise.
30551         * modules/fwriting-tests (Files): Likewise.
30552         * modules/getcwd-tests (Files): Likewise.
30553         * modules/getdate-tests (Files): Likewise.
30554         * modules/getdelim-tests (Files): Likewise.
30555         * modules/getdtablesize-tests (Files): Likewise.
30556         * modules/getgroups-tests (Files): Likewise.
30557         * modules/getline-tests (Files): Likewise.
30558         * modules/getndelim2-tests (Files): Likewise.
30559         * modules/glob-tests (Files): Likewise.
30560         * modules/hash-tests (Files): Likewise.
30561         * modules/i-ring-tests (Files): Likewise.
30562         * modules/iconv-tests (Files): Likewise.
30563         * modules/iconv_open-utf-tests (Files): Likewise.
30564         * modules/idpriv-drop-tests (Files): Likewise.
30565         * modules/idpriv-droptemp-tests (Files): Likewise.
30566         * modules/inet_ntop-tests (Files): Likewise.
30567         * modules/inet_pton-tests (Files): Likewise.
30568         * modules/isblank-tests (Files): Likewise.
30569         * modules/isfinite-tests (Files): Likewise.
30570         * modules/isinf-tests (Files): Likewise.
30571         * modules/isnan-tests (Files): Likewise.
30572         * modules/isnand-nolibm-tests (Files): Likewise.
30573         * modules/isnand-tests (Files): Likewise.
30574         * modules/isnanf-nolibm-tests (Files): Likewise.
30575         * modules/isnanf-tests (Files): Likewise.
30576         * modules/isnanl-nolibm-tests (Files): Likewise.
30577         * modules/isnanl-tests (Files): Likewise.
30578         * modules/lchown-tests (Files): Likewise.
30579         * modules/ldexpl-tests (Files): Likewise.
30580         * modules/link-tests (Files): Likewise.
30581         * modules/linkat-tests (Files): Likewise.
30582         * modules/linked-list-tests (Files): Likewise.
30583         * modules/linkedhash-list-tests (Files): Likewise.
30584         * modules/localename-tests (Files): Likewise.
30585         * modules/lseek-tests (Files): Likewise.
30586         * modules/lstat-tests (Files): Likewise.
30587         * modules/mbmemcasecmp-tests (Files): Likewise.
30588         * modules/mbmemcasecoll-tests (Files): Likewise.
30589         * modules/mbrtowc-tests (Files): Likewise.
30590         * modules/mbscasecmp-tests (Files): Likewise.
30591         * modules/mbscasestr-tests (Files): Likewise.
30592         * modules/mbschr-tests (Files): Likewise.
30593         * modules/mbscspn-tests (Files): Likewise.
30594         * modules/mbsinit-tests (Files): Likewise.
30595         * modules/mbsncasecmp-tests (Files): Likewise.
30596         * modules/mbsnrtowcs-tests (Files): Likewise.
30597         * modules/mbspbrk-tests (Files): Likewise.
30598         * modules/mbspcasecmp-tests (Files): Likewise.
30599         * modules/mbsrchr-tests (Files): Likewise.
30600         * modules/mbsrtowcs-tests (Files): Likewise.
30601         * modules/mbsspn-tests (Files): Likewise.
30602         * modules/mbsstr-tests (Files): Likewise.
30603         * modules/memchr-tests (Files): Likewise.
30604         * modules/memchr2-tests (Files): Likewise.
30605         * modules/memcmp-tests (Files): Likewise.
30606         * modules/memmem-tests (Files): Likewise.
30607         * modules/memrchr-tests (Files): Likewise.
30608         * modules/mkdir-tests (Files): Likewise.
30609         * modules/mkfifo-tests (Files): Likewise.
30610         * modules/mkfifoat-tests (Files): Likewise.
30611         * modules/mknod-tests (Files): Likewise.
30612         * modules/nanosleep-tests (Files): Likewise.
30613         * modules/nl_langinfo-tests (Files): Likewise.
30614         * modules/obstack-printf-tests (Files): Likewise.
30615         * modules/open-tests (Files): Likewise.
30616         * modules/openat-tests (Files): Likewise.
30617         * modules/pipe-filter-gi-tests (Files): Likewise.
30618         * modules/pipe-filter-ii-tests (Files): Likewise.
30619         * modules/pipe2-tests (Files): Likewise.
30620         * modules/popen-safer-tests (Files): Likewise.
30621         * modules/popen-tests (Files): Likewise.
30622         * modules/posixtm-tests (Files): Likewise.
30623         * modules/pread-tests (Files): Likewise.
30624         * modules/printf-frexp-tests (Files): Likewise.
30625         * modules/printf-frexpl-tests (Files): Likewise.
30626         * modules/printf-posix-tests (Files): Likewise.
30627         * modules/priv-set-tests (Files): Likewise.
30628         * modules/quotearg-tests (Files): Likewise.
30629         * modules/random_r-tests (Files): Likewise.
30630         * modules/rawmemchr-tests (Files): Likewise.
30631         * modules/rbtree-list-tests (Files): Likewise.
30632         * modules/rbtree-oset-tests (Files): Likewise.
30633         * modules/rbtreehash-list-tests (Files): Likewise.
30634         * modules/readlink-tests (Files): Likewise.
30635         * modules/remove-tests (Files): Likewise.
30636         * modules/rename-tests (Files): Likewise.
30637         * modules/renameat-tests (Files): Likewise.
30638         * modules/rmdir-tests (Files): Likewise.
30639         * modules/round-tests (Files): Likewise.
30640         * modules/roundf-tests (Files): Likewise.
30641         * modules/roundl-tests (Files): Likewise.
30642         * modules/safe-alloc-tests (Files): Likewise.
30643         * modules/setenv-tests (Files): Likewise.
30644         * modules/sigaction-tests (Files): Likewise.
30645         * modules/signbit-tests (Files): Likewise.
30646         * modules/sleep-tests (Files): Likewise.
30647         * modules/snprintf-posix-tests (Files): Likewise.
30648         * modules/snprintf-tests (Files): Likewise.
30649         * modules/sprintf-posix-tests (Files): Likewise.
30650         * modules/stat-tests (Files): Likewise.
30651         * modules/stat-time-tests (Files): Likewise.
30652         * modules/strcasestr-tests (Files): Likewise.
30653         * modules/strchrnul-tests (Files): Likewise.
30654         * modules/strerror-tests (Files): Likewise.
30655         * modules/striconv-tests (Files): Likewise.
30656         * modules/striconveh-tests (Files): Likewise.
30657         * modules/striconveha-tests (Files): Likewise.
30658         * modules/strsignal-tests (Files): Likewise.
30659         * modules/strstr-tests (Files): Likewise.
30660         * modules/strtod-tests (Files): Likewise.
30661         * modules/strverscmp-tests (Files): Likewise.
30662         * modules/symlink-tests (Files): Likewise.
30663         * modules/symlinkat-tests (Files): Likewise.
30664         * modules/trunc-tests (Files): Likewise.
30665         * modules/truncf-tests (Files): Likewise.
30666         * modules/truncl-tests (Files): Likewise.
30667         * modules/uname-tests (Files): Likewise.
30668         * modules/unicase/cased-tests (Files): Likewise.
30669         * modules/unicase/ignorable-tests (Files): Likewise.
30670         * modules/unicase/locale-language-tests (Files): Likewise.
30671         * modules/unicase/tolower-tests (Files): Likewise.
30672         * modules/unicase/totitle-tests (Files): Likewise.
30673         * modules/unicase/toupper-tests (Files): Likewise.
30674         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30675         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30676         * modules/unicase/u8-casefold-tests (Files): Likewise.
30677         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30678         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30679         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30680         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30681         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30682         * modules/unicase/u8-tolower-tests (Files): Likewise.
30683         * modules/unicase/u8-totitle-tests (Files): Likewise.
30684         * modules/unicase/u8-toupper-tests (Files): Likewise.
30685         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30686         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30687         * modules/unicase/u16-casefold-tests (Files): Likewise.
30688         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30689         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30690         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30691         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30692         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30693         * modules/unicase/u16-tolower-tests (Files): Likewise.
30694         * modules/unicase/u16-totitle-tests (Files): Likewise.
30695         * modules/unicase/u16-toupper-tests (Files): Likewise.
30696         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30697         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30698         * modules/unicase/u32-casefold-tests (Files): Likewise.
30699         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30700         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30701         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30702         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30703         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30704         * modules/unicase/u32-tolower-tests (Files): Likewise.
30705         * modules/unicase/u32-totitle-tests (Files): Likewise.
30706         * modules/unicase/u32-toupper-tests (Files): Likewise.
30707         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30708         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30709         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30710         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30711         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30712         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30713         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30714         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30715         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30716         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30717         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30718         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30719         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30720         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30721         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30722         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30723         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30724         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30725         * modules/unictype/block-list-tests (Files): Likewise.
30726         * modules/unictype/block-of-tests (Files): Likewise.
30727         * modules/unictype/block-test-tests (Files): Likewise.
30728         * modules/unictype/category-C-tests (Files): Likewise.
30729         * modules/unictype/category-Cc-tests (Files): Likewise.
30730         * modules/unictype/category-Cf-tests (Files): Likewise.
30731         * modules/unictype/category-Cn-tests (Files): Likewise.
30732         * modules/unictype/category-Co-tests (Files): Likewise.
30733         * modules/unictype/category-Cs-tests (Files): Likewise.
30734         * modules/unictype/category-L-tests (Files): Likewise.
30735         * modules/unictype/category-Ll-tests (Files): Likewise.
30736         * modules/unictype/category-Lm-tests (Files): Likewise.
30737         * modules/unictype/category-Lo-tests (Files): Likewise.
30738         * modules/unictype/category-Lt-tests (Files): Likewise.
30739         * modules/unictype/category-Lu-tests (Files): Likewise.
30740         * modules/unictype/category-M-tests (Files): Likewise.
30741         * modules/unictype/category-Mc-tests (Files): Likewise.
30742         * modules/unictype/category-Me-tests (Files): Likewise.
30743         * modules/unictype/category-Mn-tests (Files): Likewise.
30744         * modules/unictype/category-N-tests (Files): Likewise.
30745         * modules/unictype/category-Nd-tests (Files): Likewise.
30746         * modules/unictype/category-Nl-tests (Files): Likewise.
30747         * modules/unictype/category-No-tests (Files): Likewise.
30748         * modules/unictype/category-P-tests (Files): Likewise.
30749         * modules/unictype/category-Pc-tests (Files): Likewise.
30750         * modules/unictype/category-Pd-tests (Files): Likewise.
30751         * modules/unictype/category-Pe-tests (Files): Likewise.
30752         * modules/unictype/category-Pf-tests (Files): Likewise.
30753         * modules/unictype/category-Pi-tests (Files): Likewise.
30754         * modules/unictype/category-Po-tests (Files): Likewise.
30755         * modules/unictype/category-Ps-tests (Files): Likewise.
30756         * modules/unictype/category-S-tests (Files): Likewise.
30757         * modules/unictype/category-Sc-tests (Files): Likewise.
30758         * modules/unictype/category-Sk-tests (Files): Likewise.
30759         * modules/unictype/category-Sm-tests (Files): Likewise.
30760         * modules/unictype/category-So-tests (Files): Likewise.
30761         * modules/unictype/category-Z-tests (Files): Likewise.
30762         * modules/unictype/category-Zl-tests (Files): Likewise.
30763         * modules/unictype/category-Zp-tests (Files): Likewise.
30764         * modules/unictype/category-Zs-tests (Files): Likewise.
30765         * modules/unictype/category-and-not-tests (Files): Likewise.
30766         * modules/unictype/category-and-tests (Files): Likewise.
30767         * modules/unictype/category-byname-tests (Files): Likewise.
30768         * modules/unictype/category-name-tests (Files): Likewise.
30769         * modules/unictype/category-none-tests (Files): Likewise.
30770         * modules/unictype/category-of-tests (Files): Likewise.
30771         * modules/unictype/category-or-tests (Files): Likewise.
30772         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30773         * modules/unictype/combining-class-tests (Files): Likewise.
30774         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30775         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30776         * modules/unictype/ctype-blank-tests (Files): Likewise.
30777         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30778         * modules/unictype/ctype-digit-tests (Files): Likewise.
30779         * modules/unictype/ctype-graph-tests (Files): Likewise.
30780         * modules/unictype/ctype-lower-tests (Files): Likewise.
30781         * modules/unictype/ctype-print-tests (Files): Likewise.
30782         * modules/unictype/ctype-punct-tests (Files): Likewise.
30783         * modules/unictype/ctype-space-tests (Files): Likewise.
30784         * modules/unictype/ctype-upper-tests (Files): Likewise.
30785         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30786         * modules/unictype/decimal-digit-tests (Files): Likewise.
30787         * modules/unictype/digit-tests (Files): Likewise.
30788         * modules/unictype/mirror-tests (Files): Likewise.
30789         * modules/unictype/numeric-tests (Files): Likewise.
30790         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30791         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30792         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30793         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30794         Likewise.
30795         * modules/unictype/property-bidi-block-separator-tests (Files):
30796         Likewise.
30797         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30798         Likewise.
30799         * modules/unictype/property-bidi-common-separator-tests (Files):
30800         Likewise.
30801         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30802         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30803         Likewise.
30804         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30805         Likewise.
30806         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30807         Likewise.
30808         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30809         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30810         Likewise.
30811         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30812         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30813         Likewise.
30814         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30815         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30816         * modules/unictype/property-bidi-segment-separator-tests (Files):
30817         Likewise.
30818         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30819         * modules/unictype/property-byname-tests (Files): Likewise.
30820         * modules/unictype/property-combining-tests (Files): Likewise.
30821         * modules/unictype/property-composite-tests (Files): Likewise.
30822         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30823         * modules/unictype/property-dash-tests (Files): Likewise.
30824         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30825         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30826         Likewise.
30827         * modules/unictype/property-deprecated-tests (Files): Likewise.
30828         * modules/unictype/property-diacritic-tests (Files): Likewise.
30829         * modules/unictype/property-extender-tests (Files): Likewise.
30830         * modules/unictype/property-format-control-tests (Files): Likewise.
30831         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30832         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30833         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30834         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30835         * modules/unictype/property-hyphen-tests (Files): Likewise.
30836         * modules/unictype/property-id-continue-tests (Files): Likewise.
30837         * modules/unictype/property-id-start-tests (Files): Likewise.
30838         * modules/unictype/property-ideographic-tests (Files): Likewise.
30839         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30840         * modules/unictype/property-ids-trinary-operator-tests (Files):
30841         Likewise.
30842         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30843         * modules/unictype/property-iso-control-tests (Files): Likewise.
30844         * modules/unictype/property-join-control-tests (Files): Likewise.
30845         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30846         * modules/unictype/property-line-separator-tests (Files): Likewise.
30847         * modules/unictype/property-logical-order-exception-tests (Files):
30848         Likewise.
30849         * modules/unictype/property-lowercase-tests (Files): Likewise.
30850         * modules/unictype/property-math-tests (Files): Likewise.
30851         * modules/unictype/property-non-break-tests (Files): Likewise.
30852         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30853         * modules/unictype/property-numeric-tests (Files): Likewise.
30854         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30855         * modules/unictype/property-other-default-ignorable-code-point-tests
30856         (Files): Likewise.
30857         * modules/unictype/property-other-grapheme-extend-tests (Files):
30858         Likewise.
30859         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30860         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30861         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30862         * modules/unictype/property-other-math-tests (Files): Likewise.
30863         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30864         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30865         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30866         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30867         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30868         * modules/unictype/property-private-use-tests (Files): Likewise.
30869         * modules/unictype/property-punctuation-tests (Files): Likewise.
30870         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30871         * modules/unictype/property-radical-tests (Files): Likewise.
30872         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30873         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30874         * modules/unictype/property-space-tests (Files): Likewise.
30875         * modules/unictype/property-terminal-punctuation-tests (Files):
30876         Likewise.
30877         * modules/unictype/property-test-tests (Files): Likewise.
30878         * modules/unictype/property-titlecase-tests (Files): Likewise.
30879         * modules/unictype/property-unassigned-code-value-tests (Files):
30880         Likewise.
30881         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30882         * modules/unictype/property-uppercase-tests (Files): Likewise.
30883         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30884         * modules/unictype/property-white-space-tests (Files): Likewise.
30885         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30886         * modules/unictype/property-xid-start-tests (Files): Likewise.
30887         * modules/unictype/property-zero-width-tests (Files): Likewise.
30888         * modules/unictype/scripts-tests (Files): Likewise.
30889         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30890         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30891         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30892         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30893         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30894         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30895         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30896         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30897         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30898         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30899         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30900         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30901         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30902         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30903         * modules/uninorm/composition-tests (Files): Likewise.
30904         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30905         * modules/uninorm/decomposition-tests (Files): Likewise.
30906         * modules/uninorm/filter-tests (Files): Likewise.
30907         * modules/uninorm/nfc-tests (Files): Likewise.
30908         * modules/uninorm/nfd-tests (Files): Likewise.
30909         * modules/uninorm/nfkc-tests (Files): Likewise.
30910         * modules/uninorm/nfkd-tests (Files): Likewise.
30911         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30912         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30913         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30914         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30915         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30916         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30917         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30918         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30919         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30920         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30921         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30922         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30923         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30924         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30925         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30926         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30927         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30928         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30929         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30930         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30931         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30932         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30933         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30934         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30935         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30936         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30937         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30938         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30939         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30940         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30941         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30942         * modules/uniwidth/u8-width-tests (Files): Likewise.
30943         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30944         * modules/uniwidth/u16-width-tests (Files): Likewise.
30945         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30946         * modules/uniwidth/u32-width-tests (Files): Likewise.
30947         * modules/uniwidth/width-tests (Files): Likewise.
30948         * modules/unlink-tests (Files): Likewise.
30949         * modules/unsetenv-tests (Files): Likewise.
30950         * modules/usleep-tests (Files): Likewise.
30951         * modules/utimens-tests (Files): Likewise.
30952         * modules/utimensat-tests (Files): Likewise.
30953         * modules/vasnprintf-posix-tests (Files): Likewise.
30954         * modules/vasnprintf-tests (Files): Likewise.
30955         * modules/vasprintf-posix-tests (Files): Likewise.
30956         * modules/vasprintf-tests (Files): Likewise.
30957         * modules/vdprintf-posix-tests (Files): Likewise.
30958         * modules/vfprintf-posix-tests (Files): Likewise.
30959         * modules/vprintf-posix-tests (Files): Likewise.
30960         * modules/vsnprintf-posix-tests (Files): Likewise.
30961         * modules/vsnprintf-tests (Files): Likewise.
30962         * modules/vsprintf-posix-tests (Files): Likewise.
30963         * modules/wcrtomb-tests (Files): Likewise.
30964         * modules/wcsnrtombs-tests (Files): Likewise.
30965         * modules/wcsrtombs-tests (Files): Likewise.
30966         * modules/wctype-tests (Files): Likewise.
30967         * modules/wcwidth-tests (Files): Likewise.
30968         * modules/xmemdup0-tests (Files): Likewise.
30969         * modules/xprintf-posix-tests (Files): Likewise.
30970         * modules/xvasprintf-tests (Files): Likewise.
30971
30972 2009-12-24  Eric Blake  <ebb9@byu.net>
30973
30974         test-nanosleep: fix typo
30975         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30976         patch.
30977         Reported by Bruno Haible.
30978
30979 2009-12-24  Bruno Haible  <bruno@clisp.org>
30980
30981         Reduce namespace pollution on glibc systems.
30982         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30983         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30984         systems.
30985         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30986         <getopt.h> on glibc systems.
30987         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30988         systems.
30989         * lib/fcntl.c: Include <unistd.h> here instead.
30990
30991 2009-12-24  Bruno Haible  <bruno@clisp.org>
30992
30993         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30994
30995 2009-12-24  Eric Blake  <ebb9@byu.net>
30996
30997         tests: add signature checks
30998         * tests/signature.h (SIGNATURE_CHECK): New file.
30999         * modules/atexit-tests (Files): Use it.
31000         * modules/btowc-tests (Files): Likewise.
31001         * modules/canonicalize-lgpl-tests (Files): Likewise.
31002         * modules/ceilf-tests (Files): Likewise.
31003         * modules/ceill-tests (Files): Likewise.
31004         * modules/chown-tests (Files): Likewise.
31005         * modules/dprintf-posix-tests (Files): Likewise.
31006         * modules/dup2-tests (Files): Likewise.
31007         * modules/dup3-tests (Files): Likewise.
31008         * modules/duplocale-tests (Files): Likewise.
31009         * modules/fchdir-tests (Files): Likewise.
31010         * modules/fcntl-tests (Files): Likewise.
31011         * modules/fdopendir-tests (Files): Likewise.
31012         * modules/fflush-tests (Files): Likewise.
31013         * modules/flock-tests (Files): Likewise.
31014         * modules/floorf-tests (Files): Likewise.
31015         * modules/floorl-tests (Files): Likewise.
31016         * modules/fnmatch-tests (Files): Likewise.
31017         * modules/fopen-tests (Files): Likewise.
31018         * modules/fprintf-posix-tests (Files): Likewise.
31019         * modules/freopen-tests (Files): Likewise.
31020         * modules/frexp-nolibm-tests (Files): Likewise.
31021         * modules/frexp-tests (Files): Likewise.
31022         * modules/frexpl-nolibm-tests (Files): Likewise.
31023         * modules/frexpl-tests (Files): Likewise.
31024         * modules/fseek-tests (Files): Likewise.
31025         * modules/fseeko-tests (Files): Likewise.
31026         * modules/fsync-tests (Files): Likewise.
31027         * modules/ftell-tests (Files): Likewise.
31028         * modules/ftello-tests (Files): Likewise.
31029         * modules/futimens-tests (Files): Likewise.
31030         * modules/getaddrinfo-tests (Files): Likewise.
31031         * modules/getcwd-tests (Files): Likewise.
31032         * modules/getdelim-tests (Files): Likewise.
31033         * modules/getdtablesize-tests (Files): Likewise.
31034         * modules/getgroups-tests (Files): Likewise.
31035         * modules/gethostname-tests (Files): Likewise.
31036         * modules/getline-tests (Files): Likewise.
31037         * modules/getopt-posix-tests (Files): Likewise.
31038         * modules/gettimeofday-tests (Files): Likewise.
31039         * modules/glob-tests (Files): Likewise.
31040         * modules/iconv-tests (Files): Likewise.
31041         * modules/inet_ntop-tests (Files): Likewise.
31042         * modules/inet_pton-tests (Files): Likewise.
31043         * modules/isblank-tests (Files): Likewise.
31044         * modules/lchown-tests (Files): Likewise.
31045         * modules/ldexpl-tests (Files): Likewise.
31046         * modules/link-tests (Files): Likewise.
31047         * modules/linkat-tests (Files): Likewise.
31048         * modules/lseek-tests (Files): Likewise.
31049         * modules/lstat-tests (Files): Likewise.
31050         * modules/mbrtowc-tests (Files): Likewise.
31051         * modules/mbsinit-tests (Files): Likewise.
31052         * modules/mbsnrtowcs-tests (Files): Likewise.
31053         * modules/mbsrtowcs-tests (Files): Likewise.
31054         * modules/memchr-tests (Files): Likewise.
31055         * modules/memcmp-tests (Files): Likewise.
31056         * modules/memmem-tests (Files): Likewise.
31057         * modules/memrchr-tests (Files): Likewise.
31058         * modules/mkdir-tests (Files): Likewise.
31059         * modules/mkfifo-tests (Files): Likewise.
31060         * modules/mkfifoat-tests (Files): Likewise.
31061         * modules/mknod-tests (Files): Likewise.
31062         * modules/nanosleep-tests (Files): Likewise.
31063         * modules/nl_langinfo-tests (Files): Likewise.
31064         * modules/obstack-printf-tests (Files): Likewise.
31065         * modules/open-tests (Files): Likewise.
31066         * modules/openat-tests (Files): Likewise.
31067         * modules/perror-tests (Files): Likewise.
31068         * modules/pipe2-tests (Files): Likewise.
31069         * modules/poll-tests (Files): Likewise.
31070         * modules/popen-tests (Files): Likewise.
31071         * modules/posix_spawn-tests (Files): Likewise.
31072         * modules/posix_spawnp-tests (Files): Likewise.
31073         * modules/pread-tests (Files): Likewise.
31074         * modules/printf-posix-tests (Files): Likewise.
31075         * modules/pty-tests (Files): Likewise.
31076         * modules/random_r-tests (Files): Likewise.
31077         * modules/rawmemchr-tests (Files): Likewise.
31078         * modules/readlink-tests (Files): Likewise.
31079         * modules/remove-tests (Files): Likewise.
31080         * modules/rename-tests (Files): Likewise.
31081         * modules/renameat-tests (Files): Likewise.
31082         * modules/rmdir-tests (Files): Likewise.
31083         * modules/round-tests (Files): Likewise.
31084         * modules/roundf-tests (Files): Likewise.
31085         * modules/roundl-tests (Files): Likewise.
31086         * modules/select-tests (Files): Likewise.
31087         * modules/setenv-tests (Files): Likewise.
31088         * modules/sigaction-tests (Files): Likewise.
31089         * modules/sleep-tests (Files): Likewise.
31090         * modules/snprintf-posix-tests (Files): Likewise.
31091         * modules/snprintf-tests (Files): Likewise.
31092         * modules/sprintf-posix-tests (Files): Likewise.
31093         * modules/stat-tests (Files): Likewise.
31094         * modules/strcasestr-tests (Files): Likewise.
31095         * modules/strchrnul-tests (Files): Likewise.
31096         * modules/strerror-tests (Files): Likewise.
31097         * modules/strsignal-tests (Files): Likewise.
31098         * modules/strstr-tests (Files): Likewise.
31099         * modules/strtod-tests (Files): Likewise.
31100         * modules/strverscmp-tests (Files): Likewise.
31101         * modules/symlink-tests (Files): Likewise.
31102         * modules/symlinkat-tests (Files): Likewise.
31103         * modules/times-tests (Files): Likewise.
31104         * modules/trunc-tests (Files): Likewise.
31105         * modules/truncf-tests (Files): Likewise.
31106         * modules/truncl-tests (Files): Likewise.
31107         * modules/tsearch-tests (Files): Likewise.
31108         * modules/uname-tests (Files): Likewise.
31109         * modules/unlink-tests (Files): Likewise.
31110         * modules/unsetenv-tests (Files): Likewise.
31111         * modules/usleep-tests (Files): Likewise.
31112         * modules/utimensat-tests (Files): Likewise.
31113         * modules/vasprintf-tests (Files): Likewise.
31114         * modules/vdprintf-posix-tests (Files): Likewise.
31115         * modules/vfprintf-posix-tests (Files): Likewise.
31116         * modules/vprintf-posix-tests (Files): Likewise.
31117         * modules/vsnprintf-posix-tests (Files): Likewise.
31118         * modules/vsnprintf-tests (Files): Likewise.
31119         * modules/vsprintf-posix-tests (Files): Likewise.
31120         * modules/wcrtomb-tests (Files): Likewise.
31121         * modules/wcsnrtombs-tests (Files): Likewise.
31122         * modules/wcsrtombs-tests (Files): Likewise.
31123         * modules/wcwidth-tests (Files): Likewise.
31124         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31125         * tests/test-isinf.c (isinf): Likewise.
31126         * tests/test-isnan.c (isnan): Likewise.
31127         * tests/test-signbit.c (signbit): Likewise.
31128         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31129         declaration, either as macro or with correct signature.
31130         (select): Ensure function under test is declared with correct
31131         signature in correct header.
31132         * tests/test-atexit.c (atexit): Likewise.
31133         * tests/test-btowc.c (btowc): Likewise.
31134         * tests/test-canonicalize-lgpl.c (realpath)
31135         (canonicalize_file_name): Likewise.
31136         * tests/test-ceilf1.c (ceilf): Likewise.
31137         * tests/test-ceill.c (ceill): Likewise.
31138         * tests/test-chown.c (chown): Likewise.
31139         * tests/test-dprintf-posix.c (dprintf): Likewise.
31140         * tests/test-dup2.c (dup2): Likewise.
31141         * tests/test-dup3.c (dup3): Likewise.
31142         * tests/test-duplocale.c (duplocale): Likewise.
31143         * tests/test-fchdir.c (fchdir): Likewise.
31144         * tests/test-fchownat.c (fchownat): Likewise.
31145         * tests/test-fcntl.c (fcntl): Likewise.
31146         * tests/test-fdopendir.c (fdopendir): Likewise.
31147         * tests/test-fflush.c (fflush): Likewise.
31148         * tests/test-flock.c (flock): Likewise.
31149         * tests/test-floorf1.c (floorf): Likewise.
31150         * tests/test-floorl.c (floorl): Likewise.
31151         * tests/test-fnmatch.c (fnmatch): Likewise.
31152         * tests/test-fopen.c (fopen): Likewise.
31153         * tests/test-fprintf-posix.c (fprintf): Likewise.
31154         * tests/test-freopen.c (freopen): Likewise.
31155         * tests/test-frexp.c (frexp): Likewise.
31156         * tests/test-frexpl.c (frexpl): Likewise.
31157         * tests/test-fseek.c (fseek): Likewise.
31158         * tests/test-fseeko.c (fseeko): Likewise.
31159         * tests/test-fstatat.c (fstatat): Likewise.
31160         * tests/test-fsync.c (fsync): Likewise.
31161         * tests/test-ftell.c (ftell): Likewise.
31162         * tests/test-ftello.c (ftello): Likewise.
31163         * tests/test-futimens.c (futimens): Likewise.
31164         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31165         (gai_strerror): Likewise.
31166         * tests/test-getcwd.c (getcwd): Likewise.
31167         * tests/test-getdelim.c (getdelim): Likewise.
31168         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31169         * tests/test-getgroups.c (getgroups): Likewise.
31170         * tests/test-gethostname.c (gethostname): Likewise.
31171         * tests/test-getline.c (getline): Likewise.
31172         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31173         Likewise.
31174         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31175         * tests/test-glob.c (glob, globfree): Likewise.
31176         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31177         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31178         * tests/test-inet_pton.c (inet_pton): Likewise.
31179         * tests/test-isblank.c (isblank): Likewise.
31180         * tests/test-lchown.c (lchown): Likewise.
31181         * tests/test-ldexpl.c (ldexpl): Likewise.
31182         * tests/test-link.c (link): Likewise.
31183         * tests/test-linkat.c (linkat): Likewise.
31184         * tests/test-lseek.c (lseek): Likewise.
31185         * tests/test-lstat.c (lstat): Likewise.
31186         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31187         * tests/test-mbsinit.c (mbsinit): Likewise.
31188         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31189         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31190         * tests/test-memchr.c (memchr): Likewise.
31191         * tests/test-memcmp.c (memcmp): Likewise.
31192         * tests/test-memmem.c (memmem): Likewise.
31193         * tests/test-memrchr.c (memrchr): Likewise.
31194         * tests/test-mkdir.c (mkdir): Likewise.
31195         * tests/test-mkdirat.c (mkdirat): Likewise.
31196         * tests/test-mkfifo.c (mkfifo): Likewise.
31197         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31198         * tests/test-mknod.c (mknod): Likewise.
31199         * tests/test-nanosleep.c (nanosleep): Likewise.
31200         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31201         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31202         Likewise.
31203         * tests/test-open.c (open): Likewise.
31204         * tests/test-openat.c (openat): Likewise.
31205         * tests/test-perror.c (perror): Likewise.
31206         * tests/test-pipe2.c (pipe2): Likewise.
31207         * tests/test-poll.c (poll): Likewise.
31208         * tests/test-popen.c (popen, pclose): Likewise.
31209         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31210         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31211         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31212         (posix_spawn_file_actions_destroy)
31213         (posix_spawn_file_actions_addclose)
31214         (posix_spawn_file_actions_addopen)
31215         (posix_spawn_file_actions_adddup2): Likewise.
31216         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31217         * tests/test-pread.c (pread): Likewise.
31218         * tests/test-printf-posix.c (printf): Likewise.
31219         * tests/test-pty.c (openpty, forkpty): Likewise.
31220         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31221         (random_r): Likewise.
31222         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31223         * tests/test-readlink.c (readlink): Likewise.
31224         * tests/test-remove.c (remove): Likewise.
31225         * tests/test-rename.c (rename): Likewise.
31226         * tests/test-renameat.c (renameat): Likewise.
31227         * tests/test-rmdir.c (rmdir): Likewise.
31228         * tests/test-round1.c (round): Likewise.
31229         * tests/test-roundf1.c (roundf): Likewise.
31230         * tests/test-roundl.c (roundl): Likewise.
31231         * tests/test-setenv.c (setenv): Likewise.
31232         * tests/test-sigaction.c (sigaction): Likewise.
31233         * tests/test-sleep.c (sleep): Likewise.
31234         * tests/test-snprintf.c (snprintf): Likewise.
31235         * tests/test-sprintf-posix.c (sprintf): Likewise.
31236         * tests/test-stat.c (stat): Likewise.
31237         * tests/test-stpncpy.c (stpncpy): Likewise.
31238         * tests/test-strcasestr.c (strcasestr): Likewise.
31239         * tests/test-strchrnul.c (strchrnul): Likewise.
31240         * tests/test-strerror.c (strerror): Likewise.
31241         * tests/test-strsignal.c (strsignal): Likewise.
31242         * tests/test-strstr.c (strstr): Likewise.
31243         * tests/test-strtod.c (strtod): Likewise.
31244         * tests/test-strverscmp.c (strverscmp): Likewise.
31245         * tests/test-symlink.c (symlink): Likewise.
31246         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31247         * tests/test-times.c (times): Likewise.
31248         * tests/test-trunc1.c (trunc): Likewise.
31249         * tests/test-truncf1.c (truncf): Likewise.
31250         * tests/test-truncl.c (truncl): Likewise.
31251         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31252         Likewise.
31253         * tests/test-uname.c (uname): Likewise.
31254         * tests/test-unlink.c (unlink): Likewise.
31255         * tests/test-unlinkat.c (unlinkat): Likewise.
31256         * tests/test-unsetenv.c (unsetenv): Likewise.
31257         * tests/test-usleep.c (usleep): Likewise.
31258         * tests/test-utimensat.c (utimensat): Likewise.
31259         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31260         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31261         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31262         * tests/test-vprintf-posix.c (vprintf): Likewise.
31263         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31264         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31265         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31266         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31267         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31268         * tests/test-wcwidth.c (wcwidth): Likewise.
31269
31270         build: pull in conditional headers during GNULIB_POSIXCHECK
31271         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31272         definitions from any conditionally-included headers.
31273         * lib/stdlib.in.h (includes): Likewise.
31274         * lib/unistd.in.h (includes): Likewise.
31275
31276 2009-12-24  Bruno Haible  <bruno@clisp.org>
31277
31278         * tests/test-argv-iter.c: Include header file being tested immediately
31279         after config.h.
31280         * tests/test-base64.c: Likewise.
31281         * tests/test-flock.c: Likewise.
31282         * tests/test-fsync.c: Likewise.
31283         * tests/test-getdate.c: Likewise.
31284         * tests/test-getndelim2.c: Likewise.
31285         * tests/test-isfinite.c: Likewise.
31286         * tests/test-isinf.c: Likewise.
31287         * tests/test-strerror.c: Likewise.
31288         * tests/test-strsignal.c: Likewise.
31289
31290 2009-12-23  Eric Blake  <ebb9@byu.net>
31291
31292         unistd: work around cygwin bug
31293         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31294         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31295         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31296
31297 2009-12-23  Bruno Haible  <bruno@clisp.org>
31298
31299         localename: More tests.
31300         * tests/test-localename.c (SIZEOF): New macro.
31301         (categories): New variable.
31302         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31303         test_locale_name_default): Add test w.r.t. thread locale.
31304         (test_locale_name_thread): New function.
31305         (main): Invoke it.
31306
31307         localename: Make aware of thread locale.
31308         * lib/localename.h (gl_locale_name_thread): New declaration.
31309         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31310         behaviour with respect to thread locale.
31311         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31312         <langinfo.h>, glthread/lock.h.
31313         (SIZE_BITS): New macro.
31314         (string_hash): New function.
31315         (struct hash_node): New type.
31316         (HASH_TABLE_SIZE): New macro.
31317         (struniq_hash_table, struniq_lock): New variables.
31318         (struniq): New function.
31319         (gl_locale_name_thread): New function.
31320         (gl_locale_name): Invoke it.
31321         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31322         * modules/localename (Depends-on): Add lock.
31323         Reported by Mike Gran <spk121@yahoo.com>.
31324
31325 2009-12-23  Eric Blake  <ebb9@byu.net>
31326
31327         va-args: new module
31328         * modules/va-args: New file.
31329         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31330         * MODULES.html.sh (Core language properties): Mention it.
31331
31332         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31333         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31334         named alias for __attribute__((__unused__)).
31335         * lib/chown.c: Update client.
31336         * lib/fchmodat.c: Likewise.
31337         * lib/fts.c: Likewise.
31338         * lib/getdate.y: Likewise.
31339         * lib/getgroups.c: Likewise.
31340         * lib/getopt.c: Likewise.
31341         * lib/getugroups.c: Likewise.
31342         * lib/mkdir.c: Likewise.
31343         * lib/mkfifo.c: Likewise.
31344         * lib/mkfifoat.c: Likewise.
31345         * lib/mknod.c: Likewise.
31346         * lib/mknodat.c: Likewise.
31347         * lib/readlink.c: Likewise.
31348         * lib/se-context.in.h: Likewise.
31349         * lib/se-selinux.in.h: Likewise.
31350         * lib/sockets.c: Likewise.
31351         * lib/symlink.c: Likewise.
31352         * lib/symlinkat.c: Likewise.
31353         * lib/unicodeio.c: Likewise.
31354         * lib/unistr.h: Likewise.
31355         * tests/test-areadlink.c: Likewise.
31356         * tests/test-areadlinkat.c: Likewise.
31357         * tests/test-filenamecat.c: Likewise.
31358         * tests/test-fseeko.c: Likewise.
31359         * tests/test-ftello.c: Likewise.
31360         * tests/test-getdate.c: Likewise.
31361         * tests/test-getgroups.c: Likewise.
31362         * tests/test-gethostname.c: Likewise.
31363         * tests/test-quotearg.c: Likewise.
31364         * tests/test-version-etc.c: Likewise.
31365         * tests/test-xalloc-die.c: Likewise.
31366         * tests/test-xfprintf-posix.c: Likewise.
31367         * tests/test-xprintf-posix.c: Likewise.
31368         * tests/test-xvasprintf.c: Likewise.
31369
31370         tests: avoid compiler warnings
31371         * tests/test-fcntl.c (main): Delete unused parameters.
31372         * tests/test-freopen-safer.c (main): Likewise.
31373         * tests/test-xalloc-die.c (main): Mark unused parameters.
31374         * tests/test-fseeko.c (main): Likewise.
31375         * tests/test-ftello.c (main): Likewise.
31376         * tests/test-nanosleep.c (main): Avoid declaration warning.
31377         * tests/test-sleep.c (main): Likewise.
31378         * tests/test-unsetenv.c (main): Silence warning about string
31379         literal.
31380         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31381
31382 2009-12-23  Bruno Haible  <bruno@clisp.org>
31383
31384         * tests/test-localename.c (test_locale_name): New function, extracted
31385         from main. Also test mixed situations.
31386         (test_locale_name_posix, test_locale_name_environ,
31387         test_locale_name_default): New functions.
31388         (main): Invoke them all.
31389         * modules/localename-tests (configure.ac): Test for newlocale.
31390
31391 2009-12-23  Bruno Haible  <bruno@clisp.org>
31392
31393         unistd: Ensure getcwd gets declared before being overridden.
31394         * lib/unistd.in.h: Conditionally include <io.h>.
31395
31396 2009-12-22  Bruno Haible  <bruno@clisp.org>
31397
31398         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31399         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31400         (gl_WCHAR_H): Invoke it.
31401         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31402         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31403         Reported by Karl Berry <karl@freefriends.org>.
31404
31405 2009-12-22  Eric Blake  <ebb9@byu.net>
31406
31407         math, unistd: avoid redundant includes
31408         * lib/math.in.h (isnan): No need to re-include <math.h>.
31409         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31410
31411         getsubopt: work around cygwin bug
31412         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31413         avoid conflicting with system getsubopt.
31414         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31415         bug.
31416
31417         getopt: synchronize from glibc
31418         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31419         parameter order.  Adjust all callers.
31420         (_getopt_internal_r, main): Adjust quoting in error messages.
31421         Drop considerations for outdated POSIX 1003.2 error message.
31422         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31423         callers.
31424         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31425
31426         test-getopt: test stderr behavior
31427         * modules/getopt-posix-tests (Depends-on): Add dup2.
31428         * tests/test-getopt.c (ASSERT): Avoid stderr.
31429         (main): Move stderr to a temporary file.
31430         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31431         Instead, add parameter to inform caller if output occurred.
31432         (test_getopt): Adjust all existing tests to expect silence, and
31433         add new tests of leading ":".
31434         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31435         glibc shortcomings with leading "-:" or "+:" in optstring.
31436         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31437         Likewise.
31438         * doc/posix-functions/getopt.texi (getopt): Likewise.
31439
31440         test-getopt: enhance test
31441         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31442         supports optind=0.
31443         * tests/test-getopt.c (OPTIND_MIN): Move...
31444         * tests/test-getopt.h (OPTIND_MIN): ...here.
31445         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31446         Require that optind=0 works, since modern BSD supports it in
31447         addition to optreset, and since coreutils expects it.
31448         (test_getopt_long_only): New test.
31449         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31450         glibc shortcomings with 'W;', and enforcement of optind=0.
31451         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31452         Likewise.
31453
31454 2009-12-21  Bruno Haible  <bruno@clisp.org>
31455
31456         localename: Improvements for MacOS X and Cygwin.
31457         * lib/localename.h (gl_locale_name_environ): New declaration.
31458         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31459         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31460         (gl_locale_name_posix): Invoke it.
31461         (gl_locale_name_default): Add comments. Use Windows native API also on
31462         Cygwin.
31463
31464 2009-12-21  Bruno Haible  <bruno@clisp.org>
31465
31466         Update list of Win32 locale ids.
31467         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31468         (LANG_SAMI): Renamed from LANG_SAAMI.
31469         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31470         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31471         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31472         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31473         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31474         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31475         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31476         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31477         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31478         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31479         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31480         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31481         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31482         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31483         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31484         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31485         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31486         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31487         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31488         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31489         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31490         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31491         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31492         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31493         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31494         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31495         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31496         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31497         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31498         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31499         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31500         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31501         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31502         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31503         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31504         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31505         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31506         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31507         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31508         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31509         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31510         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31511         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31512         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31513         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31514         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31515         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31516         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31517         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31518         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31519         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31520         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31521         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31522         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31523         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31524         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31525         Add more languages and countries for Sami, Sorbian. Add more countries
31526         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31527         for Pashto. Change country for Syriac, Tswana.
31528
31529 2009-12-21  Eric Blake  <ebb9@byu.net>
31530
31531         test-utimens: avoid spurious failure
31532         * tests/test-chown.h (nap): Factor...
31533         * tests/nap.h: ...into new file.
31534         * tests/test-lchown.h (nap): Avoid duplication.
31535         * tests/test-utimens-common.h (nap): Use shared implementation,
31536         necessary on file systems with 1-second resolution.
31537         * modules/chown-tests (Files): Include new file.
31538         * modules/fdutimensat-tests (Files): Likewise.
31539         * modules/futimens-tests (Files): Likewise.
31540         * modules/lchown-tests (Files): Likewise.
31541         * modules/openat-tests (Files): Likewise.
31542         * modules/utimens-tests (Files): Likewise.
31543         * modules/utimensat-tests (Files): Likewise.
31544
31545 2009-12-19  Eric Blake  <ebb9@byu.net>
31546
31547         futimens, utimensat: work around Linux bug
31548         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31549         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31550         * lib/utimensat.c (rpl_utimensat): Work around it.
31551         * lib/futimens.c (rpl_futimens): Adjust comment.
31552
31553         utimens: work around Linux ctime bug
31554         * lib/utimens.c (detect_ctime_bug): New helper function.
31555         (update_timespec): Differentiate between workaround needed for
31556         this bug vs. what is needed for systems that lack utimensat.
31557         (fdutimens, lutimens): Work around bug.
31558
31559         utimens: check for ctime update
31560         * tests/test-utimens-common.h (check_ctime): Define.
31561         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31562         * tests/test-futimens.h (test_futimens): Likewise.
31563         * tests/test-lutimens.h (test_lutimens): Likewise.
31564         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31565         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31566
31567 2009-12-19  Bruno Haible  <bruno@clisp.org>
31568
31569         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31570         * tests/test-dprintf-posix2.sh: New file.
31571         * tests/test-dprintf-posix2.c: New file.
31572         * modules/dprintf-posix-tests (Files): Add them.
31573         (configure.ac): Check for getrlimit and setrlimit.
31574         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31575
31576 2009-12-19  Bruno Haible  <bruno@clisp.org>
31577
31578         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31579         * tests/test-fprintf-posix3.sh: New file.
31580         * tests/test-fprintf-posix3.c: New file.
31581         * modules/fprintf-posix-tests (Files): Add them.
31582         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31583
31584 2009-12-19  Eric Blake  <ebb9@byu.net>
31585
31586         dirfd: fix prototype
31587         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31588         * lib/dirfd.c (dirfd): Likewise.
31589
31590         canonicalize: reduce memory usage
31591         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31592         allocation to size.
31593         Reported by Solar Designer <solar@openwall.com>.
31594
31595 2009-12-19  Bruno Haible  <bruno@clisp.org>
31596
31597         New module attribute 'Applicability'.
31598         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31599         * gnulib-tool: New option --extract-applicability.
31600         (func_usage): Document it.
31601         (sed_extract_prog): Recognize it.
31602         (func_get_applicability): New function.
31603         (func_import): Generalize handling of 'link-warning' module.
31604         * modules/link-warning (Applicability): New section.
31605         * modules/arg-nonnull (Applicability): New section.
31606         Repoted by Simon Josefsson <simon@josefsson.org>.
31607
31608 2009-12-19  Bruno Haible  <bruno@clisp.org>
31609
31610         fflush: tweak
31611         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31612         * lib/fseeko.c (rpl_fseeko): Likewise.
31613
31614 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31615
31616         * lib/gl_list.h: Fix typo in comment.
31617
31618 2009-12-16  Eric Blake  <ebb9@byu.net>
31619
31620         fcntl: use to simplify other modules
31621         * modules/cloexec (Depends-on): Add fcntl.
31622         * modules/fchdir (Depends-on): Likewise.
31623         * modules/fd-safer-flag (Depends-on): Likewise.
31624         * modules/unistd-safer (Depends-on): Likewise.
31625         * modules/dup3 (configure.ac): Set module indicator.
31626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31627         missing.
31628         * lib/fchdir.c (_gl_register_dup): Fix comment.
31629         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31630         * lib/dup-safer.c (dup_safer): Likewise.
31631         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31632         * lib/dup3.c (dup3): Likewise.
31633         * tests/test-fchdir.c (main): Enhance test.
31634         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31635
31636         fcntl: port portions of fcntl to mingw
31637         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31638         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31639         replacement for mingw.
31640         * modules/fcntl (Description): Update.
31641         (Depends-on): Add dup2.
31642         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31643         * modules/fcntl-h (Makefile.am): Substitute it.
31644         * lib/fcntl.in.h (fcntl): Update declaration.
31645         (F_DUPFD, F_GETFD): New macros, when needed.
31646         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31647         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31648         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31649         we now guarantee.
31650
31651         fcntl: work around cygwin bug in F_DUPFD
31652         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31653         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31654         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31655         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31656         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31657
31658         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31659         * modules/fcntl (Files): List new files.
31660         (configure.ac): Run a test.
31661         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31662         * lib/fcntl.c (rpl_fcntl): Likewise.
31663         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31664         (gl_FCNTL_H): Always replace fcntl.h.
31665         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31666         * lib/fcntl.in.h (fcntl): Declare replacement.
31667         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31668         needed, plus a witness.
31669         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31670         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31671         * tests/test-fcntl.c: New file.
31672         * modules/fcntl-tests: Likewise.
31673
31674         binary-io: avoid potential compilation warning
31675         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31676         directives.
31677
31678         fflush: avoid compilation error on NetBSD
31679         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31680         between off_t and fpos_t, since the latter is sometimes a struct.
31681         * lib/fseeko.c (rpl_fseeko): Likewise.
31682         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31683
31684 2009-12-15  Eric Blake  <ebb9@byu.net>
31685
31686         fcntl-h, stdio, sys_ioctl: fix declarations
31687         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31688         function must not take arguments.
31689         * lib/sys_ioctl.in.h (ioctl): Likewise.
31690         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31691         (open): Add a link warning.
31692
31693 2009-12-15  Jim Meyering  <meyering@redhat.com>
31694
31695         areadlink, areadlink-with-size: relax license to LGPLv2+
31696         * modules/areadlink (License): Relax to LGPLv2+.
31697         * modules/areadlink-with-size (License): Likewise.
31698
31699 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31700             Bruno Haible  <bruno@clisp.org>
31701
31702         *printf: Fix memory leak.
31703         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31704         * lib/vfprintf.c (vfprintf): Likewise.
31705         * lib/dprintf.c (dprintf): Likewise.
31706         * lib/vdprintf.c (vdprintf): Likewise.
31707
31708 2009-12-14  Eric Blake  <ebb9@byu.net>
31709
31710         accept4: adjust module dependencies
31711         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31712
31713         utimens: one more try at avoiding compiler warning
31714         * lib/utimens.c (lutimens): Lower scope of result.
31715
31716 2009-12-13  Bruno Haible  <bruno@clisp.org>
31717
31718         Move the malloc checking from module 'list' to new module 'xlist'.
31719         * modules/xlist: New file.
31720         * lib/gl_xlist.h: New file.
31721         * lib/gl_xlist.c: New file.
31722         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31723         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31724         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31725         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31726         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31727         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31728         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31729         gl_sortedlist_nx_add): New declarations.
31730         (struct gl_list_implementation): Rename and change methods accordingly.
31731         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31732         (gl_list_nx_create): Renamed from gl_list_create.
31733         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31734         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31735         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31736         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31737         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31738         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31739         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31740         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31741         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31742         gl_list_create_empty.
31743         (gl_list_nx_create): Renamed from gl_list_create.
31744         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31745         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31746         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31747         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31748         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31749         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31750         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31751         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31752         * lib/gl_array_list.c: Don't include xalloc.h.
31753         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31754         NULL upon out-of-memory.
31755         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31756         out-of-memory.
31757         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31758         Change return type to 'int'.
31759         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31760         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31761         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31762         upon out-of-memory.
31763         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31764         upon out-of-memory.
31765         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31766         upon out-of-memory.
31767         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31768         upon out-of-memory.
31769         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31770         out-of-memory.
31771         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31772         Update.
31773         (gl_array_list_implementation): Update.
31774         * lib/gl_carray_list.c: Don't include xalloc.h.
31775         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31776         Return NULL upon out-of-memory.
31777         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31778         out-of-memory.
31779         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31780         Change return type to 'int'.
31781         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31782         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31783         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31784         upon out-of-memory.
31785         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31786         upon out-of-memory.
31787         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31788         out-of-memory.
31789         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31790         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31791         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31792         Update.
31793         (gl_carray_list_implementation): Update.
31794         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31795         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31796         gl_linked_create_empty. Return NULL upon out-of-memory.
31797         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31798         out-of-memory.
31799         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31800         Change return type to 'int'. Return -1 upon out-of-memory.
31801         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31802         out-of-memory.
31803         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31804         upon out-of-memory.
31805         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31806         upon out-of-memory.
31807         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31808         NULL upon out-of-memory.
31809         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31810         upon out-of-memory.
31811         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31812         out-of-memory.
31813         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31814         Update.
31815         * lib/gl_linked_list.c: Don't include xalloc.h.
31816         (gl_linked_list_implementation): Update.
31817         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31818         (add_to_bucket): Change return type to 'int'.
31819         (gl_linkedhash_list_implementation): Update.
31820         * lib/gl_anytree_list1.h (free_subtree): New function.
31821         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31822         gl_tree_create_empty. Return NULL upon out-of-memory.
31823         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31824         Change return type to 'int'. Return -1 upon out-of-memory.
31825         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31826         out-of-memory.
31827         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31828         (gl_tree_remove_node): New function, moved here from
31829         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31830         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31831         Update.
31832         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31833         malloc, not xmalloc. Return NULL upon out-of-memory.
31834         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31835         out-of-memory.
31836         (gl_tree_remove_node_from_tree): New function, extracted from
31837         gl_tree_remove_node.
31838         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31839         upon out-of-memory.
31840         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31841         out-of-memory.
31842         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31843         upon out-of-memory.
31844         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31845         upon out-of-memory.
31846         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31847         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31848         not xmalloc. Return NULL upon out-of-memory.
31849         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31850         out-of-memory.
31851         (gl_tree_remove_node_from_tree): New function, extracted from
31852         gl_tree_remove_node.
31853         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31854         upon out-of-memory.
31855         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31856         out-of-memory.
31857         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31858         upon out-of-memory.
31859         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31860         upon out-of-memory.
31861         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31862         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31863         gl_anytree_list1.h before gl_anyavltree_list2.h.
31864         (gl_avltree_list_implementation): Update.
31865         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31866         gl_anytree_list1.h before gl_anyavltree_list2.h.
31867         (gl_rbtree_list_implementation): Update.
31868         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31869         Change return type to 'int'. Return -1 upon out-of-memory. Use
31870         __builtin_expect.
31871         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31872         (gl_avltreehash_list_implementation): Update.
31873         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31874         (gl_rbtreehash_list_implementation): Update.
31875         * modules/array-list (Depends-on): Remove xalloc.
31876         * modules/carray-list (Depends-on): Likewise.
31877         * modules/linked-list (Depends-on): Likewise.
31878         * modules/linkedhash-list (Depends-on): Likewise.
31879         * modules/avltree-list (Depends-on): Likewise.
31880         * modules/rbtree-list (Depends-on): Likewise.
31881         * modules/avltreehash-list (Depends-on): Likewise.
31882         * modules/rbtreehash-list (Depends-on): Likewise.
31883
31884         * modules/xsublist: New file.
31885         * lib/gl_xsublist.h: New file.
31886         * lib/gl_xsublist.c: New file.
31887         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31888         (gl_sublist_nx_create): New declaration.
31889         * lib/gl_sublist.c: Don't include xalloc.h.
31890         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31891         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31892         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31893         Change return type to 'int'. Return -1 upon out-of-memory.
31894         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31895         upon out-of-memory.
31896         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31897         NULL upon out-of-memory.
31898         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31899         upon out-of-memory.
31900         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31901         NULL upon out-of-memory.
31902         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31903         NULL upon out-of-memory.
31904         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31905         upon out-of-memory.
31906         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31907         (gl_sublist_list_implementation): Update.
31908         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31909         upon out-of-memory.
31910         * modules/sublist (Depends-on): Remove xalloc.
31911
31912         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31913         * tests/test-carray_list.c: Likewise.
31914         * tests/test-linked_list.c: Likewise.
31915         * tests/test-linkedhash_list.c: Likewise.
31916         * tests/test-avltree_list.c: Likewise.
31917         * tests/test-rbtree_list.c: Likewise.
31918         * tests/test-avltreehash_list.c: Likewise.
31919         * tests/test-rbtreehash_list.c: Likewise.
31920         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31921         * modules/carray-list-tests (Makefile.am): Likewise.
31922         * modules/linked-list-tests (Makefile.am): Likewise.
31923         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31924         * modules/avltree-list-tests (Makefile.am): Likewise.
31925         * modules/rbtree-list-tests (Makefile.am): Likewise.
31926         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31927         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31928
31929         * NEWS: Mention the changes.
31930
31931         * lib/clean-temp.c: Include gl_xlist.h.
31932         * modules/clean-temp (Depends-on): Add xlist.
31933
31934         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31935         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31936
31937         * tests/test-array_oset.c: Include gl_xlist.h.
31938         * modules/array-oset-tests (Depends-on): Add xlist.
31939
31940         Reported by José E. Marchesi <jemarch@gnu.org>.
31941
31942 2009-12-13  Bruno Haible  <bruno@clisp.org>
31943
31944         Move the malloc checking from module 'oset' to new module 'xoset'.
31945         * modules/xoset: New file.
31946         * lib/gl_xoset.h: New file.
31947         * lib/gl_xoset.c: New file.
31948         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31949         declarations.
31950         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31951         (struct gl_oset_implementation): Rename and change methods accordingly.
31952         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31953         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31954         'int'. Mark as __warn_unused_result__.
31955         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31956         gl_oset_create_empty.
31957         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31958         'int'.
31959         * lib/gl_array_oset.c: Don't include xalloc.h.
31960         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31961         malloc, not xmalloc.
31962         (grow): Change return type to 'int'. Don't call xalloc_die.
31963         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31964         to 'int'.
31965         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31966         'int'.
31967         (gl_array_oset_implementation): Update.
31968         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31969         gl_tree_create_empty.
31970         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31971         'int'.
31972         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31973         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31974         xmalloc.
31975         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31976         not xmalloc.
31977         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31978         xmalloc.
31979         (gl_avltree_oset_implementation): Update.
31980         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31981         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31982         xmalloc.
31983         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31984         not xmalloc.
31985         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31986         xmalloc.
31987         (gl_rbtree_oset_implementation): Update.
31988         * modules/array-oset (Depends-on): Remove xalloc.
31989         * modules/avltree-oset (Depends-on): Likewise.
31990         * modules/rbtree-oset (Depends-on): Likewise.
31991         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31992         * tests/test-avltree_oset.c: Likewise.
31993         * tests/test-rbtree_oset.c: Likewise.
31994         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31995         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31996         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31997         * NEWS: Mention the change.
31998
31999 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32000
32001         maint.mk: allow a project to override release-prep commands
32002         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32003         commands into a new rule.
32004         (release-prep): New rule.
32005         (release-prep-hook): New overridable variable.
32006
32007 2009-12-13  Bruno Haible  <bruno@clisp.org>
32008
32009         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32010
32011 2009-12-13  Jim Meyering  <meyering@redhat.com>
32012
32013         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32014         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32015
32016 2009-12-12  Bruno Haible  <bruno@clisp.org>
32017
32018         duplocale: Tweak.
32019         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32020
32021 2009-12-12  Karl Berry  <karl@gnu.org>
32022
32023         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32024
32025 2009-12-12  Bruno Haible  <bruno@clisp.org>
32026
32027         * m4/po.m4: Undo incorrect untabification.
32028
32029 2009-12-12  Bruno Haible  <bruno@clisp.org>
32030
32031         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32032         * modules/c-strtod (Depends-on): Add locale.
32033         * modules/c-strtold (Depends-on): Likewise.
32034
32035 2009-12-12  Bruno Haible  <bruno@clisp.org>
32036
32037         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32038
32039 2009-12-11  Eric Blake  <ebb9@byu.net>
32040
32041         setenv: relax requirement in light of POSIX ruling
32042         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32043         not NULL.
32044         * tests/test-setenv.c (main): Relax test.
32045         * tests/test-unsetenv.c (main): Likewise.
32046         * doc/posix-functions/setenv.texi (setenv): Document this.
32047         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32048
32049 2009-12-11  Bruno Haible  <bruno@clisp.org>
32050
32051         New module 'fd-safer-flag'.
32052         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32053         * lib/dup-safer.c (dup_safer_flag): Remove function.
32054         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32055         * lib/fd-safer.c (fd_safer_flag): Remove function.
32056         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32057         * modules/cloexec (configure.ac): Drop indicator macro.
32058         * modules/fd-safer-flag: New file.
32059         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32060         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32061         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32062
32063 2009-12-11  Bruno Haible  <bruno@clisp.org>
32064
32065         Tests for module 'nl_langinfo'.
32066         * modules/nl_langinfo-tests: New file.
32067         * tests/test-nl_langinfo.sh: New file.
32068         * tests/test-nl_langinfo.c: New file.
32069
32070         New module 'nl_langinfo'.
32071         * lib/nl_langinfo.c: New file.
32072         * m4/nl_langinfo.m4: New file.
32073         * modules/nl_langinfo: New file.
32074         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32075
32076 2009-12-11  Bruno Haible  <bruno@clisp.org>
32077
32078         Tests for module 'langinfo'.
32079         * modules/langinfo-tests: New file.
32080         * tests/test-langinfo.c: New file.
32081
32082         New module 'langinfo'.
32083         * lib/langinfo.in.h: New file.
32084         * m4/langinfo_h.m4: New file.
32085         * modules/langinfo: New file.
32086         * doc/posix-headers/langinfo.texi: Mention the new module.
32087
32088 2009-12-11  Bruno Haible  <bruno@clisp.org>
32089
32090         * lib/config.charset: Untabify.
32091
32092 2009-12-11  Bruno Haible  <bruno@clisp.org>
32093
32094         * modules/unistd-safer (configure.ac): Drop indicator macro.
32095
32096 2009-12-11  Bruno Haible  <bruno@clisp.org>
32097
32098         Move pipe2-safer code to its own file.
32099         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32100         * lib/pipe-safer.c (pipe2_safer): Remove function.
32101         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32102         (Makefile.am): Add it to lib_SOURCES.
32103
32104 2009-12-10  Bruno Haible  <bruno@clisp.org>
32105
32106         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32107
32108 2009-12-10  Bruno Haible  <bruno@clisp.org>
32109
32110         Declare which arguments expect non-NULL values, for GCC and clang.
32111         * build-aux/arg-nonnull.h: New file.
32112         * modules/arg-nonnull: New file.
32113         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32114         (inet_ntop, inet_pton): Use it.
32115         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32116         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32117         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32118         (open, openat): Use it.
32119         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32120         (fnmatch): Use it.
32121         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32122         (getopt, getopt_long, getopt_long_only): Use it.
32123         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32124         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32125         Use it.
32126         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32127         (iconv_open): Use it.
32128         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32129         (strtoimax, strtoumax): Use it.
32130         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32131         (duplocale): Use it.
32132         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32133         (frexp, frexpl): Use it.
32134         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32135         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32136         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32137         (tsearch, tfind, tdelete, twalk): Use it.
32138         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32139         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32140         sigpending): Use it.
32141         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32142         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32143         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32144         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32145         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32146         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32147         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32148         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32149         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32150         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32151         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32152         Use it.
32153         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32154         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32155         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32156         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32157         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32158         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32159         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32160         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32161         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32162         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32163         strtoull, unsetenv): Use it.
32164         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32165         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32166         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32167         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32168         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32169         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32170         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32171         (strcasecmp, strncasecmp): Use it.
32172         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32173         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32174         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32175         rpl_setsockopt): Use it.
32176         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32177         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32178         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32179         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32180         (gettimeofday): Use it.
32181         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32182         (times): Use it.
32183         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32184         (uname): Use it.
32185         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32186         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32187         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32188         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32189         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32190         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32191         unlinkat, write): Use it.
32192         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32193         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32194         * lib/argv-iter.h: Include arg-nonnull.h.
32195         (_ATTRIBUTE_NONNULL_): Remove macro.
32196         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32197         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32198         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32199         optimization.
32200         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32201         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32202         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32203         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32204         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32205         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32206         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32207         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32208         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32209         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32210         * modules/dirent (Depends-on): Add arg-nonnull.
32211         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32212         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32213         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32214         * modules/fnmatch (Depends-on): Add arg-nonnull.
32215         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32216         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32217         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32218         * modules/glob (Depends-on): Add arg-nonnull.
32219         (Makefile.am): Insert arg-nonnull.h into glob.h.
32220         * modules/iconv_open (Depends-on): Add arg-nonnull.
32221         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32222         * modules/inttypes (Depends-on): Add arg-nonnull.
32223         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32224         * modules/locale (Depends-on): Add arg-nonnull.
32225         (Makefile.am): Insert arg-nonnull.h into locale.h.
32226         * modules/math (Depends-on): Add arg-nonnull.
32227         (Makefile.am): Insert arg-nonnull.h into math.h.
32228         * modules/netdb (Depends-on): Add arg-nonnull.
32229         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32230         * modules/search (Depends-on): Add arg-nonnull.
32231         (Makefile.am): Insert arg-nonnull.h into search.h.
32232         * modules/signal (Depends-on): Add arg-nonnull.
32233         (Makefile.am): Insert arg-nonnull.h into signal.h.
32234         * modules/spawn (Depends-on): Add arg-nonnull.
32235         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32236         * modules/stdio (Depends-on): Add arg-nonnull.
32237         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32238         * modules/stdlib (Depends-on): Add arg-nonnull.
32239         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32240         * modules/string (Depends-on): Add arg-nonnull.
32241         (Makefile.am): Insert arg-nonnull.h into string.h.
32242         * modules/strings (Depends-on): Add arg-nonnull.
32243         (Makefile.am): Insert arg-nonnull.h into strings.h.
32244         * modules/sys_socket (Depends-on): Add arg-nonnull.
32245         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32246         * modules/sys_stat (Depends-on): Add arg-nonnull.
32247         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32248         * modules/sys_time (Depends-on): Add arg-nonnull.
32249         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32250         * modules/sys_times (Depends-on): Add arg-nonnull.
32251         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32252         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32253         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32254         * modules/time (Depends-on): Add arg-nonnull.
32255         (Makefile.am): Insert arg-nonnull.h into time.h.
32256         * modules/unistd (Depends-on): Add arg-nonnull.
32257         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32258         * modules/wchar (Depends-on): Add arg-nonnull.
32259         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32260         * modules/argv-iter (Depends-on): Add arg-nonnull.
32261         * tests/test-canonicalize.c (null_ptr): New function.
32262         (main): Use it.
32263         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32264         (main): Use it.
32265         * tests/test-memmem.c (null_ptr): New function.
32266         (main): Use it.
32267         Reported by Jim Meyering.
32268
32269 2009-12-10  Bruno Haible  <bruno@clisp.org>
32270
32271         Use spaces for indentation, not tabs.
32272         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32273         * m4/*.m4: Untabify.
32274         * build-aux/*.h: Untabify.
32275         * tests/**/*.[hc]: Untabify.
32276         * README: New section "Indent with spaces, not TABs", based on
32277         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32278         * NEWS: Mention the change.
32279
32280 2009-12-10  Bruno Haible  <bruno@clisp.org>
32281
32282         pty test: Fix link error.
32283         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32284         test_pty_LDADD.
32285
32286 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32287
32288         * modules/pty: New file.
32289         * modules/pty-tests: New file.
32290         * m4/pty.m4: New file.
32291         * tests/test-pty.c: New file.
32292         * doc/glibc-headers/pty.texi: Modified.
32293         * doc/glibc-functions/forkpty.texi: Modified.
32294         * doc/glibc-functions/openpty.texi: Modified.
32295
32296 2009-12-10  Bruno Haible  <bruno@clisp.org>
32297
32298         Avoid syntax error in C++ mode.
32299         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32300
32301 2009-12-10  Bruno Haible  <bruno@clisp.org>
32302
32303         Use sed with option -e.
32304         * gnulib-tool (func_version, func_emit_copyright_notice,
32305         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32306         option -e to sed.
32307         * modules/link-warning (Makefile.am): Likewise.
32308
32309 2009-12-10  Jim Meyering  <meyering@redhat.com>
32310
32311         mgetgroups: do not write bytes beyond end of malloc'd buffer
32312         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32313         username, we call getgroups with a one-element-shorter buffer,
32314         but still told it the length was original, max_n_groups.
32315
32316 2009-12-09  Eric Blake  <ebb9@byu.net>
32317
32318         cloexec: relax license
32319         * modules/cloexec (Maintainer): Add myself.
32320         (License): Use LGPL, not GPL.
32321
32322         link-warning: optimize generation
32323         * modules/link-warning (Makefile.am): Reduce process usage.
32324
32325 2009-12-09  Bruno Haible  <bruno@clisp.org>
32326
32327         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32328         workaround was added on 2009-11-17.
32329
32330 2009-12-09  Jim Meyering  <meyering@redhat.com>
32331             Bruno Haible  <bruno@clisp.org>
32332
32333         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32334         * modules/link-warning (Makefile.am): Make the comment-removing sed
32335         command more robust in the face of bootstrap-prepended comment lines.
32336
32337 2009-12-09  Bruno Haible  <bruno@clisp.org>
32338
32339         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32340         most one group.
32341
32342 2009-12-09  Simon Josefsson <simon@josefsson.org>
32343             Bruno Haible  <bruno@clisp.org>
32344
32345         * build-aux/link-warning.h: Add copyright notice.
32346         * modules/link-warning (Makefile.am): Generate link-warning.h from
32347         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32348         * NEWS: Mention change in link-warning module.
32349         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32350         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32351         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32352         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32353         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32354         * modules/math (Makefile.am): Add dependency to math.h.
32355         * modules/search (Makefile.am): Add dependency to search.h.
32356         * modules/signal (Makefile.am): Add dependency to signal.h.
32357         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32358         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32359         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32360         * modules/string (Makefile.am): Add dependency to string.h.
32361         * modules/strings (Makefile.am): Add dependency to strings.h.
32362         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32363         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32364         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32365         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32366         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32367         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32368         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32369         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32370         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32371
32372 2009-12-09  Bruno Haible  <bruno@clisp.org>
32373
32374         fchdir: Optimize away rpl_fstat when possible.
32375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32376         REPLACE_OPEN_DIRECTORY.
32377         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32378
32379 2009-12-09  Bruno Haible  <bruno@clisp.org>
32380
32381         * lib/fchdir.c: Update comment.
32382
32383 2009-12-09  Bruno Haible  <bruno@clisp.org>
32384
32385         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32386
32387 2009-12-08  Eric Blake  <ebb9@byu.net>
32388
32389         fchdir: avoid memory leak on re-registration.
32390         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32391
32392 2009-12-08  Jim Meyering  <meyering@redhat.com>
32393
32394         init.sh: avoid Solaris 10 /bin/sh portability problem
32395         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32396         sourced script:
32397           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32398           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32399           bar
32400         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32401         and two tests used that idiom.
32402         * tests/init.sh: Update suggested usage comments.
32403         (path_prepend_): New function, to be used in place
32404         of the --src-path=DIR option.
32405         (setup_): Move PATH-prepending code into path_prepend_.
32406         * tests/test-pread.sh: Adapt to new usage.
32407         * tests/test-xalloc-die.sh: Likewise.
32408
32409 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32410
32411         * doc/gnulib.texi (Glibc pty.h): Add.
32412         * doc/glibc-functions/forkpty.texi: Add.
32413         * doc/glibc-functions/openpty.texi: Add.
32414         Suggested by Bruno Haible.
32415
32416 2009-12-08  Eric Blake  <ebb9@byu.net>
32417
32418         fchdir: fix logic bugs
32419         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32420         * tests/test-fchdir.c (main): Enhance test.
32421         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32422         is in use.
32423
32424         dup2: fix logic bugs
32425         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32426         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32427         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32428         exists.
32429         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32430
32431 2009-12-07  Eric Blake  <ebb9@byu.net>
32432
32433         unlink: fix m4 detection
32434         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32435
32436         unistd-safer: add unit test
32437         * modules/unistd-safer-tests: New file.
32438         * tests/test-dup-safer.c: Likewise.
32439         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32440         * tests/test-dup2.c (setmode): Likewise.
32441         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32442
32443         cloexec: preserve text vs. binary across dup_cloexec
32444         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32445         mode.
32446         * modules/dup2-tests (Depends-on): Add binary-io.
32447         * modules/cloexec-tests (Depends-on): Likewise.
32448         * tests/test-dup2.c (setmode, is_mode): New helpers.
32449         (main): Add tests that translation mode is preserved.
32450         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32451         Reported by Bruno Haible.
32452
32453         mgetgroups: reduce duplicate listings
32454         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32455         resulting array.
32456         * tests/test-chown.h (test_chown): Simplify client.
32457         * tests/test-lchown.h (test_lchown): Likewise.
32458
32459 2009-12-06  Bruno Haible  <bruno@clisp.org>
32460
32461         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32462         value.
32463
32464 2009-12-06  Bruno Haible  <bruno@clisp.org>
32465
32466         * lib/progname.c: Include stdio.h, stdlib.h.
32467         (set_program_name): Reject a NULL argument.
32468
32469 2009-12-05  Eric Blake  <ebb9@byu.net>
32470
32471         pipe2-safer: new module
32472         * modules/pipe2-safer: New file.
32473         * lib/unistd-safer.h (pipe2_safer): New prototype.
32474         * lib/unistd--.h (pipe2): New wrapper.
32475         * lib/pipe-safer.c (pipe2_safer): New function.
32476         * modules/pipe (Depends-on): Add pipe2-safer.
32477         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32478
32479         stdlib-safer: preserve cloexec flag for mkostemp[s]
32480         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32481         fd_safer_flag.
32482
32483         unistd-safer: allow preservation of cloexec status via flag
32484         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32485         prototypes.
32486         * lib/dup-safer.c (dup_safer_flag): New function.
32487         * lib/fd-safer.c (fd_safer_flag): Likewise.
32488         * modules/cloexec (configure.ac): Set witness.
32489
32490         test-dup2: enhance test
32491         * modules/dup2-tests (Depends-on): Add cloexec.
32492         * tests/test-dup2.c (main): Enhance test.
32493
32494         cloexec: add dup_cloexec
32495         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32496         header and comments.
32497         * lib/cloexec.c (set_cloexec_flag): Add comments.
32498         (dup_cloexec): New function, with mingw implementation borrowed
32499         from...
32500         * lib/w32spawn.h (dup_noinherit): ...here.
32501         * modules/execute (Depends-on): Add cloexec.
32502         * modules/pipe (Depends-on): Likewise.
32503         * modules/cloexec (Depends-on): Add dup2.
32504         * modules/cloexec-tests (Files): New file.
32505         * tests/test-cloexec.c: Likewise.
32506
32507         test-xalloc-die: fix test for mingw
32508         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32509         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32510         directory and .exe suffix off argv[0] output.
32511
32512         test-fseeko: fix test for mingw
32513         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32514         than undefining fseek, so test will pass on mingw.
32515
32516 2009-12-05  Bruno Haible  <bruno@clisp.org>
32517
32518         * lib/progname.h (set_program_name): Clarify specification.
32519         * lib/progname.c (set_program_name): Likewise.
32520         Reported by Jim Meyering.
32521
32522 2009-12-05  Jim Meyering  <meyering@redhat.com>
32523
32524         maint.mk: backslash-escape parens in default regexp
32525         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32526         backslash-escape the literal parentheses.
32527
32528         maint.mk: news-date-check: use grep -E
32529         * top/maint.mk (today): Define a Make variable, not a...
32530         (news-date-check): ...shell variable.
32531         (news-date-regexp): Use the Make variable.
32532         Use grep's -E option.  Change the failing diagnostic to mention
32533         the variable, $(news-date-regexp).
32534
32535 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32536
32537         maintainer-makefile: allow customization of NEWS entry format
32538         * top/maint.mk (news-date-regexp): New overridable variable.
32539         (news-date-check): Use it.
32540
32541 2009-12-04  Eric Blake  <ebb9@byu.net>
32542
32543         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32544         * lib/mgetgroups.h (xgetgroups): New prototype.
32545         * lib/mgetgroups.c (xgetgroups): New wrapper.
32546         (mgetgroups): Handle ENOSYS.
32547         * modules/mgetgroups (Depends-on): Add realloc.
32548         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32549
32550         mgetgroups: avoid argument promotion issues with -1
32551         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32552         for invalid gid_t.
32553         * tests/test-chown.h (getegid, test_chown): Likewise.
32554         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32555
32556 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32557
32558         exclude: Fix header file problems.
32559         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32560
32561 2009-12-01  Jim Meyering  <meyering@redhat.com>
32562
32563         fts: fts_open: do not let an empty string cause immediate failure
32564         This is required in support of GNU rm, for which the command
32565         "rm A '' B" must process and remove both A and B, in spite of
32566         the empty string argument.
32567         * lib/fts.c (fts_open): Do not let the presence of an empty string
32568         cause fts_open to fail immediately.  Most fts-using tools must be
32569         able to process all arguments, in order, and can be expected to
32570         diagnose such arguments themselves.
32571
32572 2009-11-30  Eric Blake  <ebb9@byu.net>
32573
32574         utimens: fix compilation error
32575         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32576         Declare variable at right scope.
32577
32578 2009-11-29  Jim Meyering  <meyering@redhat.com>
32579
32580         bootstrap: handle perl-5.11's changed --version output
32581         * build-aux/bootstrap (get_version): Handle perl separately,
32582         since perl-5.11's --version output is different.
32583
32584 2009-11-28  Jim Meyering  <meyering@redhat.com>
32585
32586         userspec: depend on the inttostr module, too
32587         * modules/userspec (Depends-on): Add inttostr.
32588
32589         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32590         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32591         number of MAXUID when it evaluates to (uid_t) -1.
32592         Likewise for group ID.  Reported by Matt McCutchen in
32593         <http://savannah.gnu.org/bugs/?28113>
32594
32595         userspec: reformat to use spaces, not TABs
32596         * lib/userspec.c: Expand TABs to spaces.
32597         Add Emacs' "indent-tabs-mode: nil" hint.
32598
32599 2009-11-27  Eric Blake  <ebb9@byu.net>
32600
32601         getopt-gnu: flush out another BSD bug
32602         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32603         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32604         flush out BSD bug.
32605         * tests/test-getopt.h (test_getopt): End lists with NULL.
32606         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32607         (test_getopt_long_posix): Enhance test.
32608         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32609         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32610         getopt-gnu.
32611         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32612         Likewise.
32613
32614 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32615
32616         * modules/idpriv-droptemp-tests (Notice): Fix text.
32617
32618 2009-11-27  Jim Meyering  <meyering@redhat.com>
32619
32620         test-xalloc-die: avoid spurious failure due to libtool argv difference
32621         In a libtool-enabled project, this test would fail due to a difference
32622         in the emitted program name, e.g.,
32623         -test-xalloc-die: memory exhausted
32624         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32625         Use program to avoid that.
32626         * modules/xalloc-die-tests (Depends-on): Add progname.
32627         * tests/test-xalloc-die.c: Include progname.h".
32628         (program_name): Remove decl.
32629         (main): Call set_program_name.
32630         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32631
32632 2009-11-26  Richard Jones  <rjones@redhat.com>
32633
32634         w32sock: leave win32 error in place.
32635         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32636
32637 2009-11-26  Eric Blake  <ebb9@byu.net>
32638
32639         init.sh: suggest to use skip_ and fail_ functions in comments
32640         * tests/init.sh: Add a sentence.
32641
32642 2009-11-25  Bruno Haible  <bruno@clisp.org>
32643
32644         init.sh: add documentation in comments
32645         * tests/init.sh: Add some developer and user documentation.
32646
32647 2009-11-26  Jim Meyering  <meyering@redhat.com>
32648
32649         init.sh: accommodate even those who specify bogus srcdir manually
32650         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32651         configure-time tests to be sanitized, so that there is no need to
32652         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32653         (with no double quotes) suffices.  However, since tests may be
32654         invoked manually, and since you may explicitly set srcdir to the
32655         name of a directory containing spaces, do quote its uses here.
32656         * tests/test-pread.sh: Likewise.
32657         Suggested by Bruno Haible.
32658
32659         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32660         * tests/test-pread.sh: Write no data into the pipe, because
32661         test-pread actually reads none.  This avoids a diagnostic,
32662         "bash: echo: write error: Broken pipe", that arises in the unusual
32663         event something is ignoring SIGPIPE, and might be interpreted
32664         as some sort of failure.  Reported by Bruno Haible.
32665
32666 2009-11-25  Jim Meyering  <meyering@redhat.com>
32667
32668         test-pread: cover failure with ESPIPE and EINVAL
32669         * tests/test-pread.c (main): Test for failure, too.
32670         * tests/test-pread.sh: Invoke with stdin on a pipe.
32671         Suggested by Eric Blake.
32672
32673         pread: improvement and fix
32674         * modules/pread (Depends-on): Depend on lseek, for portability to
32675         e.g., mingw.  Suggested by Eric Blake.
32676         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32677
32678         unistd.in.h: correct declaration of pread
32679         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32680         Reported by Richard W.M. Jones.
32681
32682         test-pread.sh: distribute the test script
32683         * modules/pread-tests (Files): Include test-pread.sh.
32684
32685         test-pread.sh: clean up
32686         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32687         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32688         That is unnecessary, since it's always ".".
32689         Suggestion from Eric Blake.
32690
32691         test-pread.sh: make executable
32692         * tests/test-pread.sh: Set executable bit.
32693         Reported by Eric Blake.
32694
32695         correct typo in test-pread.sh
32696         * tests/test-pread.sh: Add #! line.
32697
32698         test pread
32699         * tests/test-pread.c: New file.
32700         * tests/test-pread.sh: Likewise.
32701         * modules/pread-tests: Likewise.
32702
32703         pread: new module
32704         * modules/pread: New file.
32705         * lib/unistd.in.h (pread): Define/declare.
32706         * lib/pread.c (pread): New file.
32707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32708         * modules/unistd (Makefile.am): Substitute witnesses.
32709         * doc/posix-functions/pread.texi (pread): Update.
32710         * MODULES.html.sh: Add pread.
32711
32712 2009-11-25  Jim Meyering  <meyering@redhat.com>
32713
32714         tests/init.sh: new file to be used via most *.sh tests
32715         * tests/init.sh: New file.
32716
32717 2009-11-25  Eric Blake  <ebb9@byu.net>
32718
32719         utimens: work around older Linux failure with symlinks
32720         * lib/utimens.c (lutimensat_works_really): New variable.
32721         (fdutimens, lutimens): Use it to manage kernels that support
32722         nanosecond times on files, but not on symlinks.
32723         Reported by OndÅ™ej Vašík.
32724
32725         utimes: fix configure grammar
32726         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32727
32728 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32729
32730         regex: Fix fastmap for multibyte character ranges.
32731         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32732         characters when a multibyte character range is included.
32733
32734 2009-11-22  Andy Wingo  <wingo@pobox.com>
32735
32736         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32737         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32738
32739 2009-11-24  Bruno Haible  <bruno@clisp.org>
32740
32741         doc: Most *_l functions exist in MacOS X 10.5.
32742         * doc/posix-functions/duplocale.texi: Update platforms list.
32743         * doc/posix-functions/freelocale.texi: Likewise.
32744         * doc/posix-functions/newlocale.texi: Likewise.
32745         * doc/posix-functions/uselocale.texi: Likewise.
32746         * doc/posix-functions/isalnum_l.texi: Likewise.
32747         * doc/posix-functions/isalpha_l.texi: Likewise.
32748         * doc/posix-functions/isblank_l.texi: Likewise.
32749         * doc/posix-functions/iscntrl_l.texi: Likewise.
32750         * doc/posix-functions/isdigit_l.texi: Likewise.
32751         * doc/posix-functions/isgraph_l.texi: Likewise.
32752         * doc/posix-functions/islower_l.texi: Likewise.
32753         * doc/posix-functions/isprint_l.texi: Likewise.
32754         * doc/posix-functions/ispunct_l.texi: Likewise.
32755         * doc/posix-functions/isspace_l.texi: Likewise.
32756         * doc/posix-functions/isupper_l.texi: Likewise.
32757         * doc/posix-functions/iswalnum_l.texi: Likewise.
32758         * doc/posix-functions/iswalpha_l.texi: Likewise.
32759         * doc/posix-functions/iswblank_l.texi: Likewise.
32760         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32761         * doc/posix-functions/iswctype_l.texi: Likewise.
32762         * doc/posix-functions/iswdigit_l.texi: Likewise.
32763         * doc/posix-functions/iswgraph_l.texi: Likewise.
32764         * doc/posix-functions/iswlower_l.texi: Likewise.
32765         * doc/posix-functions/iswprint_l.texi: Likewise.
32766         * doc/posix-functions/iswpunct_l.texi: Likewise.
32767         * doc/posix-functions/iswspace_l.texi: Likewise.
32768         * doc/posix-functions/iswupper_l.texi: Likewise.
32769         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32770         * doc/posix-functions/isxdigit_l.texi: Likewise.
32771         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32772         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32773         * doc/posix-functions/strcoll_l.texi: Likewise.
32774         * doc/posix-functions/strfmon_l.texi: Likewise.
32775         * doc/posix-functions/strftime_l.texi: Likewise.
32776         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32777         * doc/posix-functions/strxfrm_l.texi: Likewise.
32778         * doc/posix-functions/tolower_l.texi: Likewise.
32779         * doc/posix-functions/toupper_l.texi: Likewise.
32780         * doc/posix-functions/towctrans_l.texi: Likewise.
32781         * doc/posix-functions/towlower_l.texi: Likewise.
32782         * doc/posix-functions/towupper_l.texi: Likewise.
32783         * doc/posix-functions/wcscoll_l.texi: Likewise.
32784         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32785         * doc/posix-functions/wctrans_l.texi: Likewise.
32786         * doc/posix-functions/wctype_l.texi: Likewise.
32787         * doc/glibc-functions/strptime_l.texi: Likewise.
32788         * doc/glibc-functions/strtod_l.texi: Likewise.
32789         * doc/glibc-functions/strtof_l.texi: Likewise.
32790         * doc/glibc-functions/strtol_l.texi: Likewise.
32791         * doc/glibc-functions/strtold_l.texi: Likewise.
32792         * doc/glibc-functions/strtoll_l.texi: Likewise.
32793         * doc/glibc-functions/strtoul_l.texi: Likewise.
32794         * doc/glibc-functions/strtoull_l.texi: Likewise.
32795         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32796         * doc/glibc-functions/wcstod_l.texi: Likewise.
32797         * doc/glibc-functions/wcstof_l.texi: Likewise.
32798         * doc/glibc-functions/wcstol_l.texi: Likewise.
32799         * doc/glibc-functions/wcstold_l.texi: Likewise.
32800         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32801         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32802         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32803
32804 2009-11-24  Bruno Haible  <bruno@clisp.org>
32805
32806         duplocale: Fix logic bug.
32807         * lib/duplocale.c: Don't include <langinfo.h>.
32808         (_NL_LOCALE_NAME): Remove macro.
32809         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32810         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32811
32812 2009-11-23  Jim Meyering  <meyering@redhat.com>
32813
32814         test-update-copyright: don't hard-code /usr/bin/perl
32815         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32816         perl to print the current year.  Gilles Espinasse reported that
32817         the replaced use of perl was hard-coded as /usr/bin/perl.
32818
32819 2009-11-23  Bruno Haible  <bruno@clisp.org>
32820
32821         duplocale: Add support for glibc 2.3.x.
32822         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32823
32824 2009-11-22  Bruno Haible  <bruno@clisp.org>
32825
32826         vasnprintf: Tiny optimization.
32827         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32828         MacOS X.
32829
32830 2009-11-22  Bruno Haible  <bruno@clisp.org>
32831
32832         Tests for module 'duplocale'.
32833         * modules/duplocale-tests: New file.
32834         * tests/test-duplocale.c: New file.
32835
32836         New module 'duplocale'.
32837         * m4/duplocale.m4: New file.
32838         * lib/locale.in.h (duplocale): New declaration.
32839         * lib/duplocale.c: New file.
32840         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32841         gl_LOCALE_H_DEFAULTS): New macros.
32842         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32843         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32844         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32845         REPLACE_DUPLOCALE.
32846         * modules/duplocale: New file.
32847         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32848
32849 2009-11-22  Bruno Haible  <bruno@clisp.org>
32850
32851         * modules/locale-tests (configure.ac): Test for newlocale function.
32852         * tests/test-locale.c: When the system has extended locale functions,
32853         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32854
32855         locale: Make locale_t available when possible.
32856         * lib/locale.in.h: Include <xlocale.h> when it exists.
32857         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32858         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32859         * modules/locale (Depends-on): Add extensions.
32860         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32861         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32862
32863 2009-11-22  Bruno Haible  <bruno@clisp.org>
32864
32865         Add comments.
32866         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32867         invocation.
32868         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32869         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32870         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32871
32872 2009-11-22  Bruno Haible  <bruno@clisp.org>
32873
32874         error: account for the possibility of freopen (stdout).
32875         * lib/error.c: Include <unistd.h>.
32876         (flush_stdout): New function, extracted from error and error_at_line.
32877         Determine stdout's fd dynamically.
32878         (error, error_at_line): Invoke flush_stdout.
32879         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32880         * modules/error (Depends-on): Add unistd.
32881
32882 2009-11-22  Bruno Haible  <bruno@clisp.org>
32883
32884         diffseq: Add comment.
32885         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32886
32887 2009-11-22  Jim Meyering  <meyering@redhat.com>
32888
32889         c-stack: avoid defining an unused static function
32890         * lib/c-stack.c (find_stack_direction): Do not define this function
32891         when it will not be used.
32892
32893         diffseq: avoid spurious gcc warnings
32894         * lib/diffseq.h (IF_LINT2): Define.
32895         (compareseq): Use it to initialize two members of "part".
32896         This avoids two used-uninitialized warnings.
32897
32898 2009-11-21  Jim Meyering  <meyering@redhat.com>
32899
32900         c-stack: avoid "ignoring return value of `write'" warning
32901         * lib/c-stack.c: Include "ignore-value.h".
32902         (die): Explicitly ignore each write return value.
32903         * modules/c-stack (Depends-on): Add ignore-value.
32904
32905 2009-11-21  Bruno Haible  <bruno@clisp.org>
32906
32907         diffseq: reduce scope of variable 'best'.
32908         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32909         variable, earlier used for two different purposes.
32910
32911 2009-11-21  Jim Meyering  <meyering@redhat.com>
32912
32913         diffseq: remove useless assignment to "best"
32914         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32915         assignment.  At that point "best" is already guaranteed to be zero.
32916
32917 2009-11-20  Eric Blake  <ebb9@byu.net>
32918
32919         build: mention ftp redirector in release announcements
32920         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32921         values that used to come from cfg.mk; mention FTP redirect URL.
32922         * build-aux/announce-gen: Mention the mirror list.
32923         Suggested by Karl Berry.
32924
32925         nanosleep: improve port to mingw
32926         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32927         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32928         LIB_NANOSLEEP, but only when needed.
32929         * modules/select (Link): Document LIBSOCKET.
32930         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32931         enough.
32932
32933         nanosleep: work around cygwin bug
32934         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32935         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32936         bug.
32937         (getnow): Delete, not needed.
32938         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32939         LIB_CLOCK_GETTIME.
32940         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32941         clock-time, gettime.
32942         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32943         bug.
32944         * modules/nanosleep-tests: New test.
32945         * tests/test-nanosleep.c: New file.
32946
32947         sleep: work around cygwin bug
32948         * lib/sleep.c (rpl_sleep): Work around the bug.
32949         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32950         (gl_PREREQ_SLEEP): Delete unused macro.
32951         * modules/sleep (Depends-on): Add verify.
32952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32953         * modules/unistd (Makefile.am): Substitute witness.
32954         * lib/unistd.in.h (sleep): Update prototype.
32955         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32956         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32957         * modules/sleep-tests (Depends-on): Check for alarm.
32958
32959 2009-11-20  Jim Meyering  <meyering@redhat.com>
32960
32961         maint.mk: improve sc_prohibit_magic_number_exit
32962         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32963         so it does not match uses like System.exit(1).
32964         Add comments showing how to correct all offenders.
32965
32966 2009-11-19  Eric Blake  <ebb9@byu.net>
32967
32968         xalloc-die-tests: add missing library
32969         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32970
32971         test-xvasprintf: silence compiler warnings
32972         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32973         empty string from gcc.
32974
32975 2009-11-19  Jim Meyering  <meyering@redhat.com>
32976
32977         xfreopen: new module, from coreutils
32978         * modules/xfreopen: New module.
32979         * lib/xfreopen.c: New file.
32980         * lib/xfreopen.h: New file.
32981         * MODULES.html.sh (File stream based Input/Output"): Add it.
32982
32983 2009-11-19  Eric Blake  <ebb9@byu.net>
32984
32985         manywarnings: depend on warnings
32986         * modules/manywarnings (Depends-on): Add warnings.
32987
32988         build: avoid compiler warnings
32989         * lib/select.c (rpl_select): Delete unused variable.
32990         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32991
32992 2009-11-18  Eric Blake  <ebb9@byu.net>
32993
32994         tests: avoid false negative with --with-packager
32995         * tests/test-version-etc.sh: Discard packager information.
32996         * tests/test-argp-version-etc-1.sh: Likewise.
32997         Reported by Mike Frysinger.
32998
32999         utimens: fix regression on Solaris
33000         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33001         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33002         can only change fd timestamps via futimesat.  Instead, use an
33003         additional witness macro to avoid BSD bug.
33004         Reported by Jim Meyering.
33005
33006 2009-11-17  Eric Blake  <ebb9@byu.net>
33007
33008         usleep: use it to simplify tests
33009         * modules/stat-time-tests (Depends-on): Add usleep.
33010         (configure.ac): Drop usleep check.
33011         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33012         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33013         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33014         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33015         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33016         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33017         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33018         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33019         Likewise.
33020         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33021         * tests/test-lchown.h (nap): Likewise.
33022         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33023         * tests/test-stat-time.c (nap): Likewise.
33024         * tests/test-utimens-common.h (nap): Update comments.
33025
33026         usleep: new module
33027         * modules/usleep: New file.
33028         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33029         * lib/usleep.c (usleep): Likewise.
33030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33031         * modules/unistd (Makefile.am): Substitute witnesses.
33032         * lib/unistd.in.h (usleep): Add declaration.
33033         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33034         * MODULES.html.sh (Date and time): Likewise.
33035         * modules/usleep-tests (Depends-on): New test.
33036         * tests/test-usleep.c: New file.
33037
33038         chown: work around OpenBSD bug
33039         * lib/chown.c (rpl_chown): Work around the bug.
33040         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33041         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33042         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33043         * modules/chown (Depends-on): Add stdbool.
33044         * modules/lchown (Depends-on): Likewise.
33045         * doc/posix-functions/chown.texi (chown): Document the bug.
33046         * doc/posix-functions/lchown.texi (lchown): Likewise.
33047         * tests/test-lchown.h (test_chown): Relax test.
33048
33049         mkstemp: avoid conflict with C++ keyword template
33050         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33051         * lib/mkostemp.c (mkostemp): Likewise.
33052         * lib/mkostemps.c (mkostemps): Likewise.
33053         * lib/mkstemp.c (mkstemp): Likewise.
33054         * lib/mkstemps.c (mkstemps): Likewise.
33055
33056         xalloc-die-tests: optimize
33057         * tests/test-xalloc-die.sh: Reduce number of processes.
33058
33059 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33060
33061         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33062         patch from ludo@gnu.org (Ludovic Courtès).
33063
33064 2009-11-17  Jim Meyering  <meyering@redhat.com>
33065
33066         version-etc: use proper license string
33067         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33068         * modules/version-etc-fsf: Likewise.
33069
33070 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33071
33072         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33073         printed to stdout.  Deal with EOL differences.
33074
33075 2009-11-17  Eric Blake  <ebb9@byu.net>
33076
33077         unsetenv: work around Solaris bug
33078         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33079         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33080         Reported by Jim Meyering.
33081
33082         vasnprintf: avoid compiler warnings
33083         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33084         variables.
33085         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33086
33087 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33088
33089         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33090         settings since xalloc-die is no longer the self test,
33091         xalloc-die.sh is.
33092
33093 2009-11-17  Jim Meyering  <meyering@redhat.com>
33094
33095         test-xalloc-die.sh: make the code agree with the commit log
33096         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33097         at the end, just in case you happen to have a test-xalloc-die
33098         program in some other PATH directory.
33099
33100         test-xalloc-die.sh: fix a portability bug
33101         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33102         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33103         Otherwise, argv[0] (as often seen in diagnostics) would be too
33104         system-dependent, sometimes with, and sometimes without the leading "./".
33105
33106         version-etc-fsf: relax license to LGPLv3+
33107         * modules/version-etc-fsf (License): Relax license.
33108
33109 2009-11-16  Eric Blake  <ebb9@byu.net>
33110
33111         xalloc-die-tests: avoid printing null pointer
33112         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33113         shell script.
33114         * tests/test-xalloc-die.c (program_name): Declare.
33115         * tests/test-xalloc-die.sh (tmpfiles): New file.
33116
33117         setenv, unsetenv: work around various bugs
33118         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33119         (setenv) [HAVE_SETENV]: Work around bugs.
33120         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33121         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33122         for bugs.
33123         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33124         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33126         * modules/stdlib (Makefile.am): Update substitutions.
33127         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33128         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33129         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33130         * modules/setenv-tests: New test.
33131         * modules/unsetenv-tests: Likewise.
33132         * tests/test-setenv.c: New file.
33133         * tests/test-unsetenv.c: Likewise.
33134
33135 2009-11-16  Jim Meyering  <meyering@redhat.com>
33136
33137         version-etc: relax license to LGPLv3+
33138         * modules/version-etc (License): Relax license.
33139
33140         better AC_REQUIRE expanded-before-required-warning avoidance
33141         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33142         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33143         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33144         which is no longer needed.
33145
33146 2009-11-16  Eric Blake  <ebb9@byu.net>
33147
33148         test-freading: clean up temporary file
33149         * tests/test-freading.c (main): Remove file on success, and use
33150         ASSERT more liberally.
33151         Reported by Jim Meyering.
33152
33153 2009-11-16  Jim Meyering  <meyering@redhat.com>
33154
33155         avoid new AC_REQUIRE expanded-before-required warnings
33156         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33157         merely using it.
33158         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33159         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33160
33161 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33162
33163         * tests/test-xalloc-die.c: New file.
33164         * modules/xalloc-die-tests: New file.
33165         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33166         XFAIL_TESTS so it can be appended by modules.
33167
33168 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33169
33170         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33171         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33172
33173 2009-11-14  Eric Blake  <ebb9@byu.net>
33174
33175         fnmatch: avoid compiler warning
33176         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33177         to silence compiler warning about mismatch signedness in ?:.
33178         Reported by Robert Millan.
33179
33180         intprops: add double-inclusion guard
33181         * lib/intprops.h: Allow idempotent includes.
33182         Suggested by Bruce Korb.
33183
33184         openat: detect Solaris fchownat bug
33185         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33186         penalizing glibc chownat when only lchownat is broken.
33187         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33188         trailing slash bugs.
33189         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33190         * modules/openat-tests (Files): Include more files.
33191         (Depends-on): Add mgetgroups, sleep, stat-time.
33192         (configure.ac): Add additional checks.
33193         (Makefile.am): Build new test.
33194         * tests/test-fchownat.c: New file.
33195
33196         lchown: detect Solaris and FreeBSD bug
33197         * lib/lchown.c (rpl_lchown): Work around bug.
33198         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33200         * modules/unistd (Makefile.am): Populate it.
33201         * lib/unistd.in.h (lchown): Update declaration.
33202         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33203         * modules/lchown-tests: New file.
33204         * tests/test-lchown.h (test_lchown): Likewise.
33205         * tests/test-lchown.c (main): Likewise.
33206
33207         chown: detect Solaris and FreeBSD bug
33208         * lib/chown.c (rpl_chown): Work around bug.
33209         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33210         (gl_PREREQ_CHOWN): Delete.
33211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33212         * modules/unistd (Makefile.am): Populate it.
33213         * lib/unistd.in.h (chown): Update declaration.
33214         * lib/lchown.c (chown): Update client.
33215         * modules/lchown (Depends-on): Add lstat.
33216         * doc/posix-functions/chown.texi (chown): Document the bug.
33217         * doc/posix-functions/getgroups.texi (getgroups): Document
33218         getgroups pitfall.
33219         * modules/chown-tests: New file.
33220         * tests/test-chown.h (test_chown): Likewise.
33221         * tests/test-chown.c (main): Likewise.
33222
33223 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33224
33225         gnulib-tool: correctly detect absence of m4 directories
33226         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33227
33228 2009-11-14  Jim Meyering  <meyering@redhat.com>
33229
33230         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33231         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33232
33233 2009-11-14  John W. Eaton  <jwe@gnu.org>
33234
33235         strftime.h: wrap funtion declaration in extern "C" block
33236         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33237
33238 2009-11-13  Eric Blake  <ebb9@byu.net>
33239
33240         getgroups: avoid compiler warning
33241         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33242
33243         getgroups: work around FreeBSD bug
33244         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33245         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33246         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33247         * tests/test-getgroups.c (main): Fix buffer overrun.
33248
33249         getgroups: avoid compilation failure
33250         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33251         * modules/getgroups (Depends-on): Add stdint.
33252
33253 2009-11-13  Jim Meyering  <meyering@redhat.com>
33254
33255         test-getgroups: avoid compilation failure
33256         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33257
33258 2009-11-13  Eric Blake  <ebb9@byu.net>
33259
33260         mgetgroups: new module, taken from coreutils
33261         * modules/mgetgroups: New file.
33262         * lib/mgetgroups.h: Likewise.
33263         * lib/mgetgroups.c (mgetgroups): Likewise.
33264         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33265         * MODULES.html.sh (Users and groups): Mention it.
33266
33267         getgroups: don't expose GETGROUPS_T to user
33268         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33269         an element at a time if GETGROUPS_T is wrong size.
33270         * lib/getugroups.h (getugroups): Change signature.
33271         * lib/unistd.in.h (getgroups): Likewise.
33272         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33273         signature needs fixing.
33274         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33275         AC_TYPE_GETGROUPS.
33276         * modules/group-member (Depends-on): Add getgroups.
33277         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33278         (group_member): Rely on getgroups replacement.
33279         * lib/getugroups.c (getugroups): Use gid_t.
33280         * tests/test-getgroups.c (main): Likewise.
33281         * NEWS: Mention the signature change.
33282         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33283         problem with signature.
33284         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33285         GETGROUPS_T is still useful for setgroups.
33286
33287         getgroups, getugroups: provide stubs for mingw
33288         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33289         * lib/getugroups.c (getugroups): Likewise.
33290         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33291         function.  Modernize replacement scheme.
33292         (gl_PREREQ_GETGROUPS): Delete.
33293         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33294         * modules/getgroups (configure.ac): Declare witness.
33295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33296         * modules/unistd (Depends-on): Substitute witness.
33297         * lib/unistd.in.h (getgroups): Declare replacement.
33298
33299         getgroups: avoid calling exit
33300         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33301         drop xalloc.
33302         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33303         dependencies.
33304         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33305         exiting, in the rare case of malloc failure.
33306
33307         getgroups: fix logic error
33308         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33309         has more than 20 groups.
33310         * modules/getgroups-tests: New test.
33311         * tests/test-getgroups.c: New file.
33312
33313 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33314
33315         * tests/test-base64.c: Improve.
33316
33317 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33318
33319         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33320         Blake <ebb9@byu.net>.
33321
33322 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33323
33324         * tests/test-xvasprintf.c: Add %s%s related checks.
33325
33326 2009-11-12  Eric Blake  <ebb9@byu.net>
33327
33328         version-etc: match standards.texi style
33329         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33330         and use <> only for URLs.
33331
33332 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33333
33334         fts: do not fail on a submount during traversal
33335         * lib/fts.c (fts_build): Read the stat info again after opening
33336         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33337         Original report at http://bugzilla.redhat.com/501848.
33338
33339 2009-11-12  Jim Meyering  <meyering@redhat.com>
33340
33341         bootstrap: sync from coreutils
33342         * build-aux/bootstrap (bootstrap_epilogue): New function.
33343         Use git_modules_config in one more place.  This make bootstrap's
33344         --gnulib-srcdir option more useful for testing.
33345
33346         bootstrap: generalize autoheader check
33347         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33348         AC_CONFIG_HEADERS.
33349
33350 2009-11-11  Eric Blake  <ebb9@byu.net>
33351
33352         mkfifoat: use new modules for Solaris and BSD bugs
33353         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33354         * lib/mkfifoat.c (mknodat): Split...
33355         * lib/mknodat.c (mknodat): ...into new file.
33356         * modules/mkfifoat (Files): Ship new file.
33357         (Depends-on): Add mkfifo, mknod.
33358         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33359         (Depends-on): Add symlink.
33360         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33361         redundant with test_mkfifo.h.
33362         (do_mkfifoat, do_mknodat): New helpers.
33363
33364         mknod: new module
33365         * modules/mknod: New file.
33366         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33367         * lib/mknod.c (mknod): Likewise.
33368         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33369         defaults.
33370         * modules/sys_stat (Makefile.am): Substitute them.
33371         * lib/sys_stat.in.h (mknod): Declare replacement.
33372         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33373         Document it.
33374         * doc/posix-functions/mknod.texi (mknod): Likewise.
33375         * modules/mknod-tests: New test.
33376         * tests/test-mknod.c: Likewise.
33377
33378         mkfifo: new module
33379         * modules/mkfifo: New file.
33380         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33381         * lib/mkfifo.c (mkfifo): Likewise.
33382         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33383         defaults.
33384         * modules/sys_stat (Makefile.am): Substitute them.
33385         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33386         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33387         Document it.
33388         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33389         * modules/mkfifo-tests: New test.
33390         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33391         from test-mkfifoat.c.
33392         * tests/test-mkfifo.c: New file.
33393
33394         readlink: detect FreeBSD bug
33395         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33396         slash on symlink.
33397         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33398         * tests/test-readlink.h (test_readlink): Enhance test.
33399
33400         symlink: detect FreeBSD bug
33401         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33402         slash on symlink.
33403         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33404         * tests/test-symlink.h (test_symlink): Enhance test.
33405
33406 2009-11-10  Eric Blake  <ebb9@byu.net>
33407
33408         link: detect FreeBSD bug
33409         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33410         symlink.
33411         * doc/posix-functions/link.texi (link): Document the bug.
33412         * tests/test-link.h (test_link): Enhance test.
33413         * tests/test-linkat.c (main): Update caller.
33414
33415         unlink, remove: detect FreeBSD bug
33416         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33417         slash on symlink.
33418         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33419         * doc/posix-functions/remove.texi (remove): Likewise.
33420         * tests/test-unlink.h (test_unlink): Enhance test.
33421         * tests/test-remove.c (main): Likewise.
33422
33423 2009-11-09  Eric Blake  <ebb9@byu.net>
33424
33425         rename: detect FreeBSD bug
33426         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33427         slash on symlink.
33428         * modules/renameat-tests (Depends-on): Add filenamecat.
33429         * tests/test-rename.h (test_rename): Allow one more errno.
33430         * tests/test-renameat.c (main): Likewise.
33431         * doc/posix-functions/rename.texi (rename): Document the bug.
33432
33433         open: detect FreeBSD bug
33434         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33435         symlink.
33436         * doc/posix-functions/open.texi (open): Document the bug.
33437         * doc/posix-functions/utimes.texi (utimes): Likewise.
33438         * tests/test-open.h (test_open): Add parameters, and test symlink
33439         handling.
33440         * tests/test-open.c (main): Adjust caller.
33441         * tests/test-fcntl-safer.c (main): Likewise.
33442         * modules/open-tests (Depends-on): Add stdbool, symlink.
33443         * modules/fcntl-safer-tests (Depends-on): Likewise.
33444         * tests/test-openat.c (main): Add test-open tests.
33445
33446         stat: detect FreeBSD bug
33447         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33448         symlink.
33449         * doc/posix-functions/stat.texi (stat): Document the bug.
33450         * tests/test-stat.h (test_stat_func): Add argument.
33451         * tests/test-stat.c (main): Adjust caller.
33452         * tests/test-fstatat.c (main): Likewise.
33453         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33454         Reported by Jim Meyering.
33455
33456 2009-11-09  James Youngman  <jay@gnu.org>
33457
33458         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33459         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33460
33461 2009-11-08  Jim Meyering  <meyering@redhat.com>
33462
33463         utimens: remove invalid futimesat call
33464         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33465         It used the file descriptor of the target file as the DIR_FD
33466         parameter and NULL as the file name.  That caused failure with
33467         errno == EFAULT on FreeBSD-8.0-rc2
33468
33469 2009-11-07  Eric Blake  <ebb9@byu.net>
33470
33471         fflush, freadseek: use fseeko, not fseek
33472         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33473         (clear_ungetc_buffer): Avoid potential problems on large files.
33474         * lib/freadseek.c (freadseek): Likewise.
33475         * modules/freadseek (Depends-on): Add fseeko.
33476         * modules/fseek (configure.ac): Set a witness.
33477         * tests/test-fflush.c (main): Use fseeko.
33478         * tests/test-fpurge.c (fseek): Disable link warning.
33479         * tests/test-freadable.c (fseek): Likewise.
33480         * tests/test-freading.c (fseek): Likewise.
33481         * tests/test-fseeko.c (fseek): Likewise.
33482         * tests/test-ftell.c (fseek): Likewise.
33483         * tests/test-ftello.c (fseek): Likewise.
33484         * tests/test-fwritable.c (fseek): Likewise.
33485         * tests/test-fwriting.c (fseek): Likewise.
33486
33487 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33488
33489         * modules/memchr (Depends-on): Drop getpagesize dependency.
33490
33491 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33492
33493         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33494         Reported by Ludovic Courtès.
33495         * build-aux/pmccabe2html: Improve example usage.
33496         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33497
33498 2009-11-06  Jim Meyering  <meyering@redhat.com>
33499
33500         do-release-commit-and-tag: New module.
33501         Automate the release-commit and tag process.
33502         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33503         * modules/do-release-commit-and-tag: New file.
33504         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33505
33506 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33507
33508         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33509         because test-select.c uses inet_pton.
33510
33511 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33512
33513         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33514         GETADDRINFO_LIB.  Bump serial number.
33515         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33516         Suggested by Eric Blake <ebb9@byu.net>.
33517
33518 2009-11-05  Eric Blake  <ebb9@byu.net>
33519
33520         strtod: detect darwin bug
33521         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33522         Reported by Leo Davis.
33523
33524         freopen-safer: new module
33525         * modules/freopen-safer: New module.
33526         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33527         * lib/freopen-safer.c (freopen_safer): New file.
33528         * lib/stdio-safer.h (freopen_safer): New declaration.
33529         * lib/stdio--.h (freopen): New override.
33530         * MODULES.html.sh (File stream based Input/Output): Mention it.
33531         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33532         freopen-safer module.
33533         * doc/posix-functions/stderr.texi (stderr): Likewise.
33534         * doc/posix-functions/stdin.texi (stdin): Likewise.
33535         * doc/posix-functions/stdout.texi (stdout): Likewise.
33536         * modules/freopen-safer-tests: New test.
33537         * tests/test-reopen-safer.c: New file.
33538
33539 2009-11-05  Jim Meyering  <meyering@redhat.com>
33540
33541         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33542         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33543
33544 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33545
33546         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33547
33548 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33549
33550         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33551
33552 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33553
33554         Fix link error.
33555         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33556         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33557
33558 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33559
33560         * tests/test-func.c: Also test value of __func__.
33561
33562 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33563
33564         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33565         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33566
33567 2009-11-05  Bruno Haible  <bruno@clisp.org>
33568
33569         Fix link error.
33570         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33571         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33572         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33573
33574 2009-11-05  Bruno Haible  <bruno@clisp.org>
33575
33576         Tests for module 'inet_pton'.
33577         * modules/inet_pton-tests: New file.
33578         * tests/test-inet_pton.c: New file.
33579
33580 2009-11-05  Bruno Haible  <bruno@clisp.org>
33581
33582         Tests for module 'inet_ntop'.
33583         * modules/inet_ntop-tests: New file.
33584         * tests/test-inet_ntop.c: New file.
33585
33586 2009-11-04  Eric Blake  <ebb9@byu.net>
33587
33588         stdlib-safer: wrap all mkstemp variants
33589         * modules/mkostemp (configure.ac): Set witness.
33590         * modules/mkostemps (configure.ac): Likewise.
33591         * modules/mkstemps (configure.ac): Likewise.
33592         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33593         (mkstemps_safer): Wrap more functions.
33594         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33595         wrapping.
33596         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33597         (mkstemps_safer): Implement the wrappers.
33598
33599         mkstemps, mkostemps: new modules
33600         * modules/mkostemps: New module.
33601         * modules/mkstemps: Likewise.
33602         * lib/mkostemps.c (mkostemps): New file.
33603         * lib/mkstemps.c (mkstemps): Likewise.
33604         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33605         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33607         * modules/stdlib (Makefile.am): Substitute them.
33608         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33609         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33610         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33611         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33612         * MODULES.html.sh (File system functions): Mention them.
33613
33614         tempname: resync from glibc
33615         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33616         same values for __GT_FILE as glibc.  Abort even when assertions
33617         are disabled.
33618         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33619         match its value otherwise.  Allow idempotent inclusion.
33620         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33621         * lib/mkostemp.c (mkostemp): Likewise.
33622         * lib/mkstemp.c (mkstemp): Likewise.
33623         * lib/tmpfile.c (tmpfile): Likewise.
33624         * NEWS: Document this.
33625
33626         utimens: fix use of futimens on older Linux
33627         * lib/utimens.c (fdutimens): Use updated, rather than original,
33628         timespec to avoid bug in older Linux kernel.
33629         Reported by Simon Josefsson.
33630
33631 2009-11-04  Bruno Haible  <bruno@clisp.org>
33632
33633         Make num_processors more flexible and consistent.
33634         * lib/nproc.h (enum nproc_query): New type.
33635         (num_processors): Add a 'query' argument.
33636         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33637         (num_processors): Add a 'query' argument. Test the value of the
33638         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33639         mingw, count the number of CPUs available for the current process.
33640         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33641         Check for sched_getaffinity and sched_getaffinity_np.
33642         * modules/nproc (Depends-on): Add c-ctype, extensions.
33643         * NEWS: Mention the change.
33644
33645 2009-11-03  Bruno Haible  <bruno@clisp.org>
33646
33647         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33648
33649 2009-11-03  Jim Meyering  <meyering@redhat.com>
33650
33651         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33652         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33653         if it is defined.
33654
33655 2009-11-02  Eric Blake  <ebb9@byu.net>
33656
33657         mktime, timegm: share common declaration
33658         * lib/mktime-internal.h: New file.
33659         * lib/mktime.c: Use it rather than open-coding a declaration.
33660         * lib/timegm.c: Likewise.
33661         * modules/mktime (Files): Ship it.
33662         * modules/timegm (Files): Likewise.
33663         Suggested by Bruno Haible.
33664
33665         test-update-copyright: update test to match script changes
33666         * tests/test-update-copyright.sh: Avoid hard-coding perl
33667         location.  Don't update *.bak created by earlier runs.
33668
33669 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33670             Simon Josefsson  <simon@josefsson.org>
33671             Bruno Haible  <bruno@clisp.org>
33672
33673         Fix link error on Solaris 8.
33674         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33675         also in libnsl. Define also INET_PTON_LIB.
33676         * modules/inet_pton (Link): New section.
33677
33678 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33679             Bruno Haible  <bruno@clisp.org>
33680
33681         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33682         * modules/inet_ntop (Link): New section.
33683         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33684
33685 2009-11-02  Eric Blake  <ebb9@byu.net>
33686
33687         maint: avoid compiler warnings in m4 macros
33688         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33689         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33690
33691 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33692
33693         * m4/pmccabe2html.m4: Remove file.
33694         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33695         function.  Change maintainer.
33696         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33697         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33698         Courtès).
33699
33700 2009-10-31  Eric Blake  <ebb9@byu.net>
33701
33702         fseeko: fix m4 regression
33703         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33704         regression from 2009-10-27.
33705         Reported by Ralf Wildenhues.
33706
33707 2009-10-31  Jim Meyering  <meyering@redhat.com>
33708
33709         inttostr: aesthetics and improved (compile-time) safety
33710         Define inttype_is_signed rather than inttype_is_unsigned,
33711         since the sole use is via "#if inttype_is_signed".
33712         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33713         inttype_is_unsigned.
33714         * lib/offtostr.c (inttype_is_signed): Likewise.
33715         * lib/uinttostr.c (inttype_is_signed): Likewise.
33716         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33717         * lib/inttostr.c (inttostr): Use verify to cross-check the
33718         inttype_is_signed value and the signedness of the actual type.
33719         * modules/inttostr (Depends-on): Add verify.
33720
33721 2009-10-30  Eric Blake  <ebb9@byu.net>
33722
33723         build: avoid compiler warnings
33724         * lib/fchmodat.c (lchmod): Mark unused variables.
33725         * lib/getopt.c (_getopt_initialize): Likewise.
33726         * lib/mktime.c (__mktime_internal): Provide prototype.
33727         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33728         older gcc that do not understand #pragma GCC diagnostic.
33729         * lib/uinttostr.c (inttype_is_unsigned): Define.
33730         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33731
33732 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33733
33734         stat: fix compilation on AIX
33735         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33736         only see struct stat64.
33737
33738 2009-10-30  Eric Blake  <ebb9@byu.net>
33739
33740         exclude: make more robust
33741         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33742         rather than masking a coding bug.
33743         Suggested by Bruno Haible.
33744
33745 2009-10-30  Jim Meyering  <meyering@redhat.com>
33746
33747         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33748         Rather than putting #!/usr/bin/perl on the first line,
33749         start with a variant of what's recommended by "man perlrun" that
33750         invokes the first "perl" program from your shell's search path.
33751         * build-aux/gitlog-to-changelog: Replace #!... as above.
33752         Add a "Local Variables" perl mode setting.
33753         Prompted by a patch from Ludovic Courtès.
33754         Improved by Eric Blake.
33755         * build-aux/useless-if-before-free: Likewise.
33756         * build-aux/announce-gen: Likewise.
33757         * build-aux/update-copyright: Likewise.
33758
33759 2009-10-29  Eric Blake  <ebb9@byu.net>
33760
33761         filenamecat-lgpl: adjust clients
33762         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33763         filenamecat.
33764         * modules/renameat (Depends-on): Likewise.
33765
33766         filenamecat: split into filenamecat-lgpl
33767         * modules/filenamecat-lgpl: New module.
33768         * modules/filenamecat (Files): Move library-safe files into
33769         filenamecat-lgpl.
33770         (Depends-on): Add filenamecat-lgpl.
33771         (configure.ac): Declare witness.
33772         * lib/filenamecat.h (file_name_concat): Only declare when using
33773         GPL module.
33774         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33775         Move...
33776         * lib/filenamecat-lgpl.c: ...into new file.
33777         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33778         (gl_FILE_NAME_CONCAT): Use it.
33779         * MODULES.html.sh (File system functions): Mention new module.
33780
33781         argp: avoid memory leak
33782         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33783         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33784         base_name, since the latter malloc()s and can call exit().
33785         Leak introduced 2006-07-03.
33786
33787         dirname-lgpl: adjust clients that don't need full dirname
33788         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33789         * modules/filenamecat (Depends-on): Likewise.
33790         * modules/linkat (Depends-on): Likewise.
33791         * modules/mkancesdirs (Depends-on): Likewise.
33792         * modules/mkdir (Depends-on): Likewise.
33793         * modules/openat (Depends-on): Likewise.
33794         * modules/savewd (Depends-on): Likewise.
33795         * modules/rename (Depends-on): Likewise.
33796         (License): Relax license.
33797         * modules/mkdir-tests (Depends-on): Drop progname.
33798         (Makefile.am): Delete unneeded LDADD.
33799         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33800
33801         dirname: split into dirname-lgpl
33802         * modules/dirname-lgpl: New module.
33803         * modules/dirname (Files): Move library-safe files into
33804         dirname-lgpl.
33805         (Depends-on): Add dirname-lgpl.
33806         (configure.ac): Declare witness.
33807         * modules/double-slash-root (License): Relax license.
33808         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33809         module.
33810         * lib/dirname.c (dir_len, mdir_name): Move...
33811         * lib/dirname-lgpl.c: ...into new file.
33812         * lib/basename.c (last_component, base_len): Move...
33813         * lib/basename-lgpl.c: ...into new file.
33814         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33815         (gl_DIRNAME): Use it.
33816         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33817         Mention new module.
33818         * modules/dirname-tests (Depends-on): Add progname.
33819         * tests/test-dirname.c (program_name): Delete.
33820
33821         mkdir: make safe for libraries
33822         * modules/mkdir (Depends-on): Drop xalloc.
33823         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33824         exit.
33825
33826         tests: avoid some compiler warnings
33827         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33828         literals.
33829         * tests/test-memchr.c (main): Avoid type mismatch.
33830         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33831         * tests/test-base64.c (main): Likewise.
33832         * tests/test-getdelim.c (main): Likewise.
33833         * tests/test-gethostname.c (main): Likewise.
33834         * tests/test-getline.c (main): Likewise.
33835         * tests/test-netinet_in.c (main): Likewise.
33836         * tests/test-select.c (open_server_socket, main): Likewise.
33837         * tests/test-select-stdin.c (main): Likewise.
33838         * tests/test-sockets.c (main): Likewise.
33839         * tests/test-strsignal.c (main): Likewise.
33840         * tests/test-sys_select.c (main): Likewise.
33841         * tests/test-sys_socket.c (main): Likewise.
33842         * tests/test-u64.c (main): Likewise.
33843         * tests/test-xfprintf-posix.c (main): Likewise.
33844         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33845
33846         sockets: avoid compiler warning
33847         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33848
33849         maint: detect usage(1) and other suspicious exits
33850         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33851
33852 2009-10-29  Jim Meyering  <meyering@redhat.com>
33853
33854         timespec: long-to-int truncation could make timespec_cmp malfunction
33855         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33856         a multiple of 2^32 nanoseconds as no difference.
33857
33858 2009-10-28  Jim Meyering  <meyering@redhat.com>
33859
33860         fprintftime: wrap macro code argument in "do {...} while(0)"
33861         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33862         cpy macro must be a statement that can be followed by a semicolon.
33863         Now that the else clause contains a comment and is hence longer
33864         than one line, I require curly braces.  That in turn requires
33865         that we wrap this code block in the standard do...while(0).
33866
33867         fprintftime: remove stray semicolon from previous change
33868         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33869
33870         fprintftime: avoid a warning about ignored fwrite return value
33871         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33872         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33873         that is unsafe.
33874         * modules/fprintftime (Depends-on): Add ignore-value.
33875
33876         exclude: avoid an unwarranted warning
33877         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33878
33879 2009-10-27  Eric Blake  <ebb9@byu.net>
33880
33881         fseek: avoid compilation failure when fflush is replaced
33882         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33883         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33884         module is in use.
33885         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33886         module is not in use; since REPLACE_FSEEK worked otherwise.
33887         (GNULIB_FTELLO): Likewise for ftell.
33888         Reported by Ian Beckwith and others.
33889
33890 2009-10-27  Bruno Haible  <bruno@clisp.org>
33891
33892         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33893         Reported by Jim Meyering.
33894
33895 2009-10-27  Jim Meyering  <jim@meyering.net>
33896             Bruno Haible  <bruno@clisp.org>
33897
33898         Avoid warning despite dropping the return value of fwrite.
33899         * lib/unicodeio.c: Include ignore-value.h.
33900         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33901         * modules/unicodeio (Depends-on): Add ignore-value.
33902
33903 2009-10-26  Eric Blake  <ebb9@byu.net>
33904
33905         areadlinkat: fix fallback path
33906         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33907         pointer and zero.
33908
33909 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33910
33911         Use a better IO block size for modern systems
33912         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33913         * lib/md2.c: Likewise.
33914         * lib/md4.c: Likewise.
33915         * lib/md5.c: Likewise.
33916         * lib/sha1.c: Likewise.
33917         * lib/sha256.c: Likewise.
33918         * lib/sha512.c: Likewise.
33919
33920 2009-10-22  Eric Blake  <ebb9@byu.net>
33921
33922         tests: avoid several compiler warnings
33923         * tests/test-getcwd.c (main): Avoid buffer underflow.
33924         * tests/test-getdate.c (main): String literals are not safe with
33925         putenv, so use setenv.  Declare unused argument.
33926         * modules/getdate-tests (Depends-on): Add setenv.
33927         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33928         problems with string literals in char *.
33929         * tests/test-hash.c (main): Avoid shadowing declaration.
33930         (insert_new): Treat string literals as char const *.
33931         * tests/test-getopt.h (test_getopt): Likewise.
33932         (getopt_loop): Alter types to minimize casting elsewhere.
33933         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33934         (test_getopt_long_posix): Likewise.
33935         (do_getopt_long): Add wrapper to minimize casting.
33936         * tests/test-atexit.c (clear_temp_file): Use void.
33937         * tests/test-areadlink-with-size.c (main): Declare unused
33938         arguments.
33939         * tests/test-areadlink.c (main): Likewise.
33940         * tests/test-areadlinkat-with-size.c (main): Likewise.
33941         * tests/test-areadlinkat.c (main): Likewise.
33942         * tests/test-canonicalize-lgpl.c (main): Likewise.
33943         * tests/test-canonicalize.c (main): Likewise.
33944         * tests/test-dirent-safer.c (main): Likewise.
33945         * tests/test-dirname.c (main): Likewise.
33946         * tests/test-dup2.c (main): Likewise.
33947         * tests/test-fchdir.c (main): Likewise.
33948         * tests/test-fcntl-h.c (main): Likewise.
33949         * tests/test-fcntl-safer.c (main): Likewise.
33950         * tests/test-fdopendir.c (main): Likewise.
33951         * tests/test-fdutimensat.c (main): Likewise.
33952         * tests/test-fflush.c (main): Likewise.
33953         * tests/test-filenamecat.c (main): Likewise.
33954         * tests/test-filevercmp.c (main): Likewise.
33955         * tests/test-fopen-safer.c (main): Likewise.
33956         * tests/test-fopen.c (main): Likewise.
33957         * tests/test-fpending.c (main): Likewise.
33958         * tests/test-fpurge.c (main): Likewise.
33959         * tests/test-freading.c (main): Likewise.
33960         * tests/test-fstatat.c (main): Likewise.
33961         * tests/test-fsync.c (main): Likewise.
33962         * tests/test-futimens.c (main): Likewise.
33963         * tests/test-getndelim2.c (main): Likewise.
33964         * tests/test-gettimeofday.c (main): Likewise.
33965         * tests/test-getopt.c (main): Likewise.
33966         * tests/test-i-ring.c (main): Likewise.
33967         * tests/test-inttypes.c (main): Likewise.
33968         * tests/test-link.c (main): Likewise.
33969         * tests/test-lstat.c (main): Likewise.
33970         * tests/test-math.c (main): Likewise.
33971         * tests/test-md5.c (main): Likewise.
33972         * tests/test-memchr2.c (main): Likewise.
33973         * tests/test-memrchr.c (main): Likewise.
33974         * tests/test-mkdir.c (main): Likewise.
33975         * tests/test-mkdirat.c (main): Likewise.
33976         * tests/test-mkfifoat.c (main): Likewise.
33977         * tests/test-open.c (main): Likewise.
33978         * tests/test-openat-safer.c (main): Likewise.
33979         * tests/test-openat.c (main): Likewise.
33980         * tests/test-quotearg.c (main): Likewise.
33981         * tests/test-rawmemchr.c (main): Likewise.
33982         * tests/test-readlink.c (main): Likewise.
33983         * tests/test-remove.c (main): Likewise.
33984         * tests/test-rename.c (main): Likewise.
33985         * tests/test-renameat.c (main): Likewise.
33986         * tests/test-rmdir.c (main): Likewise.
33987         * tests/test-sha1.c (main): Likewise.
33988         * tests/test-signal.c (main): Likewise.
33989         * tests/test-sigaction.c (main): Likewise.
33990         * tests/test-stat.c (main): Likewise.
33991         * tests/test-stat-time.c (main): Likewise.
33992         * tests/test-stddef.c (main): Likewise.
33993         * tests/test-stdint.c (main): Likewise.
33994         * tests/test-stdio.c (main): Likewise.
33995         * tests/test-stdlib.c (main): Likewise.
33996         * tests/test-strchrnul.c (main): Likewise.
33997         * tests/test-strerror.c (main): Likewise.
33998         * tests/test-string.c (main): Likewise.
33999         * tests/test-strtod.c (main): Likewise.
34000         * tests/test-strverscmp.c (main): Likewise.
34001         * tests/test-symlink.c (main): Likewise.
34002         * tests/test-symlinkat.c (main): Likewise.
34003         * tests/test-sys_stat.c (main): Likewise.
34004         * tests/test-sys_time.c (main): Likewise.
34005         * tests/test-time.c (main): Likewise.
34006         * tests/test-unistd.c (main): Likewise.
34007         * tests/test-unlink.c (main): Likewise.
34008         * tests/test-unlinkat.c (main): Likewise.
34009         * tests/test-utimens.c (main): Likewise.
34010         * tests/test-utimensat.c (main): Likewise.
34011         * tests/test-version-etc.c (main): Likewise.
34012         * tests/test-wchar.c (main): Likewise.
34013         * tests/test-wctype.c (main): Likewise.
34014         * tests/test-xprintf-posix.c (main): Likewise.
34015         * tests/test-posixtm.c (main): Likewise.
34016         (STREQ): Delete unused macro.
34017         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34018         shadowed variables.
34019         * tests/test-memchr.c (main): Likewise.
34020
34021 2009-10-21  Eric Blake  <ebb9@byu.net>
34022
34023         areadlinkat: avoid failure on older glibc
34024         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34025         rather than mis-comparing 0 against FUNC_RESULT of char*.
34026
34027 2009-10-21  Bruno Haible  <bruno@clisp.org>
34028
34029         * modules/stpncpy (License): Relicense under LGPLv2+.
34030         Reported by David Lutterkort <lutter@redhat.com>.
34031
34032 2009-10-20  Eric Blake  <ebb9@byu.net>
34033
34034         utimensat: work around Solaris 9 bug
34035         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34036         has trailing slash bugs.
34037         * tests/test-lutimens.h (test_lutimens): Enhance test.
34038         * tests/test-utimens.h (test_utimens): Likewise.
34039         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34040         * doc/posix-functions/utimes.texi (utimes): Likewise.
34041         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34042         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34043         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34044         * doc/posix-functions/futimens.texi (futimens): Likewise.
34045
34046         fdutimensat: new module
34047         * modules/fdutimensat: New file.
34048         * lib/fdutimensat.c (fdutimensat): Likewise.
34049         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34050         * MODULES.html.sh (File system functions): Mention module.
34051         * modules/fdutimensat-tests: New test.
34052         * tests/test-fdutimensat.c: Likewise.
34053
34054         doc: regenerate INSTALL
34055         * doc/INSTALL: Reflect recent autoconf update.
34056         * doc/INSTALL.ISO: Likewise.
34057         * doc/INSTALL.UTF-8: Likewise.
34058
34059 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34060
34061         acl: warn if ACL support is not detected
34062         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34063
34064 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34065
34066         * lib/nproc.h: Add extern "C" block for C++.
34067
34068 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34069             Bruno Haible  <bruno@clisp.org>
34070
34071         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34072         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34073         * doc/posix-functions/isalpha.texi: Likewise.
34074         * doc/posix-functions/isblank.texi: Likewise.
34075         * doc/posix-functions/iscntrl.texi: Likewise.
34076         * doc/posix-functions/isdigit.texi: Likewise.
34077         * doc/posix-functions/isgraph.texi: Likewise.
34078         * doc/posix-functions/islower.texi: Likewise.
34079         * doc/posix-functions/isprint.texi: Likewise.
34080         * doc/posix-functions/ispunct.texi: Likewise.
34081         * doc/posix-functions/isspace.texi: Likewise.
34082         * doc/posix-functions/isupper.texi: Likewise.
34083         * doc/posix-functions/isxdigit.texi: Likewise.
34084
34085 2009-10-18  Bruno Haible  <bruno@clisp.org>
34086
34087         Tests for module 'isblank'.
34088         * modules/isblank-tests: New file.
34089         * tests/test-isblank.c: New file.
34090
34091         New module 'isblank'.
34092         * lib/isblank.c: New file.
34093         * m4/isblank.m4: New file.
34094         * modules/isblank: New file.
34095         * doc/posix-functions/isblank.texi: Mention the new module.
34096
34097 2009-10-18  Bruno Haible  <bruno@clisp.org>
34098
34099         New module 'ctype'.
34100         * lib/ctype.in.h: New file.
34101         * m4/ctype.m4: New file.
34102         * modules/ctype: New file.
34103         * doc/posix-headers/ctype.texi: Mention the new module.
34104
34105 2009-10-18  Jim Meyering  <meyering@redhat.com>
34106
34107         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34108         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34109         right after its initialization, rather than farther down.
34110         Keeping these in close proximity makes it easier to ensure
34111         that each such variable is initialized.  E.g.,
34112
34113             LIB_CLOCK_GETTIME=
34114             AC_SUBST([LIB_CLOCK_GETTIME])
34115
34116         This change also increments these serial numbers.
34117         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34118         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34119         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34120
34121 2009-10-18  Bruno Haible  <bruno@clisp.org>
34122
34123         Don't let environment variables perturb build.
34124         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34125         (gl_PREREQ_GETHRXTIME): ... not here.
34126
34127 2009-10-18  Bruno Haible  <bruno@clisp.org>
34128
34129         Avoid symlink attack in localcharset module.
34130         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34131         (O_NOFOLLOW): Define fallback.
34132         (get_charset_aliases): Don't open the file if it is a symbolic link.
34133         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34134         gl_FCNTL_H.
34135         (gl_FCNTL_H): Require it.
34136         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34137         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34138         Reported by Fergal Glynn <fglynn@veracode.com>.
34139
34140 2009-10-18  Bruno Haible  <bruno@clisp.org>
34141
34142         Implement nproc for mingw.
34143         * lib/nproc.c: Include <windows.h>
34144         (num_processors): On native Windows platforms, try GetSystemInfo.
34145
34146 2009-10-18  Bruno Haible  <bruno@clisp.org>
34147
34148         Implement nproc for IRIX.
34149         * lib/nproc.c: Include <sys/sysmp.h>.
34150         (num_processors): On IRIX systems, try sysmp.
34151         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34152
34153 2009-10-18  Bruno Haible  <bruno@clisp.org>
34154
34155         Implement nproc for HP-UX.
34156         * lib/nproc.c: Include <sys/pstat.h>
34157         (num_processors): On HP-UX systems, try pstat_getdynamic.
34158         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34159         pstat_getdynamic.
34160
34161 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34162             Bruno Haible  <bruno@clisp.org>
34163
34164         Implement nproc for NetBSD, OpenBSD.
34165         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34166         (ARRAY_SIZE): New macro.
34167         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34168         * m4/nproc.m4: New file.
34169         * modules/nproc (Files): Add m4/nproc.m4.
34170         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34171         (Makefile.am): Instead, augment lib_SOURCES.
34172
34173 2009-10-18  Bruno Haible  <bruno@clisp.org>
34174
34175         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34176         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34177         sys/param.h.
34178
34179 2009-10-16  Eric Blake  <ebb9@byu.net>
34180
34181         utimensat: new module
34182         * modules/utimensat: New file.
34183         * lib/utimensat.c (utimensat): Likewise.
34184         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34185         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34186         so we can work around Linux bugs.
34187         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34188         * modules/sys_stat (Makefile.am): Substitute them.
34189         * lib/sys_stat.in.h (utimensat): Declare it.
34190         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34191         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34192         * modules/utimensat-tests: New test.
34193         * tests/test-utimensat.c: Likewise.
34194
34195         utimens: let lutimens work on non-symlinks
34196         * lib/utimens.c (lutimens): Fall back to utimens rather than
34197         failing with ENOSYS, when file is not a symlink.
34198         (utimens): Reduce redirection.
34199         * tests/test-lutimens.h (test_lutimens): Update test to cover
34200         non-symlinks.
34201         * tests/test-utimens.h (test_utimens): Update test to cover
34202         symlinks.
34203         * tests/test-utimens.c (main): Update caller.
34204
34205         utimens: cache whether utimensat syscall works
34206         * lib/utimens.c (utimensat_works_really): New cache variable.
34207         (fdutimens, lutimens): Use it to avoid failing syscall.
34208
34209         test-stat-time, test-utimens: improve portability
34210         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34211         ext4 on alpha, and for cygwin.
34212         * tests/test-utimens-common.h: New file.
34213         (nap): Factor delays into single function.
34214         * tests/test-lutimens.h (test_lutimens): Use new header.
34215         * tests/test-futimens.h (test_futimens): Likewise.
34216         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34217         timestamps to occur from same machine, as was done previously for
34218         test_utimens.
34219         * modules/utimens-tests (Files): Ship new file.
34220         * modules/futimens-tests (Files): Likewise.
34221         Reported in part by Jim Meyering.
34222
34223         sys_stat: sort replacement declarations
34224         * lib/sys_stat.in.h: Sort declarations.
34225         * lib/futimens.c (futimens): Fix typo.
34226
34227 2009-10-15  Jim Meyering  <meyering@redhat.com>
34228
34229         don't let environment settings perturb build
34230         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34231         could cause a configure-time and/or build-time malfunction.
34232         Typically, a configure-time function-in-library test is performed
34233         via code like this:
34234
34235           LIB_VAR=
34236           AC_SUBST([LIB_VAR])
34237           prefix_saved_LIBS=$LIBS
34238             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34239                        [test "$ac_cv_search_FUNC" = "none required" ||
34240                         LIB_VAR=$ac_cv_search_FUNC])
34241           LIBS=$prefix_saved_LIBS
34242
34243         However, in each of the files affected by this change, the LIB_VAR=
34244         initialization was omitted.  Thus, when set in the environment, its
34245         value would propagate into generated Makefiles when FUNC is not found
34246         in LIB_NAME.
34247         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34248         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34249         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34250
34251 2009-10-14  Eric Blake  <ebb9@byu.net>
34252
34253         fchdir: avoid infinite recursion in mingw
34254         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34255         recursing.
34256
34257         test-stat-time: port to mingw
34258         * tests/test-stat-time.c (force_unlink): Return a value.
34259         (test_ctime) [W32]: Fix compilation error.
34260         (nap): Don't call usleep with too large an argument.  Use
34261         force_unlink.
34262         * doc/pastposix-functions/usleep.texi (usleep): Document the
34263         portability issue.
34264
34265 2009-10-13  Jim Meyering  <meyering@redhat.com>
34266
34267         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34268         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34269         * modules/pipe-filter-ii: Likewise.
34270         * modules/sys_socket-tests: Likewise.
34271         * modules/tsearch-tests: Likewise.
34272         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34273         (check): Depend on it.
34274
34275 2009-10-12  Eric Blake  <ebb9@byu.net>
34276
34277         utimens-tests: port to NFS file systems
34278         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34279         comparisons to avoid spurious failures from timestamp drift
34280         between NFS machines.
34281
34282 2009-10-12  Eric Blake  <ebb9@byu.net>
34283
34284         stat-time-tests: minor cleanups
34285         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34286         * tests/test-stat-time.c (nap): Separate assignment from call.
34287         Suggested by Paolo Bonzini and Bruno Haible.
34288
34289         sys_stat: guarantee struct timespec
34290         * lib/sys_stat.in.h (includes): Always include <time.h>
34291         * modules/sys_stat (Depends-on): Add time.
34292         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34293         mode_t permission values.
34294         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34295         get at subsecond timestamps.
34296
34297 2009-10-10  Eric Blake  <ebb9@byu.net>
34298
34299         futimens: new module
34300         * modules/futimens: New file.
34301         * lib/futimens.c (futimens): Likewise.
34302         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34303         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34304         we can work around Linux bugs.
34305         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34306         * modules/sys_stat (Makefile.am): Substitute them.
34307         * lib/sys_stat.in.h (futimens): Declare it.
34308         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34309         * doc/posix-functions/futimens.texi (futimens): Likewise.
34310         * modules/futimens-tests: New test.
34311         * tests/test-futimens.c: Likewise.
34312
34313         utimens: introduce fdutimens
34314         * lib/utimens.h (fdutimens): New prototype.
34315         * lib/utimens.c (gl_futimens): Move guts...
34316         (fdutimens): ...to new interface.
34317         * tests/test-utimens.c (do_fdutimens): Use it.
34318
34319         utimens: add UTIME_NOW and UTIME_OMIT support
34320         * lib/utimens.c (validate_timespec, update_timespec): New helper
34321         functions.
34322         (gl_futimens, lutimens): Use them.
34323         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34324         stdbool, sys_stat.
34325         (Link): Mention resulting library dependency.
34326         * modules/utimecmp (Link): Likewise.
34327         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34328         (Makefile.am): Pick up library dependency.
34329         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34330         definition.
34331         * tests/test-sys_stat.c: Test the definitions.
34332         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34333         * NEWS: Document library dependency.
34334
34335         utimecmp: support symlink timestamps
34336         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34337         hashing when possible.  Use pathconf when available.
34338         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34339         * modules/utimecmp (Depends-on): Add lstat.
34340
34341         utimens: add lutimens interface
34342         * lib/utimens.c (lutimens): New function.
34343         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34344         * lib/utimens.h (lutimens): Declare new interface.
34345         * tests/test-utimens.c (main): Enhance test.
34346         * tests/test-lutimens.h (test_lutimens): New file.
34347         * modules/utimens-tests (Files): Distribute it.
34348         (Depends-on): Add symlink.
34349         (configure.ac): Check for usleep.
34350
34351         utimens: validate futimens usage
34352         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34353         fewer syscalls on failure later on.  Avoid compiler warning on
34354         mingw.
34355         * modules/utimens (Depends-on): Add dup2.
34356
34357         utimens: add test
34358         * modules/utimens-tests: New test.
34359         * tests/test-utimens.h: New file.
34360         * tests/test-futimens.h: Likewise.
34361         * tests/test-utimens.c: Likewise.
34362
34363         doc: mention timestamp portability issues
34364         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34365         instead.
34366         * doc/posix-functions/utime.texi (utime): Likewise.
34367         * doc/posix-functions/utimes.texi (utimes): Likewise.
34368         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34369         instead.
34370         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34371         module.
34372         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34373         Mention weakness with symlink timestamps.
34374         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34375         to utimensat/futimens instead.
34376         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34377
34378         test-dup2: enhance test
34379         * tests/test-dup2.c (main): Also check AT_FDCWD.
34380
34381         test-stat-time: avoid more spurious failures
34382         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34383         xfs; and avoid race if the two timestamps cross quantization edge.
34384
34385         relocatable: prefer 'file system' over 'filesystem'
34386         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34387         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34388         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34389         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34390         * lib/relocatable.c (compute_curr_prefix): Likewise.
34391
34392 2009-10-10  Jim Meyering  <meyering@redhat.com>
34393
34394         stat-time-tests: check for the usleep function
34395         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34396
34397 2009-10-10  Bruno Haible  <bruno@clisp.org>
34398
34399         * modules/xnanosleep: Put the Link section after the Include section.
34400
34401 2009-10-09  Eric Blake  <ebb9@byu.net>
34402
34403         dup2: work around FreeBSD 6.1 bug
34404         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34405         * doc/posix-functions/dup2.texi (dup2): Document it.
34406         Reported by Nelson H. F. Beebe and Jim Meyering.
34407
34408         test-stat-time: port to buggy NFS clients
34409         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34410         (test_ctime): Also skip test if mtime and ctime are skewed.
34411
34412         maint: prefer 'file system' over 'filesystem'
34413         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34414         * doc/posix-functions/lstat.texi (lstat): Likewise.
34415         * lib/file-has-acl.c (file_has_acl): Likewise.
34416         * lib/fwriteerror.c [TEST]: Likewise.
34417         * tests/test-areadlink.h (test_areadlink): Likewise.
34418         * tests/test-areadlinkat-with-size.c (main): Likewise.
34419         * tests/test-areadlinkat.c (main): Likewise.
34420         * tests/test-canonicalize-lgpl.c (main): Likewise.
34421         * tests/test-canonicalize.c (main): Likewise.
34422         * tests/test-fstatat.c (main): Likewise.
34423         * tests/test-linkat.c (main): Likewise.
34424         * tests/test-lstat.h (test_lstat_func): Likewise.
34425         * tests/test-mkdir.h (test_mkdir): Likewise.
34426         * tests/test-readlink.h (test_readlink): Likewise.
34427         * tests/test-remove.c (main): Likewise.
34428         * tests/test-rename.h (test_rename): Likewise.
34429         * tests/test-renameat.c (main): Likewise.
34430         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34431         * tests/test-symlink.h (test_symlink): Likewise.
34432         * tests/test-symlinkat.c (main): Likewise.
34433         * tests/test-unlink.h (test_unlink_func): Likewise.
34434         * tests/test-unlinkat.c (main): Likewise.
34435
34436         maint: make realtime library usage explicit
34437         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34438         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34439         * modules/settime (Link): Likewise.
34440         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34441
34442         test-stat-time: speed up execution
34443         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34444         warning on mingw.
34445         (nap): New helper function.
34446         (prepare_test): Use it to reduce sleep time.
34447         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34448         execution.
34449         * modules/stat-time-tests (configure.ac): Check for usleep.
34450
34451 2009-10-09  Jim Meyering  <meyering@redhat.com>
34452
34453         selinux-h: always use getfilecon wrappers
34454         * lib/getfilecon.c: New file.
34455         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34456         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34457         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34458         (fgetfilecon): Provide a stub.
34459         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34460         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34461         file unconditionally.
34462         When <selinux/selinux.h> is found, arrange to use wrappers.
34463         * modules/selinux-h (Files): Add getfilecon.c.
34464         (Makefile.am): Substitute include-next-related bits
34465         into the now-always-generated selinux/selinux.h file.
34466         * doc/glibc-functions/lgetfilecon.texi: New file.
34467         * doc/glibc-functions/fgetfilecon.texi: New file.
34468         * doc/glibc-functions/getfilecon.texi: New file.
34469         * doc/glibc-functions/getfilecon-desc.texi: New file.
34470         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34471         which to pull in the new files.
34472         * MODULES.html.sh (Misc): Add selinux-h.
34473
34474 2009-10-08  Jim Meyering  <meyering@redhat.com>
34475
34476         unistd: fix comment typo
34477         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34478
34479 2009-10-08  Eric Blake  <ebb9@byu.net>
34480
34481         areadlink: use SIZE_MAX consistently
34482         * modules/areadlink (Depends-on): Add stdint.
34483         * modules/areadlink-with-size (Depends-on): Likewise.
34484         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34485         gives NULL; drop sys/types, since unistd gives size_t; and add
34486         stdint for SIZE_MAX.
34487         (SIZE_MAX): Rely on headers.
34488         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34489         and add stdint.
34490         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34491         (SIZE_MAX): Likewise.
34492         (INITIAL_BUF_SIZE): Turn into enum.
34493         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34494
34495 2009-10-08  Jim Meyering  <meyering@redhat.com>
34496
34497         areadlinkat: avoid compilation failure
34498         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34499         Fix typo in comment.
34500
34501 2009-10-07  Eric Blake  <ebb9@byu.net>
34502
34503         areadlinkat-with-size: new module
34504         * modules/areadlinkat-with-size: New module.
34505         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34506         * lib/areadlink.h (areadlinkat): Declare it.
34507         * MODULES.html.sh (File system functions): Mention it.
34508         * modules/areadlinkat-with-size-tests: New test.
34509         * tests/test-areadlinkat-with-size.c: New file.
34510
34511         xreadlinkat: new module
34512         * modules/xreadlinkat: New module.
34513         * lib/xreadlinkat.c (xreadlinkat): New file.
34514         * lib/xreadlink.h (xreadlinkat): Declare it.
34515         * MODULES.html.sh (File system functions): Mention it.
34516
34517         areadlinkat: new module
34518         * lib/at-func.c (FUNC_FAIL): New define.
34519         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34520         * modules/areadlinkat: New module.
34521         * lib/linkat.c (areadlinkat): Move...
34522         * lib/areadlinkat.c (areadlinkat): ...to new file.
34523         * lib/areadlink.h (areadlinkat): Declare it.
34524         * modules/linkat (Depends-on): Add areadlinkat.
34525         * MODULES.html.sh (File system functions): Mention it.
34526         * modules/areadlinkat-tests: New test.
34527         * tests/test-areadlinkat.c: New file.
34528
34529         areadlink, areadlink-with-size: add tests
34530         * modules/areadlink-tests: New test.
34531         * modules/areadlink-with-size-tests: Likewise.
34532         * tests/test-areadlink.h: New file.
34533         * tests/test-areadlink.c: Likewise.
34534         * tests/test-areadlink-with-size.c: Likewise.
34535
34536         maint: minor cleanups
34537         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34538         _UNUSED_PARAMETER_ instead.
34539         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34540         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34541         * modules/linkat-tests (Files): Distribute test-link.h.
34542
34543         openat, utimens: whitespace cleanup
34544         * lib/openat.c: Prefer space throughout, rather than mix of 8
34545         spaces vs. tabs.
34546         * lib/at-func.c: Likewise.
34547         * lib/utimens.c: Likewise.
34548
34549         openat: avoid using wrong fd
34550         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34551         working directory chooses same fd.
34552         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34553
34554         mkdir, mkdirat: fix cygwin 1.5.x bug
34555         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34556         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34557         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34558         bug.
34559         (gl_PREREQ_MKDIR): Delete unused macro.
34560         * modules/mkdir (Files): Track file rename.
34561         (configure.ac): Update macro name.
34562         * modules/openat (Depends-on): Add mkdir.
34563         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34564
34565         mkdir, mkdirat: add tests
34566         * modules/mkdir-tests: New test.
34567         * tests/test-mkdir.h: New file.
34568         * tests/test-mkdir.c: Likewise.
34569         * tests/test-mkdirat.c: Likewise.
34570         * modules/openat-tests (Files): Add new files.
34571         (Makefile.am): Run new test.
34572
34573 2009-10-06  Eric Blake  <ebb9@byu.net>
34574
34575         doc: tweak *at function documentation
34576         * doc/posix-functions/faccessat.texi (faccessat): Mention
34577         known issue with replacement.
34578         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34579         * doc/posix-functions/linkat.texi (linkat): Likewise.
34580         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34581         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34582         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34583         * doc/posix-functions/renameat.texi (renameat): Likewise.
34584         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34585
34586         openat: fix GNU/Hurd bug in unlinkat
34587         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34588         broken.
34589         * doc/posix-functions/unlink.texi (unlink): Document this.
34590         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34591
34592         fdopendir: fix GNU/Hurd bug
34593         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34594         allowing non-directory fds.
34595         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34596         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34597         * modules/dirent (Makefile.am): Substitute it.
34598         * lib/dirent.in.h (fdopendir): Declare replacement.
34599         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34600         * tests/test-fdopendir.c (main): Test something other than
34601         /dev/null, since on Hurd that behaves like a directory.
34602
34603         test-symlink: port to GNU/Hurd
34604         * tests/test-symlink.h (test_symlink): Relax expected errno.
34605
34606         doc: tweak more cygwin information
34607         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34608         now compatible with glibc.
34609         * doc/posix-functions/getopt.texi (getopt): Likewise.
34610
34611         getopt-gnu: add another test
34612         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34613         guarantee behavior relied on by m4.
34614         * tests/test-getopt.c (main): Use it.
34615         * modules/getopt-posix-tests (Depends-on): Add setenv.
34616         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34617
34618         getopt: fix compilation on darwin
34619         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34620         include.
34621         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34622         Reported by Ludovic Courtès.
34623
34624 2009-10-06  Bruno Haible  <bruno@clisp.org>
34625
34626         * modules/size_max (Description): Discourage its use.
34627         Reported by Simon Josefsson.
34628
34629 2009-10-06  Jim Meyering  <meyering@redhat.com>
34630
34631         linkat: avoid compilation failure
34632         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34633
34634 2009-10-05  Eric Blake  <ebb9@byu.net>
34635
34636         linkat: support Linux 2.6.17
34637         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34638         linkat on Linux, but allow cache variable override.
34639         * lib/linkat.c (rpl_linkat): Define override.
34640         * modules/linkat (Depends-on): Add symlinkat.
34641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34642         * modules/unistd (Makefile.am): Substitute it.
34643         * lib/unistd.in.h (linkat): Declare replacement.
34644         Reported by Pádraig Brady.
34645
34646         quotearg: port test to systems with C.UTF-8 locale
34647         * tests/test-quotearg.c (struct result_strings): Add another
34648         member, differentiating between C.ASCII and C.UTF-8 handling.
34649         (compare_strings): Add parameter.
34650         (main): Adjust all callers.
34651
34652         getopt: avoid clash with FreeBSD _getopt_internal
34653         * lib/getopt.in.h (_getopt_internal): Override the name.
34654         * lib/getopt_int.h (includes): Pick up any overrides.
34655         Reported by Reuben Thomas.
34656
34657         hash: allow C89 compilation
34658         * lib/hash.c (check_tuning): Move declaration before statement.
34659         Reported by Reuben Thomas.
34660
34661 2009-10-05  Karl Berry  <karl@gnu.org>
34662
34663         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34664
34665 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34666             Bruno Haible  <bruno@clisp.org>
34667
34668         * lib/uname.c (uname): Use a table-driven algorithm to compute
34669         Windows NT versions.
34670
34671 2009-10-04  Bruno Haible  <bruno@clisp.org>
34672
34673         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34674         program_invocation_short_name.
34675         * modules/progname (configure.ac): Test for presence of
34676         program_invocation_short_name.
34677         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34678
34679 2009-10-04  Bruno Haible  <bruno@clisp.org>
34680
34681         * lib/progname.c (set_program_name): Fix comment.
34682         Reported by Jim Meyering.
34683
34684 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34685             Bruno Haible  <bruno@clisp.org>
34686
34687         * lib/uname.c: Include <string.h>.
34688         (uname): Do only one call to GetVersionEx in the common case.
34689
34690 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34691             Bruno Haible  <bruno@clisp.org>
34692
34693         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34694         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34695         (uname): Add support for Windows CE and various non-x86 CPU types.
34696
34697 2009-10-03  Bruno Haible  <bruno@clisp.org>
34698
34699         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34700         invocation to tests/configure.ac.
34701         Reported by Ian Beckwith <ianb@erislabs.net>.
34702
34703 2009-10-02  Eric Blake  <ebb9@byu.net>
34704
34705         fchdir: avoid compiler warning
34706         * lib/fchdir.c (canonicalize_file_name)
34707         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34708
34709         test-open: support mingw errno values
34710         * tests/test-open.h (test_open): Relax test.
34711         * tests/test-fopen.h (test_fopen): Likewise.
34712         * tests/test-openat-safer.c (main): Likewise.
34713
34714         open: fix opening directory on mingw
34715         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34716
34717         test-open: on GNU/Hurd, /dev/null is a directory
34718         * tests/test-fopen.h (main): Rename...
34719         (test_fopen): ...to this.  Use a guaranteed non-directory when
34720         confirming open behavior on trailing slash.
34721         * tests/test-openat-safer.c (main): Likewise.
34722         * tests/test-open.h (main): Likewise....
34723         (test_open): ...to this.
34724         * tests/test-fopen.c (main): Adjust caller.
34725         * tests/test-fopen-safer.c (main): Likewise.
34726         * tests/test-open.c (main): Likewise.
34727         * tests/test-fcntl-safer.c (main): Likewise.
34728         Reported by Samuel Thibault.
34729
34730         rename, fchdir: don't ignore chdir failure
34731         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34732         * lib/rename.c (rpl_rename) [W32]: Likewise.
34733         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34734         an empty destination directory if source cannot be renamed,
34735         although there is still possibility for failure.
34736         * doc/posix-functions/rename.texi (rename): Document the race.
34737         Reported by Jim Meyering.
34738
34739         maint: cleanup whitespace in recent commits
34740         * lib/rename.c (rpl_rename): Remove tabs.
34741         * tests/test-link.h (test_link): Likewise.
34742         * lib/fchdir.c (get_name): Likewise.
34743         Reported by Jim Meyering.
34744
34745 2009-10-02  Ben Pfaff  <blp@gnu.org>
34746
34747         relocatable-prog-wrapper: Add missing dependency on
34748         double-slash-root.
34749         * modules/relocatable-prog-wrapper: Add dependency.
34750         Reported by Ian Beckwith <ianb@erislabs.net>.
34751
34752 2009-10-02  Eric Blake  <ebb9@byu.net>
34753
34754         renameat: fix Solaris bugs
34755         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34756         needed fixing.
34757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34758         * modules/stdio (Makefile.am): Substitute it.
34759         * lib/stdio.in.h (renameat): Declare replacement.
34760         * lib/renameat.c (rpl_renameat): Implement fix.
34761
34762         renameat: new module
34763         * modules/renameat: New file.
34764         * lib/renameat.c (renameat): Likewise.
34765         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34767         * modules/stdio (Makefile.am): Substitute them.
34768         * lib/stdio.in.h (renameat): Declare it.
34769         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34770         * doc/posix-functions/renameat.texi (renameat): Likewise.
34771         * modules/renameat-tests: New test.
34772         * tests/test-renameat.c: Likewise.
34773
34774         rename: fix mingw bugs
34775         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34776         directory overwrite bugs.
34777
34778         rename: fix another cygwin 1.5 bug
34779         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34780         checks.
34781         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34782         unnecessary cygwin workarounds.  Also work around bug with moving
34783         full directory onto an empty one.
34784         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34785
34786         rename-dest-slash: merge into rename module
34787         * modules/rename-dest-slash (Status): Mark obsolete.
34788         (Depends-on): Add rename.
34789         (Files): Let rename do it all.
34790         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34791         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34792         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34793         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34794         * lib/rename.c (rpl_rename): Update comments.
34795
34796         rename: fix cygwin 1.5.x bugs
34797         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34798         * lib/rename.c (rpl_rename): Work around them.
34799         * modules/rename (Depends-on): Add same-inode.
34800
34801         rename: fix Solaris 10 bug
34802         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34803         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34804         was the only bug.
34805
34806         rename: fix Solaris 9 bug
34807         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34808         on non-directory.  Avoid calling exit.
34809         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34810         strdup.
34811         * modules/rename-tests (Depends-on): Drop lstat.
34812         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34813         (gl_PREREQ_RENAME): Delete unused macro.
34814
34815         rename-dest-slash: fix NetBSD bug
34816         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34817         links.
34818         * modules/rename-dest-slash (Depends-on): Add same-inode.
34819
34820         rename-tests: new test, exposes several platform bugs
34821         * modules/rename-tests: New file.
34822         * tests/test-rename.h: Likewise.
34823         * tests/test-rename.c: Likewise.
34824         * doc/posix-functions/rename.texi (rename): Improve documentation,
34825         including bugs that will eventually be fixed in gnulib.
34826
34827 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34828
34829         * lib/uname.c: Include <stdlib.h>
34830         (uname): Assume version info is available.
34831
34832 2009-10-02  Jim Meyering  <meyering@redhat.com>
34833
34834         gnu-web-doc-update: correct --help output
34835         * build-aux/gnu-web-doc-update: Make --help output relevant.
34836
34837         gnu-web-doc-update: add standard options
34838         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34839
34840         gnu-web-doc-update: New module.
34841         Use this script to automatically update the on-line web documentation
34842         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34843         * modules/gnu-web-doc-update: New file, from coreutils.
34844         * build-aux/gnu-web-doc-update: New script.
34845
34846 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34847
34848         link: LoadLibrary is not needed.
34849         * lib/link.c: Use GetModuleHandle.
34850
34851 2009-10-01  Eric Blake  <ebb9@byu.net>
34852
34853         getopt: bump serial number
34854         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34855         change.
34856
34857         tests: tighten link, rmdir, and remove tests
34858         * tests/test-link.h (includes): No need to use <config.h> here.
34859         Clean up if directory hard link was created, otherwise test for
34860         trailing '.'.
34861         * tests/test-linkat.c (main): Simplify.
34862         * tests/test-remove.c (main): Enhance test for trailing '.'.
34863         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34864
34865 2009-10-01  Jim Meyering  <meyering@redhat.com>
34866
34867         maint.mk: requiring "make major" was annoying, for a "minor" release.
34868         What is intended is "stable", to contrast with alpha and beta,
34869         so require "make stable", not "make major".
34870         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34871         (get_tool_versions): Likewise.
34872         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34873
34874 2009-09-30  Ben Pfaff  <blp@gnu.org>
34875
34876         Fix broken build of replacement for Windows tmpfile().
34877         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34878         flags argument added along with the 'mkostemp' module.
34879
34880 2009-09-28  Bruno Haible  <bruno@clisp.org>
34881
34882         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34883         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34884         to 'remove_elt'.
34885         (gl_list_remove): Update.
34886         * lib/gl_list.c (gl_list_remove): Update.
34887         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34888         to 'remove_elt'.
34889         (gl_oset_remove): Update.
34890         * lib/gl_list.c (gl_oset_remove): Update.
34891         Reported by Eric Blake.
34892
34893 2009-09-28  Eric Blake  <ebb9@byu.net>
34894
34895         doc: mention yet more cygwin 1.7 status
34896         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34897         cygwin.
34898         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34899         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34900
34901         argp: fix test failure
34902         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34903         that are not upper-case.  Pass correct range to tolower.
34904
34905 2009-09-27  Jim Meyering  <meyering@redhat.com>
34906
34907         test-yesno: work around sparc-dash here-document infelicity
34908         Without this change, the literal \177 byte in a here document
34909         would make dash 0.5.5.1-3 access uninitialized memory.
34910         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34911         Instead, use a marker, "@", and filter through tr to create the desired
34912         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34913
34914 2009-09-27  Bruno Haible  <bruno@clisp.org>
34915
34916         Disable untested support for new flavours of ACLs on AIX.
34917         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34918         progress.
34919         * lib/set-mode-acl.c (qset_acl): Likewise.
34920
34921 2008-12-07  Bruno Haible  <bruno@clisp.org>
34922
34923         Add support for new flavours of ACLs on AIX. (Untested.)
34924         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34925         (file_has_acl): Add support for newer AIX.
34926         * lib/set-mode-acl.c (qset_acl): Likewise.
34927         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34928         Rainer Tammer <tammer@tammer.net>.
34929
34930 2009-09-26  Eric Blake  <ebb9@byu.net>
34931
34932         argp: fix compilation of getopt
34933         * lib/getopt.in.h (includes): Use different guard than glibc.
34934         Reported by Sergey Poznyakoff.
34935
34936         doc: mention more cygwin 1.7 status
34937         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34938         bug.
34939         * doc/posix-functions/execl.texi (execl): Likewise.
34940         * doc/posix-functions/execle.texi (execle): Likewise.
34941         * doc/posix-functions/execlp.texi (execlp): Likewise.
34942         * doc/posix-functions/execv.texi (execv): Likewise.
34943         * doc/posix-functions/execve.texi (execve): Likewise.
34944         * doc/posix-functions/execvp.texi (execvp): Likewise.
34945         * doc/glibc-functions/canonicalize_file_name.texi
34946         (canonicalize_file_name): Cygwin 1.7 now provides this.
34947         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34948         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34949         on AT_SYMLINK_NOFOLLOW.
34950
34951 2009-09-24  Eric Blake  <ebb9@byu.net>
34952
34953         test-linkat: make test more robust
34954         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34955
34956         getopt: fix inclusion guards for cygwin
34957         * modules/getopt-posix (Depends-on): Add include-next.
34958         (Makefile.am): Substitute more items in replacement header.
34959         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34960         <getopt.h>.
34961         * lib/getopt.in.h (includes): Use split inclusion guard, and
34962         prefer <getopt.h> over include <unistd.h> when one is present.
34963         (option): Also override name of 'struct option'.
34964
34965         same-inode: revert prior change; it is not yet ready
34966         * NEWS: Undo mention of this change.
34967         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34968         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34969         * lib/cycle-check.c (cycle_check): Likewise.
34970         * lib/same.c (same_name): Likewise.
34971         * lib/at-func2.c (at_func2): Likewise.
34972
34973 2009-09-23  Eric Blake  <ebb9@byu.net>
34974
34975         linkat: new module
34976         * modules/linkat: New file.
34977         * lib/at-func2.c (at_func2): Likewise.
34978         * lib/linkat.c (linkat): Likewise.
34979         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34980         * lib/openat-priv.h (at_func2): Add declaration.
34981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34982         * modules/unistd (Makefile.am): Substitute them.
34983         * lib/unistd.in.h (linkat): Declare it.
34984         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34985         * doc/posix-functions/linkat.texi (linkat): Likewise.
34986         * doc/posix-functions/link.texi (link): Tweak wording.
34987         * tests/test-link.c (main): Move guts...
34988         * tests/test-link.h (test_link): ...into new file.
34989         * modules/linkat-tests: New test.
34990         * tests/test-linkat.c: Likewise.
34991         * modules/link-tests (Files): Ship new file.
34992         (Depends-on): Add stdbool.
34993
34994         dirname: add library-safe mdir_name
34995         * lib/dirname.h (mdir_name): New prototype.
34996         * lib/dirname.c (dir_name): Move guts...
34997         (mdir_name): ...to new function that avoids xalloc_die.
34998
34999         fchdir: another mingw fix
35000         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35001         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35002         on mingw (where it has not yet been ported), and make it optional
35003         elsewhere.
35004         (_gl_register_fd): Use it.
35005
35006         same-inode: make SAME_INODE tri-state, to port to mingw
35007         * NEWS: Mention this change.
35008         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35009         st_ino always being 0.
35010         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35011         * lib/cycle-check.c (cycle_check): Likewise.
35012         * lib/same.c (same_name): Likewise.
35013
35014         lstat: avoid mingw compilation error
35015         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35016         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35017         lstat ourselves.
35018         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35019         was adequate.
35020         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35021         the checks for lstat.
35022         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35023
35024         link: fix test failure on Solaris 9
35025         * lib/link.c (rpl_link): Don't assume link will catch bogus
35026         trailing slash on source.
35027
35028         test-symlinkat: enhance test
35029         * tests/test-readlink.c (main): Move guts...
35030         * tests/test-readlink.h (test_readlink): ...into new file.
35031         * tests/test-symlink.c (main): Move guts...
35032         * tests/test-symlink.h (test_symlink): ...into new file.
35033         * tests/test-symlinkat.c (main): Use new files for further
35034         coverage.
35035         (do_symlink, do_readlink): New helper functions.
35036         * modules/symlink-tests (Files): Ship new file.
35037         (Depends-on): Add stdbool.
35038         * modules/readlink-tests (Files): Ship new file.
35039         (Depends-on): Add stdbool.
35040         * modules/symlinkat-tests (Files): Use new files.
35041
35042 2009-09-23  Eric Blake  <ebb9@byu.net>
35043
35044         readlink: document portability issue with symlink length
35045         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35046         systems have bogus st_size on symlinks, and mention the
35047         areadlink-with-size module.
35048         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35049         * doc/posix-functions/readlink.texi (readlink): Mention the
35050         areadlink module, and ERANGE failure.
35051         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35052         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35053
35054         readlink: fix Solaris 9 bug with trailing slash
35055         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35056         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35057         * doc/posix-functions/readlink.texi (readlink): Document this.
35058         * modules/readlink-tests: New test.
35059         * tests/test-readlink.c: Likewise.
35060
35061         readlink: fix cygwin 1.5.x bug with return type
35062         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35063         * lib/unistd.in.h (readlink): Use ssize_t.
35064         * lib/readlink.c (readlink): Likewise.
35065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35066         * modules/unistd (Makefile.am): Substitute it.
35067         * lib/unistd.in.h (readlink): Declare replacement.
35068         * doc/posix-functions/readlink.texi (readlink): Document this.
35069
35070         symlink: use throughout gnulib
35071         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35072         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35073         symlink is not used.
35074         * modules/symlinkat (Depends-on): Add symlink.
35075         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35076         * modules/canonicalize-tests (Depends-on): Likewise.
35077         * modules/lstat-tests (Depends-on): Likewise.
35078         * modules/openat-tests (Depends-on): Likewise.
35079         * modules/remove-tests (Depends-on): Likewise.
35080         * modules/rmdir-tests (Depends-on): Likewise.
35081         * modules/unlink-tests (Depends-on): Likewise.
35082         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35083         * tests/test-canonicalize.c (symlink): Likewise.
35084         * tests/test-fstatat.c (symlink): Likewise.
35085         * tests/test-lstat.c (symlink): Likewise.
35086         * tests/test-remove.c (symlink): Likewise.
35087         * tests/test-rmdir.c (symlink): Likewise.
35088         * tests/test-unlink.c (symlink): Likewise.
35089         * tests/test-unlinkat.c (symlink): Likewise.
35090
35091         symlink: new module, for Solaris 9 bug
35092         * modules/symlink: New file.
35093         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35094         * lib/symlink.c: Likewise.
35095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35096         * modules/unistd (Makefile.am): Substitute them.
35097         * lib/unistd.in.h (symlink): Declare replacement.
35098         * MODULES.html.sh (File system functions): Mention it.
35099         * doc/posix-functions/symlink.texi (symlink): Likewise.
35100         * modules/symlink-tests: New test.
35101         * tests/test-symlink.c: Likewise.
35102
35103 2009-09-23  Bruno Haible  <bruno@clisp.org>
35104
35105         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35106         when needed.
35107         Test case: gnulib-tool --import --with-tests atexit inttypes.
35108         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35109
35110 2009-09-23  Bruno Haible  <bruno@clisp.org>
35111
35112         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35113         subcommand, not in a subshell.
35114
35115 2009-09-22  Eric Blake  <ebb9@byu.net>
35116
35117         unistd: sort replacement declarations
35118         * lib/unistd.in.h: Sort declarations.
35119
35120         open, openat: minor optimization
35121         * lib/open.c (open): If open succeeded, len is non-zero.
35122         * lib/openat.c (rpl_openat): Likewise.
35123
35124         link-follow: ensure correct result
35125         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35126         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35127         distinguish between possible failures.
35128
35129 2009-09-21  Eric Blake  <ebb9@byu.net>
35130
35131         fts: avoid compiler warning
35132         * lib/fts.c (dirent_inode_sort_may_be_useful)
35133         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35134
35135 2009-09-19  Bruno Haible  <bruno@clisp.org>
35136
35137         * lib/progreloc.c (canonicalize_file_name): New declaration.
35138
35139 2009-09-19  Eric Blake  <ebb9@byu.net>
35140
35141         link: fix quoting
35142         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35143
35144         openat: fix openat bugs on Solaris 9
35145         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35146         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35147         * modules/openat (Depends-on): Add open.
35148         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35149         * modules/fcntl-h (Makefile.am): Substitute it.
35150         * lib/fcntl.in.h (openat): Declare replacement.
35151         * doc/posix-functions/openat.texi (openat): Document this.
35152
35153         openat: move fstatat and unlinkat into correct files
35154         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35155         compiled.
35156         * lib/openat.c (fstatat, unlinkat): Move...
35157         * lib/fstatat.c (fstatat): ...into correct files.
35158         * lib/unlinkat.c (unlinkat): Likewise.
35159
35160         openat: fix unlinkat bugs on Solaris 9
35161         * lib/unlinkat.c (unlinkat): New file.
35162         * modules/openat (Depends-on): Add unlink.
35163         (Files): Distribute it.
35164         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35165         trailing slash behavior is broken.
35166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35167         * modules/unistd (Makefile.am): Substitute it.
35168         * lib/unistd.in.h (unlinkat): Declare replacement.
35169         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35170
35171         openat: fix fstatat bugs on Solaris 9
35172         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35173         stat.
35174         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35175
35176         test-unlinkat: enhance test, to expose Solaris 9 bug
35177         * tests/test-unlink.c (main): Factor guts...
35178         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35179         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35180         * tests/test-rmdir.c (main): Adjust caller.
35181         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35182         (unlinker): New helper function.
35183         (rmdirat): Enhance check.
35184         * modules/rmdir-tests (Depends-on): Add stdbool.
35185         * modules/unlink-tests (Depends-on): Likewise.
35186         (Files): Add test-unlink.h.
35187         * modules/openat-tests (Files): Likewise.
35188         (Depends-on): Add unlinkdir.
35189
35190         test-fstatat: new test, to expose Solaris 9 bugs
35191         * tests/test-stat.c (main): Factor guts...
35192         * tests/test-stat.h (test_stat_func): ...into new file.
35193         * tests/test-lstat.c (main): Factor guts...
35194         * tests/test-lstat.h (test_lstat_func): ...into new file.
35195         * tests/test-fstatat.c: New file.
35196         * modules/stat-tests (Files): Add test-stat.h.
35197         * modules/lstat-tests (Files): Add test-lstat.h.
35198         (Depends-on): Add stdbool.
35199         * modules/openat-tests (Depends-on): Add pathmax.
35200         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35201         (Makefile.am): Run new test.
35202
35203         remove: new module, for mingw and Solaris 9 bugs
35204         * modules/remove: New file.
35205         * lib/remove.c: Likewise.
35206         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35208         * modules/stdio (Makefile.am): Use them.
35209         * lib/stdio.in.h (remove): Declare replacement.
35210         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35211         * doc/posix-functions/remove.texi (remove): Likewise.
35212         * modules/remove-tests: New test.
35213         * tests/test-remove.c: Likewise.
35214
35215         unlink: new module, for Solaris 9 bug
35216         * modules/unlink: New file.
35217         * lib/unlink.c: Likewise.
35218         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35220         * modules/unistd (Makefile.am): Use them.
35221         * lib/unistd.in.h (stat): Declare replacement.
35222         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35223         * doc/posix-functions/unlink.texi (unlink): Likewise.
35224         * modules/unlink-tests: New test.
35225         * tests/test-unlink.c: Likewise.
35226
35227         lstat: fix Solaris 9 bug
35228         * lib/lstat.c (lstat): Also check for trailing slash on
35229         non-symlink, non-directories.  Use stat module to simplify logic.
35230         * doc/posix-functions/lstat.texi (lstat): Document it.
35231         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35232         (configure.ac): Check for symlink.
35233         * tests/test-lstat.c (main): Add more tests.
35234
35235         stat: add as dependency to other modules
35236         * modules/chown (Depends-on): Add stat.
35237         * modules/euidaccess (Depends-on): Likewise.
35238         * modules/fchdir (Depends-on): Likewise.
35239         * modules/isdir (Depends-on): Likewise.
35240         * modules/link (Depends-on): Likewise.
35241         * modules/lstat (Depends-on): Likewise.
35242         * modules/mkdir-p (Depends-on): Likewise.
35243         * modules/modechange (Depends-on): Likewise.
35244         * modules/open (Depends-on): Likewise.
35245         * modules/readlink (Depends-on): Likewise.
35246         * modules/same (Depends-on): Likewise.
35247
35248         stat: fix Solaris 9 bug
35249         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35250         slash.
35251         * lib/stat.c (rpl_stat): Work around it.
35252         * doc/posix-functions/stat.texi (stat): Update documentation.
35253
35254         stat: new module, for mingw bug
35255         * modules/stat: New file.
35256         * lib/stat.c: Likewise.
35257         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35258         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35259         * modules/sys_stat (Makefile.am): Use them.
35260         * lib/sys_stat.in.h (stat): Declare replacement.
35261         * lib/openat.c (fstatat): Deal with lstat and stat being function
35262         macros.
35263         * modules/openat (Depends-on): Add inline.
35264         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35265         * doc/posix-functions/stat.texi (stat): Likewise.
35266         * modules/stat-tests: New test.
35267         * tests/test-stat.c: Likewise.
35268
35269 2009-09-19  Jim Meyering  <meyering@redhat.com>
35270
35271         syntax-check: detect unnecessary inclusion of canonicalize.h
35272         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35273
35274 2009-09-19  Eric Blake  <ebb9@byu.net>
35275
35276         canonicalize-lgpl: adjust clients to use correct header
35277         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35278         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35279         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35280         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35281         * lib/progreloc.c (includes): Likewise.
35282
35283 2009-09-19  Jim Meyering  <meyering@redhat.com>
35284
35285         test-posixtm.c: correct a comment
35286         * tests/test-posixtm.c: Correct first-line comment.
35287         Spotted by Eric Blake.
35288
35289 2009-09-16  Jim Meyering  <meyering@redhat.com>
35290
35291         posixtm-tests: make T const-correct; add a test case
35292         * tests/test-posixtm.c (T): Declare const.
35293         Add a test for -(2^31+1).
35294         Remove useless can-succeed-only-in-2002 test.
35295
35296         posixtm-tests: adjust the sole failing test
35297         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35298         expected output matches what mktime now produces.  Cross-checked via
35299         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35300
35301         posixtm: move #ifdef'd tests into a new module
35302         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35303         * tests/test-posixtm.c: ... this new file.
35304         * modules/posixtm-tests: New module.
35305
35306 2009-09-19  Eric Blake  <ebb9@byu.net>
35307
35308         openat: simplify use of at-func.c
35309         * lib/at-func.c (includes): Include prerequisites here, to
35310         simplify requirements on client files.
35311         * lib/openat-priv.h: Add double-inclusion guard.
35312         * lib/faccessat.c (includes): Simplify.
35313         * lib/fchmodat.c (includes): Likewise.
35314         * lib/fchownat.c (includes): Likewise.
35315         * lib/mkdirat.c (includes): Likewise.
35316         * lib/mkfifoat.c (includes): Likewise.
35317         * lib/symlinkat.c (includes): Likewise.
35318
35319         openat: allow return of fd 0
35320         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35321         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35322         unistd-safer.
35323         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35324         <fcntl.h>; this module does not leak fds.
35325         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35326         must be allowed to return 0, leaving openat_safer to add the
35327         safety.
35328         (openat_permissive): Avoid writing to just-opened fd 2 if
35329         restoring the current directory fails.
35330         * lib/openat-die.c (openat_restore_fail): Add comment.
35331         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35332         (save_cwd): Guarantee safe fd, but without use of open_safer.
35333         * tests/test-openat.c: New test.
35334         * modules/openat-tests (Files, Makefile.am): Distribute and build
35335         new file.
35336
35337         relocatable-prog-wrapper: fix build
35338         * modules/relocatable-prog-wrapper (Files): Update name of
35339         canonicalize m4 file, broken on 2009-09-17.
35340         Reported by emad hajjar <aleppos@hotmail.com>.
35341
35342 2009-09-19  Bruno Haible  <bruno@clisp.org>
35343
35344         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35345         * lib/safe-alloc.c: Likewise.
35346         Reported by Ian Beckwith <ianb@erislabs.net>.
35347
35348 2009-09-18  Bruno Haible  <bruno@clisp.org>
35349
35350         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35351         Reported by <erobles@sensacd.com.mx>.
35352
35353 2009-09-17  Eric Blake  <ebb9@byu.net>
35354
35355         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35356         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35357         slashes when checking if last component is missing.
35358         * tests/test-canonicalize.c (main): Test this.
35359
35360         canonicalize, canonicalize-lgpl: honor // if distinct from /
35361         * modules/canonicalize (Files): Add double-slash-root.m4.
35362         * modules/canonicalize-lgpl (Files): Likewise.
35363         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35364         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35365         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35366         fallback definition.
35367         (canonicalize_filename_mode): Use it to protect //.
35368         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35369         (__realpath): Likewise.
35370         * tests/test-canonicalize.c (main): Test this.
35371         * tests/test-canonicalize-lgpl.c (main): Likewise.
35372         * modules/canonicalize-tests (Depends-on): Add same-inode.
35373         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35374
35375         canonicalize-lgpl: fix glibc bug with trailing slash
35376         * m4/canonicalize-lgpl.m4: Move contents...
35377         * m4/canonicalize.m4: ...here.
35378         (gl_CANONICALIZE_LGPL): Factor realpath check...
35379         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35380         glibc 2.3.5 bug, fixed 2005-04-27.
35381         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35382         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35383         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35384         * modules/canonicalize-lgpl (Files): Manage file rename.
35385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35386         * modules/stdlib (Makefile.am): Substitute witness.
35387         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35388         is needed.
35389         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35390         replacement is required.
35391         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35392         * doc/glibc-functions/canonicalize_file_name.texi
35393         (canonicalize_file_name): Document this.
35394         * doc/posix-functions/realpath.texi (realpath): Likewise.
35395
35396         canonicalize-lgpl: reject non-directory with trailing slash
35397         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35398         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35399         catches failures in glibc 2.3.5.
35400         * tests/test-canonicalize.c (main): Likewise.
35401
35402         canonicalize-lgpl: use native realpath if it works
35403         * lib/canonicalize-lgpl.c (realpath): Guard with
35404         FUNC_REALPATH_WORKS.
35405         * lib/stdlib.in.h (realpath): Make declaration optional based on
35406         HAVE_REALPATH.
35407         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35408         native realpath works.
35409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35410         * modules/stdlib (Makefile.am): Substitute witness.
35411
35412         canonicalize, canonicalize-lgpl: use <stdlib.h>
35413         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35414         (Include): Mention <stdlib.h>.
35415         (configure.ac): Mention functions we provide.
35416         * modules/canonicalize (configure.ac): Likewise.
35417         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35418         realpath if canonicalize_file_name is missing.
35419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35420         * modules/stdlib (Makefile.am): Substitute witnesses.
35421         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35422         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35423         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35424         * NEWS: Document this.
35425         * doc/glibc-functions/canonicalize_file_name.texi
35426         (canonicalize_file_name): Likewise.
35427         * doc/posix-functions/realpath.texi (realpath): Likewise.
35428         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35429
35430         test-canonicalize: consolidate into single C program
35431         * tests/test-canonicalize.sh: Delete; move setup into...
35432         * tests/test-canonicalize.c (main): ...the program, making it
35433         easier to run in debugger.  Add some tests.
35434         * modules/canonicalize-tests (Files): Remove unused file.
35435         (Depends-on): Add progname.
35436         (configure.ac, Makefile.am): Simplify.
35437
35438         test-canonicalize-lgpl: consolidate into single C program
35439         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35440         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35441         easier to run in debugger.  Add some tests.
35442         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35443         (configure.ac, Makefile.am): Simplify.
35444
35445         canonicalize: avoid resolvepath
35446         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35447         unnecessary checks.
35448         * lib/canonicalize.c (includes): Simplify.
35449         (canonicalize_file_name): Drop resolvepath implementation.
35450         * modules/canonicalize (Depends-on): Drop filenamecat.
35451
35452         canonicalize: don't lose errno
35453         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35454         over calls to free.
35455
35456         canonicalize: simplify errno handling
35457         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35458         assignment.
35459
35460         canonicalize, canonicalize-lgpl: update module dependencies
35461         * modules/canonicalize (Depends-on): Add extensions, lstat,
35462         pathmax, stdlib.
35463         (Files): Drop pathmax.h.
35464         (configure.ac): Adjust macro name.
35465         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35466         lstat, stdlib, sys_stat.
35467         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35468         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35469         extensions.
35470         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35471         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35472         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35473         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35474         declaration, if available.
35475         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35476         we can rely on the readlink module.
35477         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35478         (includes): Use <unistd.h> unconditionally.
35479
35480 2009-09-17  Eric Blake  <ebb9@byu.net>
35481
35482         maint: make Include sections of modules consistent
35483         * modules/alloca: Use only header name; no need to list #include.
35484         * modules/alloca-opt: Likewise.
35485         * modules/arpa_inet: Likewise.
35486         * modules/canon-host: Likewise.
35487         * modules/configmake: Likewise.
35488         * modules/dirent: Likewise.
35489         * modules/eealloc: Likewise.
35490         * modules/environ: Likewise.
35491         * modules/fchdir: Likewise.
35492         * modules/fcntl: Likewise.
35493         * modules/fcntl-h: Likewise.
35494         * modules/gethrxtime: Likewise.
35495         * modules/gettime: Likewise.
35496         * modules/ignore-value: Likewise.
35497         * modules/inet_ntop: Likewise.
35498         * modules/inet_pton: Likewise.
35499         * modules/inttypes: Likewise.
35500         * modules/isnand-nolibm: Likewise.
35501         * modules/isnanf-nolibm: Likewise.
35502         * modules/mbchar: Likewise.
35503         * modules/mbfile: Likewise.
35504         * modules/mbiter: Likewise.
35505         * modules/mbuiter: Likewise.
35506         * modules/netdb: Likewise.
35507         * modules/netinet_in: Likewise.
35508         * modules/nproc: Likewise.
35509         * modules/pagealign_alloc: Likewise.
35510         * modules/poll: Likewise.
35511         * modules/printf-frexp: Likewise.
35512         * modules/pthread: Likewise.
35513         * modules/putenv: Likewise.
35514         * modules/random_r: Likewise.
35515         * modules/relocatable-prog: Likewise.
35516         * modules/search: Likewise.
35517         * modules/select: Likewise.
35518         * modules/selinux-h: Likewise.
35519         * modules/settime: Likewise.
35520         * modules/signal: Likewise.
35521         * modules/size_max: Likewise.
35522         * modules/socklen: Likewise.
35523         * modules/ssize_t: Likewise.
35524         * modules/stdarg: Likewise.
35525         * modules/stdbool: Likewise.
35526         * modules/stddef: Likewise.
35527         * modules/stdint: Likewise.
35528         * modules/stdio: Likewise.
35529         * modules/stdlib: Likewise.
35530         * modules/string: Likewise.
35531         * modules/strings: Likewise.
35532         * modules/sys_file: Likewise.
35533         * modules/sys_ioctl: Likewise.
35534         * modules/sys_select: Likewise.
35535         * modules/sys_socket: Likewise.
35536         * modules/sys_stat: Likewise.
35537         * modules/sys_time: Likewise.
35538         * modules/sys_times: Likewise.
35539         * modules/sys_utsname: Likewise.
35540         * modules/sys_wait: Likewise.
35541         * modules/sysexits: Likewise.
35542         * modules/time: Likewise.
35543         * modules/times: Likewise.
35544         * modules/tmpfile: Likewise.
35545         * modules/trim: Likewise.
35546         * modules/unistd: Likewise.
35547         * modules/wchar: Likewise.
35548         * modules/wctype: Likewise.
35549
35550 2009-09-17  Bruno Haible  <bruno@clisp.org>
35551
35552         Make getdate.y compile on QNX and NetBSD 5 / i386.
35553         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35554         TIME_T_FITS_IN_LONG_INT.
35555         * lib/getdate.y (long_time_t): New type.
35556         (relative_time): Change type of 'seconds' field to long_time_t.
35557         (get_date): Update types of local variables. Check against overflow
35558         during conversion from long_time_t to time_t.
35559         Reported by Matt Kraai <kraai@ftbfs.org>
35560         and Hasso Tepper <hasso@netbsd.org>.
35561
35562 2009-09-17  Bruno Haible  <bruno@clisp.org>
35563
35564         * modules/COPYING: Update copyright years.
35565         * modules/README: Likeiwse.
35566         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35567         Reported by Ian Beckwith <ianb@erislabs.net>.
35568
35569 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35570
35571         * users.txt: Update references for gnuit package.
35572
35573 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35574
35575         * m4/getdelim.m4: Fix typo in copyright line.
35576
35577 2009-09-17  Bruno Haible  <bruno@clisp.org>
35578
35579         * lib/atoll.c: Use the standard header with GPL copyright.
35580         * lib/argz.in.h: Likewise.
35581         * lib/glob.c: Likewise.
35582         * lib/glob-libc.h: Likewise.
35583         * lib/random_r.c: Likewise.
35584         * lib/siglist.h: Likewise.
35585         * lib/strsignal.c: Likewise.
35586         Reported by Ian Beckwith <ianb@erislabs.net>.
35587
35588 2009-09-17  Eric Blake  <ebb9@byu.net>
35589
35590         rmdir: ensure correct dependency order
35591         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35592
35593 2009-09-17  Bruno Haible  <bruno@clisp.org>
35594
35595         Disable assertion that fails on NetBSD 5 / i386.
35596         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35597         Reported by Sam Steingold <sds@gnu.org>
35598         and Hasso Tepper <hasso@netbsd.org>.
35599
35600 2009-09-16  Eric Blake  <ebb9@byu.net>
35601
35602         unlinkdir: port to mingw
35603         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35604         on which no one can unlink a directory.
35605
35606         stdlib: sort witness names
35607         * modules/stdlib (Makefile.am): Sort replacements.
35608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35609         * lib/stdlib.in.h: Likewise.
35610
35611         parse-duration-tests: avoid link failure
35612         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35613         LIBINTL.
35614         Reported by Tom G. Christensen.
35615
35616         openat-tests: ensure unlinkat behaves like rmdir
35617         * tests/test-rmdir.c (main): Factor guts...
35618         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35619         * modules/rmdir-tests (Files): Ship new file.
35620         * modules/openat-tests: New test.
35621         * tests/test-unlinkat.c: Likewise.
35622
35623         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35624         * modules/rmdir-errno (Status, Notice): Now obsolete.
35625
35626         rmdir: work around cygwin 1.5.x and mingw bugs
35627         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35628         * lib/rmdir.c (rmdir): Work around it.
35629         * modules/rmdir (Status, Notice): No longer obsolete.
35630         (Files): Add dos.m4.
35631         (Depends-on): Add unistd.
35632         (configure.ac): Set witnesses.
35633         (License): Relax to LGPLv2+.
35634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35635         * modules/unistd (Makefile.am): Substitute witnesses.
35636         * lib/unistd.in.h (rmdir): Declare replacement.
35637         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35638         * modules/rmdir-tests: New tests.
35639         * tests/test-rmdir.c: Likewise.
35640
35641 2009-09-15  Eric Blake  <ebb9@byu.net>
35642
35643         fchdir: improve use of replacement functions
35644         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35645         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35646         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35647         REPLACE_CLOSEDIR.
35648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35649         * modules/sys_stat (Makefile.am): Substitute correct witness.
35650         * modules/dirent (Makefile.am): Likewise.
35651         * modules/unistd (Makefile.am): Likewise.
35652         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35653         * lib/unistd.in.h (dup): Likewise.
35654         * lib/sys_stat.in.h (fstat): Likewise.
35655
35656         maint: ignore gnulib-tool temp files
35657         * .gitignore: Ignore files created during gnulib-tool --test.
35658
35659 2009-09-13  Jim Meyering  <meyering@redhat.com>
35660
35661         posixtm: don't reject a time that specify "60" as the number of seconds
35662         * lib/posixtm.c (posixtime): The code to reject invalid dates
35663         would also reject a time specified with the .60 suffix.
35664         But POSIX allows that, in order to accommodate leap seconds.
35665         So don't reject it.
35666         (main): Adjust tests accordingly.
35667         * modules/posixtm (Depends-on): Add stpcpy.
35668
35669 2009-09-11  Jim Meyering  <meyering@redhat.com>
35670
35671         announce-gen: include [$release_type] in emitted Subject:
35672         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35673         e.g., [stable] in the emitted Subject: line.
35674
35675 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35676
35677         Remove obsolete macros from several modules.
35678         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35679         obsolete Autoconf macros with their modern counterparts.
35680         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35681         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35682         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35683         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35684         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35685         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35687         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35688         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35689         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35690         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35691         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35692         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35693         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35694         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35695         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35696         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35697         * m4/time_r.m4 (gl_TIME_R): Likewise.
35698         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35699         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35700         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35701
35702         Fix copyright header in build-aux scripts.
35703         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35704         recommendation.
35705         * build-aux/ncftpput-ftp: Likewise.
35706         * build-aux/update-copyright: Likewise.
35707
35708 2009-09-09  Eric Blake  <ebb9@byu.net>
35709
35710         test-link: allow Linux choice of errno
35711         * tests/test-link.c (main): Relax test for alternate error.
35712
35713         strndup: fix improper m4 caching
35714         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35715         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35716         (gl_PREREQ_STRNDUP): Delete.
35717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35718         * modules/string (Makefile.am): Substitute it.
35719         * lib/string.in.h (strndup): Modernize prototype.
35720
35721         getcwd: port to mingw
35722         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35723         different from the POSIX assumptions made throughout the getcwd
35724         module; fortunately, the mingw getcwd does not need replacement.
35725         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35726         * modules/getcwd-tests: New test.
35727         * tests/test-getcwd.c: Likewise.
35728
35729         link: fix platform bugs
35730         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35731         * lib/link.c (link): Work around them.  Fix related mingw bug.
35732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35733         * modules/unistd (Makefile.am): Substitute it.
35734         * lib/unistd.in.h (link): Declare replacement.
35735         * doc/posix-functions/link.texi (link): Document this.
35736         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35737
35738         test-link: consolidate into single C program, test more cases
35739         * tests/test-link.sh: Delete.
35740         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35741         at least Cygwin and Solaris.
35742         * modules/link-tests (Files): Remove unused file.
35743         (Depends-on): Add errno, sys_stat.
35744         (Makefile.am): Simplify.
35745
35746 2009-09-08  Bruno Haible  <bruno@clisp.org>
35747
35748         Work around towlower, towupper bug on mingw.
35749         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35750         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35751         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35752         * doc/posix-functions/towupper.texi: Likewise.
35753         Reported by Eric Blake.
35754
35755 2009-09-08  Jim Meyering  <meyering@redhat.com>
35756
35757         build: don't try to run autoheader if we don't use it
35758         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35759         is not used in configure.ac.
35760
35761 2009-09-08  Eric Blake  <ebb9@byu.net>
35762
35763         euidaccess: fix compilation error
35764         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35765
35766         rawmemchr: relax license
35767         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35768         okay.
35769         Reported by Jim Meyering.
35770
35771         mkfifoat: new module
35772         * modules/mkfifoat: New file.
35773         * lib/mkfifoat.c: Likewise.
35774         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35775         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35776         * modules/sys_stat (Makefile.am): Use them.
35777         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35778         * MODULES.html.sh (File system functions): Mention module.
35779         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35780         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35781         * modules/mkfifoat-tests: New test.
35782         * tests/test-mkfifoat.c: Likewise.
35783
35784         strchrnul: relax license
35785         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35786         okay.
35787         Reported by Jim Meyering.
35788
35789 2009-09-08  Eric Blake  <ebb9@byu.net>
35790
35791         fstatat: fix compilation on Solaris
35792         * lib/fstatat.c (includes): Add fcntl.h.
35793         Reported by Pádraig Brady.
35794
35795 2009-09-07  Eric Blake  <ebb9@byu.net>
35796
35797         rename: modernize replacement
35798         * modules/rename (Depends-on): Add stdio.
35799         (configure.ac): Declare witness.
35800         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35801         stdio take care of replacement.
35802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35803         * modules/stdio (Makefile.am): Substitute them.
35804         * lib/stdio.in.h (rename): Declare replacement.
35805         * lib/rename.c (includes): Allow cross-compilation to non-windows
35806         machines.
35807         * doc/posix-functions/rename.texi (rename): Improve
35808         documentation.
35809
35810         stdio: sort witness names
35811         * modules/stdio (Makefile.am): Sort replacements.
35812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35813         * lib/stdio.in.h: Likewise.
35814
35815         getcwd: minor cleanups
35816         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35817         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35818
35819         openat: provide more convenience names
35820         * modules/faccessat (configure.ac): Add C witness.
35821         * lib/unistd.in.h (readlinkat): Fix typo.
35822         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35823         convenience wrappers.
35824         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35825         wrappers in syntax checks.
35826
35827 2009-09-06  Eric Blake  <ebb9@byu.net>
35828
35829         doc: fix comments in recent patches
35830         * lib/faccessat.c: Mention correct function.
35831         * lib/fchmodat.c: Likewise.
35832         * lib/fchownat.c: Likewise.
35833         * lib/symlinkat.c: Likewise.
35834         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35835         constants.
35836
35837         faccessat, symlinkat: continue cleanup of previous patch
35838         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35839         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35840         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35842         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35843         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35844         set.
35845
35846 2009-09-06  Bruno Haible  <bruno@clisp.org>
35847
35848         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35849         (fstatat): Declare if GNULIB_FSTATAT is set.
35850         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35851         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35852         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35853         * modules/fcntl-h (Files): Remove m4/openat.m4.
35854         * modules/sys_stat (Files): Remove m4/openat.m4.
35855         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35856         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35857         * modules/unistd (Files): Remove m4/openat.m4.
35858         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35859         GNULIB_OPENAT.
35860         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35861         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35862         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35863         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35864         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35865         gl_OPENAT_DEFAULTS.
35866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35867         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35868         Don't require gl_OPENAT_DEFAULTS.
35869         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35870         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35871         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35872         (gl_OPENAT_DEFAULTS): Remove macro.
35873
35874 2009-09-06  Bruno Haible  <bruno@clisp.org>
35875
35876         * modules/openat (configure.ac): Remove unneeded witness.
35877
35878 2009-09-06  Bruno Haible  <bruno@clisp.org>
35879
35880         Set errno to ENOSYS when a function is entirely unsupported.
35881         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35882         EOPNOTSUPP.
35883         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35884         * modules/chown (Depends-on): Remove errno.
35885
35886 2009-09-06  Bruno Haible  <bruno@clisp.org>
35887
35888         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35889
35890 2009-09-06  Bruno Haible  <bruno@clisp.org>
35891
35892         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35893
35894 2009-09-06  Ben Pfaff  <blp@gnu.org>
35895             Bruno Haible  <bruno@clisp.org>
35896
35897         Work around a glibc bug in strtok_r.
35898         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35899         Undefine if UNDEFINE_STRTOK_R is set.
35900         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35902         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35903         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35904         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35905         UNDEFINE_STRTOK_R.
35906         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35907
35908 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35909
35910         exclude: minor fix
35911         * lib/exclude.c: Include wctype.h
35912
35913 2009-09-06  Akim Demaille  <demaille@gostai.com>
35914
35915         bootstrap: improve error message
35916         * build-aux/bootstrap (find_tool): Upon failure, report the list
35917         of candidates.
35918         Honor the initial value of the envvar.
35919
35920 2009-09-05  Eric Blake  <ebb9@byu.net>
35921
35922         symlinkat: new module
35923         * modules/symlinkat: New file.
35924         * lib/symlinkat.c: Likewise.
35925         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35927         * modules/unistd (Makefile.am): Use them.
35928         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35929         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35930         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35931         * MODULES.html.sh (File system functions): Mention module.
35932         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35933         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35934         * modules/symlinkat-tests: New test.
35935         * tests/test-symlinkat.c: Likewise.
35936
35937         test-openat-safer: add more checks
35938         * tests/test-openat-safer.c (main): Check more code paths.
35939
35940 2009-09-05  Jim Meyering  <meyering@redhat.com>
35941
35942         syntax-check: detect unnecessary inclusion of openat.h
35943         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35944
35945 2009-09-05  Bruno Haible  <bruno@clisp.org>
35946
35947         Support towlower, towupper.
35948         * doc/posix-functions/towlower.texi: Mention module wctype.
35949         * doc/posix-functions/towupper.texi: Likewise.
35950         * lib/wctype.in.h (towlower, towupper): New functions.
35951         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35952         (ASSERT): New macro.
35953         (e): New variable.
35954         (main): Test also towlower, towupper. Test WEOF argument.
35955         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35956
35957 2009-09-05  Bruno Haible  <bruno@clisp.org>
35958
35959         Fix conversion behaviour when the input is invalid.
35960         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35961         mark occurring in first pass of indirect conversion.
35962         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35963         input.
35964         Found by clang's static analyzer.
35965
35966 2009-09-05  Bruno Haible  <bruno@clisp.org>
35967
35968         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35969         where direct conversion is possible.
35970
35971 2009-09-04  Eric Blake  <ebb9@byu.net>
35972
35973         openat: fail with ENOENT on empty name
35974         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35975         buffer.
35976
35977         link-follow: fix logic bug in prior patch
35978         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35979         reversed sense of yes and no in prior patch.  Avoid confusing
35980         compilation failure with desired semantics.
35981
35982         link-follow: accomodate mingw and cross-compilation
35983         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35984         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35985         cross-compilation results to -1, to make linkat easier to
35986         implement when cross-compiling.  Trivially support mingw.
35987         * modules/link-follow (configure.ac): Call new name.
35988         * NEWS: Mention this.
35989
35990 2009-09-03  Eric Blake  <ebb9@byu.net>
35991
35992         faccessat: compile replacement
35993         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35994         needed.
35995
35996         fts: fix compilation error
35997         * lib/fts.c (includes): Re-add "openat.h", for
35998         openat_needs_fchdir.
35999
36000         faccessat: new module
36001         * modules/faccessat: New file.
36002         * lib/faccessat.c: Likewise.
36003         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36005         * modules/unistd (Makefile.am): Use it.
36006         * lib/unistd.in.h (faccessat): Declare it.
36007         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36008         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36009         * MODULES.html.sh (File system functions): Mention it.
36010         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36011         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36012
36013         euidaccess: prefer POSIX over non-standard implementation
36014         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36015         * lib/euidaccess.c (euidaccess): Use it if available.
36016
36017         openat: make template easier to use
36018         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36019         AT_FUNC_F2 to be undefined.
36020         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36021         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36022         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36023         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36024         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36025         Likewise.
36026         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36027         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36028         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36029         Likewise.
36030
36031         openat: declare in POSIX headers
36032         * NEWS: Mention this.
36033         * modules/openat (configure.ac): Declare witnesses.
36034         (Depends-on): Add fcntl-h, sys_stat, unistd.
36035         (Include): Mention correct headers.
36036         * modules/fcntl-h (Depends-on): Add link-warning.
36037         (Files): Add openat.m4.
36038         (Makefile.am): Substitute witnesses.
36039         * modules/sys_stat (Files, Makefile.am): Likewise.
36040         * modules/unistd (Files, Makefile.am): Likewise.
36041         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36042         (gl_OPENAT_DEFAULTS): New macro.
36043         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36045         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36046         (SYS_STAT_H): Remove unused variable.
36047         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36048         * lib/fcntl--.h (includes): Remove unneeded header.
36049         * lib/openat-safer.c (includes): Likewise.
36050         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36051         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36052         appropriate headers.
36053         (__OPENAT_PREFIX): Delete.
36054         * lib/fcntl.in.h (openat): Provide declaration.
36055         (AT_FDCWD): Fix Solaris bug.
36056         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36057         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36058         * lib/fchmodat.c (includes):  Adjust to find declaration.
36059         * lib/fchownat.c (includes): Likewise.
36060         * lib/mkdirat.c (includes): Likewise.
36061         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36062         still visible.
36063
36064 2009-09-02  Eric Blake  <ebb9@byu.net>
36065
36066         errno: use consistently
36067         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36068         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36069         * lib/canonicalize.c (ELOOP): Likewise.
36070         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36071         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36072         * lib/lchown.c (EOPNOTSUPP): Likewise.
36073         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36074         * lib/savewd.c (ESTALE): Likewise.
36075         * lib/settime.c (ENOSYS): Likewise.
36076         * lib/utimens.c (ENOSYS): Likewise.
36077         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36078         * lib/chdir-safer.c (ELOOP): Likewise.
36079         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36080         * modules/c-stack (Depends-on): Add errno.
36081         * modules/canonicalize (Depends-on): Likewise.
36082         * modules/chdir-safer (Depends-on): Likewise.
36083         * modules/fdopendir (Depends-on): Likewise.
36084         * modules/inet_ntop (Depends-on): Likewise.
36085         * modules/inet_pton (Depends-on): Likewise.
36086         * modules/lchown (Depends-on): Likewise.
36087         * modules/openat (Depends-on): Likewise.
36088         * modules/savewd (Depends-on): Likewise.
36089         * modules/settime (Depends-on): Likewise.
36090         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36091
36092         fts: avoid leaking fds
36093         * modules/fts (Depends-on): Add cloexec.
36094         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36095         flag.
36096
36097         fts: make directory fds more robust
36098         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36099         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36100
36101         backupfile, chdir-long, fts, savedir: make safer
36102         * lib/backupfile.c (includes): Use "dirent--.h", since
36103         numbered_backup can write to stderr during readdir.
36104         * lib/savedir.c (includes): Likewise.
36105         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36106         emulation can write to stderr on failure.
36107         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36108         * lib/getcwd.c: Document why opendir_safer is unused.
36109         * lib/glob.c: Likewise.
36110         * lib/scandir.c: Likewise.
36111         * lib/openat-proc.c: Likewise, for open_safer.
36112         * modules/backupfile (Depends-on): Add dirent-safer.
36113         * modules/savedir (Depends-on): Likewise.
36114         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36115         * modules/chdir-long (Depends-on): Add openat-safer.
36116
36117         openat-safer: new module
36118         * modules/openat-safer: New file.
36119         * lib/openat-safer.c: Likewise.
36120         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36121         * lib/fcntl-safer.h (openat_safer): Declare.
36122         * lib/fcntl--.h (openat): Override.
36123         * MODULES.html.sh (File descriptor based I/O): Mention it.
36124         * lib/openat.h: Add double-inclusion guards.
36125         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36126         "fcntl--.h", so we can implement openat.
36127         * modules/openat-safer-tests: New test.
36128         * tests/test-openat-safer.c: New file.
36129
36130         dirent-safer: new module
36131         * modules/dirent-safer: New file.
36132         * lib/dirent--.h: Likewise.
36133         * lib/dirent-safer.h: Likewise.
36134         * lib/opendir-safer.c: Likewise.
36135         * m4/dirent-safer.m4: Likewise.
36136         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36137         * modules/dirent-safer-tests: New test.
36138         * tests/test-dirent-safer.c: New file.
36139         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36140
36141         fdopendir: optimize on mingw
36142         * lib/unistd.in.h (_gl_directory_name): New prototype.
36143         * lib/fchdir.c (_gl_directory_name): Implement it.
36144         (fchdir): Use it to simplify implementation.
36145         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36146         fchdir, when available, to avoid calling [f]chdir().
36147
36148         fdopendir: split into its own module
36149         * lib/openat.c (fdopendir): Move...
36150         * lib/fdopendir.c: ...into new file.
36151         * modules/fdopendir: New module.
36152         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36153         * modules/openat (Depends-on): Add fdopendir.
36154         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36155         fdopendir here.
36156         * modules/savedir (Depends-on): Only need fdopendir, not full
36157         openat.
36158         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36159         * lib/openat.h (fdopendir): Drop prototype.
36160         * lib/dirent.in.h (fdopendir): Provide prototype.
36161         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36162         * modules/dirent (Makefile.am): Substitute them.
36163         * MODULES.html.sh (File system functions): Mention it.
36164         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36165         * modules/fdopendir-tests: New file.
36166         * tests/test-fdopendir.c: Likewise.
36167
36168         fchdir: use more consistent macro convention
36169         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36170         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36171         REPLACE_FCHDIR, rather than relying on config.h macros.
36172         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36173         inside a single make-time REPLACE_FCHDIR block, rather than using
36174         the config.h FCHDIR_REPLACEMENT.
36175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36176         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36177         Manage fstat replacement.
36178         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36179         REPLACE_FCHDIR.
36180         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36181         (Makefile.am): Substitute REPLACE_FCHDIR.
36182         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36183         FCHDIR_REPLACEMENT.
36184         * lib/dup-safer.c (dup_safer): Likewise.
36185         * lib/dup2.c (rpl_dup2): Likewise.
36186         * lib/dup3.c (rpl_dup3): Likewise.
36187         * lib/open.c (rpl_open): Likewise.
36188
36189         fchdir: simplify error handling, and support dup3
36190         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36191         stdbool, malloc-posix, realloc-posix.
36192         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36193         (ensure_dirs_slot): Return false on allocation failure.
36194         (rpl_dup2): Delete.
36195         (_gl_register_dup): New function.
36196         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36197         (_gl_register_fd): Close fd on allocation failure.
36198         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36199         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36200         prototype.
36201         (rpl_dup2_fchdir): Delete prototype.
36202         * lib/open.c (open): Update caller.
36203         * lib/dup2.c (dup2): Track fchdir metadata.
36204         * lib/dup3.c (dup3): Likewise.
36205         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36206         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36207
36208 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36209
36210         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36211         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36212         don't pass arguments to AC_OUTPUT.
36213
36214 2009-09-02  Bruno Haible  <bruno@clisp.org>
36215
36216         * modules/mkdtemp (License): Relicense under LGPLv2+.
36217         Reported by Paolo Bonzini.
36218
36219 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36220
36221         Replace uses of obsolete autoconf macros in Jim's modules.
36222         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36223         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36224         can evoke a warning from autoconf when run with -Wobsolete
36225         enabled.  They were declared obsolete for good reasons (see
36226         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36227         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36228         should not continue using the deprecated macros.
36229         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36230         obsolete Autoconf macros with modern counterparts.
36231         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36232         * m4/dos.m4 (gl_AC_DOS): Likewise.
36233         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36234         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36235         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36236         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36237         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36238         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36239         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36240         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36241         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36242         Likewise.
36243         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36244         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36245         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36246         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36247         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36248         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36249
36250 2009-09-01  Eric Blake  <ebb9@byu.net>
36251
36252         fchdir: fix off-by-one bug in previous patch
36253         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36254         (_gl_unregister_fd): Delete useless if.
36255
36256 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36257
36258         maint.mk: sort the list of syntax-check rules
36259         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36260         easier to get a sense of progress when the rules are run sequentially
36261         and take a long time.
36262
36263 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36264
36265         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36266         * modules/netinet_in: Likewise.
36267         * modules/sys_file: Likewise.
36268         * modules/sys_ioctl: Likewise.
36269         * modules/sys_select: Likewise.
36270         * modules/sys_socket: Likewise.
36271         * modules/sys_stat: Likewise.
36272         * modules/sys_time: Likewise.
36273         * modules/sys_times: Likewise.
36274         * modules/sys_utsname: Likewise.
36275         * modules/sys_wait: Likewise.
36276
36277 2009-09-01  Jim Meyering  <meyering@redhat.com>
36278
36279         fts: help ensure that return values are not ignored
36280         * lib/fts_.h (__GNUC_PREREQ): Define.
36281         (__attribute_warn_unused_result__): Define.
36282         (fts_children, fts_close, fts_open, fts_read): Declare with
36283         __attribute_warn_unused_result__.
36284
36285         fts: fts_close now fails also when closing a dir file descriptor fails
36286         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36287         and propagate to caller, along with errno.
36288
36289         announce-gen: correct formatting in --help output
36290         * build-aux/announce-gen (usage): Move the one-line description in
36291         --help output "up", to where it belongs, just after Usage:.
36292
36293 2009-08-31  Eric Blake  <ebb9@byu.net>
36294
36295         fchdir: port to mingw
36296         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36297         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36298         opened, then use a substitute.
36299         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36300         replacement.
36301         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36302         (_gl_register_fd): No need to check stat if open already filters
36303         all directories.
36304         (fchdir): Fix error condition to match POSIX.
36305         * modules/fchdir (Depends-on): Add sys_stat.
36306         * doc/posix-functions/open.texi (open): Document the limitation.
36307         * modules/fchdir-tests: New file.
36308         * tests/test-fchdir.c: Likewise.
36309
36310         canonicalize: allow cross-testing from cygwin to mingw
36311         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36312         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36313         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36314         Likewise.
36315         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36316         target does not support symlinks.
36317         * tests/test-canonicalize-lgpl.sh: Likewise.
36318
36319         chown: avoid compilation warning on mingw
36320         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36321         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36322         mingw.
36323         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36324         * modules/chown (Depends-on): Add errno.
36325
36326 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36327
36328         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36329         command.
36330
36331 2009-08-31  Jim Meyering  <meyering@redhat.com>
36332
36333         canonicalize: remove useless initialization
36334         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36335         initialization of local, "end".
36336
36337 2009-08-30  Bruno Haible  <bruno@clisp.org>
36338
36339         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36340         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36341         ENOSYS.
36342
36343 2009-08-30  Bruno Haible  <bruno@clisp.org>
36344
36345         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36346         /usr/xpg4/bin/tr when it exists.
36347         * tests/test-pipe-filter-gi1.sh: Likewise.
36348
36349 2009-08-30  Bruno Haible  <bruno@clisp.org>
36350
36351         Work around deficient /usr/bin/id program on Solaris.
36352         * tests/test-file-has-acl.sh (ID): New variable.
36353         * tests/test-set-mode-acl.sh (ID): Likewise.
36354         * tests/test-copy-acl.sh (ID): Likewise.
36355         * tests/test-copy-file.sh (ID): Likewise.
36356
36357 2009-08-30  Bruno Haible  <bruno@clisp.org>
36358
36359         New module 'xstriconveh'.
36360         * lib/xstriconveh.h: New file.
36361         * lib/xstriconveh.c: New file.
36362         * modules/xstriconveh: New file.
36363
36364 2009-08-30  Bruno Haible  <bruno@clisp.org>
36365
36366         Make it easier to use mem_cd_iconveh.
36367         * lib/striconveh.h (iconveh_t): New type.
36368         (iconveh_open, iconveh_close): New declarations.
36369         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36370         with a single 'const iconveh_t *' argument.
36371         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36372         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36373         with a single 'const iconveh_t *' argument.
36374         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36375         * tests/test-striconveh.c (main): Update.
36376         * NEWS: Mention the change.
36377
36378 2009-08-30  Bruno Haible  <bruno@clisp.org>
36379
36380         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36381         problem.
36382
36383 2009-08-30  Bruno Haible  <bruno@clisp.org>
36384
36385         Work around iconv_open problem on Solaris.
36386         * lib/iconv_open-solaris.gperf: New file.
36387         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36388         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36389         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36390         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36391         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36392         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36393
36394 2009-08-29  Jim Meyering  <meyering@redhat.com>
36395
36396         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36397         * top/maint.mk (cvs-check): Remove target; it was just an alias
36398         to the better-named vc-diff-check.
36399         (maintainer-distcheck): Remove rule.  It was used only from
36400         the (alpha/beta/major) target, and all of its commands but one
36401         were coreutils-specific.
36402         (vc-dist): Remove rule.
36403         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36404         Run vc-diff-check, not vc-dist.
36405         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36406
36407 2009-08-27  Bruno Haible  <bruno@clisp.org>
36408
36409         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36410         of 0.
36411
36412 2009-08-27  Bruno Haible  <bruno@clisp.org>
36413
36414         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36415         compilers.
36416         * doc/func.texi: Document the SunPRO C bug.
36417
36418 2009-08-27  Bruno Haible  <bruno@clisp.org>
36419
36420         Fix link error on Solaris.
36421         * tests/test-parse-duration.c (xstrdup): Remove function.
36422
36423 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36424
36425         ignore-value: handle pointer types, too
36426         * lib/ignore-value.h (__attribute__): Remove definition.
36427         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36428         of a more concise and more-often effective "(void) i" statement.
36429         (ignore_ptr): New function to suppress warnings from functions that
36430         return pointers, and to make it explicit that one function doesn't
36431         handle all cases.
36432
36433 2009-08-25  Bruno Haible  <bruno@clisp.org>
36434
36435         dup2: work around a Linux bug.
36436         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36437         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36438         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36439         Reported by Simon Josefsson.
36440
36441 2009-08-25  Jim Meyering  <meyering@redhat.com>
36442
36443         libguestfs uses gnulib
36444         * users.txt: Add libguestfs.
36445
36446 2009-08-24  Eric Blake  <ebb9@byu.net>
36447
36448         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36449         * lib/pipe2.c (includes): Add binary-io.h.
36450         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36451
36452 2009-08-24  Bruno Haible  <bruno@clisp.org>
36453
36454         Tolerate declared but missing accept4 syscall.
36455         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36456         available.
36457         * lib/sys_socket.in.h (accept4): If the function is already present,
36458         override it.
36459         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36460         * modules/accept4 (Makefile.am): Compile accept4.c always.
36461         Reported by Paolo Bonzini and Eric Blake.
36462
36463 2009-08-23  Bruno Haible  <bruno@clisp.org>
36464
36465         New module 'accept4'.
36466         * lib/sys_socket.in.h (accept4): New declaration.
36467         * lib/accept4.c: New file.
36468         * m4/accept4.m4: New file.
36469         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36470         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36471         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36472         HAVE_ACCEPT4.
36473         * modules/accept4: New file.
36474         * doc/glibc-functions/accept4.texi: Mention the new module.
36475
36476 2009-08-24  Jim Meyering  <meyering@redhat.com>
36477
36478         progname: also set global program_invocation_name, when possible
36479         Before this change, a libtool-enabled program that calls glibc's
36480         error function would report the program name as
36481         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36482         * modules/progname (configure.ac): Check for a declaration of
36483         program_invocation_name.
36484         * lib/progname.c:  Include <errno.h>.
36485         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36486         Set program_invocation_name.
36487
36488 2009-08-23  Bruno Haible  <bruno@clisp.org>
36489
36490         * lib/dup3.c: Include <string.h>.
36491
36492 2009-08-23  Bruno Haible  <bruno@clisp.org>
36493
36494         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36495         * lib/pipe2.c (pipe2): Likewise.
36496         Suggested by Eric Blake.
36497
36498 2009-08-23  Bruno Haible  <bruno@clisp.org>
36499
36500         Tolerate declared but missing dup3 syscall.
36501         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36502         * lib/unistd.in.h (dup3): If the function is already present,
36503         override it.
36504         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36505         * modules/dup3 (Makefile.am): Compile dup3.c always.
36506         Reported by Paolo Bonzini.
36507
36508 2009-08-23  Bruno Haible  <bruno@clisp.org>
36509
36510         Tolerate declared but missing pipe2 syscall.
36511         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36512         available.
36513         * lib/unistd.in.h (pipe2): If the function is already present,
36514         override it.
36515         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36516         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36517         Reported by Paolo Bonzini.
36518
36519 2009-08-23  Bruno Haible  <bruno@clisp.org>
36520
36521         * lib/pipe2.c (pipe2): Move #ifs inside function.
36522
36523 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36524
36525         quotearg: document limitations of quote_these_too
36526         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36527         those limitations are created.
36528         * lib/quotearg.h (set_char_quoting): Document that digits and
36529         letters that are special after backslash are not permitted.
36530         (quotearg_char): Cross-reference set_char_quoting documentation.
36531
36532 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36533
36534         quotearg: implement custom_quoting_style
36535         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36536         right_quote fields.
36537         (set_custom_quoting): New public function.
36538         (quotearg_buffer_restyled): Add left_quote and right_quote
36539         arguments, handle them very much like locale quoting, and update
36540         all uses.
36541         (quotearg_n_custom): New public function.
36542         (quotearg_n_custom_mem): New public function.
36543         (quotearg_custom): New public function.
36544         (quotearg_custom_mem): New public function.
36545         * lib/quotearg.h: Prototype and document new public functions.
36546         (enum quoting_style): For escape_quoting_style and
36547         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36548         ignored even though they're otherwise like c_quoting_style.
36549         Add custom_quoting_style member and document with comparison to
36550         clocale_quoting_style.
36551         * tests/test-quotearg.c (custom_quotes): New array.
36552         (custom_results): New array.
36553         (main): Extend to test custom quoting.
36554
36555 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36556
36557         quotearg: fix right quote escaping when it's in quote_these_too
36558         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36559         quote, be sure to prepend only one backslash.
36560         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36561         (main): Test it.
36562
36563 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36564
36565         quotearg-tests: test escaping of embedded locale quotes
36566         * tests/test-quotearg.c (struct result_strings): Add member for
36567         new input.
36568         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36569         (inputs): Add new input.
36570         (results_g): Add expected results.
36571         (flag_results): Likewise.
36572         (locale_results): Likewise.
36573         (compare_strings): Check those.
36574
36575 2009-08-23  Bruno Haible  <bruno@clisp.org>
36576
36577         Tests for module 'dup3'.
36578         * modules/dup3-tests: New file.
36579         * tests/test-dup3.c: New file.
36580
36581         New module 'dup3'.
36582         * lib/unistd.in.h (dup3): New declaration.
36583         * lib/dup3.c: New file.
36584         * m4/dup3.m4: New file.
36585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36586         HAVE_DUP3.
36587         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36588         * modules/dup3: New file.
36589         * doc/glibc-functions/dup3.texi: Mention the new module.
36590
36591 2009-08-23  Bruno Haible  <bruno@clisp.org>
36592
36593         Tweak the dup2 test.
36594         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36595         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36596         the test file is still empty. Fix argument order of lseek.
36597
36598 2009-08-23  Bruno Haible  <bruno@clisp.org>
36599
36600         Avoid test link errors when the modules getopt-gnu, gettext are used.
36601         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36602         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36603
36604 2009-08-23  Bruno Haible  <bruno@clisp.org>
36605
36606         Fix getdtablesize() on mingw.
36607         * lib/getdtablesize.c (getdtablesize): Implement differently.
36608         * lib/unistd.in.h (getdtablesize): Improve comment.
36609
36610 2009-08-23  Bruno Haible  <bruno@clisp.org>
36611
36612         New module 'mkostemp'.
36613         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36614         * lib/stdlib.in.h (mksotemp): New declaration.
36615         * lib/mkostemp.c: New file, from glibc with modifications.
36616         * lib/tempname.h (GT_FILE): Remove outdated comment.
36617         (gen_tempname): Add flags argument.
36618         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36619         (__GT_FILE): Map to 1.
36620         (small_open, large_open): Remove macros.
36621         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36622         * lib/mkstemp.c (mkstemp): Update.
36623         * lib/mkdtemp.c (mkdtemp): Likewise.
36624         * m4/mkostemp.m4: New file.
36625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36626         HAVE_MKOSTEMP.
36627         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36628         HAVE_MKOSTEMP.
36629         * modules/mkostemp: New file, based on modules/mkstemp.
36630         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36631         * NEWS: Mention the change.
36632
36633 2009-08-23  Bruno Haible  <bruno@clisp.org>
36634
36635         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36636         Reported by Eric Blake.
36637
36638 2009-08-23  Bruno Haible  <bruno@clisp.org>
36639
36640         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36641         Reported by Eric Blake.
36642
36643 2009-08-23  Bruno Haible  <bruno@clisp.org>
36644
36645         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36646         * modules/pipe2 (Depends-on): Likewise.
36647
36648 2009-08-23  Eric Blake  <ebb9@byu.net>
36649
36650         fcntl-h: add O_TTY_INIT support
36651         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36652         * tests/test-fcntl-h.c (o): Test it.
36653         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36654
36655         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36656         * modules/fcntl: Move <fcntl.h> header replacement...
36657         * modules/fcntl-h: ...to new name, so as not to collide with
36658         like-named function.
36659         * tests/test-fcntl.c: Rename...
36660         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36661         * modules/fcntl-tests: Rename...
36662         * modules/fcntl-h-tests: ...to this.  Update test file name.
36663         * modules/chdir-long (Depends-on): Update clients.
36664         * modules/chdir-safer (Depends-on): Likewise.
36665         * modules/fcntl-safer (Depends-on): Likewise.
36666         * modules/fts (Depends-on): Likewise.
36667         * modules/mkancesdirs (Depends-on): Likewise.
36668         * modules/mkdir-p (Depends-on): Likewise.
36669         * modules/open (Depends-on): Likewise.
36670         * modules/savewd (Depends-on): Likewise.
36671         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36672         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36673
36674 2009-08-22  Bruno Haible  <bruno@clisp.org>
36675
36676         * modules/binary-io (License): Relicense under LGPL.
36677         * modules/pipe2 (License): Likewise.
36678
36679 2009-08-22  Bruno Haible  <bruno@clisp.org>
36680
36681         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36682         return value.
36683         * lib/pipe-filter-gi.c (filter_init): Likewise.
36684         Reported by Eric Blake.
36685
36686 2009-08-22  Bruno Haible  <bruno@clisp.org>
36687
36688         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36689         * modules/pipe (Depends-on): Add pipe2.
36690
36691 2009-08-22  Bruno Haible  <bruno@clisp.org>
36692
36693         Tests for module 'pipe2'.
36694         * modules/pipe2-tests: New file.
36695         * tests/test-pipe2.c: New file.
36696
36697         New module 'pipe2'.
36698         * lib/unistd.in.h (pipe2): New declaration.
36699         * lib/pipe2.c: New file.
36700         * m4/pipe2.m4: New file.
36701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36702         HAVE_PIPE2.
36703         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36704         * modules/pipe2: New file.
36705         * doc/glibc-functions/pipe2.texi: Mention the new module.
36706
36707 2009-08-22  Bruno Haible  <bruno@clisp.org>
36708
36709         Reference some new glibc functions.
36710         * doc/glibc-functions/accept4.texi: New file.
36711         * doc/glibc-functions/dup3.texi: New file.
36712         * doc/glibc-functions/mkostemp.texi: New file.
36713         * doc/glibc-functions/pipe2.texi: New file.
36714         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36715         (Glibc sys/socket.h): Refer to accept4.
36716         (Glibc unistd.h): Refer to dup3, pipe2.
36717         Reported by Eric Blake.
36718
36719 2009-08-22  Jim Meyering  <meyering@redhat.com>
36720             Bruno Haible  <bruno@clisp.org>
36721
36722         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36723         This makes it so packages using automake-1.11's silent-rules option
36724         can print e.g., a single "GEN    configmake.h" line, rather than
36725         the 30+ statements that perform the job.  If you want to see the
36726         actual commands, you can still run "make V=1".
36727         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36728         so that make output is abbreviated when those variables are defined
36729         appropriately.
36730         * modules/argz: Likewise.
36731         * modules/arpa_inet: Likewise.
36732         * modules/byteswap: Likewise.
36733         * modules/configmake: Likewise.
36734         * modules/dirent: Likewise.
36735         * modules/errno: Likewise.
36736         * modules/fcntl: Likewise.
36737         * modules/float: Likewise.
36738         * modules/fnmatch: Likewise.
36739         * modules/getopt-posix: Likewise.
36740         * modules/glob: Likewise.
36741         * modules/iconv_open: Likewise.
36742         * modules/inttypes: Likewise.
36743         * modules/localcharset: Likewise.
36744         * modules/locale: Likewise.
36745         * modules/math: Likewise.
36746         * modules/netdb: Likewise.
36747         * modules/netinet_in: Likewise.
36748         * modules/poll: Likewise.
36749         * modules/posix_spawnp-tests: Likewise.
36750         * modules/sched: Likewise.
36751         * modules/search: Likewise.
36752         * modules/selinux-h: Likewise.
36753         * modules/signal: Likewise.
36754         * modules/spawn: Likewise.
36755         * modules/stdarg: Likewise.
36756         * modules/stdbool: Likewise.
36757         * modules/stddef: Likewise.
36758         * modules/stdint: Likewise.
36759         * modules/stdio: Likewise.
36760         * modules/stdlib: Likewise.
36761         * modules/string: Likewise.
36762         * modules/strings: Likewise.
36763         * modules/sys_file: Likewise.
36764         * modules/sys_ioctl: Likewise.
36765         * modules/sys_select: Likewise.
36766         * modules/sys_socket: Likewise.
36767         * modules/sys_stat: Likewise.
36768         * modules/sys_time: Likewise.
36769         * modules/sys_times: Likewise.
36770         * modules/sys_utsname: Likewise.
36771         * modules/sys_wait: Likewise.
36772         * modules/sysexits: Likewise.
36773         * modules/time: Likewise.
36774         * modules/unistd: Likewise.
36775         * modules/wchar: Likewise.
36776         * modules/wctype: Likewise.
36777
36778 2009-08-22  Jim Meyering  <meyering@redhat.com>
36779
36780         announce-gen: detect write failure
36781         * build-aux/announce-gen: Add Coda at end.
36782         Remove equivalent-but-more-verbose block at top.
36783
36784 2009-08-19  Akim Demaille  <demaille@gostai.com>
36785
36786         bootstrap: --help to stdout.
36787         * bootstrap (usage): Don't send --help to stderr.
36788         Use a here doc instead of a long string.
36789
36790 2009-08-21  Eric Blake  <ebb9@byu.net>
36791
36792         test-popen-safer: split from test-popen
36793         * tests/test-popen.c (main): Move...
36794         * tests/test-popen.h: ...into new file.
36795         * tests/test-popen-safer2.c: New file.
36796         * modules/popen-tests (Files): Add test-popen.h.
36797         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36798         Suggested by Bruno Haible.
36799
36800         test-fcntl-safer: split from test-open
36801         * tests/test-open.c (main): Move...
36802         * tests/test-open.h: ...into new file.
36803         * tests/test-fcntl-safer.c: New file.
36804         * modules/open-tests (Files): Add test-open.h.
36805         * modules/fcntl-safer-tests: New file.
36806         Suggested by Bruno Haible.
36807
36808         test-fopen-safer: split from test-fopen
36809         * tests/test-fopen.c (main): Move...
36810         * tests/test-fopen.h: ...into new file.
36811         * tests/test-fopen-safer.c: New file.
36812         * modules/fopen-tests (Files): Add test-fopen.h.
36813         * modules/fopen-safer-tests: New file.
36814         Suggested by Bruno Haible.
36815
36816 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36817
36818         popen-safer: test O_CLOEXEC at run-time.
36819         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36820
36821 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36822
36823         fcntl: move more flags to the header
36824         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36825         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36826         * lib/fcntl.in.h: Do both things here.
36827
36828 2009-08-21  Jim Meyering  <meyering@redhat.com>
36829
36830         consistently remove $@-t before redirecting to it
36831         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36832         * modules/alloca-opt: Likewise.
36833         * modules/byteswap: Likewise.
36834         * modules/fnmatch: Likewise.
36835         * modules/getopt-posix: Likewise.
36836         * modules/glob: Likewise.
36837         * modules/poll: Likewise.
36838         * modules/posix_spawnp-tests: Likewise.
36839         * modules/sys_socket: Likewise.
36840         * modules/sysexits: Likewise.
36841
36842 2009-08-21  Eric Blake  <ebb9@byu.net>
36843
36844         popen: simplify access to original popen
36845         * lib/popen.c (rpl_popen): No need to worry about popen being a
36846         macro.
36847         Reported by Bruno Haible.
36848
36849 2009-08-20  Eric Blake  <ebb9@byu.net>
36850
36851         build: avoid some compiler warnings
36852         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36853         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36854         type.
36855         (new_exclude_segment, excluded_file_pattern_p)
36856         (excluded_file_name_p): Reduce scope.
36857         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36858         old-style declaration.
36859
36860 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36861
36862         * tests/test-exclude1.sh: Handle Windows EOL.
36863         * tests/test-exclude2.sh: Likewise.
36864         * tests/test-exclude3.sh: Likewise.
36865         * tests/test-exclude4.sh: Likewise.
36866         * tests/test-exclude5.sh: Likewise.
36867         * tests/test-exclude6.sh: Likewise.
36868         * tests/test-exclude7.sh: Likewise.
36869
36870 2009-08-19  Akim Demaille  <demaille@gostai.com>
36871
36872         bootstrap: find sha1sum when named gsha1sum.
36873         * bootstrap (find_tool): New.
36874         ($SHA1SUM): New.
36875         Use it.
36876
36877 2009-08-20  Jim Meyering  <meyering@redhat.com>
36878
36879         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36880         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36881         expression that converts "." in a file name to "\." in the resulting
36882         regexp.  Start with a dummy statement, so that prior shell variable
36883         definitions are expanded portably.  Reported by Simon Josefsson.
36884
36885 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36886
36887         Fix polling for writeability of a screen buffer.
36888         * lib/poll.c: Distinguish input and screen buffers for the
36889         Win32 implementation.
36890         * lib/select.c: Likewise.
36891
36892 2009-08-19  Eric Blake  <ebb9@byu.net>
36893
36894         popen-safer: prevent popen from clobbering std descriptors
36895         * modules/popen-safer: New file.
36896         * lib/popen-safer.c: Likewise.
36897         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36898         * lib/stdio--.h (popen): Provide override.
36899         * lib/stdio-safer.h (popen_safer): Provide declaration.
36900         * tests/test-popen.c (includes): Partially test this.
36901         * modules/popen-safer-tests: New file, for more tests.
36902         * tests/test-popen-safer.c: Likewise.
36903         * MODULES.html.sh (file stream based Input/Output): Mention it.
36904
36905         tests: test some of the *-safer modules
36906         * modules/fopen-safer (Depends-on): Add fopen.
36907         * modules/fcntl-safer (Depends-on): Add fcntl.
36908         * modules/stdlib-safer (Depends-on): Add stdlib.
36909         (configure.ac): Set indicator.
36910         * modules/unistd-safer (configure.ac): Likewise.
36911         * modules/tmpfile-safer (configure.ac): Likewise.
36912         (Depends-on): Add tmpfile.
36913         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36914         active.
36915         * tests/test-fopen.c (includes): Test safer versions when they are
36916         in use.
36917         * tests/test-open.c (includes): Likewise.
36918
36919         popen: fix cygwin 1.5 bug when stdin closed
36920         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36921         * modules/popen: New file.
36922         * modules/popen-tests: Likewise.
36923         * tests/test-popen.c: Likewise.
36924         * m4/popen.m4: Likewise.
36925         * lib/popen.c: Likewise.
36926         * lib/stdio.in.h (popen): New declaration.
36927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36928         * modules/stdio (Makefile.am): Likewise.
36929         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36930
36931 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36932
36933         maint.mk: give full control over update-copyright exclusions
36934         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36935         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36936         (update-copyright): Don't force inclusion of top-level
36937         ChangeLog.  Don't force exclusion of all COPYING files, but make
36938         them the default exclusion instead.
36939
36940 2009-08-16  Bruno Haible  <bruno@clisp.org>
36941
36942         Fix test failures on Solaris 10.
36943         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36944         tests when Solaris iconv() is used.
36945         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36946         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36947         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36948         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36949         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36950
36951 2009-08-16  Bruno Haible  <bruno@clisp.org>
36952
36953         Fix test failures on Solaris 10.
36954         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36955         'tr' program and pass it as first argument.
36956         * tests/test-pipe-filter-gi1.sh: Likewise.
36957         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36958         program as first argument.
36959         * tests/test-pipe-filter-gi1.c (main): Likewise.
36960
36961 2009-08-16  Eric Blake  <ebb9@byu.net>
36962
36963         fpurge: fix previous commits
36964         * modules/fpurge (Makefile.am): Make replacement conditional,
36965         partially reverting 2007-04-29 change; missed in previous
36966         attempt.
36967         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36968         is missing.
36969
36970 2009-08-16  Bruno Haible  <bruno@clisp.org>
36971
36972         Clarify fpurge's effect on the file position.
36973         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36974         * tests/test-fpurge.c (main): Make a second pass for checking the file
36975         position.
36976
36977 2009-08-16  Bruno Haible  <bruno@clisp.org>
36978
36979         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36980         declaration of fpurge is missing.
36981         * tests/test-fpurge.c (main): Check that the file has not more contents
36982         than expected. Close the file before removing it.
36983
36984 2009-08-15  Eric Blake  <ebb9@byu.net>
36985
36986         fpurge: don't wrap working cygwin implementation
36987         * lib/fpurge.c (fpurge): Fix comment typo.
36988         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36989         1.7 to avoid replacement.
36990         * tests/test-fpurge.c (main): Enhance test.
36991
36992 2009-08-15  Eric Blake  <ebb9@byu.net>
36993         and Jim Meyering  <meyering@redhat.com>
36994
36995         test-update-copyright: skip if perl is insufficient
36996         * tests/test-update-copyright.sh: Failure to run maintainer tool
36997         should not cause testsuite failure on cygwin 1.5.
36998
36999 2009-08-14  Eric Blake  <ebb9@byu.net>
37000
37001         doc: mention more functions added in cygwin 1.7.0
37002         * doc/posix-headers/limits.texi (limits.h): Update for recent
37003         cygwin additions.
37004         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37005         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37006         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37007         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37008         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37009
37010 2009-08-14  Eric Blake  <ebb9@byu.net>
37011
37012         maint.mk: simplify update-copyright rule
37013         * top/maint.mk (update-copyright-local): Delete, and document how
37014         to do it in cfg.mk instead.
37015         (update-copyright-exclude-regexp): Delete, and document how to do
37016         it in .x-update-copyright instead.
37017         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37018         exclude ChangeLog.
37019
37020 2009-08-14  Bruno Haible  <bruno@clisp.org>
37021
37022         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37023
37024 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37025
37026         maint.mk: support update-copyright-env
37027         * top/maint.mk (update-copyright-env): Define place-holder.
37028         (update-copyright): Expand $(update-copyright-env) before
37029         invoking update-copyright.
37030
37031 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37032
37033         update-copyright: implement forced reformatting
37034         * build-aux/update-copyright: Implement and document
37035         UPDATE_COPYRIGHT_FORCE.
37036         * tests/test-update-copyright.sh: Test it.
37037
37038 2009-08-14  Eric Blake  <ebb9@byu.net>
37039         and Bruno Haible  <bruno@clisp.org>
37040
37041         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37042         * tests/test-locale.c: Revert previous patch related to NULL.
37043         * tests/test-stdio.c: Likewise.
37044         * tests/test-stdlib.c: Likewise.
37045         * tests/test-string.c: Likewise.
37046         * tests/test-unistd.c: Likewise.
37047         * modules/time-tests (Depends-on): Add verify.
37048         * modules/wchar-tests (Depends-on): Likewise.
37049         * tests/test-time.c: Test for NULL compliance.
37050         * tests/test-wchar.c: Likewise.
37051         * modules/locale (Depends-on): Add stddef.
37052         * modules/stdio (Depends-on): Likewise.
37053         * modules/stdlib (Depends-on): Likewise.
37054         * modules/string (Depends-on): Likewise.
37055         * modules/time (Depends-on): Likewise.
37056         * modules/unistd (Depends-on): Likewise.
37057         * modules/wchar (Depends-on): Likewise.
37058         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37059         * lib/stdlib.in.h (includes): Likewise.
37060         * lib/string.in.h (includes): Likewise.
37061         * lib/time.in.h (includes): Likewise.
37062         * lib/unistd.in.h (includes): Likewise.
37063         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37064         replaced.
37065         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37066         * m4/stddef_h.m4: New file.
37067         * modules/stddef: Likewise.
37068         * lib/stddef.in.h: Likewise.
37069         * modules/stddef-tests: Likewise.
37070         * tests/test-stddef.c: Likewise.
37071         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37072         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37073         * doc/posix-headers/locale.texi (locale.h): Likewise.
37074         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37075         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37076         * doc/posix-headers/string.texi (string.h): Likewise.
37077         * doc/posix-headers/time.texi (time.h): Likewise.
37078         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37079         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37080
37081 2009-08-14  Eric Blake  <ebb9@byu.net>
37082
37083         doc: improve git diff of texinfo files
37084         * .gitattributes: Add rule for *.texi files, with hint on how to
37085         use it.
37086         Copied from m4, and based on a report by Bruno Haible.
37087
37088 2009-08-14  Bruno Haible  <bruno@clisp.org>
37089
37090         Disable multithread support by default on Cygwin 1.5.x for real.
37091         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37092
37093 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37094
37095         update-copyright: much ado about intervals
37096         * build-aux/update-copyright: Implement and document
37097         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37098         of copyright year intervals.
37099         Also, document UPDATE_COPYRIGHT_YEAR.
37100         * tests/test-update-copyright.sh: Test it.
37101
37102         update-copyright: convert 2-digit to 4-digit years
37103         * build-aux/update-copyright: Implement and document.
37104         * tests/test-update-copyright.sh: Update.
37105
37106 2009-08-14  Jim Meyering  <meyering@redhat.com>
37107
37108         test-exclude: avoid coreutils "make check" failure
37109         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37110         just as in test-argmatch.c.
37111
37112 2009-08-13  Eric Blake  <ebb9@byu.net>
37113
37114         test-dup2: fix bad assumption
37115         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37116         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37117
37118         test-version-etc: fix CRLF portability issue
37119         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37120         recognize \r.
37121         * tests/test-argp-version-etc-1.sh: Likewise.
37122
37123         getopt: update client modules
37124         * modules/argp (Depends-on): Use getopt-gnu.
37125         * modules/git-merge-changelog (Depends-on): Likewise.
37126         * modules/long-options (Depends-on): Likewise.
37127         * modules/xstrtol (Depends-on): Likewise.
37128
37129 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37130
37131         * tests/test-version-etc.sh: Don't fail on different
37132         project/version.  Don't fail on CRLF differences.  Rewrite to use
37133         multiple -e instead of multiple sed forks, suggested by Eric Blake
37134         <ebb9@byu.net>.
37135         * tests/test-argp-version-etc-1.sh: Likewise.
37136
37137 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37138
37139         * tests/test-version-etc.sh: Don't fail on different
37140         project/version.
37141
37142 2009-08-12  Bruno Haible  <bruno@clisp.org>
37143
37144         Tests for modules 'getopt-posix', 'getopt-gnu'.
37145         * modules/getopt-posix-tests: New file.
37146         * tests/test-getopt.c: New file.
37147         * tests/test-getopt.h: New file.
37148         * tests/test-getopt_long.h: New file.
37149
37150         New modules 'getopt-posix', 'getopt-gnu'.
37151         * modules/getopt-gnu: New file, renamed from modules/getopt.
37152         * modules/getopt-posix: New file.
37153         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37154         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37155         (gl_GETOPT): Remove macro.
37156         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37157         Disable the test against BSD systems that declare optreset. Test
37158         against mingw bug. Test against lack of support of optional arguments
37159         on many platforms.
37160         * doc/glibc-headers/getopt.texi: Update module name and list of
37161         relevant platforms.
37162         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37163         'getopt-gnu' and more portability problems.
37164         * NEWS: Mention the changes.
37165
37166 2009-08-12  Bruno Haible  <bruno@clisp.org>
37167
37168         Ensure that optarg etc. get declared by <unistd.h>.
37169         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37170         AC_USE_SYSTEM_EXTENSIONS.
37171         * modules/getopt (Depends-on): Add 'extensions'.
37172
37173 2009-08-12  Bruno Haible  <bruno@clisp.org>
37174
37175         Avoid test link errors.
37176         * modules/pipe-filter-ii-tests (Makefile.am): Define
37177         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37178         * modules/pipe-filter-gi-tests (Makefile.am): Define
37179         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37180         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37181
37182 2009-08-12  Bruno Haible  <bruno@clisp.org>
37183
37184         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37185         gl_GETOPT_SUBSTITUTE before.
37186         (gl_GETOPT): Use it.
37187         * m4/argp.m4 (gl_ARGP): Update.
37188         Reported by Sergey Poznyakoff.
37189
37190         * m4/getopt.m4: Reorder macros.
37191         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37192         (gl_GETOPT_SUBSTITUTE): Remove macro.
37193
37194 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37195
37196         Minor improvement in gitlog-to-changelog
37197
37198         * build-aux/gitlog-to-changelog: New option `--format' makes
37199         output format string configurable.
37200
37201 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37202
37203         Optimize exclude: use hash tables for non-wildcard patterns.
37204
37205         * lib/exclude.c: Include hash.h and mbuiter.h
37206         (struct exclude_pattern, exclude_segment): New data types.
37207         (struct exclude): Rewrite.
37208         (fnmatch_pattern_has_wildcards): New function.
37209         (new_exclude_segment, free_exclude_segment): New functions.
37210         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37211         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37212         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37213         * modules/exclude: Depend on hash and mbuiter.
37214
37215         * modules/exclude-tests: New file.
37216         * tests/test-exclude.c: New file.
37217         * tests/test-exclude1.sh: New file.
37218         * tests/test-exclude2.sh: New file.
37219         * tests/test-exclude3.sh: New file.
37220         * tests/test-exclude4.sh: New file.
37221         * tests/test-exclude5.sh: New file.
37222         * tests/test-exclude6.sh: New file.
37223         * tests/test-exclude7.sh: New file.
37224
37225 2009-08-12  Bruno Haible  <bruno@clisp.org>
37226
37227         Ensure that getopt() gets declared by <unistd.h>.
37228         * lib/unistd.in.h: Conditionally include getopt.h.
37229         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37230         Set GNULIB_UNISTD_H_GETOPT.
37231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37232         GNULIB_UNISTD_H_GETOPT.
37233         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37234
37235 2009-08-12  Bruno Haible  <bruno@clisp.org>
37236
37237         Clarify logic.
37238         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37239         gl_replace_getopt instead of GETOPT_H.
37240
37241 2009-08-12  Bruno Haible  <bruno@clisp.org>
37242
37243         * m4/getopt.m4: Add comments.
37244
37245 2009-08-12  Bruno Haible  <bruno@clisp.org>
37246
37247         Disable multithread support by default on Cygwin 1.5.x.
37248         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37249         set gl_use_threads=no if not specified otherwise.
37250
37251 2009-08-11  Bruno Haible  <bruno@clisp.org>
37252
37253         Avoid compilation error on NetBSD 5.0.
37254         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37255         * tests/test-stdio.c: Likewise.
37256         * tests/test-stdlib.c: Likewise.
37257         * tests/test-string.c: Likewise.
37258         * tests/test-unistd.c: Likewise.
37259         Reported by Greg Troxel <gdt@ir.bbn.com>
37260         at <https://savannah.gnu.org/support/?106973>.
37261
37262 2009-08-11  Bruno Haible  <bruno@clisp.org>
37263
37264         * modules/dup2-tests (Depends-on): Remove close.
37265
37266         Undo 2009-07-19 commit.
37267         * modules/acl-tests (Depends-on): Remove close.
37268         * modules/binary-io-tests (Depends-on): Likewise.
37269         * modules/closein-tests (Depends-on): Likewise.
37270         * modules/flock-tests (Depends-on): Likewise.
37271         * modules/fsync-tests (Depends-on): Likewise.
37272         * modules/lseek-tests (Depends-on): Likewise.
37273         * modules/pipe-tests (Depends-on): Likewise.
37274         * modules/posix_spawn-tests (Depends-on): Likewise.
37275         * modules/posix_spawnp-tests (Depends-on): Likewise.
37276         * modules/stat-time-tests (Depends-on): Likewise.
37277         * modules/yesno-tests (Depends-on): Likewise.
37278
37279 2009-08-10  Bruno Haible  <bruno@clisp.org>
37280
37281         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37282
37283 2009-08-10  Bruno Haible  <bruno@clisp.org>
37284
37285         Fix a gcc warning.
37286         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37287
37288 2009-08-10  Bruno Haible  <bruno@clisp.org>
37289
37290         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37291         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37292         not only the first time.
37293         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37294         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37295         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37296         is 1, not only the the first time.
37297
37298 2009-08-10  Bruno Haible  <bruno@clisp.org>
37299
37300         Make it possible to use module 'gethostname' without module 'close'.
37301         * lib/unistd.in.h (close): Evoke a link error only if
37302         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37304         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37305         * modules/unistd (Makefile.am): Substitute
37306         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37307         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37308         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37309         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37310         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37311         * modules/sys_ioctl (Makefile.am): Substitute
37312         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37313         * modules/socket (configure.ac): On native Windows, set
37314         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37315         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37316         Reported by Sam Steingold <sds@gnu.org>.
37317
37318 2009-08-10  Bruno Haible  <bruno@clisp.org>
37319
37320         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37321         * modules/ioctl (configure.ac): Likewise.
37322
37323 2009-08-10  Bruno Haible  <bruno@clisp.org>
37324
37325         Avoid collision between gnulib wrapper and libintl wrapper.
37326         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37327         already defined in intl/printf.c.
37328         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37329         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37330
37331 2009-08-09  Bruno Haible  <bruno@clisp.org>
37332
37333         Make <sys/select.h> really self-contained, also on Solaris 10.
37334         * lib/sys_select.in.h: Include <string.h>.
37335         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37336         Solaris 10 problem.
37337         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37338         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37339         Reported by Jim Meyering.
37340
37341 2009-08-09  Bruno Haible  <bruno@clisp.org>
37342
37343         Avoid warnings from 'aclocal' that are due to a use of macro name
37344         AM_XGETTEXT_OPTION that is not defined in automake.
37345         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37346         automake.
37347         * modules/error (configure.ac): Likewise.
37348         * modules/propername (configure.ac): Likewise.
37349         * modules/vasprintf (configure.ac): Likewise.
37350         * modules/verror (configure.ac): Likewise.
37351         * modules/xprintf (configure.ac): Likewise.
37352         * modules/xvasprintf (configure.ac): Likewise.
37353
37354 2009-08-08  Bruno Haible  <bruno@clisp.org>
37355
37356         Avoid compilation error in C++ mode.
37357         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37358         Reported by Sam Steingold <sds@gnu.org>.
37359
37360 2009-08-08  Bruno Haible  <bruno@clisp.org>
37361
37362         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37363         for the various Unix platforms.
37364         * doc/posix-headers/limits.texi: Update platforms list regarding
37365         HOST_NAME_MAX.
37366         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37367
37368 2009-08-07  Jim Meyering  <meyering@redhat.com>
37369
37370         selinux-at: fix typo in a comment
37371         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37372         Spotted by Paolo Bonzini.
37373
37374         selinux-at: remove redundant m4 code, add documentation
37375         * modules/selinux-at (configure.ac): Remove redundant code.
37376         LIB_SELINUX is already set via the dependent module, selinux-h.
37377         (Include): Add quotes around selinux-at.h.
37378         * lib/selinux-at.h: Add documentation.
37379         Reported by Bruno Haible in
37380         http://marc.info/?l=gnulib-bug&m=124958988300749
37381
37382 2009-08-07  Bruno Haible  <bruno@clisp.org>
37383
37384         Avoid link error on MacOS X 10.3 and 10.4.
37385         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37386         on non-ELF systems.
37387         * lib/argp-pv.c (argp_program_version): Likewise.
37388         Reported by Simon Josefsson.
37389
37390 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37391
37392         * tests/test-version-etc.sh: Use $EXEEXT.
37393
37394 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37395
37396         update-copyright: update documentation to point to maint.mk
37397         * build-aux/update-copyright: Here.
37398
37399 2009-08-06  Jim Meyering  <meyering@redhat.com>
37400
37401         maint.mk: support update-copyright-local
37402         * top/maint.mk (update-copyright-local): Define place-holder.
37403         (update-copyright): Depend on $(update-copyright-local).
37404
37405 2009-08-06  Jim Meyering  <meyering@redhat.com>
37406
37407         selinux-at: new module
37408         Initially written for coreutils, this module will soon be
37409         used by findutils, too.
37410         * MODULES.html.sh [Misc]: Add selinux-at.
37411         * lib/selinux-at.h: New file, from coreutils.
37412         * lib/selinux-at.c: Likewise.
37413         * modules/selinux-at: Likewise.
37414         (License): Change from LGPL to GPL, since it depends
37415         on the GPL'd openat module.
37416
37417         doc: update README
37418         * README: Remove references to cogito.
37419         Remove cvs-repo-updating instructions from 2007.
37420         Don't imply that CVS is better if you have limited disk space.
37421
37422 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37423
37424         update-copyright: support C-style comments
37425         * build-aux/update-copyright: Implement and document.
37426         * tests/test-update-copyright.sh: Test.
37427
37428 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37429
37430         update-copyright: support omitted "(C)"
37431         * build-aux/update-copyright: Implement and document.  Also,
37432         allow variable whitespace before "(C)".
37433         * tests/test-update-copyright.sh: Test.
37434
37435 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37436
37437         update-copyright: don't trip on non-FSF copyright statements
37438         * build-aux/update-copyright: Fix so that the first correctly
37439         formatted FSF copyright statement is recognized no matter what
37440         appears before it.  Update documentation.
37441         * tests/test-update-copyright.sh: Test that.
37442
37443 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37444
37445         update-copyright: clean up code a little
37446         * build-aux/update-copyright: Append "_re" to the name of any
37447         variable holding a regular expression.
37448         Replace "old" and "new" with "stmt" in variable names.
37449         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37450         handled correctly.
37451         Format code more consistently.
37452
37453 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37454
37455         update-copyright-tests: improve portability
37456         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37457         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37458
37459 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37460
37461         update-copyright: support @copyright{} and &copy;
37462         * build-aux/update-copyright: Implement and document.
37463         * tests/test-update-copyright.sh: Test.
37464
37465 2009-08-04  Jim Meyering  <meyering@redhat.com>
37466
37467         update-copyright-tests: correctly test EOL=\r\n handling
37468         * tests/test-update-copyright.sh: Put \r at the end of some lines
37469         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37470
37471         maint.mk: make update-copyright exclusion list more configurable
37472         * top/maint.mk (update-copyright): Default to excluding COPYING,
37473         but allow an override, in case someone does want to update that file.
37474
37475         maint.mk: don't update copyright date in COPYING
37476         * top/maint.mk (update-copyright): Exclude COPYING.
37477
37478         maint.mk: add a copyright-updating rule
37479         * top/maint.mk (update-copyright): New rule.
37480         Derived from coreutils/Makefile.am.
37481
37482         update-copyright: rename some variables
37483         * build-aux/update-copyright: Rename a few variables for clarity.
37484         Tweak syntax.  List Joel E. Denny as coauthor.
37485
37486 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37487
37488         update-copyright: fix bug for 2-digit last year and add tests
37489         * build-aux/update-copyright: Fix bug.
37490         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37491         specified.
37492         * modules/update-copyright-tests: New
37493         * tests/test-update-copyright.sh: New.
37494
37495 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37496
37497         update-copyright: handle leading tabs in line prefix
37498         * build-aux/update-copyright: Count leading tabs as 8 spaces
37499         when computing margin.  This helps with the formatting of
37500         ChangeLogs, for example.
37501         Fix documentation a little.
37502
37503 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37504
37505         update-copyright: support EOL=\r\n
37506         * build-aux/update-copyright: Implement that.
37507
37508 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37509
37510         update-copyright: automatically format copyright statements
37511         * build-aux/update-copyright: Implement that.
37512         Also, be a little more predictable and safer by always failing
37513         when the full copyright format is not perfectly recognized as an
37514         unbroken whole.  Discussed at
37515         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37516         Rewrite documentation.
37517
37518 2009-08-03  Bruno Haible  <bruno@clisp.org>
37519
37520         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37521
37522 2009-08-02  Bruno Haible  <bruno@clisp.org>
37523
37524         Tests for module 'uname'.
37525         * modules/uname-tests: New file.
37526         * tests/test-uname.c: New file.
37527
37528         New module 'uname'.
37529         * lib/uname.c: New file.
37530         * m4/uname.m4: New file.
37531         * modules/uname: New file.
37532         * doc/posix-functions/uname.texi: Mention the new module.
37533
37534 2009-08-02  Bruno Haible  <bruno@clisp.org>
37535
37536         Tests for module 'sys_utsname'.
37537         * modules/sys_utsname-tests: New file.
37538         * tests/test-sys_utsname.c: New file.
37539
37540         New module 'sys_utsname'.
37541         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37542         * m4/sys_utsname_h.m4: New file.
37543         * modules/sys_utsname: New file.
37544         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37545
37546 2009-08-02  Bruno Haible  <bruno@clisp.org>
37547
37548         Implicitly initialize the sockets library.
37549         * lib/gethostname.c: Include sockets.h.
37550         (rpl_gethostname): Invoke gl_sockets_startup.
37551         * lib/socket.c: Include sockets.h.
37552         (rpl_socket): Invoke gl_sockets_startup.
37553         * modules/gethostname (Depends-on): Add sockets.
37554         * modules/socket (Depends-on): Likewise.
37555         * tests/test-poll.c: Don't include sockets.h.
37556         (main): Don't invoke gl_sockets_startup.
37557         * tests/test-select.c: Don't include sockets.h.
37558         (main): Don't invoke gl_sockets_startup.
37559
37560 2009-08-02  Bruno Haible  <bruno@clisp.org>
37561
37562         Allow multiple calls to gl_sockets_startup.
37563         * lib/sockets.c (initialized_sockets_version): New variable.
37564         (gl_sockets_startup): Do nothing if already called for this or a higher
37565         version.
37566         (gl_sockets_cleanup): Reset initialized_sockets_version.
37567
37568 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37569
37570         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37571         different project/version.
37572
37573 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37574             Bruno Haible  <bruno@clisp.org>
37575
37576         Tests for module 'pipe-filter-gi'.
37577         * modules/pipe-filter-gi-tests: New file.
37578         * tests/test-pipe-filter-gi1.sh: New file.
37579         * tests/test-pipe-filter-gi1.c: New file.
37580         * tests/test-pipe-filter-gi2.sh: New file.
37581         * tests/test-pipe-filter-gi2-main.c: New file.
37582         * tests/test-pipe-filter-gi2-child.c: New file.
37583
37584         New module 'pipe-filter-gi'.
37585         * lib/pipe-filter-gi.c: New file.
37586         * modules/pipe-filter-gi: New file.
37587
37588 2009-08-02  Bruno Haible  <bruno@clisp.org>
37589             Paolo Bonzini  <bonzini@gnu.org>
37590
37591         Tests for module 'pipe-filter-ii'.
37592         * modules/pipe-filter-ii-tests: New file.
37593         * tests/test-pipe-filter-ii1.sh: New file.
37594         * tests/test-pipe-filter-ii1.c: New file.
37595         * tests/test-pipe-filter-ii2.sh: New file.
37596         * tests/test-pipe-filter-ii2-main.c: New file.
37597         * tests/test-pipe-filter-ii2-child.c: New file.
37598
37599         New module 'pipe-filter-ii'.
37600         * lib/pipe-filter.h: New file.
37601         * lib/pipe-filter-ii.c: New file.
37602         * lib/pipe-filter-aux.h: New file.
37603         * modules/pipe-filter-ii: New file.
37604
37605 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37606
37607         * lib/gc-libgcrypt.c: Change copyright to FSF.
37608         * lib/gc-gnulib.c: Likewise.
37609
37610 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37611
37612         * lib/gethostname.c: Include limits.h.
37613
37614 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37615             Bruno Haible  <bruno@clisp.org>
37616
37617         Ensure HOST_NAME_MAX as part of the gethostname module.
37618         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37619         define also HOST_NAME_MAX.
37620         * tests/test-gethostname.c: Include <limits.h>.
37621         (main): Check also HOST_NAME_MAX.
37622         * doc/posix-headers/limits.texi: Document the mingw problem.
37623
37624 2009-08-02  Bruno Haible  <bruno@clisp.org>
37625
37626         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37627         Add comments.
37628
37629 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37630
37631         * lib/gethostname.c: Add Windows wrapper.
37632         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37633         * modules/gethostname: Depend on sys_socket & errno, for also
37634         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37635         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37636
37637 2009-07-31  Jim Meyering  <meyering@redhat.com>
37638
37639         getloadavg: fix symbol name in comment
37640         * lib/getloadavg.c: Correct a typo I introduced when adding
37641         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37642         Matt Kraai spotted the problem.
37643
37644 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37645
37646         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37647         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37648         code also if ! defined N_NAME_POINTER.
37649         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37650         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37651         but the n_name member is a 12-byte array.
37652
37653 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37654
37655         update-copyright: generalize comment handling
37656         * build-aux/update-copyright: Handle copyright statements
37657         within more comment styles.
37658         Document usage.
37659         Report any file with an external copyright holder or parse failure.
37660
37661 2009-07-29  Jim Meyering  <meyering@redhat.com>
37662
37663         mktime: correct setting of REPLACE_MKTIME
37664         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37665
37666         update-copyright: new module
37667         * modules/update-copyright: New file.
37668         * build-aux/update-copyright: New file.
37669         * MODULES.html.sh (maint+release support): Add update-copyright.
37670
37671 2009-07-27  Bruno Haible  <bruno@clisp.org>
37672
37673         Fix compilation error when <ctime> is used and mktime is replaced.
37674         * lib/time.in.h (mktime): New declaration.
37675         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37676         REPLACE_MKTIME instead of defining mktime in config.h.
37677         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37678         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37679         Reported by Ross McFarland <rwmcfa1@neces.com>.
37680
37681 2009-07-27  Bruno Haible  <bruno@clisp.org>
37682
37683         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37684         Reported by Matt Kraai <mkraai@beckman.com>.
37685
37686 2009-07-25  Jim Meyering  <meyering@redhat.com>
37687
37688         maint.mk: avoid warnings about missing files
37689         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37690         diagnostic when .prev-version does not exist.
37691         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37692         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37693         nonexistent cfg.mk.
37694         Suggestions from Simon Josefsson.
37695
37696 2009-07-25  Bruno Haible  <bruno@clisp.org>
37697
37698         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37699         defined as macros. Needed on QNX 6.4.1.
37700         Reported by Matt Kraai <mkraai@beckman.com>.
37701
37702 2009-07-23  Jim Meyering  <meyering@redhat.com>
37703
37704         maint.mk: invoke "make dist" with a working value of XZ_OPT
37705         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37706
37707 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37708
37709         Make fseeko.c compile on QNX.
37710         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37711
37712 2009-07-22  Peter Simons  <simons@cryp.to>
37713
37714         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37715         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37716         * lib/md4.h: Likewise.
37717         * lib/md5.h: Likewise.
37718         * lib/sha1.h: Likewise.
37719         * lib/sha256.h: Likewise.
37720         * lib/sha512.h: Likewise.
37721
37722         tests-sha1: don't assign literal string to 'char *' variable
37723         * tests/test-sha1.c (main): Declare locals with "const" to match
37724         attributes of the right hand side.
37725
37726 2009-07-21  Eric Blake  <ebb9@byu.net>
37727
37728         dup2: fix more mingw problems
37729         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37730         fd to itself.
37731         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37732         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37733         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37734         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37735         care of mingw bugs.
37736
37737 2009-07-21  Jim Meyering  <meyering@redhat.com>
37738
37739         vc-list-files: avoid failure when /bin/sh is dash
37740         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37741         On some Debian based systems, /bin/sh is a symlink to dash, and running
37742         this command would omit the "/" following each 'tests' prefix:
37743           dash -x build-aux/vc-list-files -C . tests
37744         That is because bash and dash work differently:
37745           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37746           bash ok
37747           dash odd
37748
37749 2009-07-21  Eric Blake  <ebb9@byu.net>
37750
37751         dup2-tests: test previous patch
37752         * modules/dup2-tests: New file.
37753         * tests/test-dup2.c: Likewise.
37754         * tests/test-open.c (main): Avoid unspecified behavior.
37755         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37756         test.
37757
37758         dup2: work around mingw and cygwin 1.5 bug
37759         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37761         * modules/unistd (Makefile.am): Substitute it.
37762         * lib/unistd.in.h (dup2): Declare the replacement.
37763         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37764         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37765         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37766         * modules/execute (Depends-on): Add dup2.
37767         * modules/fseterr (Depends-on): Likewise.
37768         * modules/pipe (Depends-on): Likewise.
37769         * modules/posix_spawn-internal (Depends-on): Likewise.
37770
37771 2009-07-21  Bruno Haible  <bruno@clisp.org>
37772
37773         * modules/.gitattributes: New file.
37774
37775 2009-07-20  Bruno Haible  <bruno@clisp.org>
37776
37777         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37778         (main): Use it.
37779
37780 2009-07-20  Eric Blake  <ebb9@byu.net>
37781
37782         test-pipe: make a bit more robust.
37783         * tests/test-pipe.c (myerr): Allow error messages regardless of
37784         what we do to stderr.
37785         (test_pipe): Rearrange to avoid deadlock.
37786         (child_main): Try a larger read, to ensure we avoided deadlock.
37787         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37788         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37789         if misused.
37790
37791 2009-07-19  Jim Meyering  <meyering@redhat.com>
37792
37793         fts: avoid false-positive cycle-detection
37794         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37795         for each new command line argument.
37796
37797 2009-07-19  Bruno Haible  <bruno@clisp.org>
37798
37799         Fix build error on mingw with the modules sys_select and unistd.
37800         * modules/acl-tests (Depends-on): Add close.
37801         * modules/binary-io-tests (Depends-on): Likewise.
37802         * modules/closein-tests (Depends-on): Likewise.
37803         * modules/flock-tests (Depends-on): Likewise.
37804         * modules/fsync-tests (Depends-on): Likewise.
37805         * modules/lseek-tests (Depends-on): Likewise.
37806         * modules/pipe-tests (Depends-on): Likewise.
37807         * modules/posix_spawn-tests (Depends-on): Likewise.
37808         * modules/posix_spawnp-tests (Depends-on): Likewise.
37809         * modules/stat-time-tests (Depends-on): Likewise.
37810         * modules/yesno-tests (Depends-on): Likewise.
37811
37812 2009-07-19  Bruno Haible  <bruno@clisp.org>
37813
37814         Unify conditionals.
37815         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37816         macros, not at the compiler macros.
37817         * lib/pipe.c: Likewise.
37818         * lib/execute.c: Likewise.
37819         * lib/spawni.c: Likewise.
37820
37821 2009-07-19  Bruno Haible  <bruno@clisp.org>
37822
37823         Fix handling of closed stdin/stdout/stderr on mingw.
37824         * lib/w32spawn.h: Include unistd.h.
37825         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37826         file descriptor with O_NOINHERIT flag.
37827         (fd_safer_noinherit): New function, based on fd-safer.c.
37828         (dup_safer_noinherit): New function, based on dup-safer.c.
37829         (undup_safer_noinherit): New function.
37830         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37831         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37832         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37833         instead of fd_safer.
37834         * tests/test-pipe.c: Include <windows.h>.
37835         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37836         result.
37837
37838         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37839         from main.
37840         (test_pipe): Pass an extra argument for disambiguation.
37841         (main): Invoke parent_main or child_main.
37842
37843         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37844         consistently.
37845
37846 2009-07-18  Eric Blake  <ebb9@byu.net>
37847
37848         test-pipe: fix mingw build
37849         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37850
37851 2009-07-18  Bruno Haible  <bruno@clisp.org>
37852
37853         * modules/pipe-tests (Makefile.am): Fix typo.
37854
37855 2009-07-18  Eric Blake  <ebb9@byu.net>
37856
37857         error: fix mingw build
37858         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37859         Reported by Bruno Haible.
37860
37861         error: avoid undefined use of stdout
37862         * lib/error.c (error, error_at_line): Check that fd 1 is open
37863         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37864         is handling faults and the close_stdout module wants to report the
37865         detection of closed stdout as an error.
37866
37867 2009-07-17  Eric Blake  <ebb9@byu.net>
37868
37869         pipe: be robust in face of closed fds
37870         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37871         should cause child to misbehave.
37872         * modules/pipe-tests: New module.
37873         * tests/test-pipe.c: New file.
37874         * tests/test-pipe.sh: New file.
37875         Reported by Akim Demaille.
37876
37877 2009-07-14  Bruno Haible  <bruno@clisp.org>
37878
37879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37880         Reported by anonymous kc.
37881
37882 2009-07-07  Jim Meyering  <meyering@redhat.com>
37883
37884         maint.mk: don't look for translatable strings in *.m4 or *.mk
37885         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37886         when searching for translatable strings.
37887
37888 2009-07-05  Jim Meyering  <meyering@redhat.com>
37889
37890         remove superfluous parentheses in STREQ definition
37891         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37892         * lib/getugroups.c (STREQ): Likewise.
37893         * lib/fnmatch.c (STREQ): Likewise.
37894         Spotted by Bruno Haible.
37895
37896 2009-07-04  Jim Meyering  <meyering@redhat.com>
37897
37898         argv-iter: new module
37899         * MODULES.html.sh: Add argv-iter.
37900         * lib/argv-iter.c, lib/argv-iter.h: New files.
37901         * modules/argv-iter: New file.
37902         * modules/argv-iter-tests: New file.
37903         * tests/test-argv-iter.c: Test it.
37904
37905 2009-07-04  Bruno Haible  <bruno@clisp.org>
37906
37907         Fix assertion.
37908         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37909         contains more exact copies of a given entry than file2, leave the extra
37910         copies unpaired rather than aborting.
37911         Reported by Eric Blake.
37912
37913 2009-07-02  Bruno Haible  <bruno@clisp.org>
37914
37915         Speedup git-merge-changelog for git cherry-pick.
37916         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37917         (entries_mapping_get): New function, extracted from compute_mapping.
37918         (entries_mapping_reverse_get): New function.
37919         (compute_mapping): Add a 'full' argument. Return the result in a
37920         'struct entries_mapping'.
37921         (main): Update. Access the mappings through entries_mapping_get.
37922         Reported by Eric Blake.
37923
37924 2009-07-02  Bruno Haible  <bruno@clisp.org>
37925
37926         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37927         best_i.
37928
37929 2009-07-02  Bruno Haible  <bruno@clisp.org>
37930
37931         Speed up approximate search for matching ChangeLog entries.
37932         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37933         argument. Call fstrcmp_bounded instead of fstrcmp.
37934         (compute_mapping, try_split_merged_entry, main): Update callers.
37935
37936 2009-07-02  Bruno Haible  <bruno@clisp.org>
37937
37938         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37939
37940 2009-06-30  Bruno Haible  <bruno@clisp.org>
37941
37942         Reduce the number of uc_is_cased calls.
37943         * lib/unicase.h (casing_suffix_context_t): Add
37944         'first_char_except_ignorable' field.
37945         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37946         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37947         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37948         Update initializer.
37949         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37950         case-ignorable characters.
37951         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37952         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37953         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37954         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37955         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37956
37957 2009-06-30  Bruno Haible  <bruno@clisp.org>
37958
37959         Tests for module 'unicase/ignorable'.
37960         * modules/unicase/ignorable-tests: New file.
37961         * tests/unicase/test-ignorable.c: New file, generated by
37962         gen-uni-tables.
37963
37964         Tests for module 'unicase/cased'.
37965         * modules/unicase/cased-tests: New file.
37966         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37967         * tests/unicase/test-predicate-part1.h: New file, derived from
37968         tests/unictype/test-predicate-part1.h.
37969         * tests/unicase/test-predicate-part2.h: New file, same as
37970         tests/unictype/test-predicate-part2.h.
37971
37972         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37973         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37974         (output_casing_properties): New function.
37975         (main): Call it.
37976         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37977         * lib/unicase/cased.c: Include unictype/bitmap.h.
37978         (uc_is_cased): Define through a bitmap lookup.
37979         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37980         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37981         (uc_is_case_ignorable): Define through a bitmap lookup.
37982         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37983         lib/unictype/bitmap.h.
37984         (Depends-on): Add inline. Clean up.
37985         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37986         lib/unictype/bitmap.h.
37987         (Depends-on): Add inline. Clean up.
37988         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37989         recognition.
37990         * tests/unicase/test-u16-tolower.c (main): Likewise.
37991         * tests/unicase/test-u32-tolower.c (main): Likewise.
37992
37993 2009-06-30  Bruno Haible  <bruno@clisp.org>
37994
37995         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37996         * lib/unicase/u16-casemap.c: Likewise.
37997         * lib/unicase/u32-casemap.c: Likewise.
37998
37999 2009-06-29  Bruno Haible  <bruno@clisp.org>
38000
38001         Define u32_casefold as a wrapper around u32_ct_casefold.
38002         * lib/unicase/u32-casefold.c: Update.
38003         * modules/unicase/u32-casefold (Depends-on): Add
38004         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38005         unicase/empty-suffix-context. Clean up.
38006
38007         Define u16_casefold as a wrapper around u16_ct_casefold.
38008         * lib/unicase/u16-casefold.c: Update.
38009         * modules/unicase/u16-casefold (Depends-on): Add
38010         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38011         unicase/empty-suffix-context. Clean up.
38012
38013         Define u8_casefold as a wrapper around u8_ct_casefold.
38014         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38015         * lib/unicase/u8-casefold.c: Update.
38016         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38017         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38018
38019         Define u32_totitle as a wrapper around u32_ct_totitle.
38020         * lib/unicase/u32-totitle.c: Update.
38021         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38022         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38023
38024         Define u16_totitle as a wrapper around u16_ct_totitle.
38025         * lib/unicase/u16-totitle.c: Update.
38026         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38027         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38028
38029         Define u8_totitle as a wrapper around u8_ct_totitle.
38030         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38031         functions.
38032         (FUNC): Delegate to U_CT_TOTITLE.
38033         * lib/unicase/u8-totitle.c: Update.
38034         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38035         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38036
38037         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38038         invocation.
38039         * modules/unicase/u32-tolower (Depends-on): Add
38040         unicase/empty-prefix-context, unicase/empty-suffix-context.
38041
38042         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38043         invocation.
38044         * modules/unicase/u16-tolower (Depends-on): Add
38045         unicase/empty-prefix-context, unicase/empty-suffix-context.
38046
38047         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38048         * modules/unicase/u8-tolower (Depends-on): Add
38049         unicase/empty-prefix-context, unicase/empty-suffix-context.
38050
38051         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38052         invocation.
38053         * modules/unicase/u32-toupper (Depends-on): Add
38054         unicase/empty-prefix-context, unicase/empty-suffix-context.
38055
38056         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38057         invocation.
38058         * modules/unicase/u16-toupper (Depends-on): Add
38059         unicase/empty-prefix-context, unicase/empty-suffix-context.
38060
38061         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38062         * modules/unicase/u8-toupper (Depends-on): Add
38063         unicase/empty-prefix-context, unicase/empty-suffix-context.
38064
38065         New module 'unicase/u32-ct-casefold'.
38066         * lib/unicase/u32-ct-casefold.c: New file.
38067         * modules/unicase/u32-ct-casefold: New file.
38068
38069         New module 'unicase/u16-ct-casefold'.
38070         * lib/unicase/u16-ct-casefold.c: New file.
38071         * modules/unicase/u16-ct-casefold: New file.
38072
38073         New module 'unicase/u8-ct-casefold'.
38074         * lib/unicase/u8-ct-casefold.c: New file.
38075         * lib/unicase/u-ct-casefold.h: New file, derived from
38076         lib/unicase/u-casefold.h.
38077         * modules/unicase/u8-ct-casefold: New file.
38078
38079         New module 'unicase/u32-ct-totitle'.
38080         * lib/unicase/u32-ct-totitle.c: New file.
38081         * modules/unicase/u32-ct-totitle: New file.
38082
38083         New module 'unicase/u16-ct-totitle'.
38084         * lib/unicase/u16-ct-totitle.c: New file.
38085         * modules/unicase/u16-ct-totitle: New file.
38086
38087         New module 'unicase/u8-ct-totitle'.
38088         * lib/unicase/u8-ct-totitle.c: New file.
38089         * lib/unicase/u-ct-totitle.h: New file, derived from
38090         lib/unicase/u-totitle.h.
38091         * modules/unicase/u8-ct-totitle: New file.
38092
38093         New module 'unicase/u32-ct-tolower'.
38094         * lib/unicase/u32-ct-tolower.c: New file.
38095         * modules/unicase/u32-ct-tolower: New file.
38096
38097         New module 'unicase/u16-ct-tolower'.
38098         * lib/unicase/u16-ct-tolower.c: New file.
38099         * modules/unicase/u16-ct-tolower: New file.
38100
38101         New module 'unicase/u8-ct-tolower'.
38102         * lib/unicase/u8-ct-tolower.c: New file.
38103         * modules/unicase/u8-ct-tolower: New file.
38104
38105         New module 'unicase/u32-ct-toupper'.
38106         * lib/unicase/u32-ct-toupper.c: New file.
38107         * modules/unicase/u32-ct-toupper: New file.
38108
38109         New module 'unicase/u16-ct-toupper'.
38110         * lib/unicase/u16-ct-toupper.c: New file.
38111         * modules/unicase/u16-ct-toupper: New file.
38112
38113         New module 'unicase/u8-ct-toupper'.
38114         * lib/unicase/u8-ct-toupper.c: New file.
38115         * modules/unicase/u8-ct-toupper: New file.
38116
38117         Add context arguments to u*_casemap functions.
38118         * lib/unicase/unicasemap.h: Include unicase.h.
38119         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38120         suffix_context arguments.
38121         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38122         functions.
38123         (FUNC): Add prefix_context and suffix_context arguments. Use
38124         uc_is_cased and uc_is_case_ignorable.
38125         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38126         * lib/unicase/u16-casemap.c: Likewise.
38127         * lib/unicase/u32-casemap.c: Likewise.
38128         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38129         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38130         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38131         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38132         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38133         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38134
38135         New module 'unicase/u32-suffix-context'.
38136         * lib/unicase/u32-suffix-context.c: New file.
38137         * modules/unicase/u32-suffix-context: New file.
38138
38139         New module 'unicase/u16-suffix-context'.
38140         * lib/unicase/u16-suffix-context.c: New file.
38141         * modules/unicase/u16-suffix-context: New file.
38142
38143         New module 'unicase/u8-suffix-context'.
38144         * lib/unicase/u8-suffix-context.c: New file.
38145         * lib/unicase/u-suffix-context.h: New file.
38146         * modules/unicase/u8-suffix-context: New file.
38147
38148         New module 'unicase/empty-suffix-context'.
38149         * lib/unicase/empty-suffix-context.c: New file.
38150         * modules/unicase/empty-suffix-context: New file.
38151
38152         New module 'unicase/u32-prefix-context'.
38153         * lib/unicase/u32-prefix-context.c: New file.
38154         * modules/unicase/u32-prefix-context: New file.
38155
38156         New module 'unicase/u16-prefix-context'.
38157         * lib/unicase/u16-prefix-context.c: New file.
38158         * modules/unicase/u16-prefix-context: New file.
38159
38160         New module 'unicase/u8-prefix-context'.
38161         * lib/unicase/u8-prefix-context.c: New file.
38162         * lib/unicase/u-prefix-context.h: New file.
38163         * lib/unicase/context.h: New file.
38164         * modules/unicase/u8-prefix-context: New file.
38165
38166         New module 'unicase/empty-prefix-context'.
38167         * lib/unicase/empty-prefix-context.c: New file.
38168         * modules/unicase/empty-prefix-context: New file.
38169
38170         New module 'unicase/ignorable'.
38171         * lib/unicase/ignorable.c: New file.
38172         * modules/unicase/ignorable: New file.
38173
38174         New module 'unicase/cased'.
38175         * lib/unicase/caseprop.h: New file.
38176         * lib/unicase/cased.c: New file.
38177         * modules/unicase/cased: New file.
38178
38179         New functions for case mapping of substrings.
38180         * lib/unicase.h (casing_prefix_context_t): New type.
38181         (unicase_empty_prefix_context): New variable.
38182         (u8_casing_prefix_context, u16_casing_prefix_context,
38183         u32_casing_prefix_context, u8_casing_prefixes_context,
38184         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38185         declarations.
38186         (casing_suffix_context_t): New type.
38187         (unicase_empty_suffix_context): New variable.
38188         (u8_casing_suffix_context, u16_casing_suffix_context,
38189         u32_casing_suffix_context, u8_casing_suffixes_context,
38190         u16_casing_suffixes_context, u32_casing_suffixes_context,
38191         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38192         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38193         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38194         declarations.
38195
38196 2009-06-28  Jim Meyering  <meyering@redhat.com>
38197
38198         boostrap: indent only with spaces
38199         * build-aux/bootstrap: Indent only with spaces, never TABs.
38200
38201         bootstrap: split long lines
38202         * build-aux/bootstrap: Keep line length < 80.
38203
38204         bootstrap: sync from coreutils
38205         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38206         just as autoreconf does.  Verify a list of prerequisite
38207         package-name,version-number pairs if defined in bootstrap.conf.
38208         Refer to README-prereq, if prerequisites are not satisfied.
38209
38210 2009-06-27  Eric Blake  <ebb9@byu.net>
38211
38212         tests: add test for bogus NULL definition
38213         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38214         * tests/test-stdlib.c: Likewise.
38215         * tests/test-string.c: Likewise.
38216         * tests/test-locale.c: Likewise.
38217         * tests/test-unistd.c: Likewise.
38218         * modules/stdio-tests (Depends-on): Add verify.
38219         * modules/stdlib-tests (Depends-on): Likewise.
38220         * modules/string-tests (Depends-on): Likewise.
38221         * modules/locale-tests (Depends-on): Likewise.
38222         * modules/unistd-tests (Depends-on): Likewise.
38223
38224 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38225
38226         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38227         self-explaining comment.
38228         * m4/selinux-selinux-h: Update serial.
38229         (gl_LIBSELINUX): New macro, adding a warning for missing development
38230         packages to code extracted from...
38231         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38232         Add warning for missing development packages here, too.
38233
38234 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38235
38236         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38237
38238 2009-06-25  Eric Blake  <ebb9@byu.net>
38239
38240         version-etc: fix regression
38241         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38242         gcc.
38243         (version_etc): Use it, to catch bugs with trailing NULL.
38244         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38245         (version_etc_va): Fix logic bug.
38246         * modules/version-etc-tests: Add test.
38247         * tests/test-version-etc.c: New file.
38248         * tests/test-version-etc.sh: Likewise.
38249
38250 2009-06-25  Sam Steingold  <sds@gnu.org>
38251
38252         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38253         mbtowc declaration.
38254
38255 2009-06-25  Eric Blake  <ebb9@byu.net>
38256
38257         fpurge: migrate into <stdio.h>
38258         * lib/fpurge.h: Delete...
38259         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38260         * lib/fpurge.c (fpurge): Change declaring header.
38261         * modules/fpurge (Files): Drop deleted file.
38262         (Depends-on): Add stdio.
38263         (configure.ac): Set witness.
38264         * modules/stdio (Makefile.am): Support fpurge macros.
38265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38266         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38267         * lib/fflush.c: Update client.
38268         * tests/test-fpurge.c: Likewise.
38269         * NEWS: Mention the change.
38270
38271 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38272
38273         * lib/argp-version-etc.c (program_authors): Add const
38274         qualifier.
38275         * lib/version-etc.c: Fix typos in the comments.
38276         * modules/argp-version-etc: Depends on version-etc.
38277
38278 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38279
38280         argp-version-etc: new module.
38281
38282         * lib/argp-version-etc.c: New file.
38283         * lib/argp-version-etc.h: New file.
38284         * modules/argp-version-etc: New file.
38285         * modules/argp-version-etc-tests: New file.
38286         * tests/test-argp-version-etc.c: New test.
38287         * tests/test-argp-version-etc-1.sh: New test.
38288
38289 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38290
38291         Provide additional interfaces and documentation for version-etc
38292         module.
38293
38294         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38295         interfaces.
38296         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38297         prototypes.
38298
38299 2009-06-24  Bruno Haible  <bruno@clisp.org>
38300
38301         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38302         HAVE_LIB${NAME} macro.
38303         Reported by Sam Steingold <sds@gnu.org>.
38304
38305 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38306
38307         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38308         needed.
38309
38310 2009-06-21  Bruno Haible  <bruno@clisp.org>
38311
38312         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38313         work.
38314         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38315         together with LIB${NAME}, LTLIB${NAME}.
38316         Reported by Sam Steingold <sds@gnu.org>.
38317
38318 2009-06-20  Jim Meyering  <meyering@redhat.com>
38319
38320         tests: make sc_require_test_exit_idiom more generic
38321         * top/maint.mk (Exit_witness_file): New overridable variable.
38322         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38323         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38324
38325 2009-06-19  Jim Meyering  <meyering@redhat.com>
38326
38327         hash: reverse order of src/dst parameters in an internal interface
38328         * lib/hash.c (transfer_entries): Reverse order of parameters to
38329         put DST before SRC.  Adjust callers.
38330
38331         tests: test-hash: avoid wholesale duplication
38332         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38333         Instead, use a loop and add a single conditional.
38334
38335         tests: test-hash: allow seed selection via a command line argument
38336         * tests/test-hash.c (get_seed): New function.
38337         (main): Use it.
38338
38339 2009-06-19  Eric Blake  <ebb9@byu.net>
38340
38341         hash: avoid memory leak on allocation failure
38342         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38343         failure.  Factor repeated algorithm...
38344         (transfer_entries): ...into new helper routine.
38345         (hash_delete): React to hash_rehash return value.
38346
38347         hash: reduce memory pressure in hash_rehash no-op case
38348         * lib/hash.c (next_prime): Avoid overflow.
38349         (hash_initialize): Factor bucket size computation...
38350         (compute_bucket_size): ...into new helper function.
38351         (hash_rehash): Use new function and open coding to reduce memory
38352         pressure, and avoid a memory leak in USE_OBSTACK code.
38353         Reported by Jim Meyering.
38354
38355 2009-06-18  Eric Blake  <ebb9@byu.net>
38356
38357         hash: make rotation more obvious
38358         * modules/hash (Depends-on): Add bitrotate and stdint.
38359         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38360         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38361         (SIZE_MAX): Rely on headers for definition.
38362         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38363         (raw_hasher): Use rotr_sz.
38364         Suggested by Jim Meyering.
38365
38366         hash: fix memory leak in last patch
38367         * lib/hash.c (hash_rehash): Avoid memory leak.
38368
38369         hash: avoid no-op rehashing
38370         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38371
38372         hash: provide default callback functions
38373         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38374         (hash_initialize): Use them as defaults.
38375         * tests/test-hash.c (main): Test this.
38376
38377         hash: minor optimization
38378         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38379         when possible.
38380         (hash_initialize): Document this promise.
38381         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38382         * tests/test-hash.c (hash_compare_strings): Test this.
38383
38384 2009-06-18  Bruno Haible  <bruno@clisp.org>
38385
38386         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38387         going to be replaced anyway.
38388
38389 2009-06-18  Bruno Haible  <bruno@clisp.org>
38390
38391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38392         in one place.
38393         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38394         be replaced anyway.
38395
38396 2009-06-18  Eric Blake  <ebb9@byu.net>
38397
38398         hash: check for resize before insertion
38399         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38400         threshold before insertion, so that a pathological hash_rehash
38401         that fills every bucket can still trigger another rehash.
38402
38403 2009-06-18  Jim Meyering  <meyering@redhat.com>
38404
38405         hash-tests: add a loop around the small tests
38406         * tests/test-hash.c (main): Repeat small tests with selected
38407         small initial table sizes.
38408
38409 2009-06-17  Eric Blake  <ebb9@byu.net>
38410
38411         hash: minor cleanups
38412         * lib/hash.h (hash_entry): Make opaque, by moving...
38413         * lib/hash.c (hash_entry): ...here.
38414         (hash_insert): Clarify restrictions on what can be inserted.
38415         (hash_get_next): Clarify when it is safe to remove an element
38416         during traversal.
38417         (check_tuning): Skip verification when tuning is known safe.
38418         (hash_initialize): Clarify restrictions on tuning.
38419
38420 2009-06-17  Jim Meyering  <jim@meyering.net>
38421         and Eric Blake  <ebb9@byu.net>
38422
38423         hash-tests: new module
38424         * modules/hash-tests: New file.
38425         * tests/test-hash.c: New file.
38426
38427 2009-06-17  Eric Blake  <ebb9@byu.net>
38428
38429         strstr-simple: document new module
38430         * MODULES.html.sh: Document new module.
38431
38432         strstr, strcasestr: replace on platforms with broken memchr
38433         * modules/strstr: Split into...
38434         * modules/strstr-simple: ...new module that does not care about
38435         performance, but does care about glibc bug.
38436         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38437         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38438         if platform memchr is broken, per Debian bug 521737.
38439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38440         memchr.
38441         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38442         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38443         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38444         * modules/mountlist (Depends-on): Add strstr-simple.
38445         * modules/gen-uni-tables (Depends-on): Likewise.
38446         * modules/argz (Depends-on): Add strstr.
38447
38448 2009-06-17  Bruno Haible  <bruno@clisp.org>
38449
38450         * modules/posix_spawn-internal (Depends-on): Add errno.
38451
38452 2009-06-17  Bruno Haible  <bruno@clisp.org>
38453
38454         Define missing ESTALE on Interix 3.5.
38455         * lib/errno.in.h (ESTALE): Assign a value if missing.
38456         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38457         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38458         missing.
38459         * doc/posix-headers/errno.texi: Mention the Interix bug.
38460         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38461
38462 2009-06-15  Eric Blake  <ebb9@byu.net>
38463
38464         memchr, memchr2: add valgrind exception
38465         * lib/memchr.valgrind: New file.
38466         * lib/memchr2.valgrind: New file.
38467         * modules/memchr (Files): Distribute valgrind file.
38468         * modules/memchr2 (Files): Likewise.
38469
38470         docs: memchr is no longer obsolete
38471         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38472         * lib/string.in.h (memchr): Simplify logic.
38473
38474 2009-06-14  Jim Meyering  <meyering@redhat.com>
38475
38476         link-follow: fix the "checking..." message to not mention trailing slash
38477         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38478         never considered trailing slashes.
38479
38480 2009-06-14  Bruno Haible  <bruno@clisp.org>
38481
38482         * m4/memchr.m4: Mention also the bug on IA-64.
38483         * doc/posix-functions/memchr.texi: Likewise.
38484
38485 2009-06-12  Eric Blake  <ebb9@byu.net>
38486
38487         memchr: detect broken x86_64 and alpha implementations
38488         * modules/memchr-tests (Depends-on): Move mmap detection...
38489         * modules/memchr (Depends-on): ...here.
38490         (configure.ac): Set indicator.
38491         * lib/string.in.h (memchr): Declare replacement.
38492         * modules/string (Makefile.am): Trigger replacement.
38493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38494         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38495         bugs.
38496         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38497         * modules/getpagesize (License): Relax license.
38498
38499 2009-06-11  Bruno Haible  <bruno@clisp.org>
38500
38501         * lib/idpriv.h: Add more references.
38502
38503 2009-06-08  Bruno Haible  <bruno@clisp.org>
38504
38505         Tests for module 'idpriv-droptemp'.
38506         * modules/idpriv-droptemp-tests: New file.
38507         * tests/test-idpriv-droptemp.sh: New file.
38508         * tests/test-idpriv-droptemp.su.sh: New file.
38509         * tests/test-idpriv-droptemp.c: New file.
38510
38511         New module 'idpriv-droptemp'.
38512         * lib/idpriv-droptemp.c: New file.
38513         * modules/idpriv-droptemp: New file.
38514
38515 2009-06-08  Bruno Haible  <bruno@clisp.org>
38516
38517         Tests for module 'idpriv-drop'.
38518         * modules/idpriv-drop-tests: New file.
38519         * tests/test-idpriv-drop.sh: New file.
38520         * tests/test-idpriv-drop.su.sh: New file.
38521         * tests/test-idpriv-drop.c: New file.
38522
38523         New module 'idpriv-drop'.
38524         * lib/idpriv.h: New file.
38525         * lib-idpriv-drop.c: New file.
38526         * m4/idpriv.m4: New file.
38527         * modules/idpriv-drop: New file.
38528
38529 2009-06-08  Bruno Haible  <bruno@clisp.org>
38530
38531         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38532         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38533         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38534         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38535         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38536         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38537         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38538
38539 2009-06-08  Eric Blake  <ebb9@byu.net>
38540
38541         test-strstr: use memory fence, when possible
38542         * tests/test-strstr.c (main): Use memory fence, in order to be
38543         more likely to trigger Debian bug 521737.
38544         * modules/strstr-tests (Files): Pull in additional files.
38545
38546         memchr: no longer obsolete, for wider field testing
38547         * modules/memchr (Status, Notice): Delete, this module is no
38548         longer obsolete.
38549         * modules/vasnprintf (Depends-on): Add memchr.
38550
38551 2009-06-07  Jim Meyering  <meyering@redhat.com>
38552
38553         hash: declare some functions with the warn_unused_result attribute
38554         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38555
38556 2009-06-07  Bruno Haible  <bruno@clisp.org>
38557
38558         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38559         Reported by Eric Blake.
38560
38561 2009-06-06  Eric Blake  <ebb9@byu.net>
38562
38563         test-alignof: fix typo with long double
38564         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38565         compiler error.
38566
38567 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38568
38569         Escape non-texinfo { and }s.
38570         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38571         markup error.
38572
38573 2009-06-04  Jim Meyering  <meyering@redhat.com>
38574
38575         gitlog-to-changelog: don't infloop on an empty commit log
38576         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38577         Reported by Boris Petersen <transacid@centerim.org>.
38578
38579 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38580
38581         version-etc: extend for packagers
38582         Add three new configure options, intended for packagers:
38583           --with-packager="packager name"
38584           --with-packager-version="packager-specific version"
38585           --with-packager-bug-reports="packager bug reporting"
38586         An example with coreutils:
38587           $ ./configure \
38588             --with-packager=Gentoo \
38589             --with-packager-bug-report=http://bugs.gentoo.org/ \
38590             --with-packager-version="patchset 1.6"
38591           $ ./src/ls --version | head -n2
38592           ls (GNU coreutils) 7.1-dirty
38593           Packaged by Gentoo (patchset 1.6)
38594         Note that the bug reporting info via --help doesn't show up because
38595         coreutils uses its own custom emit_bug_reporting_address() implementation
38596         in src/system.h.  If it didn't, it'd look like:
38597           $ ./src/ls --help | tail -n4
38598           Report bugs to <bug-coreutils@gnu.org>.
38599           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38600           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38601           General help using GNU software: <http://www.gnu.org/gethelp/>.
38602         * lib/version-etc.c: Print new information, if provided.
38603         * m4/version-etc.m4: New file.
38604         * modules/version-etc (Files): Add m4/version-etc.m4.
38605         (configure.ac): Add gl_VERSION_ETC.
38606
38607 2009-05-31  Bruno Haible  <bruno@clisp.org>
38608
38609         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38610         and 'int64_t'.
38611         * modules/alignof-tests (Dependencies): Add stdint.
38612         Reported by Eric Blake.
38613
38614 2009-05-31  Bruno Haible  <bruno@clisp.org>
38615
38616         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38617         restriction due to compiler bugs.
38618         Reported by Eric Blake.
38619
38620 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38621             Bruno Haible  <bruno@clisp.org>
38622
38623         Fix test-alignof failure.
38624         * lib/alignof.h (alignof_slot): New macro.
38625         (alignof_type): New macro, with the same semantics as the previous
38626         'alignof'.
38627         (alignof): Alias to alignof_slot.
38628         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38629         check that the results are usable as constant expressions.
38630
38631 2009-05-31  Bruno Haible  <bruno@clisp.org>
38632
38633         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38634         * tests/test-memchr.c (main): Check that memchr does not read past the
38635         first occurrence of the byte.
38636         * tests/test-strstr.c (main): Update comment.
38637         Suggested by Eric Blake.
38638
38639 2009-05-30  Bruno Haible  <bruno@clisp.org>
38640
38641         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38642         detail how to use dumpbin.
38643         Reported by David Byron <dbyron@dbyron.com>.
38644
38645 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38646
38647         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38648
38649 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38650
38651         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38652
38653 2009-05-28  Bruno Haible  <bruno@clisp.org>
38654
38655         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38656         build-aux/ files.
38657
38658 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38659
38660         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38661
38662 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38663
38664         * gnulib-tool (sed_transform_main_lib_file)
38665         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38666         regexps.
38667
38668 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38669
38670         * tests/test-strstr.c: Add another self-test.
38671         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38672         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38673
38674 2009-05-23  Bruno Haible  <bruno@clisp.org>
38675
38676         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38677         change.
38678
38679 2009-05-21  Bruno Haible  <bruno@clisp.org>
38680
38681         Simplify use of mode_t varargs.
38682         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38683         uses 'mode_t' or 'int'.
38684         * lib/openat.c (openat): Likewise.
38685         * lib/open-safer.c (open_safer): Likewise.
38686         * m4/mode_t.m4: New file.
38687         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38688         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38689         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38690         * modules/open (Files): Add m4/mode_t.m4.
38691         * modules/openat (Files): Likewise.
38692         * modules/fcntl-safer (Files): Likewise.
38693         Suggested by Eric Blake.
38694
38695 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38696
38697         * doc/glibc-functions/fallocate.texi: New file.
38698         * doc/gnulib.texi: Include it.
38699
38700 2009-05-21  Eric Blake  <ebb9@byu.net>
38701             Bruno Haible  <bruno@clisp.org>
38702
38703         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38704         invocations.
38705         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38706
38707 2009-05-21  Eric Blake  <ebb9@byu.net>
38708             Bruno Haible  <bruno@clisp.org>
38709
38710         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38711         include_next. Fix of 2008-11-20 commit.
38712         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38713         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38714         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38715         NEXT_MATH_H.
38716         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38717         instead of NEXT_MATH_H.
38718
38719 2009-05-21  Bruno Haible  <bruno@clisp.org>
38720
38721         Avoid redefinition warnings for SIZE_MAX.
38722         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38723         Reported by Simon Josefsson.
38724
38725 2009-05-21  Bruno Haible  <bruno@clisp.org>
38726
38727         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38728         AC_CACHE_VAL.
38729
38730 2009-05-20  Bruno Haible  <bruno@clisp.org>
38731
38732         Make zeroptr.h work on mingw.
38733         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38734         mprotect.
38735         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38736         * modules/memchr2-tests (configure.ac): Likewise.
38737         * modules/memcmp-tests (configure.ac): Likewise.
38738         * modules/memmem-tests (configure.ac): Likewise.
38739         * modules/memrchr-tests (configure.ac): Likewise.
38740         Reported by Simon Josefsson.
38741
38742 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38743
38744         * tests/test-glob.c: Include string.h for strcmp prototype.
38745
38746 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38747
38748         * modules/getdelim (Depends-on): Add explicit stdint, although it
38749         was implicitly already pulled in via realloc-posix.
38750         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38751
38752 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38753
38754         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38755         G. Christensen" <tgc@jupiterrise.com>.
38756         * m4/sys_socket_h.m4: Check for sa_family_t.
38757         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38758         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38759         * tests/test-sys_socket.c: Check that sa_family_t works.
38760
38761 2009-05-18  Eric Blake  <ebb9@byu.net>
38762
38763         maint.mk: allow gnulib_dir in VPATH build
38764         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38765
38766 2009-05-15  Jim Meyering  <meyering@redhat.com>
38767
38768         maint.mk: Give gnulib_dir a default definition.
38769         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38770         Thus, most packages no longer need to specify this variable in cfg.mk
38771
38772 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38773
38774         rename.m4: fix typos that would make non-mingw cross-configure fail
38775         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38776
38777 2009-05-13  Eric Blake  <ebb9@byu.net>
38778
38779         mmap-anon: avoid out-of-order autoconf expansion
38780         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38781         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38782         * modules/memchr-tests (Depends-on): Add extensions.
38783         * modules/memchr2-tests (Depends-on): Add extensions.
38784         * modules/memcmp-tests (Depends-on): Add extensions.
38785         * modules/memmem-tests (Depends-on): Add extensions.
38786         * modules/memrchr-tests (Depends-on): Add extensions.
38787
38788 2009-05-13  Bruno Haible  <bruno@clisp.org>
38789
38790         Make some tests ISO C 99 compliant.
38791         * tests/zerosize-ptr.h: New file.
38792         * tests/test-memchr.c: Include zerosize-ptr.h.
38793         (main): Use a zero-size object pointer instead of NULL.
38794         * tests/test-memchr2.c: Include zerosize-ptr.h.
38795         (main): Use a zero-size object pointer instead of NULL.
38796         * tests/test-memcmp.c: Include zerosize-ptr.h.
38797         (main): Use a zero-size object pointer instead of NULL.
38798         * tests/test-memmem.c: Include zerosize-ptr.h.
38799         (main): Use a zero-size object pointer instead of NULL.
38800         * tests/test-memrchr.c: Include zerosize-ptr.h.
38801         (main): Use a zero-size object pointer instead of NULL.
38802         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38803         m4/mmap-anon.m4.
38804         (Depends-on): Add getpagesize.
38805         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38806         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38807         m4/mmap-anon.m4.
38808         (Depends-on): Add getpagesize.
38809         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38810         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38811         m4/mmap-anon.m4.
38812         (Depends-on): Add getpagesize.
38813         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38814         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38815         m4/mmap-anon.m4.
38816         (Depends-on): Add getpagesize.
38817         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38818         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38819         m4/mmap-anon.m4.
38820         (Depends-on): Add getpagesize.
38821         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38822
38823 2009-05-12  Bruno Haible  <bruno@clisp.org>
38824
38825         Tests for module 'alignof'.
38826         * modules/alignof-tests: New file.
38827         * tests/test-alignof.c: New file.
38828
38829 2009-05-12  Bruno Haible  <bruno@clisp.org>
38830
38831         Fix alignof macro.
38832         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38833         vendor compilers that are always correct.
38834
38835 2009-05-12  Bruno Haible  <bruno@clisp.org>
38836
38837         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38838         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38839         not whether its fully works.
38840
38841 2009-05-12  Bruno Haible  <bruno@clisp.org>
38842
38843         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38844
38845 2009-05-12  Jim Meyering  <meyering@redhat.com>
38846
38847         * top/maint.mk: Adjust backslash alignment.
38848
38849 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38850
38851         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38852
38853 2009-05-11  Eric Blake  <ebb9@byu.net>
38854
38855         argp: avoid undefined behavior
38856         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38857         macros.
38858
38859 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38860
38861         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38862         user.name to prevent git commit from complaining.
38863
38864 2009-05-10  Bruno Haible  <bruno@clisp.org>
38865
38866         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38867         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38868         it rewrites every file name only once.
38869         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38870
38871 2009-05-08  Bruno Haible  <bruno@clisp.org>
38872
38873         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38874         instead of 'max'.
38875
38876 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38877
38878         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38879         sockaddr_storage test.
38880
38881 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38882
38883         * modules/sys_socket (Makefile.am): Substitute
38884         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38885         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38886         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38887         * tests/test-sys_socket.c: Check sockaddr_storage.
38888
38889 2009-05-08  Bruno Haible  <bruno@clisp.org>
38890
38891         New module 'alignof'.
38892         * lib/alignof.h: New file.
38893         * modules/alignof: New file.
38894
38895 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38896             Bruno Haible  <bruno@clisp.org>
38897
38898         Fix test-file-has-acl on FreeBSD.
38899         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38900         mask is implicitly added.
38901         * tests/test-file-has-acl.c: Include <signal.h>.
38902         (main): Terminate the test after 5 seconds.
38903         * modules/acl-tests (configure.ac): Check for alarm function.
38904
38905 2009-05-04  Bruno Haible  <bruno@clisp.org>
38906
38907         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38908         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38909         * modules/errno (configure.ac): Drop AC_REQUIRE.
38910         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38911         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38912
38913 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38914
38915         * modules/glob-tests: New module.
38916         * tests/test-glob.c: Add.
38917
38918 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38919
38920         * modules/fnmatch-tests: New module.
38921         * tests/test-fnmatch.c: Add.
38922
38923 2009-05-04  Eric Blake  <ebb9@byu.net>
38924
38925         maint: make the new no-submodule-changes rule VPATH-safe
38926         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38927
38928 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38929             Bruno Haible  <bruno@clisp.org>
38930
38931         acl: Fix infinite loop on FreeBSD.
38932         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38933         of return value from acl_get_entry.
38934         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38935         Likewise.
38936
38937 2009-05-03  Bruno Haible  <bruno@clisp.org>
38938
38939         * lib/acl-internal.h (acl_entries): Clarify return value.
38940         * lib/acl_entries.c (acl_entries): Likewise.
38941
38942 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38943
38944         Bug fix in acl module.
38945         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38946
38947 2009-05-03  Bruno Haible  <bruno@clisp.org>
38948
38949         Create gperf-generated file in the source dir, not in the build dir.
38950         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38951         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38952         * modules/unicase/locale-language (unicase/locale-languages.h):
38953         Likewise.
38954         * modules/unicase/special-casing (unicase/special-casing-table.h):
38955         Likewise.
38956         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38957         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38958         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38959         Reported by Ralf Wildenhues.
38960
38961 2009-05-03  Bruno Haible  <bruno@clisp.org>
38962
38963         * modules/fnmatch (Description, configure.ac): Taken from
38964         fnmatch-posix.
38965         * modules/fnmatch-posix: Turn into a symbolic reference to the
38966         'fnmatch' module, and deprecate.
38967         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38968
38969 2009-05-03  Bruno Haible  <bruno@clisp.org>
38970
38971         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38972         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38973         Reported by Ralf Wildenhues.
38974
38975 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38976
38977         * m4/fnmatch.m4: Fix fnmatch re-define.
38978
38979 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38980
38981         priv-set: new module and tests; adapt write-any-file
38982         * lib/priv-set.c: New file.
38983         * lib/priv-set.h: New file.
38984         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38985         * lib/write-any-file.c: Simplify by using priv-set module.
38986         * m4/priv-set.m4: New file.
38987         * modules/priv-set: New file.
38988         * modules/unlinkdir: Add dependency on priv-set module.
38989         * modules/write-any-file: Likewise.
38990
38991         Tests for module 'priv-set'.
38992         * modules/priv-set-tests: New file.
38993         * tests/test-priv-set.c: New file.
38994
38995 2009-05-03  Jim Meyering  <meyering@redhat.com>
38996             Bruno Haible  <bruno@clisp.org>
38997
38998         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38999         use the converted UTF-8 variant of the name instead.
39000
39001 2009-05-03  Jim Meyering  <meyering@redhat.com>
39002
39003         tests: tighten some getdate tests
39004         * tests/test-getdate.c (main): Tighten tests: require equality,
39005         not just greater than.  Set TZ envvar to UTC0.
39006
39007 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39008
39009         getdate: correctly interpret "next monday" when run on a Monday
39010         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39011         that e.g., "next tues" (when run on a tuesday) results in a date
39012         that is one week in the future, and not today's date.
39013         I.e., add a week when the wday is the same as the current one.
39014         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39015         and earlier by Martin Bernreuther and Jan Minář.
39016         * tests/test-getdate.c (main): Check that "next DAY" is always in
39017         the future and that "last DAY" is always in the past.
39018
39019 2009-05-02  Jim Meyering  <meyering@redhat.com>
39020
39021         build: ensure that a release build fails when a submodule is unclean
39022         * top/maint.mk (no-submodule-changes): New rule.
39023         (alpha beta major): Depend on it.
39024
39025 2009-05-02  Bruno Haible  <bruno@clisp.org>
39026
39027         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39028         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39029         shell variable gl_fnmatch_required to detect which variant is
39030         requested.
39031         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39032         gl_FUNC_FNMATCH_POSIX.
39033         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39034         exclude fnmatch-posix.
39035
39036 2009-05-02  Bruno Haible  <bruno@clisp.org>
39037
39038         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39039         * modules/mbsrtowcs (License): Change to LGPLv2+.
39040         * modules/strnlen1 (License): Likewise.
39041         Reported by Simon Josefsson.
39042
39043 2009-05-02  Bruno Haible  <bruno@clisp.org>
39044
39045         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39046         "cross".
39047         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39048         gnulib-tool was called with option --source-base=lib.
39049
39050 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39051
39052         Use automake *-local hooks without commands, for extensibility.
39053         * modules/localcharset (Makefile.am): Rename install-exec-local
39054         rule to install-exec-localcharset, and make it a prerequisite of
39055         install-exec-local.  Likewise, rename the uninstall-local rule to
39056         uninstall-localcharset, and make it a prerequisite of the former.
39057
39058 2009-05-01  Bruno Haible  <bruno@clisp.org>
39059
39060         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39061         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39062         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39063         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39064         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39065         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39066         m4/locale-zh.m4, m4/codeset.m4.
39067
39068         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39069         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39070         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39071         m4/locale-zh.m4.
39072
39073         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39074         REPLACE_WCRTOMB if mbstate_t must be replaced.
39075         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39076         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39077
39078 2009-05-01  Bruno Haible  <bruno@clisp.org>
39079
39080         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39081         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39082         dngettext, dcngettext, textdomain, bindtextdomain,
39083         bind_textdomain_codeset): Undefine before redefining.
39084
39085 2009-04-30  Bruno Haible  <bruno@clisp.org>
39086
39087         Fix bug introduced on 2009-04-25.
39088         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39089         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39090         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39091         is defined.
39092         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39093         is defined.
39094         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39095         is defined.
39096         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39097
39098 2009-04-28  Bruno Haible  <bruno@clisp.org>
39099
39100         Comment tweaks.
39101         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39102         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39103         * lib/unicase.h (u*_casexfrm): Likewise.
39104         Reported by Paolo Bonzini.
39105
39106 2009-04-28  Bruno Haible  <bruno@clisp.org>
39107
39108         Fix a compilation error.
39109         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39110         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39111         Reported by Jim Meyering.
39112
39113 2009-04-27  Bruno Haible  <bruno@clisp.org>
39114
39115         New module 'libunistring'.
39116         * modules/libunistring: New file.
39117         * m4/libunistring.m4: New file.
39118         * MODULES.html.sh (Unicode string functions): Add it.
39119
39120 2009-04-27  Eric Blake  <ebb9@byu.net>
39121
39122         maint.mk: allow package-specific header to provide <config.h>
39123         * top/maint.mk (sc_require_config_h): New variable.
39124         (sc_require_config_h, sc_require_config_h_first): Use it.
39125
39126 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39127
39128         * top/maint.mk (sc_avoid_if_before_free): Except
39129         useless-if-before-free script.
39130
39131 2009-04-27  Eric Blake  <ebb9@byu.net>
39132
39133         maintainer-makefile: depend on all required helper scripts
39134         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39135         useless-if-before-free.
39136         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39137         version, rather than assuming gnulib checkout is available.
39138         Reported by Simen Josefsson.
39139
39140 2009-04-26  Bruno Haible  <bruno@clisp.org>
39141
39142         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39143         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39144         "../" or "..".
39145
39146 2009-04-26  Bruno Haible  <bruno@clisp.org>
39147
39148         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39149         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39150         AC_LIB_HAVE_LINKFLAGS.
39151
39152 2009-04-26  Bruno Haible  <bruno@clisp.org>
39153
39154         Simplify calling convention of u*_conv_from_encoding.
39155         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39156         u32_conv_from_encoding): Expect a resultbuf argument and return the
39157         result directly as a pointer.
39158         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39159         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39160         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39161         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39162         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39163         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39164         Update.
39165         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39166         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39167         * lib/vasnprintf.c (VASNPRINTF): Update.
39168         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39169         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39170         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39171         * NEWS: Mention the change.
39172
39173 2009-04-26  Bruno Haible  <bruno@clisp.org>
39174
39175         Simplify calling convention of u*_conv_to_encoding.
39176         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39177         u32_conv_to_encoding): Expect a resultbuf argument and return the
39178         result directly as a pointer.
39179         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39180         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39181         freeing scaled_offsets if mem_iconveha failed.
39182         * lib/unicase/u-casexfrm.h (FUNC): Update.
39183         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39184         * lib/vasnprintf.c (VASNPRINTF): Update.
39185         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39186         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39187         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39188         * NEWS: Mention the change.
39189
39190 2009-04-26  Bruno Haible  <bruno@clisp.org>
39191
39192         Avoid test failures on AIX and OSF/1.
39193         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39194         malloc(0).
39195         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39196         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39197         Likewise.
39198         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39199         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39200         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39201         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39202         * doc/posix-functions/malloc.texi: Document the portability problem
39203         related to malloc(0).
39204
39205 2009-04-26  Bruno Haible  <bruno@clisp.org>
39206
39207         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39208         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39209         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39210
39211 2009-04-25  Bruno Haible  <bruno@clisp.org>
39212
39213         Avoid link error when creating a namespace clean library.
39214         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39215         as macro with arguments if already defined as an alias.
39216         * lib/signbitf.c (gl_signbitf): Don't undefine.
39217         * lib/signbitd.c (gl_signbitd): Don't undefine.
39218         * lib/signbitl.c (gl_signbitl): Don't undefine.
39219
39220 2009-04-25  Jim Meyering  <meyering@redhat.com>
39221
39222         vc-list-files: fix another quoting bug
39223         * build-aux/vc-list-files: Avoid sed backslash expansion
39224         of pathological directory names.
39225
39226 2009-04-25  Eric Blake  <ebb9@byu.net>
39227
39228         vc-list-files: fix shell quoting error
39229         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39230         timestamp.
39231
39232 2009-04-25  Jim Meyering  <meyering@redhat.com>
39233
39234         vc-list-files: restore lost functionality with subdir argument
39235         * build-aux/vc-list-files: When given a non-"." sub-directory
39236         argument, substitute the $dir/ prefix back onto each resulting name.
39237         Otherwise, coreutils' root_tests check would fail.
39238
39239 2009-04-24  Eric Blake  <ebb9@byu.net>
39240
39241         vc-list-files: ignore git symlinks
39242         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39243         than ls-files, to ignore git symlinks.
39244
39245         maint.mk: import improvements from m4
39246         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39247         (move_if_change): Delete unused macro.
39248         (news-date-check, vc-diff-check): Support VPATH builds.
39249         (announcement): Likewise.  Split --bootstrap-tools list...
39250         (boostrap-tools): ...into separate list, which can be overridden
39251         in cfg.mk.
39252         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39253         requiring dependency on useless-if-before-free module.
39254         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39255         Support VPATH builds.
39256
39257 2009-04-24  Jim Meyering  <meyering@redhat.com>
39258
39259         maint.mk: remove coreutils-specific rules and variables
39260         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39261         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39262         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39263
39264         maint.mk: remove obsolete rule
39265         * top/maint.mk (rel-check): Remove rule.
39266         (WGET, WGETFLAGS): Remove now-unused variables.
39267
39268 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39269
39270         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39271         consistency.
39272
39273         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39274         '$(PATH_SEPARATOR)' instead of ':'.
39275
39276 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39277
39278         * lib/getopt1.c (main): Use 'const' for static array.
39279
39280 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39281
39282         * top/maint.mk: Sync with coreutils.
39283         * NEWS: Explain incompatibilities.
39284
39285 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39286             Bruno Haible  <bruno@clisp.org>
39287
39288         Fix cross-compilation results.
39289         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39290         statement, as third argument of AC_TRY_RUN.
39291         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39292         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39293         Likewise.
39294         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39295         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39296         Likewise.
39297         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39298         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39299         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39300
39301 2009-04-20  Bruno Haible  <bruno@clisp.org>
39302
39303         Avoid test failure on mingw.
39304         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39305
39306 2009-04-20  Bruno Haible  <bruno@clisp.org>
39307
39308         Avoid compilation error on mingw.
39309         * modules/localename-tests (Depends-on): Add locale.
39310
39311 2009-04-19  Bruno Haible  <bruno@clisp.org>
39312
39313         Support for building a shared library on Windows platforms.
39314         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39315         (main): Test the presence of UNINORM_NFC here.
39316         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39317         (main): Test the presence of UNINORM_NFD here.
39318         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39319         (main): Test the presence of UNINORM_NFKC here.
39320         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39321         (main): Test the presence of UNINORM_NFKD here.
39322
39323 2009-04-19  Bruno Haible  <bruno@clisp.org>
39324
39325         Avoid a compiler warning.
39326         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39327         Change type of variable 'sequence'.
39328
39329 2009-04-19  Bruno Haible  <bruno@clisp.org>
39330
39331         * modules/configmake (Makefile.am): When the contents of configmake.h
39332         does not change, arrange to preserve its modification time.
39333
39334 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39335
39336         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39337         gettext domain.
39338
39339 2009-04-16  Jim Meyering  <meyering@redhat.com>
39340
39341         useless-if-before-free: improve conversion code
39342         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39343         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39344
39345 2009-04-14  Bruno Haible  <bruno@clisp.org>
39346
39347         * modules/fcntl (Depends-on): Add extensions.
39348         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39349
39350 2009-04-12  Ben Pfaff  <blp@gnu.org>
39351
39352         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39353         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39354
39355 2009-03-20  Ben Pfaff  <blp@gnu.org>
39356
39357         Make rename replace existing destinations on Windows.
39358         * m4/rename.m4: Add test for Mingw.
39359         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39360         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39361         * doc/posix-functions/rename.texi: Document.
39362
39363 2009-04-10  Bruno Haible  <bruno@clisp.org>
39364
39365         New include file "iconveh.h".
39366         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39367         * lib/striconveh.h: Include it.
39368         (enum iconv_ilseq_handler): Remove definition.
39369         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39370         striconveh.h.
39371         * lib/striconveha.c: Include striconveh.h.
39372         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39373         * modules/striconveh (Files): Add lib/iconveh.h.
39374         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39375         lib/striconveh.h.
39376
39377 2009-04-10  Bruno Haible  <bruno@clisp.org>
39378
39379         * lib/uniconv.h: Update comment.
39380
39381 2009-04-10  Bruno Haible  <bruno@clisp.org>
39382
39383         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39384         always.
39385         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39386         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39387         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39388         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39389         "unistring-notinline.h", so that the function gets defined always.
39390         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39391         * lib/unistr/u8-uctomb.c: Likewise.
39392         * lib/unistr/u16-mbtouc.c: Likewise.
39393         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39394         * lib/unistr/u16-uctomb.c: Likewise.
39395         * lib/unistr/u32-mbtouc.c: Likewise.
39396         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39397         * lib/unistr/u32-uctomb.c: Likewise.
39398
39399 2009-04-10  Bruno Haible  <bruno@clisp.org>
39400
39401         Mark 'utime' obsolete.
39402         * modules/utime (Status, Notice): New sections.
39403         Suggested by Jim Meyering.
39404
39405         Fix cross-compile guess for utime test.
39406         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39407         autoconf.
39408         * doc/posix-functions/utime.texi: Give more precisions.
39409         Reported by Jan <ipif@ymail.com>.
39410
39411 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39412
39413         filevercmp: correct today's change
39414         * lib/filevercmp.c: Also handle coreutils' test inputs.
39415         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39416
39417         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39418         for reporting it.
39419         * lib/filevercmp.c: Special handle for "", "." and "..".
39420         * tests/test-filevercmp.c: Enlarge the set suite.
39421
39422 2009-04-07  Jim Meyering  <meyering@redhat.com>
39423
39424         useless-if-before-free: show how to remove braced useless free, too
39425         * build-aux/useless-if-before-free: still only in a comment, though.
39426
39427 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39428
39429         maint.mk: import changes to syntax-check macros from coreutils
39430         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39431         Use them in the relevant macros.
39432
39433 2009-04-06  Bruno Haible  <bruno@clisp.org>
39434
39435         Fix unportable use of bit-fields.
39436         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39437         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39438         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39439
39440 2009-04-06  Bruno Haible  <bruno@clisp.org>
39441
39442         Avoid test failures on AIX and OSF/1.
39443         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39444         that malloc(0) = NULL.
39445         * tests/unicase/test-u8-tolower.c (check): Likewise.
39446         * tests/unicase/test-u8-totitle.c (check): Likewise.
39447         * tests/unicase/test-u8-toupper.c (check): Likewise.
39448         * tests/unicase/test-u16-casefold.c (check): Likewise.
39449         * tests/unicase/test-u16-tolower.c (check): Likewise.
39450         * tests/unicase/test-u16-totitle.c (check): Likewise.
39451         * tests/unicase/test-u16-toupper.c (check): Likewise.
39452         * tests/unicase/test-u32-casefold.c (check): Likewise.
39453         * tests/unicase/test-u32-tolower.c (check): Likewise.
39454         * tests/unicase/test-u32-totitle.c (check): Likewise.
39455         * tests/unicase/test-u32-toupper.c (check): Likewise.
39456         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39457         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39458         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39459         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39460         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39461         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39462         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39463         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39464         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39465         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39466         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39467         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39468
39469 2009-04-05  Bruno Haible  <bruno@clisp.org>
39470
39471         Work around an autoconf limitation.
39472         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39473         comment line if it would be longer than 3 KB.
39474
39475 2009-04-05  Bruno Haible  <bruno@clisp.org>
39476
39477         Avoid test failure with libiconv-1.13.
39478         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39479         of the expected test results.
39480
39481 2009-04-05  Bruno Haible  <bruno@clisp.org>
39482
39483         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39484         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39485         that it should be installed.
39486
39487 2009-04-05  Bruno Haible  <bruno@clisp.org>
39488
39489         * gnulib-tool: New option --copy-file.
39490         (func_usage): Document it.
39491         (func_dest_tmpfilename): Moved out of func_import.
39492         (func_add_file, func_update_file): New functions, extracted from
39493         func_import.
39494         (func_import): Update.
39495
39496 2009-04-05  Karl Berry  <karl@gnu.org>
39497
39498         * README: prominently mention gnulib-tool.
39499         Rearrange sections so getting the code is near the top.
39500
39501 2009-04-05  Bruno Haible  <bruno@clisp.org>
39502
39503         * lib/unicase.h: Mention u*_cmp2.
39504         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39505         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39506         * lib/unicase/ulc-casecmp.c: Likewise.
39507         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39508         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39509         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39510         unistr/u8-cmp.
39511         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39512         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39513         unistr/u16-cmp.
39514         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39515         unistr/u32-cmp.
39516
39517         * lib/uninorm.h: Mention u*_cmp2.
39518         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39519         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39520         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39521         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39522         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39523         unistr/u8-cmp.
39524         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39525         unistr/u16-cmp.
39526         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39527         unistr/u32-cmp.
39528
39529         New module 'unistr/u32-cmp2'.
39530         * lib/unistr/u32-cmp2.c: New file.
39531         * modules/unistr/u32-cmp2: New file.
39532
39533         New module 'unistr/u16-cmp2'.
39534         * lib/unistr/u16-cmp2.c: New file.
39535         * modules/unistr/u16-cmp2: New file.
39536
39537         New module 'unistr/u8-cmp2'.
39538         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39539         * lib/unistr/u8-cmp2.c: New file.
39540         * lib/unistr/u-cmp2.h: New file.
39541         * modules/unistr/u8-cmp2: New file.
39542
39543 2009-04-05  Bruno Haible  <bruno@clisp.org>
39544
39545         * lib/unictype.h (uc_property_is_valid): New macro.
39546         * tests/unictype/test-pr_byname.c (main): Use it.
39547
39548         * lib/unistr.h: Doc fixes.
39549         * lib/uniconv.h: Doc fixes.
39550         * lib/unictype.h: Doc fixes.
39551
39552 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39553
39554         Port coreutils 7.2 to Solaris 8.
39555
39556         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39557         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39558         for Solaris 8.  This is a bit of a hack, as it means it's the
39559         caller's responsibility to add -lnsl if needed, but most likely it
39560         won't be needed since only getaddrinfo uses this and getaddrinfo
39561         isn't needed on Solaris 8.
39562
39563         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39564         problem to Solaris 8 encountered with coreutils 7.2, which
39565         resulted in a message "fnmatch.c:292: warning: passing argument 4
39566         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39567         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39568
39569 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39570
39571         * m4/ld-version-script.m4: Add FIXME comment.
39572
39573 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39574
39575         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39576         SOVERSION variable.
39577
39578 2009-04-02  Bruno Haible  <bruno@clisp.org>
39579
39580         * Makefile (info, html, dvi, pdf): Combine the rules.
39581         Suggested by Jim Meyering.
39582
39583 2009-04-01  Bruno Haible  <bruno@clisp.org>
39584
39585         * Makefile (info, html, dvi, pdf): New targets.
39586         Reported by Reuben Thomas <rrt@sc3d.org>.
39587
39588 2009-04-01  Bruno Haible  <bruno@clisp.org>
39589
39590         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39591         can be put into PATH.
39592         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39593
39594 2009-04-01  Bruno Haible  <bruno@clisp.org>
39595
39596         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39597
39598 2009-04-01  Bruno Haible  <bruno@clisp.org>
39599
39600         Rename module 'visibility'.
39601         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39602         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39603         * doc/gnulib.texi: Update.
39604         * MODULES.html.sh (Misc): Update.
39605         * NEWS: Mention the change.
39606
39607 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39608
39609         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39610         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39611         Eric Blake <ebb9@byu.net> for review.
39612         * MODULES.html.sh: Add lib-msvc-compat.
39613         * doc/gnulib.texi: Link to new section.
39614         * m4/ld-output-def.m4: New file.
39615         * doc/ld-output-def.texi: New file.
39616
39617 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39618
39619         Rename ld-version-script to lib-symbol-versions.  Suggested by
39620         Bruno Haible <bruno@clisp.org>.
39621         * modules/ld-version-script: Renamed to lib-symbol-versions.
39622         * doc/ld-version-script.texi: Fix module name.
39623         * MODULES.html.sh: Add lib-symbol-versions.
39624
39625 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39626
39627         * modules/u64-tests: New file.
39628         * tests/test-u64.c: New file.
39629
39630 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39631
39632         * MODULES.html.sh: Mention u64.
39633         * modules/u64: New module.
39634         * modules/crypto/sha512: Depend on u64 module instead of providing
39635         u64.h.
39636
39637 2009-03-27  Eric Blake  <ebb9@byu.net>
39638
39639         test-strerror: make debugging EAI_SYSTEM easier
39640         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39641         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39642         failure was EAI_SYSTEM.
39643
39644 2009-03-25  Bruno Haible  <bruno@clisp.org>
39645
39646         Fix a problem with --enable-relocatable on Solaris 7.
39647         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39648         since 2008-02-24.
39649
39650 2009-03-25  Eric Blake  <ebb9@byu.net>
39651
39652         test-sockets: avoid gcc warning
39653         * tests/test-sockets.c (main): Silence compiler warning.
39654
39655 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39656
39657         New modules nproc, pthread, contributed by Glen Lenker.
39658
39659         * MODULES.html.sh: Add pthread, nproc.
39660         * lib/nproc.c: New file.
39661         * lib/nproc.h: New file.
39662         * lib/pthread.in.h: New file.
39663         * m4/pthread.m4: New file.
39664         * modules/nproc: New file.
39665         * modules/pthread: New file.
39666
39667 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39668
39669         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39670         New variable.
39671
39672 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39673
39674         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39675         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39676         * tests/test-filevercmp.c: Add tests for backup suffixes.
39677
39678 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39679
39680         * modules/stdlib (Depends-on): Add stdint, needed when defining
39681         struct random_data on, for example, HP-UX 10.20.  Reported by
39682         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39683
39684 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39685
39686         * lib/readline.c (readline): Call fflush on stdout after printing
39687         prompt.
39688
39689 2009-03-20  Bruno Haible  <bruno@clisp.org>
39690
39691         Remove dependency from 'close' module to -lws2_32 on native Windows.
39692         * lib/close-hook.h: New file.
39693         * lib/close-hook.c: New file.
39694         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39695         w32sock.h.
39696         (_gl_close_fd_maybe_socket): Remove function.
39697         (rpl_close): Invoke execute_all_close_hooks instead of
39698         _gl_close_fd_maybe_socket.
39699         * lib/sockets.c: Include close-hook.h, w32sock.h.
39700         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39701         (close_sockets_hook): New variable.
39702         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39703         (gl_sockets_cleanup): Unregister it.
39704         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39705         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39706         * modules/close-hook: New file.
39707         * modules/close (Files): Remove lib/w32sock.h.
39708         (Depends-on): Add close-hook.
39709         (Link): Remove section.
39710         * modules/sockets (Files): Add lib/w32sock.h.
39711         (Depends-on): Add close-hook.
39712         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39713         invocation.
39714         * NEWS: Mention that LIB_CLOSE is gone.
39715
39716 2009-03-23  Eric Blake  <ebb9@byu.net>
39717
39718         signal-tests: test previous patch
39719         * tests/test-signal.c: New file.
39720         * modules/signal-tests: Likewise.
39721
39722         signal.h: always support 'volatile sig_atomic_t'
39723         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39724         (gl_SIGNAL_H_DEFAULTS): Add a default.
39725         * modules/signal (Makefile.am): Substitute if needed.
39726         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39727         users can blindly add volatile.
39728         * doc/posix-headers/signal.texi (signal.h): Document it.
39729         Reported by Matthew Woehlke.
39730
39731 2009-03-23  Jim Meyering  <meyering@redhat.com>
39732
39733         pathmax: PATH_MAX: use pathconf only when available
39734         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39735         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39736         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39737         This avoids a link failure in a PSP cross-compilation environment
39738         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39739
39740         * lib/vasnprintf.c (divide): Fix typo in comment.
39741
39742 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39743
39744         * gnulib-tool (func_filter_filelist): Fix comment.
39745
39746 2009-03-20  Bruno Haible  <bruno@clisp.org>
39747
39748         Make sockets.h self-contained.
39749         * lib/sockets.c: Include sockets.h first.
39750         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39751
39752 2009-03-19  Eric Blake  <ebb9@byu.net>
39753
39754         doc: mention more functions added in cygwin 1.7.0
39755         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39756         addition.
39757         * doc/posix-functions/log2f.texi: Likewise.
39758
39759 2009-03-19  Jim Meyering  <meyering@redhat.com>
39760
39761         fsusage: avoid syntax error due to statement-before-declaration
39762         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39763         after all declarations.  Reported by Matthew Woehlke in
39764         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39765
39766 2009-03-18  Eric Blake  <ebb9@byu.net>
39767
39768         build-aux/compile: sync from automake
39769         * build-aux/compile: New file, from automake.
39770         * config/srclist.txt: Mention build-aux/compile.
39771
39772 2009-03-17  Bruno Haible  <bruno@clisp.org>
39773
39774         * lib/git-merge-changelog.c: Fix typo in comment.
39775         Reported by Reuben Thomas <rrt@sc3d.org>.
39776
39777 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39778
39779         * m4/regex.m4: update and improve help for
39780         --without-included-regex.
39781
39782 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39783
39784         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39785         failure on missing include files.
39786
39787 2009-03-17  Eric Blake  <ebb9@byu.net>
39788
39789         doc: mention more functions added in cygwin 1.7.0
39790         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39791         addition.
39792         * doc/posix-functions/fwscanf.texi: Likewise.
39793         * doc/posix-functions/swprintf.texi: Likewise.
39794         * doc/posix-functions/swscanf.texi: Likewise.
39795         * doc/posix-functions/vfwprintf.texi: Likewise.
39796         * doc/posix-functions/vfwscanf.texi: Likewise.
39797         * doc/posix-functions/vswprintf.texi: Likewise.
39798         * doc/posix-functions/vswscanf.texi: Likewise.
39799         * doc/posix-functions/vwprintf.texi: Likewise.
39800         * doc/posix-functions/vwscanf.texi: Likewise.
39801         * doc/posix-functions/wcscasecmp.texi: Likewise.
39802         * doc/posix-functions/wcsdup.texi: Likewise.
39803         * doc/posix-functions/wcsftime.texi: Likewise.
39804         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39805         * doc/posix-functions/wprintf.texi: Likewise.
39806         * doc/posix-functions/wscanf.texi: Likewise.
39807         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39808
39809 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39810
39811         maint.mk: really add $(AM_MAKEFLAGS)
39812         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39813         was inadvertently omitted in the last commit.
39814         Spotted by Bruno Haible.
39815
39816         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39817         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39818         $(AM_MAKEFLAGS)' rather than plain `make'.
39819
39820         gnulib-tool: execute $MAKE not make
39821         * gnulib-tool: Default $MAKE to 'make'.
39822         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39823         than make.  Initialize $MAKE in the do-autobuild script.
39824
39825         gnulib-tool: use $MAKE not make in generated files
39826         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39827         make, in generated files.  Initialize $MAKE in the do-autobuild
39828         script.
39829
39830         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39831
39832         GNUmakefile: disable parallelism only for multiple, recursive targets
39833         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39834         additions in the Makefile.
39835         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39836         by Automake.
39837         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39838         are listed on the command line and at least one of them is
39839         listed in $(ALL_RECURSIVE_TARGETS).
39840
39841 2009-03-14  Bruno Haible  <bruno@clisp.org>
39842
39843         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39844         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39845         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39846         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39847         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39848         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39849         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39850         unistr/u8-uctomb.
39851         * modules/unistr/u8-strchr (Depends-on): Likewise.
39852         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39853         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39854         unistr/u16-uctomb.
39855         * modules/unistr/u16-strchr (Depends-on): Likewise.
39856         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39857
39858 2009-03-12  Bruno Haible  <bruno@clisp.org>
39859
39860         Work around select() bug on Interix 3.5.
39861         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39862         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39863         * m4/select.m4: New file.
39864         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39865         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39866         * modules/select (Files): Add m4/select.m4.
39867         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39868         * modules/nanosleep (Depends-on): Add select.
39869         * modules/poll (Depends-on): Likewise.
39870         * doc/posix-functions/select.texi: Mention the Interix bug.
39871         Reported by Markus Duft <mduft@gentoo.org>.
39872
39873         * lib/select.c: Renamed from lib/winsock-select.c.
39874         * modules/select (Files): Add lib/select.c, remove
39875         lib/winsock-select.c.
39876         (configure.ac): Update.
39877
39878 2009-03-12  Jim Meyering  <meyering@redhat.com>
39879
39880         avoid gcc warnings about unused macro definitions
39881         * lib/readtokens.c (STREQ): Remove unused definition.
39882         * lib/xmalloc.c (SIZE_MAX): Likewise.
39883         * lib/openat-die.c (N_): Likewise.
39884         * lib/mountlist.c (SIZE_MAX): Remove definition.
39885         Instead, include <stdint.h>.
39886         * lib/readutmp.c: Likewise.
39887         * modules/readutmp (Depends-on): Add stdint.
39888         * modules/mountlist (Depends-on): Add stdint.
39889         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39890
39891 2009-03-10  Bruno Haible  <bruno@clisp.org>
39892
39893         Tests for module 'mbmemcasecoll'.
39894         * modules/mbmemcasecoll-tests: New file.
39895         * tests/test-mbmemcasecoll1.sh: New file.
39896         * tests/test-mbmemcasecoll2.sh: New file.
39897         * tests/test-mbmemcasecoll3.sh: New file.
39898         * tests/test-mbmemcasecoll.c: New file.
39899
39900         New module 'mbmemcasecoll'.
39901         * lib/mbmemcasecoll.h: New file.
39902         * lib/mbmemcasecoll.c: New file.
39903         * modules/mbmemcasecoll: New file.
39904
39905         * tests/test-mbmemcasecmp.h: New file, extracted from
39906         tests/test-mbmemcasecmp.c.
39907         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39908         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39909         (main): Update.
39910         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39911
39912 2009-03-09  Bruno Haible  <bruno@clisp.org>
39913
39914         Tests for module 'mbmemcasecmp'.
39915         * modules/mbmemcasecmp-tests: New file.
39916         * tests/test-mbmemcasecmp1.sh: New file.
39917         * tests/test-mbmemcasecmp2.sh: New file.
39918         * tests/test-mbmemcasecmp3.sh: New file.
39919         * tests/test-mbmemcasecmp.c: New file.
39920
39921         New module 'mbmemcasecmp'.
39922         * lib/mbmemcasecmp.h: New file.
39923         * lib/mbmemcasecmp.c: New file.
39924         * modules/mbmemcasecmp: New file.
39925
39926 2009-03-09  Bruno Haible  <bruno@clisp.org>
39927
39928         Tests for module 'unicase/ulc-casecoll'.
39929         * modules/unicase/ulc-casecoll-tests: New file.
39930         * tests/unicase/test-ulc-casecoll1.sh: New file.
39931         * tests/unicase/test-ulc-casecoll2.sh: New file.
39932         * tests/unicase/test-ulc-casecoll.c: New file.
39933
39934         New module 'unicase/ulc-casecoll'.
39935         * lib/unicase.h (ulc_casecoll): New declaration.
39936         * lib/unicase/ulc-casecoll.c: New file.
39937         * modules/unicase/ulc-casecoll: New file.
39938
39939         New module 'unicase/ulc-casexfrm'.
39940         * lib/unicase.h (ulc_casexfrm): New declaration.
39941         * lib/unicase/ulc-casexfrm.c: New file.
39942         * modules/unicase/ulc-casexfrm: New file.
39943
39944 2009-03-09  Bruno Haible  <bruno@clisp.org>
39945
39946         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39947         invocations.
39948
39949         * m4/mbscasecmp.m4: Remove file.
39950         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39951         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39952
39953         * m4/mbscasestr.m4: Remove file.
39954         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39955         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39956
39957         * m4/mbschr.m4: Remove file.
39958         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39959         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39960
39961         * m4/mbscspn.m4: Remove file.
39962         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39963         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39964
39965         * m4/mbslen.m4: Remove file.
39966         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39967         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39968
39969         * m4/mbsncasecmp.m4: Remove file.
39970         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39971         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39972
39973         * m4/mbsnlen.m4: Remove file.
39974         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39975         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39976
39977         * m4/mbspbrk.m4: Remove file.
39978         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39979         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39980
39981         * m4/mbspcasecmp.m4: Remove file.
39982         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39983         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39984
39985         * m4/mbsrchr.m4: Remove file.
39986         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39987         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39988
39989         * m4/mbssep.m4: Remove file.
39990         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39991         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39992
39993         * m4/mbsspn.m4: Remove file.
39994         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39995         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39996
39997         * m4/mbsstr.m4: Remove file.
39998         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39999         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40000
40001         * m4/mbstok_r.m4: Remove file.
40002         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40003         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40004
40005         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40006
40007         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40008         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40009
40010         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40011
40012 2009-03-08  Bruno Haible  <bruno@clisp.org>
40013
40014         Tests for module 'unicase/ulc-casecmp'.
40015         * modules/unicase/ulc-casecmp-tests: New file.
40016         * tests/unicase/test-ulc-casecmp1.sh: New file.
40017         * tests/unicase/test-ulc-casecmp2.sh: New file.
40018         * tests/unicase/test-ulc-casecmp.c: New file.
40019
40020         New module 'unicase/ulc-casecmp'.
40021         * lib/unicase.h (ulc_casecmp): New declaration.
40022         * lib/unicase/ulc-casecmp.c: New file.
40023         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40024         'const SRC_UNIT *'.
40025         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40026         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40027         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40028         * modules/unicase/ulc-casecmp: New file.
40029
40030         Tests for module 'unicase/u32-is-cased'.
40031         * modules/unicase/u32-is-cased-tests: New file.
40032         * tests/unicase/test-u32-is-cased.c: New file.
40033
40034         Tests for module 'unicase/u16-is-cased'.
40035         * modules/unicase/u16-is-cased-tests: New file.
40036         * tests/unicase/test-u16-is-cased.c: New file.
40037
40038         Tests for module 'unicase/u8-is-cased'.
40039         * modules/unicase/u8-is-cased-tests: New file.
40040         * tests/unicase/test-u8-is-cased.c: New file.
40041         * tests/unicase/test-is-cased.h: New file.
40042
40043         New module 'unicase/u32-is-cased'.
40044         * lib/unicase/u32-is-cased.c: New file.
40045         * modules/unicase/u32-is-cased: New file.
40046
40047         New module 'unicase/u16-is-cased'.
40048         * lib/unicase/u16-is-cased.c: New file.
40049         * modules/unicase/u16-is-cased: New file.
40050
40051         New module 'unicase/u8-is-cased'.
40052         * lib/unicase/u8-is-cased.c: New file.
40053         * lib/unicase/u-is-cased.h: New file.
40054         * modules/unicase/u8-is-cased: New file.
40055
40056         Tests for module 'unicase/u32-is-casefolded'.
40057         * modules/unicase/u32-is-casefolded-tests: New file.
40058         * tests/unicase/test-u32-is-casefolded.c: New file.
40059
40060         Tests for module 'unicase/u16-is-casefolded'.
40061         * modules/unicase/u16-is-casefolded-tests: New file.
40062         * tests/unicase/test-u16-is-casefolded.c: New file.
40063
40064         Tests for module 'unicase/u8-is-casefolded'.
40065         * modules/unicase/u8-is-casefolded-tests: New file.
40066         * tests/unicase/test-u8-is-casefolded.c: New file.
40067         * tests/unicase/test-is-casefolded.h: New file.
40068
40069         New module 'unicase/u32-is-casefolded'.
40070         * lib/unicase/u32-is-casefolded.c: New file.
40071         * modules/unicase/u32-is-casefolded: New file.
40072
40073         New module 'unicase/u16-is-casefolded'.
40074         * lib/unicase/u16-is-casefolded.c: New file.
40075         * modules/unicase/u16-is-casefolded: New file.
40076
40077         New module 'unicase/u8-is-casefolded'.
40078         * lib/unicase/u8-is-casefolded.c: New file.
40079         * modules/unicase/u8-is-casefolded: New file.
40080
40081         Tests for module 'unicase/u32-is-titlecase'.
40082         * modules/unicase/u32-is-titlecase-tests: New file.
40083         * tests/unicase/test-u32-is-titlecase.c: New file.
40084
40085         Tests for module 'unicase/u16-is-titlecase'.
40086         * modules/unicase/u16-is-titlecase-tests: New file.
40087         * tests/unicase/test-u16-is-titlecase.c: New file.
40088
40089         Tests for module 'unicase/u8-is-titlecase'.
40090         * modules/unicase/u8-is-titlecase-tests: New file.
40091         * tests/unicase/test-u8-is-titlecase.c: New file.
40092         * tests/unicase/test-is-titlecase.h: New file.
40093
40094         New module 'unicase/u32-is-titlecase'.
40095         * lib/unicase/u32-is-titlecase.c: New file.
40096         * modules/unicase/u32-is-titlecase: New file.
40097
40098         New module 'unicase/u16-is-titlecase'.
40099         * lib/unicase/u16-is-titlecase.c: New file.
40100         * modules/unicase/u16-is-titlecase: New file.
40101
40102         New module 'unicase/u8-is-titlecase'.
40103         * lib/unicase/u8-is-titlecase.c: New file.
40104         * modules/unicase/u8-is-titlecase: New file.
40105
40106         Tests for module 'unicase/u32-is-lowercase'.
40107         * modules/unicase/u32-is-lowercase-tests: New file.
40108         * tests/unicase/test-u32-is-lowercase.c: New file.
40109
40110         Tests for module 'unicase/u16-is-lowercase'.
40111         * modules/unicase/u16-is-lowercase-tests: New file.
40112         * tests/unicase/test-u16-is-lowercase.c: New file.
40113
40114         Tests for module 'unicase/u8-is-lowercase'.
40115         * modules/unicase/u8-is-lowercase-tests: New file.
40116         * tests/unicase/test-u8-is-lowercase.c: New file.
40117         * tests/unicase/test-is-lowercase.h: New file.
40118
40119         New module 'unicase/u32-is-lowercase'.
40120         * lib/unicase/u32-is-lowercase.c: New file.
40121         * modules/unicase/u32-is-lowercase: New file.
40122
40123         New module 'unicase/u16-is-lowercase'.
40124         * lib/unicase/u16-is-lowercase.c: New file.
40125         * modules/unicase/u16-is-lowercase: New file.
40126
40127         New module 'unicase/u8-is-lowercase'.
40128         * lib/unicase/u8-is-lowercase.c: New file.
40129         * modules/unicase/u8-is-lowercase: New file.
40130
40131         Tests for module 'unicase/u32-is-uppercase'.
40132         * modules/unicase/u32-is-uppercase-tests: New file.
40133         * tests/unicase/test-u32-is-uppercase.c: New file.
40134
40135         Tests for module 'unicase/u16-is-uppercase'.
40136         * modules/unicase/u16-is-uppercase-tests: New file.
40137         * tests/unicase/test-u16-is-uppercase.c: New file.
40138
40139         Tests for module 'unicase/u8-is-uppercase'.
40140         * modules/unicase/u8-is-uppercase-tests: New file.
40141         * tests/unicase/test-u8-is-uppercase.c: New file.
40142         * tests/unicase/test-is-uppercase.h: New file.
40143
40144         New module 'unicase/u32-is-uppercase'.
40145         * lib/unicase/u32-is-uppercase.c: New file.
40146         * modules/unicase/u32-is-uppercase: New file.
40147
40148         New module 'unicase/u16-is-uppercase'.
40149         * lib/unicase/u16-is-uppercase.c: New file.
40150         * modules/unicase/u16-is-uppercase: New file.
40151
40152         New module 'unicase/u8-is-uppercase'.
40153         * lib/unicase/u8-is-uppercase.c: New file.
40154         * modules/unicase/u8-is-uppercase: New file.
40155
40156         New module 'unicase/u32-is-invariant'.
40157         * lib/unicase/u32-is-invariant.c: New file.
40158         * modules/unicase/u32-is-invariant: New file.
40159
40160         New module 'unicase/u16-is-invariant'.
40161         * lib/unicase/u16-is-invariant.c: New file.
40162         * modules/unicase/u16-is-invariant: New file.
40163
40164         New module 'unicase/u8-is-invariant'.
40165         * lib/unicase/u8-is-invariant.c: New file.
40166         * lib/unicase/invariant.h: New file.
40167         * lib/unicase/u-is-invariant.h: New file.
40168         * modules/unicase/u8-is-invariant: New file.
40169
40170         Tests for module 'unicase/u32-casecoll'.
40171         * modules/unicase/u32-casecoll-tests: New file.
40172         * tests/unicase/test-u32-casecoll.c: New file.
40173
40174         Tests for module 'unicase/u16-casecoll'.
40175         * modules/unicase/u16-casecoll-tests: New file.
40176         * tests/unicase/test-u16-casecoll.c: New file.
40177
40178         Tests for module 'unicase/u8-casecoll'.
40179         * modules/unicase/u8-casecoll-tests: New file.
40180         * tests/unicase/test-u8-casecoll.c: New file.
40181
40182         New module 'unicase/u32-casecoll'.
40183         * lib/unicase/u32-casecoll.c: New file.
40184         * modules/unicase/u32-casecoll: New file.
40185
40186         New module 'unicase/u16-casecoll'.
40187         * lib/unicase/u16-casecoll.c: New file.
40188         * modules/unicase/u16-casecoll: New file.
40189
40190         New module 'unicase/u8-casecoll'.
40191         * lib/unicase/u8-casecoll.c: New file.
40192         * lib/unicase/u-casecoll.h: New file.
40193         * modules/unicase/u8-casecoll: New file.
40194
40195         New module 'unicase/u32-casexfrm'.
40196         * lib/unicase/u32-casexfrm.c: New file.
40197         * modules/unicase/u32-casexfrm: New file.
40198
40199         New module 'unicase/u16-casexfrm'.
40200         * lib/unicase/u16-casexfrm.c: New file.
40201         * modules/unicase/u16-casexfrm: New file.
40202
40203         New module 'unicase/u8-casexfrm'.
40204         * lib/unicase/u8-casexfrm.c: New file.
40205         * lib/unicase/u-casexfrm.h: New file.
40206         * modules/unicase/u8-casexfrm: New file.
40207
40208         Tests for module 'unicase/u32-casecmp'.
40209         * modules/unicase/u32-casecmp-tests: New file.
40210         * tests/unicase/test-u32-casecmp.c: New file.
40211
40212         Tests for module 'unicase/u16-casecmp'.
40213         * modules/unicase/u16-casecmp-tests: New file.
40214         * tests/unicase/test-u16-casecmp.c: New file.
40215
40216         Tests for module 'unicase/u8-casecmp'.
40217         * modules/unicase/u8-casecmp-tests: New file.
40218         * tests/unicase/test-u8-casecmp.c: New file.
40219         * tests/unicase/test-casecmp.h: New file.
40220
40221         New module 'unicase/u32-casecmp'.
40222         * lib/unicase/u32-casecmp.c: New file.
40223         * modules/unicase/u32-casecmp: New file.
40224
40225         New module 'unicase/u16-casecmp'.
40226         * lib/unicase/u16-casecmp.c: New file.
40227         * modules/unicase/u16-casecmp: New file.
40228
40229         New module 'unicase/u8-casecmp'.
40230         * lib/unicase/u8-casecmp.c: New file.
40231         * lib/unicase/u-casecmp.h: New file.
40232         * modules/unicase/u8-casecmp: New file.
40233
40234         Tests for module 'unicase/u32-casefold'.
40235         * modules/unicase/u32-casefold-tests: New file.
40236         * tests/unicase/test-u32-casefold.c: New file.
40237
40238         Tests for module 'unicase/u16-casefold'.
40239         * modules/unicase/u16-casefold-tests: New file.
40240         * tests/unicase/test-u16-casefold.c: New file.
40241
40242         Tests for module 'unicase/u8-casefold'.
40243         * modules/unicase/u8-casefold-tests: New file.
40244         * tests/unicase/test-u8-casefold.c: New file.
40245
40246         New module 'unicase/u32-casefold'.
40247         * lib/unicase/u32-casefold.c: New file.
40248         * modules/unicase/u32-casefold: New file.
40249
40250         New module 'unicase/u16-casefold'.
40251         * lib/unicase/u16-casefold.c: New file.
40252         * modules/unicase/u16-casefold: New file.
40253
40254         New module 'unicase/u8-casefold'.
40255         * lib/unicase/u8-casefold.c: New file.
40256         * lib/unicase/u-casefold.h: New file.
40257         * modules/unicase/u8-casefold: New file.
40258
40259         New module 'unicase/tocasefold'.
40260         * lib/unicase/casefold.h: New file.
40261         * lib/unicase/tocasefold.c: New file.
40262         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40263         * modules/unicase/tocasefold: New file.
40264
40265         Tests for module 'unicase/u32-totitle'.
40266         * modules/unicase/u32-totitle-tests: New file.
40267         * tests/unicase/test-u32-totitle.c: New file.
40268
40269         Tests for module 'unicase/u16-totitle'.
40270         * modules/unicase/u16-totitle-tests: New file.
40271         * tests/unicase/test-u16-totitle.c: New file.
40272
40273         Tests for module 'unicase/u8-totitle'.
40274         * modules/unicase/u8-totitle-tests: New file.
40275         * tests/unicase/test-u8-totitle.c: New file.
40276
40277         New module 'unicase/u32-totitle'.
40278         * lib/unicase/u32-totitle.c: New file.
40279         * modules/unicase/u32-totitle: New file.
40280
40281         New module 'unicase/u16-totitle'.
40282         * lib/unicase/u16-totitle.c: New file.
40283         * modules/unicase/u16-totitle: New file.
40284
40285         New module 'unicase/u8-totitle'.
40286         * lib/unicase/u8-totitle.c: New file.
40287         * lib/unicase/u-totitle.h: New file.
40288         * modules/unicase/u8-totitle: New file.
40289
40290         Tests for module 'unicase/u32-tolower'.
40291         * modules/unicase/u32-tolower-tests: New file.
40292         * tests/unicase/test-u32-tolower.c: New file.
40293
40294         Tests for module 'unicase/u16-tolower'.
40295         * modules/unicase/u16-tolower-tests: New file.
40296         * tests/unicase/test-u16-tolower.c: New file.
40297
40298         Tests for module 'unicase/u8-tolower'.
40299         * modules/unicase/u8-tolower-tests: New file.
40300         * tests/unicase/test-u8-tolower.c: New file.
40301
40302         New module 'unicase/u32-tolower'.
40303         * lib/unicase/u32-tolower.c: New file.
40304         * modules/unicase/u32-tolower: New file.
40305
40306         New module 'unicase/u16-tolower'.
40307         * lib/unicase/u16-tolower.c: New file.
40308         * modules/unicase/u16-tolower: New file.
40309
40310         New module 'unicase/u8-tolower'.
40311         * lib/unicase/u8-tolower.c: New file.
40312         * modules/unicase/u8-tolower: New file.
40313
40314         Tests for module 'unicase/u32-toupper'.
40315         * modules/unicase/u32-toupper-tests: New file.
40316         * tests/unicase/test-u32-toupper.c: New file.
40317
40318         Tests for module 'unicase/u16-toupper'.
40319         * modules/unicase/u16-toupper-tests: New file.
40320         * tests/unicase/test-u16-toupper.c: New file.
40321
40322         Tests for module 'unicase/u8-toupper'.
40323         * modules/unicase/u8-toupper-tests: New file.
40324         * tests/unicase/test-u8-toupper.c: New file.
40325
40326         New module 'unicase/u32-toupper'.
40327         * lib/unicase/u32-toupper.c: New file.
40328         * modules/unicase/u32-toupper: New file.
40329
40330         New module 'unicase/u16-toupper'.
40331         * lib/unicase/u16-toupper.c: New file.
40332         * modules/unicase/u16-toupper: New file.
40333
40334         New module 'unicase/u8-toupper'.
40335         * lib/unicase/u8-toupper.c: New file.
40336         * modules/unicase/u8-toupper: New file.
40337
40338         New module 'unicase/u32-casemap'.
40339         * lib/unicase/u32-casemap.c: New file.
40340         * modules/unicase/u32-casemap: New file.
40341
40342         New module 'unicase/u16-casemap'.
40343         * lib/unicase/u16-casemap.c: New file.
40344         * modules/unicase/u16-casemap: New file.
40345
40346         New module 'unicase/u8-casemap'.
40347         * lib/unicase/unicasemap.h: New file.
40348         * lib/unicase/u8-casemap.c: New file.
40349         * lib/unicase/u-casemap.h: New file.
40350         * modules/unicase/u8-casemap: New file.
40351
40352         New module 'unicase/special-casing'.
40353         * lib/unicase/special-casing.h: New file.
40354         * lib/unicase/special-casing.c: New file.
40355         * lib/unicase/special-casing-table.gperf: New file, generated by
40356         gen-uni-tables.c.
40357         * modules/unicase/special-casing: New file.
40358
40359         Tests for module 'unicase/locale-language'.
40360         * modules/unicase/locale-language-tests: New file.
40361         * tests/unicase/test-locale-language.sh: New file.
40362         * tests/unicase/test-locale-language.c: New file.
40363
40364         New module 'unicase/locale-language'.
40365         * lib/unicase/locale-language.c: New file.
40366         * lib/unicase/locale-languages.gperf: New file.
40367         * modules/unicase/locale-language: New file.
40368
40369         Generate more tables for case conversion and case folding.
40370         * lib/gen-uni-tables.c (SCC_*): New enum items.
40371         (struct special_casing_rule): New type.
40372         (casing_rules, num_casing_rules, allocated_casing_rules): New
40373         variables.
40374         (add_casing_rule, fill_casing_rules): New functions.
40375         (struct casefold_rule): New type.
40376         (casefolding_rules, num_casefolding_rules,
40377         allocated_casefolding_rules): New variables.
40378         (fill_casefolding_rules): New function.
40379         (unicode_casefold): New variable.
40380         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40381         sort_casing_rules, output_casing_rules): New functions.
40382         (main): Accept to more arguments: SpecialCasing.txt and
40383         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40384         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40385         Output mapping for casefolding.
40386
40387         * lib/unicase.h: Include stdbool.h, uninorm.h.
40388         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40389         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40390         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40391         arguments.
40392         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40393         resultp arguments.
40394         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40395         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40396         resultp arguments.
40397         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40398         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40399         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40400         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40401         declarations.
40402         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40403
40404 2009-03-08  Bruno Haible  <bruno@clisp.org>
40405
40406         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40407         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40408         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40409         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40410
40411 2009-03-07  Bruno Haible  <bruno@clisp.org>
40412
40413         Adjust u*_normcmp, u*_normcoll API.
40414         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40415         u16_normcoll, u32_normcoll): Change failure conventions.
40416         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40417         errno and return -1.
40418         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40419
40420 2009-03-07  Bruno Haible  <bruno@clisp.org>
40421
40422         Tests for module 'uninorm/u32-normcoll'.
40423         * modules/uninorm/u32-normcoll-tests: New file.
40424         * tests/uninorm/test-u32-normcoll.c: New file.
40425
40426         Tests for module 'uninorm/u16-normcoll'.
40427         * modules/uninorm/u16-normcoll-tests: New file.
40428         * tests/uninorm/test-u16-normcoll.c: New file.
40429
40430         Tests for module 'uninorm/u8-normcoll'.
40431         * modules/uninorm/u8-normcoll-tests: New file.
40432         * tests/uninorm/test-u8-normcoll.c: New file.
40433
40434 2009-03-07  Bruno Haible  <bruno@clisp.org>
40435
40436         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40437         tests/uninorm/test-u32-normcmp.c.
40438         * tests/uninorm/test-u32-normcmp.c: Include it.
40439         (test_nonascii): New function, extracted from main. Add some more
40440         tests.
40441         (main): Invoke test_ascii and test_nonascii.
40442         * modules/uninorm/u32-normcmp-tests (Files): Add
40443         tests/uninorm/test-u32-normcmp.h.
40444         (Depends-on): Remove uninorm/u32-normcmp.
40445
40446         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40447         tests/uninorm/test-u16-normcmp.c.
40448         * tests/uninorm/test-u16-normcmp.c: Include it.
40449         (test_nonascii): New function, extracted from main. Add some more
40450         tests.
40451         (main): Invoke test_ascii and test_nonascii.
40452         * modules/uninorm/u16-normcmp-tests (Files): Add
40453         tests/uninorm/test-u16-normcmp.h.
40454         (Depends-on): Remove uninorm/u16-normcmp.
40455
40456         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40457         tests/uninorm/test-u8-normcmp.c.
40458         * tests/uninorm/test-u8-normcmp.c: Include it.
40459         (test_nonascii): New function, extracted from main. Add some more
40460         tests.
40461         (main): Invoke test_ascii and test_nonascii.
40462         * modules/uninorm/u8-normcmp-tests (Files): Add
40463         tests/uninorm/test-u8-normcmp.h.
40464         (Depends-on): Remove uninorm/u8-normcmp.
40465
40466 2009-03-07  Bruno Haible  <bruno@clisp.org>
40467
40468         New module 'uninorm/u32-normcoll'.
40469         * lib/uninorm/u32-normcoll.c: New file.
40470         * modules/uninorm/u32-normcoll: New file.
40471
40472         New module 'uninorm/u16-normcoll'.
40473         * lib/uninorm/u16-normcoll.c: New file.
40474         * modules/uninorm/u16-normcoll: New file.
40475
40476         New module 'uninorm/u8-normcoll'.
40477         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40478         declarations.
40479         * lib/uninorm/u8-normcoll.c: New file.
40480         * lib/uninorm/u-normcoll.h: New file.
40481         * modules/uninorm/u8-normcoll: New file.
40482
40483         New module 'uninorm/u32-normxfrm'.
40484         * lib/uninorm/u32-normxfrm.c: New file.
40485         * modules/uninorm/u32-normxfrm: New file.
40486
40487         New module 'uninorm/u16-normxfrm'.
40488         * lib/uninorm/u16-normxfrm.c: New file.
40489         * modules/uninorm/u16-normxfrm: New file.
40490
40491         New module 'uninorm/u8-normxfrm'.
40492         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40493         declarations.
40494         * lib/uninorm/u8-normxfrm.c: New file.
40495         * lib/uninorm/u-normxfrm.h: New file.
40496         * modules/uninorm/u8-normxfrm: New file.
40497
40498 2009-03-07  Bruno Haible  <bruno@clisp.org>
40499
40500         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40501         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40502         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40503
40504 2009-03-07  Bruno Haible  <bruno@clisp.org>
40505
40506         New module 'memxfrm'.
40507         * lib/memxfrm.h: New file.
40508         * lib/memxfrm.c: New file.
40509         * modules/memxfrm: New file.
40510
40511 2009-03-07  Bruno Haible  <bruno@clisp.org>
40512
40513         New module 'memcmp2'.
40514         * lib/memcmp2.h: New file.
40515         * lib/memcmp2.c: New file.
40516         * modules/memcmp2: New file.
40517
40518 2009-03-07  Bruno Haible  <bruno@clisp.org>
40519
40520         Tests for module 'uninorm/decomposing-form'.
40521         * modules/uninorm/decomposing-form-tests: New file.
40522         * tests/uninorm/test-decomposing-form.c: New file.
40523
40524         New module 'uninorm/decomposing-form'.
40525         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40526         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40527         Add 'decomposing_variant' field.
40528         * lib/uninorm/decomposing-form.c: New file.
40529         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40530         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40531         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40532         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40533         * modules/uninorm/decomposing-form: New file.
40534         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40535         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40536
40537 2009-03-07  Bruno Haible  <bruno@clisp.org>
40538
40539         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40540         strings.
40541
40542 2009-03-06  Bruno Haible  <bruno@clisp.org>
40543
40544         Tests for module 'uninorm/u32-normcmp'.
40545         * tests/uninorm/test-u32-normcmp.c: New file.
40546         * modules/uninorm/u32-normcmp-tests: New file.
40547
40548         Tests for module 'uninorm/u16-normcmp'.
40549         * tests/uninorm/test-u16-normcmp.c: New file.
40550         * modules/uninorm/u16-normcmp-tests: New file.
40551
40552         Tests for module 'uninorm/u8-normcmp'.
40553         * tests/uninorm/test-u8-normcmp.c: New file.
40554         * modules/uninorm/u8-normcmp-tests: New file.
40555
40556         New module 'uninorm/u32-normcmp'.
40557         * lib/uninorm/u32-normcmp.c: New file.
40558         * modules/uninorm/u32-normcmp: New file.
40559
40560         New module 'uninorm/u16-normcmp'.
40561         * lib/uninorm/u16-normcmp.c: New file.
40562         * modules/uninorm/u16-normcmp: New file.
40563
40564         New module 'uninorm/u8-normcmp'.
40565         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40566         declarations.
40567         * lib/uninorm/u8-normcmp.c: New file.
40568         * lib/uninorm/u-normcmp.h: New file.
40569         * modules/uninorm/u8-normcmp: New file.
40570
40571 2009-03-06  Bruno Haible  <bruno@clisp.org>
40572
40573         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40574         Reported by Eric Blake.
40575
40576 2009-03-06  Eric Blake  <ebb9@byu.net>
40577             Bruno Haible  <bruno@clisp.org>
40578
40579         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40580         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40581         condition.
40582         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40583         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40584         condition.
40585         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40586
40587 2009-03-06  Eric Blake  <ebb9@byu.net>
40588
40589         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40590         to avoid compiler warnings.
40591         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40592
40593 2009-03-05  Bruno Haible  <bruno@clisp.org>
40594
40595         * tests/test-ftell.c (main): Disable test beyond end of file on
40596         FreeMiNT.
40597         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40598
40599 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40600
40601         * lib/filevercmp.c: Move hidden files up in ordering.
40602         * tests/test-filevercmp.c: Add tests for hidden files.
40603
40604 2009-03-04  Bruno Haible  <bruno@clisp.org>
40605
40606         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40607         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40608         AM_CFLAGS.
40609         Reported by Simon Josefsson.
40610
40611 2009-03-03  Bruno Haible  <bruno@clisp.org>
40612
40613         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40614         Reported by Simon Josefsson.
40615
40616         * doc/ld-version-script.texi: Update node reference.
40617
40618 2009-03-03  Bruno Haible  <bruno@clisp.org>
40619
40620         * modules/visibility (License): Change to 'unlimited'.
40621         Suggested by Simon Josefsson.
40622
40623 2009-03-03  Jim Meyering  <meyering@redhat.com>
40624
40625         unlinkdir: cannot_unlink_dir may modify process state
40626         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40627         it's neither thread-safe nor appropriate for use in a library.
40628
40629 2009-03-03  Eric Blake  <ebb9@byu.net>
40630
40631         test-closein: silence test under Darwin
40632         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40633         care if it dies from EPIPE or EBADF.
40634
40635 2009-03-03  Bruno Haible  <bruno@clisp.org>
40636
40637         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40638         earlier.
40639         * doc/visibility.texi: Fix @node and @section.
40640
40641 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40642
40643         * doc/gnulib.texi: Link to sections for ld version script and
40644         visibility.
40645         * doc/visibility.texi: Add @node and @section.
40646         * modules/ld-version-script: New module.
40647         * m4/ld-version-script.m4: New file.
40648         * doc/ld-version-script.texi: New file.
40649
40650 2009-03-02  David Lutterkort  <lutter@redhat.com>
40651
40652         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40654
40655 2009-03-02  Bruno Haible  <bruno@clisp.org>
40656
40657         * doc/visibility.texi: Mention libtool's -export-symbols option.
40658
40659 2009-03-02  Jim Meyering  <meyering@redhat.com>
40660
40661         announce-gen: new option: --no-print-checksums
40662         * build-aux/announce-gen (usage): Describe it.
40663         (print_checksums): Print a newline here, not in the [*] footnote.
40664         (main): Honor it.
40665
40666 2009-03-01  Bruno Haible  <bruno@clisp.org>
40667
40668         Use socklen_t in the native Windows replacements prototypes.
40669         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40670         instead of 'int'.
40671         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40672         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40673         * modules/getsockopt (Depends-on): Add socklen.
40674         * modules/setsockopt (Depends-on): Add socklen.
40675
40676 2009-03-01  Bruno Haible  <bruno@clisp.org>
40677
40678         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40679         least 4.2.
40680
40681 2009-03-01  Eric Blake  <ebb9@byu.net>
40682             Bruno Haible  <bruno@clisp.org>
40683
40684         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40685         error messages.
40686         * lib/wait-process.c (wait_subprocess): Omit error message about
40687         deadly signal sent to the child of termsigp != NULL.
40688
40689 2009-03-01  Eric Blake  <ebb9@byu.net>
40690
40691         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40692
40693 2009-03-01  Bruno Haible  <bruno@clisp.org>
40694
40695         Avoid a gcc warning.
40696         * tests/test-sched.c (b): Make global.
40697         Reported by Eric Blake.
40698
40699 2009-01-19  Martin Lambers  <marlam@marlam.de>
40700
40701         Provide POSIX semantics for socket timeout options on W32.
40702         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40703         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40704         * modules/setsockopt: Depend on sys_time module for struct timeval.
40705         * modules/getsockopt: Depend on sys_time module for struct timeval.
40706
40707 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40708
40709         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40710         __USE_GNU, for consistency with netdb.in.h.
40711         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40712
40713 2009-03-01  Bruno Haible  <bruno@clisp.org>
40714
40715         More support for FreeMiNT.
40716         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40717         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40718
40719 2009-03-01  Bruno Haible  <bruno@clisp.org>
40720
40721         More support for FreeMiNT.
40722         * lib/fpurge.c (fpurge): Correct last commit.
40723         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40724
40725 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40726
40727         Fix unportable awk script in vc-list-files.
40728         * build-aux/vc-list-files: In the replacement awk script, use
40729         substr with a second argument of 1, not zero.
40730         Report by Simon Josefsson.
40731
40732 2009-02-28  Bruno Haible  <bruno@clisp.org>
40733
40734         More support for FreeMiNT.
40735         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40736         to FreeMiNT today.
40737         * lib/fwriting.c (fwriting): Likewise.
40738         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40739
40740 2009-02-28  Bruno Haible  <bruno@clisp.org>
40741
40742         * tests/test-freadseek.c (main): Disable test beyond end of file on
40743         FreeMiNT.
40744         * tests/test-ftello.c (main): Likewise.
40745         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40746
40747 2009-02-28  Bruno Haible  <bruno@clisp.org>
40748
40749         Add tentative support for FreeMiNT.
40750         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40751         * lib/fpurge.c (fpurge): Likewise.
40752         * lib/freadable.c (freadable): Likewise.
40753         * lib/freading.c (freading): Likewise.
40754         * lib/freadptr.c (freadptr): Likewise.
40755         * lib/freadseek.c (freadptrinc): Likewise.
40756         * lib/fseeko.c (rpl_fseeko): Likewise.
40757         * lib/fseterr.c (fseterr): Likewise.
40758         * lib/fwritable.c (fwritable): Likewise.
40759         * lib/fwriting.c (fwriting): Likewise.
40760         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40761         Hourihane.
40762         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40763
40764 2009-02-28  Bruno Haible  <bruno@clisp.org>
40765
40766         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40767         SIGCHLD.
40768         Reported by Jim Meyering.
40769
40770 2009-02-28  Bruno Haible  <bruno@clisp.org>
40771
40772         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40773         Mention the results of these tests on various platforms.
40774         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40775         order.
40776         * doc/posix-functions/printf.texi: Likewise.
40777         * doc/posix-functions/snprintf.texi: Likewise.
40778         * doc/posix-functions/sprintf.texi: Likewise.
40779         * doc/posix-functions/vfprintf.texi: Likewise.
40780         * doc/posix-functions/vprintf.texi: Likewise.
40781         * doc/posix-functions/vsnprintf.texi: Likewise.
40782         * doc/posix-functions/vsprintf.texi: Likewise.
40783         * doc/glibc-functions/obstack_printf.texi: Likewise.
40784         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40785
40786 2009-02-28  Bruno Haible  <bruno@clisp.org>
40787
40788         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40789         Reported by Loïc Minier <lool@dooz.org>.
40790
40791 2009-02-27  Bruno Haible  <bruno@clisp.org>
40792
40793         * gnulib-tool (func_import): Make the sed expression used to create the
40794         sed script for updating the .gitignore file POSIX compliant.
40795         Reported by Eric Blake.
40796
40797 2009-02-27  Bruno Haible  <bruno@clisp.org>
40798
40799         * gnulib-tool (sed): Don't alias as "sed --posix".
40800         Reported by Eric Blake.
40801
40802 2009-02-27  Bruno Haible  <bruno@clisp.org>
40803
40804         Avoid test link errors.
40805         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40806         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40807         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40808         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40809         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40810
40811 2009-02-27  Bruno Haible  <bruno@clisp.org>
40812
40813         Avoid spurious "(cached)" in configure output.
40814         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40815         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40816         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40817         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40818         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40819         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40820         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40821         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40822         Reported by Eric Blake.
40823
40824 2009-02-27  Eric Blake  <ebb9@byu.net>
40825
40826         printf: fix regression in previous patch
40827         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40828
40829 2009-02-27  Bruno Haible  <bruno@clisp.org>
40830
40831         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40832         value.
40833         * lib/stdint.in.h: Likewise.
40834         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40835
40836 2009-02-27  Eric Blake  <ebb9@byu.net>
40837
40838         doc: mention more functions added in cygwin 1.7.0
40839         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40840         addition.
40841         * doc/posix-functions/open_wmemstream.texi: Likewise.
40842         * doc/posix-functions/wcsnlen.texi: Likewise.
40843         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40844         * doc/posix-functions/wcstod.texi: Likewise.
40845         * doc/posix-functions/wcstof.texi: Likewise.
40846         * doc/posix-functions/wcstoimax.texi: Likewise.
40847         * doc/posix-functions/wcstok.texi: Likewise.
40848         * doc/posix-functions/wcstoumax.texi: Likewise.
40849
40850         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40852         * doc/posix-functions/fprintf.texi: Update.
40853         * doc/posix-functions/printf.texi: Update.
40854         * doc/posix-functions/snprintf.texi: Update.
40855         * doc/posix-functions/sprintf.texi: Update.
40856         * doc/posix-functions/vfprintf.texi: Update.
40857         * doc/posix-functions/vprintf.texi: Update.
40858         * doc/posix-functions/vsnprintf.texi: Update.
40859         * doc/posix-functions/vsprintf.texi: Update.
40860         * doc/glibc-functions/obstack_printf.texi: Update.
40861         * doc/glibc-functions/obstack_vprintf.texi: Update.
40862
40863 2009-02-26  Eric Blake  <ebb9@byu.net>
40864
40865         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40866         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40867         compilation bug by using runtime conversion.
40868         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40869         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40870         * modules/ceill-tests (Files): Use nan.h.
40871         * modules/floorl-tests (Files): Likewise.
40872         * modules/frexpl-tests (Files): Likewise.
40873         * modules/isnanl-tests (Files): Likewise.
40874         * modules/ldexpl-tests (Files): Likewise.
40875         * modules/roundl-tests (Files): Likewise.
40876         * modules/truncl-tests (Files): Likewise.
40877         * tests/test-ceill.c (main): Use a working NaN.
40878         * tests/test-floorl.c (main): Likewise.
40879         * tests/test-frexpl.c (main): Likewise.
40880         * tests/test-isnan.c (test_long_double): Likewise.
40881         * tests/test-isnanl.h (main): Likewise.
40882         * tests/test-ldexpl.h (main): Likewise.
40883         * tests/test-roundl.h (main): Likewise.
40884         * tests/test-truncl.h (main): Likewise.
40885         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40886
40887 2009-02-26  Eric Blake  <ebb9@byu.net>
40888             Bruno Haible  <bruno@clisp.org>
40889
40890         Work around a *printf bug with %ls on Solaris.
40891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40892         precision is specified, sprintf stops converting the wide string
40893         argument when the number of bytes that have been produced by this
40894         conversion equals or exceeds the precision.
40895         * doc/posix-functions/fprintf.texi: Update.
40896         * doc/posix-functions/printf.texi: Update.
40897         * doc/posix-functions/snprintf.texi: Update.
40898         * doc/posix-functions/sprintf.texi: Update.
40899         * doc/posix-functions/vfprintf.texi: Update.
40900         * doc/posix-functions/vprintf.texi: Update.
40901         * doc/posix-functions/vsnprintf.texi: Update.
40902         * doc/posix-functions/vsprintf.texi: Update.
40903         * doc/glibc-functions/obstack_printf.texi: Update.
40904         * doc/glibc-functions/obstack_vprintf.texi: Update.
40905
40906 2009-02-26  Eric Blake  <ebb9@byu.net>
40907
40908         stdlib: favor compiler check of random.h
40909         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40910         to avoid an ObjC random.h installed by Swarm.
40911
40912 2009-02-26  Bruno Haible  <bruno@clisp.org>
40913
40914         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40915         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40916         Reported by Gary V. Vaughan <gary@gnu.org>.
40917
40918 2009-02-26  Bruno Haible  <bruno@clisp.org>
40919
40920         Fix *printf behaviour regarding the %ls directive.
40921         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40922         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40923         NEED_PRINTF_DIRECTIVE_LS.
40924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40925         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40927         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40928         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40929         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40930         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40931         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40932         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40933         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40934         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40935         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40936         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40937         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40938         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40939         * doc/posix-functions/fprintf.texi: Update.
40940         * doc/posix-functions/printf.texi: Update.
40941         * doc/posix-functions/snprintf.texi: Update.
40942         * doc/posix-functions/sprintf.texi: Update.
40943         * doc/posix-functions/vfprintf.texi: Update.
40944         * doc/posix-functions/vprintf.texi: Update.
40945         * doc/posix-functions/vsnprintf.texi: Update.
40946         * doc/posix-functions/vsprintf.texi: Update.
40947         * doc/glibc-functions/obstack_printf.texi: Update.
40948         * doc/glibc-functions/obstack_vprintf.texi: Update.
40949         Reported by Eric Blake.
40950
40951 2009-02-25  Bruno Haible  <bruno@clisp.org>
40952
40953         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40954         with known value.
40955         Reported by Gary V. Vaughan <gary@gnu.org>.
40956
40957 2009-02-25  Bruno Haible  <bruno@clisp.org>
40958
40959         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40960         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40961         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40962         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40963         Reported by Gary V. Vaughan <gary@gnu.org>.
40964
40965 2009-02-25  Bruno Haible  <bruno@clisp.org>
40966
40967         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40968         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40969         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40970         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40971         Reported by Gary V. Vaughan <gary@gnu.org>.
40972
40973 2009-02-25  Eric Blake  <ebb9@byu.net>
40974
40975         tests: skip fseek/ftell tests if ungetc is broken
40976         * m4/ungetc.m4: New file.
40977         * modules/fseek-tests: Split test, so ungetc dependency is
40978         separate from rest of test.
40979         * modules/fseeko-tests: Likewise.
40980         * modules/ftell-tests: Likewise.
40981         * modules/ftello-tests: Likewise.
40982         * tests/test-fseek.c (main): Isolate ungetc dependency.
40983         * tests/test-fseeko.c (main): Likewise.
40984         * tests/test-ftell.c (main): Likewise.
40985         * tests/test-ftello.c (main): Likewise.
40986         * tests/test-fseek2.sh: New file.
40987         * tests/test-fseeko2.sh: Likewise.
40988         * tests/test-ftell2.sh: Likewise.
40989         * tests/test-ftello2.sh: Likewise.
40990
40991 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40992
40993         test-getaddrinfo: fix usage of skip return code 77
40994         * tests/test-gettaddrinfo.c: Return skip code 77 only
40995         for first occurance of skip (4x77 is not 77)
40996
40997 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40998
40999         strtod: avoid C99 decl-after-statement
41000         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41001
41002 2009-02-24  Eric Blake  <ebb9@byu.net>
41003
41004         strtod: detect HP-UX 11.31 bug
41005         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41006         Reported by Gary V. Vaughan.
41007
41008 2009-02-23  Bruno Haible  <bruno@clisp.org>
41009
41010         Fix invalid read past end of memory block.
41011         * lib/vasnprintf.c (DCHAR_SET): Define.
41012         (local_wcslen): Define only when needed.
41013         (local_strnlen, local_wcsnlen): New functions.
41014         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41015         directives that involve a conversion ourselves.
41016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41017         wcsnlen, mbrtowc, wcrtomb.
41018         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41019         * tests/test-vasprintf-posix.c (test_function): Likewise.
41020         * tests/test-snprintf-posix.h (test_function): Likewise.
41021         * tests/test-sprintf-posix.h (test_function): Likewise.
41022         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41023
41024 2009-02-22  Bruno Haible  <bruno@clisp.org>
41025
41026         Implement new clarified decomposition of Hangul syllables.
41027         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41028         of type LTV, return only a pairwise decomposition.
41029         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41030         Likewise.
41031         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41032         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41033         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41034
41035 2009-02-22  Bruno Haible  <bruno@clisp.org>
41036
41037         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41038         zero-length results and shrink excess allocated memory.
41039         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41040         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41041         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41042         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41043         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41044         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41045         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41046         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41047         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41048         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41049         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41050         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41051
41052 2009-02-21  Bruno Haible  <bruno@clisp.org>
41053
41054         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41055         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41056         spaces after a period. Put a space between a macro name and its
41057         argument list. Trivial rewordings.
41058         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41059         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41060         (main): Return 0 explicitly.
41061
41062 2009-02-21  Bruno Haible  <bruno@clisp.org>
41063
41064         Tests for module 'uninorm/filter'.
41065         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41066         * modules/uninorm/filter-tests: New file.
41067
41068         New module 'uninorm/filter'.
41069         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41070         uninorm_filter_flush, uninorm_filter_free): New declarations.
41071         * lib/uninorm/uninorm-filter.c: New file.
41072         * modules/uninorm/filter: New file.
41073
41074 2009-02-21  Bruno Haible  <bruno@clisp.org>
41075
41076         Tests for module 'uninorm/nfkc'.
41077         * tests/uninorm/test-nfkc.c: New file.
41078         * tests/uninorm/test-u8-nfkc.c: New file.
41079         * tests/uninorm/test-u16-nfkc.c: New file.
41080         * tests/uninorm/test-u32-nfkc.c: New file.
41081         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41082         * tests/uninorm/test-u32-nfkc-big.c: New file.
41083         * modules/uninorm/nfkc-tests: New file.
41084
41085         New module 'uninorm/nfkc'.
41086         * lib/uninorm/nfkc.c: New file.
41087         * modules/uninorm/nfkc: New file.
41088
41089         Tests for module 'uninorm/nfkd'.
41090         * tests/uninorm/test-nfkd.c: New file.
41091         * tests/uninorm/test-u8-nfkd.c: New file.
41092         * tests/uninorm/test-u16-nfkd.c: New file.
41093         * tests/uninorm/test-u32-nfkd.c: New file.
41094         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41095         * tests/uninorm/test-u32-nfkd-big.c: New file.
41096         * modules/uninorm/nfkd-tests: New file.
41097
41098         New module 'uninorm/nfkd'.
41099         * lib/uninorm/nfkd.c: New file.
41100         * modules/uninorm/nfkd: New file.
41101
41102         Tests for module 'uninorm/nfc'.
41103         * tests/uninorm/test-nfc.c: New file.
41104         * tests/uninorm/test-u8-nfc.c: New file.
41105         * tests/uninorm/test-u16-nfc.c: New file.
41106         * tests/uninorm/test-u32-nfc.c: New file.
41107         * tests/uninorm/test-u32-nfc-big.sh: New file.
41108         * tests/uninorm/test-u32-nfc-big.c: New file.
41109         * modules/uninorm/nfc-tests: New file.
41110
41111         New module 'uninorm/nfc'.
41112         * lib/uninorm/nfc.c: New file.
41113         * modules/uninorm/nfc: New file.
41114
41115         Tests for module 'uninorm/nfd'.
41116         * tests/uninorm/test-nfd.c: New file.
41117         * tests/uninorm/test-u8-nfd.c: New file.
41118         * tests/uninorm/test-u16-nfd.c: New file.
41119         * tests/uninorm/test-u32-nfd.c: New file.
41120         * tests/uninorm/test-u32-nfd-big.sh: New file.
41121         * tests/uninorm/test-u32-nfd-big.c: New file.
41122         * tests/uninorm/test-u32-normalize-big.h: New file.
41123         * tests/uninorm/test-u32-normalize-big.c: New file.
41124         * tests/uninorm/NormalizationTest.txt: New file, created from
41125         Unicode 5.1.0 NormalizationTest.txt.
41126         * modules/uninorm/nfd-tests: New file.
41127
41128         New module 'uninorm/nfd'.
41129         * lib/uninorm/nfd.c: New file.
41130         * modules/uninorm/nfd: New file.
41131
41132         New module 'uninorm/u32-normalize'.
41133         * lib/uninorm/u32-normalize.c: New file.
41134         * modules/uninorm/u32-normalize: New file.
41135
41136         New module 'uninorm/u16-normalize'.
41137         * lib/uninorm/u16-normalize.c: New file.
41138         * modules/uninorm/u16-normalize: New file.
41139
41140         New module 'uninorm/u8-normalize'.
41141         * lib/uninorm/u8-normalize.c: New file.
41142         * lib/uninorm/normalize-internal.h: New file.
41143         * lib/uninorm/u-normalize-internal.h: New file.
41144         * modules/uninorm/u8-normalize: New file.
41145
41146         New module 'uninorm/decompose-internal'.
41147         * lib/uninorm/decompose-internal.c: New file.
41148         * modules/uninorm/decompose-internal: New file.
41149
41150         Tests for module 'uninorm/composition'.
41151         * tests/uninorm/test-composition.c: New file.
41152         * modules/uninorm/composition-tests: New file.
41153
41154         New module 'uninorm/composition'.
41155         * lib/uninorm/composition.c: New file.
41156         * lib/uninorm/composition-table.gperf: New file, generated by
41157         gen-uni-tables.
41158         * modules/uninorm/composition: New file.
41159
41160         Tests for module 'uninorm/compat-decomposition'.
41161         * tests/uninorm/test-compat-decomposition.c: New file.
41162         * modules/uninorm/compat-decomposition-tests: New file.
41163
41164         New module 'uninorm/compat-decomposition'.
41165         * lib/uninorm/decompose-internal.h: New file.
41166         * lib/uninorm/compat-decomposition.c: New file.
41167         * modules/uninorm/compat-decomposition: New file.
41168
41169         Tests for module 'uninorm/canonical-decomposition'.
41170         * tests/uninorm/test-canonical-decomposition.c: New file.
41171         * modules/uninorm/canonical-decomposition-tests: New file.
41172
41173         New module 'uninorm/canonical-decomposition'.
41174         * lib/uninorm/canonical-decomposition.c: New file.
41175         * modules/uninorm/canonical-decomposition: New file.
41176
41177         Tests for module 'uninorm/decomposition'.
41178         * tests/uninorm/test-decomposition.c: New file.
41179         * modules/uninorm/decomposition-tests: New file.
41180
41181         New module 'uninorm/decomposition'.
41182         * lib/uninorm/decomposition.c: New file.
41183         * modules/uninorm/decomposition: New file.
41184
41185         New module 'uninorm/decomposition-table'.
41186         * lib/uninorm/decomposition-table.h: New file.
41187         * lib/uninorm/decomposition-table.c: New file.
41188         * lib/uninorm/decomposition-table1.h: New file, generated by
41189         gen-uni-tables.
41190         * lib/uninorm/decomposition-table2.h: New file, generated by
41191         gen-uni-tables.
41192         * modules/uninorm/decomposition-table: New file.
41193
41194         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41195         (UC_DECOMP_*): New enumeration items.
41196         (get_decomposition): New function.
41197         (struct decomp_table): New type.
41198         (output_decomposition, output_decomposition_tables): New functions.
41199         (unicode_composition_exclusions): New variable.
41200         (fill_composition_exclusions, debug_output_composition_tables): New
41201         functions.
41202         (main): Accept one more argument. Invoke fill_composition_exclusions.
41203         Output decomposition and composition tables.
41204
41205         New module 'uninorm/base'.
41206         * lib/uninorm.h: New file.
41207         * lib/unictype.h: Update comment.
41208         * modules/uninorm/base: New file.
41209
41210 2009-02-21  David Lutterkort  <lutter@redhat.com>
41211
41212         Tests for module 'safe-alloc'.
41213         * tests/test-safe-alloc.c: New file.
41214         * modules/safe-alloc-tests: New file.
41215
41216         New module 'safe-alloc'.
41217         * lib/safe-alloc.h: New file.
41218         * lib/safe-alloc.c: New file.
41219         * m4/safe-alloc.m4: New file.
41220         * modules/safe-alloc: New file.
41221         * doc/safe-alloc.texi: New file.
41222         * doc/gnulib.texi: Include it.
41223         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41224         safe-alloc.
41225
41226 2009-02-18  Bruno Haible  <bruno@clisp.org>
41227
41228         Fix link error on non-glibc systems.
41229         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41230         variable.
41231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41232
41233 2009-02-18  Jim Meyering  <meyering@redhat.com>
41234
41235         fts: avoid used-uninitialized error due to recent change
41236         * lib/fts.c (fts_read): Guard uses of the new member,
41237         parent->fts_n_dirs_remaining, since it's not relevant for
41238         the parent of a directory specified on the command-line.
41239
41240 2009-02-17  James Youngman  <jay@gnu.org>
41241             Bruno Haible  <bruno@clisp.org>
41242
41243         * m4/include_next.m4: Reformulate comment.
41244
41245 2009-02-16  Jim Meyering  <meyering@redhat.com>
41246
41247         fts: add #if guards so that the fts_lgpl module still builds
41248         * lib/fts.c: Guard just-added hash-table-using parts with
41249         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41250         Reported by Simon Josefsson.
41251
41252 2009-02-15  Bruno Haible  <bruno@clisp.org>
41253
41254         * modules/array-mergesort-tests: New file.
41255         * tests/test-array-mergesort.c: New file.
41256
41257         New module 'array-mergesort'.
41258         * modules/array-mergesort: New file.
41259         * lib/array-mergesort.h: New file.
41260
41261 2009-02-15  Bruno Haible  <bruno@clisp.org>
41262
41263         Fix 2009-02-07 commit.
41264         * lib/gen-uni-tables.c (output_predicate, output_category,
41265         output_combclass, output_bidi_category, output_decimal_digit,
41266         output_digit, output_numeric, output_mirror, output_scripts,
41267         output_ident_category, output_simple_mapping): Fix format directives.
41268         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41269
41270 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41271
41272         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41273         fixes are available from IBM.
41274
41275 2009-02-13  Jim Meyering  <meyering@redhat.com>
41276
41277         fts: arrange not to stat non-directories in more cases
41278         This makes GNU find (when it doesn't need to stat each file)
41279         *much* more efficient at traversing reiserfs file systems.
41280         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41281         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41282         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41283         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41284         (leaf_optimization_applies): New function.
41285         (LCO_hash, LCO_compare): New helper functions.
41286         (link_count_optimize_ok): New function.
41287         (fts_stat): Initialize new member (if dir).
41288         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41289         we've just stat'ed a directory.  Skip the stat call when possible.
41290         ---
41291         Note this AFS-related exchange:
41292         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41293         and note find's pioctl call in find/fstype.c.
41294         But that is necessary only if you want to enable the
41295         optimization for AFS, and for now, I don't.
41296
41297         fts: move a function definition "up" (no semantic change)
41298         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41299         "up" to precede upcoming use of a related function.
41300
41301 2009-02-11  Jim Meyering  <meyering@redhat.com>
41302
41303         fts: correct internal computation of nlinks (optimization-related)
41304         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41305         whether the current entry is a directory, so don't test it.
41306
41307 2009-02-10  Bruno Haible  <bruno@clisp.org>
41308
41309         Tests for module 'uniwbrk/ulc-wordbreaks'.
41310         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41311         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41312         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41313
41314         Tests for module 'uniwbrk/u32-wordbreaks'.
41315         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41316         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41317
41318         Tests for module 'uniwbrk/u16-wordbreaks'.
41319         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41320         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41321
41322         Tests for module 'uniwbrk/u8-wordbreaks'.
41323         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41324         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41325
41326 2009-02-10  Bruno Haible  <bruno@clisp.org>
41327
41328         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41329         property.
41330         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41331         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41332         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41333
41334 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41335
41336         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41337         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41338
41339 2009-02-10  Bruno Haible  <bruno@clisp.org>
41340
41341         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41342         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41343         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41344         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41345         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41346         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41347
41348 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41349
41350         * lib/sockets.h (gl_fd_to_handle): New function.
41351
41352         * tests/test-sockets.c: Call gl_fd_to_handle.
41353
41354 2009-02-09  Bruno Haible  <bruno@clisp.org>
41355
41356         * doc/havelib.texi: Document the conventions on bi-arch systems.
41357
41358 2009-02-08  Bruno Haible  <bruno@clisp.org>
41359
41360         Document the AC_LIB_LINKFLAGS macro.
41361         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41362         * doc/gnulib.texi: Include it.
41363
41364 2009-02-08  Bruno Haible  <bruno@clisp.org>
41365
41366         Fix wrong order of sections, compared to TOC.
41367         * doc/gnulib.texi: Include relocatable-maint.texi after the
41368         "Regular expressions" node, not before.
41369
41370 2009-02-08  Bruno Haible  <bruno@clisp.org>
41371
41372         Tests for module 'unicase/totitle'.
41373         * modules/unicase/totitle-tests: New file.
41374
41375         Tests for module 'unicase/tolower'.
41376         * modules/unicase/tolower-tests: New file.
41377
41378         Tests for module 'unicase/toupper'.
41379         * modules/unicase/toupper-tests: New file.
41380         * tests/unicase/test-mapping-part1.h: New file.
41381         * tests/unicase/test-mapping-part2.h: New file.
41382
41383         New module 'unicase/totitle'.
41384         * modules/unicase/totitle: New file.
41385         * lib/unicase/totitle.c: New file.
41386
41387         New module 'unicase/tolower'.
41388         * modules/unicase/tolower: New file.
41389         * lib/unicase/tolower.c: New file.
41390
41391         New module 'unicase/toupper'.
41392         * modules/unicase/toupper: New file.
41393         * lib/unicase/toupper.c: New file.
41394         * lib/unicase/simple-mapping.h: New file.
41395
41396         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41397         (mapping_table): New structure.
41398         (output_simple_mapping): New function.
41399         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41400         * modules/gen-uni-tables (Description): Update.
41401         * lib/unicase/toupper.h: New file, automatically generated by
41402         gen-uni-tables.
41403         * lib/unicase/tolower.h: New file, automatically generated by
41404         gen-uni-tables.
41405         * lib/unicase/totitle.h: New file, automatically generated by
41406         gen-uni-tables.
41407         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41408         gen-uni-tables.
41409         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41410         gen-uni-tables.
41411         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41412         gen-uni-tables.
41413
41414         New module 'unicase/base'.
41415         * modules/unicase/base: New file.
41416         * lib/unicase.h: New file.
41417
41418 2009-02-08  Bruno Haible  <bruno@clisp.org>
41419
41420         New module 'uniwbrk/ulc-wordbreaks'.
41421         * modules/uniwbrk/ulc-wordbreaks: New file.
41422         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41423
41424         New module 'uniwbrk/u32-wordbreaks'.
41425         * modules/uniwbrk/u32-wordbreaks: New file.
41426         * lib/uniwbrk/u32-wordbreaks.c: New file.
41427
41428         New module 'uniwbrk/u16-wordbreaks'.
41429         * modules/uniwbrk/u16-wordbreaks: New file.
41430         * lib/uniwbrk/u16-wordbreaks.c: New file.
41431
41432         New module 'uniwbrk/u8-wordbreaks'.
41433         * modules/uniwbrk/u8-wordbreaks: New file.
41434         * lib/uniwbrk/u8-wordbreaks.c: New file.
41435         * lib/uniwbrk/u-wordbreaks.h: New file.
41436
41437         New module 'uniwbrk/table'.
41438         * modules/uniwbrk/table: New file.
41439         * lib/uniwbrk/wbrktable.h: New file.
41440         * lib/uniwbrk/wbrktable.c: New file.
41441
41442         New module 'uniwbrk/wordbreak-property'.
41443         * modules/uniwbrk/wordbreak-property: New file.
41444         * lib/uniwbrk/wordbreak-property.c: New file.
41445
41446         * lib/gen-uni-tables.c (WBP_*): New enum items.
41447         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41448         (unicode_org_wbp): New variable.
41449         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41450         New functions.
41451         (wbp_table): New structure.
41452         (output_wbp, output_wbrk_tables): New functions.
41453         (main): Accept additional argument. Invoke fill_org_wbp,
41454         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41455         output_wbrk_tables.
41456         * modules/gen-uni-tables (Description): Update.
41457         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41458         gen-uni-tables.
41459
41460         New module 'uniwbrk/base'.
41461         * modules/uniwbrk/base: New file.
41462         * lib/uniwbrk.h: New file.
41463
41464 2009-02-08  Bruno Haible  <bruno@clisp.org>
41465
41466         Update to Unicode 5.1.0.
41467         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41468         U+2185..U+2188.
41469         (is_property_default_ignorable_code_point): Don't include characters
41470         of category Cc or Cs and not-a-characters.
41471         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41472         U+0D79, U+109E, U+109F, U+A60C.
41473         * lib/unictype/bidi_of.h: Regenerated.
41474         * lib/unictype/blocks.h: Regenerated.
41475         * lib/unictype/categ_C.h: Regenerated.
41476         * lib/unictype/categ_Cf.h: Regenerated.
41477         * lib/unictype/categ_Cn.h: Regenerated.
41478         * lib/unictype/categ_L.h: Regenerated.
41479         * lib/unictype/categ_Ll.h: Regenerated.
41480         * lib/unictype/categ_Lm.h: Regenerated.
41481         * lib/unictype/categ_Lo.h: Regenerated.
41482         * lib/unictype/categ_Lu.h: Regenerated.
41483         * lib/unictype/categ_M.h: Regenerated.
41484         * lib/unictype/categ_Mc.h: Regenerated.
41485         * lib/unictype/categ_Me.h: Regenerated.
41486         * lib/unictype/categ_Mn.h: Regenerated.
41487         * lib/unictype/categ_N.h: Regenerated.
41488         * lib/unictype/categ_Nd.h: Regenerated.
41489         * lib/unictype/categ_Nl.h: Regenerated.
41490         * lib/unictype/categ_No.h: Regenerated.
41491         * lib/unictype/categ_P.h: Regenerated.
41492         * lib/unictype/categ_Pd.h: Regenerated.
41493         * lib/unictype/categ_Pe.h: Regenerated.
41494         * lib/unictype/categ_Pf.h: Regenerated.
41495         * lib/unictype/categ_Pi.h: Regenerated.
41496         * lib/unictype/categ_Po.h: Regenerated.
41497         * lib/unictype/categ_Ps.h: Regenerated.
41498         * lib/unictype/categ_S.h: Regenerated.
41499         * lib/unictype/categ_Sk.h: Regenerated.
41500         * lib/unictype/categ_Sm.h: Regenerated.
41501         * lib/unictype/categ_So.h: Regenerated.
41502         * lib/unictype/categ_of.h: Regenerated.
41503         * lib/unictype/combining.h: Regenerated.
41504         * lib/unictype/ctype_alnum.h: Regenerated.
41505         * lib/unictype/ctype_alpha.h: Regenerated.
41506         * lib/unictype/ctype_graph.h: Regenerated.
41507         * lib/unictype/ctype_lower.h: Regenerated.
41508         * lib/unictype/ctype_print.h: Regenerated.
41509         * lib/unictype/ctype_punct.h: Regenerated.
41510         * lib/unictype/ctype_upper.h: Regenerated.
41511         * lib/unictype/decdigit.h: Regenerated.
41512         * lib/unictype/digit.h: Regenerated.
41513         * lib/unictype/mirror.h: Regenerated.
41514         * lib/unictype/numeric.h: Regenerated.
41515         * lib/unictype/pr_alphabetic.h: Regenerated.
41516         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41517         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41518         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41519         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41520         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41521         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41522         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41523         * lib/unictype/pr_combining.h: Regenerated.
41524         * lib/unictype/pr_dash.h: Regenerated.
41525         * lib/unictype/pr_decimal_digit.h: Regenerated.
41526         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41527         * lib/unictype/pr_deprecated.h: Regenerated.
41528         * lib/unictype/pr_diacritic.h: Regenerated.
41529         * lib/unictype/pr_extender.h: Regenerated.
41530         * lib/unictype/pr_format_control.h: Regenerated.
41531         * lib/unictype/pr_grapheme_base.h: Regenerated.
41532         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41533         * lib/unictype/pr_grapheme_link.h: Regenerated.
41534         * lib/unictype/pr_id_continue.h: Regenerated.
41535         * lib/unictype/pr_id_start.h: Regenerated.
41536         * lib/unictype/pr_ideographic.h: Regenerated.
41537         * lib/unictype/pr_ignorable_control.h: Regenerated.
41538         * lib/unictype/pr_lowercase.h: Regenerated.
41539         * lib/unictype/pr_math.h: Regenerated.
41540         * lib/unictype/pr_numeric.h: Regenerated.
41541         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41542         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41543         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41544         * lib/unictype/pr_other_id_continue.h: Regenerated.
41545         * lib/unictype/pr_other_lowercase.h: Regenerated.
41546         * lib/unictype/pr_other_math.h: Regenerated.
41547         * lib/unictype/pr_punctuation.h: Regenerated.
41548         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41549         * lib/unictype/pr_soft_dotted.h: Regenerated.
41550         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41551         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41552         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41553         * lib/unictype/pr_uppercase.h: Regenerated.
41554         * lib/unictype/pr_xid_continue.h: Regenerated.
41555         * lib/unictype/pr_xid_start.h: Regenerated.
41556         * lib/unictype/pr_zero_width.h: Regenerated.
41557         * lib/unictype/scripts.h: Regenerated.
41558         * lib/unictype/scripts_byname.gperf: Regenerated.
41559         * lib/unictype/sy_java_ident.h: Regenerated.
41560         * lib/unilbrk/lbrkprop1.h: Regenerated.
41561         * lib/unilbrk/lbrkprop2.h: Regenerated.
41562         * tests/unictype/test-categ_C.c: Regenerated.
41563         * tests/unictype/test-categ_Cf.c: Regenerated.
41564         * tests/unictype/test-categ_Cn.c: Regenerated.
41565         * tests/unictype/test-categ_L.c: Regenerated.
41566         * tests/unictype/test-categ_Ll.c: Regenerated.
41567         * tests/unictype/test-categ_Lm.c: Regenerated.
41568         * tests/unictype/test-categ_Lo.c: Regenerated.
41569         * tests/unictype/test-categ_Lu.c: Regenerated.
41570         * tests/unictype/test-categ_M.c: Regenerated.
41571         * tests/unictype/test-categ_Mc.c: Regenerated.
41572         * tests/unictype/test-categ_Me.c: Regenerated.
41573         * tests/unictype/test-categ_Mn.c: Regenerated.
41574         * tests/unictype/test-categ_N.c: Regenerated.
41575         * tests/unictype/test-categ_Nd.c: Regenerated.
41576         * tests/unictype/test-categ_Nl.c: Regenerated.
41577         * tests/unictype/test-categ_No.c: Regenerated.
41578         * tests/unictype/test-categ_P.c: Regenerated.
41579         * tests/unictype/test-categ_Pd.c: Regenerated.
41580         * tests/unictype/test-categ_Pe.c: Regenerated.
41581         * tests/unictype/test-categ_Pf.c: Regenerated.
41582         * tests/unictype/test-categ_Pi.c: Regenerated.
41583         * tests/unictype/test-categ_Po.c: Regenerated.
41584         * tests/unictype/test-categ_Ps.c: Regenerated.
41585         * tests/unictype/test-categ_S.c: Regenerated.
41586         * tests/unictype/test-categ_Sk.c: Regenerated.
41587         * tests/unictype/test-categ_Sm.c: Regenerated.
41588         * tests/unictype/test-categ_So.c: Regenerated.
41589         * tests/unictype/test-ctype_alnum.c: Regenerated.
41590         * tests/unictype/test-ctype_alpha.c: Regenerated.
41591         * tests/unictype/test-ctype_graph.c: Regenerated.
41592         * tests/unictype/test-ctype_lower.c: Regenerated.
41593         * tests/unictype/test-ctype_print.c: Regenerated.
41594         * tests/unictype/test-ctype_punct.c: Regenerated.
41595         * tests/unictype/test-ctype_upper.c: Regenerated.
41596         * tests/unictype/test-decdigit.h: Regenerated.
41597         * tests/unictype/test-digit.h: Regenerated.
41598         * tests/unictype/test-numeric.h: Regenerated.
41599         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41600         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41601         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41602         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41603         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41604         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41605         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41606         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41607         * tests/unictype/test-pr_combining.c: Regenerated.
41608         * tests/unictype/test-pr_dash.c: Regenerated.
41609         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41610         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41611         * tests/unictype/test-pr_deprecated.c: Regenerated.
41612         * tests/unictype/test-pr_diacritic.c: Regenerated.
41613         * tests/unictype/test-pr_extender.c: Regenerated.
41614         * tests/unictype/test-pr_format_control.c: Regenerated.
41615         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41616         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41617         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41618         * tests/unictype/test-pr_id_continue.c: Regenerated.
41619         * tests/unictype/test-pr_id_start.c: Regenerated.
41620         * tests/unictype/test-pr_ideographic.c: Regenerated.
41621         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41622         * tests/unictype/test-pr_lowercase.c: Regenerated.
41623         * tests/unictype/test-pr_math.c: Regenerated.
41624         * tests/unictype/test-pr_numeric.c: Regenerated.
41625         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41626         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41627         Regenerated.
41628         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41629         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41630         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41631         * tests/unictype/test-pr_other_math.c: Regenerated.
41632         * tests/unictype/test-pr_punctuation.c: Regenerated.
41633         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41634         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41635         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41636         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41637         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41638         * tests/unictype/test-pr_uppercase.c: Regenerated.
41639         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41640         * tests/unictype/test-pr_xid_start.c: Regenerated.
41641         * tests/unictype/test-pr_zero_width.c: Regenerated.
41642
41643         Update to Unicode 5.1.0.
41644         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41645         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41646         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41647         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41648         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41649         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41650         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41651         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41652         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41653         (nonspacing_table_ind): Update.
41654         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41655
41656         Update to Unicode 5.1.0.
41657         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41658         code transform.
41659         * lib/uniname/uniname.c (unicode_character_name,
41660         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41661         * lib/uniname/uninames.h: Regenerated.
41662         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41663
41664 2009-02-07  Bruno Haible  <bruno@clisp.org>
41665
41666         Merge gen-ctype and gen-lbrk into a single program.
41667         * lib/gen-uni-tables.c: New file, incorporating
41668         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41669         Add directory prefixes to the names of the generated files.
41670         * lib/unictype/gen-ctype.c: Remove file.
41671         * lib/unilbrk/gen-lbrk.c: Remove file.
41672         * modules/gen-uni-tables: New file.
41673         * modules/unictype/gen-ctype: Remove file.
41674         * modules/unilbrk/gen-lbrk: Remove file.
41675
41676 2009-02-07  Bruno Haible  <bruno@clisp.org>
41677
41678         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41679
41680         New module 'unistr/u32-strcoll'.
41681         * modules/unistr/u32-strcoll: New file.
41682         * lib/unistr/u32-strcoll.c: New file.
41683
41684         New module 'unistr/u16-strcoll'.
41685         * modules/unistr/u16-strcoll: New file.
41686         * lib/unistr/u16-strcoll.c: New file.
41687
41688         New module 'unistr/u8-strcoll'.
41689         * modules/unistr/u8-strcoll: New file.
41690         * lib/unistr/u8-strcoll.c: New file.
41691         * lib/unistr/u-strcoll.h: New file.
41692
41693 2009-02-07  Bruno Haible  <bruno@clisp.org>
41694
41695         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41696         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41697         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41698         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41699         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41700         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41701
41702 2009-02-07  Bruno Haible  <bruno@clisp.org>
41703
41704         Make 64-bit clean.
41705         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41706         output_combclass, output_bidi_category, output_decimal_digit,
41707         output_digit, output_numeric, output_mirror, output_scripts,
41708         output_ident_category): Use proper width specifier in format strings.
41709
41710 2009-02-07  Bruno Haible  <bruno@clisp.org>
41711
41712         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41713         failure behaviour.
41714
41715 2009-02-07  Jim Meyering  <meyering@redhat.com>
41716
41717         regex: avoid compilation failure with upcoming gcc-4.4
41718         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41719         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41720         "... error: integer overflow in preprocessor expression".
41721
41722 2009-02-05  Ben Pfaff  <blp@gnu.org>
41723
41724         Fix link errors on Windows when close module is used.
41725         * modules/close: Add $(LIB_CLOSE) to Link section.
41726         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41727         $(LIB_CLOSE) on Windows.
41728
41729 2009-02-05  Jim Meyering  <meyering@redhat.com>
41730
41731         still avoid unused-parameter warnings, but do it cleanly
41732         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41733         (get_fs_usage): Cast to void instead.
41734         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41735         (dev_from_mount_options, read_file_system_list): Cast to void.
41736         Prompted by Bruno Haible.
41737
41738 2009-02-04  Jim Meyering  <meyering@redhat.com>
41739
41740         fsusage.c: correct copyright year
41741         * lib/fsusage.c: Reflect year in which the change is pushed into
41742
41743         avoid misc. warnings
41744         * lib/fsusage.c (UNUSED_PARAM): Define.
41745         (get_fs_usage): Mark parameter "disk" as unused.
41746         * lib/getugroups.c (getgrent): Use "void" in prototype.
41747         * lib/mountlist.c: Mark unused parameters.
41748         (read_file_system_list): Declare a local with "const".
41749         * lib/nanosleep.c (getnow): Declare static.
41750         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41751
41752         dirfd: set errno upon failure
41753         * lib/dirfd.c: Include <errno.h>.
41754         Set errno to ENOTSUP when returning -1.
41755         * modules/dirfd (Depends-on): Add errno.
41756         Suggested by John Kodis <kodis@comcast.net>.
41757
41758 2009-02-01  Bruno Haible  <bruno@clisp.org>
41759
41760         Don't assume sizeof (long) >= sizeof (void *).
41761         * lib/memcmp.c: Include stdint.h.
41762         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41763         srcp2 to 'const byte *'.
41764         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41765         types to uintptr_t.
41766         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41767         * modules/memcmp (Depends-on): Add stdint.
41768         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41769
41770 2009-01-30  Eric Blake  <ebb9@byu.net>
41771
41772         fix more require-before-expand issues
41773         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41774         expand, AC_PROG_AWK.
41775         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41776
41777 2009-01-28  Eric Blake  <ebb9@byu.net>
41778
41779         version-etc: use consistent URL formatting
41780         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41781         Improve formatting.  Use fputs for string without %.
41782
41783 2009-01-28  Jim Meyering  <meyering@redhat.com>
41784
41785         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41786         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41787         "underquoted definition of NAME" from autoconf-2.59.
41788
41789 2009-01-28  Bruno Haible  <bruno@clisp.org>
41790
41791         * doc/gnulib.texi: Add "Obsolete modules" to index.
41792
41793 2009-01-28  Jim Meyering  <meyering@redhat.com>
41794
41795         useless-if-before-free: recognize more variants
41796         * build-aux/useless-if-before-free: Also recognize e.g.,
41797         if (NULL != p) free (p);
41798
41799 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41800
41801         test-getaddrinfo: skip (don't fail) this test when there's no network
41802         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41803         on the presumption that it means you lack network access.
41804
41805 2009-01-26  Jim Meyering  <meyering@redhat.com>
41806
41807         fflush: avoid warnings on modern systems
41808         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41809         pos and result, into scopes where they're used.
41810
41811 2009-01-26  Eric Blake  <ebb9@byu.net>
41812
41813         Silence warning reintroduced by recent extensions patch.
41814         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41815         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41816         autoconf.
41817
41818         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41819         * m4/00gnulib.m4: New file.
41820         * gnulib-tool (func_get_filelist): Always use it.
41821         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41822         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41823
41824 2009-01-25  Bruno Haible  <bruno@clisp.org>
41825
41826         Make test-quotearg work on MacOS X and AIX.
41827         * tests/test-quotearg.sh: New file.
41828         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41829         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41830         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41831         include <libintl.h>.
41832         (fake_locale): Remove variable.
41833         (gettext, dgettext, dcgettext): Remove functions.
41834         (main): Instead of setting a fake locale, set a real locale. Call
41835         textdomain and bindtextdomain.
41836         * modules/quotearg-tests (Files): Add the new files.
41837         (Depends-on): Add gettext, setenv, unsetenv.
41838         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41839         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41840         Augment TESTS_ENVIRONMENT.
41841
41842 2009-01-25  Bruno Haible  <bruno@clisp.org>
41843
41844         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41845         fr_FR.ISO8859-1 locale on MacOS X.
41846         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41847         ja_JP.eucJP locale on MacOS X.
41848         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41849         zh_CN.GB18030 locale on MacOS X.
41850
41851 2009-01-25  Bruno Haible  <bruno@clisp.org>
41852
41853         Avoid link errors on MacOS X 10.3.
41854         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41855         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41856
41857 2009-01-25  Bruno Haible  <bruno@clisp.org>
41858
41859         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41860         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41861         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41862         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41863         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41864         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41865         posix_spawnattr_init, posix_spawnattr_setsigmask,
41866         posix_spawnattr_setflags, posix_spawnattr_destroy.
41867
41868         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41869         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41870         * modules/execute (Files): Remove m4/posix_spawn.m4.
41871         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41872         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41873         posix_spawnattr_init, posix_spawnattr_setsigmask,
41874         posix_spawnattr_setflags, posix_spawnattr_destroy.
41875
41876 2009-01-25  Bruno Haible  <bruno@clisp.org>
41877
41878         * lib/glthread/threadlib.c: Include <stdlib.h>.
41879
41880 2009-01-25  Bruno Haible  <bruno@clisp.org>
41881
41882         * lib/glthread/threadlib.c (dummy): New declaration.
41883
41884 2009-01-25  Bruno Haible  <bruno@clisp.org>
41885
41886         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41887         multibyte characters also for the GB18030 encoding. Don't crash when
41888         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41889
41890 2009-01-25  Bruno Haible  <bruno@clisp.org>
41891
41892         Avoid redefining 'struct random_data' on OSF/1 5.1.
41893         * lib/stdlib.in.h: Include <random.h> if it exists.
41894         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41895         HAVE_RANDOM_H. Include <random.h> when testing whether
41896         'struct random_data' exists.
41897         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41898
41899 2009-01-25  Bruno Haible  <bruno@clisp.org>
41900
41901         Don't install charset.alias on MacOS X >= 10.3.
41902         * lib/localcharset.c (DARWIN7): New macro.
41903         (get_charset_aliases): Hardcode the result for Darwin7.
41904         * modules/localcharset (install-exec-local): Don't install
41905         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41906
41907 2009-01-25  Bruno Haible  <bruno@clisp.org>
41908
41909         Don't install charset.alias on mingw and Cygwin.
41910         * modules/localcharset (install-exec-local): Don't install
41911         charset.alias on mingw and Cygwin, if the file does not yet exist.
41912         The result for these platforms is hardcoded in localcharset.c.
41913
41914 2009-01-25  Bruno Haible  <bruno@clisp.org>
41915
41916         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41917         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41918         before requiring AC_USE_SYSTEM_EXTENSIONS.
41919
41920 2009-01-25  Jim Meyering  <meyering@redhat.com>
41921
41922         c-strtod: avoid warnings
41923         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41924         "assignment discards qualifiers from pointer target type" warnings.
41925
41926 2009-01-24  Bruno Haible  <bruno@clisp.org>
41927
41928         Add support for non-UTF-8 locales on MacOS X.
41929         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41930         canonical encodings. For Darwin 7 and newer, don't map traditional
41931         encodings to UTF-8.
41932         Reported by Vincent Lefevre <vincent@vinc17.org>
41933         at <http://savannah.gnu.org/bugs/?25235>.
41934
41935 2009-01-24  Bruno Haible  <bruno@clisp.org>
41936
41937         * doc/gnulib.texi (Obsolete modules): New section.
41938         Reported by Mike Frysinger <vapier@gentoo.org>.
41939
41940 2009-01-24  Bruno Haible  <bruno@clisp.org>
41941
41942         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41943         (%.dvi): New rule.
41944
41945 2009-01-24  Bruno Haible  <bruno@clisp.org>
41946
41947         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41948         Reported by Eric Blake.
41949
41950 2009-01-24  Bruno Haible  <bruno@clisp.org>
41951
41952         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41953         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41954         Reported by Gary V. Vaughan <gary@gnu.org>.
41955
41956 2009-01-24  Bruno Haible  <bruno@clisp.org>
41957
41958         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41959
41960 2009-01-23  Bruno Haible  <bruno@clisp.org>
41961
41962         Make c-strtod, c-strtold usable in libraries.
41963         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41964         (C_STRTOD): Call strdup instead of xstrdup.
41965         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41966         * modules/c-strtold (Depends-on): Likewise.
41967         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41968         * NEWS: Mention the change.
41969         Reported by Michael Gold <mgold@ncf.ca>.
41970
41971 2009-01-23  Jim Meyering  <meyering@redhat.com>
41972
41973         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41974         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41975         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41976
41977 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41978
41979         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41980         GNU CoreUtils.
41981         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41982         * modules/version-etc (Description): Update.
41983
41984 2009-01-22  Bruno Haible  <bruno@clisp.org>
41985
41986         Cache the C locale object.
41987         * lib/c-strtod.c (c_locale_cache): New variable.
41988         (c_locale): New function.
41989         (C_STRTOD): Use it, and don't call freelocale.
41990         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41991         Suggested by Paolo Bonzini.
41992
41993 2009-01-21  Bruno Haible  <bruno@clisp.org>
41994
41995         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41996         conditions other than overflow.
41997
41998 2009-01-21  Bruno Haible  <bruno@clisp.org>
41999
42000         * lib/c-strtod.c: Include errno.h.
42001         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42002         value from STRTOD_L and STRTOD.
42003
42004 2009-01-21  Bruno Haible  <bruno@clisp.org>
42005         and Jim Meyering  <meyering@redhat.com>
42006
42007         nanosleep: skip configure test (fail it) for apple universal builds
42008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42009         universal builds, assume that nanosleep does not work.
42010         * modules/nanosleep (Depends-on): Add multiarch.
42011
42012         mktime: skip configure test (fail it) for apple universal builds
42013         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42014         universal builds, assume that mktime does not work.
42015         * modules/mktime (Depends-on): Add multiarch.
42016
42017 2009-01-21  Eric Blake  <ebb9@byu.net>
42018
42019         multiarch: avoid expand-before-require warning
42020         * modules/multiarch (configure.ac): Require, rather than expand,
42021         gl_MULTIARCH.
42022         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42023         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42024         enforce that all clients require it.  Partial reversion of
42025         2008-12-29 patch.
42026
42027         error: avoid expand-before-require warning
42028         * modules/errno (configure.ac): Require, rather than expand,
42029         gl_HEADER_ERRNO_H.
42030         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42031         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42032         enforce that all clients require it.
42033
42034         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42035         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42036         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42037         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42038
42039 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42040
42041         Revert:
42042         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42043
42044         regex: do not depend on obsolete modules.
42045         * modules/regex: Remove memcmp and memmove.
42046
42047 2009-01-20  Bruno Haible  <bruno@clisp.org>
42048
42049         Make the 'link' module link on Windows NT 4.
42050         * lib/link.c (_WIN32_WINNT): Don't define.
42051         (CreateHardLinkFuncType): New type.
42052         (CreateHardLinkFunc, initialized): New variables.
42053         (initialize): New function.
42054         (link): Invoke CreateHardLink indirectly through the function pointer.
42055
42056 2009-01-20  Bruno Haible  <bruno@clisp.org>
42057
42058         Fix compilation failure on mingw.
42059         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42060
42061 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42062
42063         * doc/c-strtod.texi: Mention a couple of restrictions.
42064
42065 2009-01-20  Jim Meyering  <meyering@redhat.com>
42066
42067         gettimeofday: move more declarations out of functions
42068         * lib/gettimeofday.c: Move extern declarations of tzset and
42069         gmtime out of containing functions.  Prompted by Bruno Haible.
42070
42071 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42072
42073         regex: do not depend on obsolete modules.
42074         * modules/regex: Remove memcmp and memmove.
42075
42076 2009-01-19  Bruno Haible  <bruno@clisp.org>
42077
42078         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42079         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42080         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42081         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42082         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42083
42084 2009-01-19  Bruno Haible  <bruno@clisp.org>
42085
42086         * tests/test-link.c: Include <errno.h>.
42087         (main): Exit with code 77 when a hard link cannot be created due to
42088         the file system.
42089         * tests/test-link.sh: Skip test when a hard link cannot be created due
42090         to the file system.
42091         Suggested by Eric Blake.
42092
42093 2009-01-19  Martin Lambers  <marlam@marlam.de>
42094
42095         * modules/link-tests: New file.
42096         * tests/test-link.sh: New file.
42097         * tests/test-link.c: New file.
42098
42099 2009-01-19  Eric Blake  <ebb9@byu.net>
42100
42101         doc: mention another function added in cygwin 1.7.0
42102         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42103         Another new function in cygwin 1.7.
42104
42105 2009-01-19  Bruno Haible  <bruno@clisp.org>
42106
42107         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42108         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42109         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42110         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42111         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42112         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42113         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42114         * m4/md4.m4 (gl_MD4): Likewise.
42115         * m4/md5.m4 (gl_MD5): Likewise.
42116         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42117         * m4/sha1.m4 (gl_SHA1): Likewise.
42118         * m4/sha256.m4 (gl_SHA256): Likewise.
42119         * m4/sha512.m4 (gl_SHA512): Likewise.
42120
42121 2009-01-19  Bruno Haible  <bruno@clisp.org>
42122
42123         * modules/uniname/uniname-tests (Depends-on): Add progname.
42124         * tests/uniname/test-uninames.c: Include progname.h.
42125         (main): Call set_program_name.
42126
42127         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42128         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42129         (main): Call set_program_name.
42130
42131         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42132         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42133         (main): Call set_program_name.
42134
42135         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42136         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42137         (main): Call set_program_name.
42138
42139         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42140         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42141         (main): Call set_program_name.
42142
42143         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42144         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42145         (main): Call set_program_name.
42146
42147         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42148         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42149         (main): Call set_program_name.
42150
42151         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42152         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42153         (main): Call set_program_name.
42154
42155         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42156         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42157         (main): Call set_program_name.
42158
42159 2009-01-19  Eric Blake  <ebb9@byu.net>
42160
42161         test-unistd: test previous patch
42162         * tests/test-unistd.c: Test *_FILENO macros.
42163
42164         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42165         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42166         Guarantee a definition.
42167         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42168         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42169         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42170         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42171         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42172         Likewise.
42173         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42174         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42175         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42176         Likewise.
42177         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42178         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42179         (STDERR_FILENO): Likewise.
42180         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42181         (STDERR_FILENO): Likewise.
42182         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42183         (STDERR_FILENO): Likewise.
42184         Reported by Elbert Pol.
42185
42186 2009-01-19  Eric Blake  <ebb9@byu.net>
42187
42188         doc: mention more functions added in cygwin 1.7.0
42189         * doc/posix-functions/abort.texi (abort): Update wording related
42190         to cygwin.
42191         * doc/posix-functions/daylight.texi (daylight): Likewise.
42192         * doc/posix-functions/optarg.texi (optarg): Likewise.
42193         * doc/posix-functions/optarg.texi (opterr): Likewise.
42194         * doc/posix-functions/optarg.texi (optind): Likewise.
42195         * doc/posix-functions/optarg.texi (optopt): Likewise.
42196         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42197         worked in 1.5.x, and was withdrawn in 1.7.
42198         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42199         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42200         cygwin versions.
42201         * doc/posix-functions/perror.texi (perror): Likewise.
42202         * doc/posix-functions/printf.texi (printf): Likewise.
42203         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42204         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42205         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42206         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42207         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42208         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42209         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42210         Likewise.
42211         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42212         Likewise.
42213         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42214         this function.
42215         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42216         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42217         Likewise.
42218         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42219         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42220         * doc/posix-functions/confstr.texi (confstr): Likewise.
42221         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42222         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42223         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42224         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42225         * doc/posix-functions/fputws.texi (fputws): Likewise.
42226         * doc/posix-functions/fwide.texi (fwide): Likewise.
42227         * doc/posix-functions/getwc.texi (getwc): Likewise.
42228         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42229         * doc/posix-functions/putwc.texi (putwc): Likewise.
42230         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42231         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42232         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42233         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42234         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42235         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42236         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42237         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42238         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42239         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42240         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42241
42242 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42243
42244         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42245         * lib/ioctl.c: Include <sys/ioctl.h>.
42246
42247 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42248
42249         * modules/getdate-tests (Depends-on): Add progname.
42250         * tests/test-getdate.c: Use progname module, to avoid link errors
42251         on non-glibc systems.
42252
42253 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42254
42255         * modules/filenamecat-tests (Depends-on): Add progname.
42256         * modules/fstrcmp-tests (Depends-on): Likewise.
42257
42258         * tests/test-filenamecat.c: Use progname module, to avoid link
42259         errors on non-glibc systems.
42260         * tests/test-fstrcmp.c: Likewise.
42261
42262 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42263
42264         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42265         * lib/gettimeofday.c: Move extern declaration out of function.
42266
42267 2009-01-18  Bruno Haible  <bruno@clisp.org>
42268
42269         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42270         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42271         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42272
42273 2009-01-18  Bruno Haible  <bruno@clisp.org>
42274
42275         * lib/strftime.c (MEMPCPY): Remove unused macro.
42276         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42277
42278 2009-01-18  Martin Lambers  <marlam@marlam.de>
42279
42280         New module 'link'.
42281         * lib/unistd.in.h (link): New declaration.
42282         * lib/link.c: New file.
42283         * m4/link.m4: New file.
42284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42285         HAVE_LINK.
42286         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42287         * modules/link: New file.
42288         * doc/posix-functions/link.texi: Mention the new module.
42289
42290 2009-01-18  Bruno Haible  <bruno@clisp.org>
42291
42292         * tests/test-avltree_list.c (main): Call set_program_name.
42293         * tests/test-avltree_oset.c (main): Likewise.
42294         * tests/test-obstack-printf.c: Include progname.h.
42295         (main): Call set_program_name.
42296         * tests/test-quotearg.c: Include progname.h.
42297         (main): Call set_program_name.
42298         * tests/test-xmemdup0.c: Include progname.h.
42299         (main): Call set_program_name.
42300
42301 2009-01-18  Bruno Haible  <bruno@clisp.org>
42302
42303         New module 'alphasort'.
42304         * lib/dirent.in.h (alphasort): New declaration.
42305         * lib/alphasort.c: New file, from glibc with modifications.
42306         * m4/alphasort.m4: New file.
42307         * modules/alphasort: New file.
42308         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42309         HAVE_ALPHASORT.
42310         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42311         HAVE_ALPHASORT.
42312         * doc/posix-functions/alphasort.texi: Mention the new module and the
42313         portability problems.
42314
42315 2009-01-18  Bruno Haible  <bruno@clisp.org>
42316
42317         New module 'scandir'.
42318         * lib/dirent.in.h (scandir): New declaration.
42319         * lib/scandir.c: New file, from glibc with modifications.
42320         * m4/scandir.m4: New file.
42321         * modules/scandir: New file.
42322         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42323         HAVE_SCANDIR.
42324         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42325         HAVE_SCANDIR.
42326         * doc/posix-functions/scandir.texi: Mention the new module and the
42327         portability problems.
42328
42329 2009-01-17  Bruno Haible  <bruno@clisp.org>
42330
42331         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42332         Update documentation.
42333         (func_remove_suffix): Escape all dots in the suffix. Update
42334         documentation.
42335         (func_filter_filelist): Update documentation.
42336         Reported by Ralf Wildenhues.
42337
42338 2009-01-17  Bruno Haible  <bruno@clisp.org>
42339
42340         * modules/dprintf-posix-tests: New file.
42341         * tests/test-dprintf-posix.sh: New file.
42342         * tests/test-dprintf-posix.c: New file.
42343
42344         New modules 'dprintf', 'dprintf-posix'.
42345         * lib/stdio.in.h (dprintf): New declaration.
42346         * lib/dprintf.c: New file.
42347         * m4/dprintf.m4: New file.
42348         * m4/dprintf-posix.m4: New file.
42349         * modules/dprintf: New file.
42350         * modules/dprintf-posix: New file.
42351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42352         HAVE_DPRINTF, REPLACE_DPRINTF.
42353         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42354         HAVE_DPRINTF, REPLACE_DPRINTF.
42355         * doc/posix-functions/dprintf.texi: Mention the new modules.
42356
42357 2009-01-17  Bruno Haible  <bruno@clisp.org>
42358
42359         * modules/vdprintf-posix-tests: New file.
42360         * tests/test-vdprintf-posix.sh: New file.
42361         * tests/test-vdprintf-posix.c: New file.
42362
42363         New modules 'vdprintf', 'vdprintf-posix'.
42364         * lib/stdio.in.h (vdprintf): New declaration.
42365         * lib/vdprintf.c: New file.
42366         * m4/vdprintf.m4: New file.
42367         * m4/vdprintf-posix.m4: New file.
42368         * modules/vdprintf: New file.
42369         * modules/vdprintf-posix: New file.
42370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42371         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42372         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42373         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42374         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42375
42376 2009-01-17  Bruno Haible  <bruno@clisp.org>
42377
42378         Fix replacement of fopen on mingw.
42379         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42380         mingw.
42381
42382 2009-01-17  Bruno Haible  <bruno@clisp.org>
42383
42384         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42385         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42386
42387 2009-01-17  Bruno Haible  <bruno@clisp.org>
42388
42389         Avoid test-fflush2.sh failure on mingw.
42390         * tests/test-fflush2.c: Include binary-io.h.
42391         (main): Put standard input into binary mode.
42392         * modules/fflush-tests (Depends-on): Add binary-io.
42393
42394 2009-01-17  Bruno Haible  <bruno@clisp.org>
42395
42396         * lib/wchar.in.h: In another particular situation, include only the
42397         system's <wchar.h> file.
42398         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42399         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42400         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42401
42402 2009-01-17  Bruno Haible  <bruno@clisp.org>
42403
42404         Support for stripping executables in --enable-relocatable.
42405         * build-aux/install-reloc: Expect one more argument, or an environment
42406         variable RELOC_STRIP_PROG. If set, strip the destination program and
42407         its wrapper.
42408         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42409         RELOC_STRIP_PROG.
42410         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42411         to set RELOCATABLE_STRIP.
42412         * NEWS: Mention the new Makefile requirement.
42413
42414 2009-01-17  Bruno Haible  <bruno@clisp.org>
42415
42416         * build-aux/install-reloc: Remove debugging information left over by
42417         C compiler on MacOS X.
42418
42419 2009-01-17  Bruno Haible  <bruno@clisp.org>
42420
42421         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42422         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42423         _NSGetExecutablePath.
42424
42425 2009-01-16  Jim Meyering  <meyering@redhat.com>
42426
42427         strerror: avoid warnings about discarding "const"
42428         * lib/strerror.c (rpl_strerror): Instead of returning a const
42429         string from each and every "case", use a variable, and add a single
42430         cast after the switch.
42431
42432 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42433
42434         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42435
42436 2009-01-16  Bruno Haible  <bruno@clisp.org>
42437
42438         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42439         array initializer syntax that also works in C++ mode.
42440         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42441
42442 2009-01-16  Jim Meyering  <meyering@redhat.com>
42443
42444         poll: suppress a warning
42445         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42446         to ignore "...unsigned expression < 0 is always false" warnings.
42447
42448 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42449
42450         poll: remove declarations of unused variables
42451         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42452         sockbuf and optlen.
42453
42454 2009-01-15  Bruno Haible  <bruno@clisp.org>
42455
42456         Make fflush-after-ungetc POSIX compliant on BSD systems.
42457         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42458         (clear_ungetc_buffer): Implement also for other systems.
42459         (rpl_fflush): On glibc systems, invoke
42460         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42461         clear_ungetc_buffer after fetching the stream's position, not before.
42462
42463 2009-01-15  Bruno Haible  <bruno@clisp.org>
42464
42465         Make fflush-after-ungetc POSIX compliant on glibc systems.
42466         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42467         after ungetc.
42468         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42469         (rpl_fflush): On glibc systems, simply call the system's fflush
42470         function after clearing the ungetc buffer.
42471         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42472         Instead, lseek only to the end of file, then use the system's fseeko
42473         for the rest. On glibc systems, reset the EOF indicator bit.
42474
42475 2009-01-15  Jim Meyering  <meyering@redhat.com>
42476
42477         openmp.m4: revert quote-adding change, for portability to older autoconf
42478         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42479         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42480         Simon Josefsson noticed the problem when using autoconf-2.61.
42481
42482 2009-01-15  Bruno Haible  <bruno@clisp.org>
42483
42484         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42485         * tests/test-fflush2.c (ASSERT): Always fail.
42486         (main): Add two tests for fflush() after ungetc(), taking into account
42487         the Austin Group's clarification.
42488         Suggested by Eric Blake.
42489
42490 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42491
42492         mktime.m4: remove K&R-style function prototypes
42493         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42494         for the Sun C++ compiler.
42495
42496 2009-01-14  Bruno Haible  <bruno@clisp.org>
42497
42498         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42499         while including <wchar.h>.
42500         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42501         the system's <wchar.h> file.
42502         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42503
42504 2009-01-14  Bruno Haible  <bruno@clisp.org>
42505
42506         * m4/csharp.m4: Don't mention gettext on the serial number line.
42507         * m4/csharpexec.m4: Likewise.
42508         * m4/eaccess.m4: Likewise.
42509         * m4/javaexec.m4: Likewise.
42510         * m4/sig_atomic_t.m4: Likewise.
42511         * m4/tmpdir.m4: Likewise.
42512         * m4/intldir.m4: Bump gettext version.
42513         * m4/lib-ld.m4: Likewise.
42514
42515 2009-01-14  Bruno Haible  <bruno@clisp.org>
42516
42517         * lib/progname.c (set_program_name): Add more comments.
42518         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42519
42520 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42521
42522         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42523         were sys/stat.h does not define it.
42524
42525 2009-01-14  Jim Meyering  <meyering@redhat.com>
42526
42527         many *.m4 files: improve m4 quoting
42528         99% of this change was performed by running the following commands:
42529         git ls-files | grep '\.m4$' | xargs perl -pi \
42530           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42531           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42532           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42533           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42534         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42535         The remainder were to add Copyright dates, increment serial numbers,
42536         undo some changes in comments, exclude m4/intl.m4, and add quotes
42537         around the "1" in ",1" where the unusual spacing prohibited the
42538         above regexps from doing the job.  For more details, see
42539         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42540         * m4/acl.m4: Modified.
42541         * m4/afs.m4: Likewise.
42542         * m4/alloca.m4: Likewise.
42543         * m4/argp.m4: Likewise.
42544         * m4/argz.m4: Likewise.
42545         * m4/atexit.m4: Likewise.
42546         * m4/bison-i18n.m4: Likewise.
42547         * m4/bison.m4: Likewise.
42548         * m4/byteswap.m4: Likewise.
42549         * m4/c-stack.m4: Likewise.
42550         * m4/c-strtod.m4: Likewise.
42551         * m4/calloc.m4: Likewise.
42552         * m4/canonicalize-lgpl.m4: Likewise.
42553         * m4/chown.m4: Likewise.
42554         * m4/clock_time.m4: Likewise.
42555         * m4/codeset.m4: Likewise.
42556         * m4/copy-file.m4: Likewise.
42557         * m4/csharp.m4: Likewise.
42558         * m4/csharpcomp.m4: Likewise.
42559         * m4/csharpexec.m4: Likewise.
42560         * m4/d-ino.m4: Likewise.
42561         * m4/d-type.m4: Likewise.
42562         * m4/dirfd.m4: Likewise.
42563         * m4/double-slash-root.m4: Likewise.
42564         * m4/eaccess.m4: Likewise.
42565         * m4/eealloc.m4: Likewise.
42566         * m4/environ.m4: Likewise.
42567         * m4/errno_h.m4: Likewise.
42568         * m4/euidaccess.m4: Likewise.
42569         * m4/execute.m4: Likewise.
42570         * m4/fatal-signal.m4: Likewise.
42571         * m4/fchdir.m4: Likewise.
42572         * m4/fcntl_h.m4: Likewise.
42573         * m4/fileblocks.m4: Likewise.
42574         * m4/filenamecat.m4: Likewise.
42575         * m4/findprog.m4: Likewise.
42576         * m4/flexmember.m4: Likewise.
42577         * m4/fnmatch.m4: Likewise.
42578         * m4/fopen.m4: Likewise.
42579         * m4/fpending.m4: Likewise.
42580         * m4/fprintf-posix.m4: Likewise.
42581         * m4/free.m4: Likewise.
42582         * m4/frexp.m4: Likewise.
42583         * m4/frexpl.m4: Likewise.
42584         * m4/fsusage.m4: Likewise.
42585         * m4/ftruncate.m4: Likewise.
42586         * m4/gc-camellia.m4: Likewise.
42587         * m4/gc-random.m4: Likewise.
42588         * m4/gc.m4: Likewise.
42589         * m4/getaddrinfo.m4: Likewise.
42590         * m4/getcwd-abort-bug.m4: Likewise.
42591         * m4/getcwd-path-max.m4: Likewise.
42592         * m4/getdate.m4: Likewise.
42593         * m4/getdomainname.m4: Likewise.
42594         * m4/getgroups.m4: Likewise.
42595         * m4/gethostname.m4: Likewise.
42596         * m4/gethrxtime.m4: Likewise.
42597         * m4/getline.m4: Likewise.
42598         * m4/getloadavg.m4: Likewise.
42599         * m4/getndelim2.m4: Likewise.
42600         * m4/getpass.m4: Likewise.
42601         * m4/gettext.m4: Likewise.
42602         * m4/gettime.m4: Likewise.
42603         * m4/gettimeofday.m4: Likewise.
42604         * m4/gnulib-common.m4: Likewise.
42605         * m4/group-member.m4: Likewise.
42606         * m4/host-os.m4: Likewise.
42607         * m4/iconv.m4: Likewise.
42608         * m4/iconv_open.m4: Likewise.
42609         * m4/inet_ntop.m4: Likewise.
42610         * m4/inet_pton.m4: Likewise.
42611         * m4/inline.m4: Likewise.
42612         * m4/intldir.m4: Likewise.
42613         * m4/intlmacosx.m4: Likewise.
42614         * m4/intmax.m4: Likewise.
42615         * m4/intmax_t.m4: Likewise.
42616         * m4/inttypes.m4: Likewise.
42617         * m4/inttypes_h.m4: Likewise.
42618         * m4/inttypes-pri.m4: Likewise.
42619         * m4/isapipe.m4: Likewise.
42620         * m4/isnand.m4: Likewise.
42621         * m4/isnanf.m4: Likewise.
42622         * m4/isnanl.m4: Likewise.
42623         * m4/javacomp.m4: Likewise.
42624         * m4/javaexec.m4: Likewise.
42625         * m4/jm-winsz1.m4: Likewise.
42626         * m4/jm-winsz2.m4: Likewise.
42627         * m4/lchown.m4: Likewise.
42628         * m4/lcmessage.m4: Likewise.
42629         * m4/ldexpl.m4: Likewise.
42630         * m4/lib-ld.m4: Likewise.
42631         * m4/lib-link.m4: Likewise.
42632         * m4/libsigsegv.m4: Likewise.
42633         * m4/link-follow.m4: Likewise.
42634         * m4/localcharset.m4: Likewise.
42635         * m4/locale-fr.m4: Likewise.
42636         * m4/locale-ja.m4: Likewise.
42637         * m4/locale-tr.m4: Likewise.
42638         * m4/locale-zh.m4: Likewise.
42639         * m4/lock.m4: Likewise.
42640         * m4/longlong.m4: Likewise.
42641         * m4/ls-mntd-fs.m4: Likewise.
42642         * m4/lstat.m4: Likewise.
42643         * m4/malloc.m4: Likewise.
42644         * m4/mathl.m4: Likewise.
42645         * m4/mbrtowc.m4: Likewise.
42646         * m4/mbstate_t.m4: Likewise.
42647         * m4/mbswidth.m4: Likewise.
42648         * m4/memchr.m4: Likewise.
42649         * m4/memcmp.m4: Likewise.
42650         * m4/memcpy.m4: Likewise.
42651         * m4/memmem.m4: Likewise.
42652         * m4/memmove.m4: Likewise.
42653         * m4/mempcpy.m4: Likewise.
42654         * m4/memrchr.m4: Likewise.
42655         * m4/memset.m4: Likewise.
42656         * m4/minmax.m4: Likewise.
42657         * m4/mkdir-slash.m4: Likewise.
42658         * m4/mkdtemp.m4: Likewise.
42659         * m4/mktime.m4: Likewise.
42660         * m4/mmap-anon.m4: Likewise.
42661         * m4/mountlist.m4: Likewise.
42662         * m4/nanosleep.m4: Likewise.
42663         * m4/nls.m4: Likewise.
42664         * m4/nocrash.m4: Likewise.
42665         * m4/open.m4: Likewise.
42666         * m4/openat.m4: Likewise.
42667         * m4/openmp.m4: Likewise.
42668         * m4/pathmax.m4: Likewise.
42669         * m4/perl.m4: Likewise.
42670         * m4/physmem.m4: Likewise.
42671         * m4/pipe.m4: Likewise.
42672         * m4/po.m4: Likewise.
42673         * m4/poll.m4: Likewise.
42674         * m4/posixtm.m4: Likewise.
42675         * m4/posixver.m4: Likewise.
42676         * m4/printf-frexp.m4: Likewise.
42677         * m4/printf-frexpl.m4: Likewise.
42678         * m4/printf-posix.m4: Likewise.
42679         * m4/printf-posix-rpl.m4: Likewise.
42680         * m4/printf.m4: Likewise.
42681         * m4/progtest.m4: Likewise.
42682         * m4/putenv.m4: Likewise.
42683         * m4/readline.m4: Likewise.
42684         * m4/readlink.m4: Likewise.
42685         * m4/readutmp.m4: Likewise.
42686         * m4/realloc.m4: Likewise.
42687         * m4/regex.m4: Likewise.
42688         * m4/relocatable.m4: Likewise.
42689         * m4/relocatable-lib.m4: Likewise.
42690         * m4/rename-dest-slash.m4: Likewise.
42691         * m4/rename.m4: Likewise.
42692         * m4/rmdir-errno.m4: Likewise.
42693         * m4/rmdir.m4: Likewise.
42694         * m4/roundf.m4: Likewise.
42695         * m4/roundl.m4: Likewise.
42696         * m4/rpmatch.m4: Likewise.
42697         * m4/save-cwd.m4: Likewise.
42698         * m4/selinux-selinux-h.m4: Likewise.
42699         * m4/setenv.m4: Likewise.
42700         * m4/settime.m4: Likewise.
42701         * m4/sig2str.m4: Likewise.
42702         * m4/sig_atomic_t.m4: Likewise.
42703         * m4/signalblocking.m4: Likewise.
42704         * m4/signbit.m4: Likewise.
42705         * m4/sigpipe.m4: Likewise.
42706         * m4/sockets.m4: Likewise.
42707         * m4/sockpfaf.m4: Likewise.
42708         * m4/st_dm_mode.m4: Likewise.
42709         * m4/stat-time.m4: Likewise.
42710         * m4/stdbool.m4: Likewise.
42711         * m4/stdint.m4: Likewise.
42712         * m4/stdint_h.m4: Likewise.
42713         * m4/stpcpy.m4: Likewise.
42714         * m4/stpncpy.m4: Likewise.
42715         * m4/strcase.m4: Likewise.
42716         * m4/strchrnul.m4: Likewise.
42717         * m4/strcspn.m4: Likewise.
42718         * m4/strdup.m4: Likewise.
42719         * m4/strftime.m4: Likewise.
42720         * m4/strndup.m4: Likewise.
42721         * m4/strnlen.m4: Likewise.
42722         * m4/strpbrk.m4: Likewise.
42723         * m4/strptime.m4: Likewise.
42724         * m4/strsep.m4: Likewise.
42725         * m4/strtod.m4: Likewise.
42726         * m4/strtoimax.m4: Likewise.
42727         * m4/strtok_r.m4: Likewise.
42728         * m4/strtol.m4: Likewise.
42729         * m4/strtoll.m4: Likewise.
42730         * m4/strtoul.m4: Likewise.
42731         * m4/strtoull.m4: Likewise.
42732         * m4/strtoumax.m4: Likewise.
42733         * m4/strverscmp.m4: Likewise.
42734         * m4/threadlib.m4: Likewise.
42735         * m4/timegm.m4: Likewise.
42736         * m4/tm_gmtoff.m4: Likewise.
42737         * m4/tmpdir.m4: Likewise.
42738         * m4/tmpfile.m4: Likewise.
42739         * m4/tzset.m4: Likewise.
42740         * m4/uintmax_t.m4: Likewise.
42741         * m4/unlinkdir.m4: Likewise.
42742         * m4/unlocked-io.m4: Likewise.
42743         * m4/uptime.m4: Likewise.
42744         * m4/userspec.m4: Likewise.
42745         * m4/utimbuf.m4: Likewise.
42746         * m4/utime.m4: Likewise.
42747         * m4/utimes-null.m4: Likewise.
42748         * m4/utimes.m4: Likewise.
42749         * m4/vararrays.m4: Likewise.
42750         * m4/vasnprintf.m4: Likewise.
42751         * m4/vfprintf-posix.m4: Likewise.
42752         * m4/vprintf-posix.m4: Likewise.
42753         * m4/wait-process.m4: Likewise.
42754         * m4/wchar_t.m4: Likewise.
42755         * m4/wint_t.m4: Likewise.
42756         * m4/write-any-file.m4: Likewise.
42757         * m4/yield.m4: Likewise.
42758
42759 2009-01-13  Bruno Haible  <bruno@clisp.org>
42760
42761         Avoid test-copy-file.sh failures when ACL support insufficient.
42762         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42763         TESTS_ENVIRONMENT.
42764         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42765         Reported by Jim Meyering.
42766
42767 2009-01-13  Bruno Haible  <bruno@clisp.org>
42768
42769         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42770         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42771         * modules/unistdio/u8-printf-parse (Files): Likewise.
42772         * modules/unistdio/u32-printf-parse (Files): Likewise.
42773         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42774
42775 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42776
42777         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42778         and m4/inttypes_h.m4 too.
42779
42780 2009-01-12  Eric Blake  <ebb9@byu.net>
42781
42782         tests: IRIX 6.2 cc can't compile -0.0 into .data
42783         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42784         rather than at compile-time.
42785         * tests/test-floorl.c (minus_zero): Likewise.
42786         * tests/test-frexpl.c (minus_zero): Likewise.
42787         * tests/test-isnan.c (minus_zerol): Likewise.
42788         * tests/test-isnanl.h (minus_zero): Likewise.
42789         * tests/test-ldexpl.c (minus_zero): Likewise.
42790         * tests/test-roundl.c (minus_zero): Likewise.
42791         * tests/test-signbit.c (minus_zerol): Likewise.
42792         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42793         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42794         * tests/test-truncl.c (minus_zero): Likewise.
42795         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42796         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42797         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42798
42799 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42800
42801         regex: fix glibc bug 9697
42802         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42803         handling.
42804
42805 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42806
42807         regex: fix glibc bug 697
42808         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42809         being NULL also if there are no backreferences.
42810
42811 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42812
42813         regex: merge glibc changes
42814         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42815         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42816         re_string_skip_chars, re_string_reconstruct): Likewise.
42817         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42818
42819 2009-01-07  Jim Meyering  <meyering@redhat.com>
42820
42821         poll: filter through cppi
42822         * lib/poll.c: Indent cpp directives to reflect nesting.
42823
42824 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42825
42826         poll: don't return uninitialized
42827         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42828
42829 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42830
42831         avoid compile failure on AIX 6.1
42832         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42833         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42834
42835 2009-01-04  Jim Meyering  <meyering@redhat.com>
42836
42837         remove duplicate inclusion of <stdio.h>
42838         * tests/test-fprintf-posix.c: Likewise.
42839         * tests/test-printf-posix.c: Likewise.
42840         * tests/test-snprintf-posix.c: Likewise.
42841         * tests/test-sprintf-posix.c: Likewise.
42842         * tests/test-vasprintf-posix.c: Likewise.
42843         * tests/test-vfprintf-posix.c: Likewise.
42844         * tests/test-vprintf-posix.c: Likewise.
42845         * tests/test-vsnprintf-posix.c: Likewise.
42846         * tests/test-vsprintf-posix.c: Likewise.
42847
42848 2009-01-03  Jim Meyering  <meyering@redhat.com>
42849
42850         gnulib-tool: fix sed-based filtering
42851         * gnulib-tool (func_filter_filelist): Remove extra backslash
42852         in sed_fff_filter definition.
42853
42854 2009-01-02  Jim Meyering  <meyering@redhat.com>
42855
42856         strftime: avoid compilation failure on Solaris 2.6
42857         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42858         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42859         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42860         be available.  Reported by Tom G. Christensen.  Details in
42861         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42862
42863 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42864             Bruno Haible  <bruno@clisp.org>
42865
42866         Speed up gnulib-tool by doing more string processing through shell
42867         built-ins.
42868         * gnulib-tool (fast_func_append): New variable.
42869         (func_remove_prefix, func_remove_suffix): New functions.
42870         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42871         (func_filter_filelist): New function.
42872         (func_get_dependencies): Use func_remove_suffix instead of sed.
42873         (func_get_automake_snippet): Use func_filter_filelist instead of a
42874         subshell and sed invocation.
42875
42876 2009-01-01  Bruno Haible  <bruno@clisp.org>
42877
42878         Fix a security bug.
42879         * gnulib-tool (func_import, import, update): Don't allow the characters
42880         '"', '$', '`', '\' in macro arguments that become part of commands that
42881         are evaluated.
42882
42883 2009-01-01  Bruno Haible  <bruno@clisp.org>
42884
42885         * gnulib-tool (func_reset_sigpipe): Add more comments.
42886
42887 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42888
42889         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42890         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42891         already know the answer.
42892
42893 2009-01-01  Jim Meyering  <meyering@redhat.com>
42894
42895         * lib/version-etc.c (version_etc_va): Update copyright year.
42896
42897 2008-12-30  Bruno Haible  <bruno@clisp.org>
42898
42899         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42900         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42901         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42902
42903 2008-12-29  Eric Blake  <ebb9@byu.net>
42904
42905         multiarch: avoid autoconf AC_REQUIRE bug
42906         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42907         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42908         2.63 and older.
42909         Reported by Bruno Haible, and analyzed in
42910         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42911
42912 2008-12-29  Bruno Haible  <bruno@clisp.org>
42913
42914         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42915         files in subdirectories correctly.
42916         Reported by Ralf Wildenhues.
42917
42918 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42919
42920         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42921         rather than 'join FILE -', for Solaris join.
42922
42923 2008-12-29  Bruno Haible  <bruno@clisp.org>
42924
42925         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42926         quoting.
42927         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42928         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42929         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42930         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42931         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42932         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42933         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42934         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42935         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42936         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42937         * m4/nls.m4 (AM_NLS): Likewise.
42938         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42939         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42940         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42941         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42942         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42943         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42944         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42945         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42946         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42947         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42948         * m4/xsize.m4 (gl_XSIZE): Likewise.
42949         Suggested by Jim Meyering.
42950
42951 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42952
42953         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42954         * lib/parse-duration.c: use a switch instead of cascading if's.
42955
42956 2008-12-29  Eric Blake  <ebb9@byu.net>
42957
42958         wchar.h: supply WEOF on Irix 5.3
42959         * lib/wchar.in.h (wint_t): Also supply WEOF.
42960         * lib/wctype.in.h (wint_t): Likewise.
42961         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42962         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42963         Reported by Tom G. Christensen.
42964
42965 2008-12-26  Bruno Haible  <bruno@clisp.org>
42966
42967         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42968         i486, i586, i686.
42969
42970 2008-12-26  Bruno Haible  <bruno@clisp.org>
42971
42972         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42973
42974 2008-12-26  Bruno Haible  <bruno@clisp.org>
42975
42976         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42977         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42978         not __STDC_CONSTANT_MACROS.
42979         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42980
42981 2008-12-25  Bruno Haible  <bruno@clisp.org>
42982
42983         Add support for universal builds to vasnprintf.
42984         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42985         universal builds, guess no.
42986         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42987         * modules/vasprintf-posix (Depends-on): Likewise.
42988         * modules/fprintf-posix (Depends-on): Likewise.
42989         * modules/vfprintf-posix (Depends-on): Likewise.
42990         * modules/snprintf-posix (Depends-on): Likewise.
42991         * modules/vsnprintf-posix (Depends-on): Likewise.
42992         * modules/sprintf-posix (Depends-on): Likewise.
42993         * modules/vsprintf-posix (Depends-on): Likewise.
42994         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42995         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42996         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42997         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42998         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42999         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43000         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43001
43002         Add support for universal builds to <inttypes.h>.
43003         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43004         _SCNu64_PREFIX): In Apple
43005         universal builds, define directly, using _LP64.
43006         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43007         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43008         * modules/inttypes (Depends-on): Add multiarch.
43009         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43010
43011         Add support for universal builds to <stdint.h>.
43012         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43013         universal builds, define directly, using _LP64.
43014         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43015         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43016         and size_t.
43017         * modules/stdint (Depends-on): Add multiarch.
43018         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43019
43020         New module 'multiarch'.
43021         * modules/multiarch: New file.
43022         * m4/multiarch.m4: New file.
43023
43024 2008-12-25  Bruno Haible  <bruno@clisp.org>
43025
43026         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43027
43028 2008-12-25  Bruno Haible  <bruno@clisp.org>
43029
43030         * modules/btowc (License): Relicense under LGPLv2+.
43031         * modules/mbsinit (License): Likewise.
43032         * modules/mbrtowc (License): Likewise.
43033         * modules/wcrtomb (License): Likewise.
43034         * modules/streq (License): Likewise.
43035         Reported by David Lutterkort <lutter@redhat.com>.
43036
43037 2008-12-23  Bruno Haible  <bruno@clisp.org>
43038
43039         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43040
43041 2008-12-23  Bruno Haible  <bruno@clisp.org>
43042
43043         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43044         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43045         GETADDRINFO_LIB, not in LIBS.
43046         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43047         * modules/canon-host (Link): Likewise.
43048         * NEWS: Mention the change.
43049         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43050         GETADDRINFO_LIB.
43051
43052 2008-12-22  Bruno Haible  <bruno@clisp.org>
43053
43054         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43055         * doc/posix-functions/iswalpha_l.texi: Likewise.
43056         * doc/posix-functions/iswblank_l.texi: Likewise.
43057         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43058         * doc/posix-functions/iswctype_l.texi: Likewise.
43059         * doc/posix-functions/iswdigit_l.texi: Likewise.
43060         * doc/posix-functions/iswgraph_l.texi: Likewise.
43061         * doc/posix-functions/iswlower_l.texi: Likewise.
43062         * doc/posix-functions/iswprint_l.texi: Likewise.
43063         * doc/posix-functions/iswpunct_l.texi: Likewise.
43064         * doc/posix-functions/iswspace_l.texi: Likewise.
43065         * doc/posix-functions/iswupper_l.texi: Likewise.
43066         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43067         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43068         * doc/posix-functions/open_wmemstream.texi: Likewise.
43069         * doc/posix-functions/swscanf.texi: Likewise.
43070         * doc/posix-functions/towctrans_l.texi: Likewise.
43071         * doc/posix-functions/towlower.texi: Likewise.
43072         * doc/posix-functions/towlower_l.texi: Likewise.
43073         * doc/posix-functions/towupper.texi: Likewise.
43074         * doc/posix-functions/towupper_l.texi: Likewise.
43075         * doc/posix-functions/vfwprintf.texi: Likewise.
43076         * doc/posix-functions/vfwscanf.texi: Likewise.
43077         * doc/posix-functions/vswscanf.texi: Likewise.
43078         * doc/posix-functions/vwprintf.texi: Likewise.
43079         * doc/posix-functions/vwscanf.texi: Likewise.
43080         * doc/posix-functions/wcpcpy.texi: Likewise.
43081         * doc/posix-functions/wcpncpy.texi: Likewise.
43082         * doc/posix-functions/wcscasecmp.texi: Likewise.
43083         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43084         * doc/posix-functions/wcscoll_l.texi: Likewise.
43085         * doc/posix-functions/wcsdup.texi: Likewise.
43086         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43087         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43088         * doc/posix-functions/wcsnlen.texi: Likewise.
43089         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43090         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43091         * doc/posix-functions/wctrans_l.texi: Likewise.
43092         * doc/posix-functions/wctype_l.texi: Likewise.
43093         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43094         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43095         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43096         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43097         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43098         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43099         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43100         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43101         * doc/glibc-functions/wcschrnul.texi: Likewise.
43102         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43103         * doc/glibc-functions/wcstod_l.texi: Likewise.
43104         * doc/glibc-functions/wcstof_l.texi: Likewise.
43105         * doc/glibc-functions/wcstol_l.texi: Likewise.
43106         * doc/glibc-functions/wcstold_l.texi: Likewise.
43107         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43108         * doc/glibc-functions/wcstoq.texi: Likewise.
43109         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43110         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43111         * doc/glibc-functions/wcstouq.texi: Likewise.
43112         * doc/glibc-functions/wmempcpy.texi: Likewise.
43113
43114 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43115             Eric Blake  <ebb9@byu.net>
43116             Paolo Bonzini  <bonzini@gnu.org>
43117             Bruno Haible  <bruno@clisp.org>
43118
43119         Make c-stack work on Haiku.
43120         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43121         (c_stack_action): Use SA_ONSTACK flag.
43122
43123 2008-12-22  Bruno Haible  <bruno@clisp.org>
43124
43125         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43126
43127 2008-12-22  Bruno Haible  <bruno@clisp.org>
43128
43129         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43130         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43131         being overridden.
43132         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43133         New macros.
43134         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43136         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43137         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43138
43139 2008-12-22  Bruno Haible  <bruno@clisp.org>
43140
43141         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43142         from test code.
43143
43144 2008-12-22  Eric Blake  <ebb9@byu.net>
43145
43146         Avoid gcc warnings on cygwin.
43147         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43148         Avoid unused variable.
43149         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43150         Likewise.
43151
43152 2008-12-22  Bruno Haible  <bruno@clisp.org>
43153
43154         Remove HAVE_MBRTOWC conditionals.
43155         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43156         (mbscasecmp): Assume mbrtowc function.
43157         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43158         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43159         * lib/mbschr.c: Include mbuiter.h unconditionally.
43160         (mbschr): Assume mbrtowc function.
43161         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43162         (mbscspn): Assume mbrtowc function.
43163         * lib/mbslen.c: Include mbuiter.h unconditionally.
43164         (mbslen): Assume mbrtowc function.
43165         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43166         (mbsncasecmp): Assume mbrtowc function.
43167         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43168         (mbsnlen): Assume mbrtowc function.
43169         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43170         (mbspbrk): Assume mbrtowc function.
43171         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43172         (mbspcasecmp): Assume mbrtowc function.
43173         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43174         (mbsrchr): Assume mbrtowc function.
43175         * lib/mbssep.c: Include mbuiter.h unconditionally.
43176         (mbssep): Assume mbrtowc function.
43177         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43178         (mbsspn): Assume mbrtowc function.
43179         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43180         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43181         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43182         (mbstok_r): Assume mbrtowc function.
43183         * lib/propername.c: Include mbuiter.h unconditionally.
43184         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43185         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43186         (trim2): Assume mbrtowc function.
43187         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43188         (mbsnwidth): Assume mbrtowc function.
43189         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43190         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43191         fallback definitions.
43192         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43193
43194 2008-12-22  Bruno Haible  <bruno@clisp.org>
43195
43196         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43197
43198 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43199
43200         * modules/regex: Request emulations for the mb*/wc* functions we need.
43201         * m4/regex.m4: Don't look for those functions here.
43202         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43203
43204 2008-12-22  Bruno Haible  <bruno@clisp.org>
43205
43206         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43207
43208 2008-12-21  Bruno Haible  <bruno@clisp.org>
43209
43210         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43211         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43212         (Include): Remove conditionalization.
43213         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43214         (Include): Remove conditionalization.
43215         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43216         (Include): Remove conditionalization.
43217         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43218         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43219         * NEWS: Mention the change.
43220         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43221         via Sergey Poznyakoff <gray@gnu.org.ua>.
43222
43223 2008-12-21  Bruno Haible  <bruno@clisp.org>
43224
43225         * MODULES.html.sh (Extended multibyte and wide character utilities
43226         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43227         wcrtomb, wcsrtombs.
43228         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43229         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43230         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43231         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43232
43233 2008-12-21  Bruno Haible  <bruno@clisp.org>
43234
43235         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43236
43237 2008-12-21  Bruno Haible  <bruno@clisp.org>
43238
43239         * modules/wcsnrtombs-tests: New file.
43240         * tests/test-wcsnrtombs1.sh: New file.
43241         * tests/test-wcsnrtombs2.sh: New file.
43242         * tests/test-wcsnrtombs3.sh: New file.
43243         * tests/test-wcsnrtombs4.sh: New file.
43244         * tests/test-wcsnrtombs.c: New file.
43245
43246         New module 'wcsnrtombs'.
43247         * lib/wchar.in.h (wcsnrtombs): New declaration.
43248         * lib/wcsnrtombs.c: New file.
43249         * lib/wcsrtombs-state.c: New file.
43250         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43251         (internal_state): Remove variable.
43252         * m4/wcsnrtombs.m4: New file.
43253         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43254         compilation units.
43255         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43256         HAVE_WCSNRTOMBS.
43257         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43258         HAVE_WCSNRTOMBS.
43259         * modules/wcsnrtombs: New file.
43260         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43261         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43262
43263 2008-12-21  Bruno Haible  <bruno@clisp.org>
43264
43265         * modules/wcsrtombs-tests: New file.
43266         * tests/test-wcsrtombs1.sh: New file.
43267         * tests/test-wcsrtombs2.sh: New file.
43268         * tests/test-wcsrtombs3.sh: New file.
43269         * tests/test-wcsrtombs4.sh: New file.
43270         * tests/test-wcsrtombs.c: New file.
43271
43272         New module 'wcsrtombs'.
43273         * lib/wchar.in.h (wcsrtombs): New declaration.
43274         * lib/wcsrtombs.c: New file.
43275         * m4/wcsrtombs.m4: New file.
43276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43277         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43279         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43280         * modules/wcsrtombs: New file.
43281         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43282         bugs.
43283
43284 2008-12-21  Bruno Haible  <bruno@clisp.org>
43285
43286         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43287         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43288         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43289         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43290         if not correct.
43291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43292         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43293         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43294         m4/locale-zh.m4, m4/codeset.m4.
43295         * doc/posix-functions/wcrtomb.texi: Document the bug.
43296
43297 2008-12-21  Bruno Haible  <bruno@clisp.org>
43298
43299         Work around a btowc() bug on IRIX 6.5.
43300         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43301         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43302         REPLACE_WTOBC if not.
43303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43304         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43305         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43306
43307 2008-12-21  Bruno Haible  <bruno@clisp.org>
43308
43309         * modules/wcrtomb-tests: New file.
43310         * tests/test-wcrtomb.sh: New file.
43311         * tests/test-wcrtomb.c: New file.
43312
43313         New module 'wcrtomb'.
43314         * lib/wchar.in.h (wcrtomb): New declaration.
43315         * lib/wcrtomb.c: New file.
43316         * m4/wcrtomb.m4: New file.
43317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43318         HAVE_WCRTOMB.
43319         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43320         HAVE_WCRTOMB.
43321         * modules/wcrtomb: New file.
43322         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43323
43324 2008-12-21  Bruno Haible  <bruno@clisp.org>
43325
43326         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43327         * modules/mbsrtowcs (Files): Likewise.
43328         * modules/wctob (Files): Likewise.
43329         * modules/c-strcase-tests (Files): Likewise.
43330         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43331         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43332         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43333         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43334         * modules/vasnprintf-posix-tests (Files): Likewise.
43335
43336 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43337
43338         gitlog-to-changelog: pass all command-line arguments to git-log
43339         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43340         it is sometimes convenient to filter the commits in various ways.
43341         gitlog-to-changelog only allows --since to specify a start date,
43342         but git-log itself supports many other filtering mechanisms.
43343         At the moment, I want to filter by branch name.  Rather than
43344         adding a --branch option to gitlog-to-changelog, it seems more
43345         flexible to simply pass all options directly to git-log and let
43346         git do the work.  Notice that this effectively makes --since a
43347         redundant option for gitlog-to-changelog, but removing it would
43348         require current usage to change since calls would then require
43349         an additional '--'.
43350
43351 2008-12-21  Bruno Haible  <bruno@clisp.org>
43352
43353         * modules/mbsnrtowcs-tests: New file.
43354         * tests/test-mbsnrtowcs1.sh: New file.
43355         * tests/test-mbsnrtowcs2.sh: New file.
43356         * tests/test-mbsnrtowcs3.sh: New file.
43357         * tests/test-mbsnrtowcs4.sh: New file.
43358         * tests/test-mbsnrtowcs.c: New file.
43359
43360         New module 'mbsnrtowcs'.
43361         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43362         * lib/mbsnrtowcs.c: New file.
43363         * lib/mbsrtowcs-state.c: New file.
43364         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43365         (internal_state): Remove variable.
43366         * m4/mbsnrtowcs.m4: New file.
43367         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43368         compilation units.
43369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43370         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43371         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43372         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43373         * modules/mbsnrtowcs: New file.
43374         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43375         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43376         portability problem.
43377
43378 2008-12-21  Bruno Haible  <bruno@clisp.org>
43379
43380         Work around mbsrtowcs bug.
43381         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43382         (gl_FUNC_MBSRTOWCS): Invoke it.
43383         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43384         m4/locale-zh.m4.
43385         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43386
43387 2008-12-21  Bruno Haible  <bruno@clisp.org>
43388
43389         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43390
43391 2008-12-21  Bruno Haible  <bruno@clisp.org>
43392
43393         Update doc for AIX.
43394         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43395         16-bit wchar_t type.
43396         * doc/posix-functions/btowc.texi: Likewise.
43397         * doc/posix-functions/fgetwc.texi: Likewise.
43398         * doc/posix-functions/fgetws.texi: Likewise.
43399         * doc/posix-functions/fputwc.texi: Likewise.
43400         * doc/posix-functions/fputws.texi: Likewise.
43401         * doc/posix-functions/fwide.texi: Likewise.
43402         * doc/posix-functions/fwprintf.texi: Likewise.
43403         * doc/posix-functions/fwscanf.texi: Likewise.
43404         * doc/posix-functions/getwchar.texi: Likewise.
43405         * doc/posix-functions/getwc.texi: Likewise.
43406         * doc/posix-functions/iswalnum.texi: Likewise.
43407         * doc/posix-functions/iswalpha.texi: Likewise.
43408         * doc/posix-functions/iswblank.texi: Likewise.
43409         * doc/posix-functions/iswcntrl.texi: Likewise.
43410         * doc/posix-functions/iswctype.texi: Likewise.
43411         * doc/posix-functions/iswdigit.texi: Likewise.
43412         * doc/posix-functions/iswgraph.texi: Likewise.
43413         * doc/posix-functions/iswlower.texi: Likewise.
43414         * doc/posix-functions/iswprint.texi: Likewise.
43415         * doc/posix-functions/iswpunct.texi: Likewise.
43416         * doc/posix-functions/iswspace.texi: Likewise.
43417         * doc/posix-functions/iswupper.texi: Likewise.
43418         * doc/posix-functions/iswxdigit.texi: Likewise.
43419         * doc/posix-functions/mbrtowc.texi: Likewise.
43420         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43421         * doc/posix-functions/mbstowcs.texi: Likewise.
43422         * doc/posix-functions/mbtowc.texi: Likewise.
43423         * doc/posix-functions/putwchar.texi: Likewise.
43424         * doc/posix-functions/putwc.texi: Likewise.
43425         * doc/posix-functions/swprintf.texi: Likewise.
43426         * doc/posix-functions/tolower.texi: Likewise.
43427         * doc/posix-functions/toupper.texi: Likewise.
43428         * doc/posix-functions/towctrans.texi: Likewise.
43429         * doc/posix-functions/ungetwc.texi: Likewise.
43430         * doc/posix-functions/vswprintf.texi: Likewise.
43431         * doc/posix-functions/wcrtomb.texi: Likewise.
43432         * doc/posix-functions/wcscat.texi: Likewise.
43433         * doc/posix-functions/wcschr.texi: Likewise.
43434         * doc/posix-functions/wcscmp.texi: Likewise.
43435         * doc/posix-functions/wcscoll.texi: Likewise.
43436         * doc/posix-functions/wcscpy.texi: Likewise.
43437         * doc/posix-functions/wcscspn.texi: Likewise.
43438         * doc/posix-functions/wcsftime.texi: Likewise.
43439         * doc/posix-functions/wcslen.texi: Likewise.
43440         * doc/posix-functions/wcsncat.texi: Likewise.
43441         * doc/posix-functions/wcsncmp.texi: Likewise.
43442         * doc/posix-functions/wcsncpy.texi: Likewise.
43443         * doc/posix-functions/wcspbrk.texi: Likewise.
43444         * doc/posix-functions/wcsrchr.texi: Likewise.
43445         * doc/posix-functions/wcsrtombs.texi: Likewise.
43446         * doc/posix-functions/wcsspn.texi: Likewise.
43447         * doc/posix-functions/wcsstr.texi: Likewise.
43448         * doc/posix-functions/wcstod.texi: Likewise.
43449         * doc/posix-functions/wcstof.texi: Likewise.
43450         * doc/posix-functions/wcstoimax.texi: Likewise.
43451         * doc/posix-functions/wcstok.texi: Likewise.
43452         * doc/posix-functions/wcstold.texi: Likewise.
43453         * doc/posix-functions/wcstoll.texi: Likewise.
43454         * doc/posix-functions/wcstol.texi: Likewise.
43455         * doc/posix-functions/wcstombs.texi: Likewise.
43456         * doc/posix-functions/wcstoull.texi: Likewise.
43457         * doc/posix-functions/wcstoul.texi: Likewise.
43458         * doc/posix-functions/wcstoumax.texi: Likewise.
43459         * doc/posix-functions/wcswidth.texi: Likewise.
43460         * doc/posix-functions/wcsxfrm.texi: Likewise.
43461         * doc/posix-functions/wctob.texi: Likewise.
43462         * doc/posix-functions/wctomb.texi: Likewise.
43463         * doc/posix-functions/wctrans.texi: Likewise.
43464         * doc/posix-functions/wctype.texi: Likewise.
43465         * doc/posix-functions/wcwidth.texi: Likewise.
43466         * doc/posix-functions/wmemchr.texi: Likewise.
43467         * doc/posix-functions/wmemcmp.texi: Likewise.
43468         * doc/posix-functions/wmemcpy.texi: Likewise.
43469         * doc/posix-functions/wmemmove.texi: Likewise.
43470         * doc/posix-functions/wmemset.texi: Likewise.
43471         * doc/posix-functions/wprintf.texi: Likewise.
43472         * doc/posix-functions/wscanf.texi: Likewise.
43473
43474 2008-12-21  Bruno Haible  <bruno@clisp.org>
43475
43476         Update doc for HP-UX 11.11.
43477         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43478         in HP-UX version 11.00, not in all versions of HP-UX 11.
43479         * doc/posix-functions/fwide.texi: Likewise.
43480         * doc/posix-functions/fwprintf.texi: Likewise.
43481         * doc/posix-functions/fwscanf.texi: Likewise.
43482         * doc/posix-functions/inet_ntop.texi: Likewise.
43483         * doc/posix-functions/inet_pton.texi: Likewise.
43484         * doc/posix-functions/mbrlen.texi: Likewise.
43485         * doc/posix-functions/mbrtowc.texi: Likewise.
43486         * doc/posix-functions/mbsinit.texi: Likewise.
43487         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43488         * doc/posix-functions/swprintf.texi: Likewise.
43489         * doc/posix-functions/swscanf.texi: Likewise.
43490         * doc/posix-functions/towctrans.texi: Likewise.
43491         * doc/posix-functions/vfwprintf.texi: Likewise.
43492         * doc/posix-functions/vswprintf.texi: Likewise.
43493         * doc/posix-functions/vwprintf.texi: Likewise.
43494         * doc/posix-functions/wcrtomb.texi: Likewise.
43495         * doc/posix-functions/wcsrtombs.texi: Likewise.
43496         * doc/posix-functions/wcsstr.texi: Likewise.
43497         * doc/posix-functions/wctob.texi: Likewise.
43498         * doc/posix-functions/wctrans.texi: Likewise.
43499         * doc/posix-functions/wmemchr.texi: Likewise.
43500         * doc/posix-functions/wmemcmp.texi: Likewise.
43501         * doc/posix-functions/wmemcpy.texi: Likewise.
43502         * doc/posix-functions/wmemmove.texi: Likewise.
43503         * doc/posix-functions/wmemset.texi: Likewise.
43504         * doc/posix-functions/wprintf.texi: Likewise.
43505         * doc/posix-functions/wscanf.texi: Likewise.
43506
43507 2008-12-21  Bruno Haible  <bruno@clisp.org>
43508
43509         Work around a portability problem.
43510         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43511         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43512
43513 2008-12-20  Bruno Haible  <bruno@clisp.org>
43514
43515         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43516         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43517         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43518         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43519         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43520
43521         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43522         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43523         set.
43524         (GNULIB_defined_mbstate_t): New macro.
43525         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43526         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43527         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43528         reuses the system's mbrtowc function but works around the bugs.
43529         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43530         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43531         macros.
43532         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43533         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43534         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43535         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43536         REPLACE_MBSINIT if mbsinit needs to be overridden.
43537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43538         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43539         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43540         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43541         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43542         m4/locale-zh.m4.
43543         (Depends): Add mbsinit.
43544         * modules/mbsinit (Depends): Add mbrtowc.
43545         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43546
43547 2008-12-20  Bruno Haible  <bruno@clisp.org>
43548
43549         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43550         so that there are no conversion errors on AIX.
43551         * tests/test-mbsrtowcs.c (main): LIkewise.
43552
43553 2008-12-20  Bruno Haible  <bruno@clisp.org>
43554
43555         Work around wctob bug on Solaris <= 9.
43556         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43557         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43559         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43560         * modules/wctob (Files): Add m4/locale-fr.m4.
43561         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43562
43563 2008-12-20  Bruno Haible  <bruno@clisp.org>
43564
43565         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43566         /dev/null.
43567         * tests/test-select-in.sh: Likewise.
43568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43569
43570 2008-12-20  Bruno Haible  <bruno@clisp.org>
43571
43572         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43573         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43574         Cygwin 1.5.x.
43575
43576 2008-12-20  Bruno Haible  <bruno@clisp.org>
43577
43578         Ensure mbstate_t is defined on HP-UX 11.11.
43579         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43580         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43581         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43582         AC_USE_SYSTEM_EXTENSIONS.
43583         * modules/fnmatch (Depends-on): Add extensions.
43584         * modules/mbrlen (Depends-on): Likewise.
43585         * modules/mbrtowc (Depends-on): Likewise.
43586         * modules/mbsinit (Depends-on): Likewise.
43587         * modules/mbsrtowcs (Depends-on): Likewise.
43588         * modules/mbswidth (Depends-on): Likewise.
43589         * modules/quotearg (Depends-on): Likewise.
43590         * modules/strftime (Depends-on): Likewise.
43591
43592 2008-12-20  Bruno Haible  <bruno@clisp.org>
43593
43594         Ensure wctob is declared on IRIX 6.5.
43595         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43596         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43597         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43599         of HAVE_WCTOB.
43600         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43601         HAVE_WCTOB.
43602         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43603
43604 2008-12-19  Bruno Haible  <bruno@clisp.org>
43605
43606         * modules/mbsrtowcs-tests: New file.
43607         * tests/test-mbsrtowcs1.sh: New file.
43608         * tests/test-mbsrtowcs2.sh: New file.
43609         * tests/test-mbsrtowcs3.sh: New file.
43610         * tests/test-mbsrtowcs4.sh: New file.
43611         * tests/test-mbsrtowcs.c: New file.
43612
43613         New module 'mbsrtowcs'.
43614         * lib/wchar.in.h (mbsrtowcs): New declaration.
43615         * lib/mbsrtowcs.c: New file.
43616         * m4/mbsrtowcs.m4: New file.
43617         * modules/mbsrtowcs: New file.
43618         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43619         HAVE_MBSRTOWCS.
43620         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43621         HAVE_MBSRTOWCS.
43622         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43623
43624 2008-12-19  Bruno Haible  <bruno@clisp.org>
43625
43626         New module 'mbrlen'.
43627         * lib/wchar.in.h (mbrlen): New declaration.
43628         * lib/mbrlen.c: New file.
43629         * m4/mbrlen.m4: New file.
43630         * modules/mbrlen: New file.
43631         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43632         HAVE_MBRLEN.
43633         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43634         HAVE_MBRLEN.
43635         * doc/posix-functions/mbrlen.texi: Document the new module.
43636
43637 2008-12-19  Bruno Haible  <bruno@clisp.org>
43638
43639         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43640         * modules/mbrtowc (Depends-on): Add verify.
43641         Suggested by Paul Eggert.
43642
43643 2008-12-18  Bruno Haible  <bruno@clisp.org>
43644
43645         * modules/mbsinit-tests: New file.
43646         * tests/test-mbsinit.sh: New file.
43647         * tests/test-mbsinit.c: New file.
43648
43649 2008-12-18  Bruno Haible  <bruno@clisp.org>
43650
43651         * modules/mbrtowc-tests: New file.
43652         * tests/test-mbrtowc1.sh: New file.
43653         * tests/test-mbrtowc2.sh: New file.
43654         * tests/test-mbrtowc3.sh: New file.
43655         * tests/test-mbrtowc4.sh: New file.
43656         * tests/test-mbrtowc.c: New file.
43657
43658         New module 'mbrtowc'.
43659         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43660         mbsinit and mbrtowc.
43661         (mbrtowc): New declaration.
43662         * lib/mbrtowc.c: New file.
43663         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43664         * modules/mbrtowc: New file.
43665         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43666         HAVE_MBRTOWC.
43667         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43668         HAVE_MBRTOWC.
43669         * doc/posix-functions/mbrtowc.texi: Document the new module.
43670
43671 2008-12-18  Bruno Haible  <bruno@clisp.org>
43672
43673         New module 'wctob'.
43674         * lib/wchar.in.h (wctob): New declaration.
43675         * lib/wctob.c: New file.
43676         * m4/wctob.m4: New file.
43677         * modules/wctob: New file.
43678         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43679         HAVE_WCTOB.
43680         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43681         * doc/posix-functions/wctob.texi: Document the new module.
43682
43683 2008-12-18  Bruno Haible  <bruno@clisp.org>
43684
43685         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43686         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43687
43688 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43689
43690         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43691         G. Christensen" <tgc@jupiterrise.com>.
43692
43693         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43694         G. Christensen" <tgc@jupiterrise.com>.
43695
43696         * lib/flock.c: Need to include string.h.  Reported by "Tom
43697         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43698         <ebb9@byu.net>.
43699
43700 2008-12-18  Bruno Haible  <bruno@clisp.org>
43701
43702         * m4/locale-ja.m4: New file, from GNU gettext.
43703
43704 2008-12-17  Bruno Haible  <bruno@clisp.org>
43705
43706         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43707         Suggested by Eric Blake.
43708
43709 2008-12-17  Bruno Haible  <bruno@clisp.org>
43710
43711         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43712
43713 2008-12-17  Bruno Haible  <bruno@clisp.org>
43714
43715         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43716         * modules/mbsinit (Depends-on): Add verify.
43717         Suggested by Paul Eggert.
43718
43719 2008-12-17  Bruno Haible  <bruno@clisp.org>
43720
43721         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43722         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43723         gl_FUNC_MBRTOWC.
43724         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43725         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43726         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43727         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43728         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43729         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43730         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43731         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43732         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43733         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43734         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43735         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43736         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43737         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43738         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43739         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43740         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43741         * modules/trim (configure.ac): Likewise.
43742
43743 2008-12-17  Bruno Haible  <bruno@clisp.org>
43744
43745         * modules/btowc-tests: New file.
43746         * tests/test-btowc1.sh: New file.
43747         * tests/test-btowc2.sh: New file.
43748         * tests/test-btowc.c: New file.
43749
43750         New module 'btowc'.
43751         * lib/wchar.in.h (btowc): New declaration.
43752         * lib/btowc.c: New file.
43753         * m4/btowc.m4: New file.
43754         * modules/btowc: New file.
43755         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43756         HAVE_BTOWC.
43757         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43758         * doc/posix-functions/btowc.texi: Document the new module.
43759
43760 2008-12-17  Bruno Haible  <bruno@clisp.org>
43761
43762         New module 'mbsinit'.
43763         * lib/wchar.in.h (mbsinit): New declaration.
43764         * lib/mbsinit.c: New file.
43765         * m4/mbsinit.m4: New file.
43766         * modules/mbsinit: New file.
43767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43768         HAVE_MBSINIT.
43769         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43770         HAVE_MBSINIT.
43771         * doc/posix-functions/mbsinit.texi: Document the new module.
43772
43773 2008-12-16  Bruno Haible  <bruno@clisp.org>
43774
43775         * lib/unistd.in.h: Add comment.
43776         * tests/test-environ.c: Don't include <stdlib.h>.
43777
43778 2008-12-16  Bruno Haible  <bruno@clisp.org>
43779
43780         * lib/parse-duration.h (parse_duration): Document return value
43781         convention.
43782         * lib/parse-duration.c: Include specification header first. Add
43783         comments.
43784         (_): Remove macro.
43785         (parse_year_month_day, parse_hour_minute_second): Move side effects
43786         outside of strchr call.
43787         (parse_non_iso8601): Move side effects outside of isspace call.
43788         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43789         call.
43790
43791 2008-12-16  Bruno Haible  <bruno@clisp.org>
43792
43793         * tests/test-parse-duration.sh: Produce no output when the test
43794         succeeds.
43795
43796 2008-12-16  Bruno Haible  <bruno@clisp.org>
43797
43798         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43799         expressions.
43800
43801 2008-12-15  Bruno Haible  <bruno@clisp.org>
43802
43803         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43804         * doc/glibc-functions/flistxattr.texi: Likewise.
43805         * doc/glibc-functions/fopencookie.texi: Likewise.
43806         * doc/glibc-functions/fremovexattr.texi: Likewise.
43807         * doc/glibc-functions/fsetxattr.texi: Likewise.
43808         * doc/glibc-functions/getxattr.texi: Likewise.
43809         * doc/glibc-functions/lgetxattr.texi: Likewise.
43810         * doc/glibc-functions/listxattr.texi: Likewise.
43811         * doc/glibc-functions/llistxattr.texi: Likewise.
43812         * doc/glibc-functions/lremovexattr.texi: Likewise.
43813         * doc/glibc-functions/lsetxattr.texi: Likewise.
43814         * doc/glibc-functions/removexattr.texi: Likewise.
43815         * doc/glibc-functions/setxattr.texi: Likewise.
43816         * doc/posix-functions/open_memstream.texi: Likewise.
43817
43818 2008-12-15  Eric Blake  <ebb9@byu.net>
43819
43820         Update doc for cygwin 1.7.
43821         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43822         functions.
43823         * doc/posix-functions/fchmodat.texi: Likewise.
43824         * doc/posix-functions/fchownat.texi: Likewise.
43825         * doc/posix-functions/fdopendir.texi: Likewise.
43826         * doc/posix-functions/fmemopen.texi: Likewise.
43827         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43828         * doc/posix-functions/fstatat.texi: Likewise.
43829         * doc/posix-functions/futimens.texi: Likewise.
43830         * doc/posix-functions/gai_strerror.texi: Likewise.
43831         * doc/posix-functions/getaddrinfo.texi: Likewise.
43832         * doc/posix-functions/getnameinfo.texi: Likewise.
43833         * doc/posix-functions/if_freenameindex.texi: Likewise.
43834         * doc/posix-functions/if_indextoname.texi: Likewise.
43835         * doc/posix-functions/if_nameindex.texi: Likewise.
43836         * doc/posix-functions/if_nametoindex.texi: Likewise.
43837         * doc/posix-functions/insque.texi: Likewise.
43838         * doc/posix-functions/linkat.texi: Likewise.
43839         * doc/posix-functions/llrint.texi: Likewise.
43840         * doc/posix-functions/llrintf.texi: Likewise.
43841         * doc/posix-functions/llrintl.texi: Likewise.
43842         * doc/posix-functions/lockf.texi: Likewise.
43843         * doc/posix-functions/lrintl.texi: Likewise.
43844         * doc/posix-functions/mkdirat.texi: Likewise.
43845         * doc/posix-functions/mkfifoat.texi: Likewise.
43846         * doc/posix-functions/mknodat.texi: Likewise.
43847         * doc/posix-functions/mq_close.texi: Likewise.
43848         * doc/posix-functions/mq_getattr.texi: Likewise.
43849         * doc/posix-functions/mq_notify.texi: Likewise.
43850         * doc/posix-functions/mq_open.texi: Likewise.
43851         * doc/posix-functions/mq_receive.texi: Likewise.
43852         * doc/posix-functions/mq_send.texi: Likewise.
43853         * doc/posix-functions/mq_setattr.texi: Likewise.
43854         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43855         * doc/posix-functions/mq_timedsend.texi: Likewise.
43856         * doc/posix-functions/mq_unlink.texi: Likewise.
43857         * doc/posix-functions/open_memstream.texi: Likewise.
43858         * doc/posix-functions/openat.texi: Likewise.
43859         * doc/posix-functions/posix_fadvise.texi: Likewise.
43860         * doc/posix-functions/posix_fallocate.texi: Likewise.
43861         * doc/posix-functions/posix_madvise.texi: Likewise.
43862         * doc/posix-functions/posix_memalign.texi: Likewise.
43863         * doc/posix-functions/posix_openpt.texi: Likewise.
43864         * doc/posix-functions/readlinkat.texi: Likewise.
43865         * doc/posix-functions/remque.texi: Likewise.
43866         * doc/posix-functions/renameat.texi: Likewise.
43867         * doc/posix-functions/rintl.texi: Likewise.
43868         * doc/posix-functions/sem_unlink.texi: Likewise.
43869         * doc/posix-functions/shm_open.texi: Likewise.
43870         * doc/posix-functions/shm_unlink.texi: Likewise.
43871         * doc/posix-functions/signgam.texi: Likewise.
43872         * doc/posix-functions/sigset.texi: Likewise.
43873         * doc/posix-functions/stpcpy.texi: Likewise.
43874         * doc/posix-functions/stpncpy.texi: Likewise.
43875         * doc/posix-functions/strerror.texi: Likewise.
43876         * doc/posix-functions/strtod.texi: Likewise.
43877         * doc/posix-functions/symlinkat.texi: Likewise.
43878         * doc/posix-functions/unlinkat.texi: Likewise.
43879         * doc/posix-functions/utimensat.texi: Likewise.
43880         * doc/glibc-functions/bindresvport.texi: Likewise.
43881         * doc/glibc-functions/dn_expand.texi: Likewise.
43882         * doc/glibc-functions/exp10.texi: Likewise.
43883         * doc/glibc-functions/exp10f.texi: Likewise.
43884         * doc/glibc-functions/fgetxattr.texi: Likewise.
43885         * doc/glibc-functions/flistxattr.texi: Likewise.
43886         * doc/glibc-functions/fopencookie.texi: Likewise.
43887         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43888         * doc/glibc-functions/fremovexattr.texi: Likewise.
43889         * doc/glibc-functions/fsetxattr.texi: Likewise.
43890         * doc/glibc-functions/getifaddrs.texi: Likewise.
43891         * doc/glibc-functions/getxattr.texi: Likewise.
43892         * doc/glibc-functions/lgetxattr.texi: Likewise.
43893         * doc/glibc-functions/listxattr.texi: Likewise.
43894         * doc/glibc-functions/llistxattr.texi: Likewise.
43895         * doc/glibc-functions/lremovexattr.texi: Likewise.
43896         * doc/glibc-functions/lsetxattr.texi: Likewise.
43897         * doc/glibc-functions/pow10.texi: Likewise.
43898         * doc/glibc-functions/pow10f.texi: Likewise.
43899         * doc/glibc-functions/rcmd_af.texi: Likewise.
43900         * doc/glibc-functions/removexattr.texi: Likewise.
43901         * doc/glibc-functions/res_init.texi: Likewise.
43902         * doc/glibc-functions/res_mkquery.texi: Likewise.
43903         * doc/glibc-functions/res_query.texi: Likewise.
43904         * doc/glibc-functions/res_querydomain.texi: Likewise.
43905         * doc/glibc-functions/res_send.texi: Likewise.
43906         * doc/glibc-functions/rresvport_af.texi: Likewise.
43907         * doc/glibc-functions/setxattr.texi: Likewise.
43908         * doc/glibc-functions/strcasestr.texi: Likewise.
43909
43910 2008-12-15  Bruno Haible  <bruno@clisp.org>
43911
43912         Fix compilation error on OSF/1 4.0.
43913         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43914         <sys/time.h>, simply delegate to the system header.
43915         Reported by Daniel Richard G. <oss@teragram.com>.
43916
43917 2008-12-15  Bruno Haible  <bruno@clisp.org>
43918
43919         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43920         * doc/posix-functions/fchmodat.texi: Likewise.
43921         * doc/posix-functions/fchownat.texi: Likewise.
43922         * doc/posix-functions/fdopendir.texi: Likewise.
43923         * doc/posix-functions/fstatat.texi: Likewise.
43924         * doc/posix-functions/mkdirat.texi: Likewise.
43925         * doc/posix-functions/unlinkat.texi: Likewise.
43926
43927 2008-12-14  Bruno Haible  <bruno@clisp.org>
43928
43929         Update doc for POSIX:2008.
43930         * doc/posix-functions/faccessat.texi: New file.
43931         * doc/posix-functions/fchmodat.texi: New file.
43932         * doc/posix-functions/fchownat.texi: New file.
43933         * doc/posix-functions/fdopendir.texi: New file.
43934         * doc/posix-functions/fstatat.texi: New file.
43935         * doc/posix-functions/futimens.texi: New file.
43936         * doc/posix-functions/linkat.texi: New file.
43937         * doc/posix-functions/mkdirat.texi: New file.
43938         * doc/posix-functions/mkfifoat.texi: New file.
43939         * doc/posix-functions/mknodat.texi: New file.
43940         * doc/posix-functions/open_wmemstream.texi: New file.
43941         * doc/posix-functions/openat.texi: New file.
43942         * doc/posix-functions/psiginfo.texi: New file.
43943         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43944         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43945         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43946         * doc/posix-functions/readlinkat.texi: New file.
43947         * doc/posix-functions/renameat.texi: New file.
43948         * doc/posix-functions/strerror_l.texi: New file.
43949         * doc/posix-functions/symlinkat.texi: New file.
43950         * doc/posix-functions/unlinkat.texi: New file.
43951         * doc/posix-functions/utimensat.texi: New file.
43952         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43953
43954 2008-12-14  Bruno Haible  <bruno@clisp.org>
43955
43956         Update doc for POSIX:2008.
43957         * doc/posix-functions/alphasort.texi: Renamed from
43958         doc/glibc-functions/alphasort.texi.
43959         * doc/posix-functions/dirfd.texi: Renamed from
43960         doc/glibc-functions/dirfd.texi.
43961         * doc/posix-functions/dprintf.texi: Renamed from
43962         doc/glibc-functions/dprintf.texi.
43963         * doc/posix-functions/duplocale.texi: Renamed from
43964         doc/glibc-functions/duplocale.texi.
43965         * doc/posix-functions/fexecve.texi: Renamed from
43966         doc/glibc-functions/fexecve.texi.
43967         * doc/posix-functions/fmemopen.texi: Renamed from
43968         doc/glibc-functions/fmemopen.texi.
43969         * doc/posix-functions/freelocale.texi: Renamed from
43970         doc/glibc-functions/freelocale.texi.
43971         * doc/posix-functions/getdate_err.texi: Renamed from
43972         doc/glibc-functions/getdate_err.texi.
43973         * doc/posix-functions/isalnum_l.texi: Renamed from
43974         doc/glibc-functions/isalnum_l.texi.
43975         * doc/posix-functions/isalpha_l.texi: Renamed from
43976         doc/glibc-functions/isalpha_l.texi.
43977         * doc/posix-functions/isblank_l.texi: Renamed from
43978         doc/glibc-functions/isblank_l.texi.
43979         * doc/posix-functions/iscntrl_l.texi: Renamed from
43980         doc/glibc-functions/iscntrl_l.texi.
43981         * doc/posix-functions/isdigit_l.texi: Renamed from
43982         doc/glibc-functions/isdigit_l.texi.
43983         * doc/posix-functions/isgraph_l.texi: Renamed from
43984         doc/glibc-functions/isgraph_l.texi.
43985         * doc/posix-functions/islower_l.texi: Renamed from
43986         doc/glibc-functions/islower_l.texi.
43987         * doc/posix-functions/isprint_l.texi: Renamed from
43988         doc/glibc-functions/isprint_l.texi.
43989         * doc/posix-functions/ispunct_l.texi: Renamed from
43990         doc/glibc-functions/ispunct_l.texi.
43991         * doc/posix-functions/isspace_l.texi: Renamed from
43992         doc/glibc-functions/isspace_l.texi.
43993         * doc/posix-functions/isupper_l.texi: Renamed from
43994         doc/glibc-functions/isupper_l.texi.
43995         * doc/posix-functions/iswalnum_l.texi: Renamed from
43996         doc/glibc-functions/iswalnum_l.texi.
43997         * doc/posix-functions/iswalpha_l.texi: Renamed from
43998         doc/glibc-functions/iswalpha_l.texi.
43999         * doc/posix-functions/iswblank_l.texi: Renamed from
44000         doc/glibc-functions/iswblank_l.texi.
44001         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44002         doc/glibc-functions/iswcntrl_l.texi.
44003         * doc/posix-functions/iswctype_l.texi: Renamed from
44004         doc/glibc-functions/iswctype_l.texi.
44005         * doc/posix-functions/iswdigit_l.texi: Renamed from
44006         doc/glibc-functions/iswdigit_l.texi.
44007         * doc/posix-functions/iswgraph_l.texi: Renamed from
44008         doc/glibc-functions/iswgraph_l.texi.
44009         * doc/posix-functions/iswlower_l.texi: Renamed from
44010         doc/glibc-functions/iswlower_l.texi.
44011         * doc/posix-functions/iswprint_l.texi: Renamed from
44012         doc/glibc-functions/iswprint_l.texi.
44013         * doc/posix-functions/iswpunct_l.texi: Renamed from
44014         doc/glibc-functions/iswpunct_l.texi.
44015         * doc/posix-functions/iswspace_l.texi: Renamed from
44016         doc/glibc-functions/iswspace_l.texi.
44017         * doc/posix-functions/iswupper_l.texi: Renamed from
44018         doc/glibc-functions/iswupper_l.texi.
44019         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44020         doc/glibc-functions/iswxdigit_l.texi.
44021         * doc/posix-functions/isxdigit_l.texi: Renamed from
44022         doc/glibc-functions/isxdigit_l.texi.
44023         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44024         doc/glibc-functions/mbsnrtowcs.texi.
44025         * doc/posix-functions/mkdtemp.texi: Renamed from
44026         doc/glibc-functions/mkdtemp.texi.
44027         * doc/posix-functions/newlocale.texi: Renamed from
44028         doc/glibc-functions/newlocale.texi.
44029         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44030         doc/glibc-functions/nl_langinfo_l.texi.
44031         * doc/posix-functions/open_memstream.texi: Renamed from
44032         doc/glibc-functions/open_memstream.texi.
44033         * doc/posix-functions/opterr.texi: Renamed from
44034         doc/glibc-functions/opterr.texi.
44035         * doc/posix-functions/optind.texi: Renamed from
44036         doc/glibc-functions/optind.texi.
44037         * doc/posix-functions/optopt.texi: Renamed from
44038         doc/glibc-functions/optopt.texi.
44039         * doc/posix-functions/psignal.texi: Renamed from
44040         doc/glibc-functions/psignal.texi.
44041         * doc/posix-functions/scandir.texi: Renamed from
44042         doc/glibc-functions/scandir.texi.
44043         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44044         doc/glibc-functions/sched_get_priority_min.texi.
44045         * doc/posix-functions/signgam.texi: Renamed from
44046         doc/glibc-functions/signgam.texi.
44047         * doc/posix-functions/stpcpy.texi: Renamed from
44048         doc/glibc-functions/stpcpy.texi.
44049         * doc/posix-functions/stpncpy.texi: Renamed from
44050         doc/glibc-functions/stpncpy.texi.
44051         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44052         doc/glibc-functions/strcasecmp_l.texi.
44053         * doc/posix-functions/strcoll_l.texi: Renamed from
44054         doc/glibc-functions/strcoll_l.texi.
44055         * doc/posix-functions/strfmon_l.texi: Renamed from
44056         doc/glibc-functions/strfmon_l.texi.
44057         * doc/posix-functions/strftime_l.texi: Renamed from
44058         doc/glibc-functions/strftime_l.texi.
44059         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44060         doc/glibc-functions/strncasecmp_l.texi.
44061         * doc/posix-functions/strndup.texi: Renamed from
44062         doc/glibc-functions/strndup.texi.
44063         * doc/posix-functions/strnlen.texi: Renamed from
44064         doc/glibc-functions/strnlen.texi.
44065         * doc/posix-functions/strsignal.texi: Renamed from
44066         doc/glibc-functions/strsignal.texi.
44067         * doc/posix-functions/strxfrm_l.texi: Renamed from
44068         doc/glibc-functions/strxfrm_l.texi.
44069         * doc/posix-functions/timer_gettime.texi: Renamed from
44070         doc/glibc-functions/timer_gettime.texi.
44071         * doc/posix-functions/tolower_l.texi: Renamed from
44072         doc/glibc-functions/tolower_l.texi.
44073         * doc/posix-functions/toupper_l.texi: Renamed from
44074         doc/glibc-functions/toupper_l.texi.
44075         * doc/posix-functions/towctrans_l.texi: Renamed from
44076         doc/glibc-functions/towctrans_l.texi.
44077         * doc/posix-functions/towlower_l.texi: Renamed from
44078         doc/glibc-functions/towlower_l.texi.
44079         * doc/posix-functions/towupper_l.texi: Renamed from
44080         doc/glibc-functions/towupper_l.texi.
44081         * doc/posix-functions/uselocale.texi: Renamed from
44082         doc/glibc-functions/uselocale.texi.
44083         * doc/posix-functions/vdprintf.texi: Renamed from
44084         doc/glibc-functions/vdprintf.texi.
44085         * doc/posix-functions/wcpcpy.texi:
44086         Renamed from doc/glibc-functions/wcpcpy.texi.
44087         * doc/posix-functions/wcpncpy.texi: Renamed from
44088         doc/glibc-functions/wcpncpy.texi.
44089         * doc/posix-functions/wcscasecmp.texi: Renamed from
44090         doc/glibc-functions/wcscasecmp.texi.
44091         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44092         doc/glibc-functions/wcscasecmp_l.texi.
44093         * doc/posix-functions/wcscoll_l.texi: Renamed from
44094         doc/glibc-functions/wcscoll_l.texi.
44095         * doc/posix-functions/wcsdup.texi: Renamed from
44096         doc/glibc-functions/wcsdup.texi.
44097         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44098         doc/glibc-functions/wcsncasecmp.texi.
44099         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44100         doc/glibc-functions/wcsncasecmp_l.texi.
44101         * doc/posix-functions/wcsnlen.texi: Renamed from
44102         doc/glibc-functions/wcsnlen.texi.
44103         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44104         doc/glibc-functions/wcsnrtombs.texi.
44105         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44106         doc/glibc-functions/wcsxfrm_l.texi.
44107         * doc/posix-functions/wctrans_l.texi: Renamed from
44108         doc/glibc-functions/wctrans_l.texi.
44109         * doc/posix-functions/wctype_l.texi: Renamed from
44110         doc/glibc-functions/wctype_l.texi.
44111         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44112         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44113         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44114         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44115         these subsections.
44116         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44117         Remove sections.
44118
44119 2008-12-14  Bruno Haible  <bruno@clisp.org>
44120
44121         Update doc for POSIX:2008.
44122         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44123
44124 2008-12-14  Bruno Haible  <bruno@clisp.org>
44125
44126         Update doc for POSIX:2008.
44127         * doc/pastposix-functions/bcmp.texi: Renamed from
44128         doc/posix-functions/bcmp.texi.
44129         * doc/pastposix-functions/bcopy.texi: Renamed from
44130         doc/posix-functions/bcopy.texi.
44131         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44132         doc/posix-functions/bsd_signal.texi.
44133         * doc/pastposix-functions/bzero.texi: Renamed from
44134         doc/posix-functions/bzero.texi.
44135         * doc/pastposix-functions/ecvt.texi: Renamed from
44136         doc/posix-functions/ecvt.texi.
44137         * doc/pastposix-functions/fcvt.texi: Renamed from
44138         doc/posix-functions/fcvt.texi.
44139         * doc/pastposix-functions/ftime.texi: Renamed from
44140         doc/posix-functions/ftime.texi.
44141         * doc/pastposix-functions/gcvt.texi: Renamed from
44142         doc/posix-functions/gcvt.texi.
44143         * doc/pastposix-functions/getcontext.texi: Renamed from
44144         doc/posix-functions/getcontext.texi.
44145         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44146         doc/posix-functions/gethostbyaddr.texi.
44147         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44148         doc/posix-functions/gethostbyname.texi.
44149         * doc/pastposix-functions/getwd.texi: Renamed from
44150         doc/posix-functions/getwd.texi.
44151         * doc/pastposix-functions/h_errno.texi: Renamed from
44152         doc/posix-functions/h_errno.texi.
44153         * doc/pastposix-functions/index.texi: Renamed from
44154         doc/posix-functions/index.texi.
44155         * doc/pastposix-functions/makecontext.texi: Renamed from
44156         doc/posix-functions/makecontext.texi.
44157         * doc/pastposix-functions/mktemp.texi: Renamed from
44158         doc/posix-functions/mktemp.texi.
44159         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44160         doc/posix-functions/pthread_attr_getstackaddr.texi.
44161         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44162         doc/posix-functions/pthread_attr_setstackaddr.texi.
44163         * doc/pastposix-functions/rindex.texi: Renamed from
44164         doc/posix-functions/rindex.texi.
44165         * doc/pastposix-functions/scalb.texi: Renamed from
44166         doc/posix-functions/scalb.texi.
44167         * doc/pastposix-functions/setcontext.texi: Renamed from
44168         doc/posix-functions/setcontext.texi.
44169         * doc/pastposix-functions/swapcontext.texi: Renamed from
44170         doc/posix-functions/swapcontext.texi.
44171         * doc/pastposix-functions/ualarm.texi: Renamed from
44172         doc/posix-functions/ualarm.texi.
44173         * doc/pastposix-functions/usleep.texi: Renamed from
44174         doc/posix-functions/usleep.texi.
44175         * doc/pastposix-functions/vfork.texi: Renamed from
44176         doc/posix-functions/vfork.texi.
44177         * doc/pastposix-functions/wcswcs.texi: Renamed from
44178         doc/posix-functions/wcswcs.texi.
44179         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44180         (Function Substitutes): Update.
44181
44182 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44183
44184         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44185         m4/strerror.m4.
44186
44187 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44188             Bruno Haible  <bruno@clisp.org>
44189
44190         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44191
44192 2008-12-13  Bruno Haible  <bruno@clisp.org>
44193
44194         * modules/strtoull (Depends-on): Remove unistd.
44195
44196 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44197
44198         * modules/strtoull (Depends-on): Add stdlib.
44199
44200 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44201
44202         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44203
44204 2008-12-10  Jim Meyering  <meyering@redhat.com>
44205
44206         gl_ASSERT: don't say assertions are disabled when they're not
44207         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44208         "checking whether to enable assertions... no", when they are in
44209         fact enabled.  This is solely a bug in the output of configure.
44210         In spite of saying "no", NDEBUG was not defined in that case.
44211         Also, as noted by Eric Blake, leave assertions enabled upon
44212         --enable-assert=INVALID.
44213
44214 2008-12-10  Bruno Haible  <bruno@clisp.org>
44215
44216         Change MODULES.html to refer to POSIX:2008 where possible.
44217         * MODULES.html.sh (POSIX2008_URL): New variable.
44218         (posix_headers): Remove sys/timeb, ucontext.
44219         (posix2001_headers): New variable.
44220         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44221         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44222         index, makecontext, mktemp, pthread_attr_getstackaddr,
44223         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44224         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44225         (posix2001_functions): New variable.
44226         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44227         otherwise.
44228
44229 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44230
44231         add missing include to parse-duration.c
44232         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44233         * modules/parse-duration (Depends-on): Add xalloc.
44234
44235         fix sed script reading maint.mk
44236         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44237         (syntax-check-rules): Use it.
44238
44239 2008-12-09  Bruno Haible  <bruno@clisp.org>
44240
44241         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44242         MacOS X 10.4/PowerPC.
44243         Reported by Simon Josefsson.
44244
44245 2008-12-08  Jim Meyering  <meyering@redhat.com>
44246
44247         work around mingw's lack of some S_IF definitions
44248         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44249         Reported by Simon Josefsson.
44250
44251 2008-12-08  Bruno Haible  <bruno@clisp.org>
44252
44253         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44254         applied to variables. Needed on MacOS X 10.4/PowerPC.
44255         Reported by Simon Josefsson.
44256
44257 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44258         and Eric Blake  <ebb9@byu.net>
44259
44260         assert: honor --enable-assert
44261         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44262         order to honor --enable-assert, rather than treating it as a
44263         synonym for --disable-assert.
44264
44265 2008-12-08  Jim Meyering  <meyering@redhat.com>
44266
44267         * lib/posixtm.c: Remove now-useless declaration of mktime.
44268
44269         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44270
44271 2008-12-07  Bruno Haible  <bruno@clisp.org>
44272
44273         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44274         test_once): Mark functions as static.
44275         * tests/test-tls.c (test_tls): Likewise.
44276
44277 2008-12-07  Bruno Haible  <bruno@clisp.org>
44278
44279         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44280         iconv_register_autodetect.
44281
44282 2008-12-07  Jim Meyering  <meyering@redhat.com>
44283
44284         posixtm.c: avoid a warning
44285         * lib/posixtm.c (posixtime): Don't initialize tm0.
44286         It's no longer needed to placate gcc4's -Wuninitialized,
44287         and the attempt to placate would elicit a new warning.
44288
44289         unicodeio.c: mark unused parameters
44290         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44291         (fallback_failure_callback): Likewise.
44292
44293 2008-12-07  Bruno Haible  <bruno@clisp.org>
44294
44295         * gnulib-tool (func_create_testdir): When building the tests
44296         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44297         Reported by Simon Josefsson.
44298
44299 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44300
44301         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44302
44303 2008-12-06  Bruno Haible  <bruno@clisp.org>
44304
44305         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44306         Suggested by Eric Blake.
44307
44308 2008-12-06  Bruno Haible  <bruno@clisp.org>
44309
44310         Fix a c-stack test failure on MacOS X.
44311         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44312         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44313         handler for SIGBUS as well.
44314         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44315         install a signal handler for SIGBUS as well.
44316         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44317
44318 2008-12-06  Bruno Haible  <bruno@clisp.org>
44319
44320         Advocacy documentation.
44321         * doc/gnulib-intro.texi (Benefits): New section.
44322         * doc/gnulib.texi: Update.
44323
44324 2008-12-06  Bruno Haible  <bruno@clisp.org>
44325
44326         Document the 'manywarnings' module.
44327         * doc/manywarnings.texi: New file.
44328         * doc/gnulib.texi: Include it.
44329
44330 2008-12-05  Eric Blake  <ebb9@byu.net>
44331
44332         tests: silence some gcc warnings
44333         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44334         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44335         type mismatches.
44336
44337 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44338             Bruno Haible  <bruno@clisp.org>
44339
44340         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44341
44342 2008-11-29  Jim Meyering  <meyering@redhat.com>
44343
44344         unicodeio.c: mark unused parameters
44345         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44346         (fallback_failure_callback): Likewise.
44347
44348         fts: fix a thinko
44349         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44350         (set_stat_type): Return S_IF*-valued "type" directly.
44351         Prompted by James Youngman's spotting a related bug.
44352         Confirmed by further testing through find.
44353
44354         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44355         * lib/fts.c (D_TYPE): Define.
44356         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44357         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44358         (s_ifmt_shift_bits): New function.
44359         (set_stat_type): New function.
44360         (fts_build): When not calling fts_stat, call set_stat_type
44361         to propagate dirent.d_type info to fts_read caller.
44362         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44363         fts_statp->st_mode type information may be valid.
44364
44365 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44366
44367         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44368         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44369         <sds@gnu.org>.
44370
44371 2008-11-20  Bruno Haible  <bruno@clisp.org>
44372
44373         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44374         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44375         INCLUDE_NEXT.
44376         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44377         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44378         * modules/math (Makefile.am): Substitute
44379         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44380         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44381
44382 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44383             Bruno Haible  <bruno@clisp.org>
44384
44385         * lib/stdint.in.h: Define all type macros so that their expansion is
44386         a single typedef'ed token. Fixes a compilation failure in Boost which
44387         does "using ::int8_t;".
44388
44389 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44390
44391         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44392         gl_MANYWARN_ALL_GCC.
44393         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44394         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44395         * modules/manywarnings: New file.
44396         * MODULES.html.sh: Mention manywarnings module.
44397
44398 2008-11-18  Bruno Haible  <bruno@clisp.org>
44399
44400         * doc/gnulib-tool.texi (Unit tests): New section.
44401
44402 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44403
44404         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44405         paths like 'lib/po/foo.po'.
44406
44407 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44408
44409         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44410         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44411
44412 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44413
44414         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44415         parameter works.
44416
44417 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44418
44419         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44420
44421 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44422
44423         * modules/parse-duration-tests: New file.
44424         * tests/test-parse-duration.sh: New file.
44425         * tests/test-parse-duration.c: New file.
44426
44427         New module 'parse-duration'.
44428         * lib/parse-duration.h: New file.
44429         * lib/parse-duration.c: New file.
44430         * modules/parse-duration: New file.
44431
44432 2008-11-17  Bruno Haible  <bruno@clisp.org>
44433
44434         * tests/test-select-out.sh: Comment out the first pipe test.
44435         Reported by Simon Josefsson.
44436
44437 2008-11-17  Bruno Haible  <bruno@clisp.org>
44438
44439         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44440         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44441         gl_HOSTENT.
44442
44443 2008-11-17  Bruno Haible  <bruno@clisp.org>
44444
44445         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44446         -lnetwork and -lnet. Needed for Haiku and BeOS.
44447
44448 2008-11-16  Bruno Haible  <bruno@clisp.org>
44449
44450         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44451
44452 2008-11-16  Bruno Haible  <bruno@clisp.org>
44453
44454         Avoid test failure on Haiku.
44455         * tests/test-fsync.c: Include <errno.h>.
44456         (main): Don't require that fsync (0) fails.
44457
44458 2008-11-15  Bruno Haible  <bruno@clisp.org>
44459
44460         New module 'hostent'.
44461         * modules/hostent: New file.
44462         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44463
44464 2008-11-15  Bruno Haible  <bruno@clisp.org>
44465
44466         New module 'servent'.
44467         * modules/servent: New file.
44468         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44469
44470 2008-11-15  Bruno Haible  <bruno@clisp.org>
44471
44472         Avoid generating same test program with two different rules.
44473         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44474         test-frexp to test-frexp-nolibm.
44475         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44476         test-frexpl to test-frexpl-nolibm.
44477
44478 2008-11-15  Bruno Haible  <bruno@clisp.org>
44479
44480         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44481         $(FREXPL_LIBM).
44482
44483 2008-11-15  Bruno Haible  <bruno@clisp.org>
44484
44485         * lib/netdb.in.h: Activate the definitions also when the system's
44486         <netdb.h> has 'struct addrinfo'.
44487         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44488         EAI_OVERFLOW or AI_NUMERICSERV.
44489         * doc/posix-headers/netdb.texi: Document the problem.
44490
44491 2008-11-15  Bruno Haible  <bruno@clisp.org>
44492
44493         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44494
44495         Make the 'sched' module work on platforms where <sched.h> exists but
44496         is incomplete (such as Haiku).
44497         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44498         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44499         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44500         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44501         HAVE_STRUCT_SCHED_PARAM.
44502         * modules/sched (Depends-on): Add include_next.
44503         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44504         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44505         * doc/posix-headers/sched.texi: Document the issue.
44506
44507 2008-11-13  Jim Meyering  <meyering@redhat.com>
44508
44509         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44510         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44511         test would fail due to the difference in the Report bugs to ...
44512         line.  The expected address is empty, "<>", while the actual
44513         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44514
44515 2008-11-12  Bruno Haible  <bruno@clisp.org>
44516
44517         lstat: don't compile lstat.c on systems lacking lstat
44518         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44519         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44520         Reported by Daniel P. Berrange via Jim Meyering.
44521
44522 2008-11-12  Jim Meyering  <meyering@redhat.com>
44523
44524         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44525
44526 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44527
44528         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44529         instead.
44530
44531 2008-11-12  Bruno Haible  <bruno@clisp.org>
44532
44533         * lib/unicodeio.c: Include unistr.h.
44534         (utf8_wctomb): Remove function.
44535         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44536
44537 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44538
44539         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44540         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44541         <bruno@clisp.org>.
44542         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44543
44544 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44545
44546         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44547         * doc/gnulib.texi: Add section for warnings.
44548
44549 2008-11-11  Bruno Haible  <bruno@clisp.org>
44550
44551         * lib/sockets.h: Add a comment.
44552
44553 2008-11-11  Karl Berry  <karl@gnu.org>
44554
44555         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44556
44557 2008-11-11  Eric Blake  <ebb9@byu.net>
44558
44559         fdl.texi: avoid git symlinks
44560         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44561
44562 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44563
44564         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44565
44566 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44567
44568         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44569         (gl_WARN_ADD): Substitute $2 if literal.
44570
44571 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44572
44573         * m4/warning.m4: Remove.
44574
44575 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44576
44577         * m4/warnings.m4: Almost complete rewrite. :-)
44578
44579 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44580
44581         * modules/warnings: New module.
44582         * m4/warnings.m4: New file.
44583         * MODULES.html.sh: Mention warnings module.
44584         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44585         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44586
44587 2008-11-10  Eric Blake  <ebb9@byu.net>
44588
44589         fdl.texi: make a symlink to the latest version
44590         * doc/standards.texi: Revert today's earlier change.
44591         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44592         * doc/fdl.texi: ...and replace this with a symlink to the newer
44593         fdl-1.3.texi.
44594
44595 2008-11-10  Bruno Haible  <bruno@clisp.org>
44596
44597         * tests/test-select-fd.c (main): Accept the result file name as fourth
44598         argument.
44599         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44600         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44601
44602 2008-11-10  Bruno Haible  <bruno@clisp.org>
44603
44604         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44605         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44606         as autoconf-substituted macros.
44607         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44608         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44609         gl_NETDB_H_DEFAULTS. Set these variables.
44610         * modules/netdb (Makefile.am): Substitute these variables.
44611
44612 2008-11-10  Eric Blake  <ebb9@byu.net>
44613
44614         standards.texi: include correct file for FDL 1.3
44615         * doc/standards.texi (GNU Free Documentation License): Change
44616         include file to pull in FDL 1.3, not 1.2.
44617
44618         fdl.texi: revert accidental change to license
44619         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44620
44621 2008-11-10  Bruno Haible  <bruno@clisp.org>
44622
44623         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44624         cross-compiling guesses also when the native compile gives no result.
44625
44626 2008-11-10  Bruno Haible  <bruno@clisp.org>
44627
44628         * lib/spawni.c (__spawni): Force variable into the stack.
44629
44630 2008-11-10  Bruno Haible  <bruno@clisp.org>
44631
44632         Add support for Haiku.
44633         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44634         glibc and BeOS, but also on Haiku.
44635         * lib/fpurge.c (fpurge): Likewise.
44636         * lib/freadable.c (freadable): Likewise.
44637         * lib/freadahead.c (freadahead): Likewise.
44638         * lib/freading.c (freading): Likewise.
44639         * lib/freadptr.c (freadptr): Likewise.
44640         * lib/freadseek.c (freadptrinc): Likewise.
44641         * lib/fseeko.c (rpl_fseeko): Likewise.
44642         * lib/fseterr.c (fseterr): Likewise.
44643         * lib/fwritable.c (fwritable): Likewise.
44644         * lib/fwriting.c (fwriting): Likewise.
44645         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44646
44647 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44648
44649         * lib/config.charset: Treat Haiku like BeOS.
44650
44651 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44652
44653         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44654         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44655
44656 2008-11-08  Bruno Haible  <bruno@clisp.org>
44657
44658         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44659         AC_CACHE_CHECK.
44660
44661 2008-11-08  Bruno Haible  <bruno@clisp.org>
44662
44663         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44664
44665 2008-11-08  Bruno Haible  <bruno@clisp.org>
44666
44667         * tests/test-select-fd.c: New file.
44668         * tests/test-select-in.sh: New file.
44669         * tests/test-select-out.sh: New file.
44670         * tests/test-select-stdin.c: New file.
44671         * modules/select-tests (Files): Add the new files.
44672         (Depends-on): Add gettimeofday.
44673         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44674         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44675         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44676
44677 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44678             Bruno Haible  <bruno@clisp.org>
44679
44680         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44681
44682 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44683
44684         * build-aux/pmccabe2html: Added support for C++ source files.
44685
44686 2008-11-05  Ben Pfaff  <blp@gnu.org>
44687
44688         Fix lib/close.c build on Windows.
44689         * modules/close (Files): Add lib/w32sock.h.
44690
44691 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44692
44693         Accept Bison's NEWS format.
44694         * build-aux/announce-gen (print_news_deltas): Tweak
44695         $re_prefix.
44696
44697 2008-11-04  Bruno Haible  <bruno@clisp.org>
44698
44699         * modules/random_r (Maintainer): Add glibc.
44700
44701 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44702
44703         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44704         by karl@freefriends.org (Karl Berry).
44705         * doc/alloca.texi: Likewise.
44706         * doc/c-ctype.texi: Likewise.
44707         * doc/c-strcase.texi: Likewise.
44708         * doc/c-strcaseeq.texi: Likewise.
44709         * doc/c-strcasestr.texi: Likewise.
44710         * doc/c-strstr.texi: Likewise.
44711         * doc/c-strtod.texi: Likewise.
44712         * doc/c-strtold.texi: Likewise.
44713         * doc/ctime.texi: Likewise.
44714         * doc/error.texi: Likewise.
44715         * doc/fdl.texi: Likewise.
44716         * doc/gcd.texi: Likewise.
44717         * doc/getdate.texi: Likewise.
44718         * doc/gnulib-intro.texi: Likewise.
44719         * doc/gnulib-tool.texi: Likewise.
44720         * doc/gnulib.texi: Likewise.
44721         * doc/inet_ntoa.texi: Likewise.
44722         * doc/maintain.texi: Likewise.
44723         * doc/make-stds.texi: Likewise.
44724         * doc/quote.texi: Likewise.
44725         * doc/regexprops-generic.texi: Likewise.
44726         * doc/standards.texi: Likewise.
44727         * doc/verify.texi: Likewise.
44728         * doc/visibility.texi: Likewise.
44729         * doc/gnulib.texi (GNU Free Documentation License): Include
44730         fdl-1.3.texi instead of fdl.texi.
44731
44732 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44733
44734         * doc/fdl-1.3.texi: New file, from
44735         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44736         * modules/fdl-1.3: Add.
44737         * MODULES.html.sh: Add fdl-1.3.
44738
44739 2008-11-03  Bruno Haible  <bruno@clisp.org>
44740
44741         Make determination of absolute name of header file work with AIX xlc.
44742         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44743         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44744         preprocessing.
44745         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44746         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44747
44748 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44749
44750         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44751         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44752         <ludo@gnu.org>.
44753
44754 2008-11-02  Bruno Haible  <bruno@clisp.org>
44755
44756         Mark 'strpbrk' obsolete.
44757         * modules/strpbrk (Status, Notice): New sections.
44758         * modules/strtok_r (Depends-on): Add strpbrk.
44759
44760 2008-11-02  Bruno Haible  <bruno@clisp.org>
44761
44762         Mark 'strdup' obsolete.
44763         * modules/strdup (Status, Notice): New sections.
44764         * modules/findprog (Depends-on): Add strdup.
44765         * modules/getaddrinfo (Depends-on): Likewise.
44766         * modules/localename (Depends-on): Likewise.
44767         * modules/relocatable-lib (Depends-on): Likewise.
44768         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44769         * modules/relocatable-prog (Depends-on): Likewise.
44770         * modules/trim (Depends-on): Likewise.
44771         * modules/unictype/gen-ctype (Depends-on): Likewise.
44772         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44773
44774 2008-11-02  Bruno Haible  <bruno@clisp.org>
44775
44776         Mark 'strcspn' obsolete.
44777         * modules/strcspn (Status, Notice): New sections.
44778
44779 2008-11-02  Bruno Haible  <bruno@clisp.org>
44780
44781         Mark 'rmdir' obsolete.
44782         * modules/rmdir (Status, Notice): New sections.
44783         * modules/clean-temp (Depends-on): Add rmdir.
44784         * modules/openat (Depends-on): Likewise.
44785
44786 2008-11-02  Bruno Haible  <bruno@clisp.org>
44787
44788         Mark 'raise' obsolete.
44789         * modules/raise (Status, Notice): New sections.
44790         (Include): Specify <signal.h>.
44791         * modules/stdio (Depends-on): Add raise.
44792         * modules/write (Depends-on): Likewise.
44793
44794 2008-11-02  Bruno Haible  <bruno@clisp.org>
44795
44796         Mark 'memset' obsolete.
44797         * modules/memset (Status, Notice): New sections.
44798
44799 2008-11-02  Bruno Haible  <bruno@clisp.org>
44800
44801         Mark 'memmove' obsolete.
44802         * modules/memmove (Status, Notice): New sections.
44803         * modules/argp (Depends-on): Add memmove.
44804         * modules/argz (Depends-on): Likewise.
44805         * modules/canonicalize (Depends-on): Likewise.
44806         * modules/canonicalize-lgpl (Depends-on): Likewise.
44807         * modules/fts (Depends-on): Likewise.
44808         * modules/getcwd (Depends-on): Likewise.
44809         * modules/human (Depends-on): Likewise.
44810         * modules/regex (Depends-on): Likewise.
44811         * modules/striconveh (Depends-on): Likewise.
44812         * modules/trim (Depends-on): Likewise.
44813         * modules/unistr/u8-move (Depends-on): Likewise.
44814         * modules/unistr/u16-move (Depends-on): Likewise.
44815         * modules/unistr/u32-move (Depends-on): Likewise.
44816
44817 2008-11-02  Bruno Haible  <bruno@clisp.org>
44818
44819         Mark 'memcpy' obsolete.
44820         * modules/memcpy (Status, Notice): New sections.
44821
44822 2008-11-02  Bruno Haible  <bruno@clisp.org>
44823
44824         Mark 'memcmp' obsolete.
44825         * modules/memcmp (Status, Notice): New sections.
44826         * modules/argmatch (Depends-on): Add memchr.
44827         * modules/backupfile (Depends-on): Likewise.
44828         * modules/c-strcasestr (Depends-on): Likewise.
44829         * modules/crypto/des (Depends-on): Likewise.
44830         * modules/csharpcomp (Depends-on): Likewise.
44831         * modules/fnmatch (Depends-on): Likewise.
44832         * modules/git-merge-changelog (Depends-on): Likewise.
44833         * modules/isnand (Depends-on): Likewise.
44834         * modules/isnand-nolibm (Depends-on): Likewise.
44835         * modules/isnanf (Depends-on): Likewise.
44836         * modules/isnanf-nolibm (Depends-on): Likewise.
44837         * modules/isnanl (Depends-on): Likewise.
44838         * modules/isnanl-nolibm (Depends-on): Likewise.
44839         * modules/mbchar (Depends-on): Likewise.
44840         * modules/memcoll (Depends-on): Likewise.
44841         * modules/quotearg (Depends-on): Likewise.
44842         * modules/regex (Depends-on): Likewise.
44843         * modules/relocatable-prog (Depends-on): Likewise.
44844         * modules/same (Depends-on): Likewise.
44845         * modules/signbit (Depends-on): Likewise.
44846         * modules/strcasestr-simple (Depends-on): Likewise.
44847         * modules/unictype/gen-ctype (Depends-on): Likewise.
44848         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44849         * modules/uniname/uniname (Depends-on): Likewise.
44850         * modules/unistr/u8-cmp (Depends-on): Likewise.
44851
44852 2008-11-02  Bruno Haible  <bruno@clisp.org>
44853
44854         Mark 'memchr' obsolete.
44855         * modules/memchr (Status, Notice): New sections.
44856         * modules/argp (Depends-on): Add memchr.
44857         * modules/base64 (Depends-on): Likewise.
44858         * modules/c-strcasestr (Depends-on): Likewise.
44859         * modules/chdir-long (Depends-on): Likewise.
44860         * modules/fnmatch (Depends-on): Likewise.
44861         * modules/getsubopt (Depends-on): Likewise.
44862         * modules/git-merge-changelog (Depends-on): Likewise.
44863         * modules/glob (Depends-on): Likewise.
44864         * modules/strcasestr-simple (Depends-on): Likewise.
44865         * modules/strnlen (Depends-on): Likewise.
44866
44867 2008-11-02  Bruno Haible  <bruno@clisp.org>
44868
44869         Mark 'atexit' obsolete.
44870         * modules/atexit (Status, Notice): New sections.
44871         * modules/chdir-long (Depends-on): Add atexit.
44872         * modules/wait-process (Depends-on): Likewise.
44873
44874 2008-11-02  Bruno Haible  <bruno@clisp.org>
44875
44876         * gnulib-tool: New option --with-obsolete.
44877         (func_usage): Document it.
44878         (func_modules_transitive_closure): Drop obsolete dependencies if
44879         incobsolete is not true.
44880         (func_import): Read and save the incobsolete variable to the cache.
44881
44882 2008-11-02  Bruno Haible  <bruno@clisp.org>
44883
44884         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44885         * gnulib-tool: New option --extract-status.
44886         (func_usage): Document it.
44887         (sed_extract_prog): Recognize it.
44888         (func_get_status): New function.
44889
44890 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44891
44892         * modules/sockets (License): Change from LGPL to LGPLv2+.
44893
44894 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44895
44896         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44897
44898 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44899
44900         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44901         Mention times and sys_times.
44902         * modules/sys_times, modules/sys_times-tests: New modules.
44903         * modules/times, modules/times-tests: Likewise
44904         * m4/sys_times_h.m4: New file.
44905         * lib/sys_times.in.h: Likewise
44906         * lib/times.c: Likewise.
44907         * tests/test-sys_times.c: Likewise.
44908         * tests/test-times.c: Likewise.
44909         * doc/posix-headers/sys_times.texi: Update.
44910         * doc/posix-functions/times.texi: Update.
44911
44912 2008-10-28  Jim Meyering  <meyering@redhat.com>
44913
44914         * modules/tempname (Depends-on): Add lstat.
44915
44916         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44917
44918 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44919
44920         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44921         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44922         using idiom used elsewhere in gnulib.
44923
44924 2008-10-27  Jim Meyering  <meyering@redhat.com>
44925
44926         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44927
44928 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44929
44930         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44931         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44932         programs.
44933         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44934
44935 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44936
44937         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44938
44939 2008-10-27  Bruno Haible  <bruno@clisp.org>
44940
44941         * tests/test-lstat.c: Include <stdio.h>.
44942
44943 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44944
44945         * modules/lstat-tests: New module.
44946         * tests/test-lstat.c: New file.
44947
44948 2008-10-26  Jim Meyering  <meyering@redhat.com>
44949
44950         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44951
44952 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44953             Bruno Haible  <bruno@clisp.org>
44954
44955         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44956         * modules/configmake (Include): Add a note that the include must come
44957         after all system headers.
44958         * lib/javaversion.c: Include configmake.h after all other includes.
44959
44960 2008-10-26  Bruno Haible  <bruno@clisp.org>
44961
44962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44963         HAVE_STRUCT_RANDOM_DATA to 1.
44964         (gl_STDLIB_H): Simplify.
44965
44966 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44967
44968         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44969         substitute HAVE_STRUCT_RANDOM_DATA.
44970         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44971         random_data.
44972         * modules/stdlib (Makefile.am): Substitute
44973         HAVE_STRUCT_RANDOM_DATA.
44974
44975 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44976
44977         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44978         * doc/gnulib-intro.texi (Copyright): Likewise.
44979
44980 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44981
44982         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44983         findings.
44984
44985 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44986             Bruno Haible  <bruno@clisp.org>
44987
44988         * lib/unistd.in.h: Include <winsock2.h>.
44989         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44990         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44991         Provide dummy declarations.
44992         (gethostname): Override.
44993         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44994         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44995         gl_PREREQ_SYS_H_WINSOCK2.
44996         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44997         * doc/posix-functions/gethostname.texi: More details.
44998
44999 2008-10-25  Bruno Haible  <bruno@clisp.org>
45000
45001         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45002         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45003         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45004
45005         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45006         here ...
45007         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45008         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45009         gl_UNISTD_H_DEFAULTS.
45010
45011 2008-10-25  Eric Blake  <ebb9@byu.net>
45012
45013         signbit: avoid spurious compiler failure
45014         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45015         declarations inside function.
45016
45017 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45018             Bruno Haible  <bruno@clisp.org>
45019
45020         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45021         * modules/random_r (Depends-on): Add stdint.
45022
45023 2008-10-24  Bruno Haible  <bruno@clisp.org>
45024
45025         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45026         Eggert.
45027         * modules/strerror (License): Likewise.
45028
45029 2008-10-24  Jim Meyering  <meyering@redhat.com>
45030
45031         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45032         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45033
45034 2008-10-24  Eric Blake  <ebb9@byu.net>
45035
45036         getgroups: fix compilation when getgroups is available
45037         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45038         but with <config.h> override of getgroups disabled.
45039
45040 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45041
45042         * doc/gnulib.texi (Header files): Add note about C++ problems.
45043         Explained by Bruno Haible <bruno@clisp.org>.
45044
45045 2008-10-23  Bruno Haible  <bruno@clisp.org>
45046
45047         Define a dummy SA_NODEFER macro on Interix.
45048         * lib/signal.in.h (SA_NODEFER): Define fallback.
45049         Reported by Aleksey Cheusov <cheusov@tut.by> via
45050         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45051
45052 2008-10-23  Bruno Haible  <bruno@clisp.org>
45053
45054         * modules/freadahead (License): Change to LGPLv2+.
45055         Suggested by Simon Josefsson.
45056
45057 2008-10-23  Jim Meyering  <meyering@redhat.com>
45058
45059         random_r: new module
45060         * modules/random_r: New file.
45061         * m4/random_r.m4: New file.
45062         * lib/random_r.c: New file, from glibc.
45063         * modules/random_r-tests: New file.
45064         * tests/test-random_r.c: New file.
45065         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45066          Declare.
45067         (RAND_MAX): Define.
45068         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45069         * modules/stdlib: Substitute them, too.
45070         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45071         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45072         * doc/glibc-functions/random_r.texi: Likewise.
45073         * doc/glibc-functions/setstate_r.texi: Likewise.
45074         * doc/glibc-functions/srandom_r.texi: Likewise.
45075         * config/srclist.txt: Mention it.
45076
45077 2008-10-23  David Lutterkort  <lutter@redhat.com>
45078
45079         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45080         link requirement
45081
45082 2008-10-23  Jim Meyering  <meyering@redhat.com>
45083
45084         selinux-h: mark parameters of stub functions as intentionally unused
45085         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45086         * lib/se-context.in.h: Likewise.
45087
45088 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45089
45090         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45091
45092 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45093
45094         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45095
45096 2008-10-22  Eric Blake  <ebb9@byu.net>
45097
45098         glthread/thread: avoid compiler warning
45099         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45100         Add unreachable abort to silence compiler.
45101
45102 2008-10-22  Eric Blake  <ebb9@byu.net>
45103
45104         netdb: also supply struct addrinfo for cygwin 1.5.x
45105         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45106         older cygwin.
45107         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45108         cygwin.
45109         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45110
45111 2008-10-22  Bruno Haible  <bruno@clisp.org>
45112
45113         * users.txt: Update entry about pspp.
45114
45115 2008-10-21  Bruno Haible  <bruno@clisp.org>
45116
45117         Simplification.
45118         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45119         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45120
45121         Simplification.
45122         * lib/ioctl.c (ioctl): Don't undefine.
45123         * lib/socket.c (socket): Don't undefine.
45124
45125         Remove unused module indicator macros.
45126         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45127         GNULIB_$1 as a C macro.
45128
45129         * doc/posix-functions/close.texi: Undo last change.
45130         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45131         Windows platforms.
45132
45133 2008-10-21  Bruno Haible  <bruno@clisp.org>
45134
45135         Add gethostname() declaration to <unistd.h>.
45136         * lib/unistd.in.h (gethostname): New declaration.
45137         * lib/gethostname.c: Include <unistd.h>.
45138         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45139         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45141         and HAVE_GETHOSTNAME.
45142         * modules/gethostname (Depends-on): Add unistd.
45143         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45144         (Include): Specify <unistd.h>.
45145         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45146         HAVE_GETHOSTNAME.
45147         * tests/test-gethostname.c: Include <unistd.h> first.
45148
45149 2008-10-21  Bruno Haible  <bruno@clisp.org>
45150
45151         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45152         * modules/select-tests (Depends-on): Likewise.
45153         Reported by Simon Josefsson.
45154
45155 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45156
45157         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45158         * lib/accept.c: New file, based on winsock.c.
45159         * lib/bind.c: New file, based on winsock.c.
45160         * lib/connect.c: New file, based on winsock.c.
45161         * lib/getpeername.c: New file, based on winsock.c.
45162         * lib/getsockname.c: New file, based on winsock.c.
45163         * lib/getsockopt.c: New file, based on winsock.c.
45164         * lib/ioctl.c: New file, based on winsock.c.
45165         * lib/listen.c: New file, based on winsock.c.
45166         * lib/recv.c: New file, based on winsock.c.
45167         * lib/recvfrom.c: New file, based on winsock.c.
45168         * lib/send.c: New file, based on winsock.c.
45169         * lib/sendto.c: New file, based on winsock.c.
45170         * lib/setsockopt.c: New file, based on winsock.c.
45171         * lib/shutdown.c: New file, based on winsock.c.
45172         * lib/socket.c: New file, based on winsock.c.
45173         * lib/w32sock.h: New file, based on winsock.c.
45174         * lib/winsock.c: Remove file.
45175         * modules/accept: Likewise.
45176         * modules/bind: Likewise.
45177         * modules/connect: Likewise.
45178         * modules/getpeername: Likewise.
45179         * modules/getsockname: Likewise.
45180         * modules/getsockopt: Likewise.
45181         * modules/ioctl: Likewise.
45182         * modules/listen: Likewise.
45183         * modules/recv: Likewise.
45184         * modules/recvfrom: Likewise.
45185         * modules/send: Likewise.
45186         * modules/sendto: Likewise.
45187         * modules/setsockopt: Likewise.
45188         * modules/shutdown: Likewise.
45189         * modules/socket: Use socket.c instead of winsock.c.
45190         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45191         * doc/posix-functions/accept.texi: Doc fix.
45192         * doc/posix-functions/bind.texi: Doc fix.
45193         * doc/posix-functions/close.texi: Doc fix.
45194         * doc/posix-functions/connect.texi: Doc fix.
45195         * doc/posix-functions/getpeername.texi: Doc fix.
45196         * doc/posix-functions/getsockname.texi: Doc fix.
45197         * doc/posix-functions/getsockopt.texi: Doc fix.
45198         * doc/posix-functions/ioctl.texi: Doc fix.
45199         * doc/posix-functions/listen.texi: Doc fix.
45200         * doc/posix-functions/recv.texi: Doc fix.
45201         * doc/posix-functions/recvfrom.texi: Doc fix.
45202         * doc/posix-functions/send.texi: Doc fix.
45203         * doc/posix-functions/sendto.texi: Doc fix.
45204         * doc/posix-functions/setsockopt.texi: Doc fix.
45205         * doc/posix-functions/shutdown.texi: Doc fix.
45206         * doc/posix-functions/socket.texi: Doc fix.
45207
45208 2008-10-20  Bruno Haible  <bruno@clisp.org>
45209
45210         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45211         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45212         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45213         as an alias for SIGABRT.
45214         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45215         (sigaction): Map it to SIGABRT.
45216         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45217
45218 2008-10-20  Bruno Haible  <bruno@clisp.org>
45219
45220         * lib/fts.c: Don't include lstat.h.
45221         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45222
45223         Move the lstat() declaration to <sys/stat.h>.
45224         * lib/lstat.h: Remove file.
45225         * lib/sys_stat.in.h: Add special invocation convention.
45226         (lstat): New declaration.
45227         * lib/lstat.c (orig_lstat): New function.
45228         (rpl_lstat): Use orig_lstat instead of lstat.
45229         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45230         AC_C_INLINE. Set REPLACE_LSTAT.
45231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45232         and REPLACE_LSTAT.
45233         * modules/lstat (Files): Remove lib/lstat.h.
45234         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45235         (Include): Specify <sys/stat.h> instead of lstat.h.
45236         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45237         REPLACE_LSTAT.
45238         * NEWS: Mention the change.
45239
45240 2008-10-20  Bruno Haible  <bruno@clisp.org>
45241
45242         * modules/posix_spawn-tests: New file.
45243         * tests/test-posix_spawn3.c: New file.
45244
45245 2008-10-20  Bruno Haible  <bruno@clisp.org>
45246
45247         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45248         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45249         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45250         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45251         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45252
45253 2008-10-20  Bruno Haible  <bruno@clisp.org>
45254
45255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45256         of posix_spawn on AIX 5.3.
45257
45258 2008-10-20  Bruno Haible  <bruno@clisp.org>
45259
45260         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45261
45262 2008-10-20  Bruno Haible  <bruno@clisp.org>
45263
45264         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45265         of AC_LANG_PROGRAM.
45266
45267 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45268
45269         * lib/netdb.in.h: Don't define GNU specific constants until they
45270         are supported or needed.  Reported by Bruno Haible
45271         <bruno@clisp.org>.
45272
45273 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45274
45275         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45276
45277 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45278
45279         * lib/getaddrinfo.h: Remove file.
45280         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45281         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45282         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45283         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45284         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45285         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45286         * tests/test-getaddrinfo.c: Likewise.
45287         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45288         * NEWS: Mention change.
45289
45290 2008-10-19  Bruno Haible  <bruno@clisp.org>
45291
45292         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45293
45294 2008-10-19  Bruno Haible  <bruno@clisp.org>
45295
45296         * lib/wait-process.c: Include simply <sys/wait.h>.
45297         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45298         WIFSTOPPED): Remove fallback definitions.
45299         * modules/wait-process (Depends-on): Add sys_wait.
45300
45301         New module 'sys_wait'.
45302         * modules/sys_wait: New file.
45303         * lib/sys_wait.in.h: New file, partially copied from
45304         lib/wait-process.c.
45305         * m4/sys_wait_h.m4: New file.
45306         * doc/posix-headers/sys_wait.texi: Mention the new module.
45307
45308 2008-10-19  Bruno Haible  <bruno@clisp.org>
45309
45310         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45311
45312 2008-10-19  Bruno Haible  <bruno@clisp.org>
45313
45314         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45315         * lib/wait-process.c (WAIT_T): Remove type.
45316         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45317         (wait_subprocess): Update.
45318
45319 2008-10-19  Bruno Haible  <bruno@clisp.org>
45320
45321         New module 'atoll'.
45322         * modules/atoll: New file.
45323         * lib/stdlib.in.h (atoll): New declaration.
45324         * lib/atoll.c: New file, from glibc with modifications.
45325         * m4/atoll.m4: New file.
45326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45327         HAVE_ATOLL.
45328         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45329         * doc/posix-functions/atoll.texi: Mention the new module.
45330
45331 2008-10-19  Bruno Haible  <bruno@clisp.org>
45332
45333         Add strtoull() declaration to <stdlib.h>.
45334         * lib/stdlib.in.h (strtoull): New declaration.
45335         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45336         Set HAVE_STRTOULL.
45337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45338         HAVE_STRTOULL.
45339         * modules/strtoull (Depends-on): Add stdlib.
45340         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45341         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45342         HAVE_STRTOULL.
45343
45344 2008-10-19  Bruno Haible  <bruno@clisp.org>
45345
45346         Add strtoll() declaration to <stdlib.h>.
45347         * lib/stdlib.in.h (strtoll): New declaration.
45348         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45349         Set HAVE_STRTOLL.
45350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45351         HAVE_STRTOLL.
45352         * modules/strtoll (Depends-on): Add stdlib.
45353         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45354         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45355
45356 2008-10-19  Bruno Haible  <bruno@clisp.org>
45357
45358         * modules/bcopy (Depends-on): Add strings.
45359         (Include): Specify <strings.h>.
45360
45361 2008-10-19  Bruno Haible  <bruno@clisp.org>
45362
45363         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45364
45365 2008-10-19  Bruno Haible  <bruno@clisp.org>
45366
45367         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45368         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45369         mingw.
45370
45371 2008-10-19  Bruno Haible  <bruno@clisp.org>
45372
45373         * lib/atanl.c: Don't include isnanl.h.
45374         * lib/cosl.c: Likewise.
45375         * lib/ldexpl.c: Likewise.
45376         * lib/logl.c: Likewise.
45377         * lib/sinl.c: Likewise.
45378         * lib/sqrtl.c: Likewise.
45379         * lib/tanl.c: Likewise.
45380
45381         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45382         * lib/isnanf.h: Remove file.
45383         * lib/isnand.h: Remove file.
45384         * lib/isnanl.h: Remove file.
45385         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45386         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45387         macros.
45388         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45389         HAVE_ISNANF, don't define it as a C macro.
45390         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45391         HAVE_ISNAND, don't define it as a C macro.
45392         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45393         HAVE_ISNANL, don't define it as a C macro.
45394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45395         HAVE_ISNAN[FDL].
45396         * modules/isnanf (Files): Remove lib/isnanf.h.
45397         (Depends-on): Add math.
45398         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45399         (Include): Specify <math.h> instead of isnanf.h.
45400         * modules/isnand (Files): Remove lib/isnand.h.
45401         (Depends-on): Add math.
45402         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45403         (Include): Specify <math.h> instead of isnand.h.
45404         * modules/isnanl (Files): Remove lib/isnanl.h.
45405         (Depends-on): Add math.
45406         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45407         (Include): Specify <math.h> instead of isnanl.h.
45408         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45409         HAVE_ISNAN[FDL].
45410         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45411         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45412         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45413         * NEWS: Mention the change.
45414
45415 2008-10-18  Bruno Haible  <bruno@clisp.org>
45416
45417         Add getusershell(), setusershell(), endusershell() declarations to
45418         <unistd.h>.
45419         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45420         declarations.
45421         * lib/getusershell.c: Include unistd.h.
45422         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45423         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45424         HAVE_GETUSERSHELL.
45425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45426         and HAVE_GETUSERSHELL.
45427         * modules/getusershell (Depends-on): Add unistd, extensions.
45428         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45429         (Include): Specify <unistd.h>.
45430         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45431         HAVE_GETUSERSHELL.
45432
45433 2008-10-18  Bruno Haible  <bruno@clisp.org>
45434
45435         Add a getloadavg() declaration to <stdlib.h>.
45436         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45437         getloadavg declaration.
45438         (getloadavg): New declaration.
45439         * lib/getloadavg.c: Include <stdlib.h> first.
45440         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45441         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45442         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45444         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45445         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45446         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45447         (Include): Specify <stdlib.h>.
45448         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45449         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45450
45451 2008-10-18  Bruno Haible  <bruno@clisp.org>
45452
45453         * lib/dirchownmod.c: Don't include lchmod.h.
45454
45455         Move the lchmod() declaration to <sys/stat.h>.
45456         * lib/lchmod.h: Remove file.
45457         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45458         (lchmod): New declaration, moved here from lib/lchown.h.
45459         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45460         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45461         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45462         and HAVE_LCHMOD.
45463         * modules/lchmod (Files): Remove lib/lchmod.h.
45464         (Depends-on): Add sys_stat, extensions.
45465         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45466         (Include): Specify <sys/stat.h> instead of lchmod.h.
45467         * modules/sys_stat (Depends-on): Add link-warning.
45468         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45469         definition of GL_LINK_WARNING.
45470         * NEWS: Mention the change.
45471
45472 2008-10-18  Bruno Haible  <bruno@clisp.org>
45473
45474         * lib/fchdir.c: Don't include dirfd.h.
45475         * lib/fts.c: Likewise.
45476         * lib/getcwd.c: Likewise.
45477         * lib/glob.c: Likewise.
45478
45479         Move the dirfd() declaration to <dirent.h>.
45480         * lib/dirfd.h: Remove file.
45481         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45482         (dirfd): New declaration.
45483         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45484         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45485         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45486         HAVE_DECL_DIRFD.
45487         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45488         HAVE_DECL_DIRFD.
45489         * modules/dirfd (Files): Remove lib/dirfd.h.
45490         (Depends-on): Add dirent, extensions.
45491         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45492         (Include): Specify <dirent.h> instead of dirfd.h.
45493         * modules/dirent (Depends-on): Add link-warning.
45494         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45495         definition of GL_LINK_WARNING.
45496         * NEWS: Mention the change.
45497
45498 2008-10-18  Bruno Haible  <bruno@clisp.org>
45499
45500         Move the euidaccess() declaration to <unistd.h>.
45501         * lib/euidaccess.h: Remove file.
45502         * lib/unistd.in.h (euidaccess): New declaration.
45503         * lib/euidaccess.c: Don't include euidaccess.h.
45504         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45505         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45507         and HAVE_EUIDACCESS.
45508         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45509         (Depends-on): Add unistd.
45510         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45511         (Include): Specify <unistd.h> instead of euidaccess.h.
45512         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45513         HAVE_EUIDACCESS.
45514         * NEWS: Mention the change.
45515
45516 2008-10-18  Bruno Haible  <bruno@clisp.org>
45517
45518         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45519
45520         Move the getdomainname() declaration to <unistd.h>.
45521         * lib/getdomainname.h: Remove file.
45522         * lib/unistd.in.h (getdomainname): New declaration.
45523         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45524         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45525         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45526         HAVE_GETDOMAINNAME.
45527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45528         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45529         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45530         (Depends-on): Add unistd, extensions.
45531         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45532         (Includes): Specify <unistd.h> instead of getdomainname.h.
45533         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45534         HAVE_GETDOMAINNAME.
45535         * NEWS: Mention the change.
45536
45537 2008-10-18  Bruno Haible  <bruno@clisp.org>
45538
45539         * modules/dirent: New file.
45540         * m4/dirent_h.m4: New file.
45541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45542         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45543         * modules/fchdir (Files): Remove lib/dirent.in.h.
45544         (Depends-on): Add dirent.
45545         (Makefile.am): Move rules to modules/dirent.
45546         * doc/posix-headers/dirent.texi: Mention the new module.
45547
45548 2008-10-18  Bruno Haible  <bruno@clisp.org>
45549
45550         Avoid -Wunused-parameter warnings in public gnulib header files.
45551         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45552         macro.
45553         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45554
45555 2008-10-18  Bruno Haible  <bruno@clisp.org>
45556
45557         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45558         * doc/glibc-functions/error.texi: Mention the module 'error'.
45559         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45560         * doc/glibc-functions/getdomainname.texi: Mention the module
45561         'getdomainname'.
45562         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45563         * doc/glibc-functions/getpagesize.texi: Mention the module
45564         'getpagesize'.
45565         * doc/glibc-functions/getusershell.texi: Mention the module
45566         'getusershell'.
45567         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45568         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45569         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45570         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45571         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45572         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45573         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45574         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45575         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45576         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45577         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45578         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45579         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45580         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45581
45582 2008-10-17  Bruno Haible  <bruno@clisp.org>
45583
45584         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45585         HP-UX and IRIX, use -0.0L.
45586         * tests/test-ceill.c (minus_zero): Likewise.
45587         * tests/test-floorl.c (minus_zero): Likewise.
45588         * tests/test-frexpl.c (minus_zero): Likewise.
45589         * tests/test-isnan.c (minus_zerol): Likewise.
45590         * tests/test-isnanl.h (minus_zero): Likewise.
45591         * tests/test-ldexpl.c (minus_zero): Likewise.
45592         * tests/test-roundl.c (minus_zero): Likewise.
45593         * tests/test-signbit.c (minus_zerol): Likewise.
45594         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45595         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45596         * tests/test-truncl.c (minus_zero): Likewise.
45597         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45598         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45599         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45600         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45601
45602 2008-10-17  Bruno Haible  <bruno@clisp.org>
45603
45604         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45605         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45606         that it gets activated only for gcc >= 3.0.
45607         * lib/dirent.in.h: Likewise.
45608         * lib/errno.in.h: Likewise.
45609         * lib/fcntl.in.h: Likewise.
45610         * lib/float.in.h: Likewise.
45611         * lib/iconv.in.h: Likewise.
45612         * lib/inttypes.in.h: Likewise.
45613         * lib/locale.in.h: Likewise.
45614         * lib/math.in.h: Likewise.
45615         * lib/netdb.in.h: Likewise.
45616         * lib/netinet_in.in.h: Likewise.
45617         * lib/search.in.h: Likewise.
45618         * lib/signal.in.h: Likewise.
45619         * lib/spawn.in.h: Likewise.
45620         * lib/stdarg.in.h: Likewise.
45621         * lib/stdint.in.h: Likewise.
45622         * lib/stdio.in.h: Likewise.
45623         * lib/stdlib.in.h: Likewise.
45624         * lib/string.in.h: Likewise.
45625         * lib/strings.in.h: Likewise.
45626         * lib/sys_file.in.h: Likewise.
45627         * lib/sys_ioctl.in.h: Likewise.
45628         * lib/sys_select.in.h: Likewise.
45629         * lib/sys_socket.in.h: Likewise.
45630         * lib/sys_stat.in.h: Likewise.
45631         * lib/sys_time.in.h: Likewise.
45632         * lib/sysexits.in.h: Likewise.
45633         * lib/time.in.h: Likewise.
45634         * lib/unistd.in.h: Likewise.
45635         * lib/wchar.in.h: Likewise.
45636         * lib/wctype.in.h: Likewise.
45637         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45638
45639 2008-10-17  Jim Meyering  <meyering@redhat.com>
45640
45641         ignore-value: don't depend on inline module
45642         * modules/ignore-value (Depends-on): Remove 'inline'.
45643         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45644         Suggestion from Bruno Haible.
45645
45646 2008-10-17  Bruno Haible  <bruno@clisp.org>
45647
45648         New implementation of condition variables for Win32.
45649         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45650         (gl_linked_waitqueue_t): New type.
45651         (gl_cond_t): Use it.
45652         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45653         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45654         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45655         (glthread_cond_init_func, glthread_cond_wait_func,
45656         glthread_cond_timedwait_func, glthread_cond_signal_func,
45657         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45658         Reimplemented on the basis of gl_linked_waitqueue_t.
45659         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45660         gl_waitqueue_t.
45661         (gl_rwlock_t): Update.
45662         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45663
45664 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45665
45666         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45667         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45668
45669 2008-10-17  Jim Meyering  <meyering@redhat.com>
45670
45671         ignore-value: new module
45672         * modules/ignore-value: New file.
45673         * lib/ignore-value.h: New file.
45674         * MODULES.html.sh (Compiler warning management): New section,
45675         just for this module.  More to come.
45676
45677 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45678
45679         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45680         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45681         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45682
45683 2008-10-16  Jim Meyering  <meyering@redhat.com>
45684
45685         openat-die.c: avoid 'no previous prototype' warning
45686         * lib/openat-die.c: Include "openat.h".
45687         Reported by Reuben Thomas <rrt@sc3d.org>.
45688
45689 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45690
45691         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45692         * lib/netdb.in.h: Fix typo.
45693         Reported by Bruno Haible  <bruno@clisp.org>
45694
45695         * lib/netdb.in.h: Include sys/socket.h for platforms without
45696         netdb.h, to get structures like hostent on MinGW.
45697         * modules/netdb (Depends-on): Add sys_socket.
45698
45699 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45700
45701         * modules/netdb, modules/netdb-tests: New file.
45702         * m4/netdb_h.m4: New file.
45703         * lib/netdb.in.h: Add, currently just an empty file pending
45704         definitions.
45705         * tests/test-netdb.c: New file.
45706         * doc/posix-headers/netdb.texi: Mention that we replace it if
45707         needed.
45708         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45709         netdb.
45710
45711 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45712
45713         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45714         with code.
45715
45716 2008-10-13  Bruno Haible  <bruno@clisp.org>
45717
45718         * lib/glthread/cond.c (glthread_cond_wait_func,
45719         glthread_cond_timedwait_func): Add a comment.
45720
45721 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45722
45723         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45724         * tests/test-select.c: Likewise,
45725
45726 2008-10-13  Bruno Haible  <bruno@clisp.org>
45727
45728         * lib/glthread/cond.c (glthread_cond_wait_func,
45729         glthread_cond_timedwait_func): Fix variable name.
45730         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45731
45732 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45733
45734         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45735         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45736         struct sockaddr.sa_len.
45737         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45738
45739 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45740
45741         * build-aux/pmccabe2html: Add css and css_url parameters.
45742
45743 2008-10-12  Bruno Haible  <bruno@clisp.org>
45744
45745         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45746         calling aclx_get.
45747         Reported by Rainer Tammer <tammer@tammer.net>.
45748
45749 2008-10-12  Bruno Haible  <bruno@clisp.org>
45750
45751         Use msvcrt aware primitives for creation/termination of Win32 threads.
45752         * lib/glthread/thread.c: Include <process.h>.
45753         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45754         (wrapper_func): Update signature.
45755         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45756
45757 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45758             Bruno Haible  <bruno@clisp.org>
45759
45760         Provide a Win32 implementation of the 'cond' module.
45761         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45762         * lib/glthread/cond.c (glthread_cond_init_func,
45763         glthread_cond_wait_func, glthread_cond_timedwait_func,
45764         glthread_cond_signal_func, glthread_cond_broadcast_func,
45765         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45766         * modules/cond (Dependencies): Add gettimeofday.
45767
45768 2008-10-11  Bruno Haible  <bruno@clisp.org>
45769
45770         Make sleep work on older versions of mingw.
45771         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45772         only whether it exists.
45773         * doc/posix-functions/sleep.texi: Mention the problem with older
45774         versions of mingw.
45775
45776 2008-10-11  Bruno Haible  <bruno@clisp.org>
45777
45778         New module 'shutdown'.
45779         * modules/shutdown: New file.
45780         * lib/sys_socket.in.h (shutdown): New declaration.
45781         * lib/winsock.c (shutdown): New function.
45782         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45783         GNULIB_SHUTDOWN.
45784         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45785         * doc/posix-functions/shutdown.texi: Document the new module.
45786
45787 2008-10-11  Jim Meyering  <meyering@redhat.com>
45788
45789         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45790
45791 2008-10-11  Bruno Haible  <bruno@clisp.org>
45792
45793         New module 'fclose'.
45794         * modules/fclose: New file.
45795         * lib/stdio.in.h (fclose): New declaration.
45796         * lib/fclose.c: New file.
45797         * m4/fclose.m4: New file.
45798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45799         REPLACE_FCLOSE.
45800         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45801         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45802         REPLACE_FCLOSE.
45803         * modules/close (Depends-on): fclose.
45804         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45805
45806 2008-10-11  Bruno Haible  <bruno@clisp.org>
45807
45808         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45809         set errno and don't call _close.
45810
45811 2008-10-10  Bruno Haible  <bruno@clisp.org>
45812
45813         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45814         ACL, not afterwards. Fixes test failure on Cygwin.
45815
45816 2008-10-09  Ben Pfaff  <blp@gnu.org>
45817
45818         * build-aux/announce-gen: Fix gnulib version related part of usage
45819         message.  Die with a useful error message if no tarballs are
45820         found.
45821
45822 2008-10-10  Jim Meyering  <meyering@redhat.com>
45823
45824         bootstrap: use git's --depth=N option only if it's supported
45825         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45826         recognize the --depth option.  Reported by Pádraig Brady.
45827
45828 2008-10-09  Bruno Haible  <bruno@clisp.org>
45829
45830         New module 'ioctl'.
45831         * modules/ioctl: New file.
45832         * lib/sys_socket.in.h (ioctl): Remove declaration.
45833         * lib/winsock.c: Include <sys/ioctl.h>.
45834         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45835         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45836         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45837         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45838         * doc/posix-functions/ioctl.texi: Mention the new module.
45839
45840 2008-10-09  Bruno Haible  <bruno@clisp.org>
45841
45842         New module 'sys_ioctl'.
45843         * lib/sys_ioctl.in.h: New file.
45844         * m4/sys_ioctl_h.m4: New file.
45845         * modules/sys_ioctl: New file.
45846         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45847
45848 2008-10-09  Bruno Haible  <bruno@clisp.org>
45849
45850         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45851         * lib/winsock.c: Include <stdarg.h>.
45852         (rpl_ioctl): Change to second argument 'int' and then varargs.
45853
45854 2008-10-09  Bruno Haible  <bruno@clisp.org>
45855
45856         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45857         when the sys_socket module is present and the system has <winsock2.h>.
45858
45859 2008-10-09  Bruno Haible  <bruno@clisp.org>
45860
45861         * doc/posix-functions/close.texi: Mention module 'close' instead of
45862         module 'sys_socket'.
45863
45864 2008-10-09  Bruno Haible  <bruno@clisp.org>
45865
45866         * doc/glibc-headers/sys_ioctl.texi: New file.
45867         * doc/gnulib.texi: Include it.
45868
45869 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45870             Bruno Haible  <bruno@clisp.org>
45871
45872         Combine the two replacements of 'close'.
45873         * lib/sys_socket.in.h (close): Define to a reminder to include
45874         <unistd.h>.
45875         (_gl_close_fd_maybe_socket): New declaration.
45876         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45877         * lib/winsock.c (close): Remove undefinition.
45878         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45879         needed for the gnulib module 'close'.
45880         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45881         define to an error symbol or to a warning, if suitable.
45882         * lib/close.c: Include <sys/socket.h>.
45883         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45884         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45885         UNISTD_H_HAVE_WINSOCK2_H.
45886         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45888         UNISTD_H_HAVE_WINSOCK2_H.
45889         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45890         (configure.ac): Set a module indicator.
45891         (Makefile.am): Substitute GNULIB_CLOSE.
45892         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45893         * modules/poll-tests (Depends-on): Add close.
45894         * modules/select-tests (Depends-on): Likewise.
45895
45896 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45897             Bruno Haible  <bruno@clisp.org>
45898
45899         New module 'close'.
45900         * modules/close: New file.
45901         * lib/unistd.in.h (close): Move declaration out of the
45902         FCHDIR_REPLACEMENT scope.
45903         (_gl_unregister_fd): New declaration.
45904         * lib/close.c: New file.
45905         * lib/fchdir.c (rpl_close): Remove function.
45906         * m4/close.m4: New file.
45907         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45908         close.
45909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45910         REPLACE_CLOSE.
45911         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45912         REPLACE_CLOSE.
45913         * modules/fchdir (Depends-on): Add close.
45914
45915 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45916             Bruno Haible  <bruno@clisp.org>
45917
45918         * lib/fcntl.in.h (open): Simplify conditionals.
45919         (_gl_register_fd): New declaration.
45920         * lib/fchdir.c (rpl_open): Remove function.
45921         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45922         also.
45923         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45924         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45925         open.
45926
45927 2008-10-09  Jim Meyering  <meyering@redhat.com>
45928
45929         GNUmakefile: use the more name-space-friendly "_version"
45930         * top/GNUmakefile (_dummy): Update.
45931         (_version): Rename from "version".
45932
45933 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45934             Bruno Haible  <bruno@clisp.org>
45935
45936         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45937         rpl_close.
45938         (_gl_register_fd): New function, extracted from rpl_open.
45939         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45940         (rpl_open, rpl_opendir): Use _gl_register_fd.
45941
45942 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45943
45944         Fix organization of 'open' replacement.
45945         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45946         (gl_FUNC_OPEN): Use it.
45947         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45948
45949 2008-10-08  Bruno Haible  <bruno@clisp.org>
45950
45951         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45952
45953 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45954
45955         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45956         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45957         listen).
45958
45959 2008-10-08  Eric Blake  <ebb9@byu.net>
45960
45961         GNUmakefile: add 'make version' target
45962         * top/GNUmakefile (_curr-ver): Split version update rules...
45963         (version): ...into a target.
45964
45965 2008-10-07  Bruno Haible  <bruno@clisp.org>
45966
45967         Use a more portable replacement expression for -0.0L.
45968         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45969         instead of -0.0L. Fix m4 quotation.
45970
45971         * tests/test-signbit.c: Include <float.h>.
45972         (minus_zero): New variable.
45973         (test_signbitl): Use minus_zero instead of -zero.
45974         * modules/signbit-tests (Depends-on): Add float.
45975
45976         * tests/test-ceill.c: Include <float.h>.
45977         (zero): Remove variable.
45978         (minus_zero): New variable.
45979         (main): Use minus_zero instead of -zero.
45980         * modules/ceill-tests (Depends-on): Add float.
45981
45982         * tests/test-floorl.c: Include <float.h>.
45983         (zero): Remove variable.
45984         (minus_zero): New variable.
45985         (main): Use minus_zero instead of -zero.
45986         * modules/floorl-tests (Depends-on): Add float.
45987
45988         * tests/test-roundl.c: Include <float.h>.
45989         (zero): Remove variable.
45990         (minus_zero): New variable.
45991         (main): Use minus_zero instead of -zero.
45992         * modules/roundl-tests (Depends-on): Add float.
45993
45994         * tests/test-truncl.c: Include <float.h>.
45995         (zero): Remove variable.
45996         (minus_zero): New variable.
45997         (main): Use minus_zero instead of -zero.
45998         * modules/truncl-tests (Depends-on): Add float.
45999
46000         * tests/test-frexpl.c (zero): Remove variable.
46001         (minus_zero): New variable.
46002         (main): Use minus_zero instead of -zero.
46003         * modules/frexpl-tests (Depends-on): Add float.
46004
46005         * tests/test-isnan.c (zerol): Remove variable.
46006         (minus_zerol): New variable.
46007         (test_long_double): Use minus_zerol instead of -zerol.
46008         * modules/isnan-tests (Depends-on): Add float.
46009
46010         * tests/test-isnanl.h (zero): Remove variable.
46011         (minus_zero): New variable.
46012         (main): Use minus_zero instead of -zero.
46013         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46014         * modules/isnanl-tests (Depends-on): Add float.
46015
46016         * tests/test-ldexpl.c (zero): Remove variable.
46017         (minus_zero): New variable.
46018         (main): Use minus_zero instead of -zero.
46019         * modules/ldexpl-tests (Depends-on): Add float.
46020
46021         * tests/test-snprintf-posix.h (zerol): Remove variable.
46022         (minus_zerol): New variable.
46023         (test_function): Use minus_zerol instead of -zerol.
46024         * modules/snprintf-posix-tests (Depends-on): Add float.
46025         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46026
46027         * tests/test-sprintf-posix.h (zerol): Remove variable.
46028         (minus_zerol): New variable.
46029         (test_function): Use minus_zerol instead of -zerol.
46030         * modules/sprintf-posix-tests (Depends-on): Add float.
46031         * modules/vsprintf-posix-tests (Depends-on): Add float.
46032
46033         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46034         (minus_zerol): New variable.
46035         (test_function): Use minus_zerol instead of -zerol.
46036         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46037
46038         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46039         (minus_zerol): New variable.
46040         (test_function): Use minus_zerol instead of -zerol.
46041         * modules/vasprintf-posix-tests (Depends-on): Add float.
46042
46043 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46044
46045         * MODULES.html.sh (Support for building documentation): Mention
46046         pmccabe2html.  Sort entries.
46047
46048         Add pmccabe2html module, from gnupdf.
46049         * build-aux/pmccabe.css: New file.
46050         * build-aux/pmccabe2html: New file.
46051         * m4/pmccabe2html.m4: New file.
46052         * modules/pmccabe2html: New file.
46053
46054 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46055
46056         flock: new module
46057         * MODULES.html.sh: Add to list of modules.
46058         * lib/flock.c: flock implementation for Windows and Unix systems
46059         which have fcntl.
46060         * doc/glibc-functions/flock.texi: Update documentation.
46061         * lib/sys_file.in.h: <sys/file.h> header file.
46062         * m4/flock.m4: M4 macros.
46063         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46064         * modules/flock: flock module.
46065         * modules/flock-tests: flock tests module.
46066         * modules/sys_file: sys/file.h module.
46067         * tests/test-flock.c: test suite for flock.
46068
46069 2008-10-06  Jim Meyering  <meyering@redhat.com>
46070
46071         bootstrap: check for LT_INIT more portably still ;-)
46072         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46073         Spotted by Bruno Haible.
46074
46075 2008-10-06  Eric Blake  <ebb9@byu.net>
46076
46077         test-signbit: avoid tripping Irix cc bug on -0.0L
46078         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46079         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46080         entire testsuite consistent and avoids an Irix 6.2 bug.
46081
46082 2008-10-05  Bruno Haible  <bruno@clisp.org>
46083             Jim Meyering  <jim@meyering.net>
46084
46085         Add an option for ignoring EPIPE during close_stdout.
46086         * lib/closeout.h: Include <stdbool.h>.
46087         (close_stdout_set_ignore_EPIPE): New declaration.
46088         * lib/closeout.c: Include <stdbool.h>.
46089         (ignore_EPIPE): New variable.
46090         (close_stdout_set_ignore_EPIPE): New function.
46091         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46092         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46093         failure.
46094         * modules/closeout (Depends-on): Add stdbool.
46095
46096 2008-10-05  Bruno Haible  <bruno@clisp.org>
46097
46098         * modules/accept: New file.
46099         * modules/bind: New file.
46100         * modules/connect: New file.
46101         * modules/getpeername: New file.
46102         * modules/getsockname: New file.
46103         * modules/getsockopt: New file.
46104         * modules/listen: New file.
46105         * modules/recv: New file.
46106         * modules/recvfrom: New file.
46107         * modules/send: New file.
46108         * modules/sendto: New file.
46109         * modules/setsockopt: New file.
46110         * modules/socket: New file.
46111         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46112         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46113         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46114         the particular module is requested. Add a link warning when the
46115         particular module is not requested.
46116         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46117         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46118         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46119         the particular module is requested.
46120         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46121         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46122         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46123         * modules/sys_socket (Depends-on): Add link-warning.
46124         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46125         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46126         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46127         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46128         GL_LINK_WARNING.
46129         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46130         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46131         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46132         * doc/posix-functions/getpeername.texi: Mention the new module
46133         'getpeername'.
46134         * doc/posix-functions/getsockname.texi: Mention the new module
46135         'getsockname'.
46136         * doc/posix-functions/getsockopt.texi: Mention the new module
46137         'getsockopt'.
46138         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46139         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46140         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46141         * doc/posix-functions/send.texi: Mention the new module 'send'.
46142         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46143         * doc/posix-functions/setsockopt.texi: Mention the new module
46144         'setsockopt'.
46145         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46146         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46147         listen, connect, accept.
46148         * modules/select-tests (Depends-on): Likewise.
46149
46150 2008-10-05  Bruno Haible  <bruno@clisp.org>
46151
46152         * lib/winsock.c (strerror): Remove unused #undef.
46153         (rpl_close): Remove unused local variable.
46154
46155         * modules/sys_socket (Depends-on); Add errno.
46156
46157 2008-10-05  Bruno Haible  <bruno@clisp.org>
46158
46159         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46160         (select): Add a link warning when the 'select' module is not used.
46161         * modules/sys_select (Depends-on): Add link-warning.
46162         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46163         Suggested by Paolo Bonzini.
46164
46165 2008-10-05  Jim Meyering  <meyering@redhat.com>
46166
46167         bootstrap: check for LT_INIT more portably
46168         * build-aux/bootstrap: Avoid using grep -E, since it's not
46169         portable enough.  Suggestion from Bruno Haible.
46170
46171 2008-10-05  Bruno Haible  <bruno@clisp.org>
46172
46173         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46174         as being fixed by gnulib.
46175
46176 2008-10-05  Bruno Haible  <bruno@clisp.org>
46177
46178         * modules/select-tests: New file, mostly copied from
46179         modules/sys_select-tests.
46180         * tests/test-select.c: New file, mostly copied from
46181         tests/test-sys_select.c.
46182         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46183         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46184         (Makefile.am): Remove test_sys_select_LDADD.
46185
46186         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46187         to an undefined symbol, for an error message.
46188         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46189         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46190         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46191         winsock-select.c here.
46192         * modules/sys_select (Files): Remove lib/winsock-select.c.
46193         (Depends-on): Remove alloca.
46194         (Makefile.am): Substitute GNULIB_SELECT.
46195         * modules/select: New file.
46196         * doc/posix-functions/select.texi: Update.
46197
46198 2008-10-05  Bruno Haible  <bruno@clisp.org>
46199
46200         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46201         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46202         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46203         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46204         getdtablesize.
46205         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46206         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46207
46208 2008-10-05  Bruno Haible  <bruno@clisp.org>
46209
46210         * modules/getdtablesize-tests: New file.
46211         * tests/test-getdtablesize.c: New file.
46212
46213         New module 'getdtablesize'.
46214         * lib/unistd.in.h (getdtablesize): New declaration.
46215         * lib/getdtablesize.c: New file.
46216         * m4/getdtablesize.m4: New file.
46217         * modules/getdtablesize: New file.
46218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46219         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46220         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46221         HAVE_GETDTABLESIZE.
46222         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46223
46224 2008-10-05  Bruno Haible  <bruno@clisp.org>
46225
46226         * modules/sched (Makefile.am): Fix typo.
46227         Reported by Simon Josefsson.
46228
46229 2008-10-05  Jim Meyering  <meyering@redhat.com>
46230
46231         bootstrap: check for LT_INIT, too
46232         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46233         are deprecated.  Suggestion from Ralf Wildenhues.
46234
46235 2008-10-05  Bruno Haible  <bruno@clisp.org>
46236
46237         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46238         overriding them by ours.
46239         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46240
46241 2008-10-05  Jim Meyering  <meyering@redhat.com>
46242
46243         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46244         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46245         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46246
46247 2008-10-04  Bruno Haible  <bruno@clisp.org>
46248
46249         * modules/dup2 (License): Change to LGPLv2+.
46250         * modules/sleep (License): Likewise.
46251         * modules/perror (License): Likewise.
46252         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46253         Blake.
46254         * modules/signal (License): Likewise.
46255         * modules/sigprocmask (License): Likewise.
46256         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46257         Meyering.
46258
46259 2008-10-04  Bruno Haible  <bruno@clisp.org>
46260
46261         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46262         Reported by Rainer Tammer <tammer@tammer.net>.
46263
46264 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46265             Bruno Haible  <bruno@clisp.org>
46266
46267         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46268         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46269         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46270
46271 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46272
46273         filevercmp: new module
46274         * lib/filevercmp.h: New function filevercmp comparing version strings.
46275         * lib/filevercmp.c: Implementation of filevercmp function.
46276         * modules/filevercmp: Module metadata.
46277         * tests/test-filevercmp.c: Unit test for new module.
46278         * modules/filevercmp-tests: Unit test metadata.
46279         * MODULES.html.sh: Add filevercmp module.
46280
46281 2008-10-03  Bruno Haible  <bruno@clisp.org>
46282
46283         * lib/c-ctype.h: Add comment.
46284         Reported by Jim Meyering.
46285
46286 2008-10-02  Bruno Haible  <bruno@clisp.org>
46287
46288         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46289
46290 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46291
46292         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46293         name of bootstrap.conf accordingly.
46294
46295 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46296
46297         * build-aux/bootstrap: Install git-merge-changelog configuration
46298         items into .gitconfig if needed.
46299
46300 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46301
46302         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46303         git repository, and initialize/update it accordingly.
46304
46305 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46306
46307         * modules/fsync-tests: New file.
46308         * tests/test-fsync.c: New file.
46309
46310         New module 'fsync'.
46311         * lib/fsync.c: New file.
46312         * m4/fsync.m4: New file.
46313         * modules/fsync: New file.
46314         * lib/unistd.in.h (fsync): New declaration.
46315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46316         GNULIB_FSYNC and HAVE_FSYNC.
46317         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46318         * MODULES.html.sh (posix_functions): Add fsync.
46319         * doc/posix-functions/fsync.texi: Mention the new module.
46320
46321 2008-10-02  Jim Meyering  <meyering@redhat.com>
46322
46323         fts.c: sync with similar code from coreutils' remove.c
46324         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46325         Guard also with "#if defined __linux__", since for now at least,
46326         this code is Linux-kernel-specific.
46327
46328 2008-10-02  Jim Meyering  <meyering@redhat.com>
46329
46330         fts: bug fixes
46331         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46332         Include <sys/vfs.h>, not <sys/statfs.h>.
46333
46334         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46335         Include <sys/vfs.h>, not <sys/statfs.h>.
46336
46337 2008-10-01  Bruno Haible  <bruno@clisp.org>
46338
46339         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46340         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46341         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46342         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46343         * doc/posix-functions/posix_spawnp.texi: Likewise.
46344         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46345         whether posix_spawn actually works.
46346         * m4/pipe.m4 (gl_PIPE): Likewise.
46347         * modules/execute (Files): Add m4/posix_spawn.m4.
46348         * modules/pipe (Files): Add m4/posix_spawn.m4.
46349         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46350
46351 2008-10-01  Jim Meyering  <meyering@redhat.com>
46352
46353         remove trailing spaces
46354         * NEWS: Likewise.
46355         * lib/poll.c (poll): Likewise.
46356         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46357         * lib/winsock.c (rpl_close): Likewise.
46358         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46359         * modules/yield: Likewise.
46360         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46361         * tests/test-sys_select.c (connect_to_socket): Likewise.
46362
46363         fts.c: adjust a new interface to be more generally useful
46364         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46365         (fts_build): Adjust caller.
46366
46367 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46368
46369         * modules/cond-tests: New file.
46370         * tests/test-cond.c: New file.
46371
46372 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46373             Bruno Haible  <bruno@clisp.org>
46374
46375         * modules/cond (Dependencies): Add errno, time.
46376         * lib/glthread/cond.h: Include <time.h>.
46377         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46378         across platforms.
46379
46380 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46381             Bruno Haible  <bruno@clisp.org>
46382
46383         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46384
46385 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46386             Bruno Haible  <bruno@clisp.org>
46387
46388         * modules/tls-tests (Depends-on): Add thread, yield.
46389         (configure.ac): Remove all checks.
46390         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46391         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46392         gl_thread_self): Remove definitions. Include glthread/thread.h and
46393         glthread/yield.h instead.
46394         (test_tls): Pass an additional NULL argument to gl_thread_join.
46395
46396 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46397             Bruno Haible  <bruno@clisp.org>
46398
46399         * modules/lock-tests (Depends-on): Add thread, yield.
46400         (configure.ac): Remove all checks.
46401         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46402         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46403         gl_thread_self): Remove definitions. Include glthread/thread.h and
46404         glthread/yield.h instead.
46405         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46406         additional NULL argument to gl_thread_join.
46407
46408 2008-09-30  Bruno Haible  <bruno@clisp.org>
46409
46410         Fix the Win32 implementation of the 'thread' module.
46411         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46412         pointer type.
46413         (gl_thread_self): Invoke gl_thread_self_func.
46414         (gl_thread_self_func): New declaration.
46415         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46416         (do_init_self_key, init_self_key): New functions.
46417         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46418         Remove some fields.
46419         (running_threads, running_lock): Remove variables.
46420         (get_current_thread_handle): New function.
46421         (gl_thread_self_func, wrapper_func, glthread_create_func,
46422         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46423         simplified.
46424
46425 2008-09-30  Bruno Haible  <bruno@clisp.org>
46426
46427         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46428         files.
46429
46430 2008-09-30  Jim Meyering  <meyering@redhat.com>
46431
46432         fts.m4: correct the test for statfs.f_type
46433         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46434         when checking for statfs.f_type.
46435
46436 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46437
46438         tests: avoid some compiler warnings
46439         * tests/test-memchr.c (main): Pass NULL indirectly.
46440         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46441
46442 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46443
46444         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46445         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46446         exactly specified dayshifts.
46447         (dayshift): New rule.
46448         (rel): Add dayshift.
46449         (relative_time_table) [tomorrow, yesterday, today, now]:
46450         Use tDAY_SHIFT in place of tDAY_UNIT.
46451         * tests/test-getdate.c: Add tests for now-disallowed countable
46452         dayshifts, e.g., "4 yesterday ago".
46453
46454 2008-09-29  Bruno Haible  <bruno@clisp.org>
46455
46456         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46457         * tests/test-posix_spawn1.in.sh: Renamed from
46458         tests/test-posix_spawn.in.sh.
46459         * tests/test-posix_spawn2.c: New file.
46460         * tests/test-posix_spawn2.in.sh: New file.
46461         * modules/posix_spawnp-tests (Files): Update.
46462         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46463
46464 2008-09-29  Bruno Haible  <bruno@clisp.org>
46465
46466         Propagate effects of putenv/setenv/unsetenv to child processes.
46467         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46468         * lib/pipe.c (create_pipe): Likewise.
46469
46470 2008-09-29  Bruno Haible  <bruno@clisp.org>
46471
46472         Enable use of shell scripts as executables in mingw.
46473         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46474         run the program as a shell script.
46475         * lib/pipe.c (create_pipe): Likewise.
46476         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46477         resulting array.
46478
46479 2008-09-29  Eric Blake  <ebb9@byu.net>
46480
46481         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46482
46483 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46484
46485         * doc/posix-functions/accept.texi: Update mingw problems.
46486         * doc/posix-functions/bind.texi: Update mingw problems.
46487         * doc/posix-functions/close.texi: Update mingw problems.
46488         * doc/posix-functions/connect.texi: Update mingw problems.
46489         * doc/posix-functions/getpeername.texi: Update mingw problems.
46490         * doc/posix-functions/getsockname.texi: Update mingw problems.
46491         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46492         * doc/posix-functions/ioctl.texi: Update mingw problems.
46493         * doc/posix-functions/listen.texi: Update mingw problems.
46494         * doc/posix-functions/recv.texi: Update mingw problems.
46495         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46496         * doc/posix-functions/select.texi: Update mingw problems.
46497         * doc/posix-functions/send.texi: Update mingw problems.
46498         * doc/posix-functions/sendto.texi: Update mingw problems.
46499         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46500         * doc/posix-functions/socket.texi: Update mingw problems.
46501
46502 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46503             Bruno Haible  <bruno@clisp.org>
46504
46505         * lib/sys_select.in.h: Include sys/time.h.
46506         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46507         * modules/sys_select: Depend on sys_time.
46508         * tests/test-sys_select.c: Test that sys/select.h defines struct
46509         timeval fully.
46510
46511 2008-09-29  Bruno Haible  <bruno@clisp.org>
46512
46513         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46514         * lib/sys_select.in.h: Likewise.
46515
46516 2008-09-29  Bruno Haible  <bruno@clisp.org>
46517
46518         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46519
46520 2008-09-29  Bruno Haible  <bruno@clisp.org>
46521
46522         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46523         Set LIBSOCKET instead of augmenting LIBS.
46524         * modules/sockets (Link): New section.
46525         * modules/sockets-tests (test_sockets_LDADD): New variable.
46526         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46527         * modules/poll-tests (test_poll_LDADD): New variable.
46528         * NEWS: Document the change.
46529
46530 2008-09-29  Bruno Haible  <bruno@clisp.org>
46531
46532         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46533         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46534         ARPA_INET_H directly.
46535         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46536
46537 2008-09-28  Bruno Haible  <bruno@clisp.org>
46538
46539         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46540         from gl_HEADER_SYS_SOCKET.
46541         (gl_HEADER_SYS_SOCKET): Invoke it.
46542         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46543
46544 2008-09-28  Bruno Haible  <bruno@clisp.org>
46545
46546         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46547         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46548         Needed on OSF/1 4.0.
46549
46550 2008-09-28  Bruno Haible  <bruno@clisp.org>
46551
46552         Override open more carefully.
46553         * lib/open.c (orig_open): New function.
46554         (rpl_open): Use orig_open instead of open.
46555         * lib/fcntl.in.h: Add special invocation convention.
46556         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46557         (gl_FUNC_OPEN): Invoke it.
46558
46559         Override freopen more carefully.
46560         * lib/freopen.c (orig_freopen): New function.
46561         (rpl_freopen): Use orig_freopen instead of freopen.
46562         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46563         (gl_FUNC_FREOPEN): Invoke it.
46564
46565         Override fopen more carefully.
46566         * lib/fopen.c (orig_fopen): New function.
46567         (rpl_fopen): Use orig_fopen instead of fopen.
46568         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46569         (gl_FUNC_FOPEN): Invoke it.
46570         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46571
46572 2008-09-28  Bruno Haible  <bruno@clisp.org>
46573
46574         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46575         SIGPIPE.
46576
46577 2008-09-28  Bruno Haible  <bruno@clisp.org>
46578
46579         * tests/test-sigaction.c (handler, main): Disable the check whether
46580         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46581         glibc systems with LinuxThreads.
46582
46583 2008-09-28  Bruno Haible  <bruno@clisp.org>
46584
46585         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46586
46587         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46588         with AIX xlc.
46589         * lib/fcntl.in.h (open): Likewise.
46590         Reported by Rainer Tammer <tammer@tammer.net>.
46591
46592 2008-09-28  Bruno Haible  <bruno@clisp.org>
46593
46594         * modules/posix_spawnp-tests: New file.
46595         * tests/test-posix_spawn.c: New file.
46596         * tests/test-posix_spawn.in.sh: New file.
46597
46598         New module 'posix_spawnp'.
46599         * modules/posix_spawnp: New file.
46600         * lib/spawnp.c: New file, from GNU libc with modifications.
46601         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46602
46603         New module 'posix_spawn'.
46604         * modules/posix_spawn: New file.
46605         * lib/spawn.c: New file, from GNU libc with modifications.
46606         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46607
46608         New module 'posix_spawnattr_destroy'.
46609         * modules/posix_spawnattr_destroy: New file.
46610         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46611         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46612         module.
46613
46614         New module 'posix_spawnattr_setsigmask'.
46615         * modules/posix_spawnattr_setsigmask: New file.
46616         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46617         modifications.
46618         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46619         new module.
46620
46621         New module 'posix_spawnattr_getsigmask'.
46622         * modules/posix_spawnattr_getsigmask: New file.
46623         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46624         modifications.
46625         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46626         new module.
46627
46628         New module 'posix_spawnattr_setsigdefault'.
46629         * modules/posix_spawnattr_setsigdefault: New file.
46630         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46631         modifications.
46632         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46633         new module.
46634
46635         New module 'posix_spawnattr_getsigdefault'.
46636         * modules/posix_spawnattr_getsigdefault: New file.
46637         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46638         modifications.
46639         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46640         new module.
46641
46642         New module 'posix_spawnattr_setschedpolicy'.
46643         * modules/posix_spawnattr_setschedpolicy: New file.
46644         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46645         modifications.
46646         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46647         new module.
46648
46649         New module 'posix_spawnattr_getschedpolicy'.
46650         * modules/posix_spawnattr_getschedpolicy: New file.
46651         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46652         modifications.
46653         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46654         new module.
46655
46656         New module 'posix_spawnattr_setschedparam'.
46657         * modules/posix_spawnattr_setschedparam: New file.
46658         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46659         modifications.
46660         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46661         new module.
46662
46663         New module 'posix_spawnattr_getschedparam'.
46664         * modules/posix_spawnattr_getschedparam: New file.
46665         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46666         modifications.
46667         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46668         new module.
46669
46670         New module 'posix_spawnattr_setpgroup'.
46671         * modules/posix_spawnattr_setpgroup: New file.
46672         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46673         modifications.
46674         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46675         module.
46676
46677         New module 'posix_spawnattr_getpgroup'.
46678         * modules/posix_spawnattr_getpgroup: New file.
46679         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46680         modifications.
46681         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46682         module.
46683
46684         New module 'posix_spawnattr_setflags'.
46685         * modules/posix_spawnattr_setflags: New file.
46686         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46687         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46688         module.
46689
46690         New module 'posix_spawnattr_getflags'.
46691         * modules/posix_spawnattr_getflags: New file.
46692         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46693         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46694         module.
46695
46696         New module 'posix_spawnattr_init'.
46697         * modules/posix_spawnattr_init: New file.
46698         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46699         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46700         module.
46701
46702         New module 'posix_spawn_file_actions_destroy'.
46703         * modules/posix_spawn_file_actions_destroy: New file.
46704         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46705         modifications.
46706         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46707         the new module.
46708
46709         New module 'posix_spawn_file_actions_addopen'.
46710         * modules/posix_spawn_file_actions_addopen: New file.
46711         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46712         modifications.
46713         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46714         the new module.
46715
46716         New module 'posix_spawn_file_actions_adddup2'.
46717         * modules/posix_spawn_file_actions_adddup2: New file.
46718         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46719         modifications.
46720         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46721         the new module.
46722
46723         New module 'posix_spawn_file_actions_addclose'.
46724         * modules/posix_spawn_file_actions_addclose: New file.
46725         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46726         modifications.
46727         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46728         the new module.
46729
46730         New module 'posix_spawn_file_actions_init'.
46731         * modules/posix_spawn_file_actions_init: New file.
46732         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46733         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46734         new module.
46735
46736         New module 'posix_spawn-internal'.
46737         * modules/posix_spawn-internal: New file.
46738         * lib/spawn_int.h: New file, from GNU libc with modifications.
46739         * lib/spawni.c: New file, from GNU libc with modifications.
46740         * m4/posix_spawn.m4: New file.
46741
46742         New module 'spawn'.
46743         * modules/spawn: New file.
46744         * lib/spawn.in.h: New file, from GNU libc with modifications.
46745         * m4/spawn_h.m4: New file.
46746         * doc/posix-headers/spawn.texi: Mention the new module.
46747
46748 2008-09-28  Bruno Haible  <bruno@clisp.org>
46749
46750         * modules/sched-tests: New file.
46751         * tests/test-sched.c: New file.
46752
46753         New module 'sched'.
46754         * modules/sched: New file.
46755         * lib/sched.in.h: New file.
46756         * m4/sched_h.m4: New file.
46757         * doc/posix-headers/sched.texi: Mention the new module.
46758
46759 2008-09-27  Eric Blake  <ebb9@byu.net>
46760
46761         Fix previous patch, and tweak references to $0.
46762         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46763         (func_version, func_gnulib_dir): Don't call this program
46764         gnulib-tool.
46765         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46766         with using $0 in function.
46767         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46768         (func_fatal_error): Reuse the name the user invoked us with.
46769
46770 2008-09-27  Bruno Haible  <bruno@clisp.org>
46771
46772         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46773         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46774         (gl_ICONV_H): Not here.
46775         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46776         instead of assigning ICONV_H directly.
46777
46778         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46780         WCHAR_H directly.
46781
46782 2008-09-27  Bruno Haible  <bruno@clisp.org>
46783
46784         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46785         * modules/arpa_inet (Depends-on): Add link-warning.
46786         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46787         * modules/unistd (Makefile.am): Likewise.
46788
46789 2008-09-26  Bruno Haible  <bruno@clisp.org>
46790
46791         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46792         variables.
46793         (func_version): Essentially copied from gnulib-tool.
46794         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46795         func_readlink): Copied from gnulib-tool.
46796
46797 2008-09-26  Bruno Haible  <bruno@clisp.org>
46798
46799         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46800         invoking git-version-gen.
46801
46802 2008-09-26  Bruno Haible  <bruno@clisp.org>
46803
46804         * posix-modules: Update to directory names changed on 2008-01-19.
46805         Remove commas in output before splitting into words. No more need to
46806         avoid 'ftruncate' since 2007-02-19.
46807
46808 2008-09-26  Bruno Haible  <bruno@clisp.org>
46809
46810         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46811
46812 2008-09-26  Bruno Haible  <bruno@clisp.org>
46813
46814         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46815         * modules/fwriteerror (Depends-on): Add errno.
46816
46817 2008-09-26  Bruno Haible  <bruno@clisp.org>
46818
46819         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46820         * tests/test-vc-list-files-cvs.sh: Likewise.
46821
46822 2008-09-26  Bruno Haible  <bruno@clisp.org>
46823
46824         * doc/posix-headers/sys_resource.texi: Reorder items.
46825
46826 2008-09-26  Jim Meyering  <meyering@redhat.com>
46827
46828         fts: tweak inode comparison function
46829         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46830         inode numbers, as documented.
46831
46832         fts: sort dirent entries on inode number before traversing
46833         This avoids a quadratic, seek-related performance penalty when
46834         operating on a directory containing many entries (measurable at 10k;
46835         3.5 hours at 2 million entries with a cold cache) on certain types
46836         of file systems, including ext3 and ext4, but not tmpfs.
46837         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46838         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46839         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46840         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46841         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46842         (fts_build): Set the stat.st_ino member from D_INO.
46843         If it is likely to be useful, sort dirent entries on inode number.
46844
46845         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46846         and the struct statfs.f_type member.
46847         * modules/fts (Depends-on): Add d-ino.
46848
46849 2008-09-26  Bruno Haible  <bruno@clisp.org>
46850
46851         * modules/sigpipe-die (Depends-on): Add sigpipe.
46852
46853         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46854         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46855         and GNULIB_STDIO_H_SIGPIPE are set.
46856         * lib/stdio-write.c: New file.
46857         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46858         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46859         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46860         REPLACE_STDIO_WRITE_FUNCS.
46861         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46862         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46863         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46864         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46865         * modules/stdio (Files): Add lib/stdio-write.c.
46866         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46867         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46868         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46869         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46870         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46871         REPLACE_FPRINTF_POSIX.
46872         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46873         REPLACE_PRINTF_POSIX.
46874         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46875         REPLACE_VFPRINTF_POSIX.
46876         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46877         REPLACE_VPRINTF_POSIX.
46878         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46879         SIGPIPE issue.
46880         * doc/posix-functions/fputc.texi: Likewise.
46881         * doc/posix-functions/fputs.texi: Likewise.
46882         * doc/posix-functions/fwrite.texi: Likewise.
46883         * doc/posix-functions/printf.texi: Likewise.
46884         * doc/posix-functions/putc.texi: Likewise.
46885         * doc/posix-functions/putchar.texi: Likewise.
46886         * doc/posix-functions/puts.texi: Likewise.
46887         * doc/posix-functions/vfprintf.texi: Likewise.
46888         * doc/posix-functions/vprintf.texi: Likewise.
46889
46890         * modules/safe-write (Depends-on): Add write.
46891
46892         * modules/sigpipe-tests: New file.
46893         * tests/test-sigpipe.c: New file.
46894         * tests/test-sigpipe.sh: New file.
46895
46896         * modules/write: New file.
46897         * lib/unistd.in.h: Include <sys/types.h>.
46898         (write): New declaration.
46899         * lib/write.c: New file.
46900         * m4/write.m4: New file.
46901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46902         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46903         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46904         GNULIB_WRITE, REPLACE_WRITE.
46905         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46906         and the SIGPIPE issue.
46907
46908         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46909         (raise): New declaration.
46910         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46911         (ext_signal): New function.
46912         (rpl_raise): New function.
46913         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46914         GNULIB_SIGNAL_H_SIGPIPE.
46915         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46916         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46917
46918         * modules/sigpipe: New file.
46919         * m4/sigpipe.m4: New file.
46920
46921 2008-09-25  Derek Price  <derek@ximbiot.com>
46922             Bruno Haible  <bruno@clisp.org>
46923
46924         * gnulib-tool (func_import): Report all license incompatibilities, not
46925         just the first one.
46926
46927 2008-09-25  Bruno Haible  <bruno@clisp.org>
46928
46929         * gnulib-tool (func_import): When computing the edits, consider not
46930         only the Makefile.ams that exist but also those that will be generated.
46931
46932 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46933
46934         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46935         fixes gnulib-tool --test warning about duplicate dependency.
46936
46937 2008-09-25  Bruno Haible  <bruno@clisp.org>
46938
46939         * gnulib-tool: Don't ask the user to perform edits in the generated
46940         Makefile.ams.
46941         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46942         apply to the Makefile.am being generated.
46943         (func_emit_tests_Makefile_am): Execute edits that apply to the
46944         Makefile.am being generated.
46945         (func_import): Setup list of Makefile.am edits before emitting the
46946         Makefile.ams, not at the end.
46947         (func_create_testdir): Update.
46948         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46949
46950 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46951
46952         * gnulib-tool (func_import): Store the --tests-base option in the
46953         comment in gnulib-cache.m4.
46954
46955 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46956
46957         * NEWS: Document increased portability that sys_select now provides.
46958
46959         * lib/sys_select.in.h: Install select wrapper.
46960         * lib/sys_socket.in.h: Use more descriptive name when there is no
46961         select wrapper.
46962         * lib/winsock-select.c: New.
46963         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46964         Require gl_HEADER_SYS_SOCKET.
46965         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46966         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46967         * tests/test-sys_select.c: Add functional tests.
46968
46969 2008-09-24  Eric Blake  <ebb9@byu.net>
46970
46971         open, fopen: close fd leak in last patch
46972         * lib/open.c (rpl_open): Close fd before returning error.
46973         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46974         * doc/posix-functions/open.texi (open): Document that Irix also
46975         has the bug.
46976         * doc/posix-functions/fopen.texi (fopen): Likewise.
46977         Reported by Paolo Bonzini.
46978
46979 2008-09-24  Bruno Haible  <bruno@clisp.org>
46980
46981         Ensure that a filename ending in a slash cannot be used to access a
46982         non-directory.
46983         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46984         to check whether it's really a directory.
46985         * lib/fopen.c: Include fcntl.h, unistd.h.
46986         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46987         and fdopen().
46988         * modules/fopen (Depends-on): Add unistd.
46989         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46990         * tests/test-fopen.c (main): Likewise.
46991         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46992         * doc/posix-functions/fopen.texi: Likewise.
46993         Reported by Eric Blake.
46994
46995 2008-09-23  Eric Blake  <ebb9@byu.net>
46996
46997         c-stack: avoid compiler optimizations when provoking overflow
46998         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46999         recursion harder to optimize, to ensure a stack overflow occurs.
47000         * tests/test-c-stack.c (recurse): Likewise.
47001         Borrowed from libsigsegv.
47002
47003         c-stack: work around Irix sigaltstack bug
47004         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47005         whether sigaltstack uses wrong end of stack_t (copied in part from
47006         libsigsegv).
47007         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47008         Irix bug, without requiring an over-allocation.
47009         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47010         bug.
47011
47012         fopen: document mingw bug on directories
47013         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47014         not allowing a stream visiting a directory, even though reading
47015         from such a stream is not portable.
47016
47017 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47018
47019         * lib/poll.c: Rewrite.
47020         * modules/poll: Depend on alloca.
47021
47022 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47023
47024         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47025         instead define prototypes for a full set of wrappers.  Ensure
47026         that Cygwin does not use the compatibility code, which is only
47027         for MinGW.
47028         * lib/winsock.c: New.
47029         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47030         * modules/sys_socket: Add lib/winsock.c.
47031
47032         * modules/poll-tests: Add errno and perror.
47033         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47034
47035 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47036
47037         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47038
47039 2008-09-23  Bruno Haible  <bruno@clisp.org>
47040
47041         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47042         * doc/glibc-functions/*: Likewise.
47043
47044 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47045
47046         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47047         success.
47048
47049 2008-09-22  Eric Blake  <ebb9@byu.net>
47050             Bruno Haible  <bruno@clisp.org>
47051
47052         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47053         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47054         supply %A but mishandle pseudo-NaN.
47055         Reported by Simon Josefsson.
47056
47057 2008-09-21  Bruno Haible  <bruno@clisp.org>
47058
47059         * tests/test-lock.c (main): Tweak skip message.
47060         * tests/test-tls.c (main): Likewise.
47061
47062 2008-09-21  Bruno Haible  <bruno@clisp.org>
47063
47064         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47065         whether 'struct sigaction' has sa_sigaction here...
47066         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47067         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47068
47069 2008-09-21  Bruno Haible  <bruno@clisp.org>
47070
47071         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47072         section.
47073         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47074         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47075         the new section.
47076         (Support for obsolete systems lacking POSIX:2001): New section.
47077         (String handling <string.h>): Move strdup to the new section.
47078         Suggested by Simon Josefsson and Paolo Bonzini.
47079
47080 2008-09-21  Bruno Haible  <bruno@clisp.org>
47081
47082         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47083         exponents in %e and %g results on 'long double'. Needed for mingw's
47084         improved *printf functions.
47085         * tests/test-vasprintf-posix.c (test_function): Likewise.
47086         * tests/test-snprintf-posix.h (test_function): Likewise.
47087         * tests/test-sprintf-posix.h (test_function): Likewise.
47088         Reported by Eric Blake.
47089
47090 2008-09-21  Bruno Haible  <bruno@clisp.org>
47091
47092         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47093         * tests/test-sprintf-posix.h (test_function): Likewise.
47094
47095 2008-09-21  Bruno Haible  <bruno@clisp.org>
47096
47097         * modules/getpass (Depends-on): Add strdup-posix.
47098
47099         New module 'strdup-posix'.
47100         * modules/strdup-posix: New file.
47101         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47102         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47104         REPLACE_STRDUP.
47105         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47106         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47107         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47108         strdup-posix.
47109
47110         * modules/strdup (Depends-on): Remove malloc-posix.
47111
47112 2008-09-20  Bruno Haible  <bruno@clisp.org>
47113
47114         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47115         Wildenhues.
47116
47117 2008-09-20  Bruno Haible  <bruno@clisp.org>
47118
47119         Ensure that wint_t gets defined on IRIX 5.3.
47120         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47121         * lib/wctype.in.h (wint_t): Likewise.
47122         (__wctype_wint_t): Remove type.
47123         (isw*): Use wint_t instead of __wctype_wint_t.
47124         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47125         * modules/wchar (Files): Add m4/wint_t.m4.
47126         (Makefile.am): Substitute HAVE_WINT_T.
47127         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47128         * tests/test-wctype.c: Check that wint_t is defined.
47129         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47130         * doc/posix-headers/wctype.texi: Likewise.
47131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47132
47133 2008-09-18  Bruno Haible  <bruno@clisp.org>
47134
47135         * gnulib-tool (func_exit): Update comment.
47136
47137 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47138
47139         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47140         assumes strdup exists and does not depend on strdup to return
47141         ENOMEM on out of memory conditions.
47142
47143 2008-09-18  Bruno Haible  <bruno@clisp.org>
47144
47145         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
47146         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47147         digits for the exponent.
47148
47149 2008-09-18  Jim Meyering  <meyering@redhat.com>
47150             Bruno Haible  <bruno@clisp.org>
47151
47152         * lib/vasnprintf.c (decimal_point_char): Define also if
47153         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47154
47155 2008-09-16  Bruno Haible  <bruno@clisp.org>
47156         and Eric Blake  <ebb9@byu.net>
47157
47158         vasnprintf: support Irix 5.3
47159         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47160         that mishandle long double infinity.
47161         Reported by Tom G. Christensen.
47162
47163 2008-09-16  Bruno Haible  <bruno@clisp.org>
47164
47165         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47166         Solaris 9.
47167         * doc/glibc-functions/alphasort.texi: Likewise.
47168         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47169
47170 2008-09-16  Jim Meyering  <meyering@redhat.com>
47171
47172         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47173         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47174         a umask modification leak out of a subshell.  Otherwise, the
47175         opensolaris /bin/sh would be accepted and thus cause unwarranted
47176         failures in the coreutils test suite.
47177
47178 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47179
47180         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47181         to succeed.
47182
47183 2008-09-16  Jim Meyering  <meyering@redhat.com>
47184
47185         avoid spurious test failure when library is built without ACL support
47186         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47187         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47188         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47189         * tests/test-copy-acl.sh: Likewise.
47190
47191 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47192
47193         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47194         based on character occurrence counts.
47195
47196 2008-09-15  Eric Blake  <ebb9@byu.net>
47197
47198         tests: avoid some compiler warnings
47199         * tests/test-memchr.c (main): Pass NULL indirectly.
47200         * tests/test-closein.c (main): Avoid unused variable.
47201
47202 2008-09-15  Bruno Haible  <bruno@clisp.org>
47203
47204         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47205         are missing on OpenBSD 4.0 individually.
47206         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47207
47208 2008-09-15  Bruno Haible  <bruno@clisp.org>
47209
47210         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47211         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47212         * doc/posix-functions/perror.texi: Likewise.
47213         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47214         is missing.
47215         Reported by Eric Blake.
47216
47217         * lib/errno.in.h: Use replacement values >= 2000.
47218         Reported by Eric Blake.
47219
47220 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47221
47222         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47223         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47224         limit.
47225         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47226         compareseq was aborted.
47227
47228 2008-09-14  Bruno Haible  <bruno@clisp.org>
47229
47230         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47231         yvec_edit_count.
47232         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47233         (fstrcmp_bounded): Simplify result computation accordingly.
47234
47235 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47236
47237         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47238         (fstrcmp): Define in terms of fstrcmp_bounded.
47239         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47240         lower_bound argument.
47241         Return quickly if the result is certainly < lower_bound.
47242         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47243
47244 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47245
47246         * lib/diffseq.h (EARLY_ABORT): New macro.
47247         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47248         evaluates to true.
47249
47250 2008-09-14  Bruno Haible  <bruno@clisp.org>
47251
47252         * modules/perror-tests: New file.
47253         * tests/test-perror.sh: New file.
47254         * tests/test-perror.c: New file.
47255
47256         New module 'perror'.
47257         * lib/stdio.in.h (perror): New declaration.
47258         * lib/perror.c: New file.
47259         * m4/perror.m4: New file.
47260         * modules/perror: New file.
47261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47262         * doc/posix-functions/perror.texi: Mention the perror module.
47263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47264         REPLACE_PERROR.
47265         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47266         REPLACE_PERROR.
47267
47268 2008-09-14  Bruno Haible  <bruno@clisp.org>
47269
47270         * modules/stdio (Makefile.am): Reorder to match the order in
47271         lib/stdio.in.h.
47272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47273
47274 2008-09-13  Bruno Haible  <bruno@clisp.org>
47275
47276         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47277
47278 2008-09-13  Bruno Haible  <bruno@clisp.org>
47279
47280         Extend strerror to cover the added errno values.
47281         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47282         (rpl_strerror): Provide error messages for the added errno values and
47283         for the WSA* values.
47284         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47285         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47286         strerror.
47287         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47288         * modules/strerror (Depends-on): Add errno.
47289         * doc/posix-functions/strerror.texi: Document the change.
47290         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47291         and EOVERFLOW.
47292
47293 2008-09-13  Bruno Haible  <bruno@clisp.org>
47294
47295         * modules/EOVERFLOW: Remove file.
47296         * m4/eoverflow.m4: Remove file.
47297         * modules/EOVERFLOW-tests: Remove file.
47298         * tests/test-EOVERFLOW.c: Remove file.
47299         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47300         * modules/ftell (Depends-on): Likewise.
47301         * modules/getdelim (Depends-on): Likewise.
47302         * modules/getugroups (Depends-on): Likewise.
47303         * modules/poll (Depends-on): Likewise.
47304         * modules/snprintf (Depends-on): Likewise.
47305         * modules/sprintf-posix (Depends-on): Likewise.
47306         * modules/vasnprintf (Depends-on): Likewise.
47307         * modules/vasprintf (Depends-on): Likewise.
47308         * modules/vfprintf-posix (Depends-on): Likewise.
47309         * modules/vsnprintf (Depends-on): Likewise.
47310         * modules/vsprintf-posix (Depends-on): Likewise.
47311         * modules/xvasprintf (Depends-on): Likewise.
47312         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47313         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47314         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47315         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47316         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47317         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47318         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47319         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47320         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47321         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47322         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47323         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47324         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47325         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47326         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47327         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47328         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47329         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47330         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47331         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47332         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47333         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47334         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47335         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47336         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47337         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47338         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47339         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47340         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47341         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47342         * MODULES.html.sh: Remove EOVERFLOW.
47343         * NEWS: Mention the change.
47344
47345 2008-09-13  Bruno Haible  <bruno@clisp.org>
47346
47347         * modules/errno-tests: New file.
47348         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47349
47350         * lib/errno.in.h: New file.
47351         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47352         * modules/errno: New file.
47353         * doc/posix-headers/errno.texi: Update documentation.
47354         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47355
47356 2008-09-13  Bruno Haible  <bruno@clisp.org>
47357
47358         * tests/test-poll.c: Use #if for native Windows, rather than testing
47359         __MSVCRT__.
47360
47361 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47362             Bruno Haible  <bruno@clisp.org>
47363
47364         * lib/glob.c: Don't include <pwd.h> on native Windows.
47365         (WINDOWS32): New macro.
47366         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47367
47368 2008-09-13  Bruno Haible  <bruno@clisp.org>
47369
47370         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47371         (ETIMEDOUT): Remove macro.
47372         (glthread_cond_timedwait_multithreaded): New declaration.
47373         (glthread_cond_timedwait): Use it.
47374         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47375         (glthread_cond_timedwait_multithreaded): New function.
47376
47377 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47378
47379         * modules/poll-tests: Do not check for io.h.
47380         * tests/test-poll.c: Check for __MSVCRT__ instead.
47381
47382 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47383
47384         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47385         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47386         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47387
47388 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47389
47390         * modules/poll-tests: New.
47391         * tests/test-poll.c: New.
47392
47393 2008-09-12  Eric Blake  <ebb9@byu.net>
47394
47395         frexp: test for NetBSD failure on -0.0
47396         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47397         not all, bugs from NetBSD 3.0 have been fixed.
47398         * doc/posix-functions/frexp.texi (frexp): Document bug.
47399         Reported by Thomas Klausner.
47400
47401         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47402         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47403         literal -0.0.
47404         Reported by Jonathan C. Patschke <jp@centtech.com>.
47405
47406 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47407
47408         * lib/glthread/cond.h: Use dummy implementation also if
47409         USE_WIN32_THREADS.
47410
47411 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47412
47413         * modules/fnmatch-posix (License): Change to LGPLv2+.
47414         * modules/fnmatch-gnu (License): Likewise.
47415
47416 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47417
47418         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47419
47420 2008-09-11  Jim Meyering  <meyering@redhat.com>
47421
47422         * users.txt: Add gtk-vnc.
47423
47424 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47425
47426         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47427         rotate amounts.
47428
47429         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47430         required for 16-bit and 8-bit rotates.
47431         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47432         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47433         UINT8_MAX instead of hard-coded constants.
47434         Suggested by Paul Eggert.
47435
47436 2008-09-07  Bruno Haible  <bruno@clisp.org>
47437
47438         * tests/test-striconveh.c (main): Check behaviour when converting from
47439         UTF-7.
47440
47441         Make striconveh work better with stateful encodings.
47442         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47443         that iconv does not increment the inptr when returning -1/EINVAL.
47444
47445 2008-09-07  Bruno Haible  <bruno@clisp.org>
47446
47447         * build-aux/config.rpath: Update according to libtool-2.2.6.
47448         * build-aux/config.libpath: Likewise.
47449
47450 2008-09-06  Bruno Haible  <bruno@clisp.org>
47451
47452         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47453         * lib/freadptr.c (freadptr): Likewise.
47454         * lib/freadseek.c (freadptrinc): Likewise.
47455         Reported by Simon Josefsson.
47456
47457 2008-09-06  Bruno Haible  <bruno@clisp.org>
47458
47459         * modules/freadptr (License): Change to LGPLv2+.
47460         * modules/freadseek (License): Likewise.
47461         Suggested by Eric Blake.
47462
47463         * modules/memchr2 (License): Change to LGPLv2+.
47464         Approved by Eric Blake.
47465
47466 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47467             Bruno Haible  <bruno@clisp.org>
47468
47469         Make gnulib-tool work with native 'sed' on AIX.
47470         * gnulib-tool (sed_noop): New variable.
47471         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47472         func_add_or_update, func_create_testdir): Use it to initialize sed
47473         script variables.
47474         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47475
47476 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47477             Bruno Haible  <bruno@clisp.org>
47478
47479         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47480         also works after #include directives.
47481
47482 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47483
47484         getdate.y: reject an out-of-range timezone value
47485         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47486         the range [-24...+24].  When specified with only one or two digits,
47487         * tests/test-getdate.c: Tests for the fix.
47488         * doc/getdate.texi: Document this change.
47489
47490 2008-09-03  Bruno Haible  <bruno@clisp.org>
47491
47492         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47493
47494 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47495
47496         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47497         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47498         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47499         Blake <ebb9@byu.net>.
47500
47501         * tests/test-bitrotate.c: Add more test vectors.
47502
47503 2008-09-02  Eric Blake  <ebb9@byu.net>
47504
47505         vasnprintf-posix: handle large precision via %.*d
47506         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47507         when handling it ourselves.
47508         * tests/test-vasnprintf-posix.c (test_function): Add test.
47509         * tests/test-snprintf-posix.h (test_function): Likewise.
47510         * tests/test-sprintf-posix.h (test_function): Likewise.
47511         * tests/test-vasprintf-posix.c (test_function): Likewise.
47512         Reported by Alain Guibert.
47513
47514 2008-09-01  Eric Blake  <ebb9@byu.net>
47515
47516         c-stack: make configure-time check more robust
47517         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47518         successful sigaction call.
47519         Reported by Tom G. Christensen.
47520
47521 2008-09-01  Bruno Haible  <bruno@clisp.org>
47522
47523         New module 'findprog-lgpl'.
47524         * modules/findprog-lgpl: New file.
47525         * lib/findprog-lgpl.c: New file.
47526         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47527         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47528         to decide whether to use strdup or xstrdup, concatenated_filename or
47529         xconcatenated_filename.
47530
47531 2008-09-01  Bruno Haible  <bruno@clisp.org>
47532
47533         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47534         'xconcat-filename' (GPL).
47535         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47536         (License): Change to LGPLv2+.
47537         * modules/xconcat-filename: New file.
47538         * lib/concat-filename.h (concatenated_filename): Change specification.
47539         (xconcatenated_filename): New declaration.
47540         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47541         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47542         memory situations.
47543         * lib/xconcat-filename.c: New file.
47544         * NEWS: Mention the change.
47545         * lib/findprog.c: Include concat-filename.h, not filename.h.
47546         (find_in_path): Use xconcatenated_filename instead of
47547         concatenated_filename.
47548         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47549         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47550         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47551         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47552         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47553         instead of concatenated_filename.
47554         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47555         (execute_java_class): Use xconcatenated_filename instead of
47556         concatenated_filename.
47557         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47558         * modules/javacomp (Depends-on): Likewise.
47559         * modules/javaexec (Depends-on): Likewise.
47560
47561 2008-09-01  Bruno Haible  <bruno@clisp.org>
47562
47563         Split module 'filename' into 'filename' and 'concat-filename'.
47564         * modules/filename: Keep only lib/filename.h.
47565         (License): Change to LGPLv2+.
47566         * modules/concat-filename: New file, extracted from modules/filename.
47567         * lib/filename.h (concatenated_filename): Remove declaration.
47568         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47569         * lib/concat-filename.c: Include concat-filename.h.
47570         * NEWS: Mention the change.
47571
47572 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47573
47574         * lib/bitrotate.h (rotl8, rotr8): Add.
47575
47576         * modules/bitrotate (configure.ac): Need
47577         AC_REQUIRE([AC_C_INLINE]).
47578         (Description): Mention stdint.h.  Reported by Bruno Haible
47579         <bruno@clisp.org>.
47580
47581         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47582         Paolo Bonzini <bonzini@gnu.org>.
47583
47584 2008-08-31  Bruno Haible  <bruno@clisp.org>
47585
47586         Assume Solaris specific bi-arch conventions on Solaris systems.
47587         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47588         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47589         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47590         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47591         like acl_libdirstem.
47592         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47593         acl_libdirstem.
47594         * NEWS: Mention the change.
47595         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47596
47597 2008-08-31  Jim Meyering  <meyering@redhat.com>
47598
47599         * lib/strftime.h: Add comments describing the two added arguments.
47600
47601         remove duplicate #include directives
47602         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47603         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47604
47605 2008-08-31  Bruno Haible  <bruno@clisp.org>
47606
47607         New module 'sigpipe-die'.
47608         * modules/sigpipe-die: New file.
47609         * lib/sigpipe-die.h: New file.
47610         * lib/sigpipe-die.c: New file.
47611         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47612
47613 2008-08-31  Bruno Haible  <bruno@clisp.org>
47614
47615         Don't override previously installed signal handlers.
47616         * lib/fatal-signal.c (saved_sigactions): New variable.
47617         (uninstall_handlers): Reset the signal to the saved handler, not
47618         to SIG_DFL (except when ignored).
47619         (install_handlers): Save the previous handlers.
47620
47621 2008-08-30  Bruno Haible  <bruno@clisp.org>
47622
47623         * gnulib-tool (func_reset_sigpipe): New function.
47624         (func_get_automake_snippet, func_modules_transitive_closure,
47625         func_import): Invoke it before a join command that reads from stdin,
47626         to avoid "echo: write error: Broken pipe" error messages on stderr.
47627         Reported by Sam Steingold <sds@gnu.org>.
47628
47629 2008-08-30  Bruno Haible  <bruno@clisp.org>
47630
47631         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47632         Code copied from m4/open.m4.
47633         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47634         access and the filename ends in a slash. Code copied from lib/open.c.
47635         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47636         * tests/test-fopen.c (main): Check against bug with trailing slash.
47637
47638 2008-08-29  Bruno Haible  <bruno@clisp.org>
47639
47640         Avoid some "gcc -pedantic" warnings.
47641         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47642         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47643         * lib/dirent.in.h: Likewise.
47644         * lib/fcntl.in.h: Likewise.
47645         * lib/float.in.h: Likewise.
47646         * lib/iconv.in.h: Likewise.
47647         * lib/inttypes.in.h: Likewise.
47648         * lib/locale.in.h: Likewise.
47649         * lib/math.in.h: Likewise.
47650         * lib/netinet_in.in.h: Likewise.
47651         * lib/search.in.h: Likewise.
47652         * lib/signal.in.h: Likewise.
47653         * lib/stdarg.in.h: Likewise.
47654         * lib/stdint.in.h: Likewise.
47655         * lib/stdio.in.h: Likewise.
47656         * lib/stdlib.in.h: Likewise.
47657         * lib/string.in.h: Likewise.
47658         * lib/strings.in.h: Likewise.
47659         * lib/sys_select.in.h: Likewise.
47660         * lib/sys_socket.in.h: Likewise.
47661         * lib/sys_stat.in.h: Likewise.
47662         * lib/sys_time.in.h: Likewise.
47663         * lib/sysexits.in.h: Likewise.
47664         * lib/time.in.h: Likewise.
47665         * lib/unistd.in.h: Likewise.
47666         * lib/wchar.in.h: Likewise.
47667         * lib/wctype.in.h: Likewise.
47668         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47669         * modules/fchdir (Makefile.am): Likewise.
47670         * modules/fcntl (Makefile.am): Likewise.
47671         * modules/float (Makefile.am): Likewise.
47672         * modules/iconv_open (Makefile.am): Likewise.
47673         * modules/inttypes (Makefile.am): Likewise.
47674         * modules/locale (Makefile.am): Likewise.
47675         * modules/math (Makefile.am): Likewise.
47676         * modules/netinet_in (Makefile.am): Likewise.
47677         * modules/search (Makefile.am): Likewise.
47678         * modules/signal (Makefile.am): Likewise.
47679         * modules/stdarg (Makefile.am): Likewise.
47680         * modules/stdint (Makefile.am): Likewise.
47681         * modules/stdio (Makefile.am): Likewise.
47682         * modules/stdlib (Makefile.am): Likewise.
47683         * modules/string (Makefile.am): Likewise.
47684         * modules/strings (Makefile.am): Likewise.
47685         * modules/sys_select (Makefile.am): Likewise.
47686         * modules/sys_socket (Makefile.am): Likewise.
47687         * modules/sys_stat (Makefile.am): Likewise.
47688         * modules/sys_time (Makefile.am): Likewise.
47689         * modules/sysexits (Makefile.am): Likewise.
47690         * modules/time (Makefile.am): Likewise.
47691         * modules/unistd (Makefile.am): Likewise.
47692         * modules/wchar (Makefile.am): Likewise.
47693         * modules/wctype (Makefile.am): Likewise.
47694         Reported by Reuben Thomas <rrt@sc3d.org>.
47695
47696 2008-08-29  Bruno Haible  <bruno@clisp.org>
47697
47698         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47699         any more.
47700
47701 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47702
47703         * MODULES.html.sh (Misc): Add bitrotate.
47704
47705         * modules/bitrotate: New file.
47706
47707         * lib/bitrotate.h: New file.
47708
47709         * modules/bitrotate-tests: New file.
47710
47711         * tests/test-bitrotate.c: New file.
47712
47713         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47714         on the bitrotate module.
47715
47716         * lib/arctwo.c: Use new bitrotate module.
47717
47718 2008-08-29  Jim Meyering  <meyering@redhat.com>
47719
47720         bootstrap: merge changes from coreutils
47721         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47722         of copied files.  Remove a kludge, now that this is fixed.
47723         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47724         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47725         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47726
47727 2008-08-29  Bruno Haible  <bruno@clisp.org>
47728
47729         * MODULES.html.sh: Remove --cvs-urls option.
47730
47731 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47732
47733         maint.mk: adjust to file name change
47734         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47735
47736 2008-08-28  Jim Meyering  <meyering@redhat.com>
47737
47738         * modules/getndelim2 (License): Relicense to LGPLv2+.
47739         Approved by Richard Stallman for the version of 1995, and by
47740         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47741
47742 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47743
47744         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47745         dummy if one is not available.  Do not touch them if
47746         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47747         (getc_maybe_unlocked): New.
47748         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47749
47750 2008-08-26  Eric Blake  <ebb9@byu.net>
47751
47752         doc/INSTALL: resync from autoconf
47753         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47754         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47755         moving...
47756         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47757         * INSTALL: Regenerate.
47758         * INSTALL.ISO: New file.
47759         * INSTALL.UTF-8: Likewise.
47760
47761 2008-08-26  Jim Meyering  <meyering@redhat.com>
47762
47763         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47764         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47765         these definitions conditional, so that they may be overridden, too.
47766
47767 2008-08-26  Bruno Haible  <bruno@clisp.org>
47768
47769         Generate INSTALL file variants with prettier quotes.
47770         * doc/Makefile (INSTALL_PRELUDE): New macro.
47771         (INSTALL): Use it.
47772         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47773
47774 2008-08-26  Bruno Haible  <bruno@clisp.org>
47775
47776         Run makeinfo in an English locale.
47777         * doc/Makefile (MAKEINFO): New variable.
47778
47779 2008-08-26  Bruno Haible  <bruno@clisp.org>
47780
47781         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47782         Suggested by Eric Blake.
47783
47784 2008-08-25  Bruno Haible  <bruno@clisp.org>
47785
47786         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47787
47788 2008-08-25  Eric Blake  <ebb9@byu.net>
47789
47790         c-stack: test that stack overflow can be caught
47791         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47792         that platform allows handling stack overflow; at least OS/2 EMX
47793         has sigaltstack, but crashes before transferring control to
47794         handler on stack overflow.
47795         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47796         check for HAVE_STACK_OVERFLOW_HANDLING.
47797         Reported by Elbert Pol.
47798
47799 2008-08-25  Bruno Haible  <bruno@clisp.org>
47800
47801         * doc/posix-functions/strftime.texi: Fix description of strftime
47802         module.
47803
47804 2008-08-24  Bruno Haible  <bruno@clisp.org>
47805
47806         * tests/uniwidth/test-uc_width2.c: New file.
47807         * tests/uniwidth/test-uc_width2.sh: New file.
47808         * modules/uniwidth/width-tests (Files): Add the new files.
47809         (TESTS): Add uniwidth/test-uc_width2.sh.
47810         (TESTS_ENVIRONMENT): New variable.
47811         (check_PROGRAMS): Add test-uc_width2.
47812         (test_uc_width2_SOURCES): New variable.
47813
47814         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47815         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47816         not 0x00AB.
47817         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47818
47819 2008-08-22  Eric Blake  <ebb9@byu.net>
47820
47821         test-lock, test-tls: mention why a test is skipped
47822         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47823         skipped.
47824         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47825
47826         count-one-bits: relax license
47827         * modules/count-one-bits (License): Relicense to LGPLv2+.
47828         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47829
47830 2008-08-22  Andreas Schwab  <schwab@suse.de>
47831
47832         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47833         Remove spurious space in assignment.
47834
47835 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47836
47837         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47838         Paul Eggert <eggert@CS.UCLA.EDU>.
47839
47840 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47841
47842         * modules/gettext: Add m4/threadlib.m4.
47843
47844 2008-08-19  Eric Blake  <ebb9@byu.net>
47845
47846         test-c-stack: fix compilation failure on FreeBSD 5.0
47847         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47848         headers before <sys/resource.h>.
47849         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47850         the bug.
47851         Reported by Nelson H. F. Beebe.
47852
47853         strverscmp: migrate from "strverscmp.h" to <string.h>
47854         * modules/string (Makefile.am): Add new hooks.
47855         * modules/strverscmp (Files): Remove strverscmp.h.
47856         (Depends-on): Add string.
47857         (configure.ac): Add indicator.
47858         (Include): Mention new header.
47859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47860         defaults.
47861         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47862         results.
47863         * lib/strverscmp.h: Delete.
47864         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47865         * tests/test-strverscmp.c (includes): Adjust client.
47866         * lib/check-version.c (includes): Likewise.
47867         * NEWS: Document the change.
47868
47869         strverscmp: add unit test
47870         * modules/strverscmp-tests: New file.
47871         * tests/test-strverscmp.c: Likewise.
47872
47873 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47874
47875         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47876         regarding Windows crypto stuff, from Mono.
47877
47878 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47879
47880         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47881         if present, for intel RND.  Return error on failures.
47882
47883 2008-08-18  Ben Pfaff  <blp@gnu.org>
47884
47885         gitlog-to-changelog: give better diagnostic for failed pipe-open
47886         * build-aux/gitlog-to-changelog: Improve error message: suggest
47887         that the version of Git may be too old.
47888
47889 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47890
47891         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47892         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47893
47894 2008-08-18  Bruno Haible  <bruno@clisp.org>
47895
47896         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47897         pthread_in_use().
47898
47899 2008-08-18  Bruno Haible  <bruno@clisp.org>
47900
47901         * lib/glthread/threadlib.c: Include <pthread.h>.
47902
47903 2008-08-18  Bruno Haible  <bruno@clisp.org>
47904
47905         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47906         glthread_recursive_lock_* macros.
47907         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47908         Fix syntax error.
47909
47910 2008-08-18  Bruno Haible  <bruno@clisp.org>
47911
47912         * lib/glthread/thread.c: Avoid forcing a context switch right after
47913         thread creation.
47914
47915 2008-08-17  Bruno Haible  <bruno@clisp.org>
47916
47917         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47918         * lib/glthread/thread.h: Provide Win32 specific implementation.
47919         * modules/thread (Files): Add lib/glthread/thread.c.
47920         (Depends-on): Add lock.
47921         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47922
47923 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47924
47925         New module 'yield'.
47926         * modules/yield: New file.
47927         * lib/glthread/yield.h: New file.
47928         * m4/yield.m4: New file.
47929         * MODULES.html.sh (Multithreading): Add yield.
47930
47931 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47932
47933         New module 'thread'.
47934         * modules/thread: New file.
47935         * lib/glthread/thread.h: New file.
47936         * m4/thread.m4: New file.
47937         * MODULES.html.sh (Multithreading): Add thread.
47938
47939 2008-08-17  Bruno Haible  <bruno@clisp.org>
47940
47941         * lib/glthread/lock.h: Include <stdlib.h> always.
47942         * lib/glthread/tls.h: Likewise.
47943         * lib/glthread/cond.h: Likewise.
47944
47945 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47946
47947         New module 'cond'.
47948         * modules/cond: New file.
47949         * lib/glthread/cond.h: New file.
47950         * lib/glthread/cond.c: New file.
47951         * m4/cond.m4: New file.
47952         * MODULES.html.sh (Multithreading): Add cond.
47953
47954 2008-08-16  Eric Blake  <ebb9@byu.net>
47955
47956         c-stack: fix regression on Irix 5.3 from 2008-06-21
47957         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47958         sa_sigaction...
47959         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47960         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47961         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47962         * modules/signal (Makefile.am): Use the value.
47963         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47964         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47965         * doc/posix-headers/signal.texi (signal.h): Document this
47966         portability issue.
47967         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47968         Reported by Tom G. Christensen.
47969
47970 2008-08-17  Bruno Haible  <bruno@clisp.org>
47971
47972         New module 'threadlib'.
47973         * modules/threadlib: New file.
47974         * lib/glthread/threadlib.c: New file, extracted from
47975         lib/glthread/lock.c.
47976         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47977         functions.
47978         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47979         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47980         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47981         macros.
47982         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47983         (gl_DISABLE_THREADS): Remove macro.
47984         * modules/lock (Files): Remove build-aux/config.rpath.
47985         (Depends-on): Remove havelib. Add threadlib.
47986         (configure.ac-early): Remove section.
47987         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47988         * modules/tls (Depends-on): Remove lock. Add threadlib.
47989         (Link): New section, copied from threadlib.
47990         * MODULES.html.sh (Multithreading): Add threadlib.
47991
47992 2008-08-14  Bruno Haible  <bruno@clisp.org>
47993
47994         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47995         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47996         glthread_rwlock_unlock, glthread_rwlock_destroy,
47997         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47998         glthread_recursive_lock_destroy): Define as macros always.
47999         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48000         glthread_lock_lock.
48001         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48002         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48003         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48004         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48005         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48006         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48007         (glthread_recursive_lock_lock_func): Renamed from
48008         glthread_recursive_lock_lock.
48009         (glthread_recursive_lock_unlock_func): Renamed from
48010         glthread_recursive_lock_unlock.
48011         (glthread_recursive_lock_destroy_func): Renamed from
48012         glthread_recursive_lock_destroy.
48013
48014 2008-08-14  Bruno Haible  <bruno@clisp.org>
48015
48016         * lib/glthread/lock.h: Renamed from lib/lock.h.
48017         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48018         * lib/glthread/tls.h: Renamed from lib/tls.h.
48019         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48020         * lib/fstrcmp.c: Update includes.
48021         * lib/strsignal.c: Update includes.
48022         * modules/lock (Files, Makefile.am): Update.
48023         (Include): Change to "glthread/lock.h".
48024         * modules/tls (Files, Makefile.am): Update.
48025         (Include): Change to "glthread/tls.h".
48026         * tests/test-lock.c: Update includes.
48027         * tests/test-tls.c: Update includes.
48028         * NEWS: Mention the renamed header files.
48029
48030 2008-08-11  Jim Meyering  <meyering@redhat.com>
48031
48032         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48033
48034 2008-08-11  Eric Blake  <ebb9@byu.net>
48035
48036         test-c-stack: avoid C99-ism
48037         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48038         before statement.
48039         Reported by Alain Guibert.
48040
48041 2008-08-10  Jim Meyering  <meyering@redhat.com>
48042
48043         ensure that return value of uinttostr et al are not ignored
48044         * lib/inttostr.h (__GNUC_PREREQ): Define.
48045         (__attribute_warn_unused_result__): Define.
48046         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48047
48048 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48049
48050         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48051         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48052
48053 2008-08-07  Jim Meyering  <meyering@redhat.com>
48054
48055         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48056
48057         * modules/mkstemp (License): Relicense under LGPLv2+.
48058         * modules/tempname (License): Likewise.
48059
48060 2008-08-06  Bruno Haible  <bruno@clisp.org>
48061
48062         * lib/poll.c (poll): Further micro-optimization.
48063
48064 2008-08-06  Jim Meyering  <meyering@redhat.com>
48065
48066         inet_pton.c: use locale-independent tolower
48067         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48068         (inet_pton6): Use c_tolower rather than tolower.
48069         * modules/inet_pton (Depends-on): Add c-ctype.
48070
48071 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48072
48073         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48074         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48075
48076 2008-08-06  Jim Meyering  <meyering@redhat.com>
48077
48078         * modules/inet_pton (License): Relicense under LGPLv2+.
48079
48080 2008-08-03  Bruno Haible  <bruno@clisp.org>
48081
48082         Additional non-aborting API for lock and tls.
48083         * lib/lock.h: Include <errno.h>.
48084         (glthread_lock_init): New macro/function.
48085         (gl_lock_init): Define as wrapper around glthread_lock_init.
48086         (glthread_lock_lock): New macro/function.
48087         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48088         (glthread_lock_unlock): New macro/function.
48089         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48090         (glthread_lock_destroy): New macro/function.
48091         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48092         (glthread_rwlock_init): New macro/function.
48093         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48094         (glthread_rwlock_rdlock): New macro/function.
48095         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48096         (glthread_rwlock_wrlock): New macro/function.
48097         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48098         (glthread_rwlock_unlock): New macro/function.
48099         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48100         (glthread_rwlock_destroy): New macro/function.
48101         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48102         (glthread_recursive_lock_init): New macro/function.
48103         (gl_recursive_lock_init): Define as wrapper around
48104         glthread_recursive_lock_init.
48105         (glthread_recursive_lock_lock): New macro/function.
48106         (gl_recursive_lock_lock): Define as wrapper around
48107         glthread_recursive_lock_lock.
48108         (glthread_recursive_lock_unlock): New macro/function.
48109         (gl_recursive_lock_unlock): Define as wrapper around
48110         glthread_recursive_lock_unlock.
48111         (glthread_recursive_lock_destroy): New macro/function.
48112         (gl_recursive_lock_destroy): Define as wrapper around
48113         glthread_recursive_lock_destroy.
48114         (glthread_once): New macro/function.
48115         (gl_once): Define as wrapper around glthread_once.
48116         Update function declarations.
48117         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48118         glthread_rwlock_init. Return error code.
48119         (glthread_rwlock_rdlock_multithreaded): Renamed from
48120         glthread_rwlock_rdlock. Return error code.
48121         (glthread_rwlock_wrlock_multithreaded): Renamed from
48122         glthread_rwlock_wrlock. Return error code.
48123         (glthread_rwlock_unlock_multithreaded): Renamed from
48124         glthread_rwlock_unlock. Return error code.
48125         (glthread_rwlock_destroy_multithreaded): Renamed from
48126         glthread_rwlock_destroy. Return error code.
48127         (glthread_recursive_lock_init_multithreaded): Renamed from
48128         glthread_recursive_lock_init. Return error code.
48129         (glthread_recursive_lock_lock_multithreaded): Renamed from
48130         glthread_recursive_lock_lock. Return error code.
48131         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48132         glthread_recursive_lock_unlock. Return error code.
48133         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48134         glthread_recursive_lock_destroy. Return error code.
48135         (glthread_once_call): Make static.
48136         (glthread_once_multithreaded): Renamed from glthread_once.
48137         * lib/tls.h: Include <errno.h>.
48138         (glthread_tls_key_init): New macro/function.
48139         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48140         (glthread_tls_set): New macro/function.
48141         (gl_tls_set): Define as wrapper around glthread_tls_set.
48142         (glthread_tls_key_destroy): New macro/function.
48143         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48144         Update function declarations.
48145         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48146         glthread_tls_get.
48147         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48148
48149 2008-08-04  Eric Blake  <ebb9@byu.net>
48150
48151         gnumakefile: use space, not TAB, outside of targets
48152         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48153
48154 2008-08-02  Jim Meyering  <meyering@redhat.com>
48155
48156         getdate.y: avoid locale-dependent date parsing failure
48157         In Turkish locales, getdate would fail to recognize keywords
48158         containing a lowercase "i".  The solution is not to rely on
48159         locale-sensitive case-conversion.
48160         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48161         (lookup_word): Use c_toupper in place of toupper.
48162         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48163         Reported by Vefa Bicakci <bicave@superonline.com> in
48164         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48165         * modules/getdate (Depends-on): Add c-ctype.
48166
48167 2008-08-02  Bruno Haible  <bruno@clisp.org>
48168
48169         * gnulib-tool (func_import): When updating or creating a .gitignore
48170         file, prepend each added line with a slash, and ignore leading slashes
48171         from the existing lines.
48172         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48173
48174 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48175
48176         Portability fix for GNU make 3.79.1.
48177         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48178         versions do not understand.
48179
48180 2008-08-01  Bruno Haible  <bruno@clisp.org>
48181
48182         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48183         * tests/test-isnanf.h (zero): New variable.
48184         (main): Avoid literal -0.0f.
48185         * tests/test-isnand.h (zero): New variable.
48186         (main): Avoid literal -0.0.
48187         * tests/test-isnanl.h (zero): New variable.
48188         (main): Avoid literal -0.0L.
48189         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48190         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48191         -0.0, -0.0L.
48192         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48193         (test_signbitd): Avoid literal -0.0.
48194         (test_signbitl): Avoid literal -0.0L.
48195         * tests/test-ceilf1.c (zero): New variable.
48196         (main): Avoid literal -0.0f.
48197         * tests/test-ceill.c (zero): New variable.
48198         (main): Avoid literal -0.0L.
48199         * tests/test-floorf1.c (zero): New variable.
48200         (main): Avoid literal -0.0f.
48201         * tests/test-floorl.c (zero): New variable.
48202         (main): Avoid literal -0.0L.
48203         * tests/test-roundf1.c (zero): New variable.
48204         (main): Avoid literal -0.0f.
48205         * tests/test-round1.c (zero): New variable.
48206         (main): Avoid literal -0.0.
48207         * tests/test-roundl.c (zero): New variable.
48208         (main): Avoid literal -0.0L.
48209         * tests/test-truncf1.c (zero): New variable.
48210         (main): Avoid literal -0.0f.
48211         * tests/test-trunc1.c (zero): New variable.
48212         (main): Avoid literal -0.0.
48213         * tests/test-truncl.c (zero): New variable.
48214         (main): Avoid literal -0.0L.
48215         * tests/test-frexp.c (zero): New variable.
48216         (main): Avoid literal -0.0.
48217         * tests/test-frexpl.c (zero): New variable.
48218         (main): Avoid literal -0.0L.
48219         * tests/test-ldexpl.c (zero): New variable.
48220         (main): Avoid literal -0.0L.
48221         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48222         (zerod, zerol): New variables.
48223         (test_function): Avoid literals -0.0, -0.0L.
48224         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48225         (zerod, zerol): New variables.
48226         (test_function): Avoid literals -0.0, -0.0L.
48227         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48228         (zerod, zerol): New variables.
48229         (test_function): Avoid literals -0.0, -0.0L.
48230         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48231         (zerod, zerol): New variables.
48232         (test_function): Avoid literals -0.0, -0.0L.
48233         * tests/test-strtod.c (zero): New variable.
48234         (main): Avoid literal -0.0.
48235         Reported by Jonathan C. Patschke <jp@centtech.com>.
48236
48237 2008-07-31  Jim Meyering  <meyering@redhat.com>
48238
48239         sha256.h: correct definition of SHA224_DIGEST_SIZE
48240         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48241         Reported by Paulie Pena IV <paulie4@gmail.com>.
48242         Define as 224 / 8, rather than as a literal.
48243         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48244         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48245         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48246
48247 2008-07-31  Bruno Haible  <bruno@clisp.org>
48248
48249         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48250         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48251         Reported by Jonathan Patschke <jp@centtech.com>.
48252
48253 2008-07-31  Bruno Haible  <bruno@clisp.org>
48254
48255         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48256         Reported by Paolo Bonzini <bonzini@gnu.org>.
48257
48258 2008-07-30  Eric Blake  <ebb9@byu.net>
48259
48260         test-strtod: allow compilation without -lm
48261         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48262         Reported by Dennis Clarke <blastwave@gmail.com>.
48263
48264 2008-07-28  Jim Meyering  <meyering@redhat.com>
48265
48266         bootstrap: work also when there are no .po files in po/
48267         * build-aux/bootstrap (update_po_files): Complete the change
48268         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48269
48270 2008-07-27  Jim Meyering  <meyering@redhat.com>
48271
48272         * users.txt: Add zile.
48273
48274 2008-07-26  Ben Pfaff  <blp@gnu.org>
48275
48276         Add missing dependencies on new m4/exponent[fdl].m4 files.
48277         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48278         * modules/isnand-nolibm: Add m4/exponentd.m4.
48279         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48280         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48281         m4/isnan[fdl].m4, because the macros actually used moved.
48282         Reported by Jim Meyering.
48283
48284 2008-07-14  Ben Pfaff  <blp@gnu.org>
48285
48286         Add isinf module.
48287         * lib/isinf.c: New file.
48288         * lib/math.in.h: Define isinf macro if we have decided to replace
48289         it.
48290         * m4/isinf.m4: New file.
48291         * m4/math_h.m4: Initialize and substitute variables for isinf
48292         module.
48293         * modules/isinf: New file.
48294         * modules/isinf-tests: New file.
48295         * modules/math: Add substitutions for new module.
48296         * tests/test-isinf.c: New file.
48297         * doc/posix-functions/isinf.texi: Mention new module.
48298         * MODULES.html.sh: Mention new module.
48299
48300 2008-07-14  Ben Pfaff  <blp@gnu.org>
48301
48302         Factor out some macros for use by additional modules.
48303         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48304         exponentf.m4.
48305         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48306         exponentd.m4.
48307         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48308         file exponentl.m4.
48309         * m4/exponentf.m4: New file.
48310         * m4/exponentd.m4: New file.
48311         * m4/exponentl.m4: New file.
48312         * modules/isnanf: Use new file m4/exponentf.m4.
48313         * modules/isnand: Use new file m4/exponentd.m4.
48314         * modules/isnanl: Use new file m4/exponentl.m4.
48315
48316 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48317
48318         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48319         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48320         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48321         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48322
48323         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48324         readlink on platforms without PATH_MAX.
48325
48326 2008-07-21  Eric Blake  <ebb9@byu.net>
48327
48328         Warn, not fail, on stale version.
48329         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48330
48331         Don't allow installation with stale devel version number.
48332         * top/GNUmakefile (_is-install-target): New macro.
48333         (_curr-ver): Forbid installation with stale version number.
48334
48335 2008-07-20  Bruno Haible  <bruno@clisp.org>
48336
48337         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48338         TESTS_ENVIRONMENT.
48339         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48340
48341 2008-07-20  Bruno Haible  <bruno@clisp.org>
48342
48343         * lib/c-stack.h (c_stack_action): Add documentation.
48344         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48345
48346 2008-07-20  Bruno Haible  <bruno@clisp.org>
48347
48348         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48349         * modules/readlink (License): Likewise.
48350
48351 2008-07-17  Eric Blake  <ebb9@byu.net>
48352
48353         * modules/c-stack (Link): Fix typo.
48354
48355         Make c-stack use libsigsegv, when available.
48356         * modules/c-stack (Depends-on): Add libsigsegv.
48357         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48358         needed.
48359         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48360         (segv_handler, overflow_handler, c_stack_action)
48361         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48362         implementation when libsigsegv is available, but only when using
48363         the library is necessary.
48364         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48365         comment, explaining why XSI check fails on Linux.
48366         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48367         * tests/test-c-stack2.sh: Tweak skip message.
48368         * NEWS: Document new link-time requirements.
48369
48370 2008-07-16  Eric Blake  <ebb9@byu.net>
48371
48372         c-stack: Expose false positives when not using libsigsegv.
48373         * modules/c-stack-tests (Files): Expand test.
48374         * tests/test-c-stack.c (main): Add means to conditionally trigger
48375         non-overflow SIGSEGV.
48376         * tests/test-c-stack2.sh: New file.
48377
48378 2008-07-14  Bruno Haible  <bruno@clisp.org>
48379
48380         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48381         Reported by Eric Blake.
48382
48383 2008-07-14  Sam Steingold  <sds@gnu.org>
48384             Bruno Haible  <bruno@clisp.org>
48385
48386         New module libsigsegv.
48387         * modules/libsigsegv: New file.
48388         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48389         modifications.
48390         * MODULES.html.sh (Signal handling): New section.
48391
48392 2008-07-14  Bruno Haible  <bruno@clisp.org>
48393
48394         * modules/unictype/ctype-* (Description): Add the word "function".
48395         Improves the resulting doc in MODULES.html.
48396
48397 2008-07-12  Ben Pfaff  <blp@gnu.org>
48398
48399         Add longlong module.
48400         * modules/longlong: New file.
48401
48402 2008-07-12  Bruno Haible  <bruno@clisp.org>
48403
48404         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48405         to empty.
48406
48407 2008-07-10  Ben Pfaff  <blp@gnu.org>
48408
48409         Add isnan module.
48410         * doc/posix-functions/isnan.texi: Mention new module.
48411         * lib/math.in.h: Define isnan macro if we have decided to replace
48412         it.
48413         * m4/isnan.m4: New file.
48414         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48415         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48416         also.
48417         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48418         redundancy.
48419         * m4/math_h.m4: Initialize and substitute variables for isnan
48420         module.
48421         * modules/isnan: New file.
48422         * modules/isnan-tests: New file.
48423         * modules/math: Add substitutions for new module.
48424         * tests/test-isnan.c: New file.
48425         * MODULES.html.sh: Mention new module.
48426
48427 2008-07-10  Ben Pfaff  <blp@gnu.org>
48428
48429         Add isnanf module.
48430         * lib/isnanf.m4: New file.
48431         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48432         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48433         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48434         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48435         * modules/isnanf: New file.
48436         * modules/isnanf-tests: New file.
48437         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48438         files.
48439         * tests/test-isnanf-nolibm.c: factored most of its contents into
48440         new file tests/test-isnanf.h.
48441         * tests/test-isnanf.h: New file.
48442         * tests/test-isnanf.c: New file.
48443         * MODULES.html.sh: Mention new module.
48444         * doc/glibc-functions/isnanf.texi: Mention new module.
48445
48446 2008-07-10  Ben Pfaff  <blp@gnu.org>
48447
48448         Add isnand module.
48449         * lib/isnand.h: New file.
48450         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48451         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48452         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48453         functionality also.
48454         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48455         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48456         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48457         * modules/isnand: New file.
48458         * modules/isnand-tests: New file.
48459         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48460         files.
48461         * tests/test-isnand-nolibm.c: factored most of its contents into
48462         new file tests/test-isnand.h.
48463         * tests/test-isnand.h: New file.
48464         * tests/test-isnand.c: New file.
48465         * MODULES.html.sh: Mention new module.
48466
48467 2008-07-10  Ben Pfaff  <blp@gnu.org>
48468
48469         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48470         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48471         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48472         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48473         * modules/isnanf-nolibm: Update references to renamed files.
48474         * modules/isnand-nolibm: Likewise.
48475         * modules/isnanf-nolibm-tests: Likewise.
48476         * modules/isnand-nolibm-tests: Likewise.
48477         * lib/frexp.c: Likewise.
48478         * lib/isfinite.c: Likewise.
48479         * lib/signbitd.c: Likewise.
48480         * lib/signbitf.c: Likewise.
48481         * lib/vasnprintf.c: Likewise.
48482         * tests/test-ceilf1.c: Likewise.
48483         * tests/test-ceilf2.c: Likewise.
48484         * tests/test-floorf1.c: Likewise.
48485         * tests/test-floorf2.c: Likewise.
48486         * tests/test-frexp.c: Likewise.
48487         * tests/test-round1.c: Likewise.
48488         * tests/test-round2.c: Likewise.
48489         * tests/test-roundf1.c: Likewise.
48490         * tests/test-strtod.c: Likewise.
48491         * tests/test-trunc1.c: Likewise.
48492         * tests/test-trunc2.c: Likewise.
48493         * tests/test-truncf1.c: Likewise.
48494         * tests/test-truncf2.c: Likewise.
48495         * NEWS: Mention the renamed header files.
48496
48497 2008-07-11  Jim Meyering  <meyering@redhat.com>
48498
48499         vc-list-files: make the last-resort awk code more portable
48500         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48501         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48502         does not support it.
48503
48504 2008-07-10  Eric Blake  <ebb9@byu.net>
48505
48506         Work with tar's bootstrap.
48507         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48508         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48509         an m4 comment.
48510
48511 2008-07-09  Jim Meyering  <meyering@redhat.com>
48512
48513         posix-shell.m4: fix typo that made this test malfunction
48514         * m4/posix-shell.m4: Remove capitalization in variable name.
48515
48516 2008-07-08  Bruno Haible  <bruno@clisp.org>
48517
48518         * m4/onceonly.m4: Update comments.
48519         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48520
48521 2008-07-04  Jim Meyering  <meyering@redhat.com>
48522
48523         * users.txt: Add vc-dwim.
48524         (bison, coreutils): Use the gitweb URL.
48525
48526 2008-07-03  Jim Meyering  <meyering@redhat.com>
48527
48528         * users.txt: Add libffcall.  From Sam Steingold.
48529
48530 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48531
48532         getdate.y: do not ignore TZ with relative day, month or year offset
48533         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48534         relative-date-handling, since otherwise, the latter would clobber the
48535         sole output (an updated Start value) of the tz-handling block.
48536         * tests/test-getdate.c: Tests for the fix
48537
48538 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48539
48540         Recognize 'foo_LIBRARIES += libgnu.a'.
48541         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48542         makefile snippet has already specified an installation location,
48543         also using '+='.
48544
48545 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48546
48547         getdate.y: factor out common actions
48548         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48549         Use them in place of open-coded actions.
48550
48551 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48552
48553         Add self-test for getdate module.
48554         * modules/getdate-tests: New file.
48555         * tests/test-getdate.c: New file.
48556
48557 2008-06-29  Bruno Haible  <bruno@clisp.org>
48558
48559         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48560         .gitignore.
48561         Reported by Sylvain Beucler <beuc@beuc.net>.
48562
48563 2008-06-29  Bruno Haible  <bruno@clisp.org>
48564
48565         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48566         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48567
48568 2008-06-29  Bruno Haible  <bruno@clisp.org>
48569
48570         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48571         EXTRA_DIST.
48572         Reported by Sylvain Beucler <beuc@beuc.net>.
48573
48574 2008-06-26  Jim Meyering  <meyering@redhat.com>
48575
48576         make several modules depend on the "open" module
48577         This provides slightly increased consistency when opening-for-write
48578         the name of a non-directory spelled with a trailing slash.
48579         * modules/chdir-safer: Likewise.
48580         * modules/chown: Likewise.
48581         * modules/clean-temp: Likewise.
48582         * modules/copy-file: Likewise.
48583         * modules/fchdir: Likewise.
48584         * modules/fcntl-safer: Likewise.
48585         * modules/pipe: Likewise.
48586         * modules/utime: Likewise.
48587         Prompted by Eric Blake and Bruno Haible.
48588
48589 2008-06-24  Andreas Schwab  <schwab@suse.de>
48590
48591         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48592         literals can be used as initializers for global variables.
48593
48594 2008-06-23  Eric Blake  <ebb9@byu.net>
48595
48596         Make gnulib-cache.m4 easier to diff.
48597         * gnulib-tool (func_import): Allow newlines when reading cached
48598         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48599
48600 2008-06-23  Bruno Haible  <bruno@clisp.org>
48601
48602         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48603         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48604         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48605         m4/signalblocking.m4.
48606         (gl_PREREQ_SIGACTION): Don't invoke it.
48607         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48608         gl_PREREQ_SIG_HANDLER_H.
48609         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48610         Don't check for sigaction here.
48611
48612 2008-06-23  Bruno Haible  <bruno@clisp.org>
48613
48614         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48615         (install_handlers): Don't set the SA_RESETHAND flag.
48616
48617 2008-06-23  Bruno Haible  <bruno@clisp.org>
48618
48619         * m4/sigaction.m4: Comment fixes.
48620         * lib/signal.in.h: Likewise.
48621
48622 2008-06-23  Eric Blake  <ebb9@byu.net>
48623
48624         Fix typo.
48625         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48626
48627         Avoid SA_ namespace.
48628         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48629         Reported by Ralf Wildenhues.
48630
48631         Avoid test failure due to SA_RESTORER.
48632         * tests/test-sigaction.c (SA_MASK): New macro.
48633         (main): Avoid failing due to extension flags being set.
48634         Reported by Jim Meyering.
48635
48636         Revert use of sig-handler.h in sigprocmask.c.
48637         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48638         it requires the existence of struct sigaction.
48639         * lib/sigprocmask.c (handler_t): Restore typedef.
48640         (rpl_signal, old_handlers): Use local type.
48641
48642 2008-06-22  Bruno Haible  <bruno@clisp.org>
48643
48644         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48645         conditionally.
48646         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48647
48648 2008-06-22  Bruno Haible  <bruno@clisp.org>
48649
48650         * doc/posix-functions/siginterrupt.texi: Move note.
48651
48652         * lib/signal.in.h (SA_RESTART): New macro.
48653         * lib/sigaction.c: Update comment.
48654
48655         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48656
48657         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48658         (gl_PREREQ_SIGPROCMASK): Invoke it.
48659         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48660
48661         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48662
48663         * lib/sigprocmask.c: Update a comment.
48664
48665 2008-06-21  Eric Blake  <ebb9@byu.net>
48666
48667         Use sigaction module rather than signal().
48668         * modules/c-stack (Depends-on): Add sigaction.
48669         * modules/fatal-signal (Depends-on): Likewise.
48670         * modules/nanosleep (Depends-on): Likewise.
48671         * modules/sigprocmask (Files): Add sig-handler.h.
48672         * modules/sigaction (Files): Likewise.
48673         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48674         Eggert.
48675         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48676         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48677         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48678         (init_fatal_signals): Likewise.
48679         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48680         (siginterrupt): Delete fallback.
48681         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48682         instead.
48683         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48684         siginterrupt.
48685
48686         New module sigaction, for mingw.
48687         * modules/sigaction: New module...
48688         * modules/sigaction-tests: ...and its test.
48689         * m4/sigaction.m4: New file.
48690         * lib/sigaction.c: Likewise.
48691         * tests/test-sigaction.c: Likewise.
48692         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48693         * modules/signal (Makefile.am): Likewise.
48694         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48695         needed.
48696         * doc/posix-headers/signal.texi (signal.h): Mention provided
48697         types.
48698         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48699         that sigaction is preferable.
48700         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48701         module.
48702         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48703         sigaction.
48704
48705         Improve robustness of sigprocmask by overriding signal.
48706         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48707         is in use.
48708         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48709         (SIGKILL, SIGSTOP): Provide fallbacks.
48710         (rpl_signal): Implement.
48711         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48712         signal can be called inside handlers.
48713
48714         Fix nanosleep module on mingw.
48715         * modules/nanosleep (Depends-on): Add sys_select.
48716         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48717
48718         Fix licensing of sigprocmask.
48719         * modules/raise (License): Relicense as LGPL.
48720
48721 2008-06-21  Bruno Haible  <bruno@clisp.org>
48722
48723         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48724         result if it contains question marks.
48725         Reported by Michael Geng <linux@michaelgeng.de>.
48726
48727 2008-06-19  Bruno Haible  <bruno@clisp.org>
48728
48729         Fix CVS-ism.
48730         * doc/gnulib.texi: Include updated-stamp.texi.
48731         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48732         (updated-stamp.texi): New rule.
48733         (gnulib.info): Depend on it.
48734         * doc/.gitignore: Add updated-stamp.texi.
48735         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48736
48737 2008-06-19  Bruno Haible  <bruno@clisp.org>
48738
48739         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48740         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48741
48742 2008-06-19  Eric Blake  <ebb9@byu.net>
48743
48744         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48745         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48746         Reported by Stepan Kasal.
48747
48748 2008-06-18  Bruno Haible  <bruno@clisp.org>
48749
48750         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48751         Reported by Eric Blake.
48752
48753 2008-06-18  Eric Blake  <ebb9@byu.net>
48754
48755         Work around cygwin 1.5.25 strsignal bug.
48756         * tests/test-strsignal.c: Allow for const char *.
48757         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48758
48759 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48760
48761         * users.txt: Update URL to article and add author/date
48762         information.
48763
48764 2008-06-17  Bruno Haible  <bruno@clisp.org>
48765
48766         New macro gl_DISABLE_THREADS.
48767         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48768         if the user did not pass --enable-threads or --disable-threads option.
48769         (gl_DISABLE_THREADS): New macro.
48770         Reported by Eric Blake <ebb9@byu.net>.
48771
48772 2008-06-17  Bruno Haible  <bruno@clisp.org>
48773
48774         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48775         when the macro ignores it.
48776         Based on a patch by Eric Blake <ebb9@byu.net>.
48777
48778 2008-06-17  Bruno Haible  <bruno@clisp.org>
48779
48780         * modules/tls (License): Change to LGPLv2+.
48781         Reported by Eric Blake.
48782
48783 2008-06-17  Eric Blake  <ebb9@byu.net>
48784
48785         Simplify c-stack prerequisites.
48786         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48787         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48788         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48789         check.
48790         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48791         <sys/resource.h>.
48792
48793         Move c-stack test into testsuite.
48794         * modules/c-stack-tests: New file.
48795         * lib/c-stack.c [DEBUG]: Move test program...
48796         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48797         fail test if sigaltstack is lacking.
48798         * tests/test-c-stack.sh: New driver file.
48799
48800 2008-06-16  Eric Blake  <ebb9@byu.net>
48801
48802         Use raise module consistently.
48803         * modules/fatal-signal (Depends-on): Add raise.
48804         * modules/sigprocmask (Depends-on): Likewise.
48805         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48806         * lib/sigprocmask.c (sigprocmask): Likewise.
48807         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48808         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48809
48810         Fix compliance bug in sigpending.
48811         * lib/sigprocmask.c (sigpending): Return pending array via
48812         parameter, not return value.
48813
48814 2008-06-14  Eric Blake  <ebb9@byu.net>
48815
48816         Improve obstack-printf test code.
48817         * tests/test-obstack-printf.c (test_function): Fix comment, and
48818         simplify usage of obstack_* in macros.  Add a test for coverage.
48819         Reported by Bruno Haible.
48820
48821 2008-06-14  Bruno Haible  <bruno@clisp.org>
48822
48823         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48824         array size as a constant, not as a const variable.
48825         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48826         AC_USE_SYSTEM_EXTENSIONS.
48827         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48828         Test whether the obstack_printf function actually exists.
48829         * modules/obstack-printf (Depends-on): Add extensions.
48830         (Include): Remove obstack.h.
48831         * modules/obstack-printf-posix (Depends-on): Add extensions.
48832         (Include): Remove obstack.h.
48833
48834 2008-06-13  Eric Blake  <ebb9@byu.net>
48835
48836         Add obstack-printf and obstack-printf-posix modules.
48837         * modules/obstack-printf: New file.
48838         * modules/obstack-printf-posix: Likewise.
48839         * MODULES.html.sh (Misc): Mention them.
48840         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48841         Likewise.
48842         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48843         Likewise.
48844         * modules/stdio (Makefile.am): Accomodate new modules.
48845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48846         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48847         Declare.
48848         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48849         functions.
48850         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48851         (gl_REPLACE_OBSTACK_PRINTF): New macros
48852         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48853         * tests/test-obstack-printf.c: New file.
48854         * modules/obstack-printf-tests: Likewise.
48855         * modules/obstack-printf-posix-tests: Likewise.
48856
48857 2008-06-11  Bruno Haible  <bruno@clisp.org>
48858
48859         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48860         * lib/open.c: Include errno.h.
48861         (open): Fail when attempting to write to a file that has a trailing
48862         slash.
48863         * tests/test-open.c (main): Test against trailing slash bug.
48864         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48865
48866 2008-06-10  Bruno Haible  <bruno@clisp.org>
48867
48868         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48869         for $? to work inside the trap command, with various /bin/sh-s.
48870         * tests/test-vc-list-files-cvs.sh: Likewise.
48871
48872 2008-06-10  Bruno Haible  <bruno@clisp.org>
48873
48874         * lib/acl-internal.h: Don't include gettext.h here.
48875         * lib/set-mode-acl.c: Include gettext.h here.
48876         * lib/copy-acl.c: Likewise.
48877
48878 2008-06-10  Bruno Haible  <bruno@clisp.org>
48879
48880         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48881         * lib/wait-process.c (wait_subprocess): Likewise.
48882         * lib/execute.h (execute): Add termsigp argument.
48883         * lib/execute.c (execute): Likewise.
48884         * lib/csharpcomp.c (compile_csharp_using_pnet,
48885         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48886         * lib/csharpexec.c (execute_csharp_using_pnet,
48887         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48888         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48889         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48890         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48891         is_jikes_present): Update.
48892         * lib/javaexec.c (execute_java_class): Update.
48893         * lib/javaversion.c (execute_and_read_line): Update.
48894         * NEWS: Document the changes.
48895         Reported by Eric Blake.
48896
48897 2008-06-10  Eric Blake  <ebb9@byu.net>
48898
48899         Add missing include.
48900         * tests/test-strstr.c (includes): Add <signal.h>.
48901         * tests/test-strcasestr.c (includes): Likewise.
48902         * tests/test-memmem.c (includes): Likewise.
48903
48904 2008-06-10  Bruno Haible  <bruno@clisp.org>
48905
48906         * lib/wait-process.c (wait_subprocess): Add an assertion.
48907
48908 2008-06-10  Bruno Haible  <bruno@clisp.org>
48909
48910         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48911
48912 2008-06-10  Bruno Haible  <bruno@clisp.org>
48913
48914         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48915         using alarm().
48916         * tests/test-strcasestr.c (main): Likewise.
48917         * tests/test-strstr.c (main): Likewise.
48918
48919 2008-06-09  Bruno Haible  <bruno@clisp.org>
48920
48921         Work around the Solaris 10 ACE ACLs ABI change.
48922         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48923         declare if ACL_NO_TRIVIAL is present.
48924         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48925         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48926         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48927         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48928         define if ACL_NO_TRIVIAL is present.
48929         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48930         and use the current ABI.
48931         (file_has_acl): Use same #if condition as elsewhere.
48932         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48933         in use, and use the current ABI.
48934         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48935         Reported by Jim Meyering.
48936
48937 2008-06-09  Eric Blake  <ebb9@byu.net>
48938
48939         Work around environments that (stupidly) ignore SIGALRM.
48940         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48941         before using alarm().
48942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48943         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48944         Reported by Ian Beckwith <ianb@erislabs.net>.
48945
48946         Produce autobuild blurb earlier in log.
48947         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48948
48949 2008-06-09  Jim Meyering  <meyering@redhat.com>
48950         and OndÅ™ej Vašík  <ovasik@redhat.com>
48951
48952         utimens.c: correct kernel bug work-around
48953         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48954         failure, not success, and the kernel bug we're trying to work
48955         around affects not just the utimensat call, but also the fallback
48956         futimens call.
48957         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48958         not success.
48959         [HAVE_FUTIMENS]: Use the same work-around, here.
48960
48961 2008-06-09  Jim Meyering  <meyering@redhat.com>
48962
48963         add more guards around definition of ACE_-related code
48964         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48965         ALLOW and ACE_OWNER are also defined.
48966
48967 2008-06-08  Bruno Haible  <bruno@clisp.org>
48968
48969         * lib/acl-internal.h: Add me as co-author.
48970         * lib/file-has-acl.c: Likewise.
48971         * lib/set-mode-acl.c: Likewise.
48972         * lib/copy-acl.c: Likewise.
48973
48974 2008-06-08  Bruno Haible  <bruno@clisp.org>
48975
48976         Add support for AIX ACLs.
48977         * lib/acl-internal.h (acl_nontrivial): New declaration.
48978         * lib/file-has-acl.c (acl_nontrivial): New function.
48979         (file_has_acl): Add implementation using AIX 4 ACL API.
48980         * lib/set-mode-acl.c (qset_acl): Likewise.
48981         * lib/copy-acl.c (qcopy_acl): Likewise.
48982
48983 2008-06-08  Bruno Haible  <bruno@clisp.org>
48984
48985         Add support for HP-UX ACLs.
48986         * lib/acl-internal.h (acl_nontrivial): New declaration.
48987         * lib/file-has-acl.c (acl_nontrivial): New function.
48988         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48989         * lib/set-mode-acl.c (qset_acl): Likewise.
48990         * lib/copy-acl.c (qcopy_acl): Likewise.
48991
48992 2008-06-08  Bruno Haible  <bruno@clisp.org>
48993
48994         Add support for Cygwin ACLs.
48995         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48996         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48997         the chmod_or_fchmod call.
48998         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48999
49000 2008-06-08  Bruno Haible  <bruno@clisp.org>
49001
49002         Fix bug with setuid modes in Solaris 10+ code.
49003         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49004         succeeded, when the mode contains some special bits.
49005
49006 2008-06-08  Bruno Haible  <bruno@clisp.org>
49007
49008         Add support for Solaris 7..10 ACLs.
49009         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49010         declarations.
49011         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49012         functions.
49013         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49014         * lib/set-mode-acl.c (qset_acl): Likewise.
49015         * lib/copy-acl.c (qcopy_acl): Likewise.
49016
49017 2008-06-08  Bruno Haible  <bruno@clisp.org>
49018
49019         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49020         declaration.
49021         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49022         (acl_access_nontrivial): Remove MacOS X case.
49023         (file_has_acl): Use acl_extended_nontrivial.
49024         * lib/copy-acl.c (qcopy_acl): Likewise.
49025
49026 2008-06-08  Bruno Haible  <bruno@clisp.org>
49027
49028         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49029
49030 2008-06-08  Jim Meyering  <meyering@redhat.com>
49031
49032         * modules/acl (Maintainer): Add Bruno Haible.
49033
49034 2008-06-07  Bruno Haible  <bruno@clisp.org>
49035
49036         Improve support for Tru64 ACLs.
49037         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49038         ACL on OSF/1.
49039
49040 2008-06-07  Bruno Haible  <bruno@clisp.org>
49041
49042         Add support for MacOS X ACLs.
49043         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49044         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49045         * lib/set-mode-acl.c (qset_acl): Likewise.
49046         * lib/copy-acl.c (qcopy_acl): Likewise.
49047
49048 2008-06-07  Bruno Haible  <bruno@clisp.org>
49049
49050         Fix memory leak introduced on 2008-05-22.
49051         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49052         use.
49053
49054 2008-06-07  Bruno Haible  <bruno@clisp.org>
49055
49056         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49057         to construct an empty ACL.
49058
49059 2008-06-07  Bruno Haible  <bruno@clisp.org>
49060
49061         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49062         precisely.
49063         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49064
49065 2008-06-07  Bruno Haible  <bruno@clisp.org>
49066
49067         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49068         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49069
49070 2008-06-07  Bruno Haible  <bruno@clisp.org>
49071
49072         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49073         regardless of POSIX.
49074         * doc/posix-functions/_longjmp.texi: Likewise.
49075         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49076         SystemV platform in this case.
49077
49078 2008-06-06  Eric Blake  <ebb9@byu.net>
49079
49080         Document abort() bugs.
49081         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49082
49083         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49084         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49085         sigsetjmp.
49086         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49087         siglongjmp, but only as a macro.
49088         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49089         is obsolete.
49090         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49091
49092         Tweak documentation to cover cygwin argz bugs.
49093         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49094         argz bug fix; no code change needed since no cygwin releases
49095         occurred between the last fix and the bug being tested.
49096         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49097         module and recently fixed cygwin bugs.
49098         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49099         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49100         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49101         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49102         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49103         Likewise.
49104         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49105         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49106         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49107         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49108         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49109         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49110         Likewise.
49111
49112         Avoid gcc warning on cygwin.
49113         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49114         !ACL_NO_TRIVIAL]: Avoid unused variable.
49115
49116 2008-06-05  Eric Blake  <ebb9@byu.net>
49117
49118         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49119         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49120         git-version-gen fails to come up with a version.
49121         Reported by Simon Josefsson.
49122
49123 2008-06-05  Jim Meyering  <meyering@redhat.com>
49124             Paul Eggert  <eggert@cs.ucla.edu>
49125
49126         utimens.c: work around a probable Linux kernel bug
49127         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49128         appears to be a kernel bug that causes utimensat to return 280
49129         instead of 0, indicating success.
49130
49131 2008-06-04  Bruno Haible  <bruno@clisp.org>
49132
49133         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49134         2008-06-01 commit.
49135
49136 2008-06-04  Bruno Haible  <bruno@clisp.org>
49137
49138         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49139         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49140         (file_has_acl): Use it. Save errno afterwards.
49141         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49142
49143 2008-06-03  Bruno Haible  <bruno@clisp.org>
49144
49145         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49146         draft code. Simplify #ifs.
49147         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49148         Put Solaris code after POSIX-draft code. Fix comments regarding
49149         Solaris 10, HP-UX. Mention Cygwin.
49150         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49151
49152 2008-06-03  Eric Blake  <ebb9@byu.net>
49153
49154         Provide fallback for older kernels.
49155         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49156         Provide runtime fallback if kernel lacks support.
49157         Reported by Mike Frysinger.
49158
49159 2008-06-02  Bruno Haible  <bruno@clisp.org>
49160
49161         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49162         it exists.
49163
49164 2008-06-02  Bruno Haible  <bruno@clisp.org>
49165
49166         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49167         * lib/copy-acl.c (qcopy_acl): Update comment.
49168
49169 2008-06-02  Bruno Haible  <bruno@clisp.org>
49170
49171         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49172         like ACL APIs.
49173
49174 2008-06-02  Bruno Haible  <bruno@clisp.org>
49175
49176         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49177         * tests/test-set-mode-acl.sh: Likewise.
49178         * tests/test-copy-acl.sh: Likewise.
49179         * tests/test-copy-file.sh: Likewise.
49180
49181 2008-06-02  Bruno Haible  <bruno@clisp.org>
49182
49183         * tests/test-file-has-acl.sh: Remove unused code.
49184
49185 2008-06-01  Bruno Haible  <bruno@clisp.org>
49186
49187         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49188         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49189         messages.
49190         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49191
49192 2008-06-01  Bruno Haible  <bruno@clisp.org>
49193
49194         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49195         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49196         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49197         APIs.
49198         * modules/acl-tests (configure.ac): Remove tests now contained in
49199         m4/acl.m4.
49200
49201 2008-06-02  Jim Meyering  <meyering@redhat.com>
49202
49203         announce-gen: use a better key-server host name
49204         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49205         it may be more consistently reliable.  Suggested by Werner Koch
49206         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49207
49208 2008-06-01  Bruno Haible  <bruno@clisp.org>
49209
49210         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49211         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49212
49213 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49214
49215         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49216
49217 2008-06-01  Bruno Haible  <bruno@clisp.org>
49218
49219         New ACL tests.
49220         * tests/test-file-has-acl.sh: New file.
49221         * tests/test-file-has-acl.c: New file.
49222         * tests/test-set-mode-acl.sh: New file.
49223         * tests/test-set-mode-acl.c: New file.
49224         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49225         * tests/test-copy-acl.c: New file.
49226         * modules/acl-tests: New file, based on modules/copy-file-tests.
49227         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49228         (Depends-on): Add acl-tests.
49229         (configure.ac): Remove checks.
49230         (Makefile.am): Don't create test-sameacls program here any more.
49231
49232 2008-06-01  Bruno Haible  <bruno@clisp.org>
49233
49234         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49235         * tests/test-sameacls.c: Include progname.h.
49236         (main): Invoke set_program_name. Portability fixes for MacOS X,
49237         Solaris, HP-UX.
49238
49239 2008-06-01  Bruno Haible  <bruno@clisp.org>
49240
49241         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49242         function.
49243         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49244
49245 2008-06-01  Bruno Haible  <bruno@clisp.org>
49246
49247         * modules/rpmatch (Depends-on): Add strdup.
49248
49249 2008-06-01  Bruno Haible  <bruno@clisp.org>
49250
49251         * lib/pipe.c: Include unistd-safer.h.
49252         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49253         * modules/pipe (Depends-on): Add unistd-safer.
49254
49255 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49256
49257         * modules/autobuild (configure.ac): Call AB_INIT.
49258
49259 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49260
49261         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49262         Suggested by Bruno Haible <bruno@clisp.org>.
49263
49264 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49265
49266         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49267         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49268         <bruno@clisp.org>.
49269
49270 2008-05-29  Eric Blake  <ebb9@byu.net>
49271
49272         Prefer new POSIX 200x interfaces over futimesat.
49273         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49274         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49275         when available.
49276         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49277
49278 2008-05-28  Bruno Haible  <bruno@clisp.org>
49279
49280         * modules/stpcpy (License): Change to LGPLv2+.
49281         Requested by David Lutterkort <dlutter@redhat.com>.
49282
49283 2008-05-27  Bruno Haible  <bruno@clisp.org>
49284
49285         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49286         current mingw.
49287         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49288
49289 2008-05-27  Bruno Haible  <bruno@clisp.org>
49290
49291         * modules/iconv_open (Link): New section, from module 'iconv'.
49292         * modules/striconv (Link): Likewise.
49293         * modules/striconveh (Link): Likewise.
49294         * modules/xstriconv (Link): Likewise.
49295         * modules/unicodeio (Link): Likewise.
49296         * modules/propername (Link): Likewise.
49297         Reported by Jim Meyering.
49298
49299 2008-05-26  Jim Meyering  <meyering@redhat.com>
49300
49301         sha256: do not artificially restrict buffer length to be < 2^32
49302         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49303         uint32_t to size_t.
49304         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49305         to match.
49306
49307         avoid unaligned access errors, e.g., on sparc
49308         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49309         direct access through a possibly-unaligned uint64* pointer.
49310         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49311         direct access through a possibly-unaligned uint32* pointer.
49312         Prompted by this patch from Tom "spot" Callaway:
49313         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49314
49315         sha512.c: fix typo in comment
49316         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49317
49318 2008-05-25  Bruno Haible  <bruno@clisp.org>
49319
49320         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49321         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49322         (Makefile.am): Update lib_SOURCES.
49323
49324 2008-05-25  Bruno Haible  <bruno@clisp.org>
49325
49326         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49327
49328 2008-05-25  Jim Meyering  <meyering@redhat.com>
49329
49330         useless-if-before-free: freed expr may have white-space differences
49331         * build-aux/useless-if-before-free: Recognize cases in which the
49332         freed expression differs from the tested one in embedded white
49333         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49334         $1 was used, so we can't make any regexp shy.  Improved tests now
49335         detect this.
49336
49337         useless-if-before-free: accept white space in the expression.
49338         * build-aux/useless-if-before-free: For now, any white space
49339         in the expression must be identical in the free argument.
49340
49341         useless-if-before-free: efficiency tweak
49342         * build-aux/useless-if-before-free: Make the expression-matching
49343         regexp "shy".
49344         Make the *outer* regexp shy, not the expr-matching one.
49345
49346         update code-in-comment to accept cast of free arg
49347         * build-aux/useless-if-before-free: Update regexp.
49348
49349 2008-05-25  Bruno Haible  <bruno@clisp.org>
49350
49351         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49352         * modules/copy-file-tests (Files, Makefile.am): Update.
49353         * tests/test-copy-file.c (func_test_copy): Update.
49354
49355 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49356
49357         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49358
49359 2008-05-23  Bruno Haible  <bruno@clisp.org>
49360
49361         Improve support for ACLs on OSF/1.
49362         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49363         Remove fallback for unknown flavors of ACLs.
49364
49365 2008-05-22  Bruno Haible  <bruno@clisp.org>
49366
49367         Add support for ACLs on OSF/1.
49368         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49369         replacements.
49370         (acl_free_text): New macro fallback.
49371         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49372         acl_free.
49373         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49374         acl_free_text function. Require AC_C_INLINE.
49375
49376 2008-05-22  Bruno Haible  <bruno@clisp.org>
49377
49378         Make copy_acl work on MacOS X 10.5.
49379         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49380         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49381         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49382         If MODE_INSIDE_ACL, don't assume that every system has the same text
49383         representation for ACLs as FreeBSD.
49384         * lib/copy-acl.c (copy_acl): Add support for platforms with
49385         !MODE_INSIDE_ACL.
49386         * lib/file-has-acl.c (file_has_acl): Likewise.
49387         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49388         FreeBSD, MacOS X, or IRIX, respectively.
49389
49390 2008-05-22  Bruno Haible  <bruno@clisp.org>
49391
49392         * lib/acl.h: Don't include <sys/acl.h>.
49393         (GETACLCNT): Move fallback to lib/acl-internal.h.
49394         * lib/acl-internal.h: Include <sys/acl.h> here.
49395         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49396
49397 2008-05-22  Bruno Haible  <bruno@clisp.org>
49398
49399         Split off copy_acl function to separate file.
49400         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49401         * lib/acl.c (copy_acl): Moved function to separate file.
49402         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49403         * modules/acl (Files): Add lib/copy-acl.c.
49404         (Makefiles.am): Augment lib_SOURCES.
49405
49406 2008-05-22  Bruno Haible  <bruno@clisp.org>
49407
49408         * modules/copy-file-tests: New file.
49409         * tests/test-copy-file.sh: New file.
49410         * tests/test-copy-file.c: New file.
49411         * tests/test-copy-file-sameacls.c: New file.
49412
49413 2008-05-22  Eric Blake  <ebb9@byu.net>
49414
49415         Avoid gcc warning.
49416         * tests/test-memcmp.c (main): Pass NULL indirectly.
49417
49418 2008-05-21  Bruno Haible  <bruno@clisp.org>
49419
49420         Add reference doc about ACLs.
49421         * doc/acl-resources.txt: New file.
49422         * doc/acl-cygwin.txt: New file.
49423
49424 2008-05-21  Bruno Haible  <bruno@clisp.org>
49425
49426         Avoid one more warning from gcc.
49427         * lib/vasnprintf.c (IF_LINT): Update comments.
49428         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49429
49430 2008-05-21  Jim Meyering  <meyering@redhat.com>
49431
49432         avoid a warning from gcc
49433         * lib/vasnprintf.c (IF_LINT): Define.
49434         (scale10_round_decimal_long_double):
49435         Use it to avoid a "may be used uninitialized" warning.
49436         (scale10_round_decimal_double): Likewise.
49437
49438 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49439
49440         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49441         declared.
49442
49443 2008-05-20  Bruno Haible  <bruno@clisp.org>
49444
49445         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49446         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49447
49448 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49449
49450         * modules/memcmp-tests: New file.
49451         * tests/test-memcmp.c: New file.
49452
49453 2008-05-19  Bruno Haible  <bruno@clisp.org>
49454
49455         * modules/propername (Notice, configure.ac): Put quoted "..." into
49456         --keyword option.
49457         * lib/propername.h: Update comments accordingly.
49458         Reported by Eric Blake.
49459
49460 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49461
49462         * modules/getpass-gnu (Depends-on): Add fseeko.
49463
49464 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49465
49466         * modules/base64-tests: New file.
49467
49468 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49469
49470         * lib/base64.c (base64_decode_ctx): If a decode context structure
49471         was passed in use it to ignore newlines.  If a context structure
49472         was _not_ passed in, continue to treat newlines as garbage (this
49473         is the historical behavior).  Formerly base64_decode.
49474         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49475         takes a decode context structure.
49476         * lib/base64.h (base64_decode): Macro for four-argument calls.
49477         (base64_decode_alloc): Likewise.
49478         * lib/base64.c (base64_decode_ctx): If a decode context structure
49479         was passed in use it to ignore newlines.  If a context structure
49480         was _not_ passed in, continue to treat newlines as garbage (this
49481         is the historical behavior).  Formerly base64_decode.
49482         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49483         takes a decode context structure.
49484         * lib/base64.h (base64_decode): Macro for four-argument calls.
49485         (base64_decode_alloc): Likewise.
49486
49487 2008-05-19  Jim Meyering  <meyering@redhat.com>
49488
49489         avoid a warning from gcc
49490         * lib/trim.c (IF_LINT): Define.
49491         (trim2): Use it to avoid a "may be used uninitialized" warning.
49492
49493         Fix doc typo.
49494         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49495
49496 2008-05-19  Bruno Haible  <bruno@clisp.org>
49497
49498         * doc/glibc-functions/getpass.texi: Document limits of other
49499         implementations.
49500
49501 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49502             Bruno Haible <bruno@clisp.org>
49503
49504         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49505
49506 2008-05-18  Bruno Haible  <bruno@clisp.org>
49507
49508         * modules/propername: New file, from GNU gettext.
49509         * lib/propername.h: New file, from GNU gettext.
49510         * lib/propername.c: New file, from GNU gettext.
49511         * MODULES.html.sh (Internationalization functions): Add propername.
49512
49513 2008-05-16  Jim Meyering  <meyering@redhat.com>
49514             Bruno Haible  <bruno@clisp.org>
49515
49516         Avoid some warnings from "gcc -Wshadow".
49517         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49518
49519 2008-05-15  Eric Blake  <ebb9@byu.net>
49520
49521         Extend previous patch to cygwin 1.7.0.
49522         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49523         fast implementation in cygwin >= 1.7.0.
49524         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49525         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49526
49527 2008-05-15  Bruno Haible  <bruno@clisp.org>
49528
49529         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49530         implementation in glibc >= 2.9.
49531         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49533
49534 2008-05-15  Bruno Haible  <bruno@clisp.org>
49535
49536         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49537         (Unicode string functions): Add unilbrk/*.
49538         Reported by Karl Berry.
49539
49540 2008-05-15  Eric Blake  <ebb9@byu.net>
49541
49542         Fix violation of <stdbool.h> replacement in regex.
49543         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49544         * lib/regexec.c (re_search_internal): Likewise.
49545         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49546
49547 2008-05-15  Jim Meyering  <meyering@redhat.com>
49548
49549         avoid distracting test output when git or cvs is not found
49550         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49551         * tests/test-vc-list-files-git.sh: Likewise.
49552
49553 2008-05-15  Eric Blake  <ebb9@byu.net>
49554
49555         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49556         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49557         glibc version.
49558         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49559         * doc/posix-functions/strstr.texi (strstr): Likewise.
49560         * lib/str-two-way.h (MAX): Sychronize with glibc.
49561
49562 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49563
49564         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49565         opr.ctx_type.
49566         (calc_first): Initialize constraint field.
49567         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49568         Fix grammar.
49569         (duplicate_node): Merge constraint field for all node types.
49570         (calc_eclosure_iter): Look at constraint field for all node types.
49571         * lib/regex_internal.c (create_cd_newstate): Don't look at
49572         opr.ctx_type.
49573
49574 2008-05-14  Bruno Haible  <bruno@clisp.org>
49575
49576         Help GCC to do better code generation.
49577         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49578         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49579         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49580         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49581         Declare with attribute 'malloc' if supported.
49582
49583 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49584
49585         use "echo STR|wc -c" rather than unportable "expr length STR"
49586         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49587         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49588
49589 2008-05-14  Jim Meyering  <meyering@redhat.com>
49590
49591         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49592         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49593         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49594         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49595         via Collin Lasse.
49596
49597 2008-05-14  Eric Blake  <ebb9@byu.net>
49598
49599         Avoid quadratic growth in gl_LIBSOURCES.
49600         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49601         Suggested by Bruno Haible.
49602
49603         Test xmemdup0.
49604         * modules/xmemdup0-tests: New file.
49605         * tests/test-xmemdup0.c: Likewise.
49606
49607 2008-05-13  Eric Blake  <ebb9@byu.net>
49608
49609         Split xmemdup0 into its own module.
49610         * modules/xmemdup0: New file.
49611         * lib/xmemdup0.h: Likewise.
49612         * lib/xmemdup0.c: Likewise.
49613         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49614         * lib/xalloc.h (xmemdup0): Remove.
49615         * lib/xmalloc.c (xmemdup0): Likewise.
49616
49617 2008-05-13  Eric Blake  <ebb9@byu.net>
49618             Bruno Haible  <bruno@clisp.org>
49619
49620         Reduce number of forks required during autoconf.
49621         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49622         and gl_LIBSOURCES_DIR.
49623         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49624         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49625         m4_syscmd per file.
49626         <m4_foreach_w>: Move...
49627         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49628
49629 2008-05-13  Eric Blake  <ebb9@byu.net>
49630
49631         * gnulib-tool: Fix various comment typos.
49632
49633 2008-05-12  Bruno Haible  <bruno@clisp.org>
49634
49635         Tailor the linebreaking algorithm.
49636         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49637
49638 2008-05-12  Bruno Haible  <bruno@clisp.org>
49639
49640         Update to Unicode 5.0.0.
49641         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49642         LBP_JV, LBP_JT. Redistribute values.
49643         (unilbrk_table): Change size.
49644         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49645         Unicode TR#14 rev. 22.
49646         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49647         LBP_JV, LBP_JT. Redistribute values.
49648         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49649         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49650         Update.
49651         * lib/unilbrk/lbrkprop1.h: Regenerated.
49652         * lib/unilbrk/lbrkprop2.h: Regenerated.
49653         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49654         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49655         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49656         Likewise.
49657         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49658         Likewise.
49659         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49660         result.
49661         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49662         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49663         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49664         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49665         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49666         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49667
49668 2008-05-11  Bruno Haible  <bruno@clisp.org>
49669
49670         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49671
49672 2008-05-11  Bruno Haible  <bruno@clisp.org>
49673
49674         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49675         * modules/unilbrk/gen-lbrk: New file.
49676
49677 2008-05-11  Bruno Haible  <bruno@clisp.org>
49678
49679         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49680         * m4/sha512.m4 (gl_SHA512): Likewise.
49681
49682 2008-05-11  Jim Meyering  <meyering@redhat.com>
49683
49684         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49685         * modules/crypto/sha256: New file.
49686         * modules/crypto/sha512: Likewise.
49687         * lib/sha256.c: Likewise.
49688         * lib/sha256.h: Likewise.
49689         * lib/sha512.c: Likewise.
49690         * lib/sha512.h: Likewise.
49691         * lib/u64.h: Likewise.
49692         * m4/sha256.m4: Likewise.
49693         * m4/sha512.m4: Likewise.
49694         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49695
49696 2008-05-10  Bruno Haible  <bruno@clisp.org>
49697
49698         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49699         (Input/Output <stdio.h>): Add xprintf.
49700         (Signal handling <signal.h>): Add strsignal.
49701         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49702         (Core language properties): Add func.
49703         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49704         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49705         strings.
49706         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49707         (Input/output): New section.
49708         (File system functions): Add openat-die, stat-macros.
49709         (Networking functions): Add sockets.
49710         (Unicode string functions): Add unictype/*.
49711         (Support for building libraries and executables): Add gperf.
49712         (Support for building documentation): Add agpl-3.0.
49713         (Misc): Add nocrash.
49714
49715 2008-05-10  Bruno Haible  <bruno@clisp.org>
49716
49717         * modules/unictype/gen-ctype: New file.
49718
49719 2008-05-10  Jim Meyering  <meyering@redhat.com>
49720
49721         Make chdir-safer.c more efficient on a system with no symlinks.
49722         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49723         also if ELOOP is zero.  Suggested by Bruno Haible.
49724
49725         Make chdir-safer.c slightly safer.
49726         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49727         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49728
49729         Avoid compile failure on systems without ELOOP (like mingw).
49730         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49731         Reported by Bruno Haible.
49732
49733 2008-05-10  Bruno Haible  <bruno@clisp.org>
49734
49735         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49736         (is_utf8_encoding): Use a case-insensitive comparison.
49737         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49738         streq.
49739
49740 2008-05-10  Bruno Haible  <bruno@clisp.org>
49741
49742         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49743         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49744         * lib/unilbrk/ulc-common.h (iconv_string_length,
49745         iconv_string_keeping_offsets): Remove declarations.
49746         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49747         Don't include <iconv.h>, streq.h, xsize.h.
49748         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49749         conversion.
49750         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49751         <iconv.h>, streq.h, xsize.h.
49752         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49753         conversion.
49754         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49755         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49756         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49757         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49758
49759 2008-05-10  Bruno Haible  <bruno@clisp.org>
49760
49761         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49762         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49763
49764         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49765         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49766
49767         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49768         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49769
49770         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49771         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49772
49773         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49774         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49775
49776         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49777         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49778
49779         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49780         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49781
49782         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49783         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49784
49785 2008-05-10  Bruno Haible  <bruno@clisp.org>
49786
49787         Split up 'linebreak' module.
49788         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49789         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49790         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49791         modifications.
49792         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49793         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49794         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49795         lib/linebreak.c.
49796         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49797         lib/linebreak.c.
49798         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49799         lib/linebreak.c.
49800         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49801         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49802         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49803         lib/linebreak.c.
49804         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49805         lib/linebreak.c.
49806         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49807         lib/linebreak.c.
49808         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49809         lib/linebreak.c.
49810         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49811         lib/linebreak.c.
49812         * modules/unilbrk/base: New file.
49813         * modules/unilbrk/tables: New file.
49814         * modules/unilbrk/u8-possible-linebreaks: New file.
49815         * modules/unilbrk/u16-possible-linebreaks: New file.
49816         * modules/unilbrk/u32-possible-linebreaks: New file.
49817         * modules/unilbrk/ulc-common: New file.
49818         * modules/unilbrk/ulc-possible-linebreaks: New file.
49819         * modules/unilbrk/u8-width-linebreaks: New file.
49820         * modules/unilbrk/u16-width-linebreaks: New file.
49821         * modules/unilbrk/u32-width-linebreaks: New file.
49822         * modules/unilbrk/ulc-width-linebreaks: New file.
49823         * lib/linebreak.h: Remove file.
49824         * lib/linebreak.c: Remove file.
49825         * m4/linebreak.m4: Remove file.
49826         * modules/linebreak: Remove file.
49827         * NEWS: Mention the changes.
49828
49829 2008-05-09  Eric Blake  <ebb9@byu.net>
49830
49831         Add xmemdup0.
49832         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49833         implementation.
49834         * lib/xmalloc.c (xmemdup0): New C implementation.
49835
49836 2008-05-08  Bruno Haible  <bruno@clisp.org>
49837
49838         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49839
49840 2008-05-07  Eric Blake  <ebb9@byu.net>
49841
49842         Support cross-compilation of <wctype.h>.
49843         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49844         AC_CACHE_CHECK.
49845
49846 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49847
49848         * build-aux/vc-list-files: Add support for bzr.
49849
49850 2008-05-03  Jim Meyering  <meyering@redhat.com>
49851
49852         avoid failed assertion with tight malloc
49853         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49854
49855 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49856
49857         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49858         are needed from arpa/inet.h.
49859         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49860         Reported by Bruno Haible.
49861
49862 2008-05-02  Jim Meyering  <meyering@redhat.com>
49863
49864         avoid compilation error on FreeBSD 6
49865         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49866
49867 2008-05-01  Jim Meyering  <meyering@redhat.com>
49868
49869         useless-if-before-free: correct --help's exit status description
49870         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49871         for one or more matches, etc.  Reported by Bruno Haible.
49872
49873         vc-list-files: make the stand-alone gnulib test work
49874         * modules/vc-list-files-tests (configure.ac):
49875         Define and AC_SUBST abs_aux_dir.
49876         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49877         $(abs_top_srcdir) to each script and having each of them
49878         duplicate the work of setting PATH, set PATH here, using
49879         the new variable, abs_aux_dir instead.
49880         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49881         * tests/test-vc-list-files-git.sh: Likewise.
49882         Reported by Bruno Haible.
49883
49884 2008-05-01  Bruno Haible  <bruno@clisp.org>
49885
49886         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49887         reallocation. Rename 'done' to 'found_delimiter'.
49888
49889 2008-05-01  Jim Meyering  <meyering@redhat.com>
49890
49891         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49892         * build-aux/vc-list-files: Use `...`, not $(...).
49893
49894 2008-04-30  Jim Meyering  <meyering@redhat.com>
49895
49896         add tests for vc-list-files
49897         * modules/vc-list-files-tests: New module.
49898         * tests/test-vc-list-files-cvs.sh: New file.
49899         * tests/test-vc-list-files-git.sh: New file.
49900
49901         avoid a warning from gcc
49902         * lib/getndelim2.c (IF_LINT): Define.
49903         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49904
49905         vc-list-files: work properly with build-aux/cvsu, too
49906         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49907         to all cvs-based clauses.
49908
49909         vc-list-files: work properly in the CVS+awk case, too
49910         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49911
49912         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49913         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49914         take more than one file argument, so .  Add quotes, just in case $dir
49915         ever contains a shell meta-character.  Prompted by Soren Hansen in
49916         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49917
49918 2008-04-29  Eric Blake  <ebb9@byu.net>
49919
49920         Optimize getndelim2 to use block operations when possible.
49921         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49922         freadseek, and memchr2.
49923         * lib/getndelim2.c (getndelim2): Use them for block reads.
49924
49925 2008-04-29  Bruno Haible  <bruno@clisp.org>
49926
49927         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49928         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49929         * modules/inet_ntop (Depends-on): Add extensions.
49930         * modules/inet_pton (Depends-on): Likewise.
49931         Reported by Simon Josefsson.
49932
49933 2008-04-29  Jim Meyering  <meyering@redhat.com>
49934
49935         When the is more than one match in a block, match all of them.
49936         * build-aux/useless-if-before-free: Iterate through each block
49937         until there are no more matches.
49938
49939         Fix broken useless-if-before-free script.
49940         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49941         the expression to match cast of argument to free-like function.
49942
49943 2008-04-29  Eric Blake  <ebb9@byu.net>
49944
49945         Use new header.
49946         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49947
49948 2008-04-29  Jim Meyering  <meyering@redhat.com>
49949
49950         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49951         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49952         by gnulib to exist and to declare e.g., inet_ntop.
49953         Don't include "inet_ntop.h", now removed.
49954
49955         * m4/arpa_inet_h.m4: Remove trailing blanks.
49956
49957 2008-04-29  Eric Blake  <ebb9@byu.net>
49958
49959         Silence valgrind on safe reads beyond potential array bounds.
49960         * lib/rawmemchr.valgrind: New file.
49961         * lib/strchrnul.valgrind: Likewise.
49962         * modules/rawmemchr (Files): Distribute new file.
49963         * modules/strchrnul (Files): Likewise.
49964         Suggested by Bruno Haible.
49965
49966 2008-04-29  Bruno Haible  <bruno@clisp.org>
49967
49968         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49969         (inet_ntop, inet_pton): Change portability warning's wording.
49970         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49971         Invoke gl_CHECK_NEXT_HEADERS.
49972         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49973         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49974         set ARPA_INET_H.
49975         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49976         * modules/arpa_inet (Description): No longer only for systems that
49977         lack it.
49978         (Depends-on): Add include_next.
49979         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49980         HAVE_ARPA_INET_H.
49981
49982 2008-04-29  Jim Meyering  <meyering@redhat.com>
49983
49984         * modules/mkdir (License): Re-license as LGPLv2+.
49985
49986 2008-04-29  Bruno Haible  <bruno@clisp.org>
49987
49988         * modules/rawmemchr (Maintainer): Set to Eric.
49989         * modules/strchrnul (Maintainer): Likewise.
49990
49991 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49992
49993         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49994         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49995
49996         * modules/arpa_inet (arpa/inet.h): Use them.
49997
49998 2008-04-28  Eric Blake  <ebb9@byu.net>
49999
50000         Test getndelim2.
50001         * modules/getndelim2-tests: New file.
50002         * tests/test-getndelim2.c: Likewise.
50003         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50004         stream.
50005         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50006
50007         * MODULES.html.sh: Document new module.
50008
50009 2008-04-20  Bruno Haible  <bruno@clisp.org>
50010
50011         * lib/c-stack.c (die): Use raise.
50012         * modules/c-stack (Depends-on): Add raise.
50013
50014 2008-04-28  Bruno Haible  <bruno@clisp.org>
50015
50016         Expect rpmatch to be declared.
50017         * lib/yesno.c (rpmatch): Remove declaration.
50018
50019         Declare rpmatch.
50020         * lib/stdlib.in.h (rpmatch): New declaration.
50021         * lib/rpmatch.c: Include <stdlib.h> first.
50022         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50023         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50025         HAVE_RPMATCH.
50026         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50027         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50028         (Include): Set to <stdlib.h>.
50029         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50030         HAVE_RPMATCH.
50031         * NEWS: Document the change.
50032
50033 2008-04-28  Bruno Haible  <bruno@clisp.org>
50034
50035         Change rpmatch to use nl_langinfo when appropriate.
50036         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50037         (N_): New macro.
50038         (localized_pattern): New function/macro.
50039         (try): Remove match, nomatch arguments. Copy the pattern into safe
50040         memory before caching it.
50041         (rpmatch): Use localized_pattern. Add translator comments.
50042         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50043         Suggested by Eric Blake.
50044         * modules/rpmatch (Depends-on): Add stdbool.
50045
50046 2008-04-28  Eric Blake  <ebb9@byu.net>
50047
50048         Add rawmemchr module, matching glibc.
50049         * modules/string (Makefile.am): New indicator.
50050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50051         * lib/string.in.h (rawmemchr): Declare when appropriate.
50052         * modules/rawmemchr: New file.
50053         * m4/rawmemchr.m4: Likewise.
50054         * lib/rawmemchr.c: Likewise.
50055         * modules/rawmemchr-tests: Likewise.
50056         * tests/test-rawmemchr.c: Likewise.
50057         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50058         module.
50059         * modules/strchrnul (Depends-on): Add rawmemchr.
50060         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50061
50062         Whitespace cleanup.
50063         * tests/test-strchrnul.c: Reindent.
50064         * lib/strchrnul.c: Likewise.
50065
50066         Optimize and test strchrnul.
50067         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50068         * modules/strchrnul-tests: New file.
50069         * tests/test-strchrnul.c: Likewise.
50070
50071         Remove intprops dependency.
50072         * modules/memchr (Depends-on): Remove intprops.
50073         * modules/memrchr (Depends-on): Likewise.
50074         * modules/memchr2 (Depends-on): Likewise.
50075         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50076         * lib/memrchr.c (__memrchr): Likewise.
50077         * lib/memrchr2.c (memchr2): Likewise.
50078         Reported by Simon Josefsson.
50079
50080 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50081
50082         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50083         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50084
50085 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50086
50087         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50088
50089         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50090
50091         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50092
50093         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50094         declarations.
50095         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50096
50097         * m4/inet_pton.m4: Don't check for header files.
50098
50099         * m4/inet_ntop.m4: Don't check for header files.
50100
50101 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50102
50103         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50104         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50105         trigger for cygwin).
50106         Reported by Bruno Haible  <bruno@clisp.org>.
50107
50108 2008-04-28  Bruno Haible  <bruno@clisp.org>
50109
50110         * doc/posix-functions/strdup.texi: Mention mingw problem.
50111
50112 2008-04-27  Bruno Haible  <bruno@clisp.org>
50113
50114         * modules/stat-time-tests (Depends-on): Add sleep.
50115         * tests/test-stat-time.c (force_unlink): New function.
50116         (cleanup): Use it.
50117         (test_mtime): Remove the ctime related tests.
50118         (test_ctime): New function, containing the ctime related tests.
50119         (main): Call test_ctime, except on native Windows platforms.
50120
50121 2008-04-27  Bruno Haible  <bruno@clisp.org>
50122
50123         * lib/rpmatch.c (rpmatch): Add some comments.
50124         Reported by James Youngman <jay@gnu.org>.
50125
50126 2008-04-27  Bruno Haible  <bruno@clisp.org>
50127
50128         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50129         quiet NaNs.
50130
50131 2008-04-27  Bruno Haible  <bruno@clisp.org>
50132
50133         Make test-yesno.sh work on mingw.
50134         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50135         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50136         (main): Set stdin to binary mode.
50137         * modules/yesno-tests (Depends-on): Add binary-io.
50138
50139 2008-04-27  Bruno Haible  <bruno@clisp.org>
50140
50141         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50142         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50143         argument that lie outside the IEEE 854 domain.
50144         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50145         (gl_ISFINITE): Use it.
50146         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50147
50148 2008-04-27  Bruno Haible  <bruno@clisp.org>
50149
50150         Allow local renaming in config.h.
50151         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50152
50153 2008-04-27  Bruno Haible  <bruno@clisp.org>
50154
50155         * lib/memchr.c (__memchr): Change type of 'i'.
50156         * lib/memchr2.c (memchr2): Likewise.
50157
50158 2008-04-26  Eric Blake  <ebb9@byu.net>
50159         and Bruno Haible  <bruno@clisp.org>
50160
50161         Optimize and test memrchr.
50162         * modules/memrchr (Depends-on): Add intprops.
50163         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50164         * modules/memrchr-tests: New file.
50165         * tests/test-memrchr.c: New file.
50166
50167 2008-04-26  Bruno Haible  <bruno@clisp.org>
50168
50169         Add tentative support for DragonFly BSD.
50170         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50171         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50172         fp.
50173         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50174         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50175         * lib/fpurge.c (fpurge): Likewise.
50176         * lib/freadable.c (freaadable): Likewise.
50177         * lib/freadahead.c (freadahead): Likewise.
50178         * lib/freading.c (freading): Likewise.
50179         * lib/freadptr.c (freadptr): Likewise.
50180         * lib/freadseek.c (freadptrinc): Likewise.
50181         * lib/fseeko.c (fseeko): Likewise.
50182         * lib/fseterr.c (fseterr): Likewise.
50183         * lib/fwritable.c (fwritable): Likewise.
50184         * lib/fwriting.c (fwriting): Likewise.
50185
50186 2008-04-26  Bruno Haible  <bruno@clisp.org>
50187
50188         * lib/stdio-impl.h: New file.
50189         * lib/fbufmode.c: Include stdio-impl.h.
50190         (fbufmode): Use fp_, remove redundant #defines.
50191         * lib/fflush.c: Include stdio-impl.h.
50192         (clear_ungetc_buffer): Remove redundant #defines.
50193         * lib/fpurge.c: Include stdio-impl.h.
50194         (fpurge): Remove redundant #defines.
50195         * lib/freadable.c: Include stdio-impl.h.
50196         (freadable): Remove redundant #defines.
50197         * lib/freadahead.c: Include stdio-impl.h.
50198         (freadahead): Remove redundant #defines.
50199         * lib/freading.c: Include stdio-impl.h.
50200         (freading): Remove redundant #defines.
50201         * lib/freadptr.c: Include stdio-impl.h.
50202         (freadptr): Remove redundant #defines.
50203         * lib/freadseek.c: Include stdio-impl.h.
50204         (freadptrinc): Remove redundant #defines.
50205         * lib/fseeko.c: Include stdio-impl.h.
50206         (rpl_fseeko): Remove redundant #defines.
50207         * lib/fseterr.c: Include stdio-impl.h.
50208         (fseterr): Remove redundant #defines.
50209         * lib/fwritable.c: Include stdio-impl.h.
50210         (fwritable: Remove redundant #defines.
50211         * lib/fwriting.c: Include stdio-impl.h.
50212         (fwriting): Remove redundant #defines.
50213         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50214         * modules/fflush (Files): Likewise.
50215         * modules/fpurge (Files): Likewise.
50216         * modules/freadable (Files): Likewise.
50217         * modules/freadahead (Files): Likewise.
50218         * modules/freading (Files): Likewise.
50219         * modules/freadptr (Files): Likewise.
50220         * modules/freadseek (Files): Likewise.
50221         * modules/fseeko (Files): Likewise.
50222         * modules/fseterr (Files): Likewise.
50223         * modules/fwritable (Files): Likewise.
50224         * modules/fwriting (Files): Likewise.
50225
50226 2008-04-26  Bruno Haible  <bruno@clisp.org>
50227
50228         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50229         restore_seek_optimization, update_fpos_cache): New functions, extracted
50230         from rpl_fflush.
50231         (rpl_fflush): Use them.
50232         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50233         (gl_REPLACE_FFLUSH): Use it.
50234
50235 2008-04-26  Bruno Haible  <bruno@clisp.org>
50236
50237         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50238         on Solaris.
50239         * tests/test-xstrtoimax.sh: Likewise.
50240         * tests/test-xstrtoumax.sh: Likewise.
50241         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50242
50243 2008-04-26  Bruno Haible  <bruno@clisp.org>
50244
50245         * modules/memchr-tests: New file.
50246         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50247
50248 2008-04-26  Eric Blake  <ebb9@byu.net>
50249             Bruno Haible  <bruno@clisp.org>
50250
50251         * lib/memchr.c: Include intprops.h.
50252         (__memchr): Optimize parallel detection of matching bytes. Rename local
50253         variables. Add explanatory comments.
50254
50255 2008-04-26  Bruno Haible  <bruno@clisp.org>
50256
50257         Fix module 'memchr', broken since 2000-10-28.
50258         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50259
50260 2008-04-26  Bruno Haible  <bruno@clisp.org>
50261
50262         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50263         comments.
50264
50265 2008-04-25  Eric Blake  <ebb9@byu.net>
50266
50267         Use native fstatat on cygwin 1.7.0.
50268         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50269         first.
50270
50271 2008-04-23  Eric Blake  <ebb9@byu.net>
50272
50273         Improve memchr2 performance.
50274         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50275         NUL bytes.
50276         * modules/memchr2 (Depends-on): Use intprops.h.
50277
50278 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50279
50280         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50281         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50282         <blp@cs.stanford.edu>.
50283
50284 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50285
50286         * lib/arpa_inet.in.h: New file.
50287
50288         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50289         (Makefile.am): Sed in substitute header file.
50290
50291         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50292         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50293
50294         * modules/inet_ntop (configure.ac): Use
50295         gl_ARPA_INET_MODULE_INDICATOR.
50296
50297         * modules/inet_pton (configure.ac): Use
50298         gl_ARPA_INET_MODULE_INDICATOR.
50299
50300 2008-04-22  Jim Meyering  <meyering@redhat.com>
50301
50302         * modules/verify (License): Re-license as LGPLv2+.
50303
50304 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50305
50306         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50307         parameter to void* as per POSIX standard (MinGW uses char*).
50308
50309 2008-04-21  Bruno Haible  <bruno@clisp.org>
50310
50311         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50312         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50313         Define to replacements if REPLACE_ISWCNTRL is 1.
50314         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50315         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50316         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50317         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50318         what it fixes.
50319         * doc/posix-functions/iswalpha.texi: Likewise.
50320         * doc/posix-functions/iswblank.texi: Likewise.
50321         * doc/posix-functions/iswcntrl.texi: Likewise.
50322         * doc/posix-functions/iswdigit.texi: Likewise.
50323         * doc/posix-functions/iswgraph.texi: Likewise.
50324         * doc/posix-functions/iswlower.texi: Likewise.
50325         * doc/posix-functions/iswprint.texi: Likewise.
50326         * doc/posix-functions/iswpunct.texi: Likewise.
50327         * doc/posix-functions/iswspace.texi: Likewise.
50328         * doc/posix-functions/iswupper.texi: Likewise.
50329         * doc/posix-functions/iswxdigit.texi: Likewise.
50330         Reported by Alain Guibert.
50331
50332 2008-04-21  Bruno Haible  <bruno@clisp.org>
50333
50334         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50335         Patch by Alain Guibert.
50336
50337 2008-04-21  Bruno Haible  <bruno@clisp.org>
50338
50339         Fix test failures on mingw.
50340         * tests/test-xstrtol.c (print_no_progname): New function.
50341         (main): Install it in error_print_progname hook.
50342         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50343         * tests/test-xstrtoimax.sh: Likewise.
50344         * tests/test-xstrtoumax.sh: Likewise.
50345
50346 2008-04-21  Bruno Haible  <bruno@clisp.org>
50347
50348         Fix test failure on mingw.
50349         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50350
50351 2008-04-21  Bruno Haible  <bruno@clisp.org>
50352
50353         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50354         Actually assign a value.
50355
50356 2008-04-20  Bruno Haible  <bruno@clisp.org>
50357
50358         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50359         take 2.
50360         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50361         'canonicalize-lgpl' module is also used.
50362         * lib/canonicalize-lgpl.c: Undo last change.
50363         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50364
50365 2008-04-20  Bruno Haible  <bruno@clisp.org>
50366
50367         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50368         config.h. Provide _mkdir based fallback for mingw.
50369         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50370         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50371         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50372         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50373         rather than defining mkdir in config.h.
50374         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50375         (gl_SYS_STAT_H_DEFAULTS): New macro.
50376         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50377         HAVE_IO_H any more.
50378         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50379         HAVE_DECL_MKDIR and HAVE_IO_H.
50380
50381 2008-04-20  Bruno Haible  <bruno@clisp.org>
50382
50383         * lib/isapipe.c: Port to native Windows platforms.
50384
50385 2008-04-20  Bruno Haible  <bruno@clisp.org>
50386
50387         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50388
50389 2008-04-21  Eric Blake  <ebb9@byu.net>
50390
50391         Work around preprocessors that don't handle UINTMAX_MAX.
50392         * lib/memchr2.c (memchr2): Avoid embedded #if.
50393         Reported by Alain Guibert, fix suggested by Bruno Haible.
50394
50395 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50396
50397         * doc/posix-functions/strftime.texi (strftime): Explain better
50398         Windows incompatibility.  Suggested by Micah Cowan
50399         <micah@cowan.name>.
50400
50401 2008-04-20  Bruno Haible  <bruno@clisp.org>
50402
50403         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50404         unistr/u8-mblen.
50405
50406 2008-04-20  Bruno Haible  <bruno@clisp.org>
50407
50408         Fix test failure on platforms with non-GNU iconv.
50409         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50410         (U_TO_U8): Use it, rather than u16_to_u8.
50411         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50412         units at the end of the input string.
50413         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50414
50415 2008-04-20  Bruno Haible  <bruno@clisp.org>
50416
50417         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50418         when the resulting length is 0.
50419         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50420
50421 2008-04-20  Bruno Haible  <bruno@clisp.org>
50422
50423         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50424         works.
50425         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50426
50427 2008-04-20  Bruno Haible  <bruno@clisp.org>
50428
50429         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50430         * modules/tsearch-tests (configure.ac): Test for initstate function.
50431
50432 2008-04-20  Bruno Haible  <bruno@clisp.org>
50433
50434         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50435         for nlink_t if missing.
50436         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50437
50438 2008-04-19  Bruno Haible  <bruno@clisp.org>
50439
50440         Work around snprintf bug on Linux libc5.
50441         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50443         gl_SNPRINTF_SIZE1.
50444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50445         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50446         that test failed.
50447         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50448         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50449         * modules/snprintf (Files): Add m4/printf.m4.
50450         * modules/vsnprintf (Files): Likewise.
50451         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50452         * doc/posix-functions/vsnprintf.texi: Likewise.
50453
50454 2008-04-19  Bruno Haible  <bruno@clisp.org>
50455
50456         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50457         from 0.0058 to less than 10^-7.
50458
50459 2008-04-19  Bruno Haible  <bruno@clisp.org>
50460
50461         Fix rounding when a precision is given.
50462         * lib/vasnprintf.c (is_borderline): New function.
50463         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50464         9...9x.
50465         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50466         %e, %g.
50467         * tests/test-vasprintf-posix.c (test_function): Likewise.
50468         * tests/test-snprintf-posix.h (test_function): Likewise.
50469         * tests/test-sprintf-posix.h (test_function): Likewise.
50470         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50471         * tests/test-printf-posix.h (test_function): Likewise.
50472         * tests/test-printf-posix.output: Update.
50473         Reported by John Darrington <john@darrington.wattle.id.au> via
50474         Ben Pfaff <blp@cs.stanford.edu>.
50475
50476 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50477
50478         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50479         Suggested by Bruno Haible <bruno@clisp.org>.
50480
50481 2008-04-17  Bruno Haible  <bruno@clisp.org>
50482
50483         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50484         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50485         implementation.
50486         Patch by Bruce Merry <bmerry@gmail.com>.
50487
50488 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50489
50490         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50491         doesn't work under Windows.
50492
50493 2008-04-16  Bruno Haible  <bruno@clisp.org>
50494
50495         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50496         New macros.
50497         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50498         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50499         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50500         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50501         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50502         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50503         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50504         macros.
50505         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50506         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50507         Northern Sotho, Uighur.
50508
50509 2008-04-16  Bruno Haible  <bruno@clisp.org>
50510
50511         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50512         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50513         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50514         Reported by Daniel Bergström <daniel@octocode.com>.
50515
50516 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50517             Bruno Haible  <bruno@clisp.org>
50518
50519         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50520         function.
50521         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50522         New functions, mostly extracted from gl_locale_name_default.
50523         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50524
50525 2008-04-16  Eric Blake  <ebb9@byu.net>
50526
50527         Adjust strtod detection to catch glibc 2.7 bug.
50528         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50529         Reported by John Gatewood Ham.
50530
50531 2008-04-16  Bruno Haible  <bruno@clisp.org>
50532
50533         Add tentative support for Linux libc5.
50534         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50535         * lib/fpurge.c (fpurge): Likewise.
50536         * lib/freadable.c (freadable): Likewise.
50537         * lib/freadahead.c (freadahead): Likewise.
50538         * lib/freading.c (freading): Likewise.
50539         * lib/freadptr.c (freadptr): Likewise.
50540         * lib/freadseek.c (freadptrinc): Likewise.
50541         * lib/fseeko.c (rpl_fseeko): Likewise.
50542         * lib/fseterr.c (fseterr): Likewise.
50543         * lib/fwritable.c (fwritable): Likewise.
50544         * lib/fwriting.c (fwriting): Likewise.
50545         Reported by Alain Guibert <alguibert+bts@free.fr>.
50546
50547 2008-04-15  Bruno Haible  <bruno@clisp.org>
50548
50549         * modules/mathl (configure.ac): Define module indicator.
50550
50551 2008-04-15  Bruno Haible  <bruno@clisp.org>
50552
50553         * lib/logl.c (logl): Remove unused variables.
50554
50555 2008-04-15  Bruno Haible  <bruno@clisp.org>
50556
50557         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50558         fails.
50559
50560 2008-04-15  Bruno Haible  <bruno@clisp.org>
50561
50562         * lib/trim.c (trim2): Fix argument of isspace() macro.
50563
50564 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50565
50566         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50567         to 0.
50568         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50569
50570 2008-04-14  Bruno Haible  <bruno@clisp.org>
50571
50572         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50573         AC_LANG_PROGRAM argument.
50574         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50575         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50576         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50577         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50578         * m4/math_h.m4 (gl_MATH_H): Likewise.
50579         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50580         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50581         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50582         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50583         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50584         * m4/regex.m4 (gl_REGEX): Likewise.
50585         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50586         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50587         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50588         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50589         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50590         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50591         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50592         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50593
50594 2008-04-14  Jim Meyering  <meyering@redhat.com>
50595
50596         test-strtod: fix typos: s/abs/fabs/
50597         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50598
50599 2008-04-13  Bruno Haible  <bruno@clisp.org>
50600
50601         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50602         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50603         module is also used and while not building the reloc-wrapper.
50604
50605 2008-04-13  Bruno Haible  <bruno@clisp.org>
50606
50607         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50608
50609 2008-04-13  Bruno Haible  <bruno@clisp.org>
50610
50611         Fix AIX compilation failure introduced on 2008-04-02.
50612         * tests/test-frexp.c (exp): Undefine before redefining.
50613         * tests/test-frexpl.c (exp): Likewise.
50614
50615 2008-04-13  Bruno Haible  <bruno@clisp.org>
50616
50617         Work around a HP-UX stdio bug.
50618         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50619         * tests/test-ftello.c (main): Likewise.
50620         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50621         * doc/posix-functions/ftello.texi: Likewise.
50622
50623 2008-04-13  Bruno Haible  <bruno@clisp.org>
50624
50625         Make test-signbit pass on HP-UX/hppa.
50626         * tests/test-signbit.c (minus_zerol): New variable.
50627         (test_signbitl): Use it.
50628
50629 2008-04-13  Bruno Haible  <bruno@clisp.org>
50630
50631         Make truncl work on OSF/1 4.0.
50632         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50633         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50634         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50636         HAVE_DECL_TRUNCL.
50637         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50638         HAVE_DECL_TRUNCL.
50639         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50640
50641 2008-04-13  Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50644
50645 2008-04-13  Bruno Haible  <bruno@clisp.org>
50646
50647         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50648         expression, so as to avoid HP-UX 11 cc compiler bug.
50649
50650 2008-04-13  Bruno Haible  <bruno@clisp.org>
50651
50652         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50653
50654 2008-04-13  Bruno Haible  <bruno@clisp.org>
50655
50656         * lib/git-merge-changelog.c: Remove empty declaration outside of
50657         functions.
50658
50659 2008-04-13  Bruno Haible  <bruno@clisp.org>
50660
50661         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50662
50663 2008-04-13  Bruno Haible  <bruno@clisp.org>
50664
50665         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50666         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50667         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50668         also if it exists but lacks definitions of the SHUT_* macros.
50669         * modules/sys_socket (Description): Update.
50670         Reported by Elbert Pol <e.pol@chello.nl>.
50671
50672 2008-04-13  Bruno Haible  <bruno@clisp.org>
50673
50674         * lib/localcharset.c (OS2): Don't redefine if already defined.
50675         Reported by Elbert Pol <e.pol@chello.nl>.
50676
50677 2008-04-13  Bruno Haible  <bruno@clisp.org>
50678
50679         * lib/binary-io.h [__EMX__]: Include <io.h>.
50680         Reported by Elbert Pol <e.pol@chello.nl>.
50681
50682 2008-04-12  Bruno Haible  <bruno@clisp.org>
50683
50684         * lib/fpucw.h: Enable the definitions also for x86_64.
50685         Needed for NetBSD/x86_64.
50686         Reported by Thomas Klausner <tk@giga.or.at>.
50687
50688 2008-04-12  Bruno Haible  <bruno@clisp.org>
50689
50690         * tests/test-strtod.c: Include isnand.h.
50691         (main): Use isnand instead of isnan.
50692         Reported by Jim Meyering.
50693
50694 2008-04-12  Bruno Haible  <bruno@clisp.org>
50695
50696         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50697         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50698
50699 2008-04-12  Jim Meyering  <meyering@redhat.com>
50700
50701         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50702
50703 2008-04-12  Bruno Haible  <bruno@clisp.org>
50704
50705         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50706         Reported by Elbert Pol <e.pol@chello.nl>.
50707
50708 2008-04-12  Eric Blake  <ebb9@byu.net>
50709
50710         Work around Solaris 10 math.h bug.
50711         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50712         (gl_MATH_H_DEFAULTS): Set up default.
50713         * modules/math (Makefile.am): Replace new indicators.
50714         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50715         * tests/test-math.c (main): Test this.
50716         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50717         * doc/posix-headers/math.texi (math.h): Mention bug.
50718         Reported by Nelson H. F. Beebe and Jim Meyering.
50719
50720 2008-04-11  Bruno Haible  <bruno@clisp.org>
50721
50722         Adapt to future versions of Apple GCC.
50723         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50724         Reported by Peter O'Gorman <peter@pogma.com>.
50725
50726 2008-04-11  Bruno Haible  <bruno@clisp.org>
50727
50728         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50729
50730 2008-04-11  Bruno Haible  <bruno@clisp.org>
50731
50732         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50733
50734         * modules/getaddrinfo-tests (Makefile.am): Define
50735         test_getaddrinfo_LDADD.
50736
50737 2008-04-11  Bruno Haible  <bruno@clisp.org>
50738
50739         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50740         (init): Fix syntax error.
50741         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50742         is declared.
50743
50744 2008-04-11  Bruno Haible  <bruno@clisp.org>
50745
50746         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50747         * modules/glob (Depends-on): Add stdbool.
50748
50749 2008-04-11  Bruno Haible  <bruno@clisp.org>
50750
50751         * lib/trim.c: Include <string.h>.
50752
50753 2008-04-11  Eric Blake  <ebb9@byu.net>
50754
50755         Avoid compile failure on OS/2.
50756         * lib/regex_internal.h (internal_function): Disable optimization
50757         on OS/2 (__EMX__), where it caused compiler error.
50758         Reported by Elbert Pol.
50759
50760 2008-04-11  Bruno Haible  <bruno@clisp.org>
50761
50762         Flush the standard error stream before aborting. Needed on mingw.
50763         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50764         * tests/test-array_list.c (ASSERT): Likewise.
50765         * tests/test-array_oset.c (ASSERT): Likewise.
50766         * tests/test-avltree_list.c (ASSERT): Likewise.
50767         * tests/test-avltree_oset.c (ASSERT): Likewise.
50768         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50769         * tests/test-binary-io.c (ASSERT): Likewise.
50770         * tests/test-byteswap.c (ASSERT): Likewise.
50771         * tests/test-c-ctype.c (ASSERT): Likewise.
50772         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50773         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50774         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50775         * tests/test-c-strstr.c (ASSERT): Likewise.
50776         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50777         * tests/test-canonicalize.c (ASSERT): Likewise.
50778         * tests/test-carray_list.c (ASSERT): Likewise.
50779         * tests/test-ceilf1.c (ASSERT): Likewise.
50780         * tests/test-ceilf2.c (ASSERT): Likewise.
50781         * tests/test-ceill.c (ASSERT): Likewise.
50782         * tests/test-count-one-bits.c (ASSERT): Likewise.
50783         * tests/test-fbufmode.c (ASSERT): Likewise.
50784         * tests/test-fflush2.c (ASSERT): Likewise.
50785         * tests/test-floorf1.c (ASSERT): Likewise.
50786         * tests/test-floorf2.c (ASSERT): Likewise.
50787         * tests/test-floorl.c (ASSERT): Likewise.
50788         * tests/test-fopen.c (ASSERT): Likewise.
50789         * tests/test-fpending.c (ASSERT): Likewise.
50790         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50791         * tests/test-fpurge.c (ASSERT): Likewise.
50792         * tests/test-freadable.c (ASSERT): Likewise.
50793         * tests/test-freadahead.c (ASSERT): Likewise.
50794         * tests/test-freading.c (ASSERT): Likewise.
50795         * tests/test-freadptr.c (ASSERT): Likewise.
50796         * tests/test-freadptr2.c (ASSERT): Likewise.
50797         * tests/test-freadseek.c (ASSERT): Likewise.
50798         * tests/test-freopen.c (ASSERT): Likewise.
50799         * tests/test-frexp.c (ASSERT): Likewise.
50800         * tests/test-frexpl.c (ASSERT): Likewise.
50801         * tests/test-fseek.c (ASSERT): Likewise.
50802         * tests/test-fseeko.c (ASSERT): Likewise.
50803         * tests/test-fstrcmp.c (ASSERT): Likewise.
50804         * tests/test-ftell.c (ASSERT): Likewise.
50805         * tests/test-ftello.c (ASSERT): Likewise.
50806         * tests/test-func.c (ASSERT): Likewise.
50807         * tests/test-fwritable.c (ASSERT): Likewise.
50808         * tests/test-fwriting.c (ASSERT): Likewise.
50809         * tests/test-getdelim.c (ASSERT): Likewise.
50810         * tests/test-getline.c (ASSERT): Likewise.
50811         * tests/test-i-ring.c (ASSERT): Likewise.
50812         * tests/test-iconv-utf.c (ASSERT): Likewise.
50813         * tests/test-iconv.c (ASSERT): Likewise.
50814         * tests/test-isfinite.c (ASSERT): Likewise.
50815         * tests/test-isnand.c (ASSERT): Likewise.
50816         * tests/test-isnanf.c (ASSERT): Likewise.
50817         * tests/test-isnanl.h (ASSERT): Likewise.
50818         * tests/test-ldexpl.c (ASSERT): Likewise.
50819         * tests/test-linked_list.c (ASSERT): Likewise.
50820         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50821         * tests/test-localename.c (ASSERT): Likewise.
50822         * tests/test-lseek.c (ASSERT): Likewise.
50823         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50824         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50825         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50826         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50827         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50828         * tests/test-mbschr.c (ASSERT): Likewise.
50829         * tests/test-mbscspn.c (ASSERT): Likewise.
50830         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50831         * tests/test-mbspbrk.c (ASSERT): Likewise.
50832         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50833         * tests/test-mbsrchr.c (ASSERT): Likewise.
50834         * tests/test-mbsspn.c (ASSERT): Likewise.
50835         * tests/test-mbsstr1.c (ASSERT): Likewise.
50836         * tests/test-mbsstr2.c (ASSERT): Likewise.
50837         * tests/test-mbsstr3.c (ASSERT): Likewise.
50838         * tests/test-memchr2.c (ASSERT): Likewise.
50839         * tests/test-memmem.c (ASSERT): Likewise.
50840         * tests/test-open.c (ASSERT): Likewise.
50841         * tests/test-printf-frexp.c (ASSERT): Likewise.
50842         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50843         * tests/test-printf-posix.c (ASSERT): Likewise.
50844         * tests/test-quotearg.c (ASSERT): Likewise.
50845         * tests/test-rbtree_list.c (ASSERT): Likewise.
50846         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50847         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50848         * tests/test-round1.c (ASSERT): Likewise.
50849         * tests/test-roundf1.c (ASSERT): Likewise.
50850         * tests/test-roundl.c (ASSERT): Likewise.
50851         * tests/test-signbit.c (ASSERT): Likewise.
50852         * tests/test-sleep.c (ASSERT): Likewise.
50853         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50854         * tests/test-snprintf.c (ASSERT): Likewise.
50855         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50856         * tests/test-stat-time.c (ASSERT): Likewise.
50857         * tests/test-strcasestr.c (ASSERT): Likewise.
50858         * tests/test-strerror.c (ASSERT): Likewise.
50859         * tests/test-striconv.c (ASSERT): Likewise.
50860         * tests/test-striconveh.c (ASSERT): Likewise.
50861         * tests/test-striconveha.c (ASSERT): Likewise.
50862         * tests/test-strsignal.c (ASSERT): Likewise.
50863         * tests/test-strstr.c (ASSERT): Likewise.
50864         * tests/test-strtod.c (ASSERT): Likewise.
50865         * tests/test-trunc1.c (ASSERT): Likewise.
50866         * tests/test-trunc2.c (ASSERT): Likewise.
50867         * tests/test-truncf1.c (ASSERT): Likewise.
50868         * tests/test-truncf2.c (ASSERT): Likewise.
50869         * tests/test-truncl.c (ASSERT): Likewise.
50870         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50871         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50872         * tests/test-vasnprintf.c (ASSERT): Likewise.
50873         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50874         * tests/test-vasprintf.c (ASSERT): Likewise.
50875         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50876         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50877         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50878         * tests/test-vsnprintf.c (ASSERT): Likewise.
50879         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50880         * tests/test-wcwidth.c (ASSERT): Likewise.
50881         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50882         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50883         * tests/test-xvasprintf.c (ASSERT): Likewise.
50884         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50885         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50886         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50887         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50888         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50889         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50890         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50891         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50892         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50893         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50894         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50895         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50896         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50897         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50898         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50899         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50900         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50901         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50902         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50903         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50904         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50905         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50906         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50907         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50908         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50909         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50910         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50911         * tests/unictype/test-combining.c (ASSERT): Likewise.
50912         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50913         * tests/unictype/test-digit.c (ASSERT): Likewise.
50914         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50915         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50916         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50917         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50918         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50919         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50920         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50921         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50922         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50923         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50924         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50925         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50926         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50927         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50928         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50929         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50930         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50931         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50932         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50933         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50934         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50935         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50936         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50937         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50938         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50939         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50940         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50941         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50942         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50943         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50944         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50945         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50946         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50947         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50948         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50949         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50950         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50951         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50952         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50953         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50954         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50955         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50956         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50957         Reported by Eric Blake.
50958
50959 2008-04-11  Bruno Haible  <bruno@clisp.org>
50960
50961         * lib/wchar.in.h: Tweak comment.
50962
50963 2008-04-11  Bruno Haible  <bruno@clisp.org>
50964
50965         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50966         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50967         gl_COMMON.
50968         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50969
50970 2008-04-11  Bruno Haible  <bruno@clisp.org>
50971
50972         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50973
50974 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50975
50976         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50977         of attempting to use non-existing /dev/*random.  Based on patch
50978         from Adam Strzelecki <ono@java.pl> in
50979         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50980
50981 2008-04-08  Bruno Haible  <bruno@clisp.org>
50982
50983         Add tentative support for emx+gcc.
50984         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50985         * lib/fpurge.c (fpurge): Likewise.
50986         * lib/freadable.c (freadable): Likewise.
50987         * lib/freadahead.c (freadahead): Likewise.
50988         * lib/freading.c (freading): Likewise.
50989         * lib/freadptr.c (freadptr): Likewise.
50990         * lib/freadseek.c (freadptrinc): Likewise.
50991         * lib/fseeko.c (rpl_fseeko): Likewise.
50992         * lib/fseterr.c (fseterr): Likewise.
50993         * lib/fwritable.c (fwritable): Likewise.
50994         * lib/fwriting.c (fwriting): Likewise.
50995         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50996
50997 2008-04-09  Eric Blake  <ebb9@byu.net>
50998
50999         Avoid some autoconf warnings.
51000         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51001         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51002         * m4/afs.m4 (gl_AFS): Likewise.
51003         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51004         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51005         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51006         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51007         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51008         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51009         (AC_CHECK_DECLS_ONCE): Likewise.
51010         Rename file...
51011         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51012         gnulib-tool requires autoconf 2.59 or better.
51013         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51014
51015 2008-04-08  Eric Blake  <ebb9@byu.net>
51016
51017         Use 'git describe --match' if present (added in git 1.5.5).
51018         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51019         if possible.
51020
51021 2008-04-08  Bruno Haible  <bruno@clisp.org>
51022
51023         Add tentative support for OpenServer.
51024         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51025         _ptr, _cnt.
51026         * lib/fpurge.c (fpurge): Likewise.
51027         * lib/freadable.c (freadable): Likewise.
51028         * lib/freadahead.c (freadahead): Likewise.
51029         * lib/freading.c (freading): Likewise.
51030         * lib/freadptr.c (freadptr): Likewise.
51031         * lib/freadseek.c (freadptrinc): Likewise.
51032         * lib/fseeko.c (rpl_fseeko): Likewise.
51033         * lib/fseterr.c (fseterr): Likewise.
51034         * lib/fwritable.c (fwritable): Likewise.
51035         * lib/fwriting.c (fwriting): Likewise.
51036         Reported by Roger Cornelius <rac@tenzing.org> and
51037         Brian K. White <brian@aljex.com>.
51038
51039 2008-04-06  Jim Meyering  <meyering@redhat.com>
51040
51041         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51042
51043 2008-04-06  Bruno Haible  <bruno@clisp.org>
51044
51045         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51046         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51047         * tests/test-printf-posix.sh: Likewise.
51048         * tests/test-vfprintf-posix.sh: Likewise.
51049         * tests/test-vprintf-posix.sh: Likewise.
51050         * tests/test-xprintf-posix.sh: Likewise.
51051
51052 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51053
51054         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51055         hide error from 'ls', needed on OS/2.
51056         Report by Elbert Pol <elbert.pol@gmail.com>.
51057
51058 2008-04-04  Eric Blake  <ebb9@byu.net>
51059
51060         Make test-fseeko.c failures meaningful.
51061         * tests/test-fseeko.c: Print line number on failure.
51062         * tests/test-fseek.c: Likewise.
51063         Reported by Nelson H. F. Beebe.
51064
51065         Improve strtod bug detection check.
51066         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51067         required for Solaris 10.
51068         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51069
51070 2008-04-04  Bruno Haible  <bruno@clisp.org>
51071
51072         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51073         by m4/setenv.m4.
51074
51075 2008-04-03  Eric Blake  <ebb9@byu.net>
51076
51077         Ensure sane .version contents.
51078         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51079         version string.
51080         * build-aux/git-version-gen: Improve documentation.
51081
51082         Make GNU make output nicer.
51083         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51084         MAKECMDGOALS to enforce message for all command line targets.  Set
51085         srcdir for use in maint.mk.
51086
51087         Another maintainer tweak.
51088         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51089         a target that regenerates version.
51090
51091 2008-04-03  Jim Meyering  <meyering@redhat.com>
51092
51093         vc-list-files: don't cause coreutils "make po-check" failure
51094         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51095
51096 2008-04-03  Eric Blake  <ebb9@byu.net>
51097
51098         Allow VPATH usage of vc-list-files.
51099         * build-aux/vc-list-files (scriptversion): Add timestamp.
51100         (options): Add --help, --version, -C.
51101         (CVS): Support installed cvsu.
51102
51103 2008-04-02  Bruno Haible  <bruno@clisp.org>
51104
51105         Avoid some "statement with no effect" warnings from gcc.
51106         * tests/test-wctype.c (main): Explicitly ignore unused values.
51107         Reported by Jim Meyering.
51108
51109 2008-04-02  Jim Meyering  <meyering@redhat.com>
51110
51111         Avoid some warnings from "gcc -Wshadow".
51112         * tests/test-frexp.c (exp): Define to a different identifier.
51113         * tests/test-frexpl.c (exp): Likewise.
51114
51115 2008-04-03  Jim Meyering  <meyering@redhat.com>
51116
51117         bootstrap: remove dangling *.[ch] symlinks from lib
51118         * build-aux/bootstrap [dangling symlink removal]: Move find's
51119         -depth option to precede all others, to avoid a warning.
51120         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51121
51122 2008-04-02  Bruno Haible  <bruno@clisp.org>
51123
51124         Avoid some warnings from "gcc -Wshadow".
51125         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51126         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51127         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51128         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51129         Reported by Jim Meyering.
51130
51131 2008-04-01  Bruno Haible  <bruno@clisp.org>
51132
51133         Fix test to work on IRIX 6.5 with cc.
51134         * tests/test-math.c (numeric_equal): New function.
51135         (main): Use it.
51136
51137 2008-04-01  Bruno Haible  <bruno@clisp.org>
51138
51139         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51140
51141 2008-04-01  Bruno Haible  <bruno@clisp.org>
51142
51143         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51144         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51145         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51146         (Depends-on): Remove math.
51147
51148         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51149         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51150         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51151         (Depends-on): Remove math.
51152
51153         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51154         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51155         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51156         (Depends-on): Remove math.
51157         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51158         (Depends-on): Remove math.
51159
51160         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51161         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51162         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51163         (Depends-on): Remove math.
51164         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51165         (Depends-on): Remove math.
51166
51167         * tests/test-round1.c: Include nan.h.
51168         (main): Use NaNd instead of NAN.
51169         * modules/round-tests (Files): Add tests/nan.h.
51170
51171         * tests/test-trunc1.c: Include nan.h.
51172         (main): Use NaNd instead of NAN.
51173         * modules/trunc-tests (Files): Add tests/nan.h.
51174
51175         * tests/test-roundf1.c: Include nan.h.
51176         (main): Use NaNf instead of NAN.
51177         * modules/roundf-tests (Files): Add tests/nan.h.
51178
51179         * tests/test-truncf1.c: Include nan.h.
51180         (main): Use NaNf instead of NAN.
51181         * modules/truncf-tests (Files): Add tests/nan.h.
51182
51183         * tests/test-ceilf1.c: Include nan.h.
51184         (main): Use NaNf instead of NAN.
51185         * modules/ceilf-tests (Files): Add tests/nan.h.
51186
51187         * tests/test-floorf1.c: Include nan.h.
51188         (main): Use NaNf instead of NAN.
51189         * modules/floorf-tests (Files): Add tests/nan.h.
51190
51191         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51192         (main): Use NaNf instead of NAN.
51193         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51194
51195         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51196         (main): Use NaNd instead of NAN.
51197         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51198
51199         * tests/test-frexp.c: Include nan.h.
51200         (main): Use NaNd instead of NAN.
51201         * modules/frexp-tests (Files): Add tests/nan.h.
51202
51203         * lib/isnan.c: Don't include <math.h>.
51204         (FUNC): Don't use NAN macro.
51205         * modules/isnand-nolibm (Depends-on): Remove math.
51206         * modules/isnanf-nolibm (Depends-on): Remove math.
51207         * modules/isnanl (Depends-on): Remove math.
51208         * modules/isnanl-nolibm (Depends-on): Remove math.
51209
51210         * tests/nan.h: New file.
51211
51212 2008-04-01  Eric Blake  <ebb9@byu.net>
51213
51214         Fix typos.
51215         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51216         values to be the right type.
51217
51218         For now, cater to gnulib strtod inaccuracies.
51219         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51220         fractional results.  While not as nice from a QoI perspective, it
51221         is a quicker patch than correctly implementing decimal to binary
51222         rounding.
51223
51224 2008-03-31  Eric Blake  <ebb9@byu.net>
51225
51226         Guarantee a definition of NAN.
51227         * lib/math.in.h (NAN): Define if missing.
51228         * tests/test-math.c (main): Test it.
51229         * doc/posix-headers/math.texi (math.h): Document this.
51230         * lib/isnan.c (rpl_isnand): Use it.
51231         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51232         * tests/test-floorf1.c (NaN): Likewise.
51233         * tests/test-frexp.c (NaN): Likewise.
51234         * tests/test-isnand.c (NaN): Likewise.
51235         * tests/test-isnanf.c (NaN): Likewise.
51236         * tests/test-round1.c (NaN): Likewise.
51237         * tests/test-roundf1.c (NaN): Likewise.
51238         * tests/test-snprintf-posix.h (NaN): Likewise.
51239         * tests/test-sprintf-posix.h (NaN): Likewise.
51240         * tests/test-trunc1.c (NaN): Likewise.
51241         * tests/test-truncf1.c (NaN): Likewise.
51242         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51243         * tests/test-vasprintf-posix.c (NaN): Likewise.
51244         * modules/isnand-nolibm (Depends-on): Add math.
51245         * modules/isnanf-nolibm (Depends-on): Likewise.
51246         * modules/isnanl (Depends-on): Likewise.
51247         * modules/isnanl-nolibm (Depends-on): Likewise.
51248         * modules/snprintf-posix-tests (Depends-on): Likewise.
51249         * modules/sprintf-posix-tests (Depends-on): Likewise.
51250         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51251         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51252         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51253         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51254
51255 2008-03-31  Bruno Haible  <bruno@clisp.org>
51256
51257         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51258         * doc/posix-functions/strtod.texi: Likewise.
51259
51260 2008-03-31  Bruno Haible  <bruno@clisp.org>
51261
51262         * tests/test-strtod.c (main): Don't use C99 syntax.
51263
51264 2008-03-31  Bruno Haible  <bruno@clisp.org>
51265
51266         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51267         Reported by Eric Blake.
51268
51269 2008-03-31  Jim Meyering  <meyering@redhat.com>
51270
51271         Don't compare actual signbit return values.
51272         * tests/test-strtod.c (main): Rather, compare only their
51273         zero/non-zero nature.
51274
51275 2008-03-31  Eric Blake  <ebb9@byu.net>
51276
51277         More strtod documentation.
51278         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51279         failures as distinct bugs.
51280
51281 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51282
51283         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51284         Problem reported by Erik Benada in
51285         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51286
51287 2008-03-30  Bruno Haible  <bruno@clisp.org>
51288
51289         * tests/test-strtod.c: Add comments about which assertion fails on which
51290         platform.
51291         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51292
51293 2008-03-30  Eric Blake  <ebb9@byu.net>
51294
51295         Test signbit behavior on zeros.
51296         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51297         (test_signbitd, test_signbitl): Likewise.
51298
51299         More strtod touchups.
51300         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51301         sign of negative underflow, for now.  Use .5, not .1.
51302         * doc/posix-functions/strtod.texi (strtod): Mention these
51303         limitations.
51304         Reported by Jim Meyering.
51305
51306 2008-03-30  Bruno Haible  <bruno@clisp.org>
51307
51308         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51309         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51310
51311 2008-03-30  Bruno Haible  <bruno@clisp.org>
51312
51313         Avoid failure when attempting to return empty iconv results on some
51314         platforms.
51315         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51316         allocation, don't report ENOMEM when the resulting string is empty.
51317
51318 2008-03-30  Bruno Haible  <bruno@clisp.org>
51319
51320         Fix buffer overrun.
51321         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51322         Don't consider the width for tmp_length. Check count against tmp_length
51323         before doing the padding. Ensure enough allocation during padding.
51324
51325 2008-03-30  Eric Blake  <ebb9@byu.net>
51326
51327         strtod touchups.
51328         * lib/strtod.c (strtod): Avoid compiler warnings.
51329         Reported by Jim Meyering.
51330
51331 2008-03-30  Bruno Haible  <bruno@clisp.org>
51332
51333         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51334         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51335         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51336         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51337         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51338         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51339         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51340         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51341
51342         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51343         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51344         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51345         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51346         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51347         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51348         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51349         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51350
51351         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51352         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51353         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51354         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51355         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51356         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51357         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51358         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51359
51360         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51361         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51362
51363         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51364         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51365
51366         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51367         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51368
51369         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51370         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51371         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51372
51373         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51375         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51376
51377         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51378         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51379         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51380
51381         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51382         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51383         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51384
51385         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51386         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51387         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51388         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51389         (Depends-on): Add EOVERFLOW.
51390         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51391         (Depends-on): Add EOVERFLOW.
51392         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51393         (Depends-on): Add EOVERFLOW.
51394         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51395         (Depends-on): Add EOVERFLOW.
51396         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51397         (Depends-on): Add EOVERFLOW.
51398         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51399         (Depends-on): Add EOVERFLOW.
51400         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51401         (Depends-on): Add EOVERFLOW.
51402         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51403         (Depends-on): Add EOVERFLOW.
51404
51405         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51406         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51407         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51408
51409         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51410         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51411         * modules/snprintf (Depends-on): Add EOVERFLOW.
51412
51413         * lib/poll.c (EOVERFLOW): Remove fallback.
51414         * modules/poll (Depends-on): Add EOVERFLOW.
51415
51416         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51417         * modules/getugroups (Depends-on): Add EOVERFLOW.
51418
51419         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51420         * modules/getdelim (Depends-on): Add EOVERFLOW.
51421
51422         * lib/ftell.c (EOVERFLOW): Remove fallback.
51423         * modules/ftell (Depends-on): Add EOVERFLOW.
51424
51425         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51426         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51427         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51428
51429         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51430
51431         * modules/EOVERFLOW-tests: New file.
51432         * tests/test-EOVERFLOW.c: New file.
51433
51434         * modules/EOVERFLOW: New file.
51435         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51436
51437 2008-03-30  Bruno Haible  <bruno@clisp.org>
51438
51439         Fix bug introduced on 2007-06-10.
51440         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51441         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51442
51443 2008-03-30  Bruno Haible  <bruno@clisp.org>
51444
51445         Improve freadseek's efficiency after ungetc.
51446         * lib/freadseek.c: Include freadahead.h.
51447         (freadptrinc): New function, extracted from freadseek.
51448         (freadseek): Use it in a loop. Use freadahead to determine the number
51449         of loop iterations.
51450         * modules/freadseek (Depends-on): Add freadahead.
51451         (configure.ac): Require AC_C_INLINE.
51452
51453 2008-03-30  Bruno Haible  <bruno@clisp.org>
51454
51455         * lib/freadseek.c (freadseek): Don't ignore the return value of
51456         freadptr.
51457
51458 2008-03-29  Eric Blake  <ebb9@byu.net>
51459
51460         Add hex float support.
51461         * modules/strtod (Depends-on): Add c-ctype.
51462         (Link): Mention POW_LIB.
51463         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51464         whitespace between 'e' and exponent.
51465         * tests/test-strtod.c (main): Enable hex float tests.
51466         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51467         now provides.
51468
51469         Document various strtod bugs, with some fixes.
51470         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51471         "-0x", "inf", "nan", and hex constants.
51472         * doc/posix-functions/atof.texi (atof): Likewise.
51473         * modules/stdlib (Makefile.am): Support strtod.
51474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51475         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51476         detect additional strtod bugs.
51477         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51478         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51479         bool where appropriate.  Parse 'inf' and 'nan'.
51480         * tests/test-strtod.c: New file.
51481         * modules/strtod (Depends-on): Add stdbool, stdlib.
51482         (configure.ac): Turn on module indicator.
51483         * modules/strtod-tests: New module.
51484
51485 2008-03-29  Eric Blake  <ebb9@byu.net>
51486
51487         Fix ftell on mingw.
51488         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51489         * modules/ftell-tests (Depends-on): Add binary-io.
51490         * modules/ftello-tests (Depends-on): Likewise.
51491         * tests/test-ftell.c (main): Enhance test to cover behavior after
51492         ungetc.  Enforce binary mode.
51493         * tests/test-ftello.c (main): Likewise.
51494
51495         Pass test-freadseek on cygwin.
51496         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51497         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51498         ungetc buffer.
51499
51500         * tests/test-fflush2.c (main): Fix typo.
51501
51502 2008-03-29  Bruno Haible  <bruno@clisp.org>
51503
51504         * tests/test-fflush2.c (main): Temporarily disable the contents of
51505         this test.
51506         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51507         Reported by Eric Blake.
51508
51509 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51510
51511         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51512         (GC_SHA224_DIGEST_SIZE): Add.
51513
51514         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51515         (gc_hash_digest_length): Likewise.
51516         (gc_hash_buffer): Likewise.
51517
51518 2008-03-25  Bruno Haible  <bruno@clisp.org>
51519
51520         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51521         detail which gettext release to use.
51522         Reported by Simon Josefsson.
51523
51524 2008-03-26  Jim Meyering  <meyering@redhat.com>
51525
51526         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51527         * modules/gnumakefile (clean-GNUmakefile): Also, use
51528         test ... && ... || : syntax rather than if-then ... fi.
51529
51530         gnumakefile: Don't double-quote-expand $(VPATH) value.
51531         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51532
51533 2008-03-24  Eric Blake  <ebb9@byu.net>
51534
51535         Alter GNUmakefile to install into top directory.
51536         * modules/maintainer-makefile: Split, and add dependency...
51537         * modules/gnumakefile: to this new module.
51538         * build-aux/GNUmakefile: Move...
51539         * top/GNUmakefile: ...here.
51540         * build-aux/maint.mk: Move...
51541         * top/maint.mk: ...here.
51542         * MODULES.html.sh (Support for maintaining...): Document new
51543         module.
51544
51545 2008-03-23  Bruno Haible  <bruno@clisp.org>
51546
51547         * gnulib-tool: New options --vc-files, --no-vc-files.
51548         (func_usage): Document them.
51549         (vc_files): New variable.
51550         (func_import): Consider vc_files.
51551         (func_create_testdir): Set vc_files to empty.
51552         Suggested by Jim Meyering and Karl Berry.
51553
51554 2008-03-23  Bruno Haible  <bruno@clisp.org>
51555
51556         Fix regex compilation error on HP-UX 11.
51557         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51558         * modules/regex (Files): Add m4/mbstate_t.m4.
51559         Reported by Ton Voon <ton.voon@altinity.com>.
51560
51561 2008-03-23  Bruno Haible  <bruno@clisp.org>
51562
51563         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51564
51565 2008-03-23  Eric Blake  <ebb9@byu.net>
51566             Bruno Haible  <bruno@clisp.org>
51567
51568         Install files from top/ in the destination directory.
51569         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51570         augmentation also for the files from top/.
51571         (func_import, func_create_testdir): Rewrite file names:
51572         top/filename -> filename.
51573
51574 2008-03-23  Bruno Haible  <bruno@clisp.org>
51575
51576         Tweak "gnulib --version" output.
51577         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51578
51579 2008-03-23  Bruno Haible  <bruno@clisp.org>
51580
51581         Tweak "gnulib --version" output.
51582         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51583         rather than contents of ChangeLog, when possible.
51584
51585 2008-03-21  Eric Blake  <ebb9@byu.net>
51586
51587         More --version tweaks.
51588         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51589         date of last ChangeLog entry.
51590
51591 2008-03-21  Jim Meyering  <meyering@redhat.com>
51592
51593         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51594
51595 2008-03-20  Eric Blake  <ebb9@byu.net>
51596
51597         VPATH fix.
51598         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51599
51600 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51601
51602         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51603         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51604
51605 2008-03-20  Eric Blake  <ebb9@byu.net>
51606
51607         Sync GNUmakefile with coreutils.
51608         * build-aux/GNUmakefile (have-Makefile): Rename...
51609         (_have-Makefile): ...to this, for namespace consideration.
51610         (GNUmakefile.cfg): Include, if present.
51611         (_autoreconf): Define a default.
51612         (_is-dist-target): New rule for rebuilds to pick up intra-release
51613         version.
51614         (maint-cfg.mk): Rename...
51615         (cfg.mk): ...to this.
51616
51617 2008-03-18  Jim Meyering  <meyering@redhat.com>
51618
51619         New script and module: mktempd
51620         * MODULES.html.sh (maint+release support): Add mktempd.
51621         * build-aux/mktempd: New file.
51622         * modules/mktempd: New file.
51623
51624 2008-03-15  Jim Meyering  <meyering@redhat.com>
51625
51626         Undo last change.
51627         * lib/sha1.c, lib/md5.c: 63 != ~63.
51628         Reported by Andreas Schwab.
51629
51630         sha1.c, md5.c: Hoist a redundant expression.
51631         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51632         "ctx->buflen" only once, before calling *_process_block.
51633         * lib/md5.c (md5_process_bytes): Likewise.
51634
51635 2008-03-14  Eric Blake  <ebb9@byu.net>
51636
51637         Bump copyright year in files generated by gnulib-tool.
51638         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51639         gnulib-tool, rather than hard-coding it.
51640
51641         Fix 'gnulib-tool --version' output to work with git.
51642         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51643         (startup): ...here.
51644         (func_version): Use it to invoke git-version-gen, rather than
51645         relying on CVS keyword expansion.  Modernize wording.
51646         (cvsdatestamp, last_checkin_date, version): Kill unused
51647         variables.
51648
51649 2008-03-12  Jim Meyering  <meyering@redhat.com>
51650
51651         Recognize optional cast of the argument to free.
51652         * build-aux/useless-if-before-free: Update regexps.
51653
51654         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51655
51656 2008-03-11  Bruno Haible  <bruno@clisp.org>
51657
51658         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51659         by a single package.
51660         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51661         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51662         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51663         Reported by Sam Steingold <sds@gnu.org>.
51664
51665 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51666
51667         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51668         repositories.
51669
51670 2008-03-11  Bruno Haible  <bruno@clisp.org>
51671
51672         Avoid conflicts between local macro definitions.
51673         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51674         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51675
51676 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51677             Bruno Haible  <bruno@clisp.org>
51678
51679         Make va_copy work with some version of xlc on AIX 5.1.
51680         * lib/stdarg.in.h: New file.
51681         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51682         On AIX, use a <stdarg.h> file substitute.
51683         * modules/stdarg (Files): Add lib/stdarg.in.h.
51684         (Depends-on): Add include_next.
51685         (Makefile.am): Build a stdarg.h substitute if requested.
51686         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51687
51688 2008-03-10  Bruno Haible  <bruno@clisp.org>
51689
51690         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51691         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51692         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51693
51694 2008-03-10  Bruno Haible  <bruno@clisp.org>
51695
51696         * modules/stdlib (Depends-on): Add include_next, remove
51697         absolute-header.
51698
51699 2008-03-09  Bruno Haible  <bruno@clisp.org>
51700
51701         * lib/freadahead.h (freadahead): Document more precisely.
51702         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51703         the sum of both buffer sizes.
51704         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51705         * NEWS: Document the change.
51706
51707 2008-03-09  Bruno Haible  <bruno@clisp.org>
51708
51709         Extend freadptr to return also the buffer size.
51710         * lib/freadptr.h (freadptr): Add sizep argument.
51711         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51712         (freadptr): Add sizep argument. Determine buffer size like freadahead
51713         does.
51714         * tests/test-freadptr.c: Don't include freadahead.h.
51715         (main): Adapt for new calling convention of freadptr.
51716         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51717         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51718         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51719         tests/test-freadptr2.sh.
51720         (Depends): Remove freadahead.
51721         (TESTS): Add test-freadptr2.sh.
51722         (check_PROGRAMS): Add test-freadptr2.
51723
51724 2008-03-09  Bruno Haible  <bruno@clisp.org>
51725
51726         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51727         Report and solution by Simon Josefsson.
51728
51729 2008-03-06  Bruno Haible  <bruno@clisp.org>
51730
51731         Make fflush after ungetc work on BSD platforms.
51732         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51733         * tests/test-fflush2.c: New file.
51734         * tests/test-fflush2.sh: New file.
51735         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51736         tests/test-fflush2.c.
51737         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51738         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51739
51740 2008-03-06  Eric Blake  <ebb9@byu.net>
51741
51742         Likewise for ftello.
51743         * modules/ftello (Dependencies): Add extensions.
51744         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51745
51746 2008-03-06  Bruno Haible  <bruno@clisp.org>
51747
51748         * modules/fseeko (Dependencies): Add extensions.
51749         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51750         Needed on glibc systems.
51751
51752 2008-03-06  Bruno Haible  <bruno@clisp.org>
51753
51754         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51755         email address.
51756         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51757
51758 2008-03-06  Bruno Haible  <bruno@clisp.org>
51759
51760         * users.txt: Add libgnupdf.
51761
51762 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51763
51764         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51765         (Header File Substitutes, Function Substitutes,
51766         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51767         (Build robot for gnulib): Fix typo.
51768
51769 2008-03-06  Bruno Haible  <bruno@clisp.org>
51770
51771         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51772         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51773
51774 2008-03-06  Bruno Haible  <bruno@clisp.org>
51775
51776         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51777         * doc/gnulib.texi: Include it.
51778
51779 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51780
51781         * modules/func (License): Change license to unlimited; there was
51782         no LGPL parts in the module anyway.
51783
51784 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51785
51786         * modules/__func__: Renamed to modules/func.
51787         * modules/__func__-tests: Renamed to modules/func-tests.
51788         * tests/test-__func__.c: Renamed to tests/test-func.c.
51789         * m4/__func__.m4: Renamed to m4/func.m4.
51790         * doc/gnulib.texi (__func__): Section renamed to func.
51791         Suggested by Eric Blake <ebb9@byu.net>.
51792
51793 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51794
51795         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51796         about __func__.  Make example self-contained.  Suggested by Eric
51797         Blake <ebb9@byu.net>.
51798
51799         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51800         Suggested by Eric Blake <ebb9@byu.net>.
51801
51802 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51803
51804         * modules/__func__: New file.
51805         * modules/__func__-tests: New file.
51806         * tests/test-__func__.c: New file.
51807         * m4/__func__.m4: New file.
51808         * doc/gnulib.texi (__func__): Document __func__ module.
51809
51810 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51811
51812         * modules/byteswap (License): Re-license as LGPLv2+.
51813
51814 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51815
51816         * doc/Makefile: Add pdf target.
51817
51818 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51819
51820         * modules/inline (License): Use 'unlimited', since there are only
51821         *.m4 files in this module.
51822
51823 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51824             Bruno Haible  <bruno@clisp.org>
51825
51826         Add support for HP C 7.1 on OpenVMS 8.3.
51827         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51828
51829 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51830
51831         Update VMS specifics.
51832         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51833
51834 2008-03-02  Jim Meyering  <meyering@redhat.com>
51835
51836         Remove the last dependency on the "free" module.
51837         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51838         Reported by Bob Proulx.
51839
51840         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51841
51842         Remove useless "if" tests before free.  Deprecate "free" module.
51843         * doc/posix-functions/free.texi: Mention that this
51844         module is no longer useful.
51845         * modules/free (Notice): Say this module is obsolete.
51846         * modules/readutmp (Depends-on): Remove free.
51847         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51848         * lib/putenv.c (putenv): Likewise.
51849         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51850         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51851         * tests/test-c-strcasestr.c (main): Likewise.
51852         * tests/test-c-strstr.c (main): Likewise.
51853         * tests/test-mbscasestr1.c (main): Likewise.
51854         * tests/test-mbscasestr2.c (main): Likewise.
51855         * tests/test-mbsstr1.c (main): Likewise.
51856         * tests/test-mbsstr2.c (main): Likewise.
51857         * tests/test-memmem.c (main): Likewise.
51858         * tests/test-strcasestr.c (main): Likewise.
51859         * tests/test-striconv.c (main): Likewise.
51860         * tests/test-striconveh.c (main): Likewise.
51861         * tests/test-striconveha.c (main): Likewise.
51862         * tests/test-strstr.c (main): Likewise.
51863
51864         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51865
51866         bootstrap: sync from coreutils again
51867         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51868
51869 2008-03-01  Jim Meyering  <meyering@redhat.com>
51870
51871         bootstrap: sync from coreutils
51872         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51873         also when the target doesn't exist.
51874
51875 2008-03-01  Eric Blake  <ebb9@byu.net>
51876
51877         Fix bugs in last patch.
51878         * lib/memchr2.c (memchr2): Fix typo.
51879         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51880         extension.
51881         Reported by Bruce Korb.
51882
51883         New module 'memchr2'.
51884         * modules/memchr2: New file.
51885         * modules/memchr2-tests: Likewise.
51886         * lib/memchr2.h: Likewise.
51887         * lib/memchr2.c: Likewise, based on memchr.c.
51888         * tests/test-memchr2.c: New test.
51889         * MODULES.html.sh (String handling): Add memchr2.
51890
51891 2008-02-29  Bruno Haible  <bruno@clisp.org>
51892
51893         * modules/freadseek-tests: New file.
51894         * tests/test-freadseek.sh: New file.
51895         * tests/test-freadseek.c: New file.
51896
51897         New module 'freadseek'.
51898         * modules/freadseek: New file.
51899         * lib/freadseek.h: New file.
51900         * lib/freadseek.c: New file.
51901         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51902
51903 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51904
51905         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51906         wydawca.
51907
51908         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51909         program_invocation_name and program_invocation_short_name are
51910         present.
51911
51912 2008-02-28  Bruno Haible  <bruno@clisp.org>
51913
51914         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51915         * tests/test-freadptr.sh: Also test non-seekable stdin.
51916
51917 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51918
51919         * build-aux/bootstrap (source_base, m4_base)
51920         (doc_base, tests_base): New variables.
51921         (gnulib_tool_options): Do not hardcode base directories, use
51922         the above variables instead.
51923
51924 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51925
51926         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51927
51928 2008-02-28  Bruno Haible  <bruno@clisp.org>
51929
51930         * modules/freadptr-tests: New file.
51931         * tests/test-freadptr.sh: New file.
51932         * tests/test-freadptr.c: New file.
51933
51934         New module 'freadptr'.
51935         * modules/freadptr: New file.
51936         * lib/freadptr.h: New file.
51937         * lib/freadptr.c: New file.
51938         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51939
51940 2008-02-26  Karl Berry  <karl@freefriends.org>
51941
51942         Sync from Libtool:
51943         * libltdl/argz.c (argz_add, argz_count): New functions.
51944         * libltdl/argz.in.h: Declare them.
51945         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51946
51947 2008-02-22  Bruno Haible  <bruno@clisp.org>
51948
51949         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51950         is a pointer type.  Needed for HP-UX 10.
51951         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51952         * doc/posix-functions/gmtime_r.texi: Likewise.
51953         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51954
51955 2008-02-24  Bruno Haible  <bruno@clisp.org>
51956
51957         * modules/environ-tests: New file.
51958         * tests/test-environ.c: New file.
51959
51960         New module 'environ'.
51961         * modules/environ: New file.
51962         * lib/unistd.in.h (environ): New declaration.
51963         * m4/environ.m4: New file.
51964         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51965         after use.
51966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51967         HAVE_DECL_ENVIRON.
51968         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51969         HAVE_DECL_ENVIRON.
51970         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51971         wrong claim that 'environ' is missing on some systems.
51972         * modules/execute (Depends-on): Add environ.
51973         * lib/execute.c (environ): Remove fallback declaration.
51974         * modules/pipe (Depends-on): Add environ.
51975         * lib/pipe.c (environ): Remove fallback declaration.
51976         * modules/setenv (Depends-on): Add environ.
51977         * lib/setenv.c (environ): Remove fallback declaration.
51978         * modules/unsetenv (Depends-on): Add environ.
51979         * lib/unsetenv.c (environ): Remove fallback declaration.
51980         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51981         m4/environ.m4.
51982         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51983         (gl_PREREQ_UNSETENV): Likewise.
51984
51985 2008-02-24  Bruno Haible  <bruno@clisp.org>
51986
51987         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51988
51989 2008-02-20  Bob Proulx  <bob@proulx.com>
51990
51991         Enable use of older two part flavor 'git describe'.
51992         * build-aux/git-version-gen: If using the older two part flavor of
51993         git version then recreate the third part now present in the
51994         newer three part flavor of git describe.
51995
51996 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51997
51998         * lib/fts.c (fts_build): Typo correction to comment.
51999
52000 2008-02-17  Bruno Haible  <bruno@clisp.org>
52001
52002         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52003         generating no-op conflicts.
52004
52005 2008-02-17  Bruno Haible  <bruno@clisp.org>
52006
52007         Speed up by 10%.
52008         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52009         result_entries, rather than an index-based loop.
52010
52011 2008-02-17  Bruno Haible  <bruno@clisp.org>
52012
52013         Speed up by 25%.
52014         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52015         'hashcode_cached'.
52016         (entry_create): New function.
52017         (entry_hashcode): Use the cached hashcode if possible.
52018         (read_changelog_file, try_split_merged_entry): Use entry_create.
52019
52020 2008-02-17  Bruno Haible  <bruno@clisp.org>
52021
52022         Speed up from O(n^2) to O(n) for long ChangeLog files.
52023         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52024         (read_changelog_file): Change implementation of entries_reversed list
52025         to rbtreehash.
52026         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52027
52028 2008-02-17  Bruno Haible  <bruno@clisp.org>
52029
52030         New option --split-merged-entry.
52031         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52032         (find_paragraph_end, try_split_merged_entry): New functions.
52033         (long_options): Add option --split-merged-entry.
52034         (usage): Document option --split-merged-entry.
52035         (main): Implement option --split-merged-entry.
52036         Reported by Eric Blake.
52037
52038 2008-02-17  Bruno Haible  <bruno@clisp.org>
52039
52040         * lib/git-merge-changelog.c: Include c-strstr.h.
52041         (main): Support the "git pull --rebase" situation.
52042         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52043         Reported by Eric Blake.
52044
52045 2008-02-16  Eric Blake  <ebb9@byu.net>
52046
52047         Avoid doubling \ in common case of "c-maybe" quoting style.
52048         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52049         eliding outer quotes.
52050         * lib/quotearg.h: Document this.
52051         * tests/test-quotearg.c (result_strings, inputs, results_g)
52052         (flag_results, locale_results): Test it by adding a new string to
52053         each test group.
52054         (compare_strings): Test new string.
52055
52056 2008-02-13  Eric Blake  <ebb9@byu.net>
52057
52058         Avoid trigraph quoting in default output.
52059         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52060         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52061         unless explicitly requested.
52062         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52063
52064 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52065
52066         Don't rely on signed integer overflowing to negative value.
52067         * lib/getugroups.c (getugroups): Include <limits.h>.
52068         Instead, compare against INT_MAX, and increment only if the test passes.
52069
52070 2008-02-13  Jim Meyering  <meyering@redhat.com>
52071         and Eric Blake  <ebb9@byu.net>
52072
52073         Avoid shadowing warning and compile errors on Linux.
52074         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52075         forwarding macros on Linux.
52076         (dcgettext): Define a stub, for Linux.
52077         (results_g, main): Avoid warnings.
52078
52079 2008-02-12  Eric Blake  <ebb9@byu.net>
52080
52081         Silence warning in last patch.
52082         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52083
52084         Quotearg part 4: add tests, fix c-maybe colon quoting.
52085         * lib/quotearg.h: Improve documentation.
52086         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52087         escapes when adding outer quotes.  When quoting trigraphs, use
52088         valid C notation.  When quoting NUL, omit extra characters if next
52089         character is not digit.  Alter prototype.
52090         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52091         callers.
52092         * modules/quotearg-tests: New module.
52093         * tests/test-quotearg.c: New test.
52094
52095 2008-02-07  Eric Blake  <ebb9@byu.net>
52096
52097         Quotearg part 3: add flag to control outer quote elision.
52098         * lib/quotearg.h (c_maybe_quoting_style): New style.
52099         (enum quoting_flags): Better documentation of flags.
52100         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52101         c-maybe style.
52102         (quotearg_buffer_restyled): Handle new flag to elide outer
52103         quotes.
52104
52105         Quotearg part 2: add flag that can control NUL elision.
52106         * lib/quotearg.h (set_quoting_flags): New prototype.
52107         * lib/quotearg.c (struct quoting_options): Add flag field.
52108         (set_quoting_flags): New function.
52109         (quotearg_buffer_restyled): Add flags parameter.
52110         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52111         (quotearg_n_options): Set the flag, since length cannot be
52112         returned.
52113         (quoting_options_from_style): Default flags correctly.
52114
52115         Quotearg part 1: more wrappers, restore quotearg_char state.
52116         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52117         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52118         (quotearg_colon_mem): New wrappers.
52119         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52120         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52121         functions.
52122         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52123         (quotearg_colon_mem): New functions.
52124
52125 2008-02-11  Bruno Haible  <bruno@clisp.org>
52126
52127         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52128         library in the current directory: it does not work with parallel make.
52129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52130
52131 2008-02-11  Bruno Haible  <bruno@clisp.org>
52132
52133         * .gitattributes: New file.
52134
52135 2008-02-11  Jim Meyering  <meyering@redhat.com>
52136
52137         useless-if-before-free: Fix reversed exit values.
52138         * build-aux/useless-if-before-free: Use correct values
52139         for EXIT_MATCH and EXIT_NO_MATCH.
52140
52141         * build-aux/useless-if-before-free: Close stdout carefully.
52142
52143 2008-02-10  Bruno Haible  <bruno@clisp.org>
52144
52145         New module 'git-merge-changelog'.
52146         * modules/git-merge-changelog: New file.
52147         * lib/git-merge-changelog.c: New file.
52148
52149 2008-02-10  Jim Meyering  <meyering@redhat.com>
52150
52151         useless-if-before-free: New option: --list (-l).
52152
52153         useless-if-before-free: Don't exit immediately upon open failure.
52154         * build-aux/useless-if-before-free: Exit 2 for errors.
52155         Upon failure to open a file, don't exit immediately.
52156         Rather, just warn and continue with any remaining files.
52157
52158 2008-02-10  Bruno Haible  <bruno@clisp.org>
52159
52160         New abstract list operation 'node_set_value'.
52161         * lib/gl_list.h (gl_list_node_set_value): New function.
52162         (struct gl_list_implementation): New field node_set_value.
52163         * lib/gl_list.c (gl_list_node_set_value): New function.
52164         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52165         (gl_array_list_implementation): Update.
52166         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52167         (gl_carray_list_implementation): Update.
52168         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52169         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52170         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52171         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52172         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52173         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52174         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52175         Update.
52176         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52177         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52178         (gl_sublist_list_implementation): Update.
52179
52180 2008-02-10  Bruno Haible  <bruno@clisp.org>
52181
52182         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52183         Needed when ELEMENT is #defined to 'some_type *'.
52184
52185 2008-02-10  Jim Meyering  <meyering@redhat.com>
52186
52187         New script and module: useless-if-before-free
52188         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52189         * build-aux/useless-if-before-free: New file.
52190         * modules/useless-if-before-free: New file.
52191
52192         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52193
52194         xstrtol_error: Fix typo.
52195         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52196         s/exit_failure/exit_status/.
52197
52198 2008-02-09  Jim Meyering  <meyering@redhat.com>
52199
52200         New script and module: gitlog-to-changelog
52201         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52202         * modules/gitlog-to-changelog: New file.
52203         * build-aux/gitlog-to-changelog: New file.
52204
52205 2008-02-08  Jim Meyering  <meyering@redhat.com>
52206
52207         Avoid two "parameter unused" warnings.
52208         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52209         Mark "st" as used.
52210
52211         Use "git COMMAND", not "git-COMMAND".
52212         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52213         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52214         * build-aux/git-version-gen: Use "git status", not "git-status".
52215
52216 2008-02-07  Bruno Haible  <bruno@clisp.org>
52217
52218         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52219         Avoids a crash on Windows Vista.
52220         Reported by Adam Strzelecki <ono@java.pl> via
52221         Simon Josefsson <simon@josefsson.org>.
52222
52223 2008-02-06  Bruno Haible  <bruno@clisp.org>
52224
52225         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52226         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52227         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52229         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52230         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52231         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52232         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52233         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52234         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52237         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52240         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52241         left-adjust flag.
52242         * tests/test-snprintf-posix.h (test_function): Likewise.
52243         * tests/test-sprintf-posix.h (test_function): Likewise.
52244         * tests/test-vasprintf-posix.c (test_function): Likewise.
52245         * doc/posix-functions/fprintf.texi: Update.
52246         * doc/posix-functions/printf.texi: Update.
52247         * doc/posix-functions/snprintf.texi: Update.
52248         * doc/posix-functions/sprintf.texi: Update.
52249         * doc/posix-functions/vfprintf.texi: Update.
52250         * doc/posix-functions/vprintf.texi: Update.
52251         * doc/posix-functions/vsnprintf.texi: Update.
52252         * doc/posix-functions/vsprintf.texi: Update.
52253         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52254
52255 2008-02-06  Bruno Haible  <bruno@clisp.org>
52256
52257         Fix bug introduced on 2008-01-26.
52258         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52259
52260 2008-02-06  Bruno Haible  <bruno@clisp.org>
52261
52262         Fix bug introduced on 2007-06-10.
52263         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52264         !NEED_PRINTF_FLAG_ZERO.
52265
52266 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52267
52268         getloadavg: use libperfstat on AIX5
52269         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52270
52271 2008-02-03  Bruno Haible  <bruno@clisp.org>
52272
52273         * lib/diffseq.h: Add comments about required #includes.
52274         Reported by Michael Biggs <gnulib@doubleplum.net>.
52275
52276 2008-02-01  Bruno Haible  <bruno@clisp.org>
52277
52278         * users.txt: Add gnuit.
52279
52280 2008-01-31  Bruno Haible  <bruno@clisp.org>
52281
52282         * lib/md4.c (set_uint32): Mark as inline.
52283         * lib/md5.c (set_uint32): Likewise.
52284         * lib/sha1.c (set_uint32): Likewise.
52285         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52286         * m4/md5.m4 (gl_MD5): Likewise.
52287         * m4/sha1.m4 (gl_SHA1): Likewise.
52288
52289 2008-01-31  Jim Meyering  <meyering@redhat.com>
52290
52291         Use "sizeof VAR", rather than a literal "4".
52292         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52293         * lib/md4.c (md4_read_ctx): Likewise.
52294         * lib/sha1.c (sha1_read_ctx): Likewise.
52295
52296 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52297
52298         * tests/test-sha1.c: New file, based on test-md5.c.
52299
52300         * modules/crypto/sha1-tests: New file.
52301
52302 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52303
52304         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52305
52306 2008-01-31  Jim Meyering  <meyering@redhat.com>
52307
52308         Prefer "sizeof v" over the equivalent "4".
52309         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52310         * lib/md5.c (set_uint32): Likewise.
52311         * lib/sha1.c (set_uint32): Likewise.
52312
52313 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52314
52315         * lib/sha1.c (set_uint32): Mark function as static.
52316
52317 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52318
52319         md2: clarify comments to say that alignment is not required.
52320         * lib/md2.h: Remove warning about alignment in comment.
52321         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52322         never been required.
52323
52324 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52325
52326         md4: adapt alignment constraint fix from sha1.
52327         * lib/md4.c (set_uint32): New function, from sha1.c
52328         (md4_read_ctx): Use it.
52329         (md4_finish_ctx): Doc fix.
52330         * lib/md4.h: Doc fix.
52331
52332 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52333
52334         md5: adapt alignment constraint fix from sha1.
52335         * lib/md5.c (set_uint32): New function, from sha1.c
52336         (md5_read_ctx): Use it.
52337         (md5_finish_ctx): Doc fix.
52338         * lib/md5.h: Doc fix.
52339
52340 2008-01-30  Peter Palfrader  <weasel@debian.org>
52341
52342         sha1: remove the result buffer alignment constraint
52343         * lib/sha1.c (set_uint32): New function.
52344         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52345         constraint.
52346         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52347         * lib/sha1.h: Likewise.
52348
52349 2008-01-30  Andreas Schwab  <schwab@suse.de>
52350             Bruno Haible  <bruno@clisp.org>
52351
52352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52353         correct definition of LDBL_MIN_EXP.
52354
52355 2008-01-30  Karl Berry  <karl@gnu.org>
52356
52357         * config/srclist-update: try to preserve x bit on updates.
52358         * config/srclistvars.sh: update for karl.
52359
52360 2008-01-29  Jim Meyering  <meyering@redhat.com>
52361
52362         vasnprintf.c: Avoid warning about unused label
52363         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52364         "overflow" label definition and associated code with the
52365         same cpp condition that guards the sole use of that label.
52366
52367 2008-01-26  Bruno Haible  <bruno@clisp.org>
52368
52369         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52370         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52371         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52372         * lib/isnanl-nolibm.h (isnanl): Likewise.
52373         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52374
52375 2008-01-26  Bruno Haible  <bruno@clisp.org>
52376
52377         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52378         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52379
52380 2008-01-26  Bruno Haible  <bruno@clisp.org>
52381
52382         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52383         GCC >= 4.0 built-in.
52384         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52385
52386 2008-01-26  Bruno Haible  <bruno@clisp.org>
52387
52388         Rename isnan, applicable to 'double' only, to isnand.
52389         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52390         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52391         (configure.ac): Update.
52392         (Include): Replace "isnan.h" with "isnand.h".
52393         * m4/isnand.m4: Renamed from m4/isnan.m4.
52394         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52395         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52396         instead of isnan.c.
52397         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52398         instead of HAVE_ISNAN_IN_LIBC.
52399         (isnand): Renamed from isnan.
52400         * lib/isnand.c: New file.
52401         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52402         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52403         (Makefile.am): Update.
52404         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52405         Include isnand.h instead of isnan.h.
52406         (main): Test isnand instead of isnan.
52407         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52408         isnan-nolibm.
52409         * modules/frexp (Depends-on): Likewise.
52410         * modules/frexp-tests (Depends-on): Likewise.
52411         * modules/frexp-nolibm (Depends-on): Likewise.
52412         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52413         * modules/isfinite (Depends-on): Likewise.
52414         * modules/round-tests (Depends-on): Likewise.
52415         * modules/signbit (Depends-on): Likewise.
52416         * modules/signbit-tests (Depends-on): Likewise.
52417         * modules/snprintf-posix (Depends-on): Likewise.
52418         * modules/sprintf-posix (Depends-on): Likewise.
52419         * modules/trunc-tests (Depends-on): Likewise.
52420         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52421         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52422         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52423         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52424         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52425         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52426         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52427         * modules/vasnprintf-posix (Depends-on): Likewise.
52428         * modules/vasprintf-posix (Depends-on): Likewise.
52429         * modules/vfprintf-posix (Depends-on): Likewise.
52430         * modules/vsnprintf-posix (Depends-on): Likewise.
52431         * modules/vsprintf-posix (Depends-on): Likewise.
52432         * lib/frexp.c: Include isnand.h instead of isnan.h.
52433         (ISNAN): Set to isnand instead of isnan.
52434         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52435         (gl_isfinited): Use isnand instead of isnan.
52436         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52437         (gl_signbitd): Use isnand instead of isnan.
52438         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52439         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52440         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52441         (main): Use isnand instead of isnan.
52442         * tests/test-round1.c: Include isnand.h.
52443         (main): Use isnand instead of isnan.
52444         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52445         (ISNAN): Set to isnand instead of isnan.
52446         * tests/test-trunc1.c: Include isnand.h.
52447         (main): Use isnand instead of isnan.
52448         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52449         (equal): Use isnand instead of isnan.
52450         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52451         isnand-nolibm.
52452         * NEWS: Mention the change.
52453
52454 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52455             Bruno Haible  <bruno@clisp.org>
52456
52457         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52458         the GCC builtins for signbits are present and set
52459         REPLACE_SIGNBIT_USING_GCC if so.
52460         * lib/math.in.h (signbit): Define using GCC builtins if
52461         REPLACE_SIGNBIT_USING_GCC is set.
52462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52463         REPLACE_SIGNBIT_USING_GCC.
52464         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52465
52466 2008-01-25  Jim Meyering  <meyering@redhat.com>
52467
52468         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52469         * lib/poll.c: Include <config.h>, not "config.h".
52470         * tests/test-getaddrinfo.c: Likewise.
52471
52472 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52473
52474         * modules/sockets-tests: New file.
52475
52476 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52477
52478         * modules/sockets: New module, can be used to call WSA_Startup and
52479         WSA_Cleanup when needed.
52480
52481         * lib/sockets.h, lib/sockets.c: New files.
52482
52483         * m4/sockets.m4: New file.
52484
52485         * tests/test-sockets.c: New file.
52486
52487 2008-01-19  Bruno Haible  <bruno@clisp.org>
52488
52489         * doc/posix-headers: Renamed from doc/headers.
52490         * doc/posix-functions: Renamed from doc/functions.
52491         * doc/gnulib.texi: Update.
52492
52493 2008-01-19  Bruno Haible  <bruno@clisp.org>
52494
52495         * doc/glibc-functions/strcasestr.texi: Include contents of
52496         doc/functions/strcasestr.texi, fixing the list of platforms.
52497         * doc/functions/strcasestr.texi: Remove file.
52498
52499 2008-01-19  Bruno Haible  <bruno@clisp.org>
52500
52501         * doc/glibc-functions/memmem.texi: Include contents of
52502         doc/functions/memmem.texi.
52503         * doc/functions/memmem.texi: Remove file.
52504
52505 2008-01-18  Bruno Haible  <bruno@clisp.org>
52506
52507         * doc/glibc-functions/*.texi: New files.
52508         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52509         to use the new files.
52510
52511 2008-01-17  Bruno Haible  <bruno@clisp.org>
52512
52513         * tests/test-gethostname.c (main): Fix printf statement.
52514
52515 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52516
52517         * modules/gethostname-tests: New file.
52518
52519         * tests/test-gethostname.c: New file.
52520
52521 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52522
52523         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52524         used by the UNAME case.  Reported by Bruno Haible
52525         <bruno@clisp.org>.
52526
52527 2008-01-17  Eric Blake  <ebb9@byu.net>
52528
52529         Convert c-strcasestr to be more efficient.
52530         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52531         (Depends-on): Add c-strcase, remove malloca, strnlen.
52532         * tests/test-c-strcasestr.c (main): Enhance test.
52533         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52534
52535 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52536
52537         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52538         Use it in creating po/Makevars.
52539
52540 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52541
52542         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52543         Applications that requires it should initialize libgcrypt
52544         manually.
52545
52546 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52547
52548         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52549
52550 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52551
52552         Fix problem with getdate on mingw32 reported by Simon Josefsson
52553         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52554         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52555         tzname", when deciding whether to declare tzname.
52556         * lib/strftime.c (tzname): Likewise.
52557
52558 2008-01-15  Bruno Haible  <bruno@clisp.org>
52559
52560         Work around a MacOS X 10.5 bug in frexpl().
52561         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52562         * doc/functions/frexpl.texi: Document the bug.
52563         Reported by Elias Pipping <pipping@gentoo.org>.
52564
52565 2008-01-14  Eric Blake  <ebb9@byu.net>
52566
52567         Touch up previous patch.
52568         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52569         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52570
52571         Convert strcasestr module to use Two-Way algorithm.
52572         * modules/strcasestr-simple: New module, based on the old
52573         strcasestr, but with Two-Way rather than KMP.
52574         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52575         * lib/string.in.h (rpl_strcasestr): Declare.
52576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52577         performance.
52578         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52579         * modules/string (Makefile.am): Support strcasestr.
52580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52581         * modules/strcasestr-tests (Depends-on): Check for alarm.
52582         * tests/test-strcasestr.c: Augment test.
52583         * lib/str-two-way.h: Clean up stray macro.
52584         * NEWS: Document new module.
52585         * MODULES.html.sh (string handling): Likewise.
52586         * doc/functions/strcasestr.texi: New file.
52587         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52588         here, since it is not a POSIX function.
52589
52590 2008-01-14  Colin Watson  <cjwatson@debian.org>
52591             Bruno Haible  <bruno@clisp.org>
52592
52593         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52594         works fine; if not, set REPLACE_STRSIGNAL.
52595         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52597         REPLACE_STRSIGNAL.
52598         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52599         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52600         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52601
52602 2008-01-14  Bruno Haible  <bruno@clisp.org>
52603
52604         * modules/strsignal (Include): Change to <string.h>.
52605
52606 2008-01-14  Colin Watson  <cjwatson@debian.org>
52607
52608         * modules/argp (Notice): Add a notice recommending to change
52609         XGETTEXT_OPTIONS.
52610         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52611
52612 2008-01-13  Colin Watson  <cjwatson@debian.org>
52613
52614         * modules/strsignal-tests: New file.
52615         * tests/test-strsignal.c: New file.
52616
52617         * lib/strsignal.c: New file, from glibc with modifications.
52618         * lib/siglist.h: New file, from glibc with modifications.
52619         * lib/string.in.h (strsignal): New declaration.
52620         * m4/strsignal.m4: New file.
52621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52622         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52623         * modules/strsignal: New file.
52624         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52625         HAVE_DECL_STRSIGNAL.
52626
52627 2008-01-13  Bruno Haible  <bruno@clisp.org>
52628
52629         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52630         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52631         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52632         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52633
52634 2008-01-13  Bruno Haible  <bruno@clisp.org>
52635
52636         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52637         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52638         * lib/argp.h (__attribute__): Likewise.
52639         * lib/c-stack.c (__attribute__): Likewise.
52640         * lib/error.h (__attribute__): Likewise.
52641         * lib/fts.c (__attribute__): Likewise.
52642         * lib/openat.h (__attribute__): Likewise.
52643         * lib/stdio.in.h (__attribute__): Likewise.
52644         * lib/string.in.h (__attribute__): Likewise.
52645         * lib/utimens.c (__attribute__): Likewise.
52646         * lib/vasnprintf.h (__attribute__): Likewise.
52647         * lib/xalloc.h (__attribute__): Likewise.
52648         * lib/xprintf.h (__attribute__): Likewise.
52649         * lib/xstrtol.h (__attribute__): Likewise.
52650         * lib/xvasprintf.h (__attribute__): Likewise.
52651
52652 2008-01-12  Bruno Haible  <bruno@clisp.org>
52653
52654         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52655         * doc/glibc-headers/a.out.texi: New file.
52656         * doc/glibc-headers/aliases.texi: New file.
52657         * doc/glibc-headers/alloca.texi: New file.
52658         * doc/glibc-headers/ar.texi: New file.
52659         * doc/glibc-headers/argp.texi: New file.
52660         * doc/glibc-headers/argz.texi: New file.
52661         * doc/glibc-headers/byteswap.texi: New file.
52662         * doc/glibc-headers/crypt.texi: New file.
52663         * doc/glibc-headers/endian.texi: New file.
52664         * doc/glibc-headers/envz.texi: New file.
52665         * doc/glibc-headers/err.texi: New file.
52666         * doc/glibc-headers/error.texi: New file.
52667         * doc/glibc-headers/execinfo.texi: New file.
52668         * doc/glibc-headers/fpu_control.texi: New file.
52669         * doc/glibc-headers/fstab.texi: New file.
52670         * doc/glibc-headers/fts.texi: New file.
52671         * doc/glibc-headers/getopt.texi: New file.
52672         * doc/glibc-headers/ieee754.texi: New file.
52673         * doc/glibc-headers/ifaddrs.texi: New file.
52674         * doc/glibc-headers/libintl.texi: New file.
52675         * doc/glibc-headers/mcheck.texi: New file.
52676         * doc/glibc-headers/mntent.texi: New file.
52677         * doc/glibc-headers/obstack.texi: New file.
52678         * doc/glibc-headers/paths.texi: New file.
52679         * doc/glibc-headers/printf.texi: New file.
52680         * doc/glibc-headers/pty.texi: New file.
52681         * doc/glibc-headers/resolv.texi: New file.
52682         * doc/glibc-headers/shadow.texi: New file.
52683         * doc/glibc-headers/sysexits.texi: New file.
52684         * doc/glibc-headers/ttyent.texi: New file.
52685
52686 2008-01-12  Jim Meyering  <meyering@redhat.com>
52687
52688         announce-gen: emit Gnulib's git-based version string.
52689         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52690         New option --gnulib-version=V, where V is expected to be
52691         the output of running git describe in the gnulib directory.
52692         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52693         not useful, and plan to stop publishing an xdelta file with each
52694         coreutils release.
52695
52696         * build-aux/announce-gen: Also check for lzma-compressed files.
52697
52698 2008-01-11  Bruno Haible  <bruno@clisp.org>
52699
52700         * tests/test-memmem.c (main): Increase maximum allowed time.
52701         * tests/test-strstr.c (main): Likewise.
52702
52703 2008-01-11  Bruno Haible  <bruno@clisp.org>
52704
52705         * doc/functions/memmem.texi: Add more precisions about platforms.
52706         * doc/functions/strstr.texi: Likewise.
52707
52708 2008-01-10  Eric Blake  <ebb9@byu.net>
52709
52710         * m4/strstr.m4: Delete cruft from copy-n-paste.
52711         Reported by Bruno Haible.
52712
52713 2008-01-10  Bruno Haible  <bruno@clisp.org>
52714
52715         Make c-strstr rely on strstr.
52716         * lib/c-strstr.c: Don't include str-kmp.h.
52717         (c_strstr): Define in terms of strstr.
52718         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52719         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52720
52721 2008-01-10  Bruno Haible  <bruno@clisp.org>
52722
52723         * doc/gnulib.texi (String Functions in C Locale): New section.
52724         * doc/c-ctype.texi: New file.
52725         * doc/c-strcase.texi: New file.
52726         * doc/c-strcaseeq.texi: New file.
52727         * doc/c-strcasestr.texi: New file.
52728         * doc/c-strstr.texi: New file.
52729         * doc/c-strtod.texi: New file.
52730         * doc/c-strtold.texi: New file.
52731
52732 2008-01-10  Eric Blake  <ebb9@byu.net>
52733
52734         * lib/relocatable.h: Fix a comment.
52735
52736 2008-01-10  Eric Blake  <ebb9@byu.net>
52737
52738         Share two-way algorithm.
52739         * lib/str-two-way.h: New file, merged from...
52740         * lib/memmem.c: ...here...
52741         * lib/strstr.c: ...and here.
52742         * modules/memmem (Files): Use it.
52743         * modules/strstr (Files): Likewise.
52744
52745         Avoid quadratic strstr implementations.
52746         * lib/strstr.c: New file.
52747         * m4/strstr.m4: Likewise.
52748         * modules/strstr: Likewise.
52749         * modules/strstr-tests: Likewise.
52750         * tests/test-strstr.c: Likewise.
52751         * lib/string.in.h (rpl_strstr): Declare.
52752         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52754         * modules/string (Makefile.am): Likewise.
52755         * MODULES.html.sh (string handling): Mention new module.
52756         * doc/functions/strstr.texi (strstr): Document the bug.
52757
52758 2008-01-10  Bruno Haible  <bruno@clisp.org>
52759
52760         * lib/relocatable.h (relocate): State whether result is freshly
52761         allocated or not.
52762         * lib/relocatable.c (relocate): Return a freshly allocated string
52763         instead of a pointer to a privately held string.
52764         Reported by Sylvain Beucler <beuc@gnu.org>.
52765
52766 2008-01-10  Colin Watson  <cjwatson@debian.org>
52767
52768         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52769         s/S_ISNLK/S_ISLNK/.
52770
52771 2008-01-09  Bruno Haible  <bruno@clisp.org>
52772
52773         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52774         and other files.
52775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52776         if it's only a guess.
52777         * modules/memmem: Simplify by depending on memmem-simple.
52778
52779 2008-01-09  Bruno Haible  <bruno@clisp.org>
52780
52781         Work around OpenBSD 4.0 tdelete() bug.
52782         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52783         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52784         macros and don't redefine the enum values.
52785         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52786         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52787         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52788
52789 2008-01-09  Bruno Haible  <bruno@clisp.org>
52790
52791         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52792         (main): Don't perform the tests if setlocale did not install a UTF-8
52793         locale. Needed on OpenBSD 4.0.
52794         * modules/wcwidth-tests (Depends-on): Add localcharset.
52795
52796 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52797
52798         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52799         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52800         * NEWS: announce this.
52801         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52802
52803 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52804         and Eric Blake  <ebb9@byu.net>
52805
52806         Add memmem-simple module.
52807         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52808         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52809         * modules/memmem-simple: New file.
52810         * modules/memmem (Description): Tweak.
52811         * MODULES.html.sh (string handling): Mention new module.
52812         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52813         addressed by memmem-simple.
52814         * NEWS: Document the difference.
52815
52816 2008-01-09  Eric Blake  <ebb9@byu.net>
52817
52818         Give gcc some memmem optimization hints.
52819         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52820         (strcasestr): Declare as pure.
52821         * modules/memmem (Maintainer): Claim my implementation.
52822
52823 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52824
52825         Support AIX 6.1 and higher.
52826         * build-aux/config.libpath: Likewise.
52827         * build-aux/config.rpath: Likewise.
52828
52829 2008-01-08  Jim Meyering  <meyering@redhat.com>
52830             Bruno Haible  <bruno@clisp.org>
52831
52832         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52833         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52834         Reported by Peter Fales in
52835         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52836
52837 2008-01-08  Bruno Haible  <bruno@clisp.org>
52838
52839         * modules/unictype/category-of (Depends-on): Add
52840         unictype/category-none.
52841         * modules/unictype/category-and-tests (Depends-on): Add
52842         unictype/category-{L,N,Lu,Nd}.
52843         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52844         * modules/unictype/category-or-tests (Depends-on): Add
52845         unictype/category-{L,N}.
52846         * modules/unictype/category-name-tests (Depends-on): Add
52847         unictype/category-{Z,Nl}.
52848         Reported by Simon Josefsson.
52849
52850 2008-01-08  Bruno Haible  <bruno@clisp.org>
52851
52852         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52853         convention better.
52854         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52855         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52856         Reported by Peter Miller <millerp@canb.auug.org.au>.
52857
52858 2008-01-08  Eric Blake  <ebb9@byu.net>
52859
52860         Rewrite memmem to guarantee linear complexity without malloc.
52861         * lib/memmem.c (memmem): Use Two-Way rather than
52862         Knuth-Morris-Pratt, to allow O(1) space usage.
52863         (critical_factorization, two_way_short_needle)
52864         (two_way_long_needle): New functions.
52865         (knuth_morris_pratt): Delete.
52866         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52867         Add stdint.
52868         * tests/test-memmem.c (main): Add tests for periodic needle and
52869         sublinear performance.
52870         * doc/functions/memmem.texi (memmem): Document other deficiencies
52871         in cygwin and older glibc.
52872
52873 2008-01-08  Bruno Haible  <bruno@clisp.org>
52874
52875         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52876         augmentation.
52877
52878 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52879
52880         Add a configure time option: --disable-acl.
52881         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52882         AC_ARG_ENABLE(acl).
52883
52884 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52885
52886         * tests/test-localename.c: Don't include obsolete "setenv.h".
52887
52888         * modules/localename-tests (Depends-on): Need unsetenv.
52889
52890 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52891
52892         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52893
52894 2008-01-06  Colin Watson  <cjwatson@debian.org>
52895
52896         * users.txt: Add man-db.
52897
52898 2008-01-07  Bruno Haible  <bruno@clisp.org>
52899
52900         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52901         previous section name.
52902
52903 2008-01-07  Bruno Haible  <bruno@clisp.org>
52904
52905         * lib/progname.c (set_program_name): Don't strip off a leading
52906         "lt-" prefix outside a .libs directory.
52907         Suggested by Paul Eggert.
52908
52909 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52910             Bruno Haible  <bruno@clisp.org>
52911
52912         Improve memory cleanup in 'relocatable' module.
52913         * lib/relocatable.h (compute_curr_prefix): Change return type to
52914         'char *'.
52915         * lib/relocatable.c (compute_curr_prefix): Change return type to
52916         'char *'. Free curr_installdir after use.
52917         (relocate): Free curr_prefix_better after use.
52918         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52919
52920 2008-01-01  Bruno Haible  <bruno@clisp.org>
52921
52922         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52923         failure on older glibc systems.
52924         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52925
52926 2008-01-05  Eric Blake  <ebb9@byu.net>
52927
52928         Avoid quadratic system memmem.
52929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52930         Reported by Ralf Wildenhues.
52931
52932         Fix memmem test for mingw.
52933         * modules/memmem-tests (configure.ac): Check for alarm.
52934         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52935         it.
52936         * doc/functions/memmem.texi: New file.
52937         * doc/gnulib.texi (Function Substitutes): Add memmem.
52938         Reported by Bruno Haible.
52939
52940 2008-01-04  Bruno Haible  <bruno@clisp.org>
52941
52942         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52943         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52944         gl_HEADER_STRING_H_DEFAULTS.
52945
52946 2008-01-04  Eric Blake  <ebb9@byu.net>
52947
52948         Shorten duration of memmem test.
52949         * tests/test-memmem.c (main): Use alarm to declare failure if test
52950         is taking too long.
52951         Reported by Ralf Wildenhues.
52952
52953 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52954
52955         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52956         string, needed by strerror.
52957
52958 2008-01-03  Colin Watson  <cjwatson@debian.org>
52959             Bruno Haible  <bruno@clisp.org>
52960
52961         * doc/gnulib-tool.texi (Localization): New section.
52962
52963 2008-01-02  Bruno Haible  <bruno@clisp.org>
52964
52965         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52966         variables to 'unsigned char *' type.
52967         Reported by Paul Eggert.
52968
52969 2008-01-02  Jim Meyering  <jim@meyering.net>
52970
52971         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52972
52973 2007-12-31  Jim Meyering  <jim@meyering.net>
52974
52975         Avoid use of private FTS type name.
52976         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52977
52978 2007-12-30  Karl Berry  <karl@gnu.org>
52979
52980         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52981         work around defect in Texinfo and/or the standalone Info browser.
52982
52983 2007-12-30  Bruno Haible  <bruno@clisp.org>
52984
52985         Unify 5 copies of the KMP code.
52986         * lib/str-kmp.h: New file.
52987         * lib/c-strcasestr.c: Include str-kmp.h.
52988         (knuth_morris_pratt): Remove function.
52989         (c_strcasestr): Update.
52990         * lib/c-strstr.c: Include str-kmp.h.
52991         (knuth_morris_pratt): Remove function.
52992         (c_strcasestr): Update.
52993         * lib/mbscasestr.c: Include str-kmp.h.
52994         (knuth_morris_pratt_unibyte): Remove function.
52995         * lib/mbsstr.c: Include str-kmp.h.
52996         (knuth_morris_pratt_unibyte): Remove function.
52997         * lib/strcasestr.c: Include str-kmp.h.
52998         (knuth_morris_pratt): Remove function.
52999         (strcasestr): Update.
53000         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53001         * modules/c-strstr (Files): Likewise.
53002         * modules/mbscasestr (Files): Likewise.
53003         * modules/mbsstr (Files): Likewise.
53004         * modules/strcasestr (Files): Likewise.
53005         Suggested by Paul Eggert.
53006
53007 2007-12-30  Bruno Haible  <bruno@clisp.org>
53008
53009         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53010         defined.
53011
53012 2007-12-30  Bruno Haible  <bruno@clisp.org>
53013
53014         * lib/xmalloca.h: Include xalloc.h.
53015         (xnmalloca): New macro.
53016
53017 2007-12-30  Bruno Haible  <bruno@clisp.org>
53018
53019         * lib/malloca.h (nmalloca): New macro.
53020         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53021         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53022         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53023         knuth_morris_pratt_multibyte): Likewise.
53024         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53025         knuth_morris_pratt_multibyte): Likewise.
53026         * lib/memmem.c (knuth_morris_pratt): Likewise.
53027         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53028
53029 2007-12-25  Bruno Haible  <bruno@clisp.org>
53030
53031         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53032         * lib/glob.c: Don't include openat.h.
53033         (link_exists2_p): Add back the code that deals with the
53034         !GLOB_ALTDIRFUNC case.
53035         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53036         let it do the filename concatenation.
53037         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53038         * modules/glob (Depends-on): Remove openat.
53039
53040 2007-12-31  Bruno Haible  <bruno@clisp.org>
53041
53042         * modules/dirfd (License): Change to LGPLv2+.
53043         Approved by Jim Meyering.
53044
53045 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53046
53047         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53048         when multiplying M by sizeof (size_t).
53049
53050 2007-12-10  Martin Lambers  <marlam@marlam.de>
53051
53052         Override getpagesize on mingw.
53053         * lib/getpagesize.c: New file.
53054         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53055         * modules/getpagesize (Files): Add lib/getpagesize.c.
53056         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53058         REPLACE_GETPAGESIZE.
53059         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53060
53061 2007-12-25  Bruno Haible  <bruno@clisp.org>
53062
53063         * modules/localcharset (Notice): New field.
53064         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53065         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53066
53067 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53068             Bruno Haible  <bruno@clisp.org>
53069
53070         Avoid using the syntax symbol() in formatted documentation.
53071         * MODULES.html.sh (func_module): When replacing symbol() with a
53072         hyperlink, remove the parentheses. Show an error if some remain.
53073         Recognize and render the '...' syntax.
53074         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53075         Rework. Add paragraph about GCC's inlining.
53076         * doc/alloca.texi: Likewise.
53077         * doc/error.texi: Remove parentheses from symbol reference.
53078         * doc/gnulib-intro.texi: Likewise.
53079         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53080         * modules/fnmatch (Description): Reword to say "the ... function".
53081         * modules/full-read (Description): Likewise.
53082         * modules/full-write (Description): Likewise.
53083         * modules/safe-read (Description): Likewise.
53084         * modules/safe-write (Description): Likewise.
53085         * modules/strchrnul (Description): Likewise.
53086         * modules/trim (Description): Likewise.
53087         * modules/error (Description): Remove parentheses from symbol
53088         references.
53089         * modules/verror (Description): Likewise.
53090         Reported by Karl Berry.
53091
53092 2007-12-25  Bruno Haible  <bruno@clisp.org>
53093
53094         Fixup after 2007-10-16 commit.
53095         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53096
53097 2007-12-24  Bruno Haible  <bruno@clisp.org>
53098
53099         Make --enable-relocatable work with DESTDIR.
53100         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53101         to compute installdir from destprog.
53102         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53103         also set the RELOC_DESTDIR variable.
53104         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53105
53106 2007-12-24  Bruno Haible  <bruno@clisp.org>
53107
53108         Fix link error due to xalloc_die().
53109         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53110         of xreadlink.
53111         * lib/relocwrapper.c: Update comments.
53112         * build-aux/install-reloc: Remove xreadlink.c from file list.
53113         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53114         xreadlink.c.
53115         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53116
53117 2007-12-24  Bruno Haible  <bruno@clisp.org>
53118
53119         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53120         * lib/setenv.h: Remove file.
53121         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53122         lib/setenv.h.
53123         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53124         (Depends-on): Add stdlib.
53125         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53126         gl_FUNC_UNSETENV.
53127         (Include): Replace setenv.h with <stdlib.h>.
53128         * modules/unsetenv: New file.
53129         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53130         * lib/unsetenv.c: Include <stdlib.h> first.
53131         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53132         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53133         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53134         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53135         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53136         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53138         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53139         * doc/functions/unsetenv.texi: Update.
53140         * modules/xsetenv (Depends-on): Add unsetenv.
53141         * modules/getdate (Depends-on): Likewise.
53142         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53143         * lib/xsetenv.c: Don't include setenv.h.
53144         * lib/getdate.y: Likewise.
53145         * lib/relocwrapper.c: Likewise.
53146         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53147         (Depends-on): Add stdlib.
53148         * NEWS: Mention the changes.
53149         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53150
53151 2007-12-23  Bruno Haible  <bruno@clisp.org>
53152
53153         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53154         indentation.
53155
53156 2007-12-23  Bruno Haible  <bruno@clisp.org>
53157
53158         * lib/c-strcasestr.c: Add more comments.
53159         * lib/c-strstr.c: Likewise.
53160         * lib/mbscasestr.c: Likewise.
53161         * lib/mbsstr.c: Likewise.
53162         * lib/strcasestr.c: Likewise.
53163         * lib/memmem.c: Likewise.
53164
53165 2007-12-23  Bruno Haible  <bruno@clisp.org>
53166
53167         * tests/test-memmem.c: Include <string.h> first.
53168
53169 2007-12-22  Bruno Haible  <bruno@clisp.org>
53170
53171         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53172         the contents of $testsbase.
53173         Reported by Ralf Wildenhues.
53174
53175 2007-12-22  Bruno Haible  <bruno@clisp.org>
53176
53177         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53178         two variables local_ldadd_before, local_ldadd_last.
53179
53180 2007-12-20  Eric Blake  <ebb9@byu.net>
53181
53182         Work around circular library issue when cross-compiling.
53183         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53184         that progname.o does not need to pull in rpl_memcmp.
53185
53186 2007-12-19  Eric Blake  <ebb9@byu.net>
53187
53188         Fix memmem to avoid O(n^2) worst-case complexity.
53189         * lib/memmem.c (knuth_morris_pratt): New function.
53190         (memmem): Use it if first few naive iterations fail.
53191         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53192         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53193         * modules/memchr (License): Likewise.
53194         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53195         malloca.
53196         * tests/test-memmem.c: Rewrite, borrowing ideas from
53197         test-mbsstr1.c; the old version wouldn't even compile!
53198         * modules/memmem-tests: New file.
53199         * lib/string.in.h (rpl_memmem): Add declaration.
53200         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53201         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53202         REPLACE_MEMMEM.
53203
53204 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53205
53206         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53207         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53208         before any system include files, and undef after them all.  This
53209         should fix a problem on VMS reported by John E. Malmberg in
53210         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53211
53212 2007-12-17  Eric Blake  <ebb9@byu.net>
53213
53214         Revert addition of verify, for BSD/OS.
53215         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53216         can't handle large files, for the sake of obsolete platforms.
53217         * modules/fseeko (Depends-on): Remove verify.
53218         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53219         * doc/functions/ftello.texi (ftello): Likewise.
53220         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53221         Reported by Larry Jones.
53222
53223 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53224
53225         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53226         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53227
53228 2007-12-17  Jim Meyering  <meyering@redhat.com>
53229
53230         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53231         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53232         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53233         * modules/getcwd (Depends-on): Add openat.
53234         Reported by Petr Salinger.
53235
53236 2007-12-17  Bruno Haible  <bruno@clisp.org>
53237
53238         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53239         avoid a segmentation fault of the configure test on x86_64 systems.
53240
53241 2007-12-15  Jim Meyering  <meyering@redhat.com>
53242
53243         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53244
53245 2007-12-13  Eric Blake  <ebb9@byu.net>
53246
53247         Another fseek test.
53248         * tests/test-fseek.c (main): Also test ungetc handling.
53249         * tests/test-fseeko.c (main): Likewise.
53250         * modules/fseeko (Depends-on): Add verify.
53251         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53252         large.
53253         Reported by Larry Jones.
53254
53255         Fix fseeko on mingw.
53256         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53257         seek.
53258
53259         Beef up fseek tests.
53260         * tests/test-fseek.c (main): Also test eof handling.
53261         * tests/test-fseeko.c (main): Likewise.
53262         Reported by Larry Jones.
53263
53264 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53265
53266         Fix fseeko on BSD-based platforms.
53267         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53268         successful seek.
53269
53270 2007-12-12  Eric Blake  <ebb9@byu.net>
53271
53272         Allow circular dependency of separate libtests.a
53273         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53274         when use_libtests.
53275
53276 2007-12-11  Eric Blake  <ebb9@byu.net>
53277
53278         Fix bug with -0.0L in previous patch.
53279         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53280         * tests/test-isnan.c (main): Also test on zeroes.
53281         * tests/test-isnanf.c (main): Likewise.
53282         * tests/test-isnanl.h (main): Likewise.
53283
53284         Detect pseudo-denormals on x86 even when cross-compiling.
53285         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53286         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53287         invalid bit patterns that happen to satisfy ==.
53288
53289         Avoid link failures with separate libtests.a.
53290         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53291         last, to satisfy circular dependencies.
53292
53293 2007-12-11  Eric Blake  <ebb9@byu.net>
53294         and Bruno Haible  <bruno@clisp.org>
53295
53296         Fix OpenBSD 4.0 <float.h> handling of long double.
53297         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53298         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53299         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53300
53301 2007-12-11  Jim Meyering  <meyering@redhat.com>
53302
53303         * users.txt: Add libvirt.
53304
53305         Support versions of autoconf prior to 2.59c.
53306         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53307         if it is not already defined.
53308
53309 2007-12-09  Bruno Haible  <bruno@clisp.org>
53310
53311         Let 'gnulib-tool --import' collect sources needed for the tests in
53312         tests/ rather than in lib/.
53313         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53314         argument. If true, add rules to generate libtests.a, and put libtests.a
53315         into $(LDADD). Consider source files in subdirectories and set
53316         uses_subdirs.
53317         (func_emit_initmacro_start, func_emit_initmacro_end,
53318         func_emit_initmacro_done): Pass all arguments explicitly.
53319         (func_import): Determine two module lists main_modules,
53320         testsrelated_modules. Determine use_libtests. Determine two variables
53321         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53322         instead of just sed_transform_lib_file. Determine two variables
53323         main_files and testsrelated_files. Compute 'files' as the union of
53324         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53325         func_add_or_update. In the generated gnulib-comp.m4, collect the
53326         object files for tests/ in different variables than those for lib/.
53327         Substitute LIBTESTS_LIBDEPS.
53328         (func_create_testdir): Combine the uses_subdirs results from
53329         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53330
53331 2007-12-09  Bruno Haible  <bruno@clisp.org>
53332
53333         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53334         the build-aux directory.
53335
53336 2007-12-09  Bruno Haible  <bruno@clisp.org>
53337
53338         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53339         introduced on 2006-09-09.
53340
53341 2007-12-07  Jim Meyering  <meyering@redhat.com>
53342
53343         Let these macros work also with autoconf-2.59.
53344         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53345         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53346         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53347
53348 2007-12-06  Jim Meyering  <meyering@redhat.com>
53349
53350         Avoid a configure-time syntax error in gl_FUNC_ACL.
53351         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53352         function in each branch, before testing the cache variable.
53353
53354 2007-12-04  Eric Blake  <ebb9@byu.net>
53355
53356         Make scripts executable.
53357         * build-aux/config.guess: Add execute permissions.
53358         * build-aux/config.sub: Likewise.
53359         * build-aux/gendocs.sh: Likewise.
53360
53361         Fix frexp on mingw.
53362         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53363         cross-compiling.
53364         * doc/functions/frexp.texi (frexp): Document the bug.
53365
53366         Make cygwin fseeko check more reliable.
53367         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53368         version numbers, rather than unrelated feature check.
53369         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53370         * doc/functions/ftello.texi (ftello): Likewise.
53371         Reported by Bruno Haible.
53372
53373         * m4/strerror.m4: Bump version number.
53374
53375 2007-12-03  Bruno Haible  <bruno@clisp.org>
53376
53377         * doc/functions/mprotect.texi: Mention the mingw problem.
53378
53379 2007-12-03  Eric Blake  <ebb9@byu.net>
53380
53381         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53382         REPLACE_STRERROR is initialized before this macro.
53383
53384 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53385
53386         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53387         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53388         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53389         put -lsec in even for programs other than 'ls'.  This fixes a problem
53390         for gettext reported by Bruno Haible in
53391         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53392         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53393         Add support for Solaris 10.  This isn't efficient, but should get the
53394         job done for now.
53395
53396 2007-12-03  James Youngman  <jay@gnu.org>
53397
53398         * doc/regexprops-generic.texi: change "an close-group" to "a
53399         close-group" and "illegal" to "not allowed".
53400
53401 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53402
53403         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53404         pr_byname.h. Needed for the rare case when the maintainer has done
53405         "make maintainer-clean" in the source directory and then attempts a
53406         build outside the source directory.
53407         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53408         scripts_byname.h.
53409
53410 2007-12-02  Martin Lambers <marlam@marlam.de>
53411             Bruno Haible  <bruno@clisp.org>
53412
53413         * lib/getpagesize.h: Remove file.
53414         * lib/unistd.in.h: Include declaration of getpagesize here.
53415         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53416         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53417         HAVE_SYS_PARAM_H.
53418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53419         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53420         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53421         (Depends-on): Add unistd.
53422         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53423         (Include): Use <unistd.h> instead of getpagesize.h.
53424         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53425         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53426         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53427         gl_GETPAGESIZE invocation, already handled by module dependency.
53428         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53429
53430 2007-12-02  Bruno Haible  <bruno@clisp.org>
53431
53432         * modules/strings-tests: New file.
53433         * tests/test-strings.c: New file.
53434
53435         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53436         * lib/strings.in.h: New file.
53437         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53438         * m4/strings_h.m4: New file.
53439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53440         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53441         * modules/strings: New file.
53442         * modules/string (Makefile.am): Update.
53443         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53444         Reported by Karl Berry.
53445
53446 2007-12-01  Eric Blake  <ebb9@byu.net>
53447
53448         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53449         accomodate fix in cygwin 1.5.25.
53450
53451 2007-12-01  Jim Meyering  <meyering@redhat.com>
53452
53453         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53454         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53455         that would inhibit utf8-optimization of a regexp containing line-
53456         or buffer-anchors, e.g., `^', `$'.
53457
53458 2007-11-30  Bruno Haible  <bruno@clisp.org>
53459
53460         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53461         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53462         glthread_recursive_lock_init.
53463         * lib/lock.c (glthread_recursive_lock_init)
53464         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53465         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53466
53467 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53468
53469         New function qset_acl, like set_acl but with syscall semantics.
53470         * lib/acl.h (qset_acl): New decl.
53471         * lib/acl.c (qset_acl): New function.
53472         (set_acl): Use new function.  Use more-consistent diagnostics.
53473
53474 2007-11-28  Jim Meyering  <meyering@redhat.com>
53475
53476         * modules/physmem (License): Change from GPL to LGPLv2+.
53477
53478 2007-11-26  Bruno Haible  <bruno@clisp.org>
53479
53480         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53481         'long double' type has excess precision.
53482         Reported by Jim Meyering in
53483         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53484
53485 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53486
53487         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53488         Sync from <http://gnu.org/licenses>.
53489         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53490         with license text from same location.
53491         * doc/maintain.texi, doc/standards.texi:  Sync from
53492         <http://savannah.gnu.org/projects/gnustandards>.
53493
53494 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53495         and Jim Meyering  <meyering@redhat.com>
53496
53497         Adjust getdate' grammar to accept a slightly more regular language.
53498         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53499         Before, the former was rejected.
53500         * lib/getdate.y (digits_to_date_time): New function, factored
53501         out of ...
53502         (number): ...here.  Just call digits_to_date_time.
53503         (hybrid): New non-terminal to handle an <unsigned number,
53504         signed relative offset> sequence consistently.
53505
53506 2007-11-18  Jim Meyering  <meyering@redhat.com>
53507
53508         Pull my changes from coreutils:
53509         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53510         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53511         use of $gnulib_tool_option_extras, so that it's separated from the
53512         preceding argument.
53513
53514         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53515         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53516         parent destination directories before copying a file into place.
53517
53518 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53519
53520         bootstrap: work also with 4-argument variant of AC_INIT
53521         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53522
53523 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53524
53525         Port test-getaddrinfo to Solaris.
53526         Problem reported by Bruno Haible in
53527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53528         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53529         explanation of setting 'hints'.
53530         Don't reject an implementation merely because it returns EAI_SERVICE.
53531         (EAI_SERVICE): Define to 0 if not defined.
53532
53533 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53534
53535         The license of gnu-make and posix-shell is now "GPLed build tool".
53536         * modules/gnu-make (License): Likewise.
53537         * modules/posix-shell (License): Likewise.
53538
53539         New module posix-shell, for determining a POSIX shell
53540         or perhaps something that is close enough to a POSIX shell.
53541         * m4/posix-shell.m4: New file.
53542         * modules/posix-shell: New file.
53543
53544         * MODULES.html.sh: Mention new module.
53545
53546         New module gnu-make, for determining whether we're using GNU Make.
53547         * m4/gnu-make.m4: New file.
53548         * modules/gnu-make: New file.
53549         * MODULES.html.sh: Mention new module.
53550
53551 2007-11-14  Jim Meyering  <meyering@redhat.com>
53552
53553         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53554         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53555         use this macro to create a function _definition_.
53556         Remove useless "#undef ARGMATCH_DIE".
53557
53558 2007-11-14  Bruno Haible  <bruno@clisp.org>
53559
53560         * lib/config.charset: Update for OpenBSD 4.1.
53561         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53562
53563 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53564
53565         Document 64-bit #if problems in stdint.texi.
53566         * doc/headers/stdint.texi (stdint.h): Mention problems with
53567         64-bit-#if, and how to work around them.
53568
53569         Don't insist on 'long long int' support in the preprocessor.  It
53570         breaks too many things.  For example, PRIdMAX still uses a 'long
53571         long int' format with the latest Sun compiler, even though
53572         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53573         preprocessor problem.  This causes the latest coreutils to dump
53574         core on Solaris 10 sparc with the Sun C compiler.
53575         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53576         the troublesome expressions at configure-time, not at #if-time.
53577         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53578         preprocessor.
53579         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53580         compile-time C checks, done at 'configure'-time.
53581         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53582         * modules/inttypes (Makefile): Substitute the new symbols that
53583         gl_INTTYPES_H now generates.
53584         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53585
53586 2007-11-12  Bruno Haible  <bruno@clisp.org>
53587
53588         Tests for Unicode character classification functions.
53589
53590         * modules/unictype/bidicategory-byname-tests: New file.
53591         * modules/unictype/bidicategory-name-tests: New file.
53592         * modules/unictype/bidicategory-of-tests: New file.
53593         * modules/unictype/bidicategory-test-tests: New file.
53594         * modules/unictype/block-list-tests: New file.
53595         * modules/unictype/block-of-tests: New file.
53596         * modules/unictype/block-test-tests: New file.
53597         * modules/unictype/category-C-tests: New file.
53598         * modules/unictype/category-Cc-tests: New file.
53599         * modules/unictype/category-Cf-tests: New file.
53600         * modules/unictype/category-Cn-tests: New file.
53601         * modules/unictype/category-Co-tests: New file.
53602         * modules/unictype/category-Cs-tests: New file.
53603         * modules/unictype/category-L-tests: New file.
53604         * modules/unictype/category-Ll-tests: New file.
53605         * modules/unictype/category-Lm-tests: New file.
53606         * modules/unictype/category-Lo-tests: New file.
53607         * modules/unictype/category-Lt-tests: New file.
53608         * modules/unictype/category-Lu-tests: New file.
53609         * modules/unictype/category-M-tests: New file.
53610         * modules/unictype/category-Mc-tests: New file.
53611         * modules/unictype/category-Me-tests: New file.
53612         * modules/unictype/category-Mn-tests: New file.
53613         * modules/unictype/category-N-tests: New file.
53614         * modules/unictype/category-Nd-tests: New file.
53615         * modules/unictype/category-Nl-tests: New file.
53616         * modules/unictype/category-No-tests: New file.
53617         * modules/unictype/category-P-tests: New file.
53618         * modules/unictype/category-Pc-tests: New file.
53619         * modules/unictype/category-Pd-tests: New file.
53620         * modules/unictype/category-Pe-tests: New file.
53621         * modules/unictype/category-Pf-tests: New file.
53622         * modules/unictype/category-Pi-tests: New file.
53623         * modules/unictype/category-Po-tests: New file.
53624         * modules/unictype/category-Ps-tests: New file.
53625         * modules/unictype/category-S-tests: New file.
53626         * modules/unictype/category-Sc-tests: New file.
53627         * modules/unictype/category-Sk-tests: New file.
53628         * modules/unictype/category-Sm-tests: New file.
53629         * modules/unictype/category-So-tests: New file.
53630         * modules/unictype/category-Z-tests: New file.
53631         * modules/unictype/category-Zl-tests: New file.
53632         * modules/unictype/category-Zp-tests: New file.
53633         * modules/unictype/category-Zs-tests: New file.
53634         * modules/unictype/category-and-not-tests: New file.
53635         * modules/unictype/category-and-tests: New file.
53636         * modules/unictype/category-byname-tests: New file.
53637         * modules/unictype/category-name-tests: New file.
53638         * modules/unictype/category-none-tests: New file.
53639         * modules/unictype/category-of-tests: New file.
53640         * modules/unictype/category-or-tests: New file.
53641         * modules/unictype/category-test-withtable-tests: New file.
53642         * modules/unictype/combining-class-tests: New file.
53643         * modules/unictype/ctype-alnum-tests: New file.
53644         * modules/unictype/ctype-alpha-tests: New file.
53645         * modules/unictype/ctype-blank-tests: New file.
53646         * modules/unictype/ctype-cntrl-tests: New file.
53647         * modules/unictype/ctype-digit-tests: New file.
53648         * modules/unictype/ctype-graph-tests: New file.
53649         * modules/unictype/ctype-lower-tests: New file.
53650         * modules/unictype/ctype-print-tests: New file.
53651         * modules/unictype/ctype-punct-tests: New file.
53652         * modules/unictype/ctype-space-tests: New file.
53653         * modules/unictype/ctype-upper-tests: New file.
53654         * modules/unictype/ctype-xdigit-tests: New file.
53655         * modules/unictype/decimal-digit-tests: New file.
53656         * modules/unictype/digit-tests: New file.
53657         * modules/unictype/mirror-tests: New file.
53658         * modules/unictype/numeric-tests: New file.
53659         * modules/unictype/property-alphabetic-tests: New file.
53660         * modules/unictype/property-ascii-hex-digit-tests: New file.
53661         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53662         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53663         * modules/unictype/property-bidi-block-separator-tests: New file.
53664         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53665         * modules/unictype/property-bidi-common-separator-tests: New file.
53666         * modules/unictype/property-bidi-control-tests: New file.
53667         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53668         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53669         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53670         * modules/unictype/property-bidi-european-digit-tests: New file.
53671         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53672         * modules/unictype/property-bidi-left-to-right-tests: New file.
53673         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53674         * modules/unictype/property-bidi-other-neutral-tests: New file.
53675         * modules/unictype/property-bidi-pdf-tests: New file.
53676         * modules/unictype/property-bidi-segment-separator-tests: New file.
53677         * modules/unictype/property-bidi-whitespace-tests: New file.
53678         * modules/unictype/property-byname-tests: New file.
53679         * modules/unictype/property-combining-tests: New file.
53680         * modules/unictype/property-composite-tests: New file.
53681         * modules/unictype/property-currency-symbol-tests: New file.
53682         * modules/unictype/property-dash-tests: New file.
53683         * modules/unictype/property-decimal-digit-tests: New file.
53684         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53685         * modules/unictype/property-deprecated-tests: New file.
53686         * modules/unictype/property-diacritic-tests: New file.
53687         * modules/unictype/property-extender-tests: New file.
53688         * modules/unictype/property-format-control-tests: New file.
53689         * modules/unictype/property-grapheme-base-tests: New file.
53690         * modules/unictype/property-grapheme-extend-tests: New file.
53691         * modules/unictype/property-grapheme-link-tests: New file.
53692         * modules/unictype/property-hex-digit-tests: New file.
53693         * modules/unictype/property-hyphen-tests: New file.
53694         * modules/unictype/property-id-continue-tests: New file.
53695         * modules/unictype/property-id-start-tests: New file.
53696         * modules/unictype/property-ideographic-tests: New file.
53697         * modules/unictype/property-ids-binary-operator-tests: New file.
53698         * modules/unictype/property-ids-trinary-operator-tests: New file.
53699         * modules/unictype/property-ignorable-control-tests: New file.
53700         * modules/unictype/property-iso-control-tests: New file.
53701         * modules/unictype/property-join-control-tests: New file.
53702         * modules/unictype/property-left-of-pair-tests: New file.
53703         * modules/unictype/property-line-separator-tests: New file.
53704         * modules/unictype/property-logical-order-exception-tests: New file.
53705         * modules/unictype/property-lowercase-tests: New file.
53706         * modules/unictype/property-math-tests: New file.
53707         * modules/unictype/property-non-break-tests: New file.
53708         * modules/unictype/property-not-a-character-tests: New file.
53709         * modules/unictype/property-numeric-tests: New file.
53710         * modules/unictype/property-other-alphabetic-tests: New file.
53711         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53712         * modules/unictype/property-other-grapheme-extend-tests: New file.
53713         * modules/unictype/property-other-id-continue-tests: New file.
53714         * modules/unictype/property-other-id-start-tests: New file.
53715         * modules/unictype/property-other-lowercase-tests: New file.
53716         * modules/unictype/property-other-math-tests: New file.
53717         * modules/unictype/property-other-uppercase-tests: New file.
53718         * modules/unictype/property-paired-punctuation-tests: New file.
53719         * modules/unictype/property-paragraph-separator-tests: New file.
53720         * modules/unictype/property-pattern-syntax-tests: New file.
53721         * modules/unictype/property-pattern-white-space-tests: New file.
53722         * modules/unictype/property-private-use-tests: New file.
53723         * modules/unictype/property-punctuation-tests: New file.
53724         * modules/unictype/property-quotation-mark-tests: New file.
53725         * modules/unictype/property-radical-tests: New file.
53726         * modules/unictype/property-sentence-terminal-tests: New file.
53727         * modules/unictype/property-soft-dotted-tests: New file.
53728         * modules/unictype/property-space-tests: New file.
53729         * modules/unictype/property-terminal-punctuation-tests: New file.
53730         * modules/unictype/property-test-tests: New file.
53731         * modules/unictype/property-titlecase-tests: New file.
53732         * modules/unictype/property-unassigned-code-value-tests: New file.
53733         * modules/unictype/property-unified-ideograph-tests: New file.
53734         * modules/unictype/property-uppercase-tests: New file.
53735         * modules/unictype/property-variation-selector-tests: New file.
53736         * modules/unictype/property-white-space-tests: New file.
53737         * modules/unictype/property-xid-continue-tests: New file.
53738         * modules/unictype/property-xid-start-tests: New file.
53739         * modules/unictype/property-zero-width-tests: New file.
53740         * modules/unictype/scripts-tests: New file.
53741         * modules/unictype/syntax-c-ident-tests: New file.
53742         * modules/unictype/syntax-c-whitespace-tests: New file.
53743         * modules/unictype/syntax-java-ident-tests: New file.
53744         * modules/unictype/syntax-java-whitespace-tests: New file.
53745         * tests/unictype/test-bidi_byname.c: New file.
53746         * tests/unictype/test-bidi_name.c: New file.
53747         * tests/unictype/test-bidi_of.c: New file.
53748         * tests/unictype/test-bidi_test.c: New file.
53749         * tests/unictype/test-block_list.c: New file.
53750         * tests/unictype/test-block_of.c: New file.
53751         * tests/unictype/test-block_test.c: New file.
53752         * tests/unictype/test-categ_and.c: New file.
53753         * tests/unictype/test-categ_and_not.c: New file.
53754         * tests/unictype/test-categ_byname.c: New file.
53755         * tests/unictype/test-categ_name.c: New file.
53756         * tests/unictype/test-categ_none.c: New file.
53757         * tests/unictype/test-categ_of.c: New file.
53758         * tests/unictype/test-categ_or.c: New file.
53759         * tests/unictype/test-categ_test_withtable.c: New file.
53760         * tests/unictype/test-combining.c: New file.
53761         * tests/unictype/test-decdigit.c: New file.
53762         * tests/unictype/test-digit.c: New file.
53763         * tests/unictype/test-mirror.c: New file.
53764         * tests/unictype/test-numeric.c: New file.
53765         * tests/unictype/test-pr_byname.c: New file.
53766         * tests/unictype/test-pr_test.c: New file.
53767         * tests/unictype/test-predicate-part1.h: New file.
53768         * tests/unictype/test-predicate-part2.h: New file.
53769         * tests/unictype/test-scripts.c: New file.
53770         * tests/unictype/test-sy_c_ident.c: New file.
53771         * tests/unictype/test-sy_java_ident.c: New file.
53772
53773         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53774         for Unicode 5.0.0.
53775         * tests/unictype/test-categ_Cc.c: Likewise.
53776         * tests/unictype/test-categ_Cf.c: Likewise.
53777         * tests/unictype/test-categ_Cn.c: Likewise.
53778         * tests/unictype/test-categ_Co.c: Likewise.
53779         * tests/unictype/test-categ_Cs.c: Likewise.
53780         * tests/unictype/test-categ_L.c: Likewise.
53781         * tests/unictype/test-categ_Ll.c: Likewise.
53782         * tests/unictype/test-categ_Lm.c: Likewise.
53783         * tests/unictype/test-categ_Lo.c: Likewise.
53784         * tests/unictype/test-categ_Lt.c: Likewise.
53785         * tests/unictype/test-categ_Lu.c: Likewise.
53786         * tests/unictype/test-categ_M.c: Likewise.
53787         * tests/unictype/test-categ_Mc.c: Likewise.
53788         * tests/unictype/test-categ_Me.c: Likewise.
53789         * tests/unictype/test-categ_Mn.c: Likewise.
53790         * tests/unictype/test-categ_N.c: Likewise.
53791         * tests/unictype/test-categ_Nd.c: Likewise.
53792         * tests/unictype/test-categ_Nl.c: Likewise.
53793         * tests/unictype/test-categ_No.c: Likewise.
53794         * tests/unictype/test-categ_P.c: Likewise.
53795         * tests/unictype/test-categ_Pc.c: Likewise.
53796         * tests/unictype/test-categ_Pd.c: Likewise.
53797         * tests/unictype/test-categ_Pe.c: Likewise.
53798         * tests/unictype/test-categ_Pf.c: Likewise.
53799         * tests/unictype/test-categ_Pi.c: Likewise.
53800         * tests/unictype/test-categ_Po.c: Likewise.
53801         * tests/unictype/test-categ_Ps.c: Likewise.
53802         * tests/unictype/test-categ_S.c: Likewise.
53803         * tests/unictype/test-categ_Sc.c: Likewise.
53804         * tests/unictype/test-categ_Sk.c: Likewise.
53805         * tests/unictype/test-categ_Sm.c: Likewise.
53806         * tests/unictype/test-categ_So.c: Likewise.
53807         * tests/unictype/test-categ_Z.c: Likewise.
53808         * tests/unictype/test-categ_Zl.c: Likewise.
53809         * tests/unictype/test-categ_Zp.c: Likewise.
53810         * tests/unictype/test-categ_Zs.c: Likewise.
53811         * tests/unictype/test-ctype_alnum.c: Likewise.
53812         * tests/unictype/test-ctype_alpha.c: Likewise.
53813         * tests/unictype/test-ctype_blank.c: Likewise.
53814         * tests/unictype/test-ctype_cntrl.c: Likewise.
53815         * tests/unictype/test-ctype_digit.c: Likewise.
53816         * tests/unictype/test-ctype_graph.c: Likewise.
53817         * tests/unictype/test-ctype_lower.c: Likewise.
53818         * tests/unictype/test-ctype_print.c: Likewise.
53819         * tests/unictype/test-ctype_punct.c: Likewise.
53820         * tests/unictype/test-ctype_space.c: Likewise.
53821         * tests/unictype/test-ctype_upper.c: Likewise.
53822         * tests/unictype/test-ctype_xdigit.c: Likewise.
53823         * tests/unictype/test-decdigit.h: Likewise.
53824         * tests/unictype/test-digit.h: Likewise.
53825         * tests/unictype/test-numeric.h: Likewise.
53826         * tests/unictype/test-pr_alphabetic.c: Likewise.
53827         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53828         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53829         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53830         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53831         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53832         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53833         * tests/unictype/test-pr_bidi_control.c: Likewise.
53834         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53835         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53836         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53837         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53838         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53839         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53840         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53841         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53842         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53843         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53844         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53845         * tests/unictype/test-pr_combining.c: Likewise.
53846         * tests/unictype/test-pr_composite.c: Likewise.
53847         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53848         * tests/unictype/test-pr_dash.c: Likewise.
53849         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53850         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53851         * tests/unictype/test-pr_deprecated.c: Likewise.
53852         * tests/unictype/test-pr_diacritic.c: Likewise.
53853         * tests/unictype/test-pr_extender.c: Likewise.
53854         * tests/unictype/test-pr_format_control.c: Likewise.
53855         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53856         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53857         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53858         * tests/unictype/test-pr_hex_digit.c: Likewise.
53859         * tests/unictype/test-pr_hyphen.c: Likewise.
53860         * tests/unictype/test-pr_id_continue.c: Likewise.
53861         * tests/unictype/test-pr_id_start.c: Likewise.
53862         * tests/unictype/test-pr_ideographic.c: Likewise.
53863         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53864         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53865         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53866         * tests/unictype/test-pr_iso_control.c: Likewise.
53867         * tests/unictype/test-pr_join_control.c: Likewise.
53868         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53869         * tests/unictype/test-pr_line_separator.c: Likewise.
53870         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53871         * tests/unictype/test-pr_lowercase.c: Likewise.
53872         * tests/unictype/test-pr_math.c: Likewise.
53873         * tests/unictype/test-pr_non_break.c: Likewise.
53874         * tests/unictype/test-pr_not_a_character.c: Likewise.
53875         * tests/unictype/test-pr_numeric.c: Likewise.
53876         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53877         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53878         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53879         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53880         * tests/unictype/test-pr_other_id_start.c: Likewise.
53881         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53882         * tests/unictype/test-pr_other_math.c: Likewise.
53883         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53884         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53885         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53886         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53887         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53888         * tests/unictype/test-pr_private_use.c: Likewise.
53889         * tests/unictype/test-pr_punctuation.c: Likewise.
53890         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53891         * tests/unictype/test-pr_radical.c: Likewise.
53892         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53893         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53894         * tests/unictype/test-pr_space.c: Likewise.
53895         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53896         * tests/unictype/test-pr_titlecase.c: Likewise.
53897         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53898         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53899         * tests/unictype/test-pr_uppercase.c: Likewise.
53900         * tests/unictype/test-pr_variation_selector.c: Likewise.
53901         * tests/unictype/test-pr_white_space.c: Likewise.
53902         * tests/unictype/test-pr_xid_continue.c: Likewise.
53903         * tests/unictype/test-pr_xid_start.c: Likewise.
53904         * tests/unictype/test-pr_zero_width.c: Likewise.
53905         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53906         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53907
53908 2007-11-12  Bruno Haible  <bruno@clisp.org>
53909
53910         Unicode character classification functions.
53911         * lib/unictype.h: New file.
53912         * modules/unictype/base: New file.
53913         * modules/unictype/category-L: New file.
53914         * modules/unictype/category-Lu: New file.
53915         * modules/unictype/category-Ll: New file.
53916         * modules/unictype/category-Lt: New file.
53917         * modules/unictype/category-Lm: New file.
53918         * modules/unictype/category-Lo: New file.
53919         * modules/unictype/category-M: New file.
53920         * modules/unictype/category-Mn: New file.
53921         * modules/unictype/category-Mc: New file.
53922         * modules/unictype/category-Me: New file.
53923         * modules/unictype/category-N: New file.
53924         * modules/unictype/category-Nd: New file.
53925         * modules/unictype/category-Nl: New file.
53926         * modules/unictype/category-No: New file.
53927         * modules/unictype/category-P: New file.
53928         * modules/unictype/category-Pc: New file.
53929         * modules/unictype/category-Pd: New file.
53930         * modules/unictype/category-Ps: New file.
53931         * modules/unictype/category-Pe: New file.
53932         * modules/unictype/category-Pi: New file.
53933         * modules/unictype/category-Pf: New file.
53934         * modules/unictype/category-Po: New file.
53935         * modules/unictype/category-S: New file.
53936         * modules/unictype/category-Sm: New file.
53937         * modules/unictype/category-Sc: New file.
53938         * modules/unictype/category-Sk: New file.
53939         * modules/unictype/category-So: New file.
53940         * modules/unictype/category-Z: New file.
53941         * modules/unictype/category-Zs: New file.
53942         * modules/unictype/category-Zl: New file.
53943         * modules/unictype/category-Zp: New file.
53944         * modules/unictype/category-C: New file.
53945         * modules/unictype/category-Cc: New file.
53946         * modules/unictype/category-Cf: New file.
53947         * modules/unictype/category-Cs: New file.
53948         * modules/unictype/category-Co: New file.
53949         * modules/unictype/category-Cn: New file.
53950         * modules/unictype/category-or: New file.
53951         * modules/unictype/category-of: New file.
53952         * modules/unictype/category-test: New file.
53953         * modules/unictype/category-test-withtable: New file.
53954         * modules/unictype/category-byname: New file.
53955         * modules/unictype/category-none: New file.
53956         * modules/unictype/category-and: New file.
53957         * modules/unictype/category-and-not: New file.
53958         * modules/unictype/category-name: New file.
53959         * modules/unictype/combining-class: New file.
53960         * modules/unictype/category-all: New file.
53961         * modules/unictype/bidicategory-all: New file.
53962         * modules/unictype/bidicategory-byname: New file.
53963         * modules/unictype/bidicategory-name: New file.
53964         * modules/unictype/bidicategory-of: New file.
53965         * modules/unictype/bidicategory-test: New file.
53966         * modules/unictype/decimal-digit: New file.
53967         * modules/unictype/digit: New file.
53968         * modules/unictype/numeric: New file.
53969         * modules/unictype/mirror: New file.
53970         * modules/unictype/property-white-space: New file.
53971         * modules/unictype/property-alphabetic: New file.
53972         * modules/unictype/property-other-alphabetic: New file.
53973         * modules/unictype/property-not-a-character: New file.
53974         * modules/unictype/property-default-ignorable-code-point: New file.
53975         * modules/unictype/property-other-default-ignorable-code-point: New
53976         file.
53977         * modules/unictype/property-deprecated: New file.
53978         * modules/unictype/property-logical-order-exception: New file.
53979         * modules/unictype/property-variation-selector: New file.
53980         * modules/unictype/property-private-use: New file.
53981         * modules/unictype/property-unassigned-code-value: New file.
53982         * modules/unictype/property-uppercase: New file.
53983         * modules/unictype/property-other-uppercase: New file.
53984         * modules/unictype/property-lowercase: New file.
53985         * modules/unictype/property-other-lowercase: New file.
53986         * modules/unictype/property-titlecase: New file.
53987         * modules/unictype/property-soft-dotted: New file.
53988         * modules/unictype/property-id-start: New file.
53989         * modules/unictype/property-other-id-start: New file.
53990         * modules/unictype/property-id-continue: New file.
53991         * modules/unictype/property-other-id-continue: New file.
53992         * modules/unictype/property-xid-start: New file.
53993         * modules/unictype/property-xid-continue: New file.
53994         * modules/unictype/property-pattern-white-space: New file.
53995         * modules/unictype/property-pattern-syntax: New file.
53996         * modules/unictype/property-join-control: New file.
53997         * modules/unictype/property-grapheme-base: New file.
53998         * modules/unictype/property-grapheme-extend: New file.
53999         * modules/unictype/property-other-grapheme-extend: New file.
54000         * modules/unictype/property-grapheme-link: New file.
54001         * modules/unictype/property-bidi-control: New file.
54002         * modules/unictype/property-bidi-left-to-right: New file.
54003         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54004         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54005         * modules/unictype/property-bidi-european-digit: New file.
54006         * modules/unictype/property-bidi-eur-num-separator: New file.
54007         * modules/unictype/property-bidi-eur-num-terminator: New file.
54008         * modules/unictype/property-bidi-arabic-digit: New file.
54009         * modules/unictype/property-bidi-common-separator: New file.
54010         * modules/unictype/property-bidi-block-separator: New file.
54011         * modules/unictype/property-bidi-segment-separator: New file.
54012         * modules/unictype/property-bidi-whitespace: New file.
54013         * modules/unictype/property-bidi-non-spacing-mark: New file.
54014         * modules/unictype/property-bidi-boundary-neutral: New file.
54015         * modules/unictype/property-bidi-pdf: New file.
54016         * modules/unictype/property-bidi-embedding-or-override: New file.
54017         * modules/unictype/property-bidi-other-neutral: New file.
54018         * modules/unictype/property-hex-digit: New file.
54019         * modules/unictype/property-ascii-hex-digit: New file.
54020         * modules/unictype/property-ideographic: New file.
54021         * modules/unictype/property-unified-ideograph: New file.
54022         * modules/unictype/property-radical: New file.
54023         * modules/unictype/property-ids-binary-operator: New file.
54024         * modules/unictype/property-ids-trinary-operator: New file.
54025         * modules/unictype/property-zero-width: New file.
54026         * modules/unictype/property-space: New file.
54027         * modules/unictype/property-non-break: New file.
54028         * modules/unictype/property-iso-control: New file.
54029         * modules/unictype/property-format-control: New file.
54030         * modules/unictype/property-dash: New file.
54031         * modules/unictype/property-hyphen: New file.
54032         * modules/unictype/property-punctuation: New file.
54033         * modules/unictype/property-line-separator: New file.
54034         * modules/unictype/property-paragraph-separator: New file.
54035         * modules/unictype/property-quotation-mark: New file.
54036         * modules/unictype/property-sentence-terminal: New file.
54037         * modules/unictype/property-terminal-punctuation: New file.
54038         * modules/unictype/property-currency-symbol: New file.
54039         * modules/unictype/property-math: New file.
54040         * modules/unictype/property-other-math: New file.
54041         * modules/unictype/property-paired-punctuation: New file.
54042         * modules/unictype/property-left-of-pair: New file.
54043         * modules/unictype/property-combining: New file.
54044         * modules/unictype/property-composite: New file.
54045         * modules/unictype/property-decimal-digit: New file.
54046         * modules/unictype/property-numeric: New file.
54047         * modules/unictype/property-diacritic: New file.
54048         * modules/unictype/property-extender: New file.
54049         * modules/unictype/property-ignorable-control: New file.
54050         * modules/unictype/property-test: New file.
54051         * modules/unictype/property-byname: New file.
54052         * modules/unictype/property-all: New file.
54053         * modules/unictype/scripts: New file.
54054         * modules/unictype/scripts-all: New file.
54055         * modules/unictype/block-of: New file.
54056         * modules/unictype/block-test: New file.
54057         * modules/unictype/block-list: New file.
54058         * modules/unictype/block-all: New file.
54059         * modules/unictype/syntax-c-whitespace: New file.
54060         * modules/unictype/syntax-java-whitespace: New file.
54061         * modules/unictype/syntax-c-ident: New file.
54062         * modules/unictype/syntax-java-ident: New file.
54063         * modules/unictype/ctype-alnum: New file.
54064         * modules/unictype/ctype-alpha: New file.
54065         * modules/unictype/ctype-cntrl: New file.
54066         * modules/unictype/ctype-digit: New file.
54067         * modules/unictype/ctype-graph: New file.
54068         * modules/unictype/ctype-lower: New file.
54069         * modules/unictype/ctype-print: New file.
54070         * modules/unictype/ctype-punct: New file.
54071         * modules/unictype/ctype-space: New file.
54072         * modules/unictype/ctype-upper: New file.
54073         * modules/unictype/ctype-xdigit: New file.
54074         * modules/unictype/ctype-blank: New file.
54075         * lib/unictype/bidi_byname.c: New file.
54076         * lib/unictype/bidi_name.c: New file.
54077         * lib/unictype/bidi_of.c: New file.
54078         * lib/unictype/bidi_test.c: New file.
54079         * lib/unictype/bitmap.h: New file.
54080         * lib/unictype/block_test.c: New file.
54081         * lib/unictype/blocks.c: New file.
54082         * lib/unictype/categ_C.c: New file.
54083         * lib/unictype/categ_Cc.c: New file.
54084         * lib/unictype/categ_Cf.c: New file.
54085         * lib/unictype/categ_Cn.c: New file.
54086         * lib/unictype/categ_Co.c: New file.
54087         * lib/unictype/categ_Cs.c: New file.
54088         * lib/unictype/categ_L.c: New file.
54089         * lib/unictype/categ_Ll.c: New file.
54090         * lib/unictype/categ_Lm.c: New file.
54091         * lib/unictype/categ_Lo.c: New file.
54092         * lib/unictype/categ_Lt.c: New file.
54093         * lib/unictype/categ_Lu.c: New file.
54094         * lib/unictype/categ_M.c: New file.
54095         * lib/unictype/categ_Mc.c: New file.
54096         * lib/unictype/categ_Me.c: New file.
54097         * lib/unictype/categ_Mn.c: New file.
54098         * lib/unictype/categ_N.c: New file.
54099         * lib/unictype/categ_Nd.c: New file.
54100         * lib/unictype/categ_Nl.c: New file.
54101         * lib/unictype/categ_No.c: New file.
54102         * lib/unictype/categ_P.c: New file.
54103         * lib/unictype/categ_Pc.c: New file.
54104         * lib/unictype/categ_Pd.c: New file.
54105         * lib/unictype/categ_Pe.c: New file.
54106         * lib/unictype/categ_Pf.c: New file.
54107         * lib/unictype/categ_Pi.c: New file.
54108         * lib/unictype/categ_Po.c: New file.
54109         * lib/unictype/categ_Ps.c: New file.
54110         * lib/unictype/categ_S.c: New file.
54111         * lib/unictype/categ_Sc.c: New file.
54112         * lib/unictype/categ_Sk.c: New file.
54113         * lib/unictype/categ_Sm.c: New file.
54114         * lib/unictype/categ_So.c: New file.
54115         * lib/unictype/categ_Z.c: New file.
54116         * lib/unictype/categ_Zl.c: New file.
54117         * lib/unictype/categ_Zp.c: New file.
54118         * lib/unictype/categ_Zs.c: New file.
54119         * lib/unictype/categ_and.c: New file.
54120         * lib/unictype/categ_and_not.c: New file.
54121         * lib/unictype/categ_byname.c: New file.
54122         * lib/unictype/categ_name.c: New file.
54123         * lib/unictype/categ_none.c: New file.
54124         * lib/unictype/categ_of.c: New file.
54125         * lib/unictype/categ_or.c: New file.
54126         * lib/unictype/categ_test.c: New file.
54127         * lib/unictype/combining.c: New file.
54128         * lib/unictype/ctype_alnum.c: New file.
54129         * lib/unictype/ctype_alpha.c: New file.
54130         * lib/unictype/ctype_blank.c: New file.
54131         * lib/unictype/ctype_cntrl.c: New file.
54132         * lib/unictype/ctype_digit.c: New file.
54133         * lib/unictype/ctype_graph.c: New file.
54134         * lib/unictype/ctype_lower.c: New file.
54135         * lib/unictype/ctype_print.c: New file.
54136         * lib/unictype/ctype_punct.c: New file.
54137         * lib/unictype/ctype_space.c: New file.
54138         * lib/unictype/ctype_upper.c: New file.
54139         * lib/unictype/ctype_xdigit.c: New file.
54140         * lib/unictype/decdigit.c: New file.
54141         * lib/unictype/digit.c: New file.
54142         * lib/unictype/identsyntaxmap.h: New file.
54143         * lib/unictype/mirror.c: New file.
54144         * lib/unictype/numeric.c: New file.
54145         * lib/unictype/pr_alphabetic.c: New file.
54146         * lib/unictype/pr_ascii_hex_digit.c: New file.
54147         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54148         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54149         * lib/unictype/pr_bidi_block_separator.c: New file.
54150         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54151         * lib/unictype/pr_bidi_common_separator.c: New file.
54152         * lib/unictype/pr_bidi_control.c: New file.
54153         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54154         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54155         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54156         * lib/unictype/pr_bidi_european_digit.c: New file.
54157         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54158         * lib/unictype/pr_bidi_left_to_right.c: New file.
54159         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54160         * lib/unictype/pr_bidi_other_neutral.c: New file.
54161         * lib/unictype/pr_bidi_pdf.c: New file.
54162         * lib/unictype/pr_bidi_segment_separator.c: New file.
54163         * lib/unictype/pr_bidi_whitespace.c: New file.
54164         * lib/unictype/pr_byname.c: New file.
54165         * lib/unictype/pr_byname.gperf: New file.
54166         * lib/unictype/pr_combining.c: New file.
54167         * lib/unictype/pr_composite.c: New file.
54168         * lib/unictype/pr_currency_symbol.c: New file.
54169         * lib/unictype/pr_dash.c: New file.
54170         * lib/unictype/pr_decimal_digit.c: New file.
54171         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54172         * lib/unictype/pr_deprecated.c: New file.
54173         * lib/unictype/pr_diacritic.c: New file.
54174         * lib/unictype/pr_extender.c: New file.
54175         * lib/unictype/pr_format_control.c: New file.
54176         * lib/unictype/pr_grapheme_base.c: New file.
54177         * lib/unictype/pr_grapheme_extend.c: New file.
54178         * lib/unictype/pr_grapheme_link.c: New file.
54179         * lib/unictype/pr_hex_digit.c: New file.
54180         * lib/unictype/pr_hyphen.c: New file.
54181         * lib/unictype/pr_id_continue.c: New file.
54182         * lib/unictype/pr_id_start.c: New file.
54183         * lib/unictype/pr_ideographic.c: New file.
54184         * lib/unictype/pr_ids_binary_operator.c: New file.
54185         * lib/unictype/pr_ids_trinary_operator.c: New file.
54186         * lib/unictype/pr_ignorable_control.c: New file.
54187         * lib/unictype/pr_iso_control.c: New file.
54188         * lib/unictype/pr_join_control.c: New file.
54189         * lib/unictype/pr_left_of_pair.c: New file.
54190         * lib/unictype/pr_line_separator.c: New file.
54191         * lib/unictype/pr_logical_order_exception.c: New file.
54192         * lib/unictype/pr_lowercase.c: New file.
54193         * lib/unictype/pr_math.c: New file.
54194         * lib/unictype/pr_non_break.c: New file.
54195         * lib/unictype/pr_not_a_character.c: New file.
54196         * lib/unictype/pr_numeric.c: New file.
54197         * lib/unictype/pr_other_alphabetic.c: New file.
54198         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54199         * lib/unictype/pr_other_grapheme_extend.c: New file.
54200         * lib/unictype/pr_other_id_continue.c: New file.
54201         * lib/unictype/pr_other_id_start.c: New file.
54202         * lib/unictype/pr_other_lowercase.c: New file.
54203         * lib/unictype/pr_other_math.c: New file.
54204         * lib/unictype/pr_other_uppercase.c: New file.
54205         * lib/unictype/pr_paired_punctuation.c: New file.
54206         * lib/unictype/pr_paragraph_separator.c: New file.
54207         * lib/unictype/pr_pattern_syntax.c: New file.
54208         * lib/unictype/pr_pattern_white_space.c: New file.
54209         * lib/unictype/pr_private_use.c: New file.
54210         * lib/unictype/pr_punctuation.c: New file.
54211         * lib/unictype/pr_quotation_mark.c: New file.
54212         * lib/unictype/pr_radical.c: New file.
54213         * lib/unictype/pr_sentence_terminal.c: New file.
54214         * lib/unictype/pr_soft_dotted.c: New file.
54215         * lib/unictype/pr_space.c: New file.
54216         * lib/unictype/pr_terminal_punctuation.c: New file.
54217         * lib/unictype/pr_test.c: New file.
54218         * lib/unictype/pr_titlecase.c: New file.
54219         * lib/unictype/pr_unassigned_code_value.c: New file.
54220         * lib/unictype/pr_unified_ideograph.c: New file.
54221         * lib/unictype/pr_uppercase.c: New file.
54222         * lib/unictype/pr_variation_selector.c: New file.
54223         * lib/unictype/pr_white_space.c: New file.
54224         * lib/unictype/pr_xid_continue.c: New file.
54225         * lib/unictype/pr_xid_start.c: New file.
54226         * lib/unictype/pr_zero_width.c: New file.
54227         * lib/unictype/scripts.c: New file.
54228         * lib/unictype/sy_c_ident.c: New file.
54229         * lib/unictype/sy_c_whitespace.c: New file.
54230         * lib/unictype/sy_java_ident.c: New file.
54231         * lib/unictype/sy_java_whitespace.c: New file.
54232
54233         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54234         Unicode 5.0.0.
54235         * lib/unictype/blocks.h: Likewise.
54236         * lib/unictype/categ_C.h: Likewise.
54237         * lib/unictype/categ_Cc.h: Likewise.
54238         * lib/unictype/categ_Cf.h: Likewise.
54239         * lib/unictype/categ_Cn.h: Likewise.
54240         * lib/unictype/categ_Co.h: Likewise.
54241         * lib/unictype/categ_Cs.h: Likewise.
54242         * lib/unictype/categ_L.h: Likewise.
54243         * lib/unictype/categ_Ll.h: Likewise.
54244         * lib/unictype/categ_Lm.h: Likewise.
54245         * lib/unictype/categ_Lo.h: Likewise.
54246         * lib/unictype/categ_Lt.h: Likewise.
54247         * lib/unictype/categ_Lu.h: Likewise.
54248         * lib/unictype/categ_M.h: Likewise.
54249         * lib/unictype/categ_Mc.h: Likewise.
54250         * lib/unictype/categ_Me.h: Likewise.
54251         * lib/unictype/categ_Mn.h: Likewise.
54252         * lib/unictype/categ_N.h: Likewise.
54253         * lib/unictype/categ_Nd.h: Likewise.
54254         * lib/unictype/categ_Nl.h: Likewise.
54255         * lib/unictype/categ_No.h: Likewise.
54256         * lib/unictype/categ_P.h: Likewise.
54257         * lib/unictype/categ_Pc.h: Likewise.
54258         * lib/unictype/categ_Pd.h: Likewise.
54259         * lib/unictype/categ_Pe.h: Likewise.
54260         * lib/unictype/categ_Pf.h: Likewise.
54261         * lib/unictype/categ_Pi.h: Likewise.
54262         * lib/unictype/categ_Po.h: Likewise.
54263         * lib/unictype/categ_Ps.h: Likewise.
54264         * lib/unictype/categ_S.h: Likewise.
54265         * lib/unictype/categ_Sc.h: Likewise.
54266         * lib/unictype/categ_Sk.h: Likewise.
54267         * lib/unictype/categ_Sm.h: Likewise.
54268         * lib/unictype/categ_So.h: Likewise.
54269         * lib/unictype/categ_Z.h: Likewise.
54270         * lib/unictype/categ_Zl.h: Likewise.
54271         * lib/unictype/categ_Zp.h: Likewise.
54272         * lib/unictype/categ_Zs.h: Likewise.
54273         * lib/unictype/categ_of.h: Likewise.
54274         * lib/unictype/combining.h: Likewise.
54275         * lib/unictype/ctype_alnum.h: Likewise.
54276         * lib/unictype/ctype_alpha.h: Likewise.
54277         * lib/unictype/ctype_blank.h: Likewise.
54278         * lib/unictype/ctype_cntrl.h: Likewise.
54279         * lib/unictype/ctype_digit.h: Likewise.
54280         * lib/unictype/ctype_graph.h: Likewise.
54281         * lib/unictype/ctype_lower.h: Likewise.
54282         * lib/unictype/ctype_print.h: Likewise.
54283         * lib/unictype/ctype_punct.h: Likewise.
54284         * lib/unictype/ctype_space.h: Likewise.
54285         * lib/unictype/ctype_upper.h: Likewise.
54286         * lib/unictype/ctype_xdigit.h: Likewise.
54287         * lib/unictype/decdigit.h: Likewise.
54288         * lib/unictype/digit.h: Likewise.
54289         * lib/unictype/mirror.h: Likewise.
54290         * lib/unictype/numeric.h: Likewise.
54291         * lib/unictype/pr_alphabetic.h: Likewise.
54292         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54293         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54294         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54295         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54296         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54297         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54298         * lib/unictype/pr_bidi_control.h: Likewise.
54299         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54300         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54301         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54302         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54303         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54304         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54305         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54306         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54307         * lib/unictype/pr_bidi_pdf.h: Likewise.
54308         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54309         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54310         * lib/unictype/pr_combining.h: Likewise.
54311         * lib/unictype/pr_composite.h: Likewise.
54312         * lib/unictype/pr_currency_symbol.h: Likewise.
54313         * lib/unictype/pr_dash.h: Likewise.
54314         * lib/unictype/pr_decimal_digit.h: Likewise.
54315         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54316         * lib/unictype/pr_deprecated.h: Likewise.
54317         * lib/unictype/pr_diacritic.h: Likewise.
54318         * lib/unictype/pr_extender.h: Likewise.
54319         * lib/unictype/pr_format_control.h: Likewise.
54320         * lib/unictype/pr_grapheme_base.h: Likewise.
54321         * lib/unictype/pr_grapheme_extend.h: Likewise.
54322         * lib/unictype/pr_grapheme_link.h: Likewise.
54323         * lib/unictype/pr_hex_digit.h: Likewise.
54324         * lib/unictype/pr_hyphen.h: Likewise.
54325         * lib/unictype/pr_id_continue.h: Likewise.
54326         * lib/unictype/pr_id_start.h: Likewise.
54327         * lib/unictype/pr_ideographic.h: Likewise.
54328         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54329         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54330         * lib/unictype/pr_ignorable_control.h: Likewise.
54331         * lib/unictype/pr_iso_control.h: Likewise.
54332         * lib/unictype/pr_join_control.h: Likewise.
54333         * lib/unictype/pr_left_of_pair.h: Likewise.
54334         * lib/unictype/pr_line_separator.h: Likewise.
54335         * lib/unictype/pr_logical_order_exception.h: Likewise.
54336         * lib/unictype/pr_lowercase.h: Likewise.
54337         * lib/unictype/pr_math.h: Likewise.
54338         * lib/unictype/pr_non_break.h: Likewise.
54339         * lib/unictype/pr_not_a_character.h: Likewise.
54340         * lib/unictype/pr_numeric.h: Likewise.
54341         * lib/unictype/pr_other_alphabetic.h: Likewise.
54342         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54343         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54344         * lib/unictype/pr_other_id_continue.h: Likewise.
54345         * lib/unictype/pr_other_id_start.h: Likewise.
54346         * lib/unictype/pr_other_lowercase.h: Likewise.
54347         * lib/unictype/pr_other_math.h: Likewise.
54348         * lib/unictype/pr_other_uppercase.h: Likewise.
54349         * lib/unictype/pr_paired_punctuation.h: Likewise.
54350         * lib/unictype/pr_paragraph_separator.h: Likewise.
54351         * lib/unictype/pr_pattern_syntax.h: Likewise.
54352         * lib/unictype/pr_pattern_white_space.h: Likewise.
54353         * lib/unictype/pr_private_use.h: Likewise.
54354         * lib/unictype/pr_punctuation.h: Likewise.
54355         * lib/unictype/pr_quotation_mark.h: Likewise.
54356         * lib/unictype/pr_radical.h: Likewise.
54357         * lib/unictype/pr_sentence_terminal.h: Likewise.
54358         * lib/unictype/pr_soft_dotted.h: Likewise.
54359         * lib/unictype/pr_space.h: Likewise.
54360         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54361         * lib/unictype/pr_titlecase.h: Likewise.
54362         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54363         * lib/unictype/pr_unified_ideograph.h: Likewise.
54364         * lib/unictype/pr_uppercase.h: Likewise.
54365         * lib/unictype/pr_variation_selector.h: Likewise.
54366         * lib/unictype/pr_white_space.h: Likewise.
54367         * lib/unictype/pr_xid_continue.h: Likewise.
54368         * lib/unictype/pr_xid_start.h: Likewise.
54369         * lib/unictype/pr_zero_width.h: Likewise.
54370         * lib/unictype/scripts.h: Likewise.
54371         * lib/unictype/scripts_byname.gperf: Likewise.
54372         * lib/unictype/sy_c_ident.h: Likewise.
54373         * lib/unictype/sy_c_whitespace.h: Likewise.
54374         * lib/unictype/sy_java_ident.h: Likewise.
54375         * lib/unictype/sy_java_whitespace.h: Likewise.
54376
54377         * lib/unictype/Makefile: New file.
54378         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54379         glibc.
54380         * lib/unictype/3level.h: New file, copied from glibc.
54381         * lib/unictype/3levelbit.h: New file.
54382
54383 2007-11-11  Bruno Haible  <bruno@clisp.org>
54384
54385         * modules/gperf: New file.
54386         * modules/iconv_open (Depends-on): Add it.
54387         (Makefile.am): Remove the GPERF definition.
54388
54389 2007-11-11  Bruno Haible  <bruno@clisp.org>
54390
54391         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54392         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54393
54394 2007-11-11  Bruno Haible  <bruno@clisp.org>
54395
54396         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54397         (usage): Remove function.
54398
54399 2007-11-11  Bruno Haible  <bruno@clisp.org>
54400
54401         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54402         gl_FUNC_CEILF_LIBS.
54403         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54404         gl_FUNC_CEIL_LIBS.
54405         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54406         gl_FUNC_CEILL_LIBS.
54407         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54408         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54409         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54410
54411 2007-11-11  Bruno Haible  <bruno@clisp.org>
54412
54413         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54414         roundf were declared but do not exist on functions.
54415         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54416         roundl were declared but do not exist on functions.
54417         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54418         HAVE_FLOORL_AND_CEILL, respectively.
54419         Needed for Sun C on Solaris 10.
54420
54421 2007-11-11  Bruno Haible  <bruno@clisp.org>
54422
54423         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54424         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54425         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54426         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54427         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54428         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54429         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54430         HAVE_DECL_ROUNDF.
54431         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54432         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54434         of HAVE_DECL_ROUND*.
54435         * modules/math (Makefile.am): Update.
54436
54437 2007-11-10  Bruno Haible  <bruno@clisp.org>
54438
54439         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54440         ptrdiff_t as m4/intl.m4.
54441
54442 2007-11-10  Jim Meyering  <meyering@redhat.com>
54443
54444         Avoid link failure for the argmatch test.
54445         * tests/test-argmatch.c (usage): Define function to avoid a link
54446         failure: argmatch_die requires a usage function.
54447
54448 2007-11-09  Bruno Haible  <bruno@clisp.org>
54449
54450         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54451         * doc/functions/vsnprintf.texi: Likewise.
54452         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54453         with a size argument < 2.
54454
54455 2007-11-09  Bruno Haible  <bruno@clisp.org>
54456
54457         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54458         buffer. Fixes an inefficiency introduced on 2007-11-03.
54459
54460 2007-11-09  Bruno Haible  <bruno@clisp.org>
54461
54462         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54463         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54464
54465 2007-11-08  Jim Meyering  <meyering@redhat.com>
54466
54467         Change cache variable name prefix "jm_" to "gl_" everywhere.
54468         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54469         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54470         * m4/uptime.m4: s/gl_/jm_/
54471
54472 2007-11-07  Bruno Haible  <bruno@clisp.org>
54473
54474         Update to GNU gettext 0.17.
54475         * m4/intl.m4: Update to GNU gettext 0.17.
54476         * m4/po.m4: Likewise.
54477         * modules/gettext (Files): Remove m4/ulonglong.m4.
54478         (configure.ac): Require gettext infrastructure from version 0.17.
54479
54480 2007-11-06  Bruno Haible  <bruno@clisp.org>
54481
54482         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54483         symbolic values are not defined in a public header.
54484         * lib/freadable.c (freadable) [QNX]: Likewise.
54485         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54486         * lib/freading.c (freading) [QNX]: Likewise.
54487         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54488         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54489         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54490         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54491         Reported by Alain Magloire.
54492
54493         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54494
54495 2007-11-05  Bruno Haible  <bruno@clisp.org>
54496
54497         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54498         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54499         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54500         Reported by Eric Blake.
54501
54502 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54503             Bruno Haible  <bruno@clisp.org>
54504
54505         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54506         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54507         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54508         (malloc): Undefine also before including <stdlib.h>.
54509         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54510         Needed on OSF/1 4.0.
54511
54512 2007-11-05  Jim Meyering  <meyering@redhat.com>
54513
54514         git-version-gen: sync from coreutils.
54515         * build-aux/git-version-gen: Add comments.
54516         Change the first '-' to '.' in the snapshot version string,
54517         e.g., 6.9-377-08144 -> 6.9.377-08144
54518         Remove first parameter.
54519         Don't declare a version "-dirty" merely because a time
54520         stamp has changed.
54521
54522 2007-11-04  Bruno Haible  <bruno@clisp.org>
54523
54524         * lib/lock.h: Protect all macro definitions containing an 'if'
54525         statement through a "do { ... } while (0)".
54526         * lib/tls.h: Likewise.
54527
54528 2007-11-04  Bruno Haible  <bruno@clisp.org>
54529
54530         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54531
54532 2007-11-04  Bruno Haible  <bruno@clisp.org>
54533
54534         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54535         * modules/fprintf-posix (Depends-on): Add nocrash.
54536         * modules/snprintf-posix (Depends-on): Likewise.
54537         * modules/sprintf-posix (Depends-on): Likewise.
54538         * modules/vasnprintf-posix (Depends-on): Likewise.
54539         * modules/vasprintf-posix (Depends-on): Likewise.
54540         * modules/vfprintf-posix (Depends-on): Likewise.
54541         * modules/vsnprintf-posix (Depends-on): Likewise.
54542         * modules/vsprintf-posix (Depends-on): Likewise.
54543         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54544         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54545         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54546         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54547         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54548         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54549         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54550
54551 2007-11-04  Bruno Haible  <bruno@clisp.org>
54552
54553         * modules/nocrash: New file.
54554         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54555         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54556
54557 2007-11-04  Bruno Haible  <bruno@clisp.org>
54558
54559         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54560         precision handling.
54561         * tests/test-vasprintf-posix.c (test_function): Likewise.
54562         * tests/test-snprintf-posix.h (test_function): Likewise.
54563         * tests/test-sprintf-posix.h (test_function): Likewise.
54564
54565         Fix *printf behaviour for large precisions on mingw and BeOS.
54566         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54567         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54569         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54571         gl_PRINTF_PRECISION and test its result. Invoke
54572         gl_PREREQ_VASNPRINTF_PRECISION.
54573         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54574         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54575         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54576         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54577         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54578         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54579         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54580         * doc/functions/fprintf.texi: Update.
54581         * doc/functions/printf.texi: Update.
54582         * doc/functions/snprintf.texi: Update.
54583         * doc/functions/sprintf.texi: Update.
54584         * doc/functions/vfprintf.texi: Update.
54585         * doc/functions/vprintf.texi: Update.
54586         * doc/functions/vsnprintf.texi: Update.
54587         * doc/functions/vsprintf.texi: Update.
54588
54589 2007-11-04  Bruno Haible  <bruno@clisp.org>
54590
54591         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54592
54593 2007-11-04  Bruno Haible  <bruno@clisp.org>
54594
54595         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54596         Reported by Sylvain Beucler <beuc@gnu.org>.
54597
54598 2007-11-03  Bruno Haible  <bruno@clisp.org>
54599
54600         * tests/test-fprintf-posix2.sh: New file.
54601         * tests/test-fprintf-posix2.c: New file.
54602         * modules/fprintf-posix-tests (Files): Add them.
54603         (TESTS): Add test-fprintf-posix2.sh.
54604         (configure.ac): Check for getrlimit and setrlimit.
54605         (check_PROGRAMS): Add test-fprintf-posix2.
54606
54607         * tests/test-printf-posix2.sh: New file.
54608         * tests/test-printf-posix2.c: New file.
54609         * modules/printf-posix-tests (Files): Add them.
54610         (TESTS): Add test-printf-posix2.sh.
54611         (configure.ac): Check for getrlimit and setrlimit.
54612         (check_PROGRAMS): Add test-printf-posix2.
54613
54614         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54615         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54616         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54617         (decode_double): New function, copied from decode_long_double.
54618         (scale10_round_decimal_decoded): New function, extracted from
54619         scale10_round_decimal_long_double.
54620         (scale10_round_decimal_long_double): Use it.
54621         (scale10_round_decimal_double): New function.
54622         (floorlog10): New function.
54623         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54625         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54626         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54627         gl_PRINTF_ENOMEM and test its result. Invoke
54628         gl_PREREQ_VASNPRINTF_ENOMEM.
54629         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54630         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54631         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54632         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54633         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54634         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54635         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54636         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54637         * modules/snprintf-posix (Depends-on): Likewise.
54638         * modules/sprintf-posix (Depends-on): Likewise.
54639         * modules/vasnprintf-posix (Depends-on): Likewise.
54640         * modules/vasprintf-posix (Depends-on): Likewise.
54641         * modules/vfprintf-posix (Depends-on): Likewise.
54642         * modules/vsnprintf-posix (Depends-on): Likewise.
54643         * modules/vsprintf-posix (Depends-on): Likewise.
54644         * doc/functions/fprintf.texi: Update.
54645         * doc/functions/printf.texi: Update.
54646         * doc/functions/snprintf.texi: Update.
54647         * doc/functions/sprintf.texi: Update.
54648         * doc/functions/vfprintf.texi: Update.
54649         * doc/functions/vprintf.texi: Update.
54650         * doc/functions/vsnprintf.texi: Update.
54651         * doc/functions/vsprintf.texi: Update.
54652
54653 2007-11-03  Bruno Haible  <bruno@clisp.org>
54654
54655         * modules/frexp-nolibm-tests: New file.
54656
54657         * modules/frexp-nolibm: New file.
54658         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54659
54660 2007-11-03  Bruno Haible  <bruno@clisp.org>
54661
54662         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54663         value is C99 compliant.
54664         Needed for OSF/1 5.1.
54665
54666 2007-11-03  Bruno Haible  <bruno@clisp.org>
54667
54668         Fix out-of-memory handling of vasnprintf.
54669         * lib/printf-parse.c: Include <errno.h>.
54670         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54671         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54672         is already set.
54673
54674 2007-11-02  Eric Blake  <ebb9@byu.net>
54675
54676         Fix tests on cygwin.
54677         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54678
54679 2007-11-01  Bruno Haible  <bruno@clisp.org>
54680
54681         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54682         warning.
54683         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54684         needed for POSIX compatibility.
54685
54686 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54687
54688         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54689         for compatibility with GNU.
54690
54691 2007-11-01  Bruno Haible  <bruno@clisp.org>
54692
54693         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54694         (putenv): Renamed from rpl_putenv. Change argument type from
54695         'const char *' to 'char *'.
54696         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54697         of defining putenv in config.h, just set REPLACE_PUTENV.
54698         * modules/putenv (Depends-on): Add stdlib.
54699         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54700         (Include): Use <stdlib.h>.
54701         * lib/stdlib.in.h (putenv): New declaration.
54702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54703         REPLACE_PUTENV.
54704         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54705         REPLACE_PUTENV.
54706         Needed for MacOS X 10.5.0.
54707         Reported by Peter O'Gorman <peter@pogma.com>.
54708
54709 2007-11-01  Jim Meyering  <meyering@redhat.com>
54710
54711         Treat an empty date string exactly like "0".
54712         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54713         if the remaining date string (to be parsed) is empty, use "0".
54714         Reported by Mischa Molhoek and discussed in this thread:
54715         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54716
54717 2007-10-31  Bruno Haible  <bruno@clisp.org>
54718
54719         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54720         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54721         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54722         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54723         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54724         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54725
54726 2007-10-31  Bruno Haible  <bruno@clisp.org>
54727
54728         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54729         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54730         (AC_TYPE_LONG_LONG_INT): Use it.
54731         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54732         it as well.
54733         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54734         to m4/longlong.m4.
54735         * modules/stdint (Files): Remove m4/ulonglong.m4.
54736         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54737         m4/ulonglong.m4.
54738         * modules/strtoumax (Files): Likewise.
54739
54740 2007-10-30  Bruno Haible  <bruno@clisp.org>
54741
54742         * modules/xvasprintf-posix: New file.
54743         Suggested by Eric Blake.
54744
54745 2007-10-30  Bruno Haible  <bruno@clisp.org>
54746
54747         * modules/xprintf-posix-tests: New file.
54748         * tests/test-xprintf-posix.sh: New file.
54749         * tests/test-xprintf-posix.c: New file.
54750         * tests/test-xfprintf-posix.c: New file.
54751
54752         * modules/xprintf-posix: New file.
54753
54754 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54755
54756         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54757         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54758         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54759
54760 2007-10-29  Bruno Haible  <bruno@clisp.org>
54761
54762         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54763         contain the special marker '_cv_'.
54764         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54765         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54766         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54767         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54768         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54769         Reported by Ralf Wildenhues.
54770
54771 2007-10-29  Bruno Haible  <bruno@clisp.org>
54772
54773         * gnulib-tool (func_import): When --lgpl is not specified, set
54774         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54775         GPLv3.
54776         Reported by Simon Josefsson.
54777
54778 2007-10-28  Bruno Haible  <bruno@clisp.org>
54779
54780         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54781         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54782         HAVE_DECL_ISFINITE.
54783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54784         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54785         HAVE_DECL_ISFINITE.
54786
54787 2007-10-28  Bruno Haible  <bruno@clisp.org>
54788
54789         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54790         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54791
54792 2007-10-28  Bruno Haible  <bruno@clisp.org>
54793
54794         Fix link errors with Sun C 5.0 on Solaris 10.
54795         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54796         function is declared but not present in the compiler's libm.
54797         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54798         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54799         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54800         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54801         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54802         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54803         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54805         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54806         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54807         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54808         HAVE_DECL_FLOORL.
54809
54810 2007-10-28  Bruno Haible  <bruno@clisp.org>
54811
54812         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54813         gl_FUNC_FLOORL. Cache the result.
54814         (gl_FUNC_FLOORL): Use it.
54815         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54816         gl_FUNC_CEILL. Cache the result.
54817         (gl_FUNC_CEILL): Use it.
54818
54819         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54820         gl_FUNC_FLOOR. Cache the result.
54821         (gl_FUNC_FLOOR): Use it.
54822         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54823         gl_FUNC_CEIL. Cache the result.
54824         (gl_FUNC_CEIL): Use it.
54825
54826         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54827         gl_FUNC_FLOORF. Cache the result.
54828         (gl_FUNC_FLOORF): Use it.
54829         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54830         gl_FUNC_CEILF. Cache the result.
54831         (gl_FUNC_CEILF): Use it.
54832
54833 2007-10-28  Bruno Haible  <bruno@clisp.org>
54834
54835         * gnulib-tool: Allow specifying the LGPL version number through
54836         --lgpl=2 or --lgpl=3.
54837         (func_usage): Document --lgpl with argument.
54838         Handle --lgpl=... arguments.
54839         (func_import): Recognize also gl_LGPL calls with an argument. When
54840         --lgpl=2 is used and the module's license is just LGPL, report an
54841         error. Set sed_transform_lib_file according to the lgpl variable. In
54842         the generated files, use --lgpl or gl_LGPL invocations with argument,
54843         if necessary.
54844         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54845         an LGPv2+ license.
54846         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54847         gl_LGPL macro.
54848
54849 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54850             Bruno Haible  <bruno@clisp.org>
54851
54852         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54853         (u16_uctomb_aux): Likewise.
54854         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54855         !HAVE_INLINE.
54856         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54857
54858 2007-10-28  Bruno Haible  <bruno@clisp.org>
54859
54860         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54861         Invoke AM_GETTEXT_OPTION if it exists.
54862         * modules/vasprintf: Likewise.
54863         * modules/verror: Likewise.
54864         * modules/xprintf: Likewise.
54865         * modules/xvasprintf: Likewise.
54866
54867 2007-10-27  Ben Pfaff  <blp@gnu.org>
54868
54869         * lib/math.in.h: Define isfinite macro and prototypes for
54870         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54871         implementations.
54872         * m4/math_h.m4: New substitutions for isfinite module.
54873         * lib/isfinite.c: New file.
54874         * m4/isfinite.m4: New file.
54875         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54876         * modules/isfinite: New file.
54877         * modules/isfinite-tests: New file.
54878         * tests/tests-isfinite.c: New file.
54879         * doc/functions/isfinite.texi: Mention isfinite module.
54880         * MODULES.html.sh: Mention new module.
54881
54882 2007-10-27  Ben Pfaff  <blp@gnu.org>
54883
54884         Ralf Wildenhues reported that Tru64 4.0D declares the round
54885         functions but does not have definitions.
54886         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54887         cannot be found in any library, set the output variable to
54888         "missing" instead of "".
54889         * m4/round.m4: Also use our substitute if we cannot find round in
54890         any library, even if it is declared.
54891         * m4/roundf.m4: Likewise for roundf.
54892         * m4/roundl.m4: Likewise for roundl.
54893         * lib/math.in.h: Undefine roundf, round, roundl before defining
54894         their replacements, to allow for hypothetical systems where these
54895         may be defined as macros but not available in libraries.
54896
54897 2007-10-27  Bruno Haible  <bruno@clisp.org>
54898
54899         * doc/gnulib.texi: Invoke @firstparagraphindent.
54900         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54901         changes in gnulib.
54902         (Source changes): New section.
54903
54904 2007-10-26  Bruno Haible  <bruno@clisp.org>
54905
54906         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54907         borrowed from autoconf.
54908
54909 2007-10-26  Bruno Haible  <bruno@clisp.org>
54910
54911         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54912         strerror returned the empty string. Needed on HP-UX 11.00.
54913
54914 2007-10-24  Micah Cowan  <micah@cowan.name>
54915
54916         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54917         * build-aux/bootstrap: Remove support for now-unnecessary option,
54918         --cvs-user, and envvars CVS_USER, CVS_RSH.
54919
54920 2007-10-24  Jim Meyering  <meyering@redhat.com>
54921
54922         Avoid diagnostics from sha1sum when there is no cached checksum.
54923         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54924         if the po.s1 file hasn't been created yet.
54925
54926         * build-aux/bootstrap: Sync from coreutils:
54927         2007-10-24  Jim Meyering  <meyering@redhat.com>
54928         Get gnulib from the git repository, not from an obsolete cvs one.
54929         * build-aux/bootstrap: Suggestion from Micah Cowan.
54930         2007-10-04  Jim Meyering  <jim@meyering.net>
54931         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54932         (update_po_files): Work also when there are no .po files in po/.
54933
54934 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54935
54936         * README: Append ".git" to git and cg examples.
54937         Problem reported by Benoit Sigoure.
54938
54939 2007-10-23  Micah Cowan  <micah@cowan.name>
54940
54941         * users.txt: Add wget.
54942
54943 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54944
54945         Fix linking of some unistdio tests on FreeBSD.
54946         * modules/unistdio/u16-vsnprintf-tests
54947         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54948         * modules/unistdio/u16-vsprintf-tests
54949         (test_u16_vsnprintf1_LDADD): Likewise.
54950         * modules/unistdio/u32-vsnprintf-tests
54951         (test_u32_vsnprintf1_LDADD): Likewise.
54952         * modules/unistdio/u32-vsprintf-tests
54953         (test_u32_vsprintf1_LDADD): Likewise.
54954         * modules/unistdio/u8-vsnprintf-tests
54955         (test_u8_vsnprintf1_LDADD): Likewise.
54956         * modules/unistdio/u8-vsprintf-tests
54957         (test_u8_vsprintf1_LDADD): Likewise.
54958         * modules/unistdio/ulc-vsnprintf-tests
54959         (test_ulc_vsnprintf1_LDADD): Likewise.
54960         * modules/unistdio/ulc-vsprintf-tests
54961         (test_ulc_vsprintf1_LDADD): Likewise.
54962
54963         Fix linking of some uniconv tests on FreeBSD.
54964         * modules/uniconv/u16-conv-from-enc-tests
54965         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54966         * modules/uniconv/u16-conv-to-enc-tests
54967         (test_u16_conv_to_enc_LDADD): Likewise.
54968         * modules/uniconv/u16-strconv-from-enc-tests
54969         (test_u16_strconv_from_enc_LDADD): Likewise.
54970         * modules/uniconv/u16-strconv-to-enc-tests
54971         (test_u16_strconv_to_enc_LDADD): Likewise.
54972         * modules/uniconv/u32-conv-from-enc-tests
54973         (test_u32_conv_from_enc_LDADD): Likewise.
54974         * modules/uniconv/u32-conv-to-enc-tests
54975         (test_u32_conv_to_enc_LDADD): Likewise.
54976         * modules/uniconv/u32-strconv-from-enc-tests
54977         (test_u32_strconv_from_enc_LDADD): Likewise.
54978         * modules/uniconv/u32-strconv-to-enc-tests
54979         (test_u32_strconv_to_enc_LDADD): Likewise.
54980         * modules/uniconv/u8-conv-from-enc-tests
54981         (test_u8_conv_from_enc_LDADD): Likewise.
54982         * modules/uniconv/u8-conv-to-enc-tests
54983         (test_u8_conv_to_enc_LDADD): Likewise.
54984         * modules/uniconv/u8-strconv-from-enc-tests
54985         (test_u8_strconv_from_enc_LDADD): Likewise.
54986         * modules/uniconv/u8-strconv-to-enc-tests
54987         (test_u8_strconv_to_enc_LDADD): Likewise.
54988
54989 2007-10-22  Bruno Haible  <bruno@clisp.org>
54990
54991         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54992         size.
54993
54994 2007-10-22  Eric Blake  <ebb9@byu.net>
54995
54996         Tweak x*printf documentation.
54997         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54998         variable name and comments.
54999         Suggested by Bruno Haible.
55000
55001 2007-10-22  Bruno Haible  <bruno@clisp.org>
55002
55003         * lib/acl.c (copy_acl): Fix file name in comment.
55004
55005 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55006
55007         Fix Tru64 problem with stdbool.h.
55008         * lib/stdbool.in.h (false, true):
55009         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55010         Don't declare as an enum in this situation; it runs afoul of Tru64.
55011         Problem reported by Steven M. Schweda in
55012         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55013
55014 2007-10-22  Eric Blake  <ebb9@byu.net>
55015
55016         Also wrap vf?printf.
55017         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55018         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55019         (xvprintf, xvfprintf): New functions.
55020
55021 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55022
55023         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55024         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55025
55026         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55027         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55028
55029 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55030
55031         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55032         by Bruno Haible.
55033
55034 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55035
55036         * lib/getloadavg.c
55037         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55038         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55039
55040         * tests/test-i-ring.c: Work for C89.
55041
55042 2007-10-22  Bruno Haible  <bruno@clisp.org>
55043
55044         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55045         -1u, in preprocessor expression, so that we don't test for the bug
55046         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55048
55049 2007-10-22  Eric Blake  <ebb9@byu.net>
55050
55051         * tests/test-yesno.sh: Silence stderr during test.
55052
55053 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55054
55055         * modules/crypto/gc-camellia: New file.
55056
55057         * m4/gc-camellia.m4: New file.
55058
55059         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55060
55061         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55062
55063 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55064
55065         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55066         --help to stdout.  Reported by sms@antinode.org (Steven
55067         M. Schweda).
55068
55069 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55070
55071         * users.txt: Fix link to libksba.
55072
55073 2007-10-21  Ben Pfaff  <blp@gnu.org>
55074
55075         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55076         round.c roundf implementation that depends on floorf and ceilf to
55077         be tested unconditionally.
55078
55079 2007-10-21  Ben Pfaff  <blp@gnu.org>
55080
55081         * m4/check-libm-func.m4: Removed.
55082         * m4/check-math-lib.m4: New file.
55083         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55084         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55085         definition and lack of AC_LIBOBJ([roundf]).
55086         * m4/roundl.m4: Ditto, and similarly for roundl.
55087         * modules/round: Reference new m4 file.
55088         * modules/roundf: Ditto.
55089         * modules/roundl: Ditto.
55090         * tests/test-round2.c (main): Use ROUND instead of round.
55091         Bug report from Bruno Haible.
55092
55093 2007-10-21  Bruno Haible  <bruno@clisp.org>
55094
55095         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55096         context.
55097
55098 2007-10-21  Bruno Haible  <bruno@clisp.org>
55099
55100         * tests/test-wcwidth.c (main): Allow negative result for some control
55101         characters.
55102
55103         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55104         Needed on OSF/1 5.1.
55105
55106 2007-10-21  Bruno Haible  <bruno@clisp.org>
55107
55108         * tests/test-floorf1.c: Include isnanf.h.
55109         (main): Use isnanf() instead of isnan().
55110         * tests/test-ceilf1.c: Include isnanf.h.
55111         (main): Use isnanf() instead of isnan().
55112         * tests/test-truncf1.c: Include isnanf.h.
55113         (main): Use isnanf() instead of isnan().
55114         * tests/test-roundf1.c: Include isnanf.h.
55115         (main): Use isnanf() instead of isnan().
55116
55117 2007-10-21  Eric Blake  <ebb9@byu.net>
55118
55119         * users.txt: Update URL for m4.
55120
55121 2007-10-21  Bruno Haible  <bruno@clisp.org>
55122
55123         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55124
55125 2007-10-21  Bruno Haible  <bruno@clisp.org>
55126
55127         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55128         Git's management files if the CVS files are not present.
55129
55130 2007-10-20  Bruno Haible  <bruno@clisp.org>
55131
55132         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55133         gcc-3.4.x.
55134
55135 2007-10-20  Ben Pfaff  <blp@gnu.org>
55136
55137         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55138         implementations.
55139         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55140         * lib/round.c: New file.
55141         * lib/roundf.c: New file.
55142         * lib/roundl.c: New file.
55143         * m4/round.m4: New file.
55144         * m4/roundf.m4: New file.
55145         * m4/roundl.m4: New file.
55146         * m4/check-libm-func-m4: New file.
55147         * modules/math: Replace round, roundf, roundl related @VARS@ in
55148         math.in.h.
55149         * modules/round: New file.
55150         * modules/round-tests: New file.
55151         * modules/roundf: New file.
55152         * modules/roundf-tests: New file.
55153         * modules/roundl: New file.
55154         * modules/roundl-tests: New file.
55155         * tests/test-round1.c: New file.
55156         * tests/test-round2.c: New file.
55157         * tests/test-roundf1.c: New file.
55158         * tests/test-roundf2.c: New file.
55159         * tests/test-roundl.c: New file.
55160         * doc/functions/round.texi: Mention round module.
55161         * doc/functions/roundf.texi: Mention roundf module.
55162         * doc/functions/roundl.texi: Mention roundl module.
55163         * MODULES.html.sh: Mention new modules.
55164         Thanks to Bruno Haible for suggestions.
55165
55166 2007-10-20  Jim Meyering  <meyering@redhat.com>
55167
55168         * lib/xprintf.c: Include <config.h> unconditionally.
55169
55170         Change xprintf's license to GPL.
55171         * modules/xprintf (License): s/LGPL/GPL/, since this module
55172         depends on modules (exit and exitfail) which are GPL.
55173         Suggestion from Bruno Haible.
55174
55175         xprintf fixes.
55176         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55177         Use a clearer diagnostic.
55178         Patch from Bruno Haible.
55179
55180 2007-10-20  Bruno Haible  <bruno@clisp.org>
55181
55182         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55183         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55184         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55185
55186 2007-10-20  Bruno Haible  <bruno@clisp.org>
55187
55188         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55189         precision in the comparison result > x - 1 or similar.
55190         * tests/test-ceilf2.c (correct_result_p): Likewise.
55191         * tests/test-truncf2.c (correct_result_p): Likewise.
55192         * tests/test-trunc2.c (correct_result_p): Likewise.
55193         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55194
55195 2007-10-20  Bruno Haible  <bruno@clisp.org>
55196
55197         * modules/ceil: New file.
55198         * m4/ceil.m4: New file.
55199         * doc/functions/ceil.texi: Mention the 'ceil' module.
55200
55201 2007-10-20  Bruno Haible  <bruno@clisp.org>
55202
55203         * modules/floor: New file.
55204         * m4/floor.m4: New file.
55205         * doc/functions/floor.texi: Mention the 'floor' module.
55206
55207 2007-10-20  Bruno Haible  <bruno@clisp.org>
55208
55209         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55210         of %a.
55211         * modules/floorf-tests (Depends-on): Likewise.
55212         * modules/truncf-tests (Depends-on): Likewise.
55213         * modules/trunc-tests (Depends-on): Likewise.
55214         Reported by Ben Pfaff.
55215
55216 2007-10-19  Jim Meyering  <meyering@redhat.com>
55217
55218         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55219         Don't bother testing specific errno values.  Just test ferror.
55220
55221         New module: xprintf
55222         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55223
55224 2007-10-19  Bruno Haible  <bruno@clisp.org>
55225
55226         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55227         syntax.
55228         * modules/javaexec (Makefile.am): Likewise.
55229         * modules/relocatable-prog (Makefile.am): Likewise.
55230         Suggested by Jim Meyering.
55231
55232 2007-10-18  Bruno Haible  <bruno@clisp.org>
55233
55234         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55235         Reported by Jim Meyering.
55236
55237 2007-10-18  Eric Blake  <ebb9@byu.net>
55238
55239         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55240
55241 2007-10-18  Bruno Haible  <bruno@clisp.org>
55242
55243         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55244         the format string into writable memory. Needed in Fortify conditions.
55245
55246 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55247             Bruno Haible  <bruno@clisp.org>
55248
55249         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55250         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55251         * modules/trim (Depends-on): Add mbchar.
55252         (configure.ac): Add gl_FUNC_MBRTOWC.
55253         (Makefile.am): Augment lib_SOURCES.
55254
55255 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55256
55257         Modify glob.c to use fstatat and dirfd, to simplify it.
55258         Suggested by Eric Blake.
55259         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55260         Don't include <stdbool.h>; not used.
55261         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55262         (link_exists_p): Simplify implementation, since we can now assume
55263         dirfd and fstatat.
55264         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55265
55266 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55267
55268         * gnulib-tool (func_get_dependencies): Fix sed script to
55269         match only tests.
55270
55271 2007-10-17  Bruno Haible  <bruno@clisp.org>
55272
55273         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55274         allow locale names without encoding suffix.
55275         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55276         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55277
55278 2007-10-16  Bruno Haible  <bruno@clisp.org>
55279
55280         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55281         * lib/getgroups.c (getgroups): Likewise.
55282         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55283
55284 2007-10-16  Bruno Haible  <bruno@clisp.org>
55285
55286         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55287         * modules/malloc-posix (License): Likewise.
55288         * modules/realloc-posix (License): Likewise.
55289         * modules/calloc-posix (License): Likewise.
55290         * modules/intprops (License): Change from GPL to LGPL, with
55291         Paul Eggert's approval.
55292
55293 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55294
55295         Merge glibc changes into lib/glob.c.
55296
55297         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55298         2007-10-15 04:59:03 UTC.  Here are the changes:
55299
55300         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55301
55302         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55303
55304         * lib/glob.c: Add some branch prediction throughout.
55305
55306         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55307
55308         [BZ #5103]
55309         * lib/glob.c (glob): Recognize patterns starting \/.
55310
55311         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55312
55313         [BZ #3996]
55314         * lib/glob.c (attribute_hidden): Define if not defined.
55315         (glob): Unescape dirname, filename or username when needed and not
55316         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55317         is NULL.  Handle unescaped [ in pattern without closing ].
55318         Don't pass GLOB_CHECK down to recursive glob for directories.
55319         (__glob_pattern_type): New function.
55320         (__glob_pattern_p): Implement using __glob_pattern_type.
55321         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55322         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55323         Remove unreachable code.
55324
55325         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55326
55327         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55328         explain why there are no leaks.
55329
55330         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55331
55332         [BZ #3253]
55333         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55334         time, rather allocate increasingly bigger arrays of pointers, if
55335         possible with alloca, if too large with malloc.
55336
55337 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55338
55339         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55340         Problem reported by H.Merijn Brand in
55341         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55342         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55343         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55344
55345 2007-10-15  Bruno Haible  <bruno@clisp.org>
55346
55347         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55348         with explicit rpl_ prefix.
55349         * lib/fopen.c (fopen): Likewise.
55350         * lib/freopen.c (freopen): Likewise.
55351         * lib/iconv.c (iconv): Likewise.
55352         * lib/iconv_close.c (iconv_close): Likewise.
55353
55354 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55355
55356         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55357
55358 2007-10-15  Bruno Haible  <bruno@clisp.org>
55359
55360         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55361         <stddef.h> instead of <stdlib.h> since we only need NULL.
55362         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55363
55364 2007-10-15  Bruno Haible  <bruno@clisp.org>
55365
55366         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55367         Replace paragraph talking about LIBOBJS.
55368         Reported by Colin Watson <cjwatson@debian.org>.
55369
55370 2007-10-15  Bruno Haible  <bruno@clisp.org>
55371
55372         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55373         <stdlib.h> before using NULL.
55374
55375 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55376
55377         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55378         Reported by Albert Chin <china@thewrittenword.com>.
55379
55380 2007-10-14  Bruno Haible  <bruno@clisp.org>
55381
55382         * modules/iconv_open-utf-tests: New file.
55383         * tests/test-iconv-utf.c: New file.
55384
55385         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55386         * modules/iconv_open-utf: New file.
55387         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55388         (iconv, iconv_close): New declarations.
55389         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55390         be defined.
55391         (iconv_open): Add special handling of conversion between UTF-8 and
55392         UTF-{16,32}{BE,LE}.
55393         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55394         * lib/iconv_close.c: New file.
55395         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55396         gl_FUNC_ICONV_OPEN.
55397         (gl_FUNC_ICONV_OPEN): Use it.
55398         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55399         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55400         and REPLACE_ICONV_UTF.
55401         * modules/iconv_open (Depends-on): Add c-strcase.
55402         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55403         ICONV_CONST.
55404         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55405
55406 2007-10-13  Albert Chin  <china@thewrittenword.com>
55407             Bruno Haible  <bruno@clisp.org>
55408
55409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55410         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55411
55412 2007-10-13  Bruno Haible  <bruno@clisp.org>
55413
55414         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55415         defined, use the ISO C99 inline semantics.
55416         * lib/argp.h (ARGP_EI): Likewise.
55417
55418 2007-10-13  Bruno Haible  <bruno@clisp.org>
55419
55420         Handle 'inline' change in gcc 4.3.0.
55421         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55422         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55423         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55424         argp_fmtstream_point): Disable 'extern' declaration if the function
55425         definition is going to be provided inline.
55426         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55427         semantics, not the ISO C99 inline semantics.
55428         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55429         'extern' declaration if the function definition is going to be provided
55430         inline.
55431         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55432         the GNU C inline semantics, not the ISO C99 inline semantics. With
55433         GCC 4.2, avoid a warning.
55434
55435 2007-10-13  Bruno Haible  <bruno@clisp.org>
55436
55437         * lib/freading.h (freading): Enable the use of __freading for
55438         glibc >= 2.7.
55439         * lib/freading.c (freading): Likewise.
55440
55441 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55442
55443         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55444         "warning: C99 inline functions are not supported; using GNU89".
55445
55446 2007-10-12  Bruno Haible  <bruno@clisp.org>
55447
55448         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55449         of 2.
55450         * tests/test-ceilf2.c: New file.
55451         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55452
55453         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55454         * modules/ceilf-tests: Update.
55455
55456 2007-10-12  Bruno Haible  <bruno@clisp.org>
55457
55458         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55459         of 2.
55460         * tests/test-floorf2.c: New file.
55461         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55462
55463         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55464         * modules/floorf-tests: Update.
55465
55466 2007-10-12  Bruno Haible  <bruno@clisp.org>
55467
55468         * tests/test-trunc2.c: New file.
55469         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55470
55471         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55472         * modules/trunc-tests: Update.
55473
55474 2007-10-12  Bruno Haible  <bruno@clisp.org>
55475
55476         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55477         of 2.
55478         * tests/test-truncf2.c: New file.
55479         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55480
55481         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55482         * modules/truncf-tests: Update.
55483
55484 2007-10-11  Eric Blake  <ebb9@byu.net>
55485
55486         Don't claim strerror is broken on Interix.
55487         * doc/functions/strerror.texi (strerror): Known broken systems are
55488         now Solaris 8, and not Interix.
55489         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55490         Interix on cross-compile.
55491         Reported by Martin Koeppe in
55492         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55493
55494 2007-10-11  Bruno Haible  <bruno@clisp.org>
55495
55496         * modules/i-ring-tests: New file.
55497         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55498         instead of assert.
55499
55500 2007-10-11  Bruno Haible  <bruno@clisp.org>
55501
55502         * modules/filenamecat-tests: New file.
55503         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55504         * lib/filenamecat.c: Remove test code.
55505
55506 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55507
55508         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55509
55510         * lib/strerror.c: Include <string.h> always, to test interface,
55511         and to remove the need for the dummy.
55512         Include intprops.h to compute width instead of doing it ourselves
55513         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55514         (strerror): Define it to return NULL if there's no system strerror.
55515         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55516         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55517         ancient pre-strerror Unix systems well any more.  Saying "unknown
55518         system error" is enough.
55519         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55520         simpler strerror.c implementation.
55521         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55522         Simplify the tests to reflect the simpler strerror implementation.
55523         * modules/strerror (Depends-on): Add intprops.
55524
55525 2007-10-09  Eric Blake  <ebb9@byu.net>
55526
55527         Silence test-fpending.
55528         * modules/fpending-tests (Files): Add wrapper script.
55529         * tests/test-fpending.sh: New file.
55530
55531 2007-10-09  Bruno Haible  <bruno@clisp.org>
55532
55533         * MODULES.html.sh (func_module): Don't create a hyperlink for
55534         function names like 'printf_frexp'.
55535         (Misc): Add crc, memxor.
55536         (Characteristics of floating types): New section.
55537         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55538         isnanf-nolibm, signbit, trunc, truncf, truncl.
55539         (Enhancements for ISO C 99 functions): New subsection Input/output.
55540         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55541         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55542         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55543         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55544         (Enhancements for POSIX:2001 functions): Add chdir-long.
55545         (File system functions): Add areadlink, chdir-safer, read-file.
55546         Remove cycle-check.
55547         (File system as inode set): New section.
55548         (Date and time): Add gethrxtime.
55549         (Multithreading): Add openmp.
55550         (Internationalization functions): Add localename.
55551         (Unicode string functions): Add unistr/u*-mbsnlen.
55552         (Support for maintaining and releasing projects): Add git-version-gen.
55553         (Lone files): Remove directories.
55554
55555 2007-10-08  Ben Pfaff  <blp@gnu.org>
55556
55557         * lib/xmalloca.h: Fix typo in comment.
55558
55559 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55560
55561         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55562         when avoiding problems with integer overflow.  Use a portable test
55563         instead.
55564
55565 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55566
55567         * modules/dummy (License): Change to LGPLv2+.
55568         * modules/float (License): Likewise
55569         * modules/realloc (License): Likewise
55570         * modules/stdlib (License): Likewise
55571
55572 2007-10-07  Bruno Haible  <bruno@clisp.org>
55573
55574         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55575         * floor.c (TWO_MANT_DIG): Likewise.
55576         * ceil.c (TWO_MANT_DIG): Likewise.
55577         Reported by Ben Pfaff.
55578
55579 2007-10-07  Bruno Haible  <bruno@clisp.org>
55580
55581         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55582         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55583         * lib/frexp.c (FUNC): Likewise.
55584         * lib/printf-frexp.h (printf_frexp): Likewise.
55585         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55586         * lib/printf-frexp.c (FUNC): Likewise.
55587         Suggested by Jim Meyering.
55588
55589 2007-10-07  Jim Meyering  <meyering@redhat.com>
55590
55591         Make xnanosleep's integer overflow test more robust.
55592         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55593         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55594
55595 2007-10-07  Bruno Haible  <bruno@clisp.org>
55596
55597         * NEWS: Mention the license change.
55598
55599         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55600         abbreviations in the modules files.
55601
55602         Change copyright notice from GPLv2+ to GPLv3+.
55603         * README: Change copyright notice.
55604         * MODULES.html.sh: Likewise.
55605         * build-aux/bootstrap.conf: Likewise.
55606         * build-aux/config.libpath: Likewise.
55607         * build-aux/csharpcomp.sh.in: Likewise.
55608         * build-aux/csharpexec.sh.in: Likewise.
55609         * build-aux/install-reloc: Likewise.
55610         * build-aux/javacomp.sh.in: Likewise.
55611         * build-aux/javaexec.sh.in: Likewise.
55612         * build-aux/ldd.sh.in: Likewise.
55613         * build-aux/reloc-ldflags: Likewise.
55614         * build-aux/relocatable.sh.in: Likewise.
55615         * build-aux/x-to-1.in: Likewise.
55616         * check-module: Likewise.
55617         * config/srclistvars.sh: Likewise.
55618         * gnulib-tool: Likewise.
55619         * lib/acl-internal.h: Likewise.
55620         * lib/acl.c: Likewise.
55621         * lib/acl.h: Likewise.
55622         * lib/acl_entries.c: Likewise.
55623         * lib/areadlink-with-size.c: Likewise.
55624         * lib/areadlink.c: Likewise.
55625         * lib/areadlink.h: Likewise.
55626         * lib/argmatch.c: Likewise.
55627         * lib/argmatch.h: Likewise.
55628         * lib/argp-ba.c: Likewise.
55629         * lib/argp-eexst.c: Likewise.
55630         * lib/argp-fmtstream.c: Likewise.
55631         * lib/argp-fmtstream.h: Likewise.
55632         * lib/argp-fs-xinl.c: Likewise.
55633         * lib/argp-help.c: Likewise.
55634         * lib/argp-namefrob.h: Likewise.
55635         * lib/argp-parse.c: Likewise.
55636         * lib/argp-pin.c: Likewise.
55637         * lib/argp-pv.c: Likewise.
55638         * lib/argp-pvh.c: Likewise.
55639         * lib/argp-xinl.c: Likewise.
55640         * lib/argp.h: Likewise.
55641         * lib/at-func.c: Likewise.
55642         * lib/atanl.c: Likewise.
55643         * lib/backupfile.c: Likewise.
55644         * lib/backupfile.h: Likewise.
55645         * lib/basename.c: Likewise.
55646         * lib/binary-io.h: Likewise.
55647         * lib/byteswap.in.h: Likewise.
55648         * lib/c-stack.c: Likewise.
55649         * lib/c-stack.h: Likewise.
55650         * lib/c-strcasestr.c: Likewise.
55651         * lib/c-strcasestr.h: Likewise.
55652         * lib/c-strstr.c: Likewise.
55653         * lib/c-strstr.h: Likewise.
55654         * lib/c-strtod.c: Likewise.
55655         * lib/calloc.c: Likewise.
55656         * lib/canon-host.c: Likewise.
55657         * lib/canon-host.h: Likewise.
55658         * lib/canonicalize-lgpl.c: Likewise.
55659         * lib/canonicalize.c: Likewise.
55660         * lib/canonicalize.h: Likewise.
55661         * lib/ceil.c: Likewise.
55662         * lib/ceilf.c: Likewise.
55663         * lib/ceill.c: Likewise.
55664         * lib/chdir-long.c: Likewise.
55665         * lib/chdir-long.h: Likewise.
55666         * lib/chdir-safer.c: Likewise.
55667         * lib/chdir-safer.h: Likewise.
55668         * lib/chown.c: Likewise.
55669         * lib/classpath.c: Likewise.
55670         * lib/classpath.h: Likewise.
55671         * lib/clean-temp.c: Likewise.
55672         * lib/clean-temp.h: Likewise.
55673         * lib/cloexec.c: Likewise.
55674         * lib/close-stream.c: Likewise.
55675         * lib/closein.c: Likewise.
55676         * lib/closein.h: Likewise.
55677         * lib/closeout.c: Likewise.
55678         * lib/closeout.h: Likewise.
55679         * lib/concat-filename.c: Likewise.
55680         * lib/copy-file.c: Likewise.
55681         * lib/copy-file.h: Likewise.
55682         * lib/count-one-bits.h: Likewise.
55683         * lib/crc.c: Likewise.
55684         * lib/crc.h: Likewise.
55685         * lib/creat-safer.c: Likewise.
55686         * lib/csharpcomp.c: Likewise.
55687         * lib/csharpcomp.h: Likewise.
55688         * lib/csharpexec.c: Likewise.
55689         * lib/csharpexec.h: Likewise.
55690         * lib/cycle-check.c: Likewise.
55691         * lib/cycle-check.h: Likewise.
55692         * lib/diacrit.c: Likewise.
55693         * lib/diacrit.h: Likewise.
55694         * lib/diffseq.h: Likewise.
55695         * lib/dirchownmod.c: Likewise.
55696         * lib/dirent.in.h: Likewise.
55697         * lib/dirfd.c: Likewise.
55698         * lib/dirfd.h: Likewise.
55699         * lib/dirname.c: Likewise.
55700         * lib/dirname.h: Likewise.
55701         * lib/dummy.c: Likewise.
55702         * lib/dup-safer.c: Likewise.
55703         * lib/dup2.c: Likewise.
55704         * lib/eealloc.h: Likewise.
55705         * lib/error.c: Likewise.
55706         * lib/error.h: Likewise.
55707         * lib/euidaccess.c: Likewise.
55708         * lib/exclude.c: Likewise.
55709         * lib/exclude.h: Likewise.
55710         * lib/execute.c: Likewise.
55711         * lib/execute.h: Likewise.
55712         * lib/exitfail.c: Likewise.
55713         * lib/exitfail.h: Likewise.
55714         * lib/expl.c: Likewise.
55715         * lib/fatal-signal.c: Likewise.
55716         * lib/fatal-signal.h: Likewise.
55717         * lib/fbufmode.c: Likewise.
55718         * lib/fbufmode.h: Likewise.
55719         * lib/fchdir.c: Likewise.
55720         * lib/fchmodat.c: Likewise.
55721         * lib/fchownat.c: Likewise.
55722         * lib/fcntl--.h: Likewise.
55723         * lib/fcntl-safer.h: Likewise.
55724         * lib/fcntl.in.h: Likewise.
55725         * lib/fd-safer.c: Likewise.
55726         * lib/fflush.c: Likewise.
55727         * lib/file-has-acl.c: Likewise.
55728         * lib/file-set.c: Likewise.
55729         * lib/file-type.c: Likewise.
55730         * lib/file-type.h: Likewise.
55731         * lib/fileblocks.c: Likewise.
55732         * lib/filemode.c: Likewise.
55733         * lib/filemode.h: Likewise.
55734         * lib/filename.h: Likewise.
55735         * lib/filenamecat.c: Likewise.
55736         * lib/filenamecat.h: Likewise.
55737         * lib/findprog.c: Likewise.
55738         * lib/findprog.h: Likewise.
55739         * lib/float.in.h: Likewise.
55740         * lib/floor.c: Likewise.
55741         * lib/floorf.c: Likewise.
55742         * lib/floorl.c: Likewise.
55743         * lib/fopen-safer.c: Likewise.
55744         * lib/fopen.c: Likewise.
55745         * lib/fpending.c: Likewise.
55746         * lib/fpending.h: Likewise.
55747         * lib/fprintf.c: Likewise.
55748         * lib/fprintftime.h: Likewise.
55749         * lib/fpucw.h: Likewise.
55750         * lib/fpurge.c: Likewise.
55751         * lib/fpurge.h: Likewise.
55752         * lib/freadable.c: Likewise.
55753         * lib/freadable.h: Likewise.
55754         * lib/freadahead.c: Likewise.
55755         * lib/freadahead.h: Likewise.
55756         * lib/freading.c: Likewise.
55757         * lib/freading.h: Likewise.
55758         * lib/free.c: Likewise.
55759         * lib/freopen.c: Likewise.
55760         * lib/frexp.c: Likewise.
55761         * lib/frexpl.c: Likewise.
55762         * lib/fseek.c: Likewise.
55763         * lib/fseterr.c: Likewise.
55764         * lib/fseterr.h: Likewise.
55765         * lib/fstatat.c: Likewise.
55766         * lib/fstrcmp.c: Likewise.
55767         * lib/fstrcmp.h: Likewise.
55768         * lib/fsusage.c: Likewise.
55769         * lib/fsusage.h: Likewise.
55770         * lib/ftell.c: Likewise.
55771         * lib/ftello.c: Likewise.
55772         * lib/fts-cycle.c: Likewise.
55773         * lib/fts.c: Likewise.
55774         * lib/fts_.h: Likewise.
55775         * lib/full-read.c: Likewise.
55776         * lib/full-read.h: Likewise.
55777         * lib/full-write.c: Likewise.
55778         * lib/full-write.h: Likewise.
55779         * lib/fwritable.c: Likewise.
55780         * lib/fwritable.h: Likewise.
55781         * lib/fwriteerror.c: Likewise.
55782         * lib/fwriteerror.h: Likewise.
55783         * lib/fwriting.c: Likewise.
55784         * lib/fwriting.h: Likewise.
55785         * lib/gcd.c: Likewise.
55786         * lib/gcd.h: Likewise.
55787         * lib/getcwd.c: Likewise.
55788         * lib/getdate.h: Likewise.
55789         * lib/getdate.y: Likewise.
55790         * lib/getdomainname.c: Likewise.
55791         * lib/getdomainname.h: Likewise.
55792         * lib/getgroups.c: Likewise.
55793         * lib/gethostname.c: Likewise.
55794         * lib/gethrxtime.c: Likewise.
55795         * lib/gethrxtime.h: Likewise.
55796         * lib/getloadavg.c: Likewise.
55797         * lib/getndelim2.c: Likewise.
55798         * lib/getndelim2.h: Likewise.
55799         * lib/getnline.c: Likewise.
55800         * lib/getnline.h: Likewise.
55801         * lib/getopt.c: Likewise.
55802         * lib/getopt.in.h: Likewise.
55803         * lib/getopt1.c: Likewise.
55804         * lib/getopt_int.h: Likewise.
55805         * lib/getpagesize.h: Likewise.
55806         * lib/getsubopt.c: Likewise.
55807         * lib/gettime.c: Likewise.
55808         * lib/getugroups.c: Likewise.
55809         * lib/getugroups.h: Likewise.
55810         * lib/getusershell.c: Likewise.
55811         * lib/gl_anyavltree_list1.h: Likewise.
55812         * lib/gl_anyavltree_list2.h: Likewise.
55813         * lib/gl_anyhash_list1.h: Likewise.
55814         * lib/gl_anyhash_list2.h: Likewise.
55815         * lib/gl_anylinked_list1.h: Likewise.
55816         * lib/gl_anylinked_list2.h: Likewise.
55817         * lib/gl_anyrbtree_list1.h: Likewise.
55818         * lib/gl_anyrbtree_list2.h: Likewise.
55819         * lib/gl_anytree_list1.h: Likewise.
55820         * lib/gl_anytree_list2.h: Likewise.
55821         * lib/gl_anytree_oset.h: Likewise.
55822         * lib/gl_anytreehash_list1.h: Likewise.
55823         * lib/gl_anytreehash_list2.h: Likewise.
55824         * lib/gl_array_list.c: Likewise.
55825         * lib/gl_array_list.h: Likewise.
55826         * lib/gl_array_oset.c: Likewise.
55827         * lib/gl_array_oset.h: Likewise.
55828         * lib/gl_avltree_list.c: Likewise.
55829         * lib/gl_avltree_list.h: Likewise.
55830         * lib/gl_avltree_oset.c: Likewise.
55831         * lib/gl_avltree_oset.h: Likewise.
55832         * lib/gl_avltreehash_list.c: Likewise.
55833         * lib/gl_avltreehash_list.h: Likewise.
55834         * lib/gl_carray_list.c: Likewise.
55835         * lib/gl_carray_list.h: Likewise.
55836         * lib/gl_linked_list.c: Likewise.
55837         * lib/gl_linked_list.h: Likewise.
55838         * lib/gl_linkedhash_list.c: Likewise.
55839         * lib/gl_linkedhash_list.h: Likewise.
55840         * lib/gl_list.c: Likewise.
55841         * lib/gl_list.h: Likewise.
55842         * lib/gl_oset.c: Likewise.
55843         * lib/gl_oset.h: Likewise.
55844         * lib/gl_rbtree_list.c: Likewise.
55845         * lib/gl_rbtree_list.h: Likewise.
55846         * lib/gl_rbtree_oset.c: Likewise.
55847         * lib/gl_rbtree_oset.h: Likewise.
55848         * lib/gl_rbtreehash_list.c: Likewise.
55849         * lib/gl_rbtreehash_list.h: Likewise.
55850         * lib/gl_sublist.c: Likewise.
55851         * lib/gl_sublist.h: Likewise.
55852         * lib/group-member.c: Likewise.
55853         * lib/group-member.h: Likewise.
55854         * lib/hard-locale.c: Likewise.
55855         * lib/hard-locale.h: Likewise.
55856         * lib/hash-pjw.c: Likewise.
55857         * lib/hash-pjw.h: Likewise.
55858         * lib/hash-triple.c: Likewise.
55859         * lib/hash.c: Likewise.
55860         * lib/hash.h: Likewise.
55861         * lib/human.c: Likewise.
55862         * lib/human.h: Likewise.
55863         * lib/i-ring.c: Likewise.
55864         * lib/i-ring.h: Likewise.
55865         * lib/idcache.c: Likewise.
55866         * lib/imaxabs.c: Likewise.
55867         * lib/imaxdiv.c: Likewise.
55868         * lib/inet_pton.c: Likewise.
55869         * lib/inet_pton.h: Likewise.
55870         * lib/intprops.h: Likewise.
55871         * lib/inttostr.c: Likewise.
55872         * lib/inttostr.h: Likewise.
55873         * lib/inttypes.in.h: Likewise.
55874         * lib/isapipe.c: Likewise.
55875         * lib/isdir.c: Likewise.
55876         * lib/isnan.c: Likewise.
55877         * lib/isnan.h: Likewise.
55878         * lib/isnanf.c: Likewise.
55879         * lib/isnanf.h: Likewise.
55880         * lib/isnanl-nolibm.h: Likewise.
55881         * lib/isnanl.c: Likewise.
55882         * lib/isnanl.h: Likewise.
55883         * lib/javacomp.c: Likewise.
55884         * lib/javacomp.h: Likewise.
55885         * lib/javaexec.c: Likewise.
55886         * lib/javaexec.h: Likewise.
55887         * lib/javaversion.c: Likewise.
55888         * lib/javaversion.h: Likewise.
55889         * lib/javaversion.java: Likewise.
55890         * lib/lbrkprop.h: Likewise.
55891         * lib/lchmod.h: Likewise.
55892         * lib/lchown.c: Likewise.
55893         * lib/ldexpl.c: Likewise.
55894         * lib/linebreak.c: Likewise.
55895         * lib/linebreak.h: Likewise.
55896         * lib/linebuffer.c: Likewise.
55897         * lib/linebuffer.h: Likewise.
55898         * lib/locale.in.h: Likewise.
55899         * lib/logl.c: Likewise.
55900         * lib/long-options.c: Likewise.
55901         * lib/long-options.h: Likewise.
55902         * lib/lstat.c: Likewise.
55903         * lib/lstat.h: Likewise.
55904         * lib/math.in.h: Likewise.
55905         * lib/mbchar.c: Likewise.
55906         * lib/mbchar.h: Likewise.
55907         * lib/mbfile.h: Likewise.
55908         * lib/mbiter.h: Likewise.
55909         * lib/mbscasecmp.c: Likewise.
55910         * lib/mbscasestr.c: Likewise.
55911         * lib/mbschr.c: Likewise.
55912         * lib/mbscspn.c: Likewise.
55913         * lib/mbslen.c: Likewise.
55914         * lib/mbsncasecmp.c: Likewise.
55915         * lib/mbsnlen.c: Likewise.
55916         * lib/mbspbrk.c: Likewise.
55917         * lib/mbspcasecmp.c: Likewise.
55918         * lib/mbsrchr.c: Likewise.
55919         * lib/mbssep.c: Likewise.
55920         * lib/mbsspn.c: Likewise.
55921         * lib/mbsstr.c: Likewise.
55922         * lib/mbstok_r.c: Likewise.
55923         * lib/mbswidth.c: Likewise.
55924         * lib/mbswidth.h: Likewise.
55925         * lib/mbuiter.h: Likewise.
55926         * lib/memcasecmp.c: Likewise.
55927         * lib/memcasecmp.h: Likewise.
55928         * lib/memchr.c: Likewise.
55929         * lib/memcmp.c: Likewise.
55930         * lib/memcoll.c: Likewise.
55931         * lib/memcoll.h: Likewise.
55932         * lib/memcpy.c: Likewise.
55933         * lib/memrchr.c: Likewise.
55934         * lib/mkancesdirs.c: Likewise.
55935         * lib/mkdir-p.c: Likewise.
55936         * lib/mkdir-p.h: Likewise.
55937         * lib/mkdir.c: Likewise.
55938         * lib/mkdirat.c: Likewise.
55939         * lib/mkdtemp.c: Likewise.
55940         * lib/mkstemp-safer.c: Likewise.
55941         * lib/mkstemp.c: Likewise.
55942         * lib/modechange.c: Likewise.
55943         * lib/modechange.h: Likewise.
55944         * lib/mountlist.c: Likewise.
55945         * lib/mountlist.h: Likewise.
55946         * lib/mpsort.c: Likewise.
55947         * lib/nanosleep.c: Likewise.
55948         * lib/obstack.c: Likewise.
55949         * lib/obstack.h: Likewise.
55950         * lib/open-safer.c: Likewise.
55951         * lib/open.c: Likewise.
55952         * lib/openat-die.c: Likewise.
55953         * lib/openat-priv.h: Likewise.
55954         * lib/openat-proc.c: Likewise.
55955         * lib/openat.c: Likewise.
55956         * lib/openat.h: Likewise.
55957         * lib/pagealign_alloc.c: Likewise.
55958         * lib/pagealign_alloc.h: Likewise.
55959         * lib/physmem.c: Likewise.
55960         * lib/physmem.h: Likewise.
55961         * lib/pipe-safer.c: Likewise.
55962         * lib/pipe.c: Likewise.
55963         * lib/pipe.h: Likewise.
55964         * lib/posixtm.c: Likewise.
55965         * lib/posixtm.h: Likewise.
55966         * lib/posixver.c: Likewise.
55967         * lib/printf-frexp.c: Likewise.
55968         * lib/printf-frexp.h: Likewise.
55969         * lib/printf-frexpl.c: Likewise.
55970         * lib/printf-frexpl.h: Likewise.
55971         * lib/printf.c: Likewise.
55972         * lib/progname.c: Likewise.
55973         * lib/progname.h: Likewise.
55974         * lib/progreloc.c: Likewise.
55975         * lib/putenv.c: Likewise.
55976         * lib/quote.c: Likewise.
55977         * lib/quote.h: Likewise.
55978         * lib/quotearg.c: Likewise.
55979         * lib/quotearg.h: Likewise.
55980         * lib/raise.c: Likewise.
55981         * lib/readline.c: Likewise.
55982         * lib/readline.h: Likewise.
55983         * lib/readlink.c: Likewise.
55984         * lib/readtokens.c: Likewise.
55985         * lib/readtokens.h: Likewise.
55986         * lib/readtokens0.c: Likewise.
55987         * lib/readtokens0.h: Likewise.
55988         * lib/readutmp.c: Likewise.
55989         * lib/readutmp.h: Likewise.
55990         * lib/realloc.c: Likewise.
55991         * lib/relocwrapper.c: Likewise.
55992         * lib/rename-dest-slash.c: Likewise.
55993         * lib/rename.c: Likewise.
55994         * lib/rmdir.c: Likewise.
55995         * lib/rpmatch.c: Likewise.
55996         * lib/safe-read.c: Likewise.
55997         * lib/safe-read.h: Likewise.
55998         * lib/safe-write.c: Likewise.
55999         * lib/safe-write.h: Likewise.
56000         * lib/same-inode.h: Likewise.
56001         * lib/same.c: Likewise.
56002         * lib/same.h: Likewise.
56003         * lib/save-cwd.c: Likewise.
56004         * lib/save-cwd.h: Likewise.
56005         * lib/savedir.c: Likewise.
56006         * lib/savedir.h: Likewise.
56007         * lib/savewd.c: Likewise.
56008         * lib/savewd.h: Likewise.
56009         * lib/search.in.h: Likewise.
56010         * lib/setenv.c: Likewise.
56011         * lib/setenv.h: Likewise.
56012         * lib/settime.c: Likewise.
56013         * lib/sh-quote.c: Likewise.
56014         * lib/sh-quote.h: Likewise.
56015         * lib/sig2str.c: Likewise.
56016         * lib/sig2str.h: Likewise.
56017         * lib/signal.in.h: Likewise.
56018         * lib/signbitd.c: Likewise.
56019         * lib/signbitf.c: Likewise.
56020         * lib/signbitl.c: Likewise.
56021         * lib/sigprocmask.c: Likewise.
56022         * lib/sincosl.c: Likewise.
56023         * lib/sleep.c: Likewise.
56024         * lib/sprintf.c: Likewise.
56025         * lib/sqrtl.c: Likewise.
56026         * lib/stat-time.h: Likewise.
56027         * lib/stdio--.h: Likewise.
56028         * lib/stdio-safer.h: Likewise.
56029         * lib/stdlib--.h: Likewise.
56030         * lib/stdlib-safer.h: Likewise.
56031         * lib/stdlib.in.h: Likewise.
56032         * lib/stpcpy.c: Likewise.
56033         * lib/stpncpy.c: Likewise.
56034         * lib/strchrnul.c: Likewise.
56035         * lib/strcspn.c: Likewise.
56036         * lib/strerror.c: Likewise.
56037         * lib/strftime.c: Likewise.
56038         * lib/strftime.h: Likewise.
56039         * lib/striconveh.c: Likewise.
56040         * lib/striconveh.h: Likewise.
56041         * lib/striconveha.c: Likewise.
56042         * lib/striconveha.h: Likewise.
56043         * lib/stripslash.c: Likewise.
56044         * lib/strnlen1.c: Likewise.
56045         * lib/strnlen1.h: Likewise.
56046         * lib/strtod.c: Likewise.
56047         * lib/strtoimax.c: Likewise.
56048         * lib/strtok_r.c: Likewise.
56049         * lib/strtol.c: Likewise.
56050         * lib/strtoll.c: Likewise.
56051         * lib/strtoul.c: Likewise.
56052         * lib/strtoull.c: Likewise.
56053         * lib/sysexits.in.h: Likewise.
56054         * lib/tempname.c: Likewise.
56055         * lib/tempname.h: Likewise.
56056         * lib/timespec.h: Likewise.
56057         * lib/tls.c: Likewise.
56058         * lib/tls.h: Likewise.
56059         * lib/tmpdir.c: Likewise.
56060         * lib/tmpdir.h: Likewise.
56061         * lib/tmpfile-safer.c: Likewise.
56062         * lib/tmpfile.c: Likewise.
56063         * lib/trigl.c: Likewise.
56064         * lib/trigl.h: Likewise.
56065         * lib/trim.c: Likewise.
56066         * lib/trim.h: Likewise.
56067         * lib/trunc.c: Likewise.
56068         * lib/truncf.c: Likewise.
56069         * lib/truncl.c: Likewise.
56070         * lib/tsearch.c: Likewise.
56071         * lib/unicodeio.c: Likewise.
56072         * lib/unicodeio.h: Likewise.
56073         * lib/unistd--.h: Likewise.
56074         * lib/unistd-safer.h: Likewise.
56075         * lib/unistdio/ulc-fprintf.c: Likewise.
56076         * lib/unistdio/ulc-vfprintf.c: Likewise.
56077         * lib/unlinkdir.c: Likewise.
56078         * lib/unlinkdir.h: Likewise.
56079         * lib/unlocked-io.h: Likewise.
56080         * lib/unsetenv.c: Likewise.
56081         * lib/userspec.c: Likewise.
56082         * lib/utime.c: Likewise.
56083         * lib/utimecmp.c: Likewise.
56084         * lib/utimecmp.h: Likewise.
56085         * lib/utimens.c: Likewise.
56086         * lib/verify.h: Likewise.
56087         * lib/verror.c: Likewise.
56088         * lib/verror.h: Likewise.
56089         * lib/version-etc-fsf.c: Likewise.
56090         * lib/version-etc.c: Likewise.
56091         * lib/version-etc.h: Likewise.
56092         * lib/vfprintf.c: Likewise.
56093         * lib/vprintf.c: Likewise.
56094         * lib/vsprintf.c: Likewise.
56095         * lib/w32spawn.h: Likewise.
56096         * lib/wait-process.c: Likewise.
56097         * lib/wait-process.h: Likewise.
56098         * lib/wcwidth.c: Likewise.
56099         * lib/write-any-file.c: Likewise.
56100         * lib/xalloc-die.c: Likewise.
56101         * lib/xalloc.h: Likewise.
56102         * lib/xasprintf.c: Likewise.
56103         * lib/xgetcwd.c: Likewise.
56104         * lib/xgetcwd.h: Likewise.
56105         * lib/xgetdomainname.c: Likewise.
56106         * lib/xgetdomainname.h: Likewise.
56107         * lib/xgethostname.c: Likewise.
56108         * lib/xmalloc.c: Likewise.
56109         * lib/xmalloca.c: Likewise.
56110         * lib/xmalloca.h: Likewise.
56111         * lib/xmemcoll.c: Likewise.
56112         * lib/xnanosleep.c: Likewise.
56113         * lib/xreadlink.c: Likewise.
56114         * lib/xreadlink.h: Likewise.
56115         * lib/xsetenv.c: Likewise.
56116         * lib/xsetenv.h: Likewise.
56117         * lib/xstriconv.c: Likewise.
56118         * lib/xstriconv.h: Likewise.
56119         * lib/xstrndup.c: Likewise.
56120         * lib/xstrndup.h: Likewise.
56121         * lib/xstrtod.c: Likewise.
56122         * lib/xstrtod.h: Likewise.
56123         * lib/xstrtol-error.c: Likewise.
56124         * lib/xstrtol.c: Likewise.
56125         * lib/xstrtol.h: Likewise.
56126         * lib/xtime.h: Likewise.
56127         * lib/xvasprintf.c: Likewise.
56128         * lib/xvasprintf.h: Likewise.
56129         * lib/yesno.c: Likewise.
56130         * lib/yesno.h: Likewise.
56131         * posix-modules: Likewise.
56132         * tests/test-alloca-opt.c: Likewise.
56133         * tests/test-arcfour.c: Likewise.
56134         * tests/test-arctwo.c: Likewise.
56135         * tests/test-argmatch.c: Likewise.
56136         * tests/test-argp-2.sh: Likewise.
56137         * tests/test-argp.c: Likewise.
56138         * tests/test-arpa_inet.c: Likewise.
56139         * tests/test-array_list.c: Likewise.
56140         * tests/test-array_oset.c: Likewise.
56141         * tests/test-atexit.c: Likewise.
56142         * tests/test-avltree_list.c: Likewise.
56143         * tests/test-avltree_oset.c: Likewise.
56144         * tests/test-avltreehash_list.c: Likewise.
56145         * tests/test-base64.c: Likewise.
56146         * tests/test-binary-io.c: Likewise.
56147         * tests/test-byteswap.c: Likewise.
56148         * tests/test-c-ctype.c: Likewise.
56149         * tests/test-c-strcasecmp.c: Likewise.
56150         * tests/test-c-strcasestr.c: Likewise.
56151         * tests/test-c-strncasecmp.c: Likewise.
56152         * tests/test-c-strstr.c: Likewise.
56153         * tests/test-canonicalize-lgpl.c: Likewise.
56154         * tests/test-canonicalize.c: Likewise.
56155         * tests/test-carray_list.c: Likewise.
56156         * tests/test-ceilf.c: Likewise.
56157         * tests/test-ceill.c: Likewise.
56158         * tests/test-count-one-bits.c: Likewise.
56159         * tests/test-crc.c: Likewise.
56160         * tests/test-dirname.c: Likewise.
56161         * tests/test-fbufmode.c: Likewise.
56162         * tests/test-fcntl.c: Likewise.
56163         * tests/test-fflush.c: Likewise.
56164         * tests/test-floorf.c: Likewise.
56165         * tests/test-floorl.c: Likewise.
56166         * tests/test-fopen.c: Likewise.
56167         * tests/test-fprintf-posix.c: Likewise.
56168         * tests/test-fprintf-posix.h: Likewise.
56169         * tests/test-fpurge.c: Likewise.
56170         * tests/test-freadable.c: Likewise.
56171         * tests/test-freadahead.c: Likewise.
56172         * tests/test-freading.c: Likewise.
56173         * tests/test-freopen.c: Likewise.
56174         * tests/test-frexp.c: Likewise.
56175         * tests/test-frexpl.c: Likewise.
56176         * tests/test-fseek.c: Likewise.
56177         * tests/test-fseeko.c: Likewise.
56178         * tests/test-fseterr.c: Likewise.
56179         * tests/test-fstrcmp.c: Likewise.
56180         * tests/test-ftell.c: Likewise.
56181         * tests/test-ftello.c: Likewise.
56182         * tests/test-fwritable.c: Likewise.
56183         * tests/test-fwriting.c: Likewise.
56184         * tests/test-getaddrinfo.c: Likewise.
56185         * tests/test-getpass.c: Likewise.
56186         * tests/test-gettimeofday.c: Likewise.
56187         * tests/test-hmac-md5.c: Likewise.
56188         * tests/test-hmac-sha1.c: Likewise.
56189         * tests/test-iconv.c: Likewise.
56190         * tests/test-iconvme.c: Likewise.
56191         * tests/test-inttypes.c: Likewise.
56192         * tests/test-isnan.c: Likewise.
56193         * tests/test-isnanf.c: Likewise.
56194         * tests/test-isnanl-nolibm.c: Likewise.
56195         * tests/test-isnanl.c: Likewise.
56196         * tests/test-isnanl.h: Likewise.
56197         * tests/test-ldexpl.c: Likewise.
56198         * tests/test-linked_list.c: Likewise.
56199         * tests/test-linkedhash_list.c: Likewise.
56200         * tests/test-locale.c: Likewise.
56201         * tests/test-localename.c: Likewise.
56202         * tests/test-lock.c: Likewise.
56203         * tests/test-lseek.c: Likewise.
56204         * tests/test-malloca.c: Likewise.
56205         * tests/test-math.c: Likewise.
56206         * tests/test-mbscasecmp.c: Likewise.
56207         * tests/test-mbscasestr1.c: Likewise.
56208         * tests/test-mbscasestr2.c: Likewise.
56209         * tests/test-mbscasestr3.c: Likewise.
56210         * tests/test-mbscasestr4.c: Likewise.
56211         * tests/test-mbschr.c: Likewise.
56212         * tests/test-mbscspn.c: Likewise.
56213         * tests/test-mbsncasecmp.c: Likewise.
56214         * tests/test-mbspbrk.c: Likewise.
56215         * tests/test-mbspcasecmp.c: Likewise.
56216         * tests/test-mbsrchr.c: Likewise.
56217         * tests/test-mbsspn.c: Likewise.
56218         * tests/test-mbsstr1.c: Likewise.
56219         * tests/test-mbsstr2.c: Likewise.
56220         * tests/test-mbsstr3.c: Likewise.
56221         * tests/test-md5.c: Likewise.
56222         * tests/test-memmem.c: Likewise.
56223         * tests/test-netinet_in.c: Likewise.
56224         * tests/test-open.c: Likewise.
56225         * tests/test-printf-frexp.c: Likewise.
56226         * tests/test-printf-frexpl.c: Likewise.
56227         * tests/test-printf-posix.c: Likewise.
56228         * tests/test-printf-posix.h: Likewise.
56229         * tests/test-rbtree_list.c: Likewise.
56230         * tests/test-rbtree_oset.c: Likewise.
56231         * tests/test-rbtreehash_list.c: Likewise.
56232         * tests/test-read-file.c: Likewise.
56233         * tests/test-rijndael.c: Likewise.
56234         * tests/test-search.c: Likewise.
56235         * tests/test-signbit.c: Likewise.
56236         * tests/test-sleep.c: Likewise.
56237         * tests/test-snprintf-posix.c: Likewise.
56238         * tests/test-snprintf-posix.h: Likewise.
56239         * tests/test-snprintf.c: Likewise.
56240         * tests/test-sprintf-posix.c: Likewise.
56241         * tests/test-sprintf-posix.h: Likewise.
56242         * tests/test-stat-time.c: Likewise.
56243         * tests/test-stdbool.c: Likewise.
56244         * tests/test-stdint.c: Likewise.
56245         * tests/test-stdio.c: Likewise.
56246         * tests/test-stdlib.c: Likewise.
56247         * tests/test-stpncpy.c: Likewise.
56248         * tests/test-strcasestr.c: Likewise.
56249         * tests/test-striconv.c: Likewise.
56250         * tests/test-striconveh.c: Likewise.
56251         * tests/test-striconveha.c: Likewise.
56252         * tests/test-string.c: Likewise.
56253         * tests/test-sys_select.c: Likewise.
56254         * tests/test-sys_socket.c: Likewise.
56255         * tests/test-sys_stat.c: Likewise.
56256         * tests/test-sys_time.c: Likewise.
56257         * tests/test-sysexits.c: Likewise.
56258         * tests/test-time.c: Likewise.
56259         * tests/test-tls.c: Likewise.
56260         * tests/test-trunc.c: Likewise.
56261         * tests/test-truncf.c: Likewise.
56262         * tests/test-truncl.c: Likewise.
56263         * tests/test-unistd.c: Likewise.
56264         * tests/test-vasnprintf-posix.c: Likewise.
56265         * tests/test-vasnprintf-posix2.c: Likewise.
56266         * tests/test-vasnprintf.c: Likewise.
56267         * tests/test-vasprintf-posix.c: Likewise.
56268         * tests/test-vasprintf.c: Likewise.
56269         * tests/test-verify.c: Likewise.
56270         * tests/test-vfprintf-posix.c: Likewise.
56271         * tests/test-vprintf-posix.c: Likewise.
56272         * tests/test-vsnprintf-posix.c: Likewise.
56273         * tests/test-vsnprintf.c: Likewise.
56274         * tests/test-vsprintf-posix.c: Likewise.
56275         * tests/test-wchar.c: Likewise.
56276         * tests/test-wctype.c: Likewise.
56277         * tests/test-wcwidth.c: Likewise.
56278         * tests/test-xstrtol.c: Likewise.
56279         * tests/test-xvasprintf.c: Likewise.
56280         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56281         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56282         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56283         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56284         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56285         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56286         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56287         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56288         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56289         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56290         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56291         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56292         * tests/uniname/test-uninames.c: Likewise.
56293         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56294         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56295         * tests/unistdio/test-u16-printf1.h: Likewise.
56296         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56297         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56298         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56299         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56300         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56301         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56302         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56303         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56304         * tests/unistdio/test-u32-printf1.h: Likewise.
56305         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56306         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56307         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56308         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56309         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56310         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56311         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56312         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56313         * tests/unistdio/test-u8-printf1.h: Likewise.
56314         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56315         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56316         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56317         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56318         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56319         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56320         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56321         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56322         * tests/unistdio/test-ulc-printf1.h: Likewise.
56323         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56324         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56325         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56326         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56327         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56328         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56329         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56330         * tests/uniwidth/test-u16-width.c: Likewise.
56331         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56332         * tests/uniwidth/test-u32-width.c: Likewise.
56333         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56334         * tests/uniwidth/test-u8-width.c: Likewise.
56335         * tests/uniwidth/test-uc_width.c: Likewise.
56336         * config/srclist-update: Likewise.
56337         (fixlicense): Update to GPLv3+.
56338
56339         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56340         * tests/test-tsearch.c: Change copyright notice.
56341
56342         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56343         * lib/c-strcaseeq.h: Change copyright notice.
56344         * lib/streq.h: Likewise.
56345         * lib/uniconv.h: Likewise.
56346         * lib/uniconv/u-conv-from-enc.h: Likewise.
56347         * lib/uniconv/u-conv-to-enc.h: Likewise.
56348         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56349         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56350         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56351         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56352         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56353         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56354         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56355         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56356         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56357         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56358         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56359         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56360         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56361         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56362         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56363         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56364         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56365         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56366         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56367         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56368         * lib/uniname.h: Likewise.
56369         * lib/uniname/uniname.c: Likewise.
56370         * lib/unistdio.h: Likewise.
56371         * lib/unistdio/u-asnprintf.h: Likewise.
56372         * lib/unistdio/u-asprintf.h: Likewise.
56373         * lib/unistdio/u-printf-args.c: Likewise.
56374         * lib/unistdio/u-printf-args.h: Likewise.
56375         * lib/unistdio/u-printf-parse.h: Likewise.
56376         * lib/unistdio/u-snprintf.h: Likewise.
56377         * lib/unistdio/u-sprintf.h: Likewise.
56378         * lib/unistdio/u-vasprintf.h: Likewise.
56379         * lib/unistdio/u-vsnprintf.h: Likewise.
56380         * lib/unistdio/u-vsprintf.h: Likewise.
56381         * lib/unistdio/u16-asnprintf.c: Likewise.
56382         * lib/unistdio/u16-asprintf.c: Likewise.
56383         * lib/unistdio/u16-printf-parse.c: Likewise.
56384         * lib/unistdio/u16-snprintf.c: Likewise.
56385         * lib/unistdio/u16-sprintf.c: Likewise.
56386         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56387         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56388         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56389         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56390         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56391         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56392         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56393         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56394         * lib/unistdio/u16-vasnprintf.c: Likewise.
56395         * lib/unistdio/u16-vasprintf.c: Likewise.
56396         * lib/unistdio/u16-vsnprintf.c: Likewise.
56397         * lib/unistdio/u16-vsprintf.c: Likewise.
56398         * lib/unistdio/u32-asnprintf.c: Likewise.
56399         * lib/unistdio/u32-asprintf.c: Likewise.
56400         * lib/unistdio/u32-printf-parse.c: Likewise.
56401         * lib/unistdio/u32-snprintf.c: Likewise.
56402         * lib/unistdio/u32-sprintf.c: Likewise.
56403         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56404         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56405         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56406         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56407         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56408         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56409         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56410         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56411         * lib/unistdio/u32-vasnprintf.c: Likewise.
56412         * lib/unistdio/u32-vasprintf.c: Likewise.
56413         * lib/unistdio/u32-vsnprintf.c: Likewise.
56414         * lib/unistdio/u32-vsprintf.c: Likewise.
56415         * lib/unistdio/u8-asnprintf.c: Likewise.
56416         * lib/unistdio/u8-asprintf.c: Likewise.
56417         * lib/unistdio/u8-printf-parse.c: Likewise.
56418         * lib/unistdio/u8-snprintf.c: Likewise.
56419         * lib/unistdio/u8-sprintf.c: Likewise.
56420         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56421         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56422         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56423         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56424         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56425         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56426         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56427         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56428         * lib/unistdio/u8-vasnprintf.c: Likewise.
56429         * lib/unistdio/u8-vasprintf.c: Likewise.
56430         * lib/unistdio/u8-vsnprintf.c: Likewise.
56431         * lib/unistdio/u8-vsprintf.c: Likewise.
56432         * lib/unistdio/ulc-asnprintf.c: Likewise.
56433         * lib/unistdio/ulc-asprintf.c: Likewise.
56434         * lib/unistdio/ulc-printf-parse.c: Likewise.
56435         * lib/unistdio/ulc-snprintf.c: Likewise.
56436         * lib/unistdio/ulc-sprintf.c: Likewise.
56437         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56438         * lib/unistdio/ulc-vasprintf.c: Likewise.
56439         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56440         * lib/unistdio/ulc-vsprintf.c: Likewise.
56441         * lib/unistr.h: Likewise.
56442         * lib/unistr/u-cpy-alloc.h: Likewise.
56443         * lib/unistr/u-cpy.h: Likewise.
56444         * lib/unistr/u-endswith.h: Likewise.
56445         * lib/unistr/u-move.h: Likewise.
56446         * lib/unistr/u-set.h: Likewise.
56447         * lib/unistr/u-startswith.h: Likewise.
56448         * lib/unistr/u-stpcpy.h: Likewise.
56449         * lib/unistr/u-stpncpy.h: Likewise.
56450         * lib/unistr/u-strcat.h: Likewise.
56451         * lib/unistr/u-strcpy.h: Likewise.
56452         * lib/unistr/u-strcspn.h: Likewise.
56453         * lib/unistr/u-strdup.h: Likewise.
56454         * lib/unistr/u-strlen.h: Likewise.
56455         * lib/unistr/u-strncat.h: Likewise.
56456         * lib/unistr/u-strncpy.h: Likewise.
56457         * lib/unistr/u-strnlen.h: Likewise.
56458         * lib/unistr/u-strpbrk.h: Likewise.
56459         * lib/unistr/u-strspn.h: Likewise.
56460         * lib/unistr/u-strstr.h: Likewise.
56461         * lib/unistr/u-strtok.h: Likewise.
56462         * lib/unistr/u16-check.c: Likewise.
56463         * lib/unistr/u16-chr.c: Likewise.
56464         * lib/unistr/u16-cmp.c: Likewise.
56465         * lib/unistr/u16-cpy-alloc.c: Likewise.
56466         * lib/unistr/u16-cpy.c: Likewise.
56467         * lib/unistr/u16-endswith.c: Likewise.
56468         * lib/unistr/u16-mblen.c: Likewise.
56469         * lib/unistr/u16-mbsnlen.c: Likewise.
56470         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56471         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56472         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56473         * lib/unistr/u16-mbtouc.c: Likewise.
56474         * lib/unistr/u16-mbtoucr.c: Likewise.
56475         * lib/unistr/u16-move.c: Likewise.
56476         * lib/unistr/u16-next.c: Likewise.
56477         * lib/unistr/u16-prev.c: Likewise.
56478         * lib/unistr/u16-set.c: Likewise.
56479         * lib/unistr/u16-startswith.c: Likewise.
56480         * lib/unistr/u16-stpcpy.c: Likewise.
56481         * lib/unistr/u16-stpncpy.c: Likewise.
56482         * lib/unistr/u16-strcat.c: Likewise.
56483         * lib/unistr/u16-strchr.c: Likewise.
56484         * lib/unistr/u16-strcmp.c: Likewise.
56485         * lib/unistr/u16-strcpy.c: Likewise.
56486         * lib/unistr/u16-strcspn.c: Likewise.
56487         * lib/unistr/u16-strdup.c: Likewise.
56488         * lib/unistr/u16-strlen.c: Likewise.
56489         * lib/unistr/u16-strmblen.c: Likewise.
56490         * lib/unistr/u16-strmbtouc.c: Likewise.
56491         * lib/unistr/u16-strncat.c: Likewise.
56492         * lib/unistr/u16-strncmp.c: Likewise.
56493         * lib/unistr/u16-strncpy.c: Likewise.
56494         * lib/unistr/u16-strnlen.c: Likewise.
56495         * lib/unistr/u16-strpbrk.c: Likewise.
56496         * lib/unistr/u16-strrchr.c: Likewise.
56497         * lib/unistr/u16-strspn.c: Likewise.
56498         * lib/unistr/u16-strstr.c: Likewise.
56499         * lib/unistr/u16-strtok.c: Likewise.
56500         * lib/unistr/u16-to-u32.c: Likewise.
56501         * lib/unistr/u16-to-u8.c: Likewise.
56502         * lib/unistr/u16-uctomb-aux.c: Likewise.
56503         * lib/unistr/u16-uctomb.c: Likewise.
56504         * lib/unistr/u32-check.c: Likewise.
56505         * lib/unistr/u32-chr.c: Likewise.
56506         * lib/unistr/u32-cmp.c: Likewise.
56507         * lib/unistr/u32-cpy-alloc.c: Likewise.
56508         * lib/unistr/u32-cpy.c: Likewise.
56509         * lib/unistr/u32-endswith.c: Likewise.
56510         * lib/unistr/u32-mblen.c: Likewise.
56511         * lib/unistr/u32-mbsnlen.c: Likewise.
56512         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56513         * lib/unistr/u32-mbtouc.c: Likewise.
56514         * lib/unistr/u32-mbtoucr.c: Likewise.
56515         * lib/unistr/u32-move.c: Likewise.
56516         * lib/unistr/u32-next.c: Likewise.
56517         * lib/unistr/u32-prev.c: Likewise.
56518         * lib/unistr/u32-set.c: Likewise.
56519         * lib/unistr/u32-startswith.c: Likewise.
56520         * lib/unistr/u32-stpcpy.c: Likewise.
56521         * lib/unistr/u32-stpncpy.c: Likewise.
56522         * lib/unistr/u32-strcat.c: Likewise.
56523         * lib/unistr/u32-strchr.c: Likewise.
56524         * lib/unistr/u32-strcmp.c: Likewise.
56525         * lib/unistr/u32-strcpy.c: Likewise.
56526         * lib/unistr/u32-strcspn.c: Likewise.
56527         * lib/unistr/u32-strdup.c: Likewise.
56528         * lib/unistr/u32-strlen.c: Likewise.
56529         * lib/unistr/u32-strmblen.c: Likewise.
56530         * lib/unistr/u32-strmbtouc.c: Likewise.
56531         * lib/unistr/u32-strncat.c: Likewise.
56532         * lib/unistr/u32-strncmp.c: Likewise.
56533         * lib/unistr/u32-strncpy.c: Likewise.
56534         * lib/unistr/u32-strnlen.c: Likewise.
56535         * lib/unistr/u32-strpbrk.c: Likewise.
56536         * lib/unistr/u32-strrchr.c: Likewise.
56537         * lib/unistr/u32-strspn.c: Likewise.
56538         * lib/unistr/u32-strstr.c: Likewise.
56539         * lib/unistr/u32-strtok.c: Likewise.
56540         * lib/unistr/u32-to-u16.c: Likewise.
56541         * lib/unistr/u32-to-u8.c: Likewise.
56542         * lib/unistr/u32-uctomb.c: Likewise.
56543         * lib/unistr/u8-check.c: Likewise.
56544         * lib/unistr/u8-chr.c: Likewise.
56545         * lib/unistr/u8-cmp.c: Likewise.
56546         * lib/unistr/u8-cpy-alloc.c: Likewise.
56547         * lib/unistr/u8-cpy.c: Likewise.
56548         * lib/unistr/u8-endswith.c: Likewise.
56549         * lib/unistr/u8-mblen.c: Likewise.
56550         * lib/unistr/u8-mbsnlen.c: Likewise.
56551         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56552         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56553         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56554         * lib/unistr/u8-mbtouc.c: Likewise.
56555         * lib/unistr/u8-mbtoucr.c: Likewise.
56556         * lib/unistr/u8-move.c: Likewise.
56557         * lib/unistr/u8-next.c: Likewise.
56558         * lib/unistr/u8-prev.c: Likewise.
56559         * lib/unistr/u8-set.c: Likewise.
56560         * lib/unistr/u8-startswith.c: Likewise.
56561         * lib/unistr/u8-stpcpy.c: Likewise.
56562         * lib/unistr/u8-stpncpy.c: Likewise.
56563         * lib/unistr/u8-strcat.c: Likewise.
56564         * lib/unistr/u8-strchr.c: Likewise.
56565         * lib/unistr/u8-strcmp.c: Likewise.
56566         * lib/unistr/u8-strcpy.c: Likewise.
56567         * lib/unistr/u8-strcspn.c: Likewise.
56568         * lib/unistr/u8-strdup.c: Likewise.
56569         * lib/unistr/u8-strlen.c: Likewise.
56570         * lib/unistr/u8-strmblen.c: Likewise.
56571         * lib/unistr/u8-strmbtouc.c: Likewise.
56572         * lib/unistr/u8-strncat.c: Likewise.
56573         * lib/unistr/u8-strncmp.c: Likewise.
56574         * lib/unistr/u8-strncpy.c: Likewise.
56575         * lib/unistr/u8-strnlen.c: Likewise.
56576         * lib/unistr/u8-strpbrk.c: Likewise.
56577         * lib/unistr/u8-strrchr.c: Likewise.
56578         * lib/unistr/u8-strspn.c: Likewise.
56579         * lib/unistr/u8-strstr.c: Likewise.
56580         * lib/unistr/u8-strtok.c: Likewise.
56581         * lib/unistr/u8-to-u16.c: Likewise.
56582         * lib/unistr/u8-to-u32.c: Likewise.
56583         * lib/unistr/u8-uctomb-aux.c: Likewise.
56584         * lib/unistr/u8-uctomb.c: Likewise.
56585         * lib/unitypes.h: Likewise.
56586         * lib/uniwidth.h: Likewise.
56587         * lib/uniwidth/cjk.h: Likewise.
56588         * lib/uniwidth/u16-strwidth.c: Likewise.
56589         * lib/uniwidth/u16-width.c: Likewise.
56590         * lib/uniwidth/u32-strwidth.c: Likewise.
56591         * lib/uniwidth/u32-width.c: Likewise.
56592         * lib/uniwidth/u8-strwidth.c: Likewise.
56593         * lib/uniwidth/u8-width.c: Likewise.
56594         * lib/uniwidth/width.c: Likewise.
56595
56596 2007-10-07  Bruno Haible  <bruno@clisp.org>
56597
56598         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56599         The file is still under LGPL (see modules/inttypes).
56600
56601 2007-10-06  Bruno Haible  <bruno@clisp.org>
56602
56603         * modules/trunc (Dependencies): Add 'extensions'.
56604         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56605         Reported by Ben Pfaff <blp@gnu.org>.
56606
56607 2007-10-06  Bruno Haible  <bruno@clisp.org>
56608
56609         * modules/freopen-tests: New file.
56610         * tests/test-freopen.c: New file.
56611
56612         * modules/fopen-tests: New file.
56613         * tests/test-fopen.c: New file.
56614
56615         * modules/fopen: New file.
56616         * lib/fopen.c: New file.
56617         * m4/fopen.m4: New file.
56618         * modules/freopen: New file.
56619         * lib/freopen.c: New file.
56620         * m4/freopen.m4: New file.
56621         * lib/stdio.in.h (fopen, freopen): New declarations.
56622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56623         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56624         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56625         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56626         * doc/functions/fopen.texi: Mention the 'fopen' module.
56627         * doc/functions/freopen.texi: Mention the 'freopen' module.
56628
56629 2007-10-06  Bruno Haible  <bruno@clisp.org>
56630
56631         * modules/open-tests: New file.
56632         * tests/test-open.c: New file.
56633
56634         * modules/open: New file.
56635         * lib/open.c: New file.
56636         * m4/open.m4: New file.
56637         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56638         lib/open.c does.
56639         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56640         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56641         macros.
56642         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56643         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56644         REPLACE_OPEN.
56645         * doc/functions/open.texi: Mention the 'open' module.
56646
56647 2007-10-04  Bruno Haible  <bruno@clisp.org>
56648
56649         * modules/ceill-tests: New file.
56650         * tests/test-ceill.c: New file.
56651
56652         * modules/ceill: New file.
56653         * lib/ceill.c: Replace entire file.
56654         * m4/ceill.m4: New file.
56655         * lib/math.in.h (ceill): Replace declaration.
56656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56657         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56658         * doc/functions/ceill.texi: Mention the 'ceill' module.
56659         * modules/mathl (Files): Remove lib/ceill.c.
56660         (Depends-on): Add ceill.
56661
56662 2007-10-04  Bruno Haible  <bruno@clisp.org>
56663
56664         * modules/ceilf-tests: New file.
56665         * tests/test-ceilf.c: New file.
56666
56667         * modules/ceilf: New file.
56668         * lib/ceil.c: New file.
56669         * lib/ceilf.c: New file.
56670         * m4/ceilf.m4: New file.
56671         * lib/math.in.h (ceilf): New declaration.
56672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56673         HAVE_DECL_CEILF.
56674         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56675         HAVE_DECL_CEILF.
56676         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56677
56678 2007-10-04  Bruno Haible  <bruno@clisp.org>
56679
56680         * modules/floorl-tests: New file.
56681         * tests/test-floorl.c: New file.
56682
56683         * modules/floorl: New file.
56684         * lib/floorl.c: Replace entire file.
56685         * m4/floorl.m4: New file.
56686         * lib/math.in.h (floorl): Replace declaration.
56687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56688         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56689         * doc/functions/floorl.texi: Mention the 'floorl' module.
56690         * modules/mathl (Files): Remove lib/floorl.c.
56691         (Depends-on): Add floorl.
56692
56693 2007-10-04  Bruno Haible  <bruno@clisp.org>
56694
56695         * modules/floorf-tests: New file.
56696         * tests/test-floorf.c: New file.
56697
56698         * modules/floorf: New file.
56699         * lib/floor.c: New file.
56700         * lib/floorf.c: New file.
56701         * m4/floorf.m4: New file.
56702         * lib/math.in.h (floorf): New declaration.
56703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56704         HAVE_DECL_FLOORF.
56705         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56706         HAVE_DECL_FLOORF.
56707         * doc/functions/floorf.texi: Mention the 'floorf' module.
56708
56709 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56710             Bruno Haible  <bruno@clisp.org>
56711
56712         Advertise for the Git server instead of the CVS server.
56713         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56714         repository instead of the CVS one.
56715         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56716         about all VCS systems generically.
56717         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56718
56719 2007-10-04  Bruno Haible  <bruno@clisp.org>
56720
56721         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56722         means.
56723         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56724
56725 2007-10-04  Bruno Haible  <bruno@clisp.org>
56726
56727         * modules/truncl-tests: New file.
56728         * tests/test-truncl.c: New file.
56729
56730         * modules/truncl: New file.
56731         * lib/truncl.c: New file.
56732         * m4/truncl.m4: New file.
56733         * lib/math.in.h (truncl): New declaration.
56734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56735         HAVE_DECL_TRUNCL.
56736         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56737         HAVE_DECL_TRUNCL.
56738         * doc/functions/truncl.texi: Mention the 'truncl' module.
56739
56740 2007-10-04  Bruno Haible  <bruno@clisp.org>
56741
56742         * modules/truncf-tests: New file.
56743         * tests/test-truncf.c: New file.
56744
56745         * modules/truncf: New file.
56746         * lib/trunc.c: Make paramerizable through USE_* macros.
56747         * lib/truncf.c: New file.
56748         * m4/truncf.m4: New file.
56749         * lib/math.in.h (truncf): New declaration.
56750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56751         HAVE_DECL_TRUNCF.
56752         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56753         HAVE_DECL_TRUNCF.
56754         * doc/functions/truncf.texi: Mention the 'truncf' module.
56755
56756 2007-10-03  Bruno Haible  <bruno@clisp.org>
56757
56758         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56759         augmentation also for tests modules.
56760         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56761         * modules/atexit-tests (Makefile.am): Likewise.
56762         * modules/binary-io-tests (Makefile.am): Likewise.
56763         * modules/c-strcase-tests (Makefile.am): Likewise.
56764         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56765         * modules/canonicalize-tests (Makefile.am): Likewise.
56766         * modules/closein-tests (Makefile.am): Likewise.
56767         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56768         * modules/freadahead-tests (Makefile.am): Likewise.
56769         * modules/fseek-tests (Makefile.am): Likewise.
56770         * modules/fseeko-tests (Makefile.am): Likewise.
56771         * modules/ftell-tests (Makefile.am): Likewise.
56772         * modules/ftello-tests (Makefile.am): Likewise.
56773         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56774         * modules/isnanl-tests (Makefile.am): Likewise.
56775         * modules/lseek-tests (Makefile.am): Likewise.
56776         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56777         * modules/mbscasestr-tests (Makefile.am): Likewise.
56778         * modules/mbschr-tests (Makefile.am): Likewise.
56779         * modules/mbscspn-tests (Makefile.am): Likewise.
56780         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56781         * modules/mbspbrk-tests (Makefile.am): Likewise.
56782         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56783         * modules/mbsrchr-tests (Makefile.am): Likewise.
56784         * modules/mbsspn-tests (Makefile.am): Likewise.
56785         * modules/mbsstr-tests (Makefile.am): Likewise.
56786         * modules/printf-posix-tests (Makefile.am): Likewise.
56787         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56788         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56789         * modules/tsearch-tests (Makefile.am): Likewise.
56790         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56791         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56792         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56793         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56794         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56795         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56796         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56797         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56798         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56799         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56800         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56801         * modules/xstrtol-tests (Makefile.am): Likewise.
56802         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56803         * modules/yesno-tests (Makefile.am): Likewise.
56804
56805 2007-10-03  Bruno Haible  <bruno@clisp.org>
56806
56807         * modules/trunc-tests: New file.
56808         * tests/test-trunc.c: New file.
56809
56810         * modules/trunc: New file.
56811         * lib/trunc.c: New file.
56812         * m4/trunc.m4: New file.
56813         * lib/math.in.h (trunc): New declaration.
56814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56815         HAVE_DECL_TRUNC.
56816         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56817         HAVE_DECL_TRUNC.
56818         * doc/functions/trunc.texi: Mention the 'trunc' module.
56819
56820 2007-10-03  Bruno Haible  <bruno@clisp.org>
56821
56822         * tests/test-fpending.c: New file, mostly copied
56823         from coreutils/lib/t-fpending.c.
56824         * modules/fpending-tests: New file.
56825
56826 2007-10-03  Bruno Haible  <bruno@clisp.org>
56827
56828         Port the stdio extensions to QNX (untested).
56829         * lib/fseterr.c (fseterr): Add support for QNX.
56830         * lib/fbufmode.c (fbufmode): Likewise.
56831         * lib/freadable.c (freadable): Likewise.
56832         * lib/fwritable.c (fwritable): Likewise.
56833         * lib/freading.c (freading): Likewise.
56834         * lib/fwriting.c (fwriting): Likewise.
56835         * lib/freadahead.c (freadahed): Likewise.
56836         * lib/fpurge.c (fpurge): Likewise.
56837         * lib/fseeko.c (rpl_fseeko): Likewise.
56838
56839 2007-10-03  Bruno Haible  <bruno@clisp.org>
56840             Jim Meyering  <jim@meyering.net>
56841             Eric Blake  <ebb9@byu.net>
56842
56843         * doc/relocatable.texi: Use @command instead of @program.
56844
56845 2007-10-02  Jim Meyering  <jim@meyering.net>
56846
56847         Perform one more "_.h" -> ".in.h" substitution.
56848         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56849         instead of unistd_.h here, too.
56850
56851 2007-10-01  Bruno Haible  <bruno@clisp.org>
56852
56853         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56854         Needed for the alloca-opt module.
56855
56856 2007-09-30  Bruno Haible  <bruno@clisp.org>
56857
56858         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56859         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56860         alloca_.h.
56861         * lib/argz.in.h: Renamed from lib/argz_.h.
56862         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56863         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56864         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56865         byteswap_.h.
56866         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56867         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56868         dirent_.h.
56869         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56870         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56871         fcntl_.h.
56872         * lib/float.in.h: Renamed from lib/float_.h.
56873         * modules/float (Files, Makefile.am): Use float.in.h instead of
56874         float_.h.
56875         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56876         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56877         fnmatch_.h.
56878         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56879         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56880         getopt_.h.
56881         * lib/glob.in.h: Renamed from lib/glob_.h.
56882         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56883         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56884         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56885         iconv_.h.
56886         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56887         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56888         inttypes_.h.
56889         * lib/locale.in.h: Renamed from lib/locale_.h.
56890         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56891         locale_.h.
56892         * lib/math.in.h: Renamed from lib/math_.h.
56893         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56894         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56895         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56896         of netinet_in_.h. Add dependency.
56897         * lib/poll.in.h: Renamed from lib/poll_.h.
56898         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56899         * lib/search.in.h: Renamed from lib/search_.h.
56900         * modules/search (Files, Makefile.am): Use search.in.h instead of
56901         search_.h.
56902         * lib/signal.in.h: Renamed from lib/signal_.h.
56903         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56904         _signal.h.
56905         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56906         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56907         stdbool_.h.
56908         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56909         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56910         stdint_.h.
56911         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56912         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56913         stdio_.h.
56914         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56915         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56916         stdlib_.h.
56917         * lib/string.in.h: Renamed from lib/string_.h.
56918         * modules/string (Files, Makefile.am): Use string.in.h instead of
56919         string_.h.
56920         * doc/gnulib-tool.texi (Initial import): Update.
56921         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56922         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56923         of sys_select_.h. Add dependency.
56924         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56925         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56926         of sys_socket_.h.
56927         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56928         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56929         sys_stat_.h.
56930         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56931         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56932         sys_time_.h.
56933         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56934         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56935         sysexits_.h.
56936         * lib/time.in.h: Renamed from lib/time_.h.
56937         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56938         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56939         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56940         unistd_.h.
56941         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56942         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56943         wchar_.h.
56944         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56945         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56946         wctype_.h.
56947         * build-aux/bootstrap (slurp): Update.
56948         * lib/.cppi-disable: Update.
56949
56950 2007-09-30  Bruno Haible  <bruno@clisp.org>
56951
56952         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56953         Needed on BeOS.
56954
56955 2007-09-30  Bruno Haible  <bruno@clisp.org>
56956
56957         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56958
56959 2007-09-29  Bruno Haible  <bruno@clisp.org>
56960
56961         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56962
56963 2007-09-29  Bruno Haible  <bruno@clisp.org>
56964
56965         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56966         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56967         * build-aux/install-reloc: Compile also areadlink.c.
56968         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56969
56970 2007-09-29  Bruno Haible  <bruno@clisp.org>
56971
56972         * gnulib-tool (func_emit_initmacro_done): Indentation.
56973
56974 2007-09-29  Bruno Haible  <bruno@clisp.org>
56975
56976         * README: Add CVS checkout update instructions.
56977         Info from Bob Proulx <bob@proulx.com>.
56978
56979 2007-09-28  Eric Blake  <ebb9@byu.net>
56980
56981         Provide move-if-change.
56982         * build-aux/move-if-change: New file, based on best practice
56983         rather than any canonical upstream location.
56984
56985 2007-09-28  Jim Meyering  <jim@meyering.net>
56986
56987         Fix canonicalize loop-detection corner case.
56988         Do not attempt to stat the symlink values stored via seen_triple.
56989         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56990         on linux-2.6.18, (but not 2.6.22).
56991         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56992         triple_compare.  The former compares dev,ino,filename, while the latter
56993         would actually stat dirname(filename) when dev and ino were equal.
56994         * lib/hash-triple.c: Install <string.h>.
56995         (STREQ): Define.
56996         (triple_compare_ino_str): New function.
56997         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56998
56999 2007-09-28  Eric Blake  <ebb9@byu.net>
57000
57001         Enforce that AC_REPLACE_FUNCS files exist.
57002         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57003         override check for typos.
57004
57005         Fix test-closein on Solaris 10.
57006         * tests/test-closein.c (main): Don't assume stdin can be inherited
57007         closed on all systems.
57008         * tests/test-closein.sh: Likewise.
57009         Reported by Piotr Tarnowski.
57010
57011 2007-09-28  Jim Meyering  <jim@meyering.net>
57012
57013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57014
57015 2007-09-27  Jim Meyering  <jim@meyering.net>
57016
57017         canonicalize: Avoid a false-positive cycle failure.
57018         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57019         Sort.  Remove cycle-check.
57020         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57021         not cycle-check.h.
57022         (seen_triple): New function.
57023         (canonicalize_filename_mode): Use it instead of cycle-check.
57024         * tests/test-canonicalize.c: Add a test for this bug.
57025         * tests/test-canonicalize.sh: Set up and run the test.
57026
57027         New module, file-set, from coreutils.
57028         * modules/file-set: Define it.
57029         * lib/file-set.c, lib/file-set.h: Implement.
57030
57031         New module, hash-triple, from coreutils.
57032         * modules/hash-triple: Define it.
57033         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57034
57035 2007-09-25  Eric Blake  <ebb9@byu.net>
57036
57037         Fix strerror on Interix.
57038         * lib/string_.h (strerror): Declare replacement.
57039         * doc/functions/strerror.texi (strerror): Document the Interix
57040         shortcoming.
57041         * modules/string (Makefile.am): Support new hooks.
57042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57043         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57044         gl_FUNC_STRERROR_SEPARATE.
57045         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57046         * lib/strerror.c (rpl_strerror): Provide replacement.
57047         * modules/strerror (Depends-on): Add string.
57048         (configure.ac): Detect use of module.
57049         * tests/test-strerror.c: New file.
57050         * modules/strerror-tests: New test module.
57051         * modules/argp (Depends-on): Add strerror.
57052         * modules/error (Depends-on): Likewise.
57053         Reported by Martin Koeppe.
57054
57055 2007-09-24  Bruno Haible  <bruno@clisp.org>
57056
57057         * README: Update git instructions.
57058
57059 2007-09-24  Eric Blake  <ebb9@byu.net>
57060
57061         Revert fpending breakage from 2007-09-08.
57062         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57063         __fpending.c.
57064
57065 2007-09-24  Jim Meyering  <jim@meyering.net>
57066
57067         filenamecat.c: Add a test.
57068         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57069         showing how the function works when DIR is the empty string.
57070
57071 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57072
57073         * tests/test-canonicalize.sh: Turn on executable bit.
57074
57075 2007-09-19  Eric Blake  <ebb9@byu.net>
57076
57077         * README: Update CVS instructions.
57078
57079 2007-09-18  Bruno Haible  <bruno@clisp.org>
57080
57081         * modules/areadlink: New file.
57082         * lib/areadlink.h (areadlink): New declaration.
57083         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57084
57085 2007-09-17  Jim Meyering  <jim@meyering.net>
57086
57087         * lib/savewd.c (ESTALE) [!defined]: Define.
57088         Reported to be required on Interix by Martin Koeppe.
57089
57090 2007-09-17  Bruno Haible  <bruno@clisp.org>
57091
57092         * gnulib-tool (func_version): Use $version.
57093
57094 2007-09-16  Bruno Haible  <bruno@clisp.org>
57095
57096         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57097         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57098         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57099         Reported by Greg Schafer <gschafer@zip.com.au>.
57100
57101 2007-09-15  Bruno Haible  <bruno@clisp.org>
57102
57103         * gnulib-tool (sed): Try a little harder to make bash understand the
57104         alias.
57105         Reported by Bruce Korb <bruce.korb@gmail.com>.
57106
57107 2007-09-13  Eric Blake  <ebb9@byu.net>
57108
57109         * ChangeLog: Remove conflict markers.
57110
57111 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57112
57113         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57114         Reported by Bruno Haible <bruno@clisp.org>.
57115
57116 2007-09-12  Bruno Haible  <bruno@clisp.org>
57117
57118         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57119         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57120         is not defined.
57121
57122 2007-09-12  Eric Blake  <ebb9@byu.net>
57123
57124         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57125         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57126         Autoconf definition.
57127         * modules/euidaccess (Depends-on): Add extensions, for
57128         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57129         * modules/fnmatch (Depends-on): Likewise.
57130         * modules/getaddrinfo (Depends-on): Likewise.
57131         * modules/getdelim (Depends-on): Likewise.
57132         * modules/getline (Depends-on): Likewise.
57133         * modules/getsubopt (Depends-on): Likewise.
57134         * modules/gettext (Depends-on): Likewise.
57135         * modules/group-member (Depends-on): Likewise.
57136         * modules/mbchar (Depends-on): Likewise.
57137         * modules/memmem (Depends-on): Likewise.
57138         * modules/mempcpy (Depends-on): Likewise.
57139         * modules/memrchr (Depends-on): Likewise.
57140         * modules/pagealign_alloc (Depends-on): Likewise.
57141         * modules/readutmp (Depends-on): Likewise.
57142         * modules/stpcpy (Depends-on): Likewise.
57143         * modules/stpncpy (Depends-on): Likewise.
57144         * modules/strchrnul (Depends-on): Likewise.
57145         * modules/strndup (Depends-on): Likewise.
57146         * modules/strsep (Depends-on): Likewise.
57147         * modules/strverscmp (Depends-on): Likewise.
57148         * modules/vasprintf (Depends-on): Likewise.
57149         * modules/wcwidth (Depends-on): Likewise.
57150         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57151         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57152         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57153         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57154         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57155         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57156         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57157         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57158         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57159         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57160         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57161         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57162         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57163         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57164         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57165         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57166         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57167         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57168         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57169         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57170         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57171         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57172         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57173         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57174         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57176         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57177         so that lock.m4 can be used in gettext without extensions module.
57178
57179 2007-09-11  Bruno Haible  <bruno@clisp.org>
57180
57181         * m4/isc-posix.m4: Remove file.
57182         Suggested by Eric Blake.
57183
57184 2007-09-11  Eric Blake  <ebb9@byu.net>
57185
57186         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57187
57188 2007-09-10  Bruno Haible  <bruno@clisp.org>
57189
57190         * posix-modules: Fix typo in error message.
57191         Reported by Matt <mkraai@beckman.com>.
57192
57193 2007-09-09  Bruno Haible  <bruno@clisp.org>
57194
57195         * doc/functions/getdelim.texi: Update list of platforms lacking the
57196         function.
57197         * doc/functions/getline.texi: Likewise.
57198
57199 2007-09-09  Jim Meyering  <jim@meyering.net>
57200
57201         * lib/hash.c (hash_initialize): Detect calloc failure.
57202         Reported by Bruno Haible.
57203
57204 2007-09-09  Bruno Haible  <bruno@clisp.org>
57205
57206         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57207         malloc or realloc fails.
57208
57209 2007-09-09  Bruno Haible  <bruno@clisp.org>
57210
57211         * modules/getcwd (Depends-on): Add malloc-posix.
57212         * modules/glob (Depends-on): Likewise.
57213         * modules/putenv (Depends-on): Likewise.
57214         * modules/strdup (Depends-on): Likewise.
57215         * modules/getdelim (Depends-on): Add realloc-posix.
57216         * modules/read-file (Depends-on): Likewise.
57217
57218 2007-09-09  Bruno Haible  <bruno@clisp.org>
57219
57220         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57221         (gl_FUNC_MALLOC_POSIX): Require it.
57222         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57223         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57224         * modules/realloc (Files): Add m4/malloc.m4.
57225         * modules/calloc (Files): Likewise.
57226
57227 2007-09-09  Bruno Haible  <bruno@clisp.org>
57228
57229         * modules/malloc-posix: New file.
57230         * modules/malloc (Depends-on): Add malloc-posix.
57231         * lib/malloc.c: Include errno.h.
57232         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57233         and a POSIX-compatible malloc into a single function. Set ENOMEM
57234         when returning NULL.
57235         * m4/malloc.m4: New file.
57236         * doc/functions/malloc.texi: Mention the malloc-posix module.
57237         * lib/stdlib_.h (malloc): New declaration.
57238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57239         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57240         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57241         and HAVE_MALLOC_POSIX.
57242
57243 2007-09-09  Bruno Haible  <bruno@clisp.org>
57244
57245         * modules/realloc-posix: New file.
57246         * modules/realloc (Depends-on): Add realloc-posix.
57247         * lib/realloc.c: Include errno.h.
57248         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57249         and a POSIX-compatible realloc into a single function. Set ENOMEM
57250         when returning NULL.
57251         * m4/realloc.m4: New file.
57252         * doc/functions/realloc.texi: Mention the realloc-posix module.
57253         * lib/stdlib_.h (realloc): New declaration.
57254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57255         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57256         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57257         and HAVE_REALLOC_POSIX.
57258
57259 2007-09-09  Bruno Haible  <bruno@clisp.org>
57260
57261         * modules/calloc-posix: New file.
57262         * modules/calloc (Depends-on): Add calloc-posix.
57263         * lib/calloc.c: Include errno.h.
57264         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57265         and a POSIX-compatible calloc into a single function. Set ENOMEM
57266         when returning NULL.
57267         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57268         * doc/functions/calloc.texi: Mention the calloc-posix module.
57269         * lib/stdlib_.h (calloc): New declaration.
57270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57271         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57272         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57273         and HAVE_CALLOC_POSIX.
57274
57275 2007-09-09  Bruno Haible  <bruno@clisp.org>
57276
57277         Allow for modules to show an arbitrary notice.
57278         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57279         * gnulib-tool: New option --extract-notice.
57280         (func_usage): Document it.
57281         (sed_extract_prog): Update.
57282         (func_get_notice): New function.
57283         (func_modules_notice): New function.
57284         (func_import, func_create_testdir): Invoke it.
57285         Suggested by Jim Meyering.
57286
57287 2007-09-09  Bruno Haible  <bruno@clisp.org>
57288
57289         * gnulib-tool: New options --verbose, --quiet.
57290         (func_usage): Document them.
57291         (verbose): New variable.
57292         (func_execute_command): New function.
57293         (func_import): Don't show the module list and the file list if
57294         $verbose < 0.
57295         (func_create_testdir): Likewise. Use func_execute_command.
57296         (func_create_megatestdir): Use func_execute_command.
57297
57298 2007-09-08  Bruno Haible  <bruno@clisp.org>
57299
57300         * gnulib-tool (func_import): Prefer rsync over wget when available,
57301         for fetching the PO files.
57302
57303 2007-09-08  Bruno Haible  <bruno@clisp.org>
57304
57305         * posix-modules: New file. Portions copied from gnulib-tool.
57306         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57307
57308 2007-09-08  Jim Meyering  <jim@meyering.net>
57309
57310         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57311         * lib/fpending.h: Rename from __fpending.h.
57312         * lib/fpending.c: Rename from __fpending.c.
57313         Include "fpending.h", not "__fpending.h".
57314         * lib/__fpending.h, lib/__fpending.c: Remove files.
57315         * modules/fpending (Files): Reflect new file names.
57316         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57317
57318 2007-09-08  Bruno Haible  <bruno@clisp.org>
57319
57320         * m4/inttypes-h.m4: Remove stub file.
57321
57322 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57323
57324         * doc/headers/stdint.texi: Discuss #include_next issue.
57325
57326 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57327
57328         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57329
57330 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57331
57332         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57333         in variable name.
57334
57335 2007-09-03  Jim Meyering  <jim@meyering.net>
57336
57337         New module: git-version-gen.
57338         * modules/git-version-gen: New file.
57339
57340         Import changes from coreutils for bootstrap script.
57341
57342         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57343
57344         bootstrap: uses rsync to download the .po files
57345         * build-aux/bootstrap (po_download_command_format): New global.
57346         (download_po_files): Use rsync.
57347         (update_po_files): Don't remove .po files after download,
57348         so future rsync runs can take advantage of the copies.
57349
57350         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57351
57352         Solve the unnecessary-.po-file-regeneration problem once and for all.
57353         * build-aux/bootstrap (download_po_files): New function, renamed from
57354         get_translations.  Now, downloads, but doesn't update LINGUAS.
57355         (update_po_files): New function.
57356
57357         bootstrap: Ignore more.
57358         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57359         uniwidth to e.g., lib/.gitignore.
57360         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57361
57362         * build-aux/bootstrap: New setting: vc_ignore.
57363         (insert_sorted_if_absent): Create $file if absent.
57364         Adapt to new, possibly empty, list: $vc_ignore.
57365
57366         bootstrap: generate more ignorable names
57367         * build-aux/bootstrap (slurp): When generating ignorable names,
57368         also map .sin to .sed, .gperf to .c, and .y to .c.
57369
57370 2007-09-03  Jim Meyering  <jim@meyering.net>
57371
57372         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57373         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57374
57375 2007-09-02  Bruno Haible  <bruno@clisp.org>
57376
57377         Fix mis-recognition of 'mcs' on QNX 6.
57378         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57379         output contains the string "Mono".
57380         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57381         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57382
57383 2007-09-01  Bruno Haible  <bruno@clisp.org>
57384
57385         Fix collision between uniwidth/* and linebreak modules.
57386         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57387         u32_width): Remove declarations.
57388         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57389         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57390         streq3, streq2, streq1, streq0): Remove functions.
57391         (STREQ): Remove macro.
57392         (is_cjk_encoding): Remove function.
57393         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57394         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57395         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57396         * NEWS: Document the change.
57397
57398 2007-09-01  Bruno Haible  <bruno@clisp.org>
57399
57400         * lib/streq.h: Add double-inclusion guard.
57401
57402 2007-09-01  Karl Berry  <karl@gnu.org>
57403
57404         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57405
57406 2007-08-28  Jim Meyering  <jim@meyering.net>
57407
57408         Rename mreadlink_with_size to areadlink_with_size.
57409         * NEWS: Document the change.
57410         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57411         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57412         * lib/mreadlink.h: Rename this to...
57413         * lib/areadlink.h: ...this.
57414         * modules/mreadlink-with-size: Rename this to...
57415         * modules/areadlink-with-size: ...this.
57416         * lib/canonicalize.c: Reflect the renaming.
57417         * modules/canonicalize: Likewise.
57418
57419 2007-08-26  Bruno Haible  <bruno@clisp.org>
57420
57421         * gnulib-tool (func_import): When deciding which files to remove,
57422         consider also dangling symbolic links.
57423         Reported by Eric Blake.
57424
57425 2007-08-26  Bruno Haible  <bruno@clisp.org>
57426
57427         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57428
57429 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57430
57431         * lib/readline.c: Don't include getline.h, the prototype is now
57432         found in stdio.h.
57433
57434 2007-08-23  Jim Meyering  <jim@meyering.net>
57435
57436         Getdelim touchup.
57437         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57438         around the funlockfile call, since funlockfile never sets errno.
57439         Don't set errno upon failed realloc.
57440
57441 2007-08-22  Eric Blake  <ebb9@byu.net>
57442
57443         Getline touchups.
57444         * lib/getdelim.c (getdelim): Revert regression that required *n to
57445         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57446         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57447         getdelim, rather than whether implementation is missing.
57448         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57449         * lib/stdio_.h (getline): Also declare if replacement is
57450         required.
57451         * doc/functions/getdelim.texi: New file.
57452         * doc/functions/getline.texi: Likewise.
57453         * doc/gnulib.texi (Function Substitutes): Add new files.
57454         Reported by Bruno Haible.
57455
57456 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57457
57458         * users.txt: Add Guile.
57459
57460 2007-08-22  Eric Blake  <ebb9@byu.net>
57461
57462         * tests/test-getdelim.c (main): Use remove, not unlink.
57463         * tests/test-getline.c (main): Likewise.
57464
57465         Move getline and getdelim into stdio.h, per POSIX 200x.
57466         * modules/getline (Files): Remove getline.h.
57467         (Depends-on): Add stdio.
57468         (configure.ac): Add module indicator.
57469         * modules/getdelim (Files): Remove getdelim.h.
57470         (Depends-on): Add stdio.
57471         (configure.ac): Add module indicator.
57472         * modules/stdio (Makefile.am): Work with new indicators.
57473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57474         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57475         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57476         * lib/getdelim.h: Delete.
57477         * lib/getline.h: Delete.
57478         * lib/stdio_.h (getdelim, getline): Declare.
57479         * modules/getdelim-tests: New module.
57480         * modules/getline-tests: Likewise.
57481         * tests/test-getdelim.c: New file.
57482         * tests/test-getline.c: Likewise.
57483         * NEWS: Document the change.
57484         * lib/getline.c: Update choice of header.
57485         * lib/csharpcomp.c: Likewise.
57486         * lib/getpass.c: Likewise.
57487         * lib/javacomp.c: Likewise.
57488         * lib/javaversion.c: Likewise.
57489         * lib/yesno.c: Likewise.
57490         * lib/getdelim.c: Likewise.
57491         (getdelim): Set errno on failure, and avoid memory leak.
57492
57493 2007-08-19  Bruno Haible  <bruno@clisp.org>
57494
57495         * modules/closein (Depends-on): Add freadahead.
57496         * lib/closein.c: Include freadahead.h.
57497         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57498         is zero.
57499
57500 2007-08-19  Bruno Haible  <bruno@clisp.org>
57501
57502         * modules/freadahead-tests: New file.
57503         * tests/test-freadahead.sh: New file.
57504         * tests/test-freadahead.c: New file.
57505
57506         * modules/freadahead: New file.
57507         * lib/freadahead.h: New file.
57508         * lib/freadahead.c: New file.
57509         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57510         fbufmode, fpurge, freadable, fwritable.
57511
57512 2007-08-19  Eric Blake  <ebb9@byu.net>
57513
57514         Test yesno in combination with closein.
57515         * lib/yesno.c (yesno): Document use of stdin.
57516         * modules/yesno-tests (Files): New module.
57517         * tests/test-yesno.c (main): New file.
57518         * tests/test-yesno.sh: Likewise.
57519
57520 2007-08-19  Bruno Haible  <bruno@clisp.org>
57521
57522         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57523         * lib/fseeko.c (rpl_fseeko): Likewise.
57524         * lib/fseterr.c (fseterr): Likewise.
57525
57526 2007-08-19  Bruno Haible  <bruno@clisp.org>
57527
57528         * tests/test-lseek.c (main): Disable a test for BeOS.
57529         * doc/functions/lseek.texi: Document the BeOS bug.
57530
57531 2007-08-19  Bruno Haible  <bruno@clisp.org>
57532             Eric Blake  <ebb9@byu.net>
57533
57534         * lib/lseek.c: Include <sys/stat.h>.
57535         (rpl_lseek): Add workaround code also for Unix platforms.
57536         Needed for BeOS.
57537         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57538         * doc/functions/lseek.texi: Document BeOS definiency.
57539
57540 2007-08-18  Bruno Haible  <bruno@clisp.org>
57541
57542         * modules/fstrcmp-tests: New file.
57543         * tests/test-fstrcmp.c: New file.
57544
57545 2007-08-18  Bruno Haible  <bruno@clisp.org>
57546
57547         * modules/fstrcmp: New file, from GNU gettext with modifications.
57548         * lib/fstrcmp.h: New file, from GNU gettext.
57549         * lib/fstrcmp.c: New file, from GNU gettext.
57550         * MODULES.html.sh (String handling): Add fstrcmp.
57551
57552 2007-08-18  Bruno Haible  <bruno@clisp.org>
57553
57554         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57555         'bool'.
57556         (diag, compareseq): Remove const from the ctxt argument.
57557         (USE_HEURISTIC): Undefine at the end.
57558
57559 2007-08-18  Jim Meyering  <jim@meyering.net>
57560
57561         New file: lib/idcache.h
57562         * NEWS: Mention the addition.
57563         * modules/idcache (Files): Add lib/idcache.h
57564         * lib/idcache.c: Include "idcache.h".
57565         Don't include <sys/types.h>.
57566         Add a FIXME comment.
57567         Move file-scoped "static" declarations to the top.
57568         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57569
57570 2007-08-17  Bruno Haible  <bruno@clisp.org>
57571         and Paul Eggert  <eggert@cs.ucla.edu>
57572
57573         * MODULES.html.sh: Add diffseq.
57574         * modules/diffseq: New file.
57575         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57576         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57577
57578 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57579
57580         Import changes from coreutils for bootstrap script.
57581
57582         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57583
57584         * build-aux/bootstrap (slurp): Work even in environments where
57585         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57586         current code does not slurp files whose names start with ".", and
57587         this looks like it might be a troublesome area.
57588
57589         2007-07-11  Jim Meyering  <jim@meyering.net>
57590
57591         If there's a GPL vN copyright comment, require that N == 3.
57592
57593         2007-07-08  Jim Meyering  <jim@meyering.net>
57594
57595         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57596         * build-aux/bootstrap (mam_template): Move definition out of loop.
57597
57598         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57599
57600         * build-aux/bootstrap (symlink_to_dir): Rename function from
57601         symlink_to_gnulib.  Add a directory parameter.  Update all
57602         callers.
57603         (cp_mark_as_generated): Also check for -- and link to -- files in
57604         gl/.
57605
57606         2007-07-08  Jim Meyering  <jim@meyering.net>
57607
57608         Adapt to deeper hierarchy in gnulib.
57609         * build-aux/bootstrap (symlink_to_dir): If the destination
57610         directory doesn't exist, create it. This is required at least for
57611         "lib/uniwidth/cjk.h".
57612
57613         2007-05-15  Jim Meyering  <jim@meyering.net>
57614
57615         * build-aux/bootstrap: Now that generated Makefile.am files
57616         are no longer under version control, they must be created at
57617         bootstrap time.
57618
57619 2007-08-14  Ben Pfaff  <blp@gnu.org>
57620
57621         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57622
57623 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57624
57625         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57626         given the changes below.
57627         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57628         even on hosts that have padding bits beyond the supported 64.
57629
57630 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57631
57632         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57633         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57634         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57635         depends on it.
57636         (xstrtol_error): Remove.
57637         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57638         but with a different signature.
57639         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57640         * lib/xstrtol-error.c: Include exitfail.h.
57641         (xstrtol_fatal): New function, with a different signature from the
57642         old xstrtol_error, so that the caller need not worry about passing
57643         in an exit status, or about storage management of the option argument.
57644         (xstrtol_error): Now a static function.  Redo signature to
57645         implement xstrtol_fatal.  Output the correct number of hyphens in
57646         front of the option so that the caller need not worry about
57647         storage management.
57648         (N_): New macro.
57649         (_): Remove; not used now.
57650         * modules/xstrtol: Depend on getopt.
57651         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57652         of old STRTOL_FATAL_ERROR macro.
57653         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57654         of test program.
57655         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57656         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57657
57658 2007-08-08  Eric Blake  <ebb9@byu.net>
57659
57660         * lib/xstrtol-error.c: Add missing include.
57661
57662         Move xstrtol messages into gnulib domain, when --pobase is used.
57663         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57664         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57665         * modules/xstrtol (Files): Distribute new file.
57666         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57667         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57668         * tests/test-xstrtol.c: ...into new file.
57669         * tests/test-xstrtoul.c: Also test xstrtoul.
57670         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57671         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57672         * tests/test-xstrtol.sh: Drive the tests.
57673         * tests/test-xstrtoimax.sh: Likewise.
57674         * tests/test-xstrtoumax.sh: Likewise.
57675         * modules/xstrtol-tests: New module.
57676         * modules/xstrtoimax-tests: Likewise.
57677         * modules/xstrtoumax-tests: Likewise.
57678
57679 2007-08-08  Jim Meyering  <jim@meyering.net>
57680
57681         New function: mfile_name_concat.
57682         * lib/filenamecat.c (mfile_name_concat): New function, just like
57683         file_name_concat, but return NULL upon failure rather than exiting
57684         with a diagnostic.
57685         * lib/filenamecat.h: Declare it.
57686
57687 2007-08-07  Bruno Haible  <bruno@clisp.org>
57688
57689         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57690         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57691         warning from gcc.
57692         Reported by Eric Blake.
57693
57694 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57695
57696         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57697         * modules/crypto/arcfour (License): Likewise.
57698         * modules/crypto/des-tests (License): Likewise.
57699         * modules/crypto/gc-arctwo-tests (License): Likewise.
57700         * modules/crypto/gc-des-tests (License): Likewise.
57701         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57702         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57703         * modules/crypto/gc-md2-tests (License): Likewise.
57704         * modules/crypto/gc-md4-tests (License): Likewise.
57705         * modules/crypto/gc-md5-tests (License): Likewise.
57706         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57707         * modules/crypto/gc-rijndael-tests (License): Likewise.
57708         * modules/crypto/gc-sha1-tests (License): Likewise.
57709         * modules/crypto/gc-tests (License): Likewise.
57710         * modules/crypto/hmac-md5 (License): Likewise.
57711         * modules/crypto/hmac-sha1 (License): Likewise.
57712         * modules/crypto/md2-tests (License): Likewise.
57713         * modules/crypto/md4-tests (License): Likewise.
57714         * modules/crypto/md5 (License): Likewise.
57715         * modules/crypto/rijndael (License): Likewise.
57716         * modules/crypto/sha1 (License): Likewise.
57717         * modules/memxor (License): Likewise.
57718
57719 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57720         and Bruno Haible  <bruno@clisp.org>
57721
57722         * NEWS: Describe interface changes to human, xstrtol.
57723         * lib/human.h: Include <xstrtol.h>.
57724         (human_options): Return enum strtol_error, not int.  Remove
57725         bool arg; take int * instead.
57726         * lib/human.c: Don't include "gettext.h".
57727         (_): Remove; no longer used.
57728         Don't include <xstrtol.h>, since human.h does it.
57729         (human_options): Adjust to abovementioned interface changes.
57730         Do not report error to stderr; that's now the caller's
57731         responsibility.
57732         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57733         interface change.
57734         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57735         Str, Argument_type_string.  All uses changed.  Put " argument"
57736         in diagnostics to make them clearer.  Change wording of suffix
57737         message for clarity.
57738         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57739         Argument_type_string.
57740         (STRTOL_FATAL_WARN): Remove; no longer used.
57741         * modules/human (Depends-on): Remove gettext-h.
57742
57743 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57744
57745         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57746
57747 2007-07-31  Bruno Haible  <bruno@clisp.org>
57748
57749         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57750         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57751         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57752
57753 2007-07-31  Bruno Haible  <bruno@clisp.org>
57754
57755         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57756         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57757
57758 2007-07-30  Bruno Haible  <bruno@clisp.org>
57759
57760         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57761         * modules/c-ctype (License): Likewise.
57762         * modules/c-strcase (License): Likewise.
57763         * modules/check-version (License): Likewise.
57764         * modules/iconv (License): Likewise.
57765         * modules/iconv_open (License): Likewise.
57766         * modules/read-file (License): Likewise.
57767         * modules/striconv (License): Likewise.
57768         * modules/strverscmp (License): Likewise.
57769         * modules/vasprintf (License): Likewise.
57770         * modules/crypto/des (License): Likewise.
57771         * modules/crypto/gc (License): Likewise.
57772         * modules/crypto/gc-arcfour (License): Likewise.
57773         * modules/crypto/gc-arctwo (License): Likewise.
57774         * modules/crypto/gc-des (License): Likewise.
57775         * modules/crypto/gc-hmac-md5 (License): Likewise.
57776         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57777         * modules/crypto/gc-md2 (License): Likewise.
57778         * modules/crypto/gc-md4 (License): Likewise.
57779         * modules/crypto/gc-md5 (License): Likewise.
57780         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57781         * modules/crypto/gc-random (License): Likewise.
57782         * modules/crypto/gc-rijndael (License): Likewise.
57783         * modules/crypto/gc-sha1 (License): Likewise.
57784         * modules/crypto/md2 (License): Likewise.
57785         * modules/crypto/md4 (License): Likewise.
57786
57787 2007-07-30  Jim Meyering  <jim@meyering.net>
57788
57789         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57790         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57791         it has valid stat data.  This bug would cause du not to count the
57792         sizes of inaccessible directories.
57793         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57794         in <http://bugzilla.redhat.com/250077>.
57795
57796 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57797             Bruno Haible  <bruno@clisp.org>
57798
57799         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57800         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57801         #include_next, gives a diagnostic about it, but reports no error in
57802         the exit code.
57803         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57804
57805 2007-07-24  Ben Pfaff  <blp@gnu.org>
57806
57807         Improve name: "count-one-bits" is better than "popcount".
57808         * MODULES.html.sh: Update name.
57809         * lib/popcount.h: Renamed lib/count-one-bits.h.
57810         (popcount): Renamed count_one_bits.
57811         (popcountl): Renamed count_one_bits_l.
57812         (popcountll): Renamed count_one_bits_ll.
57813         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57814         * modules/popcount: Renamed module/count-one-bits.
57815         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57816         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57817
57818 2007-07-23  Ben Pfaff  <blp@gnu.org>
57819
57820         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57821         better code generation, and add U to large constants to avoid
57822         warnings, in non-GCC case.
57823         Suggested by Bruno Haible.
57824
57825 2007-07-23  Ben Pfaff  <blp@gnu.org>
57826
57827         * lib/popcount.h: Use verify_true instead of if...abort.
57828         * modules/popcount: Depend on verify module.
57829         Suggested by Jim Meyering.
57830
57831 2007-07-23  Bruno Haible  <bruno@clisp.org>
57832
57833         * gnulib-tool (func_import): Create a .cvsignore file also when the
57834         directory is not yet in CVS but the toplevel directory is. When
57835         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57836         Reported by Karl Berry.
57837
57838 2007-07-22  Ben Pfaff  <blp@gnu.org>
57839
57840         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57841         case.
57842         Suggested by Eric Blake.
57843
57844 2007-07-22  Ben Pfaff  <blp@gnu.org>
57845
57846         New module: popcount.
57847         * MODULES.html.sh: Add popcount.
57848         * modules/popcount: New file.
57849         * modules/popcount-tests: New file.
57850         * tests/test-popcount.c: New file.
57851         * lib/popcount.h: New file.
57852         * m4/popcount.m4: New file.
57853
57854 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57855
57856         * build-aux/announce-gen: Update to GPLv3.
57857
57858         * build-aux/config.guess: Update from config.
57859
57860 2007-07-21  Bruno Haible  <bruno@clisp.org>
57861
57862         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57863         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57864
57865 2007-07-20  Jim Meyering  <jim@meyering.net>
57866
57867         * check-module: Diagnose a self-dependency.
57868
57869 2007-07-19  Bruno Haible  <bruno@clisp.org>
57870
57871         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57872         empty.
57873         Reported by Eric Blake.
57874
57875 2007-07-18  Bruno Haible  <bruno@clisp.org>
57876
57877         * gnulib-tool: New options --po-base, --po-domain.
57878         (func_usage): Document them.
57879         (pobase, po_domain): New variables.
57880         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57881         DEFAULT_TEXT_DOMAIN.
57882         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57883         (func_import): Consider pobase and po_domain. Create a po/ directory.
57884         (func_create_testdir): Set pobase and po_domain to empty.
57885         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57886         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57887
57888 2007-07-18  Bruno Haible  <bruno@clisp.org>
57889
57890         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57891         EXTRA_DIST augmentation for files in build-aux/.
57892
57893 2007-07-16  Bruno Haible  <bruno@clisp.org>
57894
57895         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57896         * modules/getdelim (License): Likewise.
57897
57898 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57899
57900         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57901         * modules/d-type (License): Likewise.
57902         * modules/extensions (License): Likewise.
57903         * modules/fnmatch (License): Likewise.
57904         * modules/fseeko (License): Likewise.
57905         * modules/getaddrinfo (License): Likewise.
57906         * modules/getline (License): Likewise.
57907         * modules/getlogin_r (License): Likewise.
57908         * modules/getpass (License): Likewise.
57909         * modules/gettimeofday (License): Likewise.
57910         * modules/glob (License): Likewise.
57911         * modules/inet_ntop (License): Likewise.
57912         * modules/malloc (License): Likewise.
57913         * modules/malloca (License): Likewise.
57914         * modules/memmem (License): Likewise.
57915         * modules/mempcpy (License): Likewise.
57916         * modules/memset (License): Likewise.
57917         * modules/minmax (License): Likewise.
57918         * modules/mktime (License): Likewise.
57919         * modules/netinet_in (License): Likewise.
57920         * modules/pathmax (License): Likewise.
57921         * modules/poll (License): Likewise.
57922         * modules/regex (License): Likewise.
57923         * modules/snprintf (License): Likewise.
57924         * modules/stdbool (License): Likewise.
57925         * modules/stdint (License): Likewise.
57926         * modules/stdio (License): Likewise.
57927         * modules/strcase (License): Likewise.
57928         * modules/strcasestr (License): Likewise.
57929         * modules/strdup (License): Likewise.
57930         * modules/string (License): Likewise.
57931         * modules/strndup (License): Likewise.
57932         * modules/strnlen (License): Likewise.
57933         * modules/strpbrk (License): Likewise.
57934         * modules/strptime (License): Likewise.
57935         * modules/strsep (License): Likewise.
57936         * modules/sys_select (License): Likewise.
57937         * modules/sys_socket (License): Likewise.
57938         * modules/sys_stat (License): Likewise.
57939         * modules/sys_time (License): Likewise.
57940         * modules/time (License): Likewise.
57941         * modules/time_r (License): Likewise.
57942         * modules/timegm (License): Likewise.
57943         * modules/unistd (License): Likewise.
57944         * modules/vsnprintf (License): Likewise.
57945         * modules/wctype (License): Likewise.
57946
57947 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57948
57949         * modules/argz (License): LGPLv2+.
57950
57951 2007-07-15  Karl Berry  <karl@gnu.org>
57952
57953         * doc/gnulib.texi: revise node structure per new fdl.texi.
57954
57955 2007-07-14  Bruno Haible  <bruno@clisp.org>
57956
57957         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57958         the output file.
57959         * lib/uniname/uninames.h: Regenerated.
57960
57961 2007-07-14  Karl Berry  <karl@gnu.org>
57962
57963         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57964         omitting sectioning and index commands.
57965
57966 2007-07-13  Bruno Haible  <bruno@clisp.org>
57967
57968         New gnulib-tool option --more-symlinks.
57969         * gnulib-tool (func_usage): Document --more-symlinks.
57970         (do_copyrights): New variable.
57971         Recognize option --more-symlinks.
57972         (func_import): Don't add a copyright notice transform to
57973         sed_transform_lib_file if do_copyrights is empty.
57974
57975 2007-07-13  Bruno Haible  <bruno@clisp.org>
57976
57977         * lib/vasnprintf.c (decimal_point_char): Define also if
57978         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57979         && !NEED_PRINTF_DIRECTIVE_A.
57980         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57981         Gary V. Vaughan <gary@gnu.org>.
57982
57983 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57984
57985         * lib/inttypes_.h: Undo previous change, since it was fixed
57986         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57987
57988 2007-07-13  Bruno Haible  <bruno@clisp.org>
57989
57990         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57991         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57992
57993 2007-07-13  Jim Meyering  <jim@meyering.net>
57994
57995         df: Don't fail for Tru64's "file-on-file mount".
57996         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57997         so we fall through and use statfs instead.  Details here:
57998         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57999         Reported by Albert Chin.
58000
58001 2007-07-13  Bruno Haible  <bruno@clisp.org>
58002
58003         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58004         * modules/configmake (License): Likewise.
58005         * modules/gettext (License): Likewise.
58006         * modules/gettext-h (License): Likewise.
58007         * modules/include_next (License): Likewise.
58008         * modules/link-warning (License): Likewise.
58009         * modules/localcharset (License): Likewise.
58010         * modules/localename (License): Likewise.
58011         * modules/lock (License): Likewise.
58012         * modules/relocatable-lib-lgpl (License): Likewise.
58013         * modules/size_max (License): Likewise.
58014         * modules/vasnprintf (License): Likewise.
58015         * modules/wchar (License): Likewise.
58016         * modules/xsize (License): Likewise.
58017
58018 2007-07-13  Bruno Haible  <bruno@clisp.org>
58019
58020         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58021         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58022
58023 2007-07-12  Bruno Haible  <bruno@clisp.org>
58024
58025         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58026         in the modules files.
58027
58028 2007-07-11  Karl Berry  <karl@gnu.org>
58029
58030         * MODULES.html.sh (func_module): use
58031          sed -e '\|^'"${includefile}"'$|d'
58032          instead of /.../d, to avoid errors on $includefile's containing /.
58033
58034 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58035
58036         * gnulib-tool (func_import): Avoid duplication of --avoid
58037         statements
58038         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58039         names to `_' in variable names.
58040
58041 2007-07-10  Eric Blake  <ebb9@byu.net>
58042
58043         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58044         * NEWS: Document this change.
58045
58046 2007-07-08  Bruno Haible  <bruno@clisp.org>
58047
58048         Update to Unicode 5.0.
58049         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58050         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58051         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58052         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58053         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58054         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58055         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58056         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58057         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58058         U+10A3F, U+1D242..U+1D244.
58059         (nonspacing_table_ind): Update.
58060         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58061         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58062
58063 2007-07-08  Bruno Haible  <bruno@clisp.org>
58064
58065         Update to Unicode 5.0.
58066         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58067         code transform. Extend the name index field of unicode_name_to_code and
58068         unicode_code_to_name from 16 to 24 bits.
58069         * lib/uniname/uniname.c (unicode_character_name,
58070         unicode_name_character): Add the range 0x12xxx to the code transform.
58071         * lib/uniname/uninames.h: Regenerated.
58072         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58073
58074 2007-07-07  Bruno Haible  <bruno@clisp.org>
58075
58076         * modules/wcwidth-tests: New file.
58077         * tests/test-wcwidth.c: New file.
58078
58079         Work around MacOS X wcwidth() bug.
58080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58081         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58082         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58083         original wcwidth in non-UTF-8 locales.
58084         * modules/wcwidth (Depends-on): Add localcharset, streq,
58085         uniwidth/width.
58086         * doc/functions/wcwidth.texi: Update.
58087
58088 2007-07-07  Bruno Haible  <bruno@clisp.org>
58089
58090         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58091         (wcwidth): New declaration.
58092         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58093         macros.
58094         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58095         here. Prepare for creating <wchar.h> unconditionally.
58096         * modules/wchar (Depends-on): Add link-warning.
58097         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58098         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58099         * lib/wcwidth.h: Remove file.
58100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58101         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58102         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58103         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58104         (Include): Replace wcwidth.h with <wchar.h>.
58105         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58106         * lib/mbchar.h: Don't include wcwidth.h.
58107         * lib/mbswidth.c: Likewise.
58108         * NEWS: Mention the change.
58109
58110 2007-07-07  Bruno Haible  <bruno@clisp.org>
58111
58112         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58113         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58114         definition with an external declaration.
58115         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58116         defined as a function. Remove AC_C_INLINE requirement.
58117         * modules/wcwidth (Files): Add lib/wcwidth.c.
58118         (Makefile.am): Remove redundant statement.
58119
58120 2007-07-07  Bruno Haible  <bruno@clisp.org>
58121
58122         * MODULES.html.sh (Unicode string functions): Add the new modules.
58123
58124         * tests/uniwidth/test-u32-strwidth.c: New file.
58125         * modules/uniwidth/u32-strwidth-tests: New file.
58126
58127         * lib/uniwidth/u32-strwidth.c: New file.
58128         * modules/uniwidth/u32-strwidth: New file.
58129
58130         * tests/uniwidth/test-u16-strwidth.c: New file.
58131         * modules/uniwidth/u16-strwidth-tests: New file.
58132
58133         * lib/uniwidth/u16-strwidth.c: New file.
58134         * modules/uniwidth/u16-strwidth: New file.
58135
58136         * tests/uniwidth/test-u8-strwidth.c: New file.
58137         * modules/uniwidth/u8-strwidth-tests: New file.
58138
58139         * lib/uniwidth/u8-strwidth.c: New file.
58140         * modules/uniwidth/u8-strwidth: New file.
58141
58142         * tests/uniwidth/test-u32-width.c: New file.
58143         * modules/uniwidth/u32-width-tests: New file.
58144
58145         * lib/uniwidth/u32-width.c: New file.
58146         * modules/uniwidth/u32-width: New file.
58147
58148         * tests/uniwidth/test-u16-width.c: New file.
58149         * modules/uniwidth/u16-width-tests: New file.
58150
58151         * lib/uniwidth/u16-width.c: New file.
58152         * modules/uniwidth/u16-width: New file.
58153
58154         * tests/uniwidth/test-u8-width.c: New file.
58155         * modules/uniwidth/u8-width-tests: New file.
58156
58157         * lib/uniwidth/u8-width.c: New file.
58158         * modules/uniwidth/u8-width: New file.
58159
58160         * tests/uniwidth/test-uc_width.c: New file.
58161         * modules/uniwidth/width-tests: New file.
58162
58163         * lib/uniwidth/width.c: New file, from GNU libiconv.
58164         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58165         * modules/uniwidth/width: New file.
58166
58167         * lib/uniwidth.h: New file, from GNU libiconv.
58168         * modules/uniwidth/base: New file.
58169
58170 2007-07-07  Bruno Haible  <bruno@clisp.org>
58171
58172         * lib/uniname.h: New file, from GNU gettext.
58173         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58174         * lib/uniname/uninames.h: New file, from GNU gettext.
58175         * lib/uniname/uniname.c: New file, from GNU gettext.
58176         * tests/uniname/test-uninames.sh: New file.
58177         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58178         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58179         * modules/uniname/base: New file.
58180         * modules/uniname/uniname: New file.
58181         * modules/uniname/uniname-tests: New file.
58182         * MODULES.html.sh (Unicode string functions): Add the new modules.
58183
58184 2007-07-06  Bruno Haible  <bruno@clisp.org>
58185
58186         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58187
58188 2007-07-06  Bruno Haible  <bruno@clisp.org>
58189
58190         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58191         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58192         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58193         include <sys/time.h>.
58194         Reported by Eric Blake.
58195
58196 2007-07-06  Eric Blake  <ebb9@byu.net>
58197
58198         Fix testing canonicalize on cygwin.
58199         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58200         Revert patch from 2007-06-19.
58201         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58202         canonicalize module is also in use.
58203         * tests/test-canonicalize.c: New file.
58204         * tests/test-canonicalize.sh: Likewise.
58205         * modules/canonicalize-tests: Likewise.
58206
58207 2007-07-06  Jim Meyering  <jim@meyering.net>
58208
58209         * lib/getugroups.c (getugroups): Detect getgrent failure.
58210         Adjust comment to reflect reality: this function may return -1.
58211
58212 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58213
58214         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58215         the new TP address.
58216         (usage): Fix typo
58217         (gnulib_mk): New variable.
58218
58219 2007-07-05  Jim Meyering  <jim@meyering.net>
58220
58221         Don't let endgrent clobber errno, no matter how improbable.
58222         * lib/getugroups.c (getugroups): Save and restore errno around
58223         endgrent call.
58224
58225         Close the group DB even when failing with 2^31 or more members.
58226         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58227
58228 2007-07-04  Jim Meyering  <jim@meyering.net>
58229
58230         * lib/getugroups.h: New file.
58231         * lib/getugroups.c: Include "getugroups.h".
58232         Remove uses of "register" keyword.
58233         Move local variable, "cp", down into scope where used.
58234         Give "username" parameter the "const" attribute.
58235         * modules/getugroups (Files): Add lib/getugroups.h
58236
58237 2007-07-04  Karl Berry  <karl@gnu.org>
58238
58239         * MODULES.html.sh (func_all_modules): Complete rename of
58240         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58241
58242 2007-07-02  Bruno Haible  <bruno@clisp.org>
58243
58244         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58245         mode, when inttypes.h comes from gnulib.
58246         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58247
58248 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58249
58250         * NEWS: Mention lgpl module name change.
58251
58252         * modules/lgpl-2.1: Renamed from lgpl.
58253
58254         * NEWS: Mention gpl module name change.
58255
58256         * modules/gpl-3.0: New file, based on gpl-2.0.
58257
58258         * modules/gpl-2.0: Renamed from gpl.
58259
58260         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58261         doc/gpl-2.0.texi.
58262
58263 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58264
58265         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58266         #define __STDC_LIMIT_MACROS temporarily while including
58267         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58268         Problem reported by Joel E. Denny in
58269         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58270
58271 2007-07-01  Bruno Haible  <bruno@clisp.org>
58272
58273         * lib/unistdio.h: New file.
58274         * lib/unistdio/u-asnprintf.h: New file.
58275         * lib/unistdio/u-asprintf.h: New file.
58276         * lib/unistdio/u-printf-args.c: New file.
58277         * lib/unistdio/u-printf-args.h: New file.
58278         * lib/unistdio/u-printf-parse.h: New file.
58279         * lib/unistdio/u-snprintf.h: New file.
58280         * lib/unistdio/u-sprintf.h: New file.
58281         * lib/unistdio/u-vasprintf.h: New file.
58282         * lib/unistdio/u-vsnprintf.h: New file.
58283         * lib/unistdio/u-vsprintf.h: New file.
58284         * lib/unistdio/ulc-asnprintf.c: New file.
58285         * lib/unistdio/ulc-asprintf.c: New file.
58286         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58287         * lib/unistdio/ulc-printf-parse.c: New file.
58288         * lib/unistdio/ulc-snprintf.c: New file.
58289         * lib/unistdio/ulc-sprintf.c: New file.
58290         * lib/unistdio/ulc-vasnprintf.c: New file.
58291         * lib/unistdio/ulc-vasprintf.c: New file.
58292         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58293         * lib/unistdio/ulc-vsnprintf.c: New file.
58294         * lib/unistdio/ulc-vsprintf.c: New file.
58295         * lib/unistdio/u8-asnprintf.c: New file.
58296         * lib/unistdio/u8-asprintf.c: New file.
58297         * lib/unistdio/u8-printf-parse.c: New file.
58298         * lib/unistdio/u8-snprintf.c: New file.
58299         * lib/unistdio/u8-sprintf.c: New file.
58300         * lib/unistdio/u8-vasnprintf.c: New file.
58301         * lib/unistdio/u8-vasprintf.c: New file.
58302         * lib/unistdio/u8-vsnprintf.c: New file.
58303         * lib/unistdio/u8-vsprintf.c: New file.
58304         * lib/unistdio/u8-u8-asnprintf.c: New file.
58305         * lib/unistdio/u8-u8-asprintf.c: New file.
58306         * lib/unistdio/u8-u8-snprintf.c: New file.
58307         * lib/unistdio/u8-u8-sprintf.c: New file.
58308         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58309         * lib/unistdio/u8-u8-vasprintf.c: New file.
58310         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58311         * lib/unistdio/u8-u8-vsprintf.c: New file.
58312         * lib/unistdio/u16-asnprintf.c: New file.
58313         * lib/unistdio/u16-asprintf.c: New file.
58314         * lib/unistdio/u16-printf-parse.c: New file.
58315         * lib/unistdio/u16-snprintf.c: New file.
58316         * lib/unistdio/u16-sprintf.c: New file.
58317         * lib/unistdio/u16-vasnprintf.c: New file.
58318         * lib/unistdio/u16-vasprintf.c: New file.
58319         * lib/unistdio/u16-vsnprintf.c: New file.
58320         * lib/unistdio/u16-vsprintf.c: New file.
58321         * lib/unistdio/u16-u16-asnprintf.c: New file.
58322         * lib/unistdio/u16-u16-asprintf.c: New file.
58323         * lib/unistdio/u16-u16-snprintf.c: New file.
58324         * lib/unistdio/u16-u16-sprintf.c: New file.
58325         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58326         * lib/unistdio/u16-u16-vasprintf.c: New file.
58327         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58328         * lib/unistdio/u16-u16-vsprintf.c: New file.
58329         * lib/unistdio/u32-asnprintf.c: New file.
58330         * lib/unistdio/u32-asprintf.c: New file.
58331         * lib/unistdio/u32-printf-parse.c: New file.
58332         * lib/unistdio/u32-snprintf.c: New file.
58333         * lib/unistdio/u32-sprintf.c: New file.
58334         * lib/unistdio/u32-vasnprintf.c: New file.
58335         * lib/unistdio/u32-vasprintf.c: New file.
58336         * lib/unistdio/u32-vsnprintf.c: New file.
58337         * lib/unistdio/u32-vsprintf.c: New file.
58338         * lib/unistdio/u32-u32-asnprintf.c: New file.
58339         * lib/unistdio/u32-u32-asprintf.c: New file.
58340         * lib/unistdio/u32-u32-snprintf.c: New file.
58341         * lib/unistdio/u32-u32-sprintf.c: New file.
58342         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58343         * lib/unistdio/u32-u32-vasprintf.c: New file.
58344         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58345         * lib/unistdio/u32-u32-vsprintf.c: New file.
58346         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58347         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58348         * tests/unistdio/test-ulc-printf1.h: New file.
58349         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58350         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58351         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58352         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58353         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58354         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58355         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58356         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58357         * tests/unistdio/test-u8-asnprintf1.c: New file.
58358         * tests/unistdio/test-u8-asnprintf1.h: New file.
58359         * tests/unistdio/test-u8-printf1.h: New file.
58360         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58361         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58362         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58363         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58364         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58365         * tests/unistdio/test-u8-vasprintf1.c: New file.
58366         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58367         * tests/unistdio/test-u8-vsprintf1.c: New file.
58368         * tests/unistdio/test-u16-asnprintf1.c: New file.
58369         * tests/unistdio/test-u16-asnprintf1.h: New file.
58370         * tests/unistdio/test-u16-printf1.h: New file.
58371         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58372         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58373         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58374         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58375         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58376         * tests/unistdio/test-u16-vasprintf1.c: New file.
58377         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58378         * tests/unistdio/test-u16-vsprintf1.c: New file.
58379         * tests/unistdio/test-u32-asnprintf1.c: New file.
58380         * tests/unistdio/test-u32-asnprintf1.h: New file.
58381         * tests/unistdio/test-u32-printf1.h: New file.
58382         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58383         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58384         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58385         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58386         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58387         * tests/unistdio/test-u32-vasprintf1.c: New file.
58388         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58389         * tests/unistdio/test-u32-vsprintf1.c: New file.
58390         * modules/unistdio/base: New file.
58391         * modules/unistdio/u-printf-args: New file.
58392         * modules/unistdio/ulc-asnprintf: New file.
58393         * modules/unistdio/ulc-asprintf: New file.
58394         * modules/unistdio/ulc-fprintf: New file.
58395         * modules/unistdio/ulc-printf-parse: New file.
58396         * modules/unistdio/ulc-snprintf: New file.
58397         * modules/unistdio/ulc-sprintf: New file.
58398         * modules/unistdio/ulc-vasnprintf: New file.
58399         * modules/unistdio/ulc-vasprintf: New file.
58400         * modules/unistdio/ulc-vfprintf: New file.
58401         * modules/unistdio/ulc-vsnprintf: New file.
58402         * modules/unistdio/ulc-vsprintf: New file.
58403         * modules/unistdio/u8-asnprintf: New file.
58404         * modules/unistdio/u8-asprintf: New file.
58405         * modules/unistdio/u8-printf-parse: New file.
58406         * modules/unistdio/u8-snprintf: New file.
58407         * modules/unistdio/u8-sprintf: New file.
58408         * modules/unistdio/u8-vasnprintf: New file.
58409         * modules/unistdio/u8-vasprintf: New file.
58410         * modules/unistdio/u8-vsnprintf: New file.
58411         * modules/unistdio/u8-vsprintf: New file.
58412         * modules/unistdio/u8-u8-asnprintf: New file.
58413         * modules/unistdio/u8-u8-asprintf: New file.
58414         * modules/unistdio/u8-u8-snprintf: New file.
58415         * modules/unistdio/u8-u8-sprintf: New file.
58416         * modules/unistdio/u8-u8-vasnprintf: New file.
58417         * modules/unistdio/u8-u8-vasprintf: New file.
58418         * modules/unistdio/u8-u8-vsnprintf: New file.
58419         * modules/unistdio/u8-u8-vsprintf: New file.
58420         * modules/unistdio/u16-asnprintf: New file.
58421         * modules/unistdio/u16-asprintf: New file.
58422         * modules/unistdio/u16-printf-parse: New file.
58423         * modules/unistdio/u16-snprintf: New file.
58424         * modules/unistdio/u16-sprintf: New file.
58425         * modules/unistdio/u16-vasnprintf: New file.
58426         * modules/unistdio/u16-vasprintf: New file.
58427         * modules/unistdio/u16-vsnprintf: New file.
58428         * modules/unistdio/u16-vsprintf: New file.
58429         * modules/unistdio/u16-u16-asnprintf: New file.
58430         * modules/unistdio/u16-u16-asprintf: New file.
58431         * modules/unistdio/u16-u16-snprintf: New file.
58432         * modules/unistdio/u16-u16-sprintf: New file.
58433         * modules/unistdio/u16-u16-vasnprintf: New file.
58434         * modules/unistdio/u16-u16-vasprintf: New file.
58435         * modules/unistdio/u16-u16-vsnprintf: New file.
58436         * modules/unistdio/u16-u16-vsprintf: New file.
58437         * modules/unistdio/u32-asnprintf: New file.
58438         * modules/unistdio/u32-asprintf: New file.
58439         * modules/unistdio/u32-printf-parse: New file.
58440         * modules/unistdio/u32-snprintf: New file.
58441         * modules/unistdio/u32-sprintf: New file.
58442         * modules/unistdio/u32-vasnprintf: New file.
58443         * modules/unistdio/u32-vasprintf: New file.
58444         * modules/unistdio/u32-vsnprintf: New file.
58445         * modules/unistdio/u32-vsprintf: New file.
58446         * modules/unistdio/u32-u32-asnprintf: New file.
58447         * modules/unistdio/u32-u32-asprintf: New file.
58448         * modules/unistdio/u32-u32-snprintf: New file.
58449         * modules/unistdio/u32-u32-sprintf: New file.
58450         * modules/unistdio/u32-u32-vasnprintf: New file.
58451         * modules/unistdio/u32-u32-vasprintf: New file.
58452         * modules/unistdio/u32-u32-vsnprintf: New file.
58453         * modules/unistdio/u32-u32-vsprintf: New file.
58454         * modules/unistdio/ulc-asnprintf-tests: New file.
58455         * modules/unistdio/ulc-vasnprintf-tests: New file.
58456         * modules/unistdio/ulc-vasprintf-tests: New file.
58457         * modules/unistdio/ulc-vsnprintf-tests: New file.
58458         * modules/unistdio/ulc-vsprintf-tests: New file.
58459         * modules/unistdio/u8-asnprintf-tests: New file.
58460         * modules/unistdio/u8-vasnprintf-tests: New file.
58461         * modules/unistdio/u8-vasprintf-tests: New file.
58462         * modules/unistdio/u8-vsnprintf-tests: New file.
58463         * modules/unistdio/u8-vsprintf-tests: New file.
58464         * modules/unistdio/u16-asnprintf-tests: New file.
58465         * modules/unistdio/u16-vasnprintf-tests: New file.
58466         * modules/unistdio/u16-vasprintf-tests: New file.
58467         * modules/unistdio/u16-vsnprintf-tests: New file.
58468         * modules/unistdio/u16-vsprintf-tests: New file.
58469         * modules/unistdio/u32-asnprintf-tests: New file.
58470         * modules/unistdio/u32-vasnprintf-tests: New file.
58471         * modules/unistdio/u32-vasprintf-tests: New file.
58472         * modules/unistdio/u32-vsnprintf-tests: New file.
58473         * modules/unistdio/u32-vsprintf-tests: New file.
58474         * MODULES.html.sh (Unicode string functions): Add the new modules.
58475
58476 2007-07-01  Bruno Haible  <bruno@clisp.org>
58477
58478         * lib/sprintf.c (sprintf): Limit the available length estimation,
58479         to avoid address wraparound.
58480         * lib/vsprintf.c (vsprintf): Likewise.
58481         * modules/sprintf-posix (Dependencies): Add stdint.
58482         * modules/vsprintf-posix (Dependencies): Likewise.
58483
58484 2007-07-01  Bruno Haible  <bruno@clisp.org>
58485
58486         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58487         Windows PATH as well. Conservative double-quoting. Comments.
58488
58489 2007-07-01  Bruno Haible  <bruno@clisp.org>
58490             Eric Blake  <ebb9@byu.net>
58491             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58492
58493         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58494         empty components in $PATH, denoting '.'.
58495
58496 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58497
58498         * gnulib-tool: Fix indentation.
58499         (func_create_megatestdir): Likewise.
58500         Report by Bruno Haible.
58501
58502 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58503
58504         Sync from Automake.
58505         * build-aux/gnupload: Fix shell portability issues with for loops.
58506         Report by Karl Berry.
58507
58508 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58509
58510         * build-aux/maint.mk (POURL): Use translationproject.org.
58511
58512 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58513             Bruno Haible  <bruno@clisp.org>
58514
58515         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58516         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58517         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58518         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58519         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58520
58521 2007-06-27  Bruno Haible  <bruno@clisp.org>
58522
58523         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58524         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58525
58526 2007-06-26  Karl Berry  <karl@gnu.org>
58527
58528         * MODULES.html.sh: remove xreadlink-with-size.
58529
58530 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58531
58532         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58533         method that I hope also handles the double-include problem noted
58534         by Bruno Haible in
58535         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58536
58537 2007-06-23  Bruno Haible  <bruno@clisp.org>
58538
58539         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58540         Don't let the 'mostlyclean' target fail if the last subdirectory could
58541         not be removed.
58542         Reported by Karl Berry.
58543
58544 2007-06-23  Bruno Haible  <bruno@clisp.org>
58545
58546         * gnulib-tool (echo): Add a speedier workaround for ksh.
58547         * tests/test-echo.sh: Likewise.
58548
58549 2007-06-23  Bruno Haible  <bruno@clisp.org>
58550
58551         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58552         * tests/test-echo.sh: Likewise.
58553
58554 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58555
58556         * gnulib-tool (IFS): Initialize early, so we don't set it to
58557         empty later.
58558         (self_abspathname): Rewrite algorithm to set it, reindent.
58559         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58560         (func_create_megatestdir): Merge some sed scripts.
58561
58562 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58563
58564         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58565         exposed by Sun Studio 11 cc on Solaris 8.
58566
58567 2007-06-22  Bruno Haible  <bruno@clisp.org>
58568
58569         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58570         backslashes.
58571         * tests/test-echo.sh: New file.
58572
58573 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58574
58575         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58576         simplify `sed_replace_build_aux' scripts, they are portable but
58577         echoing them with `echo' is not.
58578         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58579
58580 2007-06-21  Karl Berry  <karl@gnu.org>
58581
58582         * config/srclist.txt: guess we can't handle the licenses via
58583         srclist at the moment.
58584
58585 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58586
58587         * MODULES.html.sh: Add include_next.
58588         * modules/include_next: New file.
58589
58590 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58591
58592         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58593         INCLUDE_NEXT.
58594         (gl_CHECK_NEXT_HEADERS): New macro.
58595         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58596         the obsolescent gl_ABSOLUTE_HEADER.
58597         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58598         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58599         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58600         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58601         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58602         * m4/math_h.m4 (gl_MATH_H): Likewise.
58603         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58604         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58605         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58606         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58607         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58608         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58609         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58610         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58611         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58612         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58613         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58614         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58615         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58616         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58617         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58618         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58619         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58620         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58621         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58622         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58623         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58624         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58625         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58626         * lib/float_.h: Likewise.
58627         * lib/inttypes_.h: Likewise.
58628         * lib/math_.h: Likewise.
58629         * lib/search_.h: Likewise.
58630         * lib/signal_.h: Likewise.
58631         * lib/stdint_.h: Likewise.
58632         * lib/stdio_.h: Likewise.
58633         * lib/stdlib_.h: Likewise.
58634         * lib/string_.h: Likewise.
58635         * lib/sys_stat_.h: Likewise.
58636         * lib/sys_time_.h: Likewise.
58637         * lib/time_.h: Likewise.
58638         * lib/unistd_.h: Likewise.
58639         * lib/wchar_.h: Likewise.
58640         * lib/wctype_.h: Likewise.
58641         * lib/dirent_.h: Likewise.
58642         * lib/iconv_.h: Likewise.
58643         * lib/locale_.h: Likewise.
58644         * lib/netinet_in_.h: Likewise.
58645         * lib/sys_select_.h: Likewise.
58646         * lib/sys_socket_.h: Likewise.
58647         * lib/sysexits_.h: Likewise.
58648         * modules/fcntl (Depends-on): Depend on include_next, not
58649         absolute_header.
58650         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58651         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58652         * modules/fchdir: Likewise.
58653         * modules/float: Likewise.
58654         * modules/iconv_open: Likewise.
58655         * modules/inttypes: Likewise.
58656         * modules/locale: Likewise.
58657         * modules/math: Likewise.
58658         * modules/netinet_in: Likewise.
58659         * modules/search: Likewise.
58660         * modules/signal: Likewise.
58661         * modules/stdint: Likewise.
58662         * modules/stdio: Likewise.
58663         * modules/stdlib: Likewise.
58664         * modules/string: Likewise.
58665         * modules/sys_select: Likewise.
58666         * modules/sys_socket: Likewise.
58667         * modules/sys_stat: Likewise.
58668         * modules/sys_time: Likewise.
58669         * modules/sysexits: Likewise.
58670         * modules/time: Likewise.
58671         * modules/unistd: Likewise.
58672         * modules/wchar: Likewise.
58673         * modules/wctype: Likewise.
58674         * modules/sys_stat: Change maintainer to "all".
58675         * modules/unistd: Likewise.
58676
58677 2007-06-20  Karl Berry  <karl@gnu.org>
58678
58679         * config/srclist.txt: track www changes in license files.
58680
58681 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58682
58683         * build-aux/bootstrap: Remove stray dot.
58684         Make sure build_aux settings are honored when linking
58685         gnulib_extra_files.
58686
58687 2007-06-19  Eric Blake  <ebb9@byu.net>
58688
58689         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58690         Allow compilation on cygwin.
58691
58692 2007-06-19  Jim Meyering  <jim@meyering.net>
58693
58694         xreadlink-with-size: Remove module.  No longer used.
58695         Ex-callers now use xreadlink or mreadlink-with-size.
58696         * modules/xreadlink-with-size: Remove module.
58697         * lib/xreadlink-with-size.c: Remove file.
58698         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58699         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58700         just before the function definition *is* accurate.
58701
58702         Eliminate one way canonicalize_filename_mode could exit.
58703         * lib/canonicalize.c (canonicalize_filename_mode):
58704         Use mreadlink_with_size, not xreadlink_with_size.
58705
58706 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58707
58708         Detect porting problems to FreeBSD/arm, which has time_t wider than
58709         long int.  Original problem reported for GNU diff by Xin Li in
58710         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58711         * modules/getdate (Depends-on): Add intprops, verify.
58712         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58713         is an integer type no wider than long int.
58714
58715 2007-06-18  Jim Meyering  <jim@meyering.net>
58716
58717         New module: mreadlink-with-size.
58718         * MODULES.html.sh: Add mreadlink-with-size.
58719         * modules/mreadlink-with-size: New module
58720         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58721         not xreadlink-with-size.
58722         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58723
58724 2007-06-16  Bruno Haible  <bruno@clisp.org>
58725
58726         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58727         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58728         Reported by Gary V. Vaughan <gary@gnu.org>.
58729
58730 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         Revamp lchown so that it lives in unistd.h where it belongs.
58733         * lib/lchown.h: Remove.
58734         * lib/dirchownmod.c: Don't include lib/lchown.h.
58735         * lib/fchownat.c: Likewise.
58736         * lib/openat.c: Likewise.
58737         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58738         does not follow symlinks.
58739         (EOPNOTSUPP): Define if not defined.
58740         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58741         is defined to 0.
58742         (lchown): New decl.
58743         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58744         Do not check for lchown decl.
58745         Set REPLACE_LCHOWN.
58746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58747         REPLACE_LCHOWN.
58748         * modules/chown: Make it clear it follows symlinks.
58749         * modules/lchown: Make it clear it doesn't follow symlinks.
58750         (Files): Remove lib/lchown.h
58751         (Depends-on): Add unistd.
58752         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58753         (Include): Include <unistd.h>, not "lchown.h".
58754         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58755         REPLACE_LCHOWN.
58756
58757 2007-06-15  Jim Meyering  <jim@meyering.net>
58758
58759         Change license (GPL to LGPL) of fsusage and dependents.
58760         * modules/fsusage (License): Change to LGPL.
58761         * modules/full-read (License): Likewise.
58762         * modules/full-write (License): Likewise.
58763         * modules/safe-read (License): Likewise.
58764         * modules/safe-write (License): Likewise.
58765
58766 2007-06-14  Ben Pfaff  <blp@gnu.org>
58767
58768         Missing part of allocsa -> malloca transition.
58769         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58770         gl_MALLOCA.
58771
58772 2007-06-12  Bruno Haible  <bruno@clisp.org>
58773
58774         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58775         to ia64, x86_64, i386.
58776         Reported by Eric Blake.
58777
58778 2007-06-12  Bruno Haible  <bruno@clisp.org>
58779
58780         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58781         cross-compiling to x86_64.
58782
58783 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58784
58785         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58786         glitch reported by Ralf Wildenhues in
58787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58788
58789         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58790         Vin Shelton.
58791
58792 2007-06-11  Bruno Haible  <bruno@clisp.org>
58793
58794         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58795         replacement string.
58796         Reported by Eric Blake.
58797
58798 2007-06-10  Bruno Haible  <bruno@clisp.org>
58799
58800         Prepare vasnprintf code for use with Unicode strings.
58801         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58802         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58803         TYPE_U32_STRING.
58804         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58805         a_u32_string variants.
58806         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58807         * lib/printf-args.c: Don't include config.h and the specification
58808         header if PRINTF_FETCHARGS is already defined.
58809         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58810         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58811         TYPE_U16_STRING, TYPE_U32_STRING.
58812         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58813         u16_directive, u16_directives, u32_directive, u32_directives): New
58814         types.
58815         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58816         New declarations.
58817         * lib/printf-parse.c: Don't include config.h and the specification
58818         header if PRINTF_PARSE is already defined. Eliminate the set of
58819         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58820         them now. Include c-ctype.h.
58821         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58822         directive and CHAR_T_ONLY_ASCII.
58823         * lib/vasnprintf.c: Don't include config.h and the specification header
58824         if VASNPRINTF is already defined.
58825         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58826         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58827         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58828         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58829         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58830         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58831         code accordingly.
58832         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58833         pad_ourselves also in this case, with the 'c' and 's' directives, and
58834         with a different notion of "width".
58835         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58836
58837 2007-06-10  Bruno Haible  <bruno@clisp.org>
58838
58839         * modules/unistr/u32-mbsnlen: New file.
58840         * lib/unistr/u32-mbsnlen.c: New file.
58841
58842         * modules/unistr/u16-mbsnlen: New file.
58843         * lib/unistr/u16-mbsnlen.c: New file.
58844
58845         * modules/unistr/u8-mbsnlen: New file.
58846         * lib/unistr/u8-mbsnlen.c: New file.
58847
58848         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58849         declarations.
58850
58851 2007-06-10  Bruno Haible  <bruno@clisp.org>
58852
58853         * lib/string_.h (mbsnlen): New declaration.
58854         * lib/mbsnlen.c: New file.
58855         * m4/mbsnlen.m4: New file.
58856         * modules/mbsnlen: New file.
58857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58858         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58859         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58860
58861 2007-06-10  Bruno Haible  <bruno@clisp.org>
58862
58863         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58864
58865 2007-06-10  Bruno Haible  <bruno@clisp.org>
58866
58867         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58868         * lib/mbuiter.h: Likewise.
58869
58870 2007-06-10  Bruno Haible  <bruno@clisp.org>
58871
58872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58873         declaration.
58874
58875 2007-06-10  Karl Berry  <karl@gnu.org>
58876
58877         * config/srclist.txt: remove gettext entries, Bruno prefers
58878         to update individually.
58879
58880 2007-06-10  Bruno Haible  <bruno@clisp.org>
58881
58882         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58883         'maxlen'. Ensure only length + width bytes are allocated, not
58884         length + 1 + width.
58885
58886 2007-06-09  Bruno Haible  <bruno@clisp.org>
58887
58888         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58889         (CHAR_T): Remove macro.
58890         (VASNPRINTF): Update.
58891
58892 2007-06-09  Bruno Haible  <bruno@clisp.org>
58893
58894         * MODULES.html.sh (Unicode string functions): Add the new modules.
58895
58896         * modules/uniconv/u32-conv-to-enc: New file.
58897         * lib/uniconv/u32-conv-to-enc.c: New file.
58898         * modules/uniconv/u32-conv-to-enc-tests: New file.
58899         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58900
58901         * modules/uniconv/u16-conv-to-enc: New file.
58902         * lib/uniconv/u16-conv-to-enc.c: New file.
58903         * lib/uniconv/u-conv-to-enc.h: New file.
58904         * modules/uniconv/u16-conv-to-enc-tests: New file.
58905         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58906
58907         * modules/uniconv/u8-conv-to-enc: New file.
58908         * lib/uniconv/u8-conv-to-enc.c: New file.
58909         * modules/uniconv/u8-conv-to-enc-tests: New file.
58910         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58911
58912         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58913         u32_conv_to_encoding): New declarations.
58914
58915 2007-06-09  Bruno Haible  <bruno@clisp.org>
58916
58917         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58918
58919 2007-06-09  Bruno Haible  <bruno@clisp.org>
58920
58921         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58922         * modules/malloca: Renamed from modules/allocsa, updated.
58923         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58924         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58925         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58926         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58927         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58928         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58929         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58930         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58931         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58932         * modules/c-strcasestr (Depends-on): Update.
58933         * lib/c-strcasestr.c: Update.
58934         * modules/c-strstr (Depends-on): Update.
58935         * lib/c-strstr.c: Update.
58936         * modules/canonicalize-lgpl (Depends-on): Update.
58937         * lib/canonicalize-lgpl.c: Update.
58938         * modules/clean-temp (Depends-on): Update.
58939         * lib/clean-temp.c: Update.
58940         * modules/csharpcomp (Depends-on): Update.
58941         * lib/csharpcomp.c: Update.
58942         * modules/csharpexec (Depends-on): Update.
58943         * lib/csharpexec.c: Update.
58944         * modules/javacomp (Depends-on): Update.
58945         * lib/javacomp.c: Update.
58946         * modules/javaexec (Depends-on): Update.
58947         * lib/javaexec.c: Update.
58948         * modules/mbscasestr (Depends-on): Update.
58949         * lib/mbscasestr.c: Update.
58950         * modules/mbsstr (Depends-on): Update.
58951         * lib/mbsstr.c: Update.
58952         * modules/setenv (Depends-on): Update.
58953         * lib/setenv.c: Update.
58954         * modules/strcasestr (Depends-on): Update.
58955         * lib/strcasestr.c: Update.
58956         * modules/striconveha (Depends-on): Update.
58957         * lib/striconveha.c: Update.
58958         * modules/relocatable-prog-wrapper (Files): Update.
58959         * lib/relocwrapper.c: Update.
58960         * build-aux/install-reloc: Update.
58961         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58962
58963 2007-06-08  Bruno Haible  <bruno@clisp.org>
58964
58965         Port to uClibc.
58966         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58967         * lib/fpurge.c (fpurge): Likewise.
58968         * lib/freading.c (freading): Likewise.
58969         * lib/fseeko.c (rpl_fseeko): Likewise.
58970         * lib/fseterr.c (fseterr): Likewise.
58971         * lib/fwriting.c (fwriting): Likewise.
58972         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58973
58974 2007-06-08  Bruno Haible  <bruno@clisp.org>
58975
58976         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58977         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58978         * modules/gettext (Files): Add m4/intlmacosx.m4.
58979
58980 2007-06-07  Bruno Haible  <bruno@clisp.org>
58981
58982         * modules/localename-tests: New file.
58983         * tests/test-localename.c: New file.
58984
58985         New module 'localename'.
58986         * lib/localename.h: New file.
58987         * lib/localename.c: New file, from GNU gettext.
58988         * m4/localename.m4: New file.
58989         * modules/localename: New file.
58990
58991 2007-06-07  Bruno Haible  <bruno@clisp.org>
58992
58993         Work around the lack of <wchar.h> on some builds of uClibc.
58994         * doc/headers/wchar.texi: Update.
58995         * lib/wchar_.h: Include <wchar.h> only if it exists.
58996         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58997         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58998         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58999         doesn't exist.
59000         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59001         * modules/mbfile (Depends-on): Add wchar.
59002         * modules/mbiter (Depends-on): Likewise.
59003         * modules/mbuiter (Depends-on): Likewise.
59004         Reported by Simon Josefsson.
59005
59006 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59007
59008         Work around problem reported by Steven M. Schweda in
59009         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59010         Tru64 5.1B with the Compaq compiler environment installed declares
59011         an 'isblank' function but does not define it in the C library.
59012         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59013         * lib/regex_internal.h (isblank): Likewise.
59014         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59015         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59016
59017 2007-06-05  Bruno Haible  <bruno@clisp.org>
59018
59019         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59020         ia64.
59021         * modules/printf-safe: New file.
59022         * modules/fprintf-posix (Depends-on): Add printf-safe.
59023         * modules/printf-posix (Depends-on): Likewise.
59024         * modules/snprintf-posix (Depends-on): Likewise.
59025         * modules/sprintf-posix (Depends-on): Likewise.
59026         * modules/vasnprintf-posix (Depends-on): Likewise.
59027         * modules/vasprintf-posix (Depends-on): Likewise.
59028         * modules/vfprintf-posix (Depends-on): Likewise.
59029         * modules/vprintf-posix (Depends-on): Likewise.
59030         * modules/vsnprintf-posix (Depends-on): Likewise.
59031         * modules/vsprintf-posix (Depends-on): Likewise.
59032         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59033         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59034         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59035         "no" on i386, x86_64, ia64.
59036         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59037         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59038         on i386, x86_64, ia64.
59039         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59040         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59041         on i386, x86_64, ia64.
59042         * tests/test-vasnprintf-posix.c: Include float.h.
59043         (LDBL80_WORDS): New macro.
59044         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59045         on i386, x86_64, ia64.
59046         * tests/test-vasprintf-posix.c: Include float.h.
59047         (LDBL80_WORDS): New macro.
59048         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59049         on i386, x86_64, ia64.
59050         * tests/test-snprintf-posix.c: Include float.h.
59051         * tests/test-sprintf-posix.c: Likewise.
59052         * tests/test-vsnprintf-posix.c: Likewise.
59053         * tests/test-vsprintf-posix.c: Likewise.
59054
59055 2007-06-05  Bruno Haible  <bruno@clisp.org>
59056
59057         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59058         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59059         non-IEEE numbers on i386, x86_64, ia64.
59060         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59061         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59062         * tests/test-isnanl.h: Include float.h.
59063         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59064
59065 2007-06-05  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59068         also the %a / %A. Handle the %a / %A code before this extra handling.
59069
59070 2007-06-05  Bruno Haible  <bruno@clisp.org>
59071
59072         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59073         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59074
59075 2007-06-05  Bruno Haible  <bruno@clisp.org>
59076
59077         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59078         typo in variable name.
59079
59080 2007-06-05  Eric Blake  <ebb9@byu.net>
59081
59082         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59083         Reported by Simon Josefsson.
59084
59085 2007-06-04  Bruno Haible  <bruno@clisp.org>
59086
59087         Avoid test failures on some PowerPC platforms.
59088         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59089         Define differently for PowerPC.
59090         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59091         Reported by Gary V. Vaughan <gary@gnu.org>.
59092
59093 2007-06-02  Bruno Haible  <bruno@clisp.org>
59094
59095         Fix test-stdint failure on FreeBSD/ia64.
59096         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59097         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59098         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59099         * doc/headers/stdint.texi: Update.
59100
59101 2007-06-01  Bruno Haible  <bruno@clisp.org>
59102
59103         * tests/test-binary-io.c (main): Pass a third argument to open().
59104         Reported by Gary V. Vaughan <gary@gnu.org>.
59105
59106 2007-06-01  Bruno Haible  <bruno@clisp.org>
59107
59108         * doc/functions/frexpl.texi: Update for mingw.
59109
59110 2007-06-01  Bruno Haible  <bruno@clisp.org>
59111
59112         * tests/test-lseek.c (main): Disable test of errno for invalid third
59113         argument.
59114         * doc/functions/lseek.texi: Update.
59115         Reported by Gary V. Vaughan <gary@gnu.org>.
59116
59117 2007-05-28  Bruno Haible  <bruno@clisp.org>
59118
59119         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59120
59121 2007-05-31  Eric Blake  <ebb9@byu.net>
59122
59123         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59124         cross compiling.
59125
59126 2007-05-30  Eric Blake  <ebb9@byu.net>
59127         and Bruno Haible  <bruno@clisp.org>
59128
59129         Work around mingw test failures exposed by m4-1.4.9b.
59130         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59131         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59132         moment.
59133
59134 2007-05-30  Bruno Haible  <bruno@clisp.org>
59135
59136         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59137         assuming that they are closed. Needed on HP-UX 11.
59138
59139 2007-05-29  Bruno Haible  <bruno@clisp.org>
59140
59141         Fix a problem with #include_next.
59142         * lib/dirent_.h: Split the double-inclusion guard.
59143         * lib/fcntl_.h: Likewise.
59144         * lib/float_.h: Likewise.
59145         * lib/iconv_.h: Likewise.
59146         * lib/inttypes_.h: Likewise.
59147         * lib/locale_.h: Likewise.
59148         * lib/math_.h: Likewise.
59149         * lib/netinet_in_.h: Likewise.
59150         * lib/search_.h: Likewise.
59151         * lib/signal_.h: Likewise.
59152         * lib/stdint_.h: Likewise.
59153         * lib/stdio_.h: Likewise.
59154         * lib/stdlib_.h: Likewise.
59155         * lib/string_.h: Likewise.
59156         * lib/sys_select_.h: Likewise.
59157         * lib/sys_socket_.h: Likewise.
59158         * lib/sys_stat_.h: Likewise.
59159         * lib/sys_time_.h: Likewise.
59160         * lib/sysexits_.h: Likewise.
59161         * lib/time_.h: Likewise.
59162         * lib/unistd_.h: Likewise.
59163         * lib/wchar_.h: Likewise.
59164         * lib/wctype_.h: Likewise.
59165
59166 2007-05-29  Bruno Haible  <bruno@clisp.org>
59167
59168         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59169         for the moment.
59170
59171 2007-05-29  Bruno Haible  <bruno@clisp.org>
59172
59173         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59174         invocation.
59175         Reported by Eric Blake.
59176
59177 2007-05-29  Bruno Haible  <bruno@clisp.org>
59178
59179         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59180         compiling case.
59181
59182 2007-05-29  Eric Blake  <ebb9@byu.net>
59183             Bruno Haible  <bruno@clisp.org>
59184
59185         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59186         cross compiles.
59187
59188 2007-05-28  Eric Blake  <ebb9@byu.net>
59189
59190         * modules/closein-tests (test_closein_LDADD): Support test on
59191         cygwin with libtool.
59192
59193 2007-05-28  Bruno Haible  <bruno@clisp.org>
59194
59195         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59196         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59197         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59198         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59199         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59200         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59201         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59202         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59203         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59204
59205 2007-05-28  Eric Blake  <ebb9@byu.net>
59206
59207         Unconditionally include <config.h> in unit tests.
59208         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59209         * tests/test-allocsa.c, tests/test-arcfour.c,
59210         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59211         tests/test-array_list.c, tests/test-array_oset.c,
59212         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59213         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59214         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59215         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59216         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59217         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59218         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59219         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59220         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59221         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59222         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59223         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59224         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59225         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59226         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59227         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59228         test-md5.c, test-memmem.c, test-printf-posix.c,
59229         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59230         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59231         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59232         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59233         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59234         test-vasnprintf-posix2.c, test-vasnprintf.c,
59235         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59236         test-vfprintf-posix.c, test-vprintf-posix.c,
59237         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59238         test-xvasprintf.c: Likewise.
59239
59240 2007-05-28  Bruno Haible  <bruno@clisp.org>
59241
59242         * gnulib-tool (func_import): Remember the --with-tests command-line
59243         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59244         Reported by Eric Blake.
59245
59246 2007-05-28  Bruno Haible  <bruno@clisp.org>
59247
59248         * modules/ftell-tests: New file.
59249         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59250         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59251
59252         * lib/ftell.c: New file.
59253         * modules/ftell: New file.
59254         * m4/ftell.m4: New file.
59255         * doc/functions/ftell.texi: Update.
59256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59257         REPLACE_FTELL.
59258         * lib/stdio_.h (rpl_ftell): New declaration.
59259         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59260         REPLACE_FTELL.
59261
59262 2007-05-28  Eric Blake  <ebb9@byu.net>
59263
59264         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59265
59266 2007-05-28  Bruno Haible  <bruno@clisp.org>
59267
59268         * modules/fseek-tests: New file.
59269         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59270         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59271
59272         * lib/fseek.c: New file.
59273         * modules/fseek: New file.
59274         * m4/fseek.m4: New file.
59275         * doc/functions/fseek.texi: Update.
59276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59277         REPLACE_FSEEK.
59278         * lib/stdio_.h (rpl_fseek): New declaration.
59279         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59280         REPLACE_FSEEK.
59281
59282 2007-05-28  Bruno Haible  <bruno@clisp.org>
59283
59284         * lib/stdio_.h (fflush): More comments.
59285
59286 2007-05-28  Bruno Haible  <bruno@clisp.org>
59287
59288         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59289         runtime test.
59290
59291 2007-05-28  Eric Blake  <ebb9@byu.net>
59292
59293         Improve lseek module.
59294         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59295         * lib/unistd_.h (lseek): Scale back link warning message.
59296         * tests/test-lseek.c: Beef up test.
59297         * tests/test-lseek.sh: Exercise more facets of lseek.
59298         Reported by Bruno Haible.
59299
59300 2007-05-28  Bruno Haible  <bruno@clisp.org>
59301
59302         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59303         to define.
59304
59305 2007-05-27  Bruno Haible  <bruno@clisp.org>
59306
59307         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59308
59309 2007-05-27  Bruno Haible  <bruno@clisp.org>
59310
59311         * modules/openmp: New file.
59312         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59313         Noah Misch.
59314
59315 2007-05-26  Bruno Haible  <bruno@clisp.org>
59316
59317         * modules/chdir-long (Depends-on): Add fchdir.
59318         * modules/chdir-safer (Depends-on): Likewise.
59319         * modules/fts (Depends-on): Likewise.
59320         * modules/fts-lgpl (Depends-on): Likewise.
59321         * modules/openat (Depends-on): Likewise.
59322         * modules/savewd (Depends-on): Likewise.
59323
59324 2007-05-24  Eric Blake  <ebb9@byu.net>
59325
59326         Fix lseek on mingw.
59327         * modules/lseek: New module.
59328         * m4/lseek.m4: New file.
59329         * lib/lseek.c: New file.
59330         * modules/lseek-tests: New file.
59331         * tests/test-lseek.c: New file.
59332         * tests/test-lseek.sh: New file.
59333         * MODULES.html.sh: Document lseek module.
59334         * modules/fflush (Depends-on): Add lseek, fseeko.
59335         * modules/fseeko (Depends-on): Likewise.
59336         * modules/ftello (Depends-on): Likewise.
59337         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59338         broken.
59339         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59340         broken.
59341         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59342         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59343         * lib/ftello.c (rpl_ftello): Likewise.
59344         * tests/test-fseeko.c (main): Test this.
59345         * tests/test-fseeko.sh: Likewise.
59346         * tests/test-ftello.c (main): Likewise.
59347         * tests/test-ftello.sh: Likewise.
59348         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59349         implies replacing fseek.
59350         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59351         HAVE_FTELLO.
59352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59353         * modules/unistd (Makefile.am): Likewise.
59354         * lib/unistd_.h (lseek): Declare a replacement.
59355         * doc/functions/lseek.texi (lseek): Document this fix.
59356         * doc/functions/fseek.texi (fseek): Likewise.
59357         * doc/functions/ftell.texi (ftell): Likewise.
59358
59359 2007-05-24  Bruno Haible  <bruno@clisp.org>
59360
59361         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59362         in the printed representation of a NaN.
59363         * tests/test-vasprintf-posix.c (test_function): Likewise.
59364         * tests/test-snprintf-posix.h (test_function): Likewise.
59365         * tests/test-sprintf-posix.h (test_function): Likewise.
59366         Reported by Eric Blake.
59367
59368 2007-05-23  Eric Blake  <ebb9@byu.net>
59369
59370         Fix fseeko/ftello on cygwin 1.5.24.
59371         * doc/functions/fseeko.texi (fseeko): Document the fix.
59372         * doc/functions/ftello.texi (ftello): Document the fix.
59373         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59374         * doc/functions/stdout.text (stdout): New file.
59375         * doc/functions/stderr.text (stderr): New file.
59376         * doc/gnulib.texi (Function Substitutes): Use new files.
59377         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59378         prior to 1.7.0.
59379         * tests/test-ftello.c (main): Likewise for ftello.
59380         * tests/test-fseeko.sh: New file.
59381         * tests/test-ftello.sh: New file.
59382         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59383         with seekable stdin.
59384         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59385         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59386         (gl_REPLACE_FSEEKO): New macro.
59387         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59388         * modules/fseeko (Files): Distribute fseeko.c.
59389         * modules/ftello (Files): Distribute ftello.c.
59390         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59391         mode.
59392         * lib/ftello.c (rpl_ftello): New file.
59393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59394         fseeko, ftello.
59395         (gl_STDIN_LARGE_OFFSET): New macro.
59396         * modules/stdio (Makefile.am): Perform the replacement.
59397         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59398
59399 2007-05-23  Bruno Haible  <bruno@clisp.org>
59400
59401         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59402         GNULIB_POSIXCHECK is defined.
59403
59404 2007-05-21  Bruno Haible  <bruno@clisp.org>
59405
59406         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59407         Check also the output for NaN arguments. When cross-compiling, guess
59408         no on IRIX.
59409         * lib/vasnprintf.c: Update comments.
59410         * tests/test-vasnprintf-posix.c (strisnan): New function.
59411         (test_function): Use it.
59412         * tests/test-vasprintf-posix.c (strisnan): New function.
59413         (test_function): Use it.
59414         * tests/test-snprintf-posix.h (strisnan): New function.
59415         (test_function): Use it.
59416         * tests/test-sprintf-posix.h (strisnan): New function.
59417         (test_function): Use it.
59418         Reported by Eric Blake.
59419
59420 2007-05-20  Bruno Haible  <bruno@clisp.org>
59421
59422         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59423         numbers that fails on BeOS.
59424         * doc/functions/frexpl.texi: Update.
59425
59426 2007-05-20  Jim Meyering  <jim@meyering.net>
59427
59428         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59429         forced upon us by glibc-2.6.
59430
59431 2007-05-20  Bruno Haible  <bruno@clisp.org>
59432
59433         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59434         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59435         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59436         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59437         NEED_PRINTF_INFINITE.
59438         (is_infinitel): New function.
59439         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59441         gl_PREREQ_VASNPRINTF_INFINITE.
59442         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59443         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59444         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59445         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59446         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59447         gl_PREREQ_VASNPRINTF_INFINITE.
59448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59450         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59451         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59452         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59453         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59454         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59455         * doc/functions/fprintf.texi: Update.
59456         * doc/functions/printf.texi: Update.
59457         * doc/functions/snprintf.texi: Update.
59458         * doc/functions/sprintf.texi: Update.
59459         * doc/functions/vfprintf.texi: Update.
59460         * doc/functions/vprintf.texi: Update.
59461         * doc/functions/vsnprintf.texi: Update.
59462         * doc/functions/vsprintf.texi: Update.
59463
59464 2007-05-20  Bruno Haible  <bruno@clisp.org>
59465
59466         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59467         was not found in libc.
59468         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59469
59470 2007-05-20  Bruno Haible  <bruno@clisp.org>
59471
59472         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59473         printed as "-nan" instead of "nan".
59474         * tests/test-vasprintf-posix.c (test_function): Likewise.
59475         * tests/test-snprintf-posix.h (test_function): Likewise.
59476         * tests/test-sprintf-posix.h (test_function): Likewise.
59477         Needed for HP-UX 11.
59478
59479 2007-05-20  Jim Meyering  <jim@meyering.net>
59480
59481         Fix buggy test for the fchownat-deref bug.
59482         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59483         symlink required for the run-test.  Without it, this test would
59484         always declare that fchownat doesn't work, and client code would
59485         unnecessarily use the replacement function with fixed libc.
59486         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59487         Reported by Greg Schafer.
59488
59489 2007-05-19  Bruno Haible  <bruno@clisp.org>
59490
59491         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59492         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59493         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59494         Needed for IRIX 6.5 and Solaris 2.5.1.
59495
59496 2007-05-19  Bruno Haible  <bruno@clisp.org>
59497
59498         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59499         (test_function): Skip tests involving -0.0 on platforms where
59500         -0.0 = 0.0.
59501         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59502         (test_function): Skip tests involving -0.0 on platforms where
59503         -0.0 = 0.0.
59504         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59505         (test_function): Skip tests involving -0.0 on platforms where
59506         -0.0 = 0.0.
59507         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59508         (test_function): Skip tests involving -0.0 on platforms where
59509         -0.0 = 0.0.
59510         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59511         tests.
59512         * tests/test-printf-posix.h (test_function): Likewise.
59513         * tests/test-printf-posix.output: Remove all -0.0 related results.
59514         Needed for IRIX 6.5.
59515
59516 2007-05-19  Bruno Haible  <bruno@clisp.org>
59517
59518         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59519         printed as "nan0x7fffffff" instead of "nan".
59520         * tests/test-vasprintf-posix.c (test_function): Likewise.
59521         * tests/test-snprintf-posix.h (test_function): Likewise.
59522         * tests/test-sprintf-posix.h (test_function): Likewise.
59523         * tests/test-fprintf-posix.h (NaN): Remove macro.
59524         (test_function): Remove all NaN related tests.
59525         * tests/test-printf-posix.h (NaN): Remove macro.
59526         (test_function): Remove all NaN related tests.
59527         * tests/test-printf-posix.output: Remove all NaN related results.
59528         Needed for IRIX 6.5.
59529
59530 2007-05-19  Bruno Haible  <bruno@clisp.org>
59531
59532         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59533         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59534
59535 2007-05-19  Bruno Haible  <bruno@clisp.org>
59536
59537         * lib/float_.h: New file.
59538         * m4/float_h.m4: New file.
59539         * modules/float: New file.
59540         * modules/isnanl (Dependencies): Add float.
59541         * modules/isnanl-nolibm (Dependencies): Likewise.
59542         * modules/mathl (Dependencies): Likewise.
59543         * modules/printf-frexpl (Dependencies): Likewise.
59544         * modules/signbit (Dependencies): Likewise.
59545         * modules/vasnprintf (Dependencies): Likewise.
59546         * doc/headers/float.texi: Update.
59547
59548 2007-05-19  Jim Meyering  <jim@meyering.net>
59549
59550         * lib/utimens.c (gl_futimens): Rename from futimens,
59551         now that glibc-2.6 declares futimens.
59552         * lib/utimens.h: Likewise.
59553
59554 2007-05-19  Bruno Haible  <bruno@clisp.org>
59555
59556         Avoid test failures on mingw.
59557         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59558         * tests/test-printf-posix.sh: Likewise.
59559         * tests/test-vfprintf-posix.sh: Likewise.
59560         * tests/test-vprintf-posix.sh: Likewise.
59561
59562 2007-05-19  Bruno Haible  <bruno@clisp.org>
59563
59564         Fix *printf result for NaN, Inf, -0.0 on mingw.
59565         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59566         * lib/vasnprintf.c: Include math.h and isnan.h.
59567         (is_infinite_or_zero): New function.
59568         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59569         values in the %f, %F, %e, %E, %g, %G directives.
59570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59571         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59572         gl_PRINTF_INFINITE and test its result. Invoke
59573         gl_PREREQ_VASNPRINTF_INFINITE.
59574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59575         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59579         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59580         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59581         * doc/functions/fprintf.texi: Update.
59582         * doc/functions/printf.texi: Update.
59583         * doc/functions/snprintf.texi: Update.
59584         * doc/functions/sprintf.texi: Update.
59585         * doc/functions/vfprintf.texi: Update.
59586         * doc/functions/vprintf.texi: Update.
59587         * doc/functions/vsnprintf.texi: Update.
59588         * doc/functions/vsprintf.texi: Update.
59589
59590 2007-05-19  Bruno Haible  <bruno@clisp.org>
59591
59592         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59593         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59594         Instead of multiplying with 10^k, set extra_zeroes to k.
59595         (scale10_round_long_double): Remove function.
59596
59597 2007-05-18  Bruno Haible  <bruno@clisp.org>
59598
59599         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59600         introduced on 2007-05-06.
59601
59602 2007-05-18  Bruno Haible  <bruno@clisp.org>
59603
59604         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59605         %g directives.
59606         * tests/test-vasprintf-posix.c (test_function): Likewise.
59607         * tests/test-snprintf-posix.h (test_function): Likewise.
59608         * tests/test-sprintf-posix.h (test_function): Likewise.
59609
59610 2007-05-18  Bruno Haible  <bruno@clisp.org>
59611
59612         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59613         (strmatch): New function.
59614         (test_function): Test the %f directive on numbers of various exponents.
59615         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59616         (strmatch): New function.
59617         (test_function): Test the %f directive on numbers of various exponents.
59618         * tests/test-snprintf-posix.h (strmatch): New function.
59619         (test_function): Test the %f directive on numbers of various exponents.
59620         * tests/test-sprintf-posix.h (strmatch): New function.
59621         (test_function): Test the %f directive on numbers of various exponents.
59622         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59623         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59624         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59625         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59626
59627 2007-05-18  Bruno Haible  <bruno@clisp.org>
59628
59629         Add support for 'long double' number output.
59630         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59631         * lib/vasnprintf.c: Include math.h and float+.h.
59632         (mp_limb_t): New type.
59633         (GMP_LIMB_BITS): New macro.
59634         (mp_twolimb_t): New type.
59635         (GMP_TWOLIMB_BITS): New macro.
59636         (mpn_t): New type.
59637         (multiply, divide, convert_to_decimal, decode_long_double,
59638         scale10_round_long_double, scale10_round_decimal_long_double,
59639         floorlog10l): New functions.
59640         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59641         for the %f, %F, %e, %E, %g, %G directives.
59642         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59643         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59644         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59645         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59646         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59647         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59648         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59649         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59650         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59651         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59652         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59653         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59654         * modules/snprintf-posix (Depends-on): Likewise.
59655         * modules/sprintf-posix (Depends-on): Likewise.
59656         * modules/vasnprintf-posix (Depends-on): Likewise.
59657         * modules/vasprintf-posix (Depends-on): Likewise.
59658         * modules/vfprintf-posix (Depends-on): Likewise.
59659         * modules/vsnprintf-posix (Depends-on): Likewise.
59660         * modules/vsprintf-posix (Depends-on): Likewise.
59661         * modules/vasnprintf (Files): Add lib/float+.h.
59662         * doc/functions/fprintf.texi: Update.
59663         * doc/functions/printf.texi: Update.
59664         * doc/functions/snprintf.texi: Update.
59665         * doc/functions/sprintf.texi: Update.
59666         * doc/functions/vfprintf.texi: Update.
59667         * doc/functions/vprintf.texi: Update.
59668         * doc/functions/vsnprintf.texi: Update.
59669         * doc/functions/vsprintf.texi: Update.
59670
59671 2007-05-18  Bruno Haible  <bruno@clisp.org>
59672
59673         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59674
59675 2007-05-18  Bruno Haible  <bruno@clisp.org>
59676
59677         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59678         for printing 64-bit integers. Needed for mingw.
59679
59680 2007-05-18  Bruno Haible  <bruno@clisp.org>
59681
59682         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59683         gl_FUNC_FREXPL_WORKS.
59684         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59685
59686 2007-05-18  Bruno Haible  <bruno@clisp.org>
59687
59688         * modules/frexpl-nolibm-tests: New file.
59689
59690         * modules/frexpl-nolibm: New file.
59691         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59692
59693 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59694
59695         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59696         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59697         GCC 4.2, which otherwise issues a lot of warnings.
59698         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59699         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59700         Likewise.
59701         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59702         * modules/iconv_open (iconv.h): Likewise.
59703         * modules/locale (locale.h): Likewise.
59704         * modules/netinet_in (netinet/in.h): Likewise.
59705         * modules/sys_select (sys_select.h): Likewise.
59706         * modules/sys_socket (sys/socket.h): Likewise.
59707         * modules/sys_stat (sys/stat.h): Likewise.
59708         * modules/sysexits (sysexits.h): Likewise.
59709         * modules/unistd (unistd.h): Likewise.
59710
59711 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59712
59713         * modules/closein-tests (Makefile.am): Distribute
59714         `test-closein.sh'.
59715
59716 2007-05-17  Bruno Haible  <bruno@clisp.org>
59717
59718         * tests/test-printf-posix.output: Renamed from
59719         tests/test-fprintf-posix.out.
59720         * modules/fprintf-posix-tests: Update.
59721         * modules/printf-posix-tests: Update.
59722         * modules/vfprintf-posix-tests: Update.
59723         * modules/vprintf-posix-tests: Update.
59724         * tests/test-fprintf-posix.sh: Update.
59725         * tests/test-printf-posix.sh: Update.
59726         * tests/test-vfprintf-posix.sh: Update.
59727         * tests/test-vprintf-posix.sh: Update.
59728         Reported by Ralf Wildenhues.
59729
59730 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59731
59732         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59733         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59734         GCC 4.2, which otherwise issues a lot of warnings.
59735         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59736         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59737         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59738         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59739         it should no longer be needed.
59740         * lib/string_.h: Likewise.
59741         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59742         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59743         * modules/inttypes (inttypes.h): Likewise.
59744         * modules/math (math.h): Likewise.
59745         * modules/search (search.h): Likewise.
59746         * modules/signal (signal.h): Likewise.
59747         * modules/stdint (stdint.h): Likewise.
59748         * modules/stdio (stdio.h): Likewise.
59749         * modules/stdlib (stdlib.h): Likewise.
59750         * modules/string (string.h): Likewise.
59751         * modules/sys_time (sys/time.h): Likewise.
59752         * modules/time (time.h): Likewise.
59753         * modules/wchar (wchar.h): Likewise.
59754         * modules/wctype (wtype.h): Likewise.
59755
59756 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59757
59758         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59759
59760 2007-05-13  Bruno Haible  <bruno@clisp.org>
59761
59762         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59763         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59764         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59765         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59766         (gl_PREREQ_STRTOK_R): Don't require it here.
59767
59768 2007-05-13  Bruno Haible  <bruno@clisp.org>
59769
59770         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59771         when used in C++ mode.
59772
59773 2007-05-12  Bruno Haible  <bruno@clisp.org>
59774
59775         * lib/linebuffer.h: Tweak doc.
59776         * lib/linebuffer.c: Likewise.
59777
59778 2007-05-12  James Youngman  <jay@gnu.org>
59779
59780         * lib/linebuffer.c (readlinebuffer_delim): New function,
59781         like readlinebuffer, but use a caller-specified delimiter.
59782         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59783         as the delimiter.
59784         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59785
59786 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59787
59788         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59789         * modules/openat (Files): Remove openat-die.c.
59790         (Depends-on): Add openat-die.
59791         * modules/openat-die: New module.
59792
59793 2007-05-06  Bruno Haible  <bruno@clisp.org>
59794
59795         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59796         Update with info about Cygwin.
59797         * doc/functions/fprintf.texi: Update.
59798         * doc/functions/printf.texi: Update.
59799         * doc/functions/snprintf.texi: Update.
59800         * doc/functions/sprintf.texi: Update.
59801         * doc/functions/vfprintf.texi: Update.
59802         * doc/functions/vprintf.texi: Update.
59803         * doc/functions/vsnprintf.texi: Update.
59804         * doc/functions/vsprintf.texi: Update.
59805         Reported by Eric Blake.
59806
59807 2007-05-06  Bruno Haible  <bruno@clisp.org>
59808
59809         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59810         padding ourselves for the floating-point directives.
59811         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59813         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59814         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59815         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59816         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59817         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59818         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59819         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59820         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59821         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59822         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59823         * tests/test-snprintf-posix.h (test_function): Also check the width
59824         and some flags in the %f directive.
59825         * tests/test-sprintf-posix.h (test_function): Likewise.
59826         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59827         * tests/test-vasprintf-posix.c (test_function): Likewise.
59828         * doc/functions/fprintf.texi: Update.
59829         * doc/functions/printf.texi: Update.
59830         * doc/functions/snprintf.texi: Update.
59831         * doc/functions/sprintf.texi: Update.
59832         * doc/functions/vfprintf.texi: Update.
59833         * doc/functions/vprintf.texi: Update.
59834         * doc/functions/vsnprintf.texi: Update.
59835         * doc/functions/vsprintf.texi: Update.
59836
59837 2007-05-06  Bruno Haible  <bruno@clisp.org>
59838
59839         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59840         pass the ' flag character to sprintf or snprintf.
59841         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59843         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59844         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59845         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59847         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59852         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59853         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59854         flag.
59855         * tests/test-sprintf-posix.h (test_function): Likewise.
59856         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59857         * tests/test-vasprintf-posix.c (test_function): Likewise.
59858         * doc/functions/fprintf.texi: Update.
59859         * doc/functions/printf.texi: Update.
59860         * doc/functions/snprintf.texi: Update.
59861         * doc/functions/sprintf.texi: Update.
59862         * doc/functions/vfprintf.texi: Update.
59863         * doc/functions/vprintf.texi: Update.
59864         * doc/functions/vsnprintf.texi: Update.
59865         * doc/functions/vsprintf.texi: Update.
59866
59867 2007-05-01  Bruno Haible  <bruno@clisp.org>
59868
59869         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59870
59871 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59872
59873         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59874         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59875
59876 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59877
59878         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59879         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59881
59882 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59883
59884         * lib/argp-help.c (struct hol_entry): New member `ord'.
59885         (HOL_ENTRY_PTRCMP): Use ord for comparison
59886         (hol_sort): Initialize ord.
59887
59888 2007-05-01  Bruno Haible  <bruno@clisp.org>
59889
59890         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59891         Reported by Eric Blake.
59892         * doc/gnulib.texi (Function Substitutes): Update.
59893
59894 2007-05-01  Bruno Haible  <bruno@clisp.org>
59895
59896         * doc/functions.texi: Remove file, now redundant through
59897         doc/functions/*.texi.
59898
59899 2007-05-01  Bruno Haible  <bruno@clisp.org>
59900
59901         * modules/argp (Depends-on): Add sleep.
59902
59903 2007-05-01  Bruno Haible  <bruno@clisp.org>
59904
59905         * modules/sleep-tests: New file.
59906         * tests/test-sleep.c: New file.
59907
59908         * modules/sleep: New file.
59909         * lib/sleep.c: New file.
59910         * m4/sleep.m4: New file.
59911         * lib/unistd_.h (sleep): New declaration.
59912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59913         HAVE_SLEEP.
59914         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59915         * doc/functions/sleep.texi: Document the sleep module.
59916
59917 2007-05-01  Bruno Haible  <bruno@clisp.org>
59918
59919         * lib/sigprocmask.h: Remove file.
59920         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59921         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59922         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59923         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59924         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59925         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59926         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59927         HAVE_SIGSET_T as a shell variable.
59928         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59929         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59930         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59931         (Depends-on): Add signal. Remove verify.
59932         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59933         (Include): Mention <signal.h> instead of sigprocmask.h.
59934         * NEWS: Mention the change.
59935         * lib/fatal-signal.c: Don't include sigprocmask.h.
59936
59937 2007-05-01  Bruno Haible  <bruno@clisp.org>
59938
59939         * modules/signal: New file.
59940         * lib/signal_.h: New file.
59941         * m4/signal_h.m4: New file.
59942
59943 2007-05-01  Bruno Haible  <bruno@clisp.org>
59944
59945         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59946         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59947         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59948         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59949
59950 2007-05-01  Bruno Haible  <bruno@clisp.org>
59951
59952         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59953         configure time.
59954         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59955         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59956         * modules/sys_stat (Makefile.am): Substitute their values into
59957         sys/stat.h.
59958
59959 2007-05-01  Bruno Haible  <bruno@clisp.org>
59960
59961         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59962         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59963         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59964
59965 2007-05-01  Bruno Haible  <bruno@clisp.org>
59966
59967         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59968         'assert' module here.
59969
59970 2007-05-01  Bruno Haible  <bruno@clisp.org>
59971
59972         * doc/functions/*.texi: New files.
59973         * doc/functions/google-ranking.txt: New file.
59974         * doc/gnulib.texi (Function Substitutes): New chapter.
59975         (ctime, inet_ntoa): Remove sections.
59976         * doc/ctime.texi: Remove file.
59977         * doc/inet_ntoa.texi: Remove file.
59978         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59979         dependencies.
59980         (%.info): New rule, specifying a --reference-limit.
59981
59982 2007-05-01  Bruno Haible  <bruno@clisp.org>
59983
59984         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59985
59986 2007-05-01  Bruno Haible  <bruno@clisp.org>
59987
59988         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59989         the portability of 'mkdir' to mingw systems.
59990
59991 2007-05-01  Bruno Haible  <bruno@clisp.org>
59992
59993         * doc/headers/google-ranking.txt: New file.
59994
59995 2007-04-30  Eric Blake  <ebb9@byu.net>
59996
59997         Prefer fseeko to fseek.
59998         * modules/getpass (Depends-on): Add fseeko.
59999         * lib/getpass.c (getpass): Use fseeko, not fseek.
60000
60001 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60002
60003         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60004         assumes the sorting is stable, while most qsort implementations
60005         are not.  Use argument addresses to ensure they never compare as
60006         equal.
60007
60008         * tests/test-argp-2.sh (usage-indent test): Fix output
60009         (func_compare): Restore diff options
60010         * tests/test-argp.c: Restore #include "progname.h"
60011
60012 2007-04-29  Bruno Haible  <bruno@clisp.org>
60013
60014         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60015         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60016         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60018         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60019         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60020         (TESTS, check_PROGRAMS): Add test-snprintf.
60021         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60022         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60023         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60024         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60025         assertions that fail on HP-UX, OSF/1, or IRIX.
60026         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60027
60028 2007-04-29  Bruno Haible  <bruno@clisp.org>
60029
60030         * MODULES.html.sh (posix_functions): Remove 'contents'.
60031
60032 2007-04-29  Karl Berry  <karl@gnu.org>
60033
60034         * config/srclist.txt (gendocs_template_min): new entry.
60035
60036 2007-04-29  Bruno Haible  <bruno@clisp.org>
60037
60038         Work around fpurge bug on BSD systems.
60039         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60040         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60041         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60042         fpurge to rpl_fpurge if the system already has this function.
60043         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60044         the case where the system already has this function. Correct invariants
60045         on BSD systems.
60046         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60047         BSD systems.
60048
60049 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60050
60051         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60052         proposed by Sven Verdoolaege.
60053
60054         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60055         options.
60056         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60057         (usage and help tests): Update
60058
60059 2007-04-29  Bruno Haible  <bruno@clisp.org>
60060
60061         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60062         Print more information in case of failure. Disable a test on BeOS.
60063
60064 2007-04-29  Bruno Haible  <bruno@clisp.org>
60065
60066         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60067         This helps debugging on systems on which no gdb is available.
60068
60069 2007-04-29  Bruno Haible  <bruno@clisp.org>
60070
60071         * lib/freading.h: Improve comments.
60072         * lib/fwriting.h: Likewise.
60073         * tests/test-freading.c (main): Don't check freading immediately after
60074         repositioning. Needed for glibc.
60075
60076 2007-04-29  Bruno Haible  <bruno@clisp.org>
60077
60078         * lib/freading.c (freading): Trivial simplification.
60079
60080 2007-04-28  Bruno Haible  <bruno@clisp.org>
60081
60082         * tests/test-fwriting.c (main): Also test the interaction between
60083         fflush and fwriting.
60084         * modules/fwriting-tests (Depends-on): Add fflush.
60085
60086         * tests/test-freading.c (main): Also test the interaction between
60087         fflush and freading.
60088         * modules/freading-tests (Depends-on): Add fflush.
60089
60090 2007-04-28  Bruno Haible  <bruno@clisp.org>
60091
60092         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60093         fseeko and ftello.
60094         Suggested by Eric Blake.
60095
60096 2007-04-28  Jim Meyering  <jim@meyering.net>
60097
60098         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60099         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60100         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60101
60102 2007-04-27  Eric Blake  <ebb9@byu.net>
60103
60104         * doc/headers/assert.texi (assert.h): Document assert module use.
60105
60106 2007-04-27  Bruno Haible  <bruno@clisp.org>
60107
60108         * doc/headers/*.texi: New files.
60109         * doc/gnulib.texi (Header File Substitutes): New chapter.
60110         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60111         dependencies.
60112         (standards.info ,standards.html, standards.dvi): Update dependencies.
60113         (mostlyclean, clean): New targets.
60114
60115 2007-04-27  Bruno Haible  <bruno@clisp.org>
60116
60117         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60118         * modules/sysexits (Files, Makefile.am): Update.
60119
60120         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60121         * modules/sys_socket (Files, Makefile.am): Update.
60122
60123         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60124         * modules/sys_stat (Files, Makefile.am): Update.
60125
60126 2007-04-27  Eric Blake  <ebb9@byu.net>
60127
60128         * lib/freading.h: Improve comments.
60129         * lib/fwriting.h: Likewise.
60130         * lib/fflush.c: Likewise.
60131
60132         Fix closein for mingw.
60133         * modules/closein-tests: Add tests for closein.
60134         * tests/test-closein.c: New file.
60135         * tests/test-closein.sh: Likewise.
60136         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60137         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60138
60139 2007-04-27  Bruno Haible  <bruno@clisp.org>
60140
60141         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60142         version is < 6.
60143         * lib/math_.h [__DECC]: Likewise.
60144         * lib/stdio_.h [__DECC]: Likewise.
60145         * lib/stdlib_.h [__DECC]: Likewise.
60146         * lib/string_.h [__DECC]: Likewise.
60147         * lib/time_.h [__DECC]: Likewise.
60148         * lib/wchar_.h [__DECC]: Likewise.
60149         * lib/wctype_.h [__DECC]: Likewise.
60150
60151 2007-04-27  Bruno Haible  <bruno@clisp.org>
60152
60153         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60154
60155 2007-04-27  Bruno Haible  <bruno@clisp.org>
60156
60157         * lib/fflush.c: Add comments.
60158         * modules/fpurge-tests (Depends-on): Add fflush.
60159         * modules/freadable-tests (Depends-on): Likewise.
60160         * modules/fwritable-tests (Depends-on): Likewise.
60161
60162 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60163
60164         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60165         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60166         Report by Bruno Haible <bruno@clisp.org>.
60167
60168 2007-04-26  Eric Blake  <ebb9@byu.net>
60169
60170         Fix fflush on mingw.
60171         * modules/fflush (Depends-on): Add freading.
60172         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60173         but unread data.
60174
60175 2007-04-26  Eric Blake  <ebb9@byu.net>
60176         and Bruno Haible  <bruno@clisp.org>
60177
60178         Implement freading and fwriting.
60179         * lib/freading.c: New file.
60180         * lib/freading.h: Likewise.
60181         * m4/freading.m4: Likewise.
60182         * modules/freading: Likewise.
60183         * modules/freading-tests: Likewise.
60184         * tests/test-freading.c: Likewise.
60185         * lib/fwriting.c: New file.
60186         * lib/fwriting.h: Likewise.
60187         * m4/fwriting.m4: Likewise.
60188         * modules/fwriting: Likewise.
60189         * modules/fwriting-tests: Likewise.
60190         * tests/test-fwriting.c: Likewise.
60191         * MODULES.html.sh (File stream based Input/Output): Mention them.
60192
60193 2007-04-26  Bruno Haible  <bruno@clisp.org>
60194
60195         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60196         'long' when we assume it.
60197         Suggested by Eric Blake.
60198
60199 2007-04-26  Bruno Haible  <bruno@clisp.org>
60200
60201         Ensure fseeko, ftello are declared on glibc systems.
60202         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60203         * modules/fseeko (configure.ac-early): Likewise.
60204         * modules/ftello (configure.ac-early): Likewise.
60205         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60206         AC_FUNC_FSEEKO for this.
60207         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60208         (gl_CHECK_FSEEKO): Remove macro.
60209
60210 2007-04-26  Bruno Haible  <bruno@clisp.org>
60211
60212         * tests/test-fflush.c (main): Also check the ftell result after
60213         fflush and fseek/fseeko.
60214         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60215         file descriptor position cache in the stream.
60216         * lib/fseeko.c (rpl_fseeko): Likewise.
60217
60218 2007-04-26  Bruno Haible  <bruno@clisp.org>
60219
60220         * modules/fflush-tests (Depends-on): Add fseeko.
60221
60222 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60223             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60224
60225         * lib/argz_.h: ensure error_t definition is obtained in same
60226         mechanism system argz.h would have.
60227         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60228         argz facilities are known bad.  Err on the side of caution if
60229         cross-compiling.
60230
60231 2007-04-25  Eric Blake  <ebb9@byu.net>
60232
60233         * lib/fpurge.c (includes): Use stdlib.h for free.
60234         * tests/test-fflush.c (main): Also test fflush-fseeko.
60235
60236 2007-04-25  Bruno Haible  <bruno@clisp.org>
60237
60238         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60239         * lib/fseeko.c: New file.
60240         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60241         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60242         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60243         gl_FUNC_FSEEKO.
60244         (gl_FUNC_FSEEKO): Invoke it.
60245         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60246         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60247         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60248
60249 2007-04-25  Bruno Haible  <bruno@clisp.org>
60250
60251         * modules/fflush (Depends-on): Add ftello.
60252
60253 2007-04-25  Bruno Haible  <bruno@clisp.org>
60254
60255         * modules/ftello-tests: New file.
60256         * tests/test-ftello.c: New file.
60257
60258         * modules/ftello: New file.
60259         * m4/ftello.m4: New file.
60260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60261         HAVE_FTELLO.
60262         * lib/stdio_.h (ftello): New declaration.
60263         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60264         HAVE_FTELLO.
60265
60266 2007-04-25  Bruno Haible  <bruno@clisp.org>
60267
60268         * modules/fseeko-tests: New file.
60269         * tests/test-fseeko.c: New file.
60270
60271         * modules/fseeko: New file.
60272         * m4/fseeko.m4: New file.
60273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60274         HAVE_FSEEKO.
60275         * lib/stdio_.h (fseeko): New declaration.
60276         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60277         HAVE_FSEEKO.
60278
60279 2007-04-25  Bruno Haible  <bruno@clisp.org>
60280
60281         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60282
60283 2007-04-25  Bruno Haible  <bruno@clisp.org>
60284
60285         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60286         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60287         * tests/test-unistd.c: Likewise.
60288         * tests/test-fcntl.c: Likewise.
60289
60290 2007-04-23  Eric Blake  <ebb9@byu.net>
60291
60292         * lib/fflush.c: Fix missing include.
60293         Reported by Bruno Haible.
60294
60295 2007-04-23  Bruno Haible  <bruno@clisp.org>
60296
60297         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60298         Reported by Eric Blake.
60299
60300 2007-04-23  Bruno Haible  <bruno@clisp.org>
60301
60302         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60303
60304 2007-04-23  Bruno Haible  <bruno@clisp.org>
60305
60306         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60307
60308 2007-04-23  Bruno Haible  <bruno@clisp.org>
60309
60310         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60311         Needed on HP-UX 11.
60312
60313 2007-04-16  Eric Blake  <ebb9@byu.net>
60314
60315         Make fflush rely on fpurge.
60316         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60317         open coding all variants.
60318         * modules/fflush (Depends-on): Add fpurge and unistd.
60319         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60320         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60321
60322         Fix --with-tests compilation on cygwin.
60323         * modules/argmatch-tests (Makefile.am): List gnulib library first
60324         in LDADD.
60325         * modules/argp-tests (Makefile.am): Likewise.
60326         * modules/array-list-tests (Makefile.am): Likewise.
60327         * modules/array-oset-tests (Makefile.am): Likewise.
60328         * modules/avltree-list-tests (Makefile.am): Likewise.
60329         * modules/avltree-oset-tests (Makefile.am): Likewise.
60330         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60331         * modules/carray-list-tests (Makefile.am): Likewise.
60332         * modules/dirname-tests (Makefile.am): Likewise.
60333         * modules/frexp-tests (Makefile.am): Likewise.
60334         * modules/isnanl-tests (Makefile.am): Likewise.
60335         * modules/linked-list-tests (Makefile.am): Likewise.
60336         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60337         * modules/lock-tests (Makefile.am): Likewise.
60338         * modules/rbtree-list-tests (Makefile.am): Likewise.
60339         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60340         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60341         * modules/tls-tests (Makefile.am): Likewise.
60342         * modules/tsearch-tests (Makefile.am): Likewise.
60343         * modules/xvasprintf-tests (Makefile.am): Likewise.
60344
60345         Fix fpurge for cygwin.
60346         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60347         value.
60348         * modules/fpurge-tests (Depends-on): Clean up trash.
60349
60350 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60351
60352         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60353
60354         * m4/autobuild.m4: Re-indent.
60355
60356 2007-04-13  Bruno Haible  <bruno@clisp.org>
60357
60358         * modules/fpurge-tests: New file.
60359         * tests/test-fpurge.c: New file.
60360
60361         * modules/fpurge: New file.
60362         * lib/fpurge.h: New file.
60363         * lib/fpurge.c: New file.
60364         * m4/fpurge.m4: New file.
60365
60366 2007-04-13  Bruno Haible  <bruno@clisp.org>
60367
60368         * modules/fbufmode-tests: New file.
60369         * tests/test-fbufmode.c: New file.
60370
60371         * modules/fbufmode: New file.
60372         * lib/fbufmode.h: New file.
60373         * lib/fbufmode.c: New file.
60374         * m4/fbufmode.m4: New file.
60375
60376 2007-04-13  Bruno Haible  <bruno@clisp.org>
60377
60378         * modules/fwritable-tests: New file.
60379         * tests/test-fwritable.c: New file.
60380
60381         * modules/fwritable: New file.
60382         * lib/fwritable.h: New file.
60383         * lib/fwritable.c: New file.
60384         * m4/fwritable.m4: New file.
60385
60386 2007-04-13  Bruno Haible  <bruno@clisp.org>
60387
60388         * modules/freadable-tests: New file.
60389         * tests/test-freadable.c: New file.
60390
60391         * modules/freadable: New file.
60392         * lib/freadable.h: New file.
60393         * lib/freadable.c: New file.
60394         * m4/freadable.m4: New file.
60395
60396 2007-04-13  Bruno Haible  <bruno@clisp.org>
60397
60398         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60399         MOSTLYCLEANFILES.
60400
60401 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60402
60403         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60404         gzip bootstrap.conf to avoid dragging in i18n machinery.
60405         (gnulib_tool_option): Use it.
60406
60407 2007-04-13  Bruno Haible  <bruno@clisp.org>
60408
60409         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60410         %F directives.
60411         * tests/test-vasprintf-posix.c (test_function): Likewise.
60412         * tests/test-snprintf-posix.h (test_function): Likewise.
60413         * tests/test-sprintf-posix.h (test_function): Likewise.
60414         * tests/test-fprintf-posix.h (test_function): Likewise.
60415         * tests/test-printf-posix.h (test_function): Likewise.
60416         * tests/test-fprintf-posix.out: Likewise.
60417
60418 2007-04-13  Bruno Haible  <bruno@clisp.org>
60419
60420         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60421         * modules/tls-tests (configure.ac): Likewise.
60422         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60423
60424 2007-04-13  Bruno Haible  <bruno@clisp.org>
60425
60426         * lib/tls.c (glthread_tls_get): Fix return type.
60427         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60428
60429 2007-04-12  Eric Blake  <ebb9@byu.net>
60430
60431         * modules/gettime (Depends-on): Remove gettime.
60432         Reported by Dmitry V. Levin.
60433
60434 2007-04-12  Bruno Haible  <bruno@clisp.org>
60435
60436         * modules/fflush (Include): Mention <stdio.h>.
60437         * modules/strtoimax (Include): Mention <inttypes.h>.
60438         * modules/strtoumax (Include): Likewise.
60439
60440 2007-04-12  Eric Blake  <ebb9@byu.net>
60441
60442         * .cvsignore: New file.
60443         * .gitignore: Likewise.
60444
60445 2007-04-12  Bruno Haible  <bruno@clisp.org>
60446
60447         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60448         not before, since $(LDADD) often contains libgnu.a.
60449         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60450         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60451         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60452         Needed on Cygwin.
60453
60454 2007-04-12  Eric Blake  <ebb9@byu.net>
60455
60456         Work around glibc's failure to flush stdin on fclose.
60457         * lib/closein.c (close_stdin): Flush stdin before closing.
60458
60459         Work around glibc's failure to reset seekable stdin on exit.
60460         * modules/closein: New module.
60461         * lib/closein.c: New file.
60462         * lib/closein.h: Likewise.
60463         * m4/closein.m4: Likewise.
60464         * MODULES.html.sh (File stream based Input/Output): Document it.
60465
60466 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60467
60468         * gnulib-tool: Rename generated 'autobuild' script to
60469         'do-autobuild' in --create-megatestdir output.
60470
60471         * doc/gnulib.texi (Build robot for gnulib): Fix.
60472
60473 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60474
60475         * modules/sysexits (Depends-on): Add absolute-header.
60476
60477 2007-04-12  Eric Blake  <ebb9@byu.net>
60478
60479         No need to preserve errno on success.
60480         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60481         Reported by Bruno Haible.
60482
60483 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60484
60485         * MODULES.html.sh (Support for maintaining and releasing
60486         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60487
60488 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60489
60490         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60491
60492 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60493
60494         * modules/autobuild: New module.
60495
60496         * m4/autobuild.m4: New file.
60497
60498 2007-04-11  Bruno Haible  <bruno@clisp.org>
60499
60500         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60501         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60504         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60505         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60506         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60510         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60513         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60514         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60515         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60517         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60518         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60519         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60520         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60521         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60523         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60524         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60526         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60527         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60528         Reported by Eric Blake.
60529
60530 2007-04-11  Bruno Haible  <bruno@clisp.org>
60531
60532         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60533
60534 2007-04-10  Bruno Haible  <bruno@clisp.org>
60535
60536         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60537         for NaN and Infinity. Needed on FreeBSD 6.1.
60538         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60539         regarding results for "%010a" of Infinity and NaN.
60540         * tests/test-vasprintf-posix.c (test_function): Likewise.
60541         * tests/test-snprintf-posix.h (test_function): Likewise.
60542         * tests/test-sprintf-posix.h (test_function): Likewise.
60543         * tests/test-fprintf-posix.h (test_function): Likewise.
60544         * tests/test-printf-posix.h (test_function): Likewise.
60545         * tests/test-fprintf-posix.out: Likewise.
60546
60547 2007-04-10  Bruno Haible  <bruno@clisp.org>
60548
60549         * modules/locale-tests: New file.
60550         * tests/test-locale.c: New file.
60551
60552         * modules/locale: New file.
60553         * lib/locale_.h: New file.
60554         * m4/locale_h.m4: New file.
60555
60556 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60557             Bruno Haible  <bruno@clisp.org>
60558
60559         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60560         be determined, test for availability of the copysignf, copysign,
60561         copysignl functions.
60562         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60563         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60564         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60565
60566 2007-04-09  Eric Blake  <ebb9@byu.net>
60567
60568         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60569         * modules/stdio (Makefile.am): Support fflush.
60570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60571         * modules/fflush: New file.
60572         * lib/fflush.c: Likewise.
60573         * m4/fflush.m4: Likewise.
60574         * modules/fflush-tests: New test.
60575         * tests/test-fflush.c: Likewise.
60576         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60577
60578 2007-04-06  Bruno Haible  <bruno@clisp.org>
60579
60580         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60581         (VASNPRINTF): Use signbit for faster determination whether to print a
60582         minus sign.
60583         * modules/vasnprintf (Files): Remove lib/float+.h.
60584         * modules/fprintf-posix (Depends-on): Add signbit.
60585         * modules/snprintf-posix (Depends-on): Likewise.
60586         * modules/sprintf-posix (Depends-on): Likewise.
60587         * modules/vasnprintf-posix (Depends-on): Likewise.
60588         * modules/vasprintf-posix (Depends-on): Likewise.
60589         * modules/vfprintf-posix (Depends-on): Likewise.
60590         * modules/vsnprintf-posix (Depends-on): Likewise.
60591         * modules/vsprintf-posix (Depends-on): Likewise.
60592
60593 2007-04-06  Bruno Haible  <bruno@clisp.org>
60594
60595         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60596         * tests/test-frexpl.c (main): Likewise.
60597         * tests/test-ldexpl.c (main): Likewise.
60598         * modules/frexp-tests (Depends-on): Add signbit.
60599         * modules/frexpl-tests (Depdends-on): Likewise.
60600         * modules/ldexpl-tests (Depdends-on): Likewise.
60601
60602 2007-04-06  Bruno Haible  <bruno@clisp.org>
60603
60604         * modules/signbit-tests: New file.
60605         * tests/test-signbit.c: New file.
60606
60607         * modules/signbit: New file.
60608         * lib/signbitf.c: New file.
60609         * lib/signbitd.c: New file.
60610         * lib/signbitl.c: New file.
60611         * m4/signbit.m4: New file.
60612         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60613         (signbit): New macro.
60614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60615         REPLACE_SIGNBIT.
60616         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60617         REPLACE_FREXPL into math.h.
60618
60619 2007-04-06  Bruno Haible  <bruno@clisp.org>
60620
60621         * modules/isnanf-nolibm-tests: New file.
60622         * tests/test-isnanf.c: New file.
60623
60624         * modules/isnanf-nolibm: New file.
60625         * lib/isnanf.h: New file.
60626         * lib/isnanf.c: New file.
60627         * lib/isnan.c: Consider the USE_FLOAT macro.
60628         * m4/isnanf.m4: New file.
60629
60630 2007-04-06  Bruno Haible  <bruno@clisp.org>
60631
60632         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60633         (Link): New section.
60634
60635         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60636
60637 2007-04-06  Bruno Haible  <bruno@clisp.org>
60638
60639         Assume the 'long double' type.
60640         * m4/longdouble.m4: Remove file.
60641         * config/srclist.txt: Don't mention longdouble.m4.
60642         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60643         * lib/float+.h: Likewise.
60644         * lib/frexp.c: Likewise.
60645         * lib/printf-args.h: Likewise.
60646         * lib/printf-args.c: Likewise.
60647         * lib/printf-frexp.c: Likewise.
60648         * lib/printf-parse.c: Likewise.
60649         * lib/vasnprintf.c: Likewise.
60650         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60651         * m4/intl.m4: Likewise.
60652         * m4/isnanl.m4: Likewise.
60653         * m4/printf.m4: Likewise.
60654         * m4/printf-frexpl.m4: Likewise.
60655         * m4/vasnprintf.m4: Likewise.
60656         * modules/allocsa (Files): Remove m4/longdouble.m4.
60657         * modules/gettext (Files): Likewise.
60658         * modules/relocatable-prog-wrapper (Files): Likewise.
60659         * modules/vasnprintf (Files): Likewise.
60660         * modules/isnanl (Files): Likewise.
60661         (Include): Simplify.
60662         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60663         (Include): Simplify.
60664         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60665         (Include): Simplify.
60666         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60667         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60668         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60669         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60670         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60671         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60672         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60673         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60674         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60675         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60676         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60677         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60678         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60679         * tests/test-isnanl.c: Likewise.
60680         * tests/test-snprintf-posix.h: Likewise.
60681         * tests/test-sprintf-posix.h: Likewise.
60682         * tests/test-vasnprintf-posix.c: Likewise.
60683         * tests/test-vasnprintf-posix2.c: Likewise.
60684         * tests/test-vasprintf-posix.c: Likewise.
60685
60686 2007-04-06  Bruno Haible  <bruno@clisp.org>
60687
60688         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60689         * lib/math_.h [__DECC]: Include the overridden include file through
60690         #include_next, outside the double-inclusion guard.
60691         * lib/stdio_.h [__DECC]: Likewise.
60692         * lib/stdlib_.h [__DECC]: Likewise.
60693         * lib/string_.h [__DECC]: Likewise.
60694         * lib/time_.h [__DECC]: Likewise.
60695         * lib/wchar_.h [__DECC]: Likewise.
60696         * lib/wctype_.h [__DECC]: Likewise.
60697         * lib/inttypes_.h [__DECC]: Likewise.
60698         Reported by Albert Chin <china@thewrittenword.com> in
60699         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60700
60701 2007-04-04  Eric Blake  <ebb9@byu.net>
60702
60703         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60704         1.5.x.
60705
60706 2007-04-04  Bruno Haible  <bruno@clisp.org>
60707
60708         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60709         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60710
60711 2007-04-04  Bruno Haible  <bruno@clisp.org>
60712
60713         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60714         results for "%010a" of Infinity and NaN.
60715         * tests/test-vasprintf-posix.c (test_function): Likewise.
60716         * tests/test-snprintf-posix.h (test_function): Likewise.
60717         * tests/test-sprintf-posix.h (test_function): Likewise.
60718         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60719         * tests/test-printf-posix.h (test_function): Likewise.
60720         * tests/test-fprintf-posix.out: Update.
60721         Needed for FreeBSD 6.1.
60722
60723 2007-04-04  Bruno Haible  <bruno@clisp.org>
60724
60725         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60726         directly used by the gnulib modules nor by gnulib-tool.
60727
60728 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60729
60730         * DEPENDENCIES: Give overall description of version dependency
60731         desirability.  Use more-typical names for apps.
60732         Add shell, coreutils, diffutils, grep, tar, gzip.
60733
60734 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60735
60736         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60737
60738 2007-04-04  Karl Berry  <karl@gnu.org>
60739
60740         * MODULES.html.sh (func_module): missing '.
60741
60742 2007-04-03  Bruno Haible  <bruno@clisp.org>
60743
60744         * modules/argmatch-tests (Makefile.am): New variable
60745         test_argmatch_LDADD.
60746         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60747         * modules/array-list-tests (Makefile.am): New variable
60748         test_array_list_LDADD.
60749         * modules/array-oset-tests (Makefile.am): New variable
60750         test_array_oset_LDADD.
60751         * modules/avltree-list-tests (Makefile.am): New variable
60752         test_avltree_list_LDADD.
60753         * modules/avltree-oset-tests (Makefile.am): New variable
60754         test_avltree_oset_LDADD.
60755         * modules/avltreehash-list-tests (Makefile.am): New variable
60756         test_avltreehash_list_LDADD.
60757         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60758         test_canonicalize_lgpl_LDADD.
60759         * modules/carray-list-tests (Makefile.am): New variable
60760         test_carray_list_LDADD.
60761         * modules/dirname-tests (Makefile.am): New variable
60762         test_dirname_LDADD.
60763         * modules/linked-list-tests (Makefile.am): New variable
60764         test_linked_list_LDADD.
60765         * modules/linkedhash-list-tests (Makefile.am): New variable
60766         test_linkedhash_list_LDADD.
60767         * modules/rbtree-list-tests (Makefile.am): New variable
60768         test_rbtree_list_LDADD.
60769         * modules/rbtree-oset-tests (Makefile.am): New variable
60770         test_rbtree_oset_LDADD.
60771         * modules/rbtreehash-list-tests (Makefile.am): New variable
60772         test_rbtreehash_list_LDADD.
60773         * modules/xvasprintf-tests (Makefile.am): New variable
60774         test_xvasprintf_LDADD.
60775         Reported by Eric Blake.
60776
60777 2007-04-03  Eric Blake  <ebb9@byu.net>
60778
60779         * DEPENDENCIES: Weaken m4 requirements.
60780
60781 2007-04-03  Bruno Haible  <bruno@clisp.org>
60782
60783         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60784         * modules/isnanl-tests (configure.ac): Likewise.
60785
60786 2007-04-03  Ben Pfaff  <blp@gnu.org>
60787
60788         * modules/iconv_open: Add $(srcdir)/ to source directory
60789         references in Makefile fragments that call gperf, to fix VPATH
60790         builds.
60791
60792 2007-04-03  Bruno Haible  <bruno@clisp.org>
60793
60794         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60795         * lib/ldexpl.c: Undo last change.
60796
60797 2007-04-03  Bruno Haible  <bruno@clisp.org>
60798
60799         * modules/printf-frexpl (Depends-on): Undo last change.
60800         (Files): Add m4/ldexpl.m4.
60801
60802 2007-04-03  Bruno Haible  <bruno@clisp.org>
60803
60804         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60805         * modules/isnanl (Link): New section.
60806
60807         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60808         * modules/frexp (Link): New section.
60809
60810         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60811         * modules/frexpl (Link): New section.
60812
60813         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60814         * modules/ldexpl (Link): New section.
60815
60816 2007-04-03  Bruno Haible  <bruno@clisp.org>
60817
60818         * modules/TEMPLATE-EXTENDED: New file.
60819         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60820
60821 2007-04-03  Bruno Haible  <bruno@clisp.org>
60822
60823         * DEPENDENCIES: New file.
60824         Suggested by Simon Josefsson.
60825
60826 2007-04-03  Bruno Haible  <bruno@clisp.org>
60827
60828         * doc/gnulib.texi: Escape @.
60829
60830 2007-04-03  James Youngman  <jay@gnu.org>
60831         and Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60834         birthtime on all systems that have birthtime, not just those which
60835         use st_birthtimensec rather than st_birthtim.  Putting zero in
60836         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60837         that the birth time is not available for files on an NFS mount.
60838
60839 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60840
60841         * modules/memxor: Move back from crypto/, suggested by Bruno.
60842         * modules/crypto/hmac-sha1: Fix memxor dependency.
60843
60844         * modules/crypto/gc: Moved from ../.
60845
60846 2007-04-02  Eric Blake  <ebb9@byu.net>
60847
60848         * lib/ldexpl.c (includes): Avoid libm.
60849
60850         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60851
60852 2007-04-02  Bruno Haible  <bruno@clisp.org>
60853
60854         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60855         on IRIX.
60856
60857 2007-04-02  Bruno Haible  <bruno@clisp.org>
60858
60859         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60860         x86 or x86_64 platforms running MacOS X.
60861         Reported by Ryan Schmidt <@ryandesign.com>.
60862
60863 2007-04-02  Bruno Haible  <bruno@clisp.org>
60864
60865         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60866         i386.
60867
60868 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60869
60870         * modules/crypto/arcfour: Moved from ../.
60871         * modules/crypto/arcfour-tests: Moved from ../.
60872         * modules/crypto/arctwo: Moved from ../.
60873         * modules/crypto/arctwo-tests: Moved from ../.
60874         * modules/crypto/des: Moved from ../.
60875         * modules/crypto/des-tests: Moved from ../.
60876         * modules/crypto/gc-arcfour: Moved from ../.
60877         * modules/crypto/gc-arcfour-tests: Moved from ../.
60878         * modules/crypto/gc-arctwo: Moved from ../.
60879         * modules/crypto/gc-arctwo-tests: Moved from ../.
60880         * modules/crypto/gc-des: Moved from ../.
60881         * modules/crypto/gc-des-tests: Moved from ../.
60882         * modules/crypto/gc-hmac-md5: Moved from ../.
60883         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60884         * modules/crypto/gc-hmac-sha1: Moved from ../.
60885         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60886         * modules/crypto/gc-md2: Moved from ../.
60887         * modules/crypto/gc-md2-tests: Moved from ../.
60888         * modules/crypto/gc-md4: Moved from ../.
60889         * modules/crypto/gc-md4-tests: Moved from ../.
60890         * modules/crypto/gc-md5: Moved from ../.
60891         * modules/crypto/gc-md5-tests: Moved from ../.
60892         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60893         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60894         * modules/crypto/gc-random: Moved from ../.
60895         * modules/crypto/gc-rijndael: Moved from ../.
60896         * modules/crypto/gc-rijndael-tests: Moved from ../.
60897         * modules/crypto/gc-sha1: Moved from ../.
60898         * modules/crypto/gc-sha1-tests: Moved from ../.
60899         * modules/crypto/gc-tests: Moved from ../.
60900         * modules/crypto/hmac-md5: Moved from ../.
60901         * modules/crypto/hmac-md5-tests: Moved from ../.
60902         * modules/crypto/hmac-sha1: Moved from ../.
60903         * modules/crypto/hmac-sha1-tests: Moved from ../.
60904         * modules/crypto/md2: Moved from ../.
60905         * modules/crypto/md2-tests: Moved from ../.
60906         * modules/crypto/md4: Moved from ../.
60907         * modules/crypto/md4-tests: Moved from ../.
60908         * modules/crypto/md5: Moved from ../.
60909         * modules/crypto/md5-tests: Moved from ../.
60910         * modules/crypto/memxor: Moved from ../.
60911         * modules/crypto/rijndael: Moved from ../.
60912         * modules/crypto/rijndael-tests: Moved from ../.
60913         * modules/crypto/sha1: Moved from ../.
60914
60915 2007-03-30  James Youngman  <jay@gnu.org>
60916
60917         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60918         rename() to change the ctime of a file (because ctime is unaffected
60919         by rename on jfs2 on AIX 5.1).
60920         (main): Start by doing cleanup, in case a previous run failed leaving
60921         test files behind.
60922
60923 2007-03-31  Bruno Haible  <bruno@clisp.org>
60924
60925         Support old proprietary implementations of iconv.
60926         * modules/iconv_open: New file.
60927         * lib/iconv_.h: New file.
60928         * m4/iconv_h.m4: New file.
60929         * lib/iconv_open.c: New file.
60930         * lib/iconv_open-aix.gperf: New file.
60931         * lib/iconv_open-hpux.gperf: New file.
60932         * lib/iconv_open-irix.gperf: New file.
60933         * lib/iconv_open-osf.gperf: New file.
60934         * m4/iconv_open.m4: New file.
60935         * modules/linebreak (Depends-on): Add iconv_open.
60936         * modules/striconv (Depends-on): Likewise.
60937         * modules/striconveh (Depends-on): Likewise.
60938         * modules/unicodeio (Depends-on): Likewise.
60939         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60940         (iconv_t)(-1).
60941         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60942         conversion if cd is (iconv_t)(-1).
60943         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60944         is not possible.
60945
60946 2007-03-31  Bruno Haible  <bruno@clisp.org>
60947
60948         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60949         work on Solaris either. Protect also second use of "autodetect_jp".
60950
60951 2007-03-31  Bruno Haible  <bruno@clisp.org>
60952
60953         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60954         the function is not present.
60955
60956 2007-03-31  Bruno Haible  <bruno@clisp.org>
60957
60958         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60959         the function is not present.
60960
60961 2007-03-31  Bruno Haible  <bruno@clisp.org>
60962
60963         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60964         a bug in HP-UX iconv_open().
60965
60966 2007-03-31  Bruno Haible  <bruno@clisp.org>
60967
60968         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60969         (Mathematics <math.h>): New section, add fpieee.
60970         (Input/output <stdio.h>): Add fseterr.
60971         (Mathematics <math.h>): New section, add printf-frexp.
60972         (Container data structures): Add sublist.
60973         (Core language properties): Add fpucw, inline.
60974         (Functions for greatest-width integer types <inttypes.h>): Add
60975         imaxabs, imaxdiv, inttypes.
60976         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60977         isnanl-nolibm, ldexp.
60978         (Mathematics <math.h>): New section, add printf-frexpl.
60979         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60980         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60981         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60982         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60983         (Unicode string functions): Add unistr/u*-mbtoucr.
60984         (Java): Add javacomp-script, javaexec-script.
60985         (C#): Add csharpcomp-script, csharpexec-script.
60986         (Support for building libraries and executables): Add havelib,
60987         relocatable-*.
60988         (Support for maintaining and releasing projects): Renamed from
60989         'Support for maintaining and release projects'. Add announce-gen.
60990
60991 2007-03-31  Bruno Haible  <bruno@clisp.org>
60992
60993         * README: Talk primarily about git.
60994         (git and CVS): Renamed from CVS.
60995         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60996         gnulib is available through git.
60997         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60998
60999 2007-03-30  Bruno Haible  <bruno@clisp.org>
61000
61001         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61002         * lib/poll_.h: Likewise.
61003         * lib/stat_.h: Likewise.
61004         * lib/sys_time_.h: Likewise.
61005         * lib/sysexit_.h: Likewise.
61006         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61007         * lib/stdbool_.h: Likewise.
61008         * lib/byteswap_.h: Add double-inclusion guard.
61009
61010 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61011
61012         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61013
61014 2007-03-30  Karl Berry  <karl@gnu.org>
61015
61016         * config/srclist-update: double space after USA in the license
61017         substitution, since that's how it's usually (?) written.
61018
61019 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61020
61021         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61022         reported by Bruno Haible.
61023
61024 2007-03-29  Bruno Haible  <bruno@clisp.org>
61025
61026         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61027         a bug in AIX iconv().
61028
61029 2007-03-29  Bruno Haible  <bruno@clisp.org>
61030
61031         * modules/ldexpl-tests: New file.
61032         * tests/test-ldexpl.c: New file.
61033
61034 2007-03-29  Bruno Haible  <bruno@clisp.org>
61035
61036         * lib/ldexpl.c: Include fpucw.h.
61037         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61038         multiplication.
61039         * modules/ldexpl (Depends-on): Add fpucw.
61040
61041 2007-03-29  Bruno Haible  <bruno@clisp.org>
61042
61043         * modules/ldexpl: New file.
61044         * m4/ldexpl.m4: New file.
61045         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61046         set.
61047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61048         REPLACE_LDEXPL.
61049         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61050         REPLACE_LDEXPL.
61051         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61052         gl_FUNC_LDEXPL_WORKS.
61053         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61054         * modules/mathl (Files): Remove lib/ldexpl.c.
61055         (Depends-on): Add ldexpl.
61056
61057 2007-03-29  Bruno Haible  <bruno@clisp.org>
61058
61059         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61060
61061 2007-03-29  Bruno Haible  <bruno@clisp.org>
61062
61063         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61064         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61065         and possibly also HP-UX.
61066         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61067         work on AIX, IRIX, HP-UX, OSF/1.
61068         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61069         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61070         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61071         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61072         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61073         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61074
61075 2007-03-29  Bruno Haible  <bruno@clisp.org>
61076
61077         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61078
61079 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61080
61081         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61082         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61083
61084 2007-03-29  Eric Blake  <ebb9@byu.net>
61085
61086         * lib/acl-internal.h: Remove redundant include.
61087         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61088         Cygwin when a file is locked.
61089
61090 2007-03-29  Bruno Haible  <bruno@clisp.org>
61091
61092         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61093         file.
61094         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61095
61096 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61097
61098         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61099         try to remove a parent directory if the child couldn't be removed
61100         (except for the first rmdir, which could fail because the child
61101         doesn't exist).  Problem reported by Jeff Blaine in
61102         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61103
61104 2007-03-28  Bruno Haible  <bruno@clisp.org>
61105
61106         * lib/striconveh.c (utf8conv_carefully): New function.
61107         (mem_cd_iconveh_internal): Invoke it.
61108
61109 2007-03-28  Bruno Haible  <bruno@clisp.org>
61110
61111         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61112         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61113         input.
61114         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61115         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61116         unistr/u8-uctomb.
61117
61118 2007-03-28  Bruno Haible  <bruno@clisp.org>
61119
61120         * modules/unistr/u8-mbtoucr: New file.
61121         * lib/unistr/u8-mbtoucr.c: New file.
61122         * modules/unistr/u16-mbtoucr: New file.
61123         * lib/unistr/u16-mbtoucr.c: New file.
61124         * modules/unistr/u16-mbtoucr: New file.
61125         * lib/unistr/u16-mbtoucr.c: New file.
61126         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61127
61128 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61129             Bruno Haible  <bruno@clisp.org>
61130
61131         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61132         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61133         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61134
61135         * m4/stdio_h.m4: Add stubs for vasprintf too.
61136
61137         * modules/stdio: Support vasprintf in sed command.
61138
61139         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61140         vasprintf.h.  Add stdio module indicator.
61141
61142         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61143         vasprintf.h.
61144
61145         * lib/vasprintf.h: File removed.
61146
61147         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61148         * lib/vasprintf.c: Ditto.
61149         * lib/xvasprintf.c: Ditto.
61150         * tests/test-vasprintf-posix.c: Ditto.
61151         * tests/test-vasprintf.c: Ditto.
61152
61153 2007-03-27  Bruno Haible  <bruno@clisp.org>
61154
61155         Make vasnprintf multithread-safe.
61156         * lib/vasnprintf.c (decimal_point_char): New function.
61157         (VASNPRINTF): Use it.
61158         Suggested by Simon Josefsson.
61159
61160 2007-03-27  Eric Blake  <ebb9@byu.net>
61161
61162         Support sub-second birthtime on cygwin.
61163         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61164         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61165         (get_stat_birthtime): Also work with st_birthtim.
61166
61167 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61168
61169         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61170         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61171         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61172         (get_stat_birthtime_ns): Simplify compile-time tests.
61173         (get_stat_birthtime): Change the API to look like
61174         get_stat_mtime etc., except return a negative tv_nsec on error.
61175         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61176         Don't check for "spare" fields.
61177         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61178         or for struct stat.st_birthtime, as these tests aren't used.
61179         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61180
61181 2007-03-27  Bruno Haible  <bruno@clisp.org>
61182
61183         * lib/stat-time.h: Include <sys/stat.h>.
61184
61185 2007-03-27  James Youngman  <jay@gnu.org>
61186
61187         * lib/stat-time.h (get_stat_birthtime): New function for
61188           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61189         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61190           and its variants.
61191         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61192         * modules/stat-time-test: New file.
61193         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61194
61195 2007-03-26  Bruno Haible  <bruno@clisp.org>
61196
61197         Better support of signalling NaNs.
61198         * lib/atanl.c: Include isnanl.h.
61199         (atanl): Perform test for NaN at the beginning of the function and
61200         through a call to isnanl.
61201         * lib/cosl.c: Include isnanl.h.
61202         (cosl): Perform test for NaN at the beginning of the function and
61203         through a call to isnanl.
61204         * lib/ldexpl.c: Include isnanl.h.
61205         (ldexpl): Perform test for NaN through a call to isnanl.
61206         * lib/logl.c: Include isnanl.h.
61207         (logl): Perform test for NaN at the beginning of the function and
61208         through a call to isnanl.
61209         * lib/sinl.c: Include isnanl.h.
61210         (sinl): Perform test for NaN at the beginning of the function and
61211         through a call to isnanl.
61212         * lib/sqrtl.c: Include isnanl.h.
61213         (sqrtl): Perform test for NaN at the beginning of the function and
61214         through a call to isnanl.
61215         * lib/tanl.c: Include isnanl.h.
61216         (tanl): Perform test for NaN at the beginning of the function and
61217         through a call to isnanl.
61218         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61219         * modules/mathl (Depends-on): Add isnanl.
61220
61221 2007-03-26  Eric Blake  <ebb9@byu.net>
61222
61223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61224         regression in logic sense of previous patch.
61225
61226 2007-03-26  Bruno Haible  <bruno@clisp.org>
61227
61228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61229         unportable shell command "if ! ...".
61230         Reported by Ralf Wildenhues.
61231
61232 2007-03-25  Bruno Haible  <bruno@clisp.org>
61233
61234         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61235         <sysexits.h> file, and only add EX_CONFIG.
61236         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61237         absolute file name and whether it is sufficient. Substitute also
61238         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61239         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61240         ABSOLUTE_SYSEXITS_H into sysexits.h.
61241
61242 2007-03-25  Bruno Haible  <bruno@clisp.org>
61243
61244         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61245         hints is NULL.
61246
61247 2007-03-25  Bruno Haible  <bruno@clisp.org>
61248
61249         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61250         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61251
61252 2007-03-25  Bruno Haible  <bruno@clisp.org>
61253
61254         * lib/vasnprintf.c: Include langinfo.h.
61255         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61256         multithread-safe.
61257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61259         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61260         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61261         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61262         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61263         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61264         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61265         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61266         Reported by Simon Josefsson.
61267
61268 2007-03-25  Bruno Haible  <bruno@clisp.org>
61269
61270         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61271         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61272         * modules/vasnprintf (Depends-on): Add stdint.
61273
61274 2007-03-25  Bruno Haible  <bruno@clisp.org>
61275
61276         * modules/fpieee: New file.
61277         * m4/fpieee.m4: New file.
61278         * modules/isnan-nolibm (Depends-on): Add fpieee.
61279         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61280         * modules/isnanl (Depends-on): Add fpieee.
61281
61282 2007-03-25  Bruno Haible  <bruno@clisp.org>
61283
61284         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61285
61286 2007-03-25  Bruno Haible  <bruno@clisp.org>
61287
61288         Avoid test failures on IRIX 6.5.
61289         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61290         (main): Use it.
61291         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61292         macros.
61293         (main): Use them.
61294
61295 2007-03-25  Bruno Haible  <bruno@clisp.org>
61296
61297         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61298         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61299         exists but doesn't work.
61300         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61301         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61303         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61304         math.h.
61305
61306 2007-03-25  Bruno Haible  <bruno@clisp.org>
61307
61308         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61309         returns inf. Needed on IRIX 6.5.
61310
61311 2007-03-25  Bruno Haible  <bruno@clisp.org>
61312
61313         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61314         (main): Use isnanl instead of x != x idiom.
61315         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61316
61317         * tests/test-frexp.c: Include isnan.h.
61318         (main): Use isnan instead of x != x idiom.
61319         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61320
61321 2007-03-25  Bruno Haible  <bruno@clisp.org>
61322
61323         * tests/test-frexp.c (NaN): New function/macro.
61324         (main): Use it instead of 0.0 / 0.0.
61325         * tests/test-isnan.c (NaN): New function/macro.
61326         (main): Use it instead of 0.0 / 0.0.
61327         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61328         (test_function): Use it instead of 0.0 / 0.0.
61329         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61330         (test_function): Use it instead of 0.0 / 0.0.
61331         * tests/test-snprintf-posix.h (NaN): New function/macro.
61332         (test_function): Use it instead of 0.0 / 0.0.
61333         * tests/test-sprintf-posix.h (NaN): New function/macro.
61334         (test_function): Use it instead of 0.0 / 0.0.
61335         * tests/test-fprintf-posix.h (NaN): New function/macro.
61336         (test_function): Use it instead of 0.0 / 0.0.
61337         * tests/test-printf-posix.h (NaN): New function/macro.
61338         (test_function): Use it instead of 0.0 / 0.0.
61339
61340         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61341
61342 2007-03-25  Bruno Haible  <bruno@clisp.org>
61343
61344         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61345
61346 2007-03-25  Bruno Haible  <bruno@clisp.org>
61347
61348         * lib/regexec.c (merge_state_with_log): Make static.
61349
61350 2007-03-25  Bruno Haible  <bruno@clisp.org>
61351
61352         * lib/trigl.c (kernel_rem_pio2): Make static.
61353
61354 2007-03-25  Bruno Haible  <bruno@clisp.org>
61355
61356         * lib/sincosl.c (sincosl_table): Make static.
61357
61358 2007-03-25  Bruno Haible  <bruno@clisp.org>
61359
61360         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61361         if the compiler does not support C99.
61362
61363 2007-03-25  Bruno Haible  <bruno@clisp.org>
61364
61365         * modules/time (Makefile.am): Ensure all rule action lines start with a
61366         tab.
61367
61368 2007-03-24  Bruno Haible  <bruno@clisp.org>
61369
61370         * modules/tsearch-tests: New file.
61371         * tests/test-tsearch.sh: New file.
61372         * tests/test-tsearch.c: New file, mostly copied from glibc.
61373
61374         * modules/search-tests: New file.
61375         * tests/test-search.c: New file.
61376
61377         * modules/search: New file.
61378         * lib/search_.h: New file, incorporating lib/tsearch.h.
61379         * m4/search_h.m4: New file.
61380         * lib/tsearch.h: Remove file.
61381         * lib/tsearch.c: Include search.h instead of tsearch.h.
61382         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61383         HAVE_TSEARCH.
61384         * modules/tsearch (Files): Remove lib/tsearch.h.
61385         (Depends-on): Add search.
61386         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61387         (Include): Change tsearch.h into search.h.
61388
61389 2007-03-24  Bruno Haible  <bruno@clisp.org>
61390
61391         * modules/fpucw: New file.
61392         * lib/fpucw.h: New file.
61393         * lib/frexp.c: Include fpucw.h.
61394         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61395         (FUNC): Use them.
61396         * lib/printf-frexp.c: Include fpucw.h.
61397         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61398         (FUNC): Use them.
61399         * lib/vasnprintf.c: Include fpucw.h.
61400         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61401         'long double' calculations.
61402         * tests/test-frexpl.c: Include fpucw.h.
61403         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61404         * tests/test-printf-frexpl.c: Include fpucw.h.
61405         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61406         * modules/frexpl (Depends-on): Add fpucw.
61407         * modules/printf-frexpl (Depends-on): Likewise.
61408         * modules/fprintf-posix (Depends-on): Likewise.
61409         * modules/snprintf-posix (Depends-on): Likewise.
61410         * modules/sprintf-posix (Depends-on): Likewise.
61411         * modules/vasnprintf-posix (Depends-on): Likewise.
61412         * modules/vasprintf-posix (Depends-on): Likewise.
61413         * modules/vfprintf-posix (Depends-on): Likewise.
61414         * modules/vsnprintf-posix (Depends-on): Likewise.
61415         * modules/vsprintf-posix (Depends-on): Likewise.
61416         * modules/frexpl-tests (Depends-on): Likewise.
61417         * modules/printf-frexpl-tests (Depends-on): Likewise.
61418
61419 2007-03-24  Bruno Haible  <bruno@clisp.org>
61420
61421         * lib/float+.h: New file.
61422         * lib/isnan.c: Include float+.h.
61423         (SIZE): New macro.
61424         (FUNC): Compare only SIZE bytes of the value.
61425         * lib/vasnprintf.c: Include float+.h.
61426         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61427         SIZEOF_LDBL or SIZEOF_DBL bytes.
61428         * modules/isnan-nolibm (Files): Add lib/float+.h.
61429         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61430         * modules/isnanl (Files): Add lib/float+.h.
61431         * modules/vasnprintf (Files): Add lib/float+.h.
61432
61433 2007-03-24  Bruno Haible  <bruno@clisp.org>
61434
61435         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61436         include isnanl-nolibm.h.
61437
61438 2007-03-24  Bruno Haible  <bruno@clisp.org>
61439
61440         * tests/test-read-file.c (main): Don't produce spurious output for
61441         expected situations. Make the test fail if it encountered unexpected
61442         results.
61443
61444 2007-03-24  Bruno Haible  <bruno@clisp.org>
61445
61446         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61447         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61448
61449 2007-03-24  Bruno Haible  <bruno@clisp.org>
61450
61451         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61452
61453 2007-03-24  Bruno Haible  <bruno@clisp.org>
61454
61455         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61456         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61457
61458         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61459         * modules/utf8-ucs4: Turn into a symbolic link to module
61460         unistr/u8-mbtouc.
61461
61462         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61463         utf8-ucs4-unsafe.
61464         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61465         unistr/u8-mbtouc-unsafe.
61466
61467         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61468         * modules/utf16-ucs4: Turn into a symbolic link to module
61469         unistr/u16-mbtouc.
61470
61471         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61472         utf16-ucs4-unsafe.
61473         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61474         unistr/u16-mbtouc-unsafe.
61475
61476         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61477         * modules/ucs4-utf8: Turn into a symbolic link to module
61478         unistr/u8-ubtomb.
61479
61480         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61481         * modules/ucs4-utf16: Turn into a symbolic link to module
61482         unistr/u16-ubtomb.
61483
61484 2007-03-24  Bruno Haible  <bruno@clisp.org>
61485
61486         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61487         Enable the function only if HAVE_INLINE.
61488         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61489         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61490         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61491         Enable the function only if HAVE_INLINE.
61492         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61493         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61494         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61495         Enable the function only if HAVE_INLINE.
61496         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61497         Enable the function only if HAVE_INLINE.
61498         * modules/utf8-ucs4: Update.
61499         * modules/utf8-ucs4-unsafe: Update.
61500         * modules/utf16-ucs4: Update.
61501         * modules/utf16-ucs4-unsafe: Update.
61502         * modules/ucs4-utf8: Update.
61503         * modules/ucs4-utf16: Update.
61504
61505 2007-03-24  Bruno Haible  <bruno@clisp.org>
61506
61507         * lib/utf8-ucs4.h: Remove file.
61508         * lib/utf8-ucs4-unsafe.h: Remove file.
61509         * lib/utf16-ucs4.h: Remove file.
61510         * lib/utf16-ucs4-unsafe.h: Remove file.
61511         * lib/ucs4-utf8.h: Remove file.
61512         * lib/ucs4-utf16.h: Remove file.
61513         * lib/unistr.h: Include their previous contents.
61514         * m4/utf-ucs4.m4: Remove file.
61515         * m4/ucs4-utf.m4: Remove file.
61516         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61517         (Depends-on): Add unistr/base.
61518         (configure.ac): Remove gl_UTF_UCS4.
61519         (Makefile.am): Update.
61520         (Include): Change to unistr.h.
61521         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61522         (Depends-on): Add unistr/base.
61523         (configure.ac): Remove gl_UTF_UCS4.
61524         (Makefile.am): Update.
61525         (Include): Change to unistr.h.
61526         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61527         (Depends-on): Add unistr/base.
61528         (configure.ac): Remove gl_UTF_UCS4.
61529         (Makefile.am): Update.
61530         (Include): Change to unistr.h.
61531         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61532         (Depends-on): Add unistr/base.
61533         (configure.ac): Remove gl_UTF_UCS4.
61534         (Makefile.am): Update.
61535         (Include): Change to unistr.h.
61536         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61537         (Depends-on): Add unistr/base.
61538         (configure.ac): Remove gl_UCS4_UTF.
61539         (Makefile.am): Update.
61540         (Include): Change to unistr.h.
61541         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61542         (Depends-on): Add unistr/base.
61543         (configure.ac): Remove gl_UCS4_UTF.
61544         (Makefile.am): Update.
61545         (Include): Change to unistr.h.
61546         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61547         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61548         utf8-ucs4-unsafe.h.
61549         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61550         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61551         utf16-ucs4-unsafe.h.
61552         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61553         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61554         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61555         * lib/unistr/u8-strchr.c: Likewise.
61556         * lib/unistr/u8-strrchr.c: Likewise.
61557         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61558         * lib/unistr/u16-strchr.c: Likewise.
61559         * lib/unistr/u16-strrchr.c: Likewise.
61560         * lib/striconveh.c: Update.
61561         * lib/linebreak.c: Update.
61562
61563 2007-03-24  Bruno Haible  <bruno@clisp.org>
61564
61565         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61566         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61567
61568 2007-03-22  Bruno Haible  <bruno@clisp.org>
61569
61570         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61571
61572 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61573
61574         * MODULES.html.sh (File system functions): New module write-any-file.
61575         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61576         * m4/write-any-file.m4: New files.
61577
61578 2007-03-23  Eric Blake  <ebb9@byu.net>
61579
61580         * gnulib-tool: Rearrange space-tab sequences, since some editors
61581         like to eat them.
61582
61583 2007-03-23  Eric Blake  <ebb9@byu.net>
61584
61585         * lib/version-etc.c (version_etc_va): Update license wording to
61586         be more concise.  Recommended by Richard Stallman.
61587
61588 2007-03-22  Bruno Haible  <bruno@clisp.org>
61589
61590         * lib/poll.c (MSG_PEEK): New fallback definition.
61591
61592 2007-03-22  Bruno Haible  <bruno@clisp.org>
61593
61594         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61595         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61596         (main): Update.
61597         Fixes a compilation error on BeOS.
61598
61599 2007-03-22  Bruno Haible  <bruno@clisp.org>
61600
61601         * modules/frexpl-tests: New file.
61602         * tests/test-frexpl.c: New file.
61603
61604         * modules/frexpl: New file.
61605         * m4/frexpl.m4: New file.
61606         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61607         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61609         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61610         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61611         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61612
61613 2007-03-22  Bruno Haible  <bruno@clisp.org>
61614
61615         * lib/frexpl.c: Share code with lib/frexp.c.
61616         * modules/mathl (Files): Add lib/frexp.c.
61617         (Depends-on): Add isnanl-nolibm.
61618
61619 2007-03-22  Bruno Haible  <bruno@clisp.org>
61620
61621         * modules/printf-frexp (Files): Add m4/frexp.m4.
61622         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61623         only if the found frexp function actually works.
61624
61625 2007-03-22  Bruno Haible  <bruno@clisp.org>
61626
61627         * lib/frexp.c: Remove older implementation that uses divisions.
61628
61629 2007-03-21  Bruno Haible  <bruno@clisp.org>
61630
61631         * modules/frexp-tests: New file.
61632         * tests/test-frexp.c: New file.
61633
61634         * modules/frexp: New file.
61635         * lib/frexp.c: New file.
61636         * m4/frexp.m4: New file.
61637         * lib/math_.h (frexp): New declaration.
61638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61639         REPLACE_FREXP.
61640         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61641
61642 2007-03-21  Bruno Haible  <bruno@clisp.org>
61643
61644         * modules/isnanl-tests: New file.
61645         * tests/test-isnanl.c: New file.
61646
61647         * modules/isnanl: New file.
61648         * lib/isnanl.h: New file.
61649         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61650         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61651         gl_FUNC_ISNANL_WORKS.
61652         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61653         New macros.
61654
61655 2007-03-21  Bruno Haible  <bruno@clisp.org>
61656
61657         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61658         lib/isnanl.h.
61659         (Include): Update.
61660         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61661         * lib/vasnprintf.c: Update.
61662         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61663         tests/test-isnanl.h, remove tests/test-isnanl.c.
61664         (Makefile.am): Update.
61665         * tests/test-isnanl-nolibm.c: New file.
61666         * tests/test-isnanl.h: New file.
61667         * tests/test-isnanl.c: Remove file.
61668
61669 2007-03-21  Jim Meyering  <jim@meyering.net>
61670
61671         When trying to open ".", treat ESTALE like EACCES.
61672         * lib/savewd.c (savewd_save): Resort to forking not just upon
61673         failure with EACCES, but also when errno is ESTALE.
61674
61675 2007-03-20  Bruno Haible  <bruno@clisp.org>
61676
61677         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61678         Needed on AIX 5.1. Reported by Matthew Woehlke.
61679
61680 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61681
61682         Suggestions by Bruno Haible:
61683         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61684         our own.
61685         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61686         * modules/acl (Depends-on): Add gettext.
61687
61688 2007-03-19  Bruno Haible  <bruno@clisp.org>
61689
61690         * modules/iconvme: Remove file.
61691         * lib/iconvme.h: Remove file.
61692         * lib/iconvme.c: Remove file.
61693         * m4/iconvme.m4: Remove file.
61694
61695 2007-03-19  Bruno Haible  <bruno@clisp.org>
61696
61697         * doc/relocatable-maint.texi: Break long shell script line.
61698         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61699
61700 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61701
61702         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61703         handle file_has_acl.
61704         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61705         * lib/acl.c: Move header inclusions and related macro defns into
61706         lib/acl-internal.h.
61707         (S_ISLNK): Remove defn, since that's now done for us.
61708         (file_has_acl): Move to lib/file-has-acl.c.
61709         Call acl_trivial if available.  This is the crucial part of the fix.
61710         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61711         shared within the library.  Rewrite a bit, partly to make it compatible
61712         with the GNU coding style.
61713         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61714         Remove unnecessary double-quotes.
61715         Don't test for acl_to_text; the build will catch that.
61716         Replace acl_entries if it doesn't exist and it is needed.
61717         Check for -lsec and acl_trivial (as used on Solaris 10).
61718         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61719         lib/file-has-acl.c.
61720         (Depends-on): Add sys_stat, for S_ISLNK.
61721
61722 2007-03-19  Ben Pfaff  <blp@gnu.org>
61723
61724         * doc/gnulib.texi: Fix typos.
61725         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61726
61727 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61728
61729         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61730         If size is zero here, buf must be zero.
61731
61732 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61733
61734         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61735         <bruno@clisp.org>.
61736
61737 2007-03-18  Bruno Haible  <bruno@clisp.org>
61738
61739         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61740         Suggested by Eric Blake.
61741
61742 2007-03-18  Ben Pfaff  <blp@gnu.org>
61743
61744         * doc/relocatable.texi: Recommend using as prefix a directory
61745         that does not exist and will never be created.  Based on
61746         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61747         and others.
61748
61749 2007-03-17  Bruno Haible  <bruno@clisp.org>
61750
61751         * lib/fchownat.c: Include lchown.h.
61752
61753 2007-03-17  Bruno Haible  <bruno@clisp.org>
61754
61755         Fix endless loop when the given allocated size was > INT_MAX.
61756         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61757         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61758         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61759         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61760         * lib/sprintf.c (sprintf): Likewise.
61761
61762 2007-03-17  Bruno Haible  <bruno@clisp.org>
61763
61764         * tests/test-argp-2.sh (func_compare): Output a context diff.
61765
61766 2007-03-17  Bruno Haible  <bruno@clisp.org>
61767
61768         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61769         locale's decimal-point character.
61770
61771 2007-03-17  Bruno Haible  <bruno@clisp.org>
61772
61773         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61774         before comparing it. Needed because on some platforms (e.g. x86) a
61775         'long double' occupies less bytes than sizeof (long double).
61776
61777 2007-03-17  Bruno Haible  <bruno@clisp.org>
61778
61779         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61780         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61781         * tests/test-getaddrinfo.c (simple): Likewise.
61782         * tests/test-read-file.c (main): Likewise.
61783
61784 2007-03-17  Bruno Haible  <bruno@clisp.org>
61785
61786         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61787
61788 2007-03-17  Bruno Haible  <bruno@clisp.org>
61789
61790         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61791         unused variable.
61792
61793 2007-03-17  Bruno Haible  <bruno@clisp.org>
61794
61795         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61796         * tests/test-c-strncasecmp.c: Likewise.
61797
61798 2007-03-17  Bruno Haible  <bruno@clisp.org>
61799
61800         * modules/stdlib (Depends-on): Add unistd.
61801         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61802         Needed for MacOS X 10.3.
61803
61804 2007-03-17  Bruno Haible  <bruno@clisp.org>
61805
61806         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61807
61808 2007-03-17  Bruno Haible  <bruno@clisp.org>
61809
61810         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61811
61812 2007-03-17  Bruno Haible  <bruno@clisp.org>
61813
61814         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61815         to reflect files copied from gnulib (with or without modifications).
61816         Suggested by Jim Meyering.
61817
61818 2007-03-17  Eric Blake  <ebb9@byu.net>
61819
61820         * NEWS: Document stdlib change from 2007-02-18.
61821
61822 2007-03-17  Jim Meyering  <jim@meyering.net>
61823
61824         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61825         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61826         someone uses a name containing shell meta-characters.
61827         Reported by Alfred M. Szmidt.
61828
61829         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61830
61831 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61832
61833         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61834         and copy gettext configuration files only if configure.ac contains
61835         a use of AM_GNU_GETTEXT_VERSION.
61836
61837 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61838
61839         * build-aux/bootstrap (gnulib_name): New variable.
61840         (gnulib_tool_options): Use it.
61841
61842 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61843
61844         * tests/test-des.c: Use new namespace.
61845
61846 2007-03-15  Bruno Haible  <bruno@clisp.org>
61847
61848         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61849         Reported by James Youngman <jay@gnu.org>.
61850
61851 2007-03-15  Bruno Haible  <bruno@clisp.org>
61852
61853         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61854         declared prototype. Needed with cc on OSF/1 5.1.
61855
61856 2007-03-15  Bruno Haible  <bruno@clisp.org>
61857
61858         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61859         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61860         (struct gl_list_implementation): Add dispose_fn argument to the
61861         'create_empty', 'create' methods.
61862         (struct gl_list_impl_base): Add field 'dispose_fn'.
61863         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61864         argument.
61865         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61866         dispose_fn argument.
61867         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61868         dispose_fn on the dropped values.
61869         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61870         dispose_fn argument.
61871         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61872         dropped values.
61873         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61874         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61875         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61876         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61877         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61878         argument.
61879         (gl_tree_list_free): Call dispose_fn on the dropped values.
61880         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61881         the dropped values.
61882         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61883         Add dispose_fn argument.
61884         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61885         Call dispose_fn on the dropped values.
61886         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61887         Add dispose_fn argument.
61888         (gl_sublist_create): Initialize the 'dispose_fn' field.
61889         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61890         * tests/test-array_list.c (main): Update.
61891         * tests/test-carray_list.c (main): Update.
61892         * tests/test-avltree_list.c (main): Update.
61893         * tests/test-rbtree_list.c (main): Update.
61894         * tests/test-avltreehash_list.c (main): Update.
61895         * tests/test-rbtreehash_list.c (main): Update.
61896         * tests/test-linked_list.c (main): Update.
61897         * tests/test-linkedhash_list.c (main): Update.
61898         * tests/test-array_oset.c (main): Update.
61899
61900 2007-03-15  Bruno Haible  <bruno@clisp.org>
61901
61902         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61903         (gl_oset_create_empty): Add dispose_fn argument.
61904         (struct gl_oset_implementation): Add dispose_fn argument to
61905         'create_empty' method.
61906         (struct gl_oset_impl_base): Add dispose_fn field.
61907         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61908         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61909         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61910         values.
61911         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61912         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61913         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61914         dropped value.
61915         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61916         dropped value.
61917         * tests/test-array_oset.c (main): Update.
61918         * tests/test-avltree_oset.c (main): Update.
61919         * tests/test-rbtree_oset.c (main): Update.
61920         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61921
61922 2007-03-13  Bruno Haible  <bruno@clisp.org>
61923
61924         * tests/test-stdbool.c (i): Update after last patch.
61925
61926 2007-03-12  Bruno Haible  <bruno@clisp.org>
61927
61928         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61929         the iswprint macro. Needed on Solaris 2.5.1.
61930
61931 2007-03-12  Bruno Haible  <bruno@clisp.org>
61932
61933         * tests/test-printf-frexp.c (main): Declare x as volatile.
61934
61935 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61936
61937         * doc/gnulib.texi (Build robot for gnulib): New section.
61938
61939 2007-03-12  Jim Meyering  <jim@meyering.net>
61940
61941         * build-aux/bootstrap: New file.
61942         * build-aux/bootstrap.conf: New file, from coreutils.
61943
61944 2007-03-11  Bruno Haible  <bruno@clisp.org>
61945
61946         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61947
61948 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61949
61950         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61951         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61952         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61953
61954 2007-03-11  Bruno Haible  <bruno@clisp.org>
61955
61956         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61957         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61958
61959 2007-03-11  Bruno Haible  <bruno@clisp.org>
61960
61961         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61962         formula. Needed for SunPRO C 5.0.
61963
61964 2007-03-11  Bruno Haible  <bruno@clisp.org>
61965
61966         * modules/long-options (Depends-on): Add getopt.
61967
61968 2007-03-11  Bruno Haible  <bruno@clisp.org>
61969
61970         * modules/modechange (Depends-on): Add stdbool.
61971
61972 2007-03-11  Bruno Haible  <bruno@clisp.org>
61973
61974         * modules/i-ring (Depends-on): Add stdbool.
61975
61976 2007-03-11  Bruno Haible  <bruno@clisp.org>
61977
61978         * modules/gc-des (Depends-on): Add stdbool.
61979
61980 2007-03-11  Bruno Haible  <bruno@clisp.org>
61981
61982         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61983
61984 2007-03-11  Bruno Haible  <bruno@clisp.org>
61985
61986         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61987
61988 2007-03-11  Bruno Haible  <bruno@clisp.org>
61989
61990         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61991
61992 2007-03-11  Bruno Haible  <bruno@clisp.org>
61993
61994         * lib/vasnprintf.c (sprintf): Undefine.
61995
61996 2007-03-11  Bruno Haible  <bruno@clisp.org>
61997
61998         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61999         initializers in SunPRO C and Compaq C compilers.
62000
62001 2007-03-11  Bruno Haible  <bruno@clisp.org>
62002
62003         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62004         decrementing code ANSI C compliant.
62005
62006 2007-03-11  Bruno Haible  <bruno@clisp.org>
62007
62008         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62009         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62010
62011 2007-03-11  Bruno Haible  <bruno@clisp.org>
62012
62013         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62014         <stdbool.h> substitute doesn't pass.
62015
62016 2007-03-11  Bruno Haible  <bruno@clisp.org>
62017
62018         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62019
62020 2007-03-11  Bruno Haible  <bruno@clisp.org>
62021
62022         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62023         script, for submission to autobuild.josefsson.org.
62024
62025 2007-03-10  Bruno Haible  <bruno@clisp.org>
62026
62027         * modules/canonicalize-lgpl-tests: New file.
62028         * tests/test-canonicalize-lgpl.sh: New file.
62029         * tests/test-canonicalize-lgpl.c: New file.
62030
62031         * modules/c-strcase-tests: New file.
62032         * tests/test-c-strcase.sh: New file.
62033         * tests/test-c-strcasecmp.c: New file.
62034         * tests/test-c-strncasecmp.c: New file.
62035
62036         * modules/atexit-tests: New file.
62037         * tests/test-atexit.sh: New file.
62038         * tests/test-atexit.c: New file.
62039
62040 2007-03-10  Bruno Haible  <bruno@clisp.org>
62041
62042         * tests/test-binary-io.sh: Use temporary filenames that are not so
62043         likely to clash with those of other tests (in a parallel make).
62044         * tests/test-binary-io.c: Likewise.
62045
62046 2007-03-10  Bruno Haible  <bruno@clisp.org>
62047
62048         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62049         fallback; use #error instead.
62050         Suggested by Simon Josefsson.
62051
62052 2007-03-10  Bruno Haible  <bruno@clisp.org>
62053
62054         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62055         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62056         first and the last.
62057
62058 2007-03-10  Bruno Haible  <bruno@clisp.org>
62059
62060         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62061
62062 2007-03-10  Bruno Haible  <bruno@clisp.org>
62063
62064         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62065         "make distcheck".
62066         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62067         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62068         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62069
62070 2007-03-10  Bruno Haible  <bruno@clisp.org>
62071
62072         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62073         variable.
62074         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62075         variable.
62076
62077 2007-03-09  Eric Blake  <ebb9@byu.net>
62078         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62079
62080         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62081         types are not being provided by gnulib.
62082         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62083         types are supported.
62084
62085 2007-03-10  Bruno Haible  <bruno@clisp.org>
62086
62087         * lib/stdio_.h (__attribute__): New macro.
62088         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62089         vsprintf): Specify __attribute__ __format__ for GCC.
62090         Suggested by Eric Blake.
62091
62092 2007-03-09  Bruno Haible  <bruno@clisp.org>
62093
62094         * modules/printf-posix-tests: New file.
62095         * tests/test-printf-posix.sh: New file.
62096         * tests/test-printf-posix.c: New file.
62097
62098         * modules/printf-posix: New file.
62099         * lib/printf.c: New file.
62100         * m4/printf-posix-rpl.m4: New file.
62101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62102         REPLACE_PRINTF.
62103         * lib/stdio_.h (printf): New declaration.
62104         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62105         ____strfmon____): New macros.
62106         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62107         REPLACE_PRINTF.
62108
62109 2007-03-09  Bruno Haible  <bruno@clisp.org>
62110
62111         * tests/test-vasnprintf-posix2.sh: New file.
62112         * tests/test-vasnprintf-posix2.c: New file.
62113         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62114         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62115         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62116
62117         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62118         a locale dependent decimal point, rather than always '.'.
62119
62120 2007-03-09  Eric Blake  <ebb9@byu.net>
62121
62122         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62123         spite of platforms like Tandem/NSK that define it to -1.
62124
62125 2007-03-08  Bruno Haible  <bruno@clisp.org>
62126
62127         * modules/vprintf-posix-tests: New file.
62128         * tests/test-vprintf-posix.sh: New file.
62129         * tests/test-vprintf-posix.c: New file.
62130         * tests/test-printf-posix.h: New file.
62131
62132         * modules/vprintf-posix: New file.
62133         * lib/vprintf.c: New file.
62134         * m4/vprintf-posix.m4: New file.
62135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62136         REPLACE_VPRINTF.
62137         * lib/stdio_.h (vprintf): New declaration.
62138         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62139         REPLACE_VPRINTF.
62140
62141 2007-03-08  Bruno Haible  <bruno@clisp.org>
62142
62143         * modules/fprintf-posix-tests: New file.
62144         * tests/test-fprintf-posix.sh: New file.
62145         * tests/test-fprintf-posix.c: New file.
62146
62147         * modules/fprintf-posix: New file.
62148         * lib/fprintf.c: New file.
62149         * m4/fprintf-posix.m4: New file.
62150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62151         REPLACE_FPRINTF.
62152         * lib/stdio_.h (fprintf): New declaration.
62153         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62154         REPLACE_FPRINTF.
62155
62156 2007-03-08  Bruno Haible  <bruno@clisp.org>
62157
62158         * modules/vfprintf-posix-tests: New file.
62159         * tests/test-vfprintf-posix.sh: New file.
62160         * tests/test-vfprintf-posix.c: New file.
62161         * tests/test-fprintf-posix.h: New file.
62162         * tests/test-fprintf-posix.out: New file.
62163
62164         * modules/vfprintf-posix: New file.
62165         * lib/vfprintf.c: New file.
62166         * m4/vfprintf-posix.m4: New file.
62167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62168         REPLACE_VFPRINTF.
62169         * lib/stdio_.h (vfprintf): New declaration.
62170         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62171         REPLACE_VFPRINTF.
62172
62173 2007-03-08  Bruno Haible  <bruno@clisp.org>
62174
62175         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62176
62177 2007-03-08  Bruno Haible  <bruno@clisp.org>
62178
62179         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62180         instead of 'expr' invocations.
62181         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62182         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62183         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62184         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62185         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62186         Suggested by Paul Eggert.
62187
62188 2007-03-08  Bruno Haible  <bruno@clisp.org>
62189
62190         * modules/fseterr-tests: New file.
62191         * tests/test-fseterr.c: New file.
62192
62193         * modules/fseterr: New file.
62194         * lib/fseterr.h: New file.
62195         * lib/fseterr.c: New file.
62196
62197 2007-03-08  Bruno Haible  <bruno@clisp.org>
62198
62199         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62200         * lib/getopt_.h: Likewise.
62201         * lib/mbswidth.h: Likewise.
62202         * lib/setenv.h: Likewise.
62203         * lib/vasnprintf.h: Likewise.
62204         * lib/vasprintf.h: Likewise.
62205         * lib/verror.h: Likewise.
62206         * lib/xsetenv.h: Likewise.
62207         * lib/xvasprintf.h: Likewise.
62208
62209 2007-03-08  Jim Meyering  <jim@meyering.net>
62210
62211         * users.txt: Add parted.
62212
62213         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62214
62215 2007-03-07  Bruno Haible  <bruno@clisp.org>
62216
62217         * m4/printf.m4: Make the shell script snippets copy&pastable.
62218
62219 2007-03-02  Bruno Haible  <bruno@clisp.org>
62220
62221         * lib/netinet_in_.h: New file.
62222         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62223         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62224         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62225         (Depends-on): Add absolute-header.
62226         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62227         into netinet/in.h.
62228
62229 2007-03-03  Bruno Haible  <bruno@clisp.org>
62230
62231         * lib/sys_select_.h: New file.
62232         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62233         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62234         * modules/sys_select (Files): Add lib/sys_select_.h.
62235         (Depends-on): Add absolute-header.
62236         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62237         into sys/select.h.
62238
62239 2007-03-02  Bruno Haible  <bruno@clisp.org>
62240
62241         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62242         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62243         values.
62244         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62245         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62246         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62247         * modules/sys_socket (Depends-on): Add absolute-header.
62248         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62249         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62250         (Include): Remove requirement of inclusion of <sys/types.h>.
62251
62252 2007-03-02  Bruno Haible  <bruno@clisp.org>
62253
62254         * lib/byteswap_.h (bswap_32): Fix formula.
62255
62256 2007-03-06  Bruno Haible  <bruno@clisp.org>
62257
62258         * modules/sprintf-posix-tests: New file.
62259         * tests/test-sprintf-posix.c: New file.
62260
62261         * modules/sprintf-posix: New file.
62262         * lib/sprintf.c: New file.
62263         * m4/sprintf-posix.m4: New file.
62264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62265         REPLACE_SPRINTF.
62266         * lib/stdio_.h (sprintf): New declaration.
62267         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62268         REPLACE_SPRINTF.
62269
62270 2007-03-06  Bruno Haible  <bruno@clisp.org>
62271
62272         * modules/vsprintf-posix-tests: New file.
62273         * tests/test-vsprintf-posix.c: New file.
62274         * tests/test-sprintf-posix.h: New file.
62275
62276         * modules/vsprintf-posix: New file.
62277         * lib/vsprintf.c: New file.
62278         * m4/vsprintf-posix.m4: New file.
62279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62280         REPLACE_VSPRINTF.
62281         * lib/stdio_.h (vsprintf): New declaration.
62282         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62283         REPLACE_VSPRINTF.
62284
62285 2007-03-06  Bruno Haible  <bruno@clisp.org>
62286
62287         * modules/vsnprintf (Depend-on): Remove minmax.
62288
62289 2007-03-06  Bruno Haible  <bruno@clisp.org>
62290
62291         * modules/snprintf-posix-tests: New file.
62292         * tests/test-snprintf-posix.c: New file.
62293
62294         * modules/snprintf-posix: New file.
62295         * m4/snprintf-posix.m4: New file.
62296         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62297         gl_FUNC_SNPRINTF.
62298         (gl_FUNC_SNPRINTF): Invoke it.
62299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62300         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62301         is set.
62302         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62303
62304 2007-03-06  Bruno Haible  <bruno@clisp.org>
62305
62306         * modules/vsnprintf-posix-tests: New file.
62307         * tests/test-vsnprintf-posix.c: New file.
62308         * tests/test-snprintf-posix.h: New file.
62309
62310         * modules/vsnprintf-posix: New file.
62311         * m4/vsnprintf-posix.m4: New file.
62312         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62313         gl_FUNC_VSNPRINTF.
62314         (gl_FUNC_VSNPRINTF): Invoke it.
62315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62316         * lib/stdio_.h (vsnprintf): Define as a replacement if
62317         REPLACE_VSNPRINTF is set.
62318         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62319
62320 2007-03-06  Bruno Haible  <bruno@clisp.org>
62321
62322         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62323         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62324
62325 2007-03-06  Bruno Haible  <bruno@clisp.org>
62326
62327         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62328         (asinl): Declare also if HAVE_DECL_ASINL is set.
62329         (atanl): Declare also if HAVE_DECL_ATANL is set.
62330         (ceill): Declare also if HAVE_DECL_CEILL is set.
62331         (cosl): Declare also if HAVE_DECL_COSL is set.
62332         (expl): Declare also if HAVE_DECL_EXPL is set.
62333         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62334         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62335         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62336         (logl): Declare also if HAVE_DECL_LOGL is set.
62337         (sinl): Declare also if HAVE_DECL_SINL is set.
62338         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62339         (tanl): Declare also if HAVE_DECL_TANL is set.
62340         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62342         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62343         declaration of frexpl, ldexpl.
62344         * modules/printf-frexpl (Depends-on): Add math.
62345         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62346
62347 2007-03-05  Bruno Haible  <bruno@clisp.org>
62348
62349         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62350         frexpl and ldexpl are declared.
62351         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62352
62353 2007-03-05  Bruno Haible  <bruno@clisp.org>
62354
62355         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62356         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62357
62358 2007-03-05  Bruno Haible  <bruno@clisp.org>
62359
62360         * lib/stdio_.h: Include <stddef.h>.
62361
62362 2007-03-05  Bruno Haible  <bruno@clisp.org>
62363
62364         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62365
62366 2007-03-05  Bruno Haible  <bruno@clisp.org>
62367
62368         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62369         NetBSD 4, from Ralf Wildenhues.
62370
62371 2007-03-04  Bruno Haible  <bruno@clisp.org>
62372
62373         * lib/vasprintf.h: Update #if logic for the case when the functions
62374         exist but are overridden.
62375
62376 2007-03-04  Bruno Haible  <bruno@clisp.org>
62377
62378         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62379         implementations: glibc-2.4 and MacOS X 10.3.
62380         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62381         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62382         * tests/test-vasprintf-posix.c (test_function): Likewise.
62383
62384 2007-03-04  Bruno Haible  <bruno@clisp.org>
62385
62386         * modules/vasprintf-posix-tests: New file.
62387         * tests/test-vasprintf-posix.c: New file.
62388
62389         * modules/vasprintf-posix: New file.
62390         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62391         defined.
62392         * m4/vasprintf-posix.m4: New file.
62393         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62394         gl_FUNC_VASPRINTF.
62395         (gl_FUNC_VASPRINTF): Invoke it.
62396         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62397         here.
62398         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62399
62400 2007-03-04  Bruno Haible  <bruno@clisp.org>
62401
62402         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62403         REPLACE_GETTIMEOFDAY.
62404         * modules/sys_time (Makefile.am): Likewise.
62405         * m4/sys_time_h.m4: Likewise.
62406         * m4/gettimeofday.m4: Likewise.
62407
62408 2007-03-04  Bruno Haible  <bruno@clisp.org>
62409
62410         * modules/vasnprintf-posix-tests: New file.
62411         * tests/test-vasnprintf-posix.c: New file.
62412
62413         * modules/vasnprintf-posix: New file.
62414         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62415         printf-frexpl.h.
62416         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62417         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62418         REPLACE_VASNPRINTF is defined.
62419         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62420         gl_FUNC_VASNPRINTF.
62421         (gl_FUNC_VASNPRINTF): Invoke it.
62422         * m4/vasnprintf-posix.m4: New file.
62423         * m4/printf.m4: New file.
62424
62425 2007-03-04  Bruno Haible  <bruno@clisp.org>
62426
62427         Compile progreloc.c only if --enable-relocatable is specified.
62428         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62429         if --enable-relocatable was specified.
62430         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62431         lib_SOURCES.
62432
62433 2007-03-04  Jim Meyering  <jim@meyering.net>
62434
62435         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62436         Use it consistently, rather than enumerating errno constants.
62437
62438 2007-03-04  Bruno Haible  <bruno@clisp.org>
62439
62440         * modules/xvasprintf-tests: New file.
62441         * tests/test-xvasprintf.c: New file.
62442
62443         * modules/vasprintf-tests: New file.
62444         * tests/test-vasprintf.c: New file.
62445
62446         * modules/vasnprintf-tests: New file.
62447         * tests/test-vasnprintf.c: New file.
62448
62449         * modules/vsnprintf-tests: New file.
62450         * tests/test-vsnprintf.c: New file.
62451
62452         * modules/snprintf-tests: New file.
62453         * tests/test-snprintf.c: New file.
62454
62455 2007-03-04  Bruno Haible  <bruno@clisp.org>
62456
62457         Compile relocatable.c only if --enable-relocatable is specified.
62458         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62459         gl_RELOCATABLE_LIBRARY.
62460         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62461         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62462         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62463         gl_RELOCATABLE_LIBRARY.
62464         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62465         (Makefile.am): Remove lib_SOURCES.
62466         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62467         gl_RELOCATABLE_LIBRARY.
62468         (Makefile.am): Remove lib_SOURCES.
62469         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62470         always.
62471         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62472         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62473
62474 2007-03-04  Bruno Haible  <bruno@clisp.org>
62475
62476         * modules/argmatch-tests: New file.
62477         * tests/test-argmatch.c: New file.
62478
62479         * tests/test-allocsa.c (main): Halve the number of loop runs.
62480
62481         * modules/alloca-opt-tests: New file.
62482         * tests/test-alloca-opt.c: New file.
62483
62484 2007-03-04  Jim Meyering  <jim@meyering.net>
62485
62486         Work around difference between Linux ACLs and Solaris 10 ZFS.
62487         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62488         for EINVAL.
62489
62490 2007-03-03  Bruno Haible  <bruno@clisp.org>
62491
62492         * modules/relocatable-prog (Depends-on): Add back progreloc's
62493         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62494
62495 2007-03-03  Bruno Haible  <bruno@clisp.org>
62496
62497         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62498         * modules/relocatable-lib: New file.
62499
62500 2007-03-03  Bruno Haible  <bruno@clisp.org>
62501
62502         * modules/relocatable-prog: Renamed from modules/relocatable.
62503         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62504
62505 2007-03-03  Bruno Haible  <bruno@clisp.org>
62506
62507         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62508         m4/relocatable-lib.m4.
62509         (Depends-on): Remove 'relocatable'.
62510         (configure.ac): Add gl_RELOCATABLE_NOP.
62511
62512 2007-03-03  Bruno Haible  <bruno@clisp.org>
62513
62514         * modules/relocatable-prog-wrapper: New file.
62515         * modules/relocatable (Depends-on): Add it. Remove all other
62516         dependencies except progname.
62517         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62518
62519         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62520         (gl_FUNC_STRERROR): Nop.
62521         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62522
62523         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62524         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62525
62526         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62527         (gl_FUNC_READLINK): Update.
62528
62529         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62530
62531 2007-03-03  Bruno Haible  <bruno@clisp.org>
62532
62533         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62534         * modules/xreadlink (Depends-on): Add unistd.
62535         * modules/xreadlink-with-size (Depends-on): Likewise.
62536
62537 2007-03-03  Bruno Haible  <bruno@clisp.org>
62538
62539         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62540         extracted from gt_FUNC_SETENV.
62541         (gt_FUNC_SETENV): Remove macro.
62542         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62543         remove gt_FUNC_SETENV.
62544
62545 2007-03-03  Bruno Haible  <bruno@clisp.org>
62546
62547         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62548         ENABLE_RELOCATABLE here.
62549         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62550
62551 2007-03-03  Bruno Haible  <bruno@clisp.org>
62552
62553         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62554         * tests/test-rbtreehash_list.c: Include progname.h.
62555         (main): Call set_program_name.
62556
62557         * modules/rbtree-oset-tests (Depends-on): Add progname.
62558         * tests/test-rbtree_oset.c: Include progname.h.
62559         (main): Call set_program_name.
62560
62561         * modules/rbtree-list-tests (Depends-on): Add progname.
62562         * tests/test-rbtree_list.c: Include progname.h.
62563         (main): Call set_program_name.
62564
62565         * modules/linked-list-tests (Depends-on): Add progname.
62566         * tests/test-linked_list.c: Include progname.h.
62567         (main): Call set_program_name.
62568
62569 2007-03-03  Bruno Haible  <bruno@clisp.org>
62570
62571         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62572         All uses of __restrict changed to _Restrict_.
62573         * lib/glob_.h (__restrict): Remove macro.
62574
62575 2007-03-02  Bruno Haible  <bruno@clisp.org>
62576
62577         * modules/gettext (configure.ac): Require gettext infrastructure
62578         from version 0.16.1.
62579
62580 2007-03-02  Bruno Haible  <bruno@clisp.org>
62581
62582         * modules/linkedhash-list-tests (Depends-on): Add progname.
62583         * tests/test-linkedhash_list.c: Include progname.h.
62584         (main): Call set_program_name.
62585
62586         * modules/carray-list-tests (Depends-on): Add progname.
62587         * tests/test-carray_list.c: Include progname.h.
62588         (main): Call set_program_name.
62589
62590         * modules/avltreehash-list-tests (Depends-on): Add progname.
62591         * tests/test-avltreehash_list.c: Include progname.h.
62592         (main): Call set_program_name.
62593
62594         * modules/avltree-oset-tests (Depends-on): Add progname.
62595         * tests/test-avltree_oset.c: Include progname.h.
62596         (main): Call set_program_name.
62597
62598         * modules/avltree-list-tests (Depends-on): Add progname.
62599         * tests/test-avltree_list.c: Include progname.h.
62600         (main): Call set_program_name.
62601
62602         * modules/array-oset-tests (Depends-on): Add progname.
62603         * tests/test-array_oset.c: Include progname.h.
62604         (main): Call set_program_name.
62605
62606         * modules/array-list-tests (Depends-on): Add progname.
62607         * tests/test-array_list.c: Include progname.h.
62608         (main): Call set_program_name.
62609
62610         * modules/argp-tests (Depends-on): Add progname.
62611         * tests/test-argp.c: Include argp.h first. Include progname.h.
62612         (main): Call set_program_name.
62613
62614 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62615
62616         * doc/gnulib-tool.texi (Initial import): Reword description of
62617         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62618         limited effect even if defined after the first system include.
62619
62620 2007-03-01  Bruno Haible  <bruno@clisp.org>
62621
62622         * build-aux/config.libpath: Update to libtool-1.5.22.
62623         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62624
62625 2007-03-01  Bruno Haible  <bruno@clisp.org>
62626
62627         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62628         foo_CFLAGS.
62629         Reported by Ralf Wildenhues.
62630
62631 2007-03-01  Bruno Haible  <bruno@clisp.org>
62632
62633         * build-aux/install-reloc: Remove object files left over by some
62634         compilers.
62635         Reported by Ralf Wildenhues.
62636
62637 2007-03-01  Bruno Haible  <bruno@clisp.org>
62638
62639         * build-aux/install-reloc: Break long lines.
62640
62641 2007-03-01  Bruno Haible  <bruno@clisp.org>
62642
62643         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62644         Reported by Ralf Wildenhues.
62645
62646 2007-03-01  Bruno Haible  <bruno@clisp.org>
62647
62648         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62649         include ordering constraints.
62650
62651 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62652
62653         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62654         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62655         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62656         as another example.
62657         * lib/time_.h: Fix misspelling.
62658         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62659         Require gl_HEADER_TIME_H_DEFAULTS.
62660         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62661         * m4/time_r.m4 (gl_TIME_R): Likewise.
62662         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62663
62664 2007-03-01  Bruno Haible  <bruno@clisp.org>
62665
62666         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62667         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62668
62669 2007-03-01  Jim Meyering  <jim@meyering.net>
62670
62671         * modules/xreadlink (Maintainer): Add my name.
62672         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62673
62674 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62675             Bruno Haible  <bruno@clisp.org>
62676
62677         * build-aux/install-reloc: Compile also c-ctype.c.
62678         * build-aux/relocatable.sh.in: New file.
62679         * doc/relocatable.texi: New file.
62680         * doc/relocatable-maint.texi: New file.
62681         * doc/gnulib.texi: Include relocatable-maint.texi.
62682         * lib/progreloc.c: Include unistd.h unconditionally.
62683         * lib/relocwrapper.c: Include unistd.h unconditionally.
62684         Include c-ctype.h.
62685         (add_dotbin): Use c_tolower.
62686         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62687         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62688         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62689         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62690         to m4/relocatable-lib.m4.
62691         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62692         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62693         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62694         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62695         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62696         * modules/relocatable: New file.
62697         * modules/relocatable-lib: New file.
62698         * modules/relocatable-script: New file.
62699
62700 2007-02-28  Bruno Haible  <bruno@clisp.org>
62701
62702         Import --enable-relocatable infrastructure.
62703         * build-aux/config.libpath: New file, from GNU gettext.
62704         * build-aux/install-reloc: New file, from GNU gettext.
62705         * build-aux/reloc-ldflags: New file, from GNU gettext.
62706         * lib/relocatable.h: New file, from GNU gettext.
62707         * lib/relocatable.c: New file, from GNU gettext.
62708         * lib/relocwrapper.c: New file, from GNU gettext.
62709         * m4/relocatable.m4: New file, from GNU gettext.
62710
62711 2007-02-28  Bruno Haible  <bruno@clisp.org>
62712
62713         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62714
62715         * modules/xreadlink: New file, from GNU gettext with modifications.
62716         * lib/xreadlink.c: New file, from GNU gettext.
62717         * lib/xreadlink.h: Add comments.
62718         (xreadlink): New declaration.
62719
62720         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62721         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62722         lib/xreadlink-with-size.c.
62723         (configure.ac): Remove gl_XREADLINK invocation.
62724         (Makefile.am): Augment lib_SOURCES.
62725         * m4/xreadlink.m4: Remove file.
62726         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62727         (xreadlink_with_size): Renamed from xreadink.
62728         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62729         * modules/canonicalize (Depends-on): Replace xreadlink with
62730         xreadlink-with-size.
62731         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62732
62733 2007-02-25  Jim Meyering  <jim@meyering.net>
62734
62735         * build-aux/announce-gen: When complaining about excess arguments,
62736         list them.
62737
62738 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62739
62740         * README: Document signed integer overflow situation more
62741         accurately.
62742
62743 2007-02-25  Bruno Haible  <bruno@clisp.org>
62744
62745         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62746         'a' or 'A' conversion.
62747
62748 2007-02-25  Bruno Haible  <bruno@clisp.org>
62749
62750         * modules/filename: Renamed from modules/pathname.
62751         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62752         lib/concatpath.c with lib/concat-filename.c.
62753         (Makefile.am): Update.
62754         (Include): Replace pathname.h with filename.h.
62755         * lib/filename.h: Renamed from lib/pathname.h.
62756         (concatenated_filename): Renamed from concatenated_pathname.
62757         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62758         (concatenated_filename): Renamed from concatenated_pathname.
62759         * lib/findprog.c: Include filename.h instead of pathname.h.
62760         (find_in_path): Update.
62761         * lib/javacomp.c: Include filename.h instead of pathname.h.
62762         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62763         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62764         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62765         is_oldgcj_14_13_usable, is_javac_usable): Update.
62766         * lib/javaexec.c: Include filename.h instead of pathname.h.
62767         (execute_java_class): Update.
62768         * modules/findprog: Update.
62769         * modules/javacomp: Update.
62770         * modules/javaexec: Update.
62771         * MODULES.html.sh (File system functions): Add 'filename', remove
62772         'pathname'.
62773
62774 2007-02-25  Bruno Haible  <bruno@clisp.org>
62775
62776         * modules/printf-frexpl-tests: New file.
62777         * tests/test-printf-frexpl.c: New file.
62778
62779         * modules/printf-frexpl: New file.
62780         * lib/printf-frexpl.h: New file.
62781         * lib/printf-frexpl.c: New file.
62782         * m4/printf-frexpl.m4: New file.
62783
62784 2007-02-25  Bruno Haible  <bruno@clisp.org>
62785
62786         * modules/printf-frexp-tests: New file.
62787         * tests/test-printf-frexp.c: New file.
62788
62789         * modules/printf-frexp: New file.
62790         * lib/printf-frexp.h: New file.
62791         * lib/printf-frexp.c: New file.
62792         * m4/printf-frexp.m4: New file.
62793
62794 2007-02-25  Bruno Haible  <bruno@clisp.org>
62795
62796         Assume automake >= 1.10 for the tests.
62797         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62798         * modules/arctwo-tests: Likewise.
62799         * modules/argp-tests: Likewise.
62800         * modules/avltree-list-tests: Likewise.
62801         * modules/avltree-oset-tests: Likewise.
62802         * modules/avltreehash-list-tests: Likewise.
62803         * modules/carray-list-tests: Likewise.
62804         * modules/crc-tests: Likewise.
62805         * modules/des-tests: Likewise.
62806         * modules/gc-arcfour-tests: Likewise.
62807         * modules/gc-arctwo-tests: Likewise.
62808         * modules/gc-des-tests: Likewise.
62809         * modules/gc-hmac-md5-tests: Likewise.
62810         * modules/gc-hmac-sha1-tests: Likewise.
62811         * modules/gc-md2-tests: Likewise.
62812         * modules/gc-md4-tests: Likewise.
62813         * modules/gc-md5-tests: Likewise.
62814         * modules/gc-pbkdf2-sha1-tests: Likewise.
62815         * modules/gc-rijndael-tests: Likewise.
62816         * modules/gc-sha1-tests: Likewise.
62817         * modules/gc-tests: Likewise.
62818         * modules/getaddrinfo-tests: Likewise.
62819         * modules/hmac-md5-tests: Likewise.
62820         * modules/hmac-sha1-tests: Likewise.
62821         * modules/linked-list-tests: Likewise.
62822         * modules/linkedhash-list-tests: Likewise.
62823         * modules/lock-tests: Likewise.
62824         * modules/md2-tests: Likewise.
62825         * modules/md4-tests: Likewise.
62826         * modules/md5-tests: Likewise.
62827         * modules/rbtree-list-tests: Likewise.
62828         * modules/rbtree-oset-tests: Likewise.
62829         * modules/rbtreehash-list-tests: Likewise.
62830         * modules/read-file-tests: Likewise.
62831         * modules/rijndael-tests: Likewise.
62832         * modules/stdint-tests: Likewise.
62833         * modules/tls-tests: Likewise.
62834
62835 2007-02-24  Bruno Haible  <bruno@clisp.org>
62836
62837         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62838         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62839         function; instead check whether isnan with a double argument links.
62840         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62841         function; instead check whether isnan with a 'long double' argument
62842         links.
62843         Reported by Eric Blake <ebb9@byu.net>.
62844
62845 2007-02-24  Bruno Haible  <bruno@clisp.org>
62846
62847         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62848         defined.
62849         * lib/isnanl.c: Remove all code. Just include isnan.c.
62850         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62851
62852 2007-02-25  Jim Meyering  <jim@meyering.net>
62853
62854         Avoid conflicting types for 'unsetenv' on FreeBSD.
62855         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62856         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62857         in stdlib.h.
62858
62859 2007-02-24  Bruno Haible  <bruno@clisp.org>
62860
62861         * modules/isnanl-nolibm-tests: New file.
62862         * tests/test-isnanl.c: New file.
62863
62864         * modules/isnanl-nolibm: New file.
62865         * lib/isnanl.h: New file.
62866         * lib/isnanl.c: New file.
62867         * m4/isnanl.m4: New file.
62868
62869 2007-02-24  Bruno Haible  <bruno@clisp.org>
62870
62871         * modules/isnan-nolibm-tests: New file.
62872         * tests/test-isnan.c: New file.
62873
62874         * modules/isnan-nolibm: New file.
62875         * lib/isnan.h: New file.
62876         * lib/isnan.c: New file.
62877         * m4/isnan.m4: New file.
62878
62879 2007-02-24  Bruno Haible  <bruno@clisp.org>
62880
62881         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62882         assume that an exponent fits in 20 bits.
62883
62884 2007-02-24  Jim Meyering  <jim@meyering.net>
62885
62886         * m4/regex.m4: Update the description of the configure-time option,
62887         --without-included-regex, to state accurately what the defaults are,
62888         and perhaps to give people an idea why using this option is risky.
62889
62890 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62891
62892         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62893         loops on small arguments.  This attempts to avoid the problem
62894         Bruno Haible reported for AIX 4.3.2 in
62895         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62896
62897 2007-02-23  Bruno Haible  <bruno@clisp.org>
62898
62899         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62900         Needed for help2man.
62901
62902 2007-02-23  Karl Berry  <karl@gnu.org>
62903
62904         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62905         exists, foo.h should be cvs-ignored, not committed.
62906
62907 2007-02-23  Eric Blake  <ebb9@byu.net>
62908
62909         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62910         * lib/stat-time.h (includes): Likewise.
62911         * lib/utimecmp.c (includes): Likewise.
62912         * lib/utimens.h (includes): Likewise.
62913         * lib/getdate.y (includes): Also include "timespec.h" for use
62914         internal to the module.
62915         * modules/utimens (Depends-on): Revert yesterday's patch.
62916         * modules/nanosleep (Depends-on): Add missing dependency.
62917
62918 2007-02-22  Bruno Haible  <bruno@clisp.org>
62919
62920         * lib/glob.c: Don't include getlogin_r.h.
62921
62922 2007-02-22  Jim Meyering  <jim@meyering.net>
62923
62924         * modules/utimens (Depends-on): Add timespec, required for
62925         utimens.h's inclusion of timespec.h.
62926
62927 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62928
62929         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62930         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62931         Schwab in
62932         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62933         I'll try to think of a better way to fix the Solaris problem.
62934
62935         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62936         like glibc; on Solaris 10, it fails with errno == EINVAL.
62937         POSIX says the behavior is unspecified if the first argument is NULL,
62938         so play it safe and never pass NULL to the system getcwd.
62939
62940 2007-02-21  Jim Meyering  <jim@meyering.net>
62941
62942         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62943         of gettimeofday.  It would conflict with the one now always
62944         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62945         an IRIX 6.5 build failure.
62946
62947 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62948
62949         Minor fixups to port to Solaris 10 with Sun C 5.8.
62950         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62951         * modules/getcwd (Depends-on): Add dirfd.
62952         * lib/putenv.c (putenv): #undef it.
62953         (rpl_putenv): New decl.
62954         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62955
62956 2007-02-20  Bruno Haible  <bruno@clisp.org>
62957
62958         * modules/stdio-tests: New file.
62959         * tests/test-stdio.c: New file.
62960
62961         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62962         (Depends-on): Add stdio.
62963         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62964         (Include): Use <stdio.h> instead of vsnprintf.h.
62965         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62966         HAVE_DECL_VSNPRINTF.
62967         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62968
62969         * modules/snprintf (Files): Remove lib/snprintf.h.
62970         (Depends-on): Add stdio.
62971         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62972         (Include): Use <stdio.h> instead of snprintf.h.
62973         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62974         HAVE_DECL_SNPRINTF.
62975         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62976         * lib/getaddrinfo.c: Likewise.
62977
62978         * modules/stdio: New file.
62979         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62980         * lib/snprintf.h: Remove file.
62981         * lib/vsnprintf.h: Remove file.
62982         * lib/.cppi-disable: Remove snprintf.h.
62983         * m4/stdio_h.m4: New file.
62984         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62985
62986 2007-02-20  Jim Meyering  <jim@meyering.net>
62987
62988         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62989         used by e.g., mingw.  From Bruno Haible.
62990
62991 2007-02-19  Bruno Haible  <bruno@clisp.org>
62992
62993         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62994         warnings.
62995         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62996
62997 2007-02-19  Bruno Haible  <bruno@clisp.org>
62998
62999         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63000         from mingw users.
63001
63002 2007-02-19  Bruno Haible  <bruno@clisp.org>
63003
63004         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63005         warnings.
63006         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63007
63008 2007-02-19  Jim Meyering  <jim@meyering.net>
63009
63010         Don't use FD after a successful "fdopendir (fd)".
63011         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63012         Reset it by calling dirfd on the just-obtained DIR*.
63013
63014         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63015         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63016
63017 2007-02-18  Bruno Haible  <bruno@clisp.org>
63018
63019         * lib/readlink.c: Include <unistd.h>.
63020         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63021         HAVE_READLINK.
63022         * modules/readlink (Depends-on): Add unistd.
63023         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63024         (Include): Add <unistd.h>.
63025
63026         * lib/getlogin_r.h: Remove file.
63027         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63028         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63029         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63030         HAVE_DECL_GETLOGIN_R.
63031         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63032         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63033         (Include): Use <unistd.h> instead of getlogin_r.h.
63034
63035         * lib/getcwd.h: Remove file.
63036         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63037         * lib/xgetcwd.c: Likewise.
63038         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63039         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63040         * modules/getcwd (Files): Remove lib/getcwd.h.
63041         (Depends-on): Add unistd.
63042         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63043         (Include): Use <unistd.h> instad of getcwd.h.
63044
63045         * lib/ftruncate.c: Include <unistd.h> first.
63046         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63047         Set HAVE_FTRUNCATE.
63048         * modules/ftruncate (Depends-on): Add unistd.
63049         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63050
63051         * lib/fchdir.c: Include <unistd.h> first.
63052         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63054         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63055         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63056         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63057
63058         * lib/dup2.c: Include <unistd.h> first.
63059         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63060         HAVE_DUP2.
63061         * modules/dup2 (Depends-on): Add unistd.
63062         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63063
63064         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63065         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63066         REPLACE_CHOWN. Don't define chown as a macro here.
63067         * modules/chown (Depends-on): Add unistd.
63068         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63069
63070         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63071         Add definition for GL_LINK_WARNING.
63072         (chown, dup2): New declarations.
63073         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63074         link warning.
63075         (ftruncate): New declaration.
63076         (getcwd): New declaration, taken from old getcwd.h.
63077         (getlogin_r): New declaration, taken from old getlogin_r.h.
63078         (readlink): New declaration.
63079         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63080         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63081         (gl_PREREQ_UNISTD): Remove macro.
63082         (gl_UNISTD_MODULE_INDICATOR): New macro.
63083         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63084         many new variables. Don't set UNISTD_H.
63085         * modules/unistd (Description): Change.
63086         (Depends-on): Add link-warning.
63087         (configure.ac): Update.
63088         (Makefile.am): Create unistd.h always. Substitute many new variables
63089         into it.
63090
63091 2007-02-18  Bruno Haible  <bruno@clisp.org>
63092
63093         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63094         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63095         HAVE_GETSUBOPT.
63096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63097         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63098         * lib/getsubopt.h: Remove file.
63099         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63100         (Depends-on): Add stdlib.
63101         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63102         (Includes): Use <stdlib.h> instead of getsubopt.h.
63103         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63104         Set HAVE_GETSUBOPT.
63105         * lib/getsubopt.c: Don't include getsubopt.h.
63106
63107 2007-02-18  Bruno Haible  <bruno@clisp.org>
63108
63109         * modules/fchdir (Depends-on): Add dup2.
63110
63111 2007-02-18  Bruno Haible  <bruno@clisp.org>
63112
63113         * lib/stdlib_.h: Handle glibc's special invocation convention
63114         specially.
63115
63116 2007-02-18  Bruno Haible  <bruno@clisp.org>
63117
63118         * modules/stdlib-tests: New file.
63119         * tests/test-stdlib.c: New file.
63120
63121         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63122         (Depends-on): Add stdlib.
63123         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63124         (Includes): Use <stdlib.h> instead of mkstemp.h.
63125         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63126         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63127         * lib/mkstemp.c: Don't include mkstemp.h.
63128         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63129         * lib/stdlib--.h: Don't include mkstemp.h.
63130
63131         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63132         (Depends-on): Add stdlib.
63133         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63134         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63135         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63136         HAVE_MKDTEMP.
63137         * lib/mkdtemp.c: Don't include mkdtemp.h.
63138         * lib/clean-temp.c: Don't include mkdtemp.h.
63139
63140         * modules/exit (Files): Remove lib/exit.h.
63141         (Depends-on): Add stdlib.
63142         (Makefile.am): Remove lib_SOURCES.
63143         (Include): Use <stdlib.h> instead of exit.h.
63144         * lib/argmatch.c: Don't include exit.h.
63145         * lib/execute.c: Likewise.
63146         * lib/pagealign_alloc.c: Likewise.
63147         * lib/pipe.c: Likewise.
63148         * lib/wait-process.c: Likewise.
63149         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63150         * lib/exitfail.c: Likewise.
63151         * lib/savewd.c: Likewise.
63152         * lib/xsetenv.c: Likewise.
63153
63154         * modules/stdlib: New file.
63155         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63156         and extra comments about mkstemp().
63157         * lib/exit.h: Remove file.
63158         * lib/mkdtemp.h: Remove file.
63159         * lib/mkstemp.h: Remove file.
63160         * m4/stdlib_h.m4: New file.
63161         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63162
63163 2007-02-18  Bruno Haible  <bruno@clisp.org>
63164
63165         * modules/math-tests: New file.
63166         * tests/test-math.c: New file.
63167
63168         * modules/math: New file.
63169         * modules/mathl (Files): Remove lib/mathl.h.
63170         (Depends-on): Add math.
63171         (Makefile.am): Don't mention mathl.h.
63172         (Include): Use <math.h> instead of mathl.h.
63173         * lib/math_.h: New file.
63174         * lib/mathl.h: Remove file.
63175         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63176         mathl.h.
63177         * lib/asinl.c: Likewise.
63178         * lib/atanl.c: Likewise.
63179         * lib/ceill.c: Likewise.
63180         * lib/cosl.c: Likewise.
63181         * lib/expl.c: Likewise.
63182         * lib/floorl.c: Likewise.
63183         * lib/frexpl.c: Likewise.
63184         * lib/ldexpl.c: Likewise.
63185         * lib/logl.c: Likewise.
63186         * lib/sincosl.c: Likewise.
63187         * lib/sinl.c: Likewise.
63188         * lib/sqrtl.c: Likewise.
63189         * lib/tanl.c: Likewise.
63190         * lib/trigl.c: Likewise.
63191         * m4/math_h.m4: New file.
63192         * MODULES.html.sh (Mathematics): Add math.
63193
63194 2007-02-17  Bruno Haible  <bruno@clisp.org>
63195
63196         * modules/wctype-tests: New file.
63197         * tests/test-wctype.c: New file.
63198
63199         * modules/wchar-tests: New file.
63200         * tests/test-wchar.c: New file.
63201
63202         * modules/unistd-tests: New file.
63203         * tests/test-unistd.c: New file.
63204
63205         * modules/time-tests: New file.
63206         * tests/test-time.c: New file.
63207
63208         * modules/sysexits-tests: New file.
63209         * tests/test-sysexits.c: New file.
63210
63211         * modules/sys_time-tests: New file.
63212         * tests/test-sys_time.c: New file.
63213
63214         * modules/sys_stat-tests: New file.
63215         * tests/test-sys_stat.c: New file.
63216
63217         * modules/sys_socket-tests: New file.
63218         * tests/test-sys_socket.c: New file.
63219
63220         * modules/sys_select-tests: New file.
63221         * tests/test-sys_select.c: New file.
63222
63223         * modules/string-tests: New file.
63224         * tests/test-string.c: New file.
63225
63226         * modules/stdbool-tests: New file.
63227         * tests/test-stdbool.c: New file.
63228
63229         * modules/netinet_in-tests: New file.
63230         * tests/test-netinet_in.c: New file.
63231
63232         * modules/inttypes-tests: New file.
63233         * tests/test-inttypes.c: New file.
63234
63235         * modules/fcntl-tests: New file.
63236         * tests/test-fcntl.c: New file.
63237
63238         * modules/byteswap-tests: New file.
63239         * tests/test-byteswap.c: New file.
63240
63241         * modules/arpa_inet-tests: New file.
63242         * tests/test-arpa_inet.c: New file.
63243
63244 2007-02-17  Bruno Haible  <bruno@clisp.org>
63245
63246         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63247         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63248         if the corresponding module is not enabled. Emit link warnings if
63249         the function is used nevertheless.
63250         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63251         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63252         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63253         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63254         * modules/inttypes (Depends-on): Add link-warning.
63255         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63256         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63257         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63258         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63259         * modules/imaxdiv (configure.ac): Likewise.
63260         * modules/strtoimax (configure.ac): Likewise.
63261         * modules/strtoumax (configure.ac): Likewise.
63262
63263 2007-02-17  Bruno Haible  <bruno@clisp.org>
63264
63265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63266         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63267         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63268         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63269
63270 2007-02-17  Bruno Haible  <bruno@clisp.org>
63271
63272         * modules/link-warning: New file.
63273         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63274         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63275         * modules/string (Depends-on): Add link-warning.
63276         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63277         string.h.
63278         * MODULES.html.sh (Support for building libraries and executables): Add
63279         link-warning.
63280
63281 2007-02-17  Bruno Haible  <bruno@clisp.org>
63282
63283         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63284         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63285         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63286         long lines.
63287
63288 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63289             Bruno Haible  <bruno@clisp.org>
63290
63291         * modules/tmpfile: New file.
63292         * lib/tmpfile.c: New file.
63293         * m4/tmpfile.m4: New file.
63294         * MODULES.html.sh (func_all_modules): New section "Input/output".
63295
63296 2007-02-15  Bruno Haible  <bruno@clisp.org>
63297
63298         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63299         (supports_delete_on_close): New function.
63300         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63301
63302 2007-02-14  Bruno Haible  <bruno@clisp.org>
63303
63304         * modules/mbspcasecmp-tests: New file.
63305         * tests/test-mbspcasecmp.sh: New file.
63306         * tests/test-mbspcasecmp.c: New file.
63307
63308         New module mbspcasecmp.
63309         * modules/mbspcasecmp: New file.
63310         * lib/mbspcasecmp.c: New file.
63311         * lib/string_.h (strncasecmp): Change warning message.
63312         (mbspcasecmp): New declaration.
63313         * m4/mbspcasecmp.m4: New file.
63314         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63315         GNULIB_MBSPCASECMP.
63316         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63317         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63318
63319 2007-02-14  Bruno Haible  <bruno@clisp.org>
63320
63321         * modules/mbsncasecmp-tests: New file.
63322         * tests/test-mbsncasecmp.sh: New file.
63323         * tests/test-mbsncasecmp.c: New file.
63324
63325         New module mbsncasecmp.
63326         * modules/mbsncasecmp: New file.
63327         * lib/mbsncasecmp.c: New file.
63328         * lib/string_.h (mbsncasecmp): New declaration.
63329         * m4/mbsncasecmp.m4: New file.
63330         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63331         GNULIB_MBSNCASECMP.
63332         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63333         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63334
63335 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63336
63337         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63338         Verify that it doesn't overlap with our flags.
63339         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63340         do not have the desired effect in multibyte locales; instead, use
63341         mbscasecmp.
63342         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63343         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63344         we don't require GNU fnmatch ourselves (if our users require it, they
63345         should do so explicitly).
63346
63347         Fix regex code so it doesn't rely on strcasecmp.
63348         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63349         Otherwise, include gnulib's langinfo.h.
63350         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63351         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63352         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63353         * modules/regex (FILES): Remove m4/codeset.m4.
63354         (Depends-on): Add localcharset.  Remove strcase.
63355
63356 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63357
63358         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63359         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63360
63361 2007-02-13  Bruno Haible  <bruno@clisp.org>
63362
63363         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63364         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63365
63366 2007-02-12  Bruno Haible  <bruno@clisp.org>
63367
63368         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63369         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63370         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63371         time warning rather than a link error.
63372
63373 2007-02-12  Bruno Haible  <bruno@clisp.org>
63374
63375         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63376         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63377         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63378
63379 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63380
63381         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63382         args, not 2.
63383
63384 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63385
63386         New module 'time', so that apps can include <time.h> as per
63387         POSIX and GNU instead of separate include files like time_r.h
63388         and timegm.h.  This implementation tries out a simpler approach
63389         for replacing decls in standard include files (as compared to
63390         the string module), somewhat as an experiment.
63391
63392         * config/srclist.txt: Comment out mktime.c for now.
63393         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63394         since it doesn't apply any more.  Use generic wording instead.
63395         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63396         'time'.
63397         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63398         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63399         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63400         Don't include <sys/types.h>; no longer needed since we assume C89.
63401         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63402         * lib/strftime.c: Likewise.
63403         * lib/time_r.c: Likewise.
63404         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63405         * lib/nanosleep.c: Include <time.h> first, to check interface.
63406         * lib/strptime.c: Likewise.
63407         * lib/time_r.c: Likewise.
63408         * lib/timegm.c: Likewise.
63409         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63410         needed.
63411         * lib/timegm.c: Don't include timegm.h; no longer needed.
63412         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63413         time.h now handles any problems in that area.
63414         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63415         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63416         that time.h defines struct timespec.
63417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63418         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63419         handles that.
63420         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63421         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63422         needed.  Set REPLACE_LOCALTIME.
63423         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63424         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63425         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63426         nanosleep; time_h.m4 now does that.  Don't require
63427         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63428         module handles this now.
63429         * modules/getdate (Depends-on): Remove timespec.  Add time.
63430         * modules/nanosleep (Depends-on): Likewise.
63431         * modules/stat-time (Depends-on): Likewise.
63432         * modules/nanosleep (Include): Include time.h, not timespec.h.
63433         * modules/strptime (Files): Remove lib/strptime.h.
63434         (Depends-on): Add extensions, time.
63435         (Include): Include time.h, not strptime.h.
63436         * modules/time_r (Files): Remove lib/time_r.h.
63437         (Depends-on): Add time.
63438         (Include): Include time.h, not time_r.h.
63439         * modules/timegm: Likewise.
63440         * modules/timespec (Description): Now does timespec-related decls
63441         of our own, instead of struct timespec itself.
63442         (Depends-on): Add time; remove extensions.
63443         (Maintainer): Add self.
63444         * modules/utimecmp (Depends-on): Add time; remove timespec.
63445         * modules/utimens (Depends-on): Likewise.
63446         * modules/xnanosleep (Depends-on): Likewise.
63447
63448 2007-02-11  Bruno Haible  <bruno@clisp.org>
63449
63450         * lib/c-strstr.c: Include allocsa.h.
63451         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63452         * lib/c-strcasestr.c: Include allocsa.h.
63453         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63454         * lib/strcasestr.c: Include allocsa.h.
63455         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63456         * lib/mbsstr.c: Include allocsa.h.
63457         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63458         allocsa/freesa instead of malloc/free.
63459         * lib/mbscasestr.c: Include allocsa.h.
63460         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63461         allocsa/freesa instead of malloc/free.
63462         * modules/c-strstr (Depends-on): Add allocsa.
63463         * modules/c-strcasestr (Depends-on): Likewise.
63464         * modules/strcasestr (Depends-on): Likewise.
63465         * modules/mbsstr (Depends-on): Likewise.
63466         * modules/mbscasestr (Depends-on): Likewise.
63467
63468 2007-02-11  Bruno Haible  <bruno@clisp.org>
63469
63470         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63471
63472         * modules/mbsspn-tests: New file.
63473         * tests/test-mbsspn.sh: New file.
63474         * tests/test-mbsspn.c: New file.
63475
63476 2007-02-11  Bruno Haible  <bruno@clisp.org>
63477
63478         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63479
63480         * modules/mbspbrk-tests: New file.
63481         * tests/test-mbspbrk.sh: New file.
63482         * tests/test-mbspbrk.c: New file.
63483
63484 2007-02-11  Bruno Haible  <bruno@clisp.org>
63485
63486         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63487         unneeded cast.
63488
63489         * modules/mbscspn-tests: New file.
63490         * tests/test-mbscspn.sh: New file.
63491         * tests/test-mbscspn.c: New file.
63492
63493 2007-02-11  Bruno Haible  <bruno@clisp.org>
63494
63495         * modules/mbscasecmp-tests: New file.
63496         * tests/test-mbscasecmp.sh: New file.
63497         * tests/test-mbscasecmp.c: New file.
63498
63499 2007-02-11  Bruno Haible  <bruno@clisp.org>
63500
63501         Ensure O(n) worst-case complexity of mbscasestr.
63502         * lib/mbscasestr.c: Include stdbool.h.
63503         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63504         functions.
63505         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63506         the bookkeeping indicates that it's worth it.
63507         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63508
63509         * modules/mbscasestr-tests: New file.
63510         * tests/test-mbscasestr1.c: New file.
63511         * tests/test-mbscasestr2.sh: New file.
63512         * tests/test-mbscasestr2.c: New file.
63513         * tests/test-mbscasestr3.sh: New file.
63514         * tests/test-mbscasestr3.c: New file.
63515         * tests/test-mbscasestr4.sh: New file.
63516         * tests/test-mbscasestr4.c: New file.
63517         * m4/locale-tr.m4: New file.
63518
63519 2007-02-11  Bruno Haible  <bruno@clisp.org>
63520
63521         Ensure O(n) worst-case complexity of mbsstr.
63522         * lib/mbsstr.c: Include stdbool.h.
63523         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63524         functions.
63525         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63526         bookkeeping indicates that it's worth it.
63527         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63528
63529         * modules/mbsstr-tests: New file.
63530         * tests/test-mbsstr1.c: New file.
63531         * tests/test-mbsstr2.sh: New file.
63532         * tests/test-mbsstr2.c: New file.
63533         * tests/test-mbsstr3.sh: New file.
63534         * tests/test-mbsstr3.c: New file.
63535         * m4/locale-fr.m4: New file.
63536
63537 2007-02-11  Bruno Haible  <bruno@clisp.org>
63538
63539         * lib/mbsrchr.c (mbsrchr): Fix bug.
63540
63541         * modules/mbsrchr-tests: New file.
63542         * tests/test-mbsrchr.sh: New file.
63543         * tests/test-mbsrchr.c: New file.
63544
63545 2007-02-11  Bruno Haible  <bruno@clisp.org>
63546
63547         * lib/mbschr.c (mbschr): Fix bug.
63548
63549         * modules/mbschr-tests: New file.
63550         * tests/test-mbschr.sh: New file.
63551         * tests/test-mbschr.c: New file.
63552         * m4/locale-zh.m4: New file.
63553
63554 2007-02-11  Bruno Haible  <bruno@clisp.org>
63555
63556         Support for copying multibyte string iterators.
63557         * lib/mbiter.h: Include <string.h>.
63558         (mbiter_multi_copy): New function.
63559         (mbi_copy): New macro.
63560         * lib/mbuiter.h: Include <string.h>.
63561         (mbuiter_multi_copy): New function.
63562         (mbui_copy): New macro.
63563
63564 2007-02-11  Bruno Haible  <bruno@clisp.org>
63565
63566         New module mbslen.
63567         * modules/mbslen: New file.
63568         * lib/mbslen.c: New file.
63569         * lib/string_.h (mbslen): New declaration.
63570         * m4/mbslen.m4: New file.
63571         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63572         GNULIB_MBSLEN.
63573         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63574         * MODULES.html.sh (Internationalization functions): Add mbslen.
63575
63576 2007-02-11  Bruno Haible  <bruno@clisp.org>
63577
63578         Ensure O(n) worst-case complexity of strcasestr substitute.
63579         * lib/strcasestr.c: Include stdbool.h.
63580         (knuth_morris_pratt): New function.
63581         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63582         bookkeeping indicates that it's worth it.
63583         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63584
63585         * modules/strcasestr-tests: New file.
63586         * tests/test-strcasestr.c: New file.
63587
63588 2007-02-11  Bruno Haible  <bruno@clisp.org>
63589
63590         Ensure O(n) worst-case complexity of c_strcasestr.
63591         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63592         (knuth_morris_pratt): New function.
63593         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63594         the bookkeeping indicates that it's worth it.
63595         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63596
63597         * modules/c-strcasestr-tests: New file.
63598         * tests/test-c-strcasestr.c: New file.
63599
63600 2007-02-11  Bruno Haible  <bruno@clisp.org>
63601
63602         Ensure O(n) worst-case complexity of c_strstr.
63603         * lib/c-strstr.c: Include stdbool.h, string.h.
63604         (knuth_morris_pratt): New function.
63605         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63606         bookkeeping indicates that it's worth it.
63607         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63608
63609         * lib/c-strstr.c: Complete rewrite for maintainability.
63610
63611         * modules/c-strstr-tests: New file.
63612         * tests/test-c-strstr.c: New file.
63613
63614 2007-02-11  Bruno Haible  <bruno@clisp.org>
63615
63616         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63617         5.2.1 and earlier, whereby \055 was treated just like the range
63618         delimiter '-'.
63619         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63620
63621 2007-02-08  Bruno Haible  <bruno@clisp.org>
63622
63623         * modules/regex (Depends-on): Add stdbool.
63624         Reported by Dalibor Topic <robilad@kaffe.org>.
63625
63626 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63627
63628         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63629         Prefer returning from main to exiting from it.
63630         Remove unnecessary parens after sizeof.
63631
63632 2007-02-05  Bruno Haible  <bruno@clisp.org>
63633
63634         New module mbssep.
63635         * modules/mbssep: New file.
63636         * lib/mbssep.c: New file.
63637         * lib/string_.h (strsep): Add a conditional link warning.
63638         (mbssep): New declaration.
63639         * m4/mbssep.m4: New file.
63640         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63641         GNULIB_MBSSEP.
63642         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63643         * MODULES.html.sh (Internationalization functions): Add mbssep.
63644
63645 2007-02-05  Bruno Haible  <bruno@clisp.org>
63646
63647         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63648         Optimize search in case of 1 delimiter.
63649
63650 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63651
63652         * lib/acl.h: Include sys/types.h before sys/acl.h.
63653
63654 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63655
63656         Merge upstream fix for glibc bugzilla #3957:
63657
63658         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63659
63660         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63661         bit for RE_HAT_LISTS_NOT_NEWLINE.
63662         (build_charclass_op): Remove bogus comment.
63663
63664 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63665
63666         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63667
63668 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63669
63670         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63671         * lib/memmem.c [!defined _LIBC]: Include config.h.
63672
63673 2007-02-04  Bruno Haible  <bruno@clisp.org>
63674
63675         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63676         warning message.
63677
63678 2007-02-04  Bruno Haible  <bruno@clisp.org>
63679
63680         New module mbstok_r.
63681         * modules/mbstok_r: New file.
63682         * lib/mbstok_r.c: New file.
63683         * lib/string_.h (strtok_r): Change argument names to match the
63684         comments. Add a conditional link warning.
63685         (mbstok_r): New declaration.
63686         * m4/mbstok_r.m4: New file.
63687         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63688         GNULIB_MBSTOK_R.
63689         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63690         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63691
63692 2007-02-04  Bruno Haible  <bruno@clisp.org>
63693
63694         New module mbsspn.
63695         * modules/mbsspn: New file.
63696         * lib/mbsspn.c: New file.
63697         * lib/string_.h (strspn): Add a conditional link warning.
63698         (mbsspn): New declaration.
63699         * m4/mbsspn.m4: New file.
63700         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63701         GNULIB_MBSSPN.
63702         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63703         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63704
63705 2007-02-04  Bruno Haible  <bruno@clisp.org>
63706
63707         New module mbspbrk.
63708         * modules/mbspbrk: New file.
63709         * lib/mbspbrk.c: New file.
63710         * lib/string_.h (strpbrk): Add a conditional link warning.
63711         (mbspbrk): New declaration.
63712         * m4/mbspbrk.m4: New file.
63713         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63714         GNULIB_MBSPBRK.
63715         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63716         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63717
63718 2007-02-04  Bruno Haible  <bruno@clisp.org>
63719
63720         New module mbscspn.
63721         * modules/mbscspn: New file.
63722         * lib/mbscspn.c: New file.
63723         * lib/string_.h (strcspn): Add a conditional link warning.
63724         (mbscspn): New declaration.
63725         * m4/mbscspn.m4: New file.
63726         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63727         GNULIB_MBSCSPN.
63728         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63729         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63730
63731 2007-02-04  Bruno Haible  <bruno@clisp.org>
63732
63733         New module mbscasestr, reduced goal of strcasestr.
63734         * modules/mbscasestr: New file.
63735         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63736         (mbscasestr): Renamed from strcasestr.
63737         * lib/strcasestr.c: Don't include mbuiter.h.
63738         (strcasestr): Remove support for multibyte locales.
63739         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63740         Change the conditional link warning.
63741         (mbscasestr): New declaration.
63742         * m4/mbscasestr.m4: New file.
63743         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63744         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63745         REPLACE_STRCASESTR.
63746         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63748         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63749         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63750         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63751         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63752         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63753         (Depends-on): Remove mbuiter.
63754         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63755
63756 2007-02-04  Bruno Haible  <bruno@clisp.org>
63757
63758         Simplify handling of strncasecmp.
63759         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63760         the conditional link warning.
63761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63762         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63763         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63764         * modules/strcase (configure.ac): Don't invoke
63765         gl_STRING_MODULE_INDICATOR.
63766         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63767
63768 2007-02-04  Bruno Haible  <bruno@clisp.org>
63769
63770         New module mbscasecmp, reduced goal of strcasecmp.
63771         * modules/mbscasecmp: New file.
63772         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63773         (mbscasecmp): Renamed from strcasecmp.
63774         * lib/strcasecmp.c: Don't include mbuiter.h.
63775         (strcasecmp): Remove support for multibyte locales.
63776         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63777         Change the conditional link warning.
63778         (mbscasecmp): New declaration.
63779         * m4/mbscasecmp.m4: New file.
63780         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63781         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63782         REPLACE_STRCASECMP.
63783         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63784         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63785         GNULIB_MBSCASECMP.
63786         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63787         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63788         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63789         (Depends-on): Remove mbuiter.
63790         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63791
63792 2007-02-04  Bruno Haible  <bruno@clisp.org>
63793
63794         New module mbsstr. Remove module strstr.
63795         * modules/mbsstr: New file.
63796         * modules/strstr: Remove file.
63797         * lib/mbsstr.c: Renamed from lib/strstr.c.
63798         (mbsstr): Renamed from strstr.
63799         * lib/string_.h (strstr): Remove declaration. Change the conditional
63800         link warning.
63801         (mbsstr): New declaration.
63802         * m4/mbsstr.m4: New file.
63803         * m4/strstr.m4: Remove file.
63804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63805         REPLACE_STRSTR.
63806         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63807         Don't initialize GNULIB_STRSTR.
63808         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63809         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63810         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63811         (Support for systems lacking ANSI C 89): Remove strstr.
63812
63813 2007-02-04  Bruno Haible  <bruno@clisp.org>
63814
63815         New module mbsrchr.
63816         * modules/mbsrchr: New file.
63817         * lib/mbsrchr.c: New file.
63818         * lib/string_.h (strrchr): Add a conditional link warning.
63819         (mbsrchr): New declaration.
63820         * m4/mbsrchr.m4: New file.
63821         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63822         GNULIB_MBSRCHR.
63823         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63824         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63825
63826 2007-02-04  Bruno Haible  <bruno@clisp.org>
63827
63828         New module mbschr.
63829         * modules/mbschr: New file.
63830         * lib/mbschr.c: New file.
63831         * lib/string_.h (strchr): Add a conditional link warning.
63832         (mbschr): New declaration.
63833         * m4/mbschr.m4: New file.
63834         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63835         GNULIB_MBSCHR.
63836         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63837         * MODULES.html.sh (Internationalization functions): Add mbschr.
63838
63839 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63840
63841         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63842
63843         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63844
63845 2007-02-04  Bruno Haible  <bruno@clisp.org>
63846
63847         New module description section 'configure.ac-early'.
63848         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63849         (func_get_autoconf_early_snippet): New function.
63850         (func_import, func_create_testdir): Use it. Remove special cases for
63851         modules 'extensions' and 'lock'.
63852         * modules/extensions (configure.ac-early): Require
63853         gl_USE_SYSTEM_EXTENSIONS.
63854         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63855
63856 2007-02-04  Bruno Haible  <bruno@clisp.org>
63857
63858         Make use of gcj-4.3's -fsource and -ftarget option.
63859         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63860         and if so try the options -fsource and -ftarget.
63861         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63862         source_version, ftarget_option, target_version arguments.
63863         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63864         (is_envjavac_oldgcj_14_14_usable): Renamed from
63865         is_envjavac_gcj_14_14_usable.
63866         (is_envjavac_oldgcj_14_13_usable): Renamed from
63867         is_envjavac_gcj_14_13_usable.
63868         (is_gcj_present): Update.
63869         (is_gcj_43, is_gcj43_usable): New functions.
63870         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63871         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63872         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63873         try the options -fsource and -ftarget.
63874
63875 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63876
63877         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63878         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63879         larger value.
63880
63881 2007-02-03  Jim Meyering  <jim@meyering.net>
63882
63883         Give tools a better chance to allocate space for very large buffers.
63884         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63885
63886         Make pwd and readlink work also when run with an unreadable parent dir
63887         on systems with openat support.
63888         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63889         provided getcwd function, even when we have openat support.
63890         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63891
63892 2007-02-02  Bruno Haible  <bruno@clisp.org>
63893
63894         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63895         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63896         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63897         portability problems if one of these functions is only used on specific
63898         platforms.
63899         Reported by Paul Eggert.
63900
63901 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63902
63903         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63904         is causing more trouble than it's curing.
63905         * lib/regex_internal.h (__mempcpy): Remove.
63906         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63907         (and make the code a tad smaller to boot).
63908         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63909
63910 2007-02-02  Jim Meyering  <jim@meyering.net>
63911
63912         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63913         section, not in the Makefile.am: one.
63914
63915 2007-02-02  Eric Blake  <ebb9@byu.net>
63916
63917         * lib/strchrnul.c: Always include config.h first.
63918
63919         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63920         gnulib strstr is not necessary here.
63921
63922 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63923
63924         * m4/socklen.m4: Fix typo.
63925
63926 2007-02-02  Eric Blake  <ebb9@byu.net>
63927
63928         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63929         * modules/netinet_in (Makefile.am): Likewise.
63930
63931 2007-02-01  Bruno Haible  <bruno@clisp.org>
63932
63933         * lib/string_.h (GL_LINK_WARNING): New macro.
63934         (strcasecmp, strstr, strcasestr): If provided by the system,
63935         conditionally define as a macro that leads to a warning instead of to
63936         an error.
63937         (strncasecmp): Conditionally define as a macro that leads to a warning.
63938
63939 2007-02-01  Karl Berry  <karl@gnu.org>
63940
63941         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63942
63943 2007-02-01  Bruno Haible  <bruno@clisp.org>
63944
63945         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63946         renamings.
63947
63948 2007-02-01  Eric Blake  <ebb9@byu.net>
63949
63950         * modules/regex (Depends-on): Revert dependence on mempcpy.
63951         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63952         module's definition of mempcpy.
63953         Reported by Paul Eggert.
63954
63955 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63956
63957         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63958         the symbol XYZ before redefining it.  This fixes a problem with
63959         programs that don't use XYZ, when compiled on systems that define
63960         XYZ to something else.
63961
63962 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63963
63964         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63965         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63966         writeable to group or other and (2) is intended to have a special
63967         mode bit that is set or cleared.  In such a case, the directory
63968         should be neither group- nor other-writeable until the special
63969         mode bits are right.
63970
63971 2007-01-31  Eric Blake  <ebb9@byu.net>
63972
63973         * modules/mountlist (Depends-on): Add strstr.
63974
63975         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63976         bug.
63977         * modules/string (Makefile.am): Remove redundant replacement.
63978         * modules/regex (Depends-on): Add mempcpy.
63979
63980 2007-01-31  Bruno Haible  <bruno@clisp.org>
63981
63982         New module description field 'Link'.
63983         * gnulib-tool (func_usage): Document --extract-link-directive.
63984         (sed_extract_prog): Recognize 'Link' directive.
63985         (func_get_link_directive): New function.
63986         (func_import): Show summary of link directives.
63987         Handle --extract-link-directive option.
63988         * modules/acl (Link): New section.
63989         * modules/clock-time (Link): New section.
63990         * modules/euidaccess (Link): New section.
63991         * modules/gettext (Link): New section.
63992         * modules/iconv (Link): New section.
63993         * modules/lock (Link): New section.
63994         * modules/nanosleep (Link): New section.
63995         * modules/readline (Link): New section.
63996
63997 2007-01-27  Bruno Haible  <bruno@clisp.org>
63998
63999         Enforce the use of gnulib modules for unportable <string.h> functions.
64000         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64001         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64002         (gl_HEADER_STRING_H_BODY): Require it.
64003         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64004         the symbol XYZ to one that gives a link error.
64005         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64006         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64007         * modules/mempcpy (configure.ac): Likewise.
64008         * modules/memrchr (configure.ac): Likewise.
64009         * modules/stpcpy (configure.ac): Likewise.
64010         * modules/stpncpy (configure.ac): Likewise.
64011         * modules/strcase (configure.ac): Likewise.
64012         * modules/strcasestr (configure.ac): Likewise.
64013         * modules/strchrnul (configure.ac): Likewise.
64014         * modules/strdup (configure.ac): Likewise.
64015         * modules/strndup (configure.ac): Likewise.
64016         * modules/strnlen (configure.ac): Likewise.
64017         * modules/strpbrk (configure.ac): Likewise.
64018         * modules/strsep (configure.ac): Likewise.
64019         * modules/strstr (configure.ac): Likewise.
64020         * modules/strtok_r (configure.ac): Likewise.
64021
64022 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64023
64024         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64025
64026 2007-01-30  Jim Meyering  <jim@meyering.net>
64027
64028         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64029
64030 2007-01-29  Bruno Haible  <bruno@clisp.org>
64031
64032         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64033         * lib/execute.c: Likewise.
64034         * lib/pipe.c: Likewise.
64035         * lib/printf-args.h: Likewise.
64036         * lib/printf-args.c: Likewise.
64037         * lib/printf-parse.c: Likewise.
64038         * lib/vasnprintf.c: Likewise.
64039
64040 2007-01-29  Eric Blake  <ebb9@byu.net>
64041
64042         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64043         declaration.
64044
64045 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * lib/strptime.h (strptime): Use 'restrict' for args where
64048         POSIX requires this.
64049         * lib/strptime.c (strptime): Likewise.
64050         Change license notice from LGPL to GPL, since gnulib-tool will
64051         change this as needed.
64052         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64053         defined.
64054         Include "strptime.h" first, to check interface.
64055         Do not #undef _LIBC and _NL_CURRENT.
64056         Do not include <stdlib.h>; no longer needed.
64057         Include "time_r.h" and declare ptime_locale_status
64058         only if _LIBC is not defined.
64059         (__P): Remove unused macro.
64060         (match_string): Bring back glibc version, but use it only if _LIBC
64061         is defined.
64062         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64063         Remove unnecessary assertion and abort() call.
64064         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64065         * m4/strptime.m4: Fix serial number comment.
64066         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64067         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64068         (Depends-on): Add time_r.
64069
64070 2007-01-29  Bruno Haible  <bruno@clisp.org>
64071
64072         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64073         strptime.
64074         * modules/strptime (Depends-on): Add stdbool.
64075         * lib/strptime.h: Include <time.h> always. Add comments.
64076
64077 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64078
64079         * modules/strptime: New file.
64080         * lib/strptime.h: New file.
64081         * lib/strptime.c: New file.
64082         * m4/strptime.m4: New file.
64083
64084 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64085
64086         * MODULES.html.sh: New module mpsort.
64087         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64088
64089         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64090         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64091         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64092         All uses changed.
64093         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64094         All uses changed.
64095         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64096         to _Restrict_.
64097         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64098         the parameter matches the prototype.
64099
64100 2007-01-28  Jim Meyering  <jim@meyering.net>
64101
64102         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64103         sys/time.h here, reverting that part of the previous patch:
64104         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64105
64106 2007-01-28  Bruno Haible  <bruno@clisp.org>
64107
64108         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64109         value of $(SYS_TIME_H).
64110         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64111         remove it conditionally, too. [added by Jim Meyering]
64112         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64113         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64114         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64115         GETTIMEOFDAY_REPLACEMENT to 1.
64116
64117 2007-01-28  Bruno Haible  <bruno@clisp.org>
64118
64119         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64120         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64122         Set UNISTD_H instead of UNISTD_H2.
64123         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64124
64125 2007-01-28  Bruno Haible  <bruno@clisp.org>
64126
64127         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64128         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64129
64130 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64131
64132         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64133         (func_create_testdir): Ensure C locale for `grep' and `tr'
64134         character ranges.
64135         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64136         ACLOCAL_AMFLAGS parsing state machine.
64137
64138 2007-01-27  Bruno Haible  <bruno@clisp.org>
64139
64140         * modules/unistr/base: Update.
64141
64142 2007-01-27  Bruno Haible  <bruno@clisp.org>
64143
64144         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64145         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64146         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64147         modules/unistr/u32-mbtouc.
64148         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64149         * lib/unistr.h: Update.
64150         * lib/linebreak.c: Update.
64151         * modules/unistr/u32-mbtouc: Renamed from
64152         modules/unistr/u32-mbtouc-safe.
64153         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64154         * lib/unistr.h: Update.
64155         * lib/unistr/u32-to-u8.c: Update.
64156         * lib/unistr/u32-to-u16.c: Update.
64157
64158 2007-01-27  Bruno Haible  <bruno@clisp.org>
64159
64160         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64161         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64162         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64163         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64164         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64165         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64166         modules/unistr/u16-mbtouc.
64167         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64168         * lib/unistr.h: Update.
64169         * lib/linebreak.c: Update.
64170         * modules/linebreak: Update.
64171         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64172         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64173         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64174         * modules/unistr/u16-mbtouc: Renamed from
64175         modules/unistr/u16-mbtouc-safe.
64176         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64177         * lib/unistr.h: Update.
64178         * lib/unistr/u16-to-u8.c: Update.
64179         * modules/unistr/u16-to-u8: Update.
64180         * lib/unistr/u16-to-u32.c: Update.
64181         * modules/unistr/u16-to-u32: Update.
64182
64183 2007-01-27  Bruno Haible  <bruno@clisp.org>
64184
64185         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64186         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64187         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64188         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64189         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64190         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64191         modules/unistr/u8-mbtouc.
64192         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64193         * lib/unistr.h: Update.
64194         * lib/striconveh.c: Update.
64195         * modules/striconveh: Update.
64196         * lib/linebreak.c: Update.
64197         * modules/linebreak: Update.
64198         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64199         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64200         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64201         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64202         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64203         * lib/unistr.h: Update.
64204         * lib/striconveh.c: Update.
64205         * modules/striconveh: Update.
64206         * lib/unistr/u8-to-u16.c: Update.
64207         * modules/unistr/u8-to-u16: Update.
64208         * lib/unistr/u8-to-u32.c: Update.
64209         * modules/unistr/u8-to-u32: Update.
64210
64211 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64212
64213         Sync from Libtool.
64214         * lib/argz.c: Do not include strings.h nor memory.h, include
64215         string.h unconditionally.  Patch by Simon Josefsson.
64216
64217 2007-01-27  Bruno Haible  <bruno@clisp.org>
64218
64219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64220         from gl_HEADER_STRING_H_BODY.
64221         (gl_HEADER_STRING_H_BODY): Require it.
64222         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64223         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64224         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64225         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64226         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64227         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64228         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64229         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64230         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64231         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64232         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64233         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64234         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64235         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64236         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64237
64238 2007-01-27  Bruno Haible  <bruno@clisp.org>
64239
64240         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64241         check_PROGRAMS into noinst_PROGRAMS.
64242         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64243         check_PROGRAMS in this case.
64244         (func_import): Set for_test to false.
64245         (func_create_testdir): Set for_test to true.
64246
64247 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64248             Bruno Haible  <bruno@clisp.org>
64249
64250         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64251         (Depends-on): Add string.
64252         (Includes): Use <string.h> instead of strcasestr.h.
64253         * modules/string (Makefile.am): Also substitute the value of
64254         REPLACE_STRCASESTR.
64255         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64256         assume strcasestr is declared in <string.h> not <strings.h>. Also
64257         set REPLACE_STRCASESTR.
64258         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64259         REPLACE_STRCASESTR.
64260         * lib/strcasestr.h: Remove file.
64261         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64262         * lib/string_.h (strcasestr): New declaration.
64263
64264 2007-01-27  Bruno Haible  <bruno@clisp.org>
64265
64266         * lib/string_.h: Use 'extern'.
64267
64268 2007-01-27  Jim Meyering  <jim@meyering.net>
64269
64270         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64271         of set-but-not-used local, "q".
64272
64273         * lib/mempcpy.c: Include <config.h> before <string.h>.
64274         This fixes a compilation error on HP-UX, due to the system's
64275         "restrict"-using mempcpy prototype.
64276
64277 2007-01-26  Bruno Haible  <bruno@clisp.org>
64278
64279         Small optimization.
64280         * lib/javacomp.c: Include c-strstr.h.
64281          (is_envjavac_gcj): Use c_strstr instead of strstr.
64282         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64283
64284 2007-01-26  Bruno Haible  <bruno@clisp.org>
64285
64286         * MODULES.html.sh (Unicode string functions): Add the new modules.
64287
64288         * modules/uniconv/u32-strconv-to-locale: New file.
64289         * lib/uniconv/u32-strconv-to-locale.c: New file.
64290
64291         * modules/uniconv/u16-strconv-to-locale: New file.
64292         * lib/uniconv/u16-strconv-to-locale.c: New file.
64293
64294         * modules/uniconv/u8-strconv-to-locale: New file.
64295         * lib/uniconv/u8-strconv-to-locale.c: New file.
64296
64297         * modules/uniconv/u32-strconv-from-locale: New file.
64298         * lib/uniconv/u32-strconv-from-locale.c: New file.
64299
64300         * modules/uniconv/u16-strconv-from-locale: New file.
64301         * lib/uniconv/u16-strconv-from-locale.c: New file.
64302
64303         * modules/uniconv/u8-strconv-from-locale: New file.
64304         * lib/uniconv/u8-strconv-from-locale.c: New file.
64305
64306         * modules/uniconv/u32-strconv-to-enc: New file.
64307         * lib/uniconv/u32-strconv-to-enc.c: New file.
64308         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64309         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64310
64311         * modules/uniconv/u16-strconv-to-enc: New file.
64312         * lib/uniconv/u16-strconv-to-enc.c: New file.
64313         * lib/uniconv/u-strconv-to-enc.h: New file.
64314         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64315         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64316
64317         * modules/uniconv/u8-strconv-to-enc: New file.
64318         * lib/uniconv/u8-strconv-to-enc.c: New file.
64319         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64320         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64321
64322         * modules/uniconv/u32-strconv-from-enc: New file.
64323         * lib/uniconv/u32-strconv-from-enc.c: New file.
64324         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64325         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64326
64327         * modules/uniconv/u16-strconv-from-enc: New file.
64328         * lib/uniconv/u16-strconv-from-enc.c: New file.
64329         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64330         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64331
64332         * modules/uniconv/u8-strconv-from-enc: New file.
64333         * lib/uniconv/u8-strconv-from-enc.c: New file.
64334         * lib/uniconv/u-strconv-from-enc.h: New file.
64335         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64336         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64337
64338         * modules/uniconv/u32-conv-from-enc: New file.
64339         * lib/uniconv/u32-conv-from-enc.c: New file.
64340         * modules/uniconv/u32-conv-from-enc-tests: New file.
64341         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64342
64343         * modules/uniconv/u16-conv-from-enc: New file.
64344         * lib/uniconv/u16-conv-from-enc.c: New file.
64345         * lib/uniconv/u-conv-from-enc.h: New file.
64346         * modules/uniconv/u16-conv-from-enc-tests: New file.
64347         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64348
64349         * modules/uniconv/u8-conv-from-enc: New file.
64350         * lib/uniconv/u8-conv-from-enc.c: New file.
64351         * modules/uniconv/u8-conv-from-enc-tests: New file.
64352         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64353
64354         * modules/uniconv/base: New file.
64355         * lib/uniconv.h: New file.
64356
64357 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64358
64359         * doc/gnulib-tool.texi (Initial import): Update to match current
64360         behavior with strdup module.
64361         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64362         * lib/memmem.h: Remove; all uses removed.  This is now done
64363         by <string.h>.
64364         * lib/mempcpy.h: Likewise.
64365         * lib/memrchr.h: Likewise.
64366         * lib/stpcpy.h: Likewise.
64367         * lib/stpncpy.h: Likewise.
64368         * lib/strcase.h: Likewise.
64369         * lib/strchrnul.h: Likewise.
64370         * lib/strdup.h: Likewise.
64371         * lib/strndup.h: Likewise.
64372         * lib/strnlen.h: Likewise.
64373         * lib/strpbrk.h: Likewise.
64374         * lib/strsep.h: Likewise.
64375         * lib/strstr.h: Likewise.
64376         * lib/strtok_r.h: Likewise.
64377         * lib/string_.h: New file.
64378         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64379         Rely on <string.h> instead.
64380         * lib/canon-host.c: Likewise.
64381         * lib/chdir-long.c: Likewise.
64382         * lib/concatpath.c: Likewise.
64383         * lib/exclude.c: Likewise.
64384         * lib/fchdir.c: Likewise.
64385         * lib/getaddrinfo.c: Likewise.
64386         * lib/getcwd.c: Likewise.
64387         * lib/getsubopt.c: Likewise.
64388         * lib/glob.c: Likewise.
64389         * lib/hard-locale.c: Likewise.
64390         * lib/iconvme.c: Likewise.
64391         * lib/javacomp.c: Likewise.
64392         * lib/mempcpy.c: Likewise.
64393         * lib/memrchr.c: Likewise.
64394         * lib/regex_internal.h: Likewise.
64395         * lib/stpncpy.c: Likewise.
64396         * lib/strcasecmp.c: Likewise.
64397         * lib/strchrnul.c: Likewise.
64398         * lib/strdup.c: Likewise.
64399         * lib/striconv.c: Likewise.
64400         * lib/striconveh.c: Likewise.
64401         * lib/striconveha.c: Likewise.
64402         * lib/strncasecmp.c: Likewise.
64403         * lib/strndup.c: Likewise.
64404         * lib/strnlen.c: Likewise.
64405         * lib/strsep.c: Likewise.
64406         * lib/strstr.c: Likewise.
64407         * lib/strtok_r.c: Likewise.
64408         * lib/userspec.c: Likewise.
64409         * lib/w32spawn.h: Likewise.
64410         * lib/xstrndup.c: Likewise.
64411         * lib/mountlist.c (strstr): Remove decl.
64412         * m4/string_h.m4: New file.
64413         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64414         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64415         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64416         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64417         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64418         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64419         Set REPLACE_STRCASECMP if necessary.
64420         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64421         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64422         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64423         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64424         HAVE_DECL_STRDUP if necessary.
64425         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64426         since gl_FUNC_STRNDUP does that now.
64427         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64428         Check for decl here...
64429         (gl_PREREQ_STRNLEN): ... not here.
64430         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64431         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64432         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64433         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64434         necessary.
64435         * modules/string: New file.
64436         * modules/memmem (Files): Remove special-purpose include file.
64437         (Depends-on): Add string.
64438         (Include): Include <string.h>, not the removed file.
64439         * modules/mempcpy: Likewise.
64440         * modules/memrchr: Likewise.
64441         * modules/stpcpy: Likewise.
64442         * modules/stpncpy: Likewise.
64443         * modules/strcase: Likewise.
64444         * modules/strchrnul: Likewise.
64445         * modules/strdup: Likewise.
64446         * modules/strndup: Likewise.
64447         * modules/strnlen: Likewise.
64448         * modules/strpbrk: Likewise.
64449         * modules/strsep: Likewise.
64450         * modules/strstr: Likewise.
64451         * modules/strtok_r: Likewise.
64452         * tests/test-dirname.c: Don't include "strdup.h", since
64453         <string.h> now suffices.
64454         * tests/test-memmem.c: Don't include "memmem.h", since
64455         <string.h> now suffices.
64456
64457 2007-01-25  Bruno Haible  <bruno@clisp.org>
64458
64459         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64460         *resultp is 0.
64461
64462         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64463         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64464         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64465         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64466
64467         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64468         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64469         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64470         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64471         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64472         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64473
64474 2007-01-24  Bruno Haible  <bruno@clisp.org>
64475
64476         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64477         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64478         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64479         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64480         gl_FUNC_FTS_CORE.
64481         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64482         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64483         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64484         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64485         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64486         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64487         gl_FUNC_FCHOWNAT.
64488         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64489         gl_FUNC_STRFTIME.
64490         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64491         Reported by Ralf Wildenhues.
64492
64493 2007-01-24  Bruno Haible  <bruno@clisp.org>
64494
64495         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64496         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64497         gl_GETADDRINFO.
64498         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64499         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64500         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64501
64502 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64503
64504         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64505         Don't use 'exit'; just return from 'main'.
64506         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64507
64508         * lib/fnmatch_.h: Readjust white space and comments to match
64509         glibc, to avoid spurious diffs.
64510
64511 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64512
64513         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64514         2004-12-01 change by Jakub Jelinek, since this code won't compile
64515         if !LIBC.  Problem reported by Bob Proulx.
64516
64517 2007-01-23  Bruno Haible  <bruno@clisp.org>
64518
64519         * lib/striconveh.c: Include c-strcaseeq.h.
64520         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64521         * modules/striconveh (Depends-on): Add c-strcaseeq.
64522
64523 2007-01-23  Bruno Haible  <bruno@clisp.org>
64524
64525         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64526
64527         * modules/c-strcaseeq: New file.
64528         * lib/c-strcaseeq.h: New file.
64529
64530         * modules/streq: New file.
64531         * lib/streq.h: New file.
64532
64533 2007-01-23  Bruno Haible  <bruno@clisp.org>
64534
64535         * modules/striconveha-tests: New file.
64536         * tests/test-striconveha.c: New file.
64537
64538         * lib/striconveha.h: Include <stdbool.h>.
64539         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64540         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64541         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64542         (mem_iconveha): New function.
64543         (str_iconveha_notranslit): Renamed from str_iconveha.
64544         (str_iconveha): New function.
64545         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64546         c-strcase.
64547
64548 2007-01-23  Bruno Haible  <bruno@clisp.org>
64549
64550         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64551         encodings without forgiving before trying any encoding with handler.
64552         (str_iconveha): Try all encodings without forgiving before trying any
64553         encoding with handler.
64554
64555 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64556
64557         Import the following changes from libc.
64558
64559         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64560
64561         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64562
64563         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64564
64565         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64566         normal_bracket label.
64567
64568         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64569
64570         [BZ #361]
64571         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64572         to normal_bracket after fetching the next character.
64573
64574 2007-01-22  Bruno Haible  <bruno@clisp.org>
64575
64576         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64577         argument.
64578         * lib/striconveh.c (iconv_carefully_1): New function.
64579         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64580         argument.
64581         (str_cd_iconveh): Update.
64582         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64583         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64584         * tests/test-striconveh.c (MAGIC): New macro.
64585         (new_offsets): New function.
64586         (main): Test call with and without offsets.
64587
64588 2007-01-22  Bruno Haible  <bruno@clisp.org>
64589
64590         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64591         * modules/sys_select (Makefile.am): Likewise.
64592         * modules/sys_socket (Makefile.am): Likewise.
64593         * modules/sys_time (Makefile.am): Likewise.
64594
64595 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64596
64597         * modules/gettimeofday (License): Change from GPL to LGPL, since
64598         gettimeofday is a library function.
64599
64600 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64601
64602         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64603
64604 2007-01-21  Bruno Haible  <bruno@clisp.org>
64605
64606         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64607
64608 2007-01-21  Bruno Haible  <bruno@clisp.org>
64609
64610         * modules/striconveha: New file.
64611         * lib/striconveha.h: New file.
64612         * lib/striconveha.c: New file.
64613         * MODULES.html.sh (Internationalization functions): Add striconveha.
64614         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64615         string.
64616         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64617
64618 2007-01-21  Bruno Haible  <bruno@clisp.org>
64619
64620         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64621         * lib/striconveh.c (str_iconveh): Likewise.
64622
64623 2007-01-21  Bruno Haible  <bruno@clisp.org>
64624
64625         * lib/striconveh.h (mem_iconveh): New declaration.
64626         * lib/striconveh.c (mem_iconveh): New function.
64627         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64628
64629 2007-01-21  Bruno Haible  <bruno@clisp.org>
64630
64631         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64632
64633         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64634         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64635         original result buffer.
64636         (str_cd_iconveh): Update.
64637         * tests/test-striconveh.c (main): Update.
64638
64639         * lib/striconv.h (mem_cd_iconv): Change specification.
64640         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64641         result buffer.
64642         (str_cd_iconv): Update.
64643         * tests/test-striconv.c (main): Update.
64644
64645 2007-01-21  Bruno Haible  <bruno@clisp.org>
64646
64647         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64648
64649 2007-01-20  Jim Meyering  <jim@meyering.net>
64650
64651         * lib/userspec.c (parse_with_separator): If a user or group string
64652         starts with "+", skip the corresponding name-to-ID look-up, since
64653         such a look-up must fail: user and group names may not include "+".
64654
64655 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64656
64657         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64658         since we now assume the sys_time module.
64659         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64660         check for sys/time.h; no longer needed.
64661         * modules/poll (Depends-on): Depend on sys_time.
64662
64663 2007-01-18  Bruno Haible  <bruno@clisp.org>
64664
64665         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64666         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64667
64668         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64669         gettimeofday.
64670
64671         * tests/test-gettimeofday.c: Include <time.h>.
64672         (dummy): Remove variable.
64673
64674         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64675         gl_HEADER_SYS_TIME_H.
64676         (gl_HEADER_SYS_TIME_H): New macro.
64677
64678         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64679         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64680         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64681         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64682         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64683         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64684         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64685         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64686         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64687         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64688         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64689
64690         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64691         last change; it caused a compilation error when cross-compiling to
64692         Cygwin.
64693
64694 2007-01-18  Jim Meyering  <jim@meyering.net>
64695
64696         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64697         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64698         than the race-prone "test -d sys || mkdir sys".
64699         (configure.ac): Use AC_PROG_MKDIR_P.
64700         * modules/sys_select: Likewise.
64701         * modules/sys_socket: Likewise.
64702         * modules/sys_time: Likewise.
64703
64704 2007-01-18  Eric Blake  <ebb9@byu.net>
64705
64706         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64707         replace gettimeofday.
64708         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64709         name, to avoid infinite recursion.
64710
64711 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64712
64713         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64714         module sys_time.
64715         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64716         assume timespec.h defines struct timeval.
64717         * lib/settime.c: Likewise.
64718         * lib/utimens.c: Likewise.
64719         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64720         since we now assume the gettimeofday module.
64721         * lib/tempname.c (__gen_tempname): Likewise.
64722         * lib/gettimeofday.h: Remove.
64723         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64724         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64725         Include <time.h>, for 'time()'.
64726         (localtime_buffer_addr): Also use this workaround if
64727         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64728         to simplify the uses.  All uses changed.
64729         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64730         that #undef is inside {}, and 'const' follows type name consistently.
64731         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64732         (gettimeofday): Do not use the maximum possible value for
64733         tv->tv_usec, since that might break usages other than ls.c.
64734         Instead, we'll leave ls.c alone.  This undoes today's patch
64735         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64736         we've never observed the problem but might as well keep the
64737         canary.
64738         * lib/nanosleep.c: Include timespec.h first, for interface check.
64739         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64740         now assume the sys_time module.
64741         * lib/tempname.c: Likewise.
64742         * lib/timespec.h: Likewise.
64743         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64744         needed.
64745         * lib/strftime.c: Likewise.
64746         * lib/timespec.h: Likewise.
64747         * lib/posixtm.c: Include posixtm.h first, for interface check.
64748         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64749         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64750         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64751         * lib/sys_time_.h: New file.
64752         * lib/timespec.h (struct timespec): Use long int, not long.
64753         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64754         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64755         Remove obsolescent call to AC_HEADER_TIME.
64756         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64758         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64759         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64760         Likewise.
64761         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64762         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64763         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64764         into the sys_time module.  Check for gettimeofday just once.
64765         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64766         for gettimeofday signature to just check the signature.  Merely
64767         compile it, since linking doesn't test signature.  Improve test for
64768         whether gettimeofday.o is actually needed.
64769         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64770         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64771         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64772         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64773         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64774         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64775         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64776         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64777         than worrying about sys/time.h.
64778         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64779         Don't bother worrying about TIME_WITH_SYS_TIME.
64780         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64781         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64782         * m4/sys_time_h.m4: New file.
64783         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64784         Don't include sys/time.h.  Return from main rather than exiting.
64785         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64786         all uses changed.
64787         * modules/gethrxtime (Depends-on): Add sys_time.
64788         * modules/gettime (Depends-on): Likewise.
64789         * modules/gettimeofday (Depends-on): Likewise.
64790         * modules/nanosleep (Depends-on): Likewise.
64791         * modules/settime (Depends-on): Likewise.
64792         * modules/tempname (Depends-on): Likewise.
64793         * modules/utimens (Depends-on): Likewise.
64794         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64795         (Include): Change back to <sys/time.h>.
64796         (Maintainer): Add self.
64797         * modules/sys_time: New file.
64798         * modules/tempname (Depends-on): Add gettimeofday.
64799         * tests/test-gettimeofday.c: Include <sys/time.h>
64800         rather than gettimeofday.h.
64801
64802 2007-01-17  Bruno Haible  <bruno@clisp.org>
64803
64804         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64805         the license default to GPL.
64806         (func_create_testdir): Don't complain if a module is LGPL and its
64807         tests module depends on GPLed modules.
64808
64809 2007-01-17  Bruno Haible  <bruno@clisp.org>
64810
64811         * lib/gettimeofday.c (gettimeofday): Add code for the case
64812         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64813         maximum possible value for tv->tv_usec, rather than the minimum one.
64814
64815 2005-10-08  Martin Lambers  <marlam@marlam.de>
64816 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64817 2007-01-16  Bruno Haible  <bruno@clisp.org>
64818
64819         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64820         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64821         gl_FUNC_GETTIMEOFDAY.
64822         (Include): Add gettimeofday.h.
64823         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64824         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64825         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64826         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64827         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64828         * lib/gettimeofday.h: New file.
64829         * lib/gettimeofday.c: Include <sys/timeb.h>.
64830         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64831         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64832         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64833         fall back on time().
64834
64835         * tests/test-gettimeofday.c: New file.
64836         * modules/gettimeofday-tests: New file.
64837
64838 2007-01-16  Eric Blake  <ebb9@byu.net>
64839
64840         * modules/fnmatch (Depends-on): Depend on wchar.
64841         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64842         * m4/fnmatch.m4: Likewise.
64843         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64844         * m4/mbchar.m4: Likewise.
64845         * modules/mbswidth (Depends-on): Depend on wchar.
64846         * lib/mbswidth.c: Assume <wchar.h>.
64847         * m4/mbswidth.m4: Likewise.
64848         * modules/quotearg (Depends-on): Depend on wchar.
64849         * lib/quotearg.c: Assume <wchar.h>.
64850         * m4/quotearg.m4: Likewise.
64851         * modules/regex (Depends-on): Depend on wchar.
64852         * lib/regex_internal.h: Assume <wchar.h>.
64853         * m4/regex.m4: Likewise.
64854         * modules/stdint (Depends-on): Depend on wchar.
64855         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64856         * m4/stdint.m4: Likewise.
64857         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64858         * modules/strftime (Depends-on): Depend on wchar.
64859         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64860         * modules/strtol (Depends-on): Depend on wchar.
64861         * lib/strtol.c: Assume <wchar.h>.
64862         * modules/wcwidth (Depends-on): Depend on wchar.
64863         * lib/wcwidth.h: Assume <wchar.h>.
64864         * m4/wcwidth.m4: Likewise.
64865
64866 2007-01-16  Bruno Haible  <bruno@clisp.org>
64867
64868         * modules/csharpexec-script: New, created from...
64869         * modules/csharpexec: ... this.
64870
64871 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64872
64873         * modules/javaexec-script: New, created from...
64874         * modules/javaexec: ... this.
64875
64876 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64877
64878         * modules/poll (Dependencies): Add sys_select.
64879
64880 2007-01-15  Jim Meyering  <jim@meyering.net>
64881
64882         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64883         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64884         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64885         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64886
64887 2007-01-15  Bruno Haible  <bruno@clisp.org>
64888
64889         * modules/striconveh: New file.
64890         * lib/striconveh.h: New file.
64891         * lib/striconveh.c: New file.
64892         * MODULES.html.sh (Internationalization functions): Add striconveh.
64893
64894         * modules/striconveh-tests: New file.
64895         * tests/test-striconveh.c: New file.
64896
64897 2007-01-15  Bruno Haible  <bruno@clisp.org>
64898
64899         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64900         not from GNU libiconv or GNU libc.
64901
64902 2007-01-15  Bruno Haible  <bruno@clisp.org>
64903
64904         * doc/gnulib-intro.texi (Copyright): Explain the different license
64905         terms for module descriptions, autoconf macros, tests, documentation.
64906
64907 2007-01-14  Bruno Haible  <bruno@clisp.org>
64908
64909         * modules/striconv-tests: New file.
64910         * tests/test-striconv.c: New file.
64911
64912 2007-01-14  Bruno Haible  <bruno@clisp.org>
64913
64914         * modules/iconv-tests: New file.
64915         * tests/test-iconv.c: New file.
64916
64917 2007-01-14  Bruno Haible  <bruno@clisp.org>
64918
64919         * gnulib-tool (func_get_license): For test modules, use the license of
64920         the main module.
64921
64922 2007-01-14  Bruno Haible  <bruno@clisp.org>
64923
64924         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64925         if iconv is found to exist.
64926
64927 2007-01-14  Bruno Haible  <bruno@clisp.org>
64928
64929         * modules/c-ctype-tests: New file.
64930         * tests/test-c-ctype.c: New file.
64931
64932 2007-01-14  Bruno Haible  <bruno@clisp.org>
64933
64934         * modules/binary-io-tests: New file.
64935         * tests/test-binary-io.sh: New file.
64936         * tests/test-binary-io.c: New file.
64937
64938 2007-01-14  Bruno Haible  <bruno@clisp.org>
64939
64940         * modules/array-oset-tests: New file.
64941         * tests/test-array_oset.c: New file.
64942
64943 2007-01-14  Bruno Haible  <bruno@clisp.org>
64944
64945         * modules/array-list-tests: New file.
64946         * tests/test-array_list.c: New file.
64947
64948 2007-01-14  Bruno Haible  <bruno@clisp.org>
64949
64950         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64951         and make.
64952         Reported by Simon Josefsson in
64953         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64954
64955 2007-01-14  Bruno Haible  <bruno@clisp.org>
64956
64957         * modules/allocsa-tests: New file.
64958         * tests/test-allocsa.c: New file.
64959
64960 2007-01-14  Bruno Haible  <bruno@clisp.org>
64961
64962         * modules/fchdir (Depends-on): Add absolute-header.
64963         * modules/unistd (Depends-on): Likewise.
64964
64965 2006-12-30  Bruno Haible  <bruno@clisp.org>
64966
64967         * modules/fchdir: New file.
64968         * modules/unistd (Files): Add lib/unistd_.h.
64969         (Makefile.am): Generate unistd.h from unistd_.h.
64970         * lib/fchdir.c: New file.
64971         * lib/dirent_.h: New file.
64972         * lib/unistd_.h: New file.
64973         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64974         * m4/fchdir.m4: New file.
64975         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64976         (gl_HEADER_UNISTD): Invoke it.
64977         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64978         function.
64979         * lib/backupfile.c (opendir, closedir): Undefine.
64980         * lib/chown.c (open, close): Undefine.
64981         * lib/clean-temp.c (open, close): Undefine.
64982         * lib/copy-file.c (open, close): Undefine.
64983         * lib/execute.c (open, close): Undefine.
64984         * lib/fsusage.c (open, close): Undefine.
64985         * lib/gc-gnulib.c (open, close): Undefine.
64986         * lib/getcwd.c (opendir, closedir): Undefine.
64987         * lib/glob.c (opendir, closedir): Undefine.
64988         * lib/javacomp.c (open, close): Undefine.
64989         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64990         * lib/openat-proc.c (open, close): Undefine.
64991         * lib/pagealign_alloc.c (open, close): Undefine.
64992         * lib/pipe.c (open, close): Undefine.
64993         * lib/progreloc.c (open, close): Undefine.
64994         * lib/savedir.c (opendir, closedir): Undefine.
64995         * lib/utime.c (open, close): Undefine.
64996         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64997
64998 2007-01-10  Bruno Haible  <bruno@clisp.org>
64999
65000         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65001
65002 2007-01-12  Eric Blake  <ebb9@byu.net>
65003
65004         Provide a robust <wchar.h>.  Further simplifications are now
65005         possible in other modules, but not included here.
65006         * modules/wchar: New module.
65007         * m4/wchar.m4: New file.
65008         * lib/wchar_.h: Likewise.
65009         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65010         of the new module.
65011         * MODULES.html.sh (Extended multibyte and wide character utilities):
65012         New section.
65013
65014 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65015
65016         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65017         to a reasonable default for memory allocation.
65018         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65019         file system that reports garbage st_size values for symlinks.
65020         Problem reported by Liyang Hu.
65021
65022 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65023
65024         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65025         Emacs .#* auto-save files).
65026
65027 2007-01-11  Bruno Haible  <bruno@clisp.org>
65028
65029         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65030         directory.
65031
65032 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65033
65034         Use @...@ consistently in lib/wctype_.h.
65035         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65036         on it being set to 1 or 0.
65037         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65038         go back to AC_SUBSTing it.
65039         * modules/wctype (Makefile.am): Undo previous change.
65040
65041 2007-01-10  Eric Blake  <ebb9@byu.net>
65042
65043         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65044         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65045         * modules/wctype (Makefile.am): Likewise.
65046         Reported by Chris McGuire.
65047
65048 2007-01-10  Jim Meyering  <jim@meyering.net>
65049
65050         fts.c: a small readability/maintainability improvement
65051         * lib/fts.c (fts_read): Make this code slightly more readable and
65052         maintainable by hoisting the "sp->fts_cur = p" assignments to
65053         immediately follow the statements that set P.  Derived from
65054         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65055
65056 2007-01-10  Eric Blake  <ebb9@byu.net>
65057
65058         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65059         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65061         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65062         Reported by Chris McGuire.
65063
65064 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65065
65066         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65067         in sed script.
65068
65069 2007-01-09  Bruno Haible  <bruno@clisp.org>
65070
65071         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65072         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65073         variables.
65074         (func_module): Use them.
65075
65076 2007-01-09  Bruno Haible  <bruno@clisp.org>
65077
65078         * modules/unistr/base: New file.
65079         * lib/unistr.h: New file.
65080
65081         * modules/unistr/u8-to-u16: New file.
65082         * lib/unistr/u8-to-u16.c: New file.
65083
65084         * modules/unistr/u8-to-u32: New file.
65085         * lib/unistr/u8-to-u32.c: New file.
65086
65087         * modules/unistr/u16-to-u8: New file.
65088         * lib/unistr/u16-to-u8.c: New file.
65089
65090         * modules/unistr/u16-to-u32: New file.
65091         * lib/unistr/u16-to-u32.c: New file.
65092
65093         * modules/unistr/u32-to-u8: New file.
65094         * lib/unistr/u32-to-u8.c: New file.
65095
65096         * modules/unistr/u32-to-u16: New file.
65097         * lib/unistr/u32-to-u16.c: New file.
65098
65099         * modules/unistr/u8-check: New file.
65100         * modules/unistr/u16-check: New file.
65101         * modules/unistr/u32-check: New file.
65102         * lib/unistr/u8-check.c: New file.
65103         * lib/unistr/u16-check.c: New file.
65104         * lib/unistr/u32-check.c: New file.
65105
65106         * modules/unistr/u8-chr: New file.
65107         * modules/unistr/u16-chr: New file.
65108         * modules/unistr/u32-chr: New file.
65109         * lib/unistr/u8-chr.c: New file.
65110         * lib/unistr/u16-chr.c: New file.
65111         * lib/unistr/u32-chr.c: New file.
65112
65113         * modules/unistr/u8-cmp: New file.
65114         * modules/unistr/u16-cmp: New file.
65115         * modules/unistr/u32-cmp: New file.
65116         * lib/unistr/u8-cmp.c: New file.
65117         * lib/unistr/u16-cmp.c: New file.
65118         * lib/unistr/u32-cmp.c: New file.
65119
65120         * modules/unistr/u8-cpy: New file.
65121         * modules/unistr/u16-cpy: New file.
65122         * modules/unistr/u32-cpy: New file.
65123         * lib/unistr/u8-cpy.c: New file.
65124         * lib/unistr/u16-cpy.c: New file.
65125         * lib/unistr/u32-cpy.c: New file.
65126         * lib/unistr/u-cpy.h: New file.
65127
65128         * modules/unistr/u8-cpy-alloc: New file.
65129         * modules/unistr/u16-cpy-alloc: New file.
65130         * modules/unistr/u32-cpy-alloc: New file.
65131         * lib/unistr/u8-cpy-alloc.c: New file.
65132         * lib/unistr/u16-cpy-alloc.c: New file.
65133         * lib/unistr/u32-cpy-alloc.c: New file.
65134         * lib/unistr/u-cpy-alloc.h: New file.
65135
65136         * modules/unistr/u8-endswith: New file.
65137         * modules/unistr/u16-endswith: New file.
65138         * modules/unistr/u32-endswith: New file.
65139         * lib/unistr/u8-endswith.c: New file.
65140         * lib/unistr/u16-endswith.c: New file.
65141         * lib/unistr/u32-endswith.c: New file.
65142         * lib/unistr/u-endswith.h: New file.
65143
65144         * modules/unistr/u8-mblen: New file.
65145         * modules/unistr/u16-mblen: New file.
65146         * modules/unistr/u32-mblen: New file.
65147         * lib/unistr/u8-mblen.c: New file.
65148         * lib/unistr/u16-mblen.c: New file.
65149         * lib/unistr/u32-mblen.c: New file.
65150
65151         * modules/unistr/u8-mbtouc: New file.
65152         * modules/unistr/u16-mbtouc: New file.
65153         * modules/unistr/u32-mbtouc: New file.
65154         * lib/unistr/u8-mbtouc.c: New file.
65155         * lib/unistr/u16-mbtouc.c: New file.
65156         * lib/unistr/u32-mbtouc.c: New file.
65157
65158         * modules/unistr/u8-mbtouc-safe: New file.
65159         * modules/unistr/u16-mbtouc-safe: New file.
65160         * modules/unistr/u32-mbtouc-safe: New file.
65161         * lib/unistr/u8-mbtouc-safe.c: New file.
65162         * lib/unistr/u16-mbtouc-safe.c: New file.
65163         * lib/unistr/u32-mbtouc-safe.c: New file.
65164
65165         * modules/unistr/u8-move: New file.
65166         * modules/unistr/u16-move: New file.
65167         * modules/unistr/u32-move: New file.
65168         * lib/unistr/u8-move.c: New file.
65169         * lib/unistr/u16-move.c: New file.
65170         * lib/unistr/u32-move.c: New file.
65171         * lib/unistr/u-move.h: New file.
65172
65173         * modules/unistr/u8-next: New file.
65174         * modules/unistr/u16-next: New file.
65175         * modules/unistr/u32-next: New file.
65176         * lib/unistr/u8-next.c: New file.
65177         * lib/unistr/u16-next.c: New file.
65178         * lib/unistr/u32-next.c: New file.
65179
65180         * modules/unistr/u8-prev: New file.
65181         * modules/unistr/u16-prev: New file.
65182         * modules/unistr/u32-prev: New file.
65183         * lib/unistr/u8-prev.c: New file.
65184         * lib/unistr/u16-prev.c: New file.
65185         * lib/unistr/u32-prev.c: New file.
65186
65187         * modules/unistr/u8-set: New file.
65188         * modules/unistr/u16-set: New file.
65189         * modules/unistr/u32-set: New file.
65190         * lib/unistr/u8-set.c: New file.
65191         * lib/unistr/u16-set.c: New file.
65192         * lib/unistr/u32-set.c: New file.
65193         * lib/unistr/u-set.h: New file.
65194
65195         * modules/unistr/u8-startswith: New file.
65196         * modules/unistr/u16-startswith: New file.
65197         * modules/unistr/u32-startswith: New file.
65198         * lib/unistr/u8-startswith.c: New file.
65199         * lib/unistr/u16-startswith.c: New file.
65200         * lib/unistr/u32-startswith.c: New file.
65201         * lib/unistr/u-startswith.h: New file.
65202
65203         * modules/unistr/u8-stpcpy: New file.
65204         * modules/unistr/u16-stpcpy: New file.
65205         * modules/unistr/u32-stpcpy: New file.
65206         * lib/unistr/u8-stpcpy.c: New file.
65207         * lib/unistr/u16-stpcpy.c: New file.
65208         * lib/unistr/u32-stpcpy.c: New file.
65209         * lib/unistr/u-stpcpy.h: New file.
65210
65211         * modules/unistr/u8-stpncpy: New file.
65212         * modules/unistr/u16-stpncpy: New file.
65213         * modules/unistr/u32-stpncpy: New file.
65214         * lib/unistr/u8-stpncpy.c: New file.
65215         * lib/unistr/u16-stpncpy.c: New file.
65216         * lib/unistr/u32-stpncpy.c: New file.
65217         * lib/unistr/u-stpncpy.h: New file.
65218
65219         * modules/unistr/u8-strcat: New file.
65220         * modules/unistr/u16-strcat: New file.
65221         * modules/unistr/u32-strcat: New file.
65222         * lib/unistr/u8-strcat.c: New file.
65223         * lib/unistr/u16-strcat.c: New file.
65224         * lib/unistr/u32-strcat.c: New file.
65225         * lib/unistr/u-strcat.h: New file.
65226
65227         * modules/unistr/u8-strchr: New file.
65228         * modules/unistr/u16-strchr: New file.
65229         * modules/unistr/u32-strchr: New file.
65230         * lib/unistr/u8-strchr.c: New file.
65231         * lib/unistr/u16-strchr.c: New file.
65232         * lib/unistr/u32-strchr.c: New file.
65233
65234         * modules/unistr/u8-strcmp: New file.
65235         * modules/unistr/u16-strcmp: New file.
65236         * modules/unistr/u32-strcmp: New file.
65237         * lib/unistr/u8-strcmp.c: New file.
65238         * lib/unistr/u16-strcmp.c: New file.
65239         * lib/unistr/u32-strcmp.c: New file.
65240
65241         * modules/unistr/u8-strcpy: New file.
65242         * modules/unistr/u16-strcpy: New file.
65243         * modules/unistr/u32-strcpy: New file.
65244         * lib/unistr/u8-strcpy.c: New file.
65245         * lib/unistr/u16-strcpy.c: New file.
65246         * lib/unistr/u32-strcpy.c: New file.
65247         * lib/unistr/u-strcpy.h: New file.
65248
65249         * modules/unistr/u8-strcspn: New file.
65250         * modules/unistr/u16-strcspn: New file.
65251         * modules/unistr/u32-strcspn: New file.
65252         * lib/unistr/u8-strcspn.c: New file.
65253         * lib/unistr/u16-strcspn.c: New file.
65254         * lib/unistr/u32-strcspn.c: New file.
65255         * lib/unistr/u-strcspn.h: New file.
65256
65257         * modules/unistr/u8-strdup: New file.
65258         * modules/unistr/u16-strdup: New file.
65259         * modules/unistr/u32-strdup: New file.
65260         * lib/unistr/u8-strdup.c: New file.
65261         * lib/unistr/u16-strdup.c: New file.
65262         * lib/unistr/u32-strdup.c: New file.
65263         * lib/unistr/u-strdup.h: New file.
65264
65265         * modules/unistr/u8-strlen: New file.
65266         * modules/unistr/u16-strlen: New file.
65267         * modules/unistr/u32-strlen: New file.
65268         * lib/unistr/u8-strlen.c: New file.
65269         * lib/unistr/u16-strlen.c: New file.
65270         * lib/unistr/u32-strlen.c: New file.
65271         * lib/unistr/u-strlen.h: New file.
65272
65273         * modules/unistr/u8-strmblen: New file.
65274         * modules/unistr/u16-strmblen: New file.
65275         * modules/unistr/u32-strmblen: New file.
65276         * lib/unistr/u8-strmblen.c: New file.
65277         * lib/unistr/u16-strmblen.c: New file.
65278         * lib/unistr/u32-strmblen.c: New file.
65279
65280         * modules/unistr/u8-strmbtouc: New file.
65281         * modules/unistr/u16-strmbtouc: New file.
65282         * modules/unistr/u32-strmbtouc: New file.
65283         * lib/unistr/u8-strmbtouc.c: New file.
65284         * lib/unistr/u16-strmbtouc.c: New file.
65285         * lib/unistr/u32-strmbtouc.c: New file.
65286
65287         * modules/unistr/u8-strncat: New file.
65288         * modules/unistr/u16-strncat: New file.
65289         * modules/unistr/u32-strncat: New file.
65290         * lib/unistr/u8-strncat.c: New file.
65291         * lib/unistr/u16-strncat.c: New file.
65292         * lib/unistr/u32-strncat.c: New file.
65293         * lib/unistr/u-strncat.h: New file.
65294
65295         * modules/unistr/u8-strncmp: New file.
65296         * modules/unistr/u16-strncmp: New file.
65297         * modules/unistr/u32-strncmp: New file.
65298         * lib/unistr/u8-strncmp.c: New file.
65299         * lib/unistr/u16-strncmp.c: New file.
65300         * lib/unistr/u32-strncmp.c: New file.
65301
65302         * modules/unistr/u8-strncpy: New file.
65303         * modules/unistr/u16-strncpy: New file.
65304         * modules/unistr/u32-strncpy: New file.
65305         * lib/unistr/u8-strncpy.c: New file.
65306         * lib/unistr/u16-strncpy.c: New file.
65307         * lib/unistr/u32-strncpy.c: New file.
65308         * lib/unistr/u-strncpy.h: New file.
65309
65310         * modules/unistr/u8-strnlen: New file.
65311         * modules/unistr/u16-strnlen: New file.
65312         * modules/unistr/u32-strnlen: New file.
65313         * lib/unistr/u8-strnlen.c: New file.
65314         * lib/unistr/u16-strnlen.c: New file.
65315         * lib/unistr/u32-strnlen.c: New file.
65316         * lib/unistr/u-strnlen.h: New file.
65317
65318         * modules/unistr/u8-strpbrk: New file.
65319         * modules/unistr/u16-strpbrk: New file.
65320         * modules/unistr/u32-strpbrk: New file.
65321         * lib/unistr/u8-strpbrk.c: New file.
65322         * lib/unistr/u16-strpbrk.c: New file.
65323         * lib/unistr/u32-strpbrk.c: New file.
65324         * lib/unistr/u-strpbrk.h: New file.
65325
65326         * modules/unistr/u8-strrchr: New file.
65327         * modules/unistr/u16-strrchr: New file.
65328         * modules/unistr/u32-strrchr: New file.
65329         * lib/unistr/u8-strrchr.c: New file.
65330         * lib/unistr/u16-strrchr.c: New file.
65331         * lib/unistr/u32-strrchr.c: New file.
65332
65333         * modules/unistr/u8-strspn: New file.
65334         * modules/unistr/u16-strspn: New file.
65335         * modules/unistr/u32-strspn: New file.
65336         * lib/unistr/u8-strspn.c: New file.
65337         * lib/unistr/u16-strspn.c: New file.
65338         * lib/unistr/u32-strspn.c: New file.
65339         * lib/unistr/u-strspn.h: New file.
65340
65341         * modules/unistr/u8-strstr: New file.
65342         * modules/unistr/u16-strstr: New file.
65343         * modules/unistr/u32-strstr: New file.
65344         * lib/unistr/u8-strstr.c: New file.
65345         * lib/unistr/u16-strstr.c: New file.
65346         * lib/unistr/u32-strstr.c: New file.
65347         * lib/unistr/u-strstr.h: New file.
65348
65349         * modules/unistr/u8-strtok: New file.
65350         * modules/unistr/u16-strtok: New file.
65351         * modules/unistr/u32-strtok: New file.
65352         * lib/unistr/u8-strtok.c: New file.
65353         * lib/unistr/u16-strtok.c: New file.
65354         * lib/unistr/u32-strtok.c: New file.
65355         * lib/unistr/u-strtok.h: New file.
65356
65357         * modules/unistr/u8-uctomb: New file.
65358         * modules/unistr/u16-uctomb: New file.
65359         * modules/unistr/u32-uctomb: New file.
65360         * lib/unistr/u8-uctomb.c: New file.
65361         * lib/unistr/u16-uctomb.c: New file.
65362         * lib/unistr/u32-uctomb.c: New file.
65363
65364         * MODULES.html.sh (Unicode string functions): Add the new modules.
65365
65366 2007-01-08  Bruno Haible  <bruno@clisp.org>
65367
65368         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65369         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65370         subdirectories.
65371
65372 2007-01-08  Karl Berry  <karl@gnu.org>
65373
65374         * doc/error.texi: mention that main() fns must set program_name
65375         when progname is used.
65376
65377 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65378
65379         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65380         WCTYPE_H is empty, for the benefit of builds from non-distclean
65381         directories.  Problem reported by Eric Blake in
65382         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65383
65384 2007-01-08  Bruno Haible  <bruno@clisp.org>
65385
65386         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65387         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65388         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65389         PROVIDE_CANONICALIZE_FILENAME_MODE.
65390         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65391
65392 2007-01-08  Bruno Haible  <bruno@clisp.org>
65393
65394         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65395         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65396         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65397         * lib/fts.c: Likewise.
65398         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65399
65400 2006-12-25  Bruno Haible  <bruno@clisp.org>
65401
65402         * modules/utf8-ucs4-safe: New file.
65403         * lib/utf8-ucs4-safe.h: New file.
65404         * lib/unistr/utf8-ucs4-safe.c: New file.
65405
65406         * modules/utf16-ucs4-safe: New file.
65407         * lib/utf16-ucs4-safe.h: New file.
65408         * lib/unistr/utf16-ucs4-safe.c: New file.
65409
65410         * MODULES.html.sh (Unicode string functions): Add the new modules.
65411
65412 2007-01-08  Bruno Haible  <bruno@clisp.org>
65413
65414         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65415         (Depends-on): Add unitypes.
65416         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65417         (u8_mbtouc_aux): Move out to separate file.
65418         (u8_mbtouc): Use ucs4_t, uint8_t types.
65419         * lib/unistr/utf8-ucs4.c: New file.
65420
65421         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65422         (Depends-on): Add unitypes.
65423         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65424         (u16_mbtouc_aux): Move out to separate file.
65425         (u16_mbtouc): Use ucs4_t, uint16_t types.
65426         * lib/unistr/utf16-ucs4.c: New file.
65427
65428         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65429         (Depends-on): Add unitypes.
65430         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65431         (u8_uctomb_aux): Move out to separate file.
65432         (u8_uctomb): Use ucs4_t, uint8_t types.
65433         * lib/unistr/ucs4-utf8.c: New file.
65434
65435         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65436         (Depends-on): Add unitypes.
65437         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65438         (u16_uctomb_aux): Move out to separate file.
65439         (u16_uctomb): Use ucs4_t, uint16_t types.
65440         * lib/unistr/ucs4-utf16.c: New file.
65441
65442 2006-12-25  Bruno Haible  <bruno@clisp.org>
65443
65444         * modules/unitypes: New file.
65445         * lib/unitypes.h: New file.
65446         * MODULES.html.sh (func_all_modules): New section "Unicode string
65447         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65448         this section. Add unitypes.
65449
65450 2007-01-08  Bruno Haible  <bruno@clisp.org>
65451
65452         Avoid variable names that conflict with those from libtool.
65453         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65454         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65455         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65456         library_names_spec to acl_library_names_spec, hardcode_* to
65457         acl_hardcode_*.
65458         Reported by Ralf Wildenhues.
65459
65460 2007-01-08  Bruno Haible  <bruno@clisp.org>
65461
65462         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65463         definition.
65464         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65465         definition.
65466         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65467         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65468         definition.
65469         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65470         definition.
65471         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65472         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65473         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65474         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65475         definition.
65476         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65477         definition.
65478         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65479         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65480         GC_USE_<algorithm>.
65481         * lib/gc-libgcrypt.c: Likewise.
65482         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65483         * modules/gc-arctwo (configure.ac): Likewise.
65484         * modules/gc-des (configure.ac): Likewise.
65485         * modules/gc-hmac-md5 (configure.ac): Likewise.
65486         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65487         * modules/gc-md2 (configure.ac): Likewise.
65488         * modules/gc-md4 (configure.ac): Likewise.
65489         * modules/gc-md5 (configure.ac): Likewise.
65490         * modules/gc-random (configure.ac): Likewise.
65491         * modules/gc-rijndael (configure.ac): Likewise.
65492         * modules/gc-sha1 (configure.ac): Likewise.
65493
65494 2007-01-08  Bruno Haible  <bruno@clisp.org>
65495
65496         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65497         macro definition.
65498         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65499         definition.
65500         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65501         definition.
65502         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65503         * modules/fcntl-safer (configure.ac): Likewise.
65504         * modules/fopen-safer (configure.ac): Likewise.
65505         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65506         GNULIB_FWRITEERROR macro definition.
65507
65508 2007-01-08  Bruno Haible  <bruno@clisp.org>
65509
65510         * m4/gnulib-common.m4: New file.
65511         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65512         (func_get_filelist): Add m4/gnulib-common.m4.
65513
65514 2007-01-08  Bruno Haible  <bruno@clisp.org>
65515
65516         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65517         command.
65518
65519 2007-01-08  Jim Meyering  <jim@meyering.net>
65520
65521         Use a more robust test for a "can't happen" condition.
65522         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65523         narrowed the st_size value.  Presuming the "can't happen" condition
65524         is true, that narrowing could conceivably convert an invalid st_size
65525         value into a valid one.  Instead, use a change based on Matthew
65526         Woehlke's original patch.
65527
65528         Slight readability improvement: use an assert-like macro
65529         in place of literal "abort ()" uses.
65530         * lib/fts.c (fts_assert): Define.
65531         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65532         Use this macro instead of a bare 'abort'.
65533
65534 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65535
65536         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65537         simply work around them.
65538         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65539         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65540         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65541         declaring.
65542         Don't bother to define as macros, since the standard doesn't require it.
65543         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65544         longer worry about IRIX 5.3.
65545         (HAVE_WCTYPE_CTMP_BUG): Remove.
65546
65547 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65548
65549         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65550         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65551         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65552         Problems reported by Georg Schwarz for IRIX 5.3.
65553
65554         * gnulib-tool (autoconf_minversion): Take the maximum version number
65555         found, not the minimum.  Problem reported by James Youngman.
65556
65557 2007-01-03  Karl Berry  <karl@gnu.org>
65558
65559         * doc/error.texi: new file, explaining interaction with progname.
65560         * doc/gnulib.texi: include it.  Update copyright.
65561
65562 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65563
65564         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65565         AC_CANONICAL_HOST, to improve autobuild outputs.
65566
65567 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65568             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65569
65570         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65571         sockets, server sockets, and other file descriptors.  Count errors
65572         to compute the return value.  Reorder the code a bit to be easier
65573         to follow.  Don't set event bits that were not requested (except
65574         POLLERR and POLLHUP).
65575
65576 2007-01-01  Bruno Haible  <bruno@clisp.org>
65577
65578         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65579
65580 2007-01-03  Jim Meyering  <jim@meyering.net>
65581
65582         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65583
65584 2007-01-02  Bruno Haible  <bruno@clisp.org>
65585
65586         * modules/settime (Include): Require timespec.h.
65587         * modules/nanosleep (Include): Likewise.
65588
65589 2007-01-01  Bruno Haible  <bruno@clisp.org>
65590
65591         * gnulib-tool (func_emit_copyright_notice): Bump year.
65592         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65593
65594 2007-01-01  Bruno Haible  <bruno@clisp.org>
65595
65596         Improve support for OpenBSD.
65597         * build-aux/config.rpath (libname_spec): Export.
65598         (library_names_spec): New variable. Export.
65599         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65600         library_names_spec from the config.rpath output. Locate shared library
65601         through the name pattern in library_names_spec.
65602
65603 2007-01-01  Eric Blake  <ebb9@byu.net>
65604
65605         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65606
65607 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65608
65609         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65610         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65611         assume the C locale, and avoid an "eval" that could cause trouble.
65612         Problem with SORT reported by Bob Proulx.
65613
65614         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65615         Define.  Trivial patch from Henning Nielsen Lund, originally
65616         sent to bug-grep@gnu.org today.
65617
65618 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65619
65620         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65621         struct stat.  Problem reported by Henning Nielsen Lund.
65622         * lib/acl.c: Include acl.h first, to check interface.  Don't
65623         bother to include sys/types.h and sys/stat.h again.
65624
65625 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65626
65627         Import the following change from libc; problem reported by
65628         Sven Verdoolaege.
65629
65630         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65631
65632         [BZ #1373]
65633         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65634
65635 2006-12-28  Jim Meyering  <jim@meyering.net>
65636
65637         * build-aux/announce-gen: Do not assume that the package
65638         builds any of tar.gz, tar.bz2, and .xdelta files.
65639         Suggestion from Simon Josefsson.
65640
65641 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65642
65643         * modules/announce-gen: New file.
65644
65645 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65646
65647         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65648         handles its gotchas now.
65649         * lib/mbswidth.c: Likewise.
65650         * lib/wcwidth.h: Likewise.
65651         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65652         and iswcntrl; the wctype module does this stuff now.
65653         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65654         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65655         * modules/mbchar (Depends-on): Add wctype.
65656         * modules/mbswidth (Depends-on): Likewise.
65657         * modules/wcwidth (Depends-on): Likewise.
65658
65659 2006-12-27  Eric Blake  <ebb9@byu.net>
65660
65661         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65662         module uses more than what <wctype.h> is required to provide.
65663
65664 2006-12-26  Eric Blake  <ebb9@byu.net>
65665
65666         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65667
65668 2006-12-26  Eric Blake  <ebb9@byu.net>
65669
65670         * modules/absolute-header: New module.
65671         * modules/fcntl (Depends-on): Depend on it.
65672         * modules/inttypes (Depends-on): Likewise.
65673         * modules/stdint (Depends-on): Likewise.
65674         * modules/sys_stat (Depends-on): Likewise.
65675         * modules/wctype (Depends-on): Likewise.
65676         * MODULES.html.sh (Support for building libraries and
65677         executables): Document it.
65678
65679 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65680
65681         * gnulib-tool (SED): Remove, undoing previous change.
65682         The problem was that it broke coreutils on Solaris, because
65683         "sed --posix" leaked into a makefile.
65684         (sed): New alias, if 'alias' and GNU sed.
65685
65686 2006-12-24  Jim Meyering  <jim@meyering.net>
65687
65688         Work around an fchownat bug in glibc-2.4:
65689         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65690         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65691         in spite of the -P option.
65692         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65693         New macros.
65694         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65695         * modules/openat (Files): Add lib/fchownat.c.
65696         * lib/openat.c (fchownat): Don't define here.  Move to...
65697         * lib/fchownat.c: ...this new file.
65698
65699 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65700
65701         Fix bug reported by Bruno Haible in
65702         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65703         where quotearg.c didn't compile on Mac OS X 10.2 because it
65704         lacks <wchar.h> and wint_t.
65705         * lib/wctype_.h (__wctype_wint_t): New type.
65706         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65707         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65708         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65709         Arg is now of type __wctype_wint_t, not wint_t.
65710         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65711         substitute HAVE_WINT_T.
65712         * modules/wctype (Files): Add m4/wint_t.m4.
65713         (wctype.h): Substitute HAVE_WINT_T.
65714
65715 2006-12-23  Bruno Haible  <bruno@clisp.org>
65716
65717         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65718
65719 2006-12-23  Bruno Haible  <bruno@clisp.org>
65720
65721         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65722         S_ISLNK.
65723         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65724         mingw.
65725
65726 2006-12-22  Bruno Haible  <bruno@clisp.org>
65727
65728         * lib/copy-file.c: Include acl.h.
65729         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65730         Close the file descriptors only after being done with copy_acl.
65731         * modules/copy-file (Depends-on): Add acl.
65732
65733 2006-12-22  Bruno Haible  <bruno@clisp.org>
65734
65735         * gnulib-tool (SED): New variable.
65736         Use $SED instead of sed everywhere.
65737
65738 2006-12-22  Bruno Haible  <bruno@clisp.org>
65739
65740         * modules/no-c++: New file.
65741         * m4/no-c++.m4: New file.
65742         * MODULES.html.sh (Support for building libraries and executables):
65743         Add no-c++.
65744
65745 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65746
65747         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65748         Include <limits.h>, and use its INT_MAX to rewrite the
65749         j loop so that it does not overflow 'int'.  Problem reported by
65750         Ralf Wildenhues in
65751         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65752         Play it safe by shifting left by 1 rather than multiplying by 2,
65753         as GCC is less likely to optimize this away when the value
65754         is signed (when it assumes overflow leads to undefined behavior).
65755         Also, don't assume time_t uses two's complement.
65756
65757 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65758
65759         * MODULES.html.sh: New module wctype.
65760         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65761         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65762         <wctype.h>, since the new wctype module should fix this.
65763         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65764         the wctype module should arrange for it.
65765         * lib/regex_internal.h: Likewise.
65766         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65767         since the wctype module should handle this now.
65768         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65769         * modules/fnmatch (Depends-on): Add wctype.
65770         * modules/quotearg (Depends-on): Likewise.
65771         * modules/regex (Depends-on): Likewise.
65772
65773 2006-12-19  Bruno Haible  <bruno@clisp.org>
65774
65775         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65776         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65777
65778 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65779
65780         * modules/savewd (Depends-on): Fix dependency on fcntl.
65781
65782 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65783
65784         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65785         conforms to C99, rather than relying on the user's environment
65786         setting of STDINT_H.
65787
65788 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65789         and Eric Blake  <ebb9@byu.net>
65790
65791         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65792         This is more consistent with the other defines here.
65793         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65794         Port to z/OS.  Problem reported by Paul Gilmartin.
65795         Change local vars to use gl_ prefix rather than ac_.
65796         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65797         with other defines.
65798         * modules/double-slash-root: New module.
65799         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65800         (Depends-on): Add double-slash-root.
65801         * MODULES.html.sh (File system functions): Mention new module.
65802
65803 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65804
65805         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65806         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65807         This is for the benefit of gzip, which doesn't do i18n.
65808
65809 2006-12-12  Jim Meyering  <jim@meyering.net>
65810
65811         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65812         Reported by Andreas Schwab <schwab@suse.de>.
65813
65814 2006-12-12  Bruno Haible  <bruno@clisp.org>
65815
65816         Merge these changes.
65817         2006-09-05  Bruno Haible  <bruno@clisp.org>
65818         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65819         iconv_alloc succeeded.
65820         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65821         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65822         test for " && dest " at the end - dest is always != NULL there. Call
65823         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65824         with 2xNULL arguments, also to flush the state storage. Handle the
65825         IRIX iconv behaviour. Realloc the final result, to throw away unused
65826         memory.
65827
65828 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65829
65830         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65831         and fchmodat unconditionally, since glibc 2.4 has them.
65832         Problem reported by Arkadiusz Miskiewicz.
65833
65834 2006-12-10  Bruno Haible  <bruno@clisp.org>
65835
65836         * gnulib-tool (func_import): Show the include files only for those
65837         modules that are copied and specified.
65838         Reported by Karl Berry.
65839
65840 2006-12-08  Jim Meyering  <jim@meyering.net>
65841
65842         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65843         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65844
65845         * build-aux/announce-gen: Add two new options, both optional:
65846         --bootstrap-tools=TOOL_LIST
65847               a comma-separated list of tools, e.g.,
65848               autoconf,automake,bison,gnulib
65849         --gnulib-snapshot-date=DATE
65850               if gnulib is in the bootstrap tool list,
65851               then report this as the snapshot date.
65852               If not specified, use the current date/time.
65853               If you specify a date here, be sure it's UTC.
65854
65855 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65856
65857         * tests/test-argp-2.sh: Fix test to match actual output.
65858         (func_compare): Fix sed script to be portable.
65859
65860 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65861
65862         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65863         workaround for this case.  It is not autoconfigured now; offhand
65864         it's hard to see how to autoconfigure it.
65865
65866 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65867
65868         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65869         a directory that is about to be chowned.  Such a directory's
65870         initial file permissions should permit the owner only and this
65871         should not be changed until after the chown, since the group and
65872         other bits would be incorrect if they granted permission before
65873         the chown.
65874
65875         Fix porting problem for iswctype reported by Georg Schwarz in:
65876         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65877         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65878         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65879         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65880         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65881
65882 2006-12-03  Jim Meyering  <jim@meyering.net>
65883
65884         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65885         p->fts_statp may not yet be defined.
65886         (fts_read): Instead, set it in the caller, once p->fts_statp is
65887         sure to be defined, and corresponds to a top-level directory.
65888         This bug made du -x fail.  Here's the coreutils test case:
65889         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65890         Reported by Mike Frysinger.
65891
65892 2006-12-01  Jim Meyering  <jim@meyering.net>
65893
65894         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65895         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65896         Reported by Simon Josefsson.
65897
65898 2006-11-30  Jim Meyering  <jim@meyering.net>
65899
65900         * m4/warning.m4: Use the all-permissive copyright notice
65901         recommended by RMS (rather than LGPL).
65902         * m4/vararrays.m4: Likewise.
65903         * m4/flexmember.m4: Likewise.
65904
65905 2006-11-29  Bruno Haible  <bruno@clisp.org>
65906
65907         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65908         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65909         using +=.
65910         Reported by Simon Josefsson <simon@josefsson.org>.
65911
65912 2006-11-28  James Youngman <jay@gnu.org>
65913
65914         * README: Advise users that they might find the bug-gnulib@gnu.org
65915         and autotools-announce@gnu.org mailing lists useful.
65916
65917 2006-11-28  Bruno Haible  <bruno@clisp.org>
65918
65919         * m4/ptrdiff_max.m4: Remove file.
65920
65921 2006-11-21  Bruno Haible  <bruno@clisp.org>
65922
65923         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65924         _AC_COMPUTE_INT.
65925         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65926         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65927         _AC_COMPUTE_INT.
65928         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65929         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65930         _AC_COMPUTE_INT.
65931         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65932
65933 2006-11-28  Jim Meyering  <jim@meyering.net>
65934
65935         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65936         warning from "gcc -Wshadow" about shadowing the builtin.
65937
65938 2006-11-27  Bruno Haible  <bruno@clisp.org>
65939
65940         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65941         _AC_COMPUTE_INT.
65942         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65943
65944 2006-11-27  Bruno Haible  <bruno@clisp.org>
65945             Paul Eggert  <eggert@cs.ucla.edu>
65946
65947         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65948
65949 2006-11-26  Bruno Haible  <bruno@clisp.org>
65950
65951         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65952         noinst_LTLIBRARIES.
65953
65954 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65955             Bruno Haible  <bruno@clisp.org>
65956
65957         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65958         if compiling with "gcc -ansi".
65959
65960 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65961
65962         Fix some incompatibilities with gcc -ansi -pedantic.
65963         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65964         if compiling pedantically with GCC, unless it's C99 or later.
65965         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65966         it mishandles gcc -ansi -pedantic as well.
65967         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65968         if gcc -pedantic.
65969         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65970         initializers for struct if -pedantic, unless it's C99 or later.
65971
65972 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65973
65974         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65975         Don't close an fd more than once. Identical atimes indicate
65976         success, not failure.
65977
65978 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65979
65980         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65981
65982 2006-11-23  Jim Meyering  <jim@meyering.net>
65983
65984         * build-aux/announce-gen: New file.  From coreutils.
65985
65986 2006-11-22  Jim Meyering  <jim@meyering.net>
65987
65988         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65989         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65990         (fts_read): Use a temporary to narrow the overused st_size member
65991         before using it in a switch statement.  Reported by Matthew Woehlke.
65992
65993         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65994         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65995
65996 2006-11-20  Bruno Haible  <bruno@clisp.org>
65997
65998         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65999         changequote instead of pairs of brackets.
66000         Reported by Andreas Schwab <schwab@suse.de>.
66001
66002 2006-11-21  Jim Meyering  <jim@meyering.net>
66003
66004         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66005         so as to remain compatible with older compilers.
66006         Patch from Michael Deutschmann.
66007
66008 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66009
66010         * MODULES.html.sh (File system functions): Add openat.
66011
66012         * lib/openat.h (rpl_fstatat): New macro, if
66013         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66014         (fstatat): Define to rpl_fstatat under the same conditions,
66015         unless COMPILING_FSTATAT.
66016         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66017         seems to have the bug.
66018         * lib/fstatat.c: New file.
66019         * modules/openat (Files): Add it.
66020
66021 2006-11-20  Bruno Haible  <bruno@clisp.org>
66022
66023         * Makefile: New file.
66024
66025 2006-11-20  Jim Meyering  <jim@meyering.net>
66026
66027         The beginnings of syntax-related checks for gnulib.
66028         * lib/Makefile: New file.
66029         * lib/t-idcache: New script.  Ensure that the two halves of
66030         idcache.c stay in sync.
66031
66032         * lib/idcache.c: Adjust comments in user- and group- portions to
66033         be more accurate, and to be consistent with one another.
66034
66035 2006-11-20  Jim Meyering  <jim@meyering.net>
66036
66037         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66038         continue using the flexible array member (thus, this module performs
66039         half as many malloc calls), with the addition that...
66040         (getgroup, getuser): Consistently record a non-match via an empty
66041         "name" string, and map an empty string match to a NULL return value.
66042         * modules/idcache (Depends-on): Re-add flexmember.
66043
66044         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66045         (getuidbyname, getgroup, getgidbyname): Likewise.
66046
66047         Use cleaner syntax: NULL rather than 0.
66048         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66049
66050 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66051
66052         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66053         It mishandled the case where the group was missing.
66054         Problem reported by Greg Schafer.
66055         * modules/idcache: Likewise.
66056
66057 2006-11-18  Jim Meyering  <jim@meyering.net>
66058
66059         * check-module (%exempt_header): Add exception for some
66060         conditionally-included headers.
66061
66062         * modules/i-ring (Depends-on): Add verify.
66063         (License): Change to LGPL.
66064
66065 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66066
66067         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66068         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66069         and inttostr.h.  Use snprintf rather than uinttostr, so that
66070         LGPLed code doesn't depend on GPLed.
66071
66072 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66073
66074         * modules/inline (License): Change from GPL to LGPL.
66075
66076 2006-11-17  Jim Meyering  <jim@meyering.net>
66077
66078         * modules/d-type (License): Switch to LGPL.
66079
66080 2006-11-15  Bruno Haible  <bruno@clisp.org>
66081
66082         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66083
66084 2006-11-15  Eric Blake  <ebb9@byu.net>
66085
66086         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66087         the module dependency.
66088
66089 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66090             Bruno Haible  <bruno@clisp.org>
66091
66092         * gnulib-tool (func_create_testdir): Add license consistency check.
66093
66094 2006-11-15  Eric Blake  <ebb9@byu.net>
66095
66096         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66097         random "(cached)" in configure output.
66098
66099 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66100
66101         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66102         test for conforming inttypes.h is both announced and cached.
66103
66104         * MODULES.html.sh (seen_modules, seen_files): New variables.
66105         (func_module): Rewrite to use a few less gnulib-tool and sed
66106         invocations.  Avoid a couple of quadratic algorithms for ...
66107         (missed_modules, missed_files): ... these, with ...
66108         (func_append, func_tmpdir): ... these new functions, from
66109         gnulib-tool.  Analogously, install traps for cleanup.
66110
66111         * tests/test-gc.c (main): Remove unused variables.
66112         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66113
66114 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66115
66116         * modules/inttostr (License): Change to LGPL.
66117
66118 2006-11-14  Eric Blake  <ebb9@byu.net>
66119
66120         * modules/tempname (License): Change to LGPL.
66121
66122 2006-11-14  Eric Blake  <ebb9@byu.net>
66123
66124         * doc/functions.texi (Function Portability): *printf functions on
66125         Cygwin now understand all POSIX size specifiers.
66126
66127 2006-11-14  Bruno Haible  <bruno@clisp.org>
66128
66129         * modules/c-ctype (License): Change to LGPL.
66130
66131 2006-11-12  Bruno Haible  <bruno@clisp.org>
66132
66133         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66134         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66135         for GNOME libraries, for which the include files are installed in
66136         subdirectories of $prefix/include.
66137
66138 2006-11-12  Bruno Haible  <bruno@clisp.org>
66139
66140         * m4/lib-link.m4: Require at least autoconf-2.54.
66141         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66142         name to underscores for the --with option.
66143
66144 2006-11-13  Bruno Haible  <bruno@clisp.org>
66145
66146         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66147         the tests directory.
66148         Reported by Ralf Wildenhues.
66149
66150 2006-11-13  Bruno Haible  <bruno@clisp.org>
66151
66152         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66153         (func_emit_initmacro_end): Undo the override here.
66154         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66155         Works around the famous automake error in coreutils.
66156
66157 2006-11-13  Eric Blake  <ebb9@byu.net>
66158
66159         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66160         element, not its node.
66161
66162 2006-11-12  Bruno Haible  <bruno@clisp.org>
66163
66164         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66165         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66166
66167 2006-11-12  Bruno Haible  <bruno@clisp.org>
66168
66169         * gnulib-tool: New option --local-symlink.
66170         (func_usage): Document it.
66171         (lsymbolic): New variable.
66172         (func_import, func_create_testdir): If --symlink was not specified,
66173         test whether --local-symlink was specified and the file comes from
66174         the local_gnulib_dir.
66175
66176 2006-11-12  Bruno Haible  <bruno@clisp.org>
66177
66178         * gnulib-tool (func_ln): New function.
66179         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66180
66181 2006-11-12  Bruno Haible  <bruno@clisp.org>
66182
66183         Finish support for source files in subdirectories.
66184         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66185         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66186         AUTOMAKE_OPTIONS.
66187         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66188
66189 2006-11-12  Bruno Haible  <bruno@clisp.org>
66190
66191         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66192         EXTRA_lib_SOURCES augmentation.
66193         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66194
66195 2006-11-12  Jim Meyering  <jim@meyering.net>
66196
66197         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66198         file descriptors.  This also averts a failure on systems with
66199         native openat support when a traversed directory lacks "x" access.
66200         * lib/fts_.h: Include "i-ring.h"
66201         (struct FTS) [fts_fd_ring]: New member.
66202         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66203         (FCHDIR): Add parentheses.
66204         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66205         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66206         When descending, rather than simply closing the previous
66207         fts_cwd_fd value, push that file descriptor onto the ring.
66208         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66209         (fts_open): Initialize the new fd_ring member.
66210         (fts_close): Clear the ring.
66211         (fts_safe_changedir): When possible, use our new fd_ring to skip
66212         the diropen and fstat and dev/ino comparison that would normally
66213         accompany a virtual `chdir ("..")'.
66214
66215         * modules/fts (Depends-on): Add i-ring.
66216         * modules/i-ring: New module.
66217         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66218         * m4/i-ring.m4: New file.
66219
66220 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66221
66222         * gnulib-tool (func_create_testdir): Fix replacement of
66223         `build-aux' in configure.ac.  Run autotools in gltests
66224         subdirectory.
66225         (func_create_testdir, func_create_megatestdir, test): There is
66226         no need for '--force' in most autotool invocations in a new
66227         tree.  Actually fail the whole test if any of the tools, or the
66228         configure or make stages fail.
66229
66230         Sync from Automake.
66231         * build-aux/gnupload: Revert last change.  Add pointer to upload
66232         instructions of the GNU Maintenance Instructions.
66233         Suggestion by Karl Berry.
66234
66235 2006-11-10  Jim Meyering  <jim@meyering.net>
66236
66237         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66238
66239 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66240
66241         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66242         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66243         (bind_textdomain_codeset) [! ENABLE_NLS]:
66244         Evaluate all the arguments.  That way, callers get compatible behavior
66245         if the arguments have side effects.  Also, it avoids some GCC
66246         diagnostics in some cases; Joel E. Denny reported problems when Bison
66247         was configured with --enable-gcc-warnigs.
66248
66249 2006-11-10  Jim Meyering  <jim@meyering.net>
66250
66251         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66252         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66253         account.
66254
66255 2006-11-10  Jim Meyering  <jim@meyering.net>
66256
66257         * modules/inline: New file/module.
66258         * modules/xalloc (Files): Remove m4/inline.m4.
66259         (Depends-on): Add inline, instead.
66260         * modules/oset: Likewise.
66261         * modules/list: Likewise.
66262
66263 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66264
66265         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66266         Problem reported by Matthew Woehlke.
66267
66268 2006-11-09  Bruno Haible  <bruno@clisp.org>
66269
66270         * lib/tempname.c (gen_tempname): Remove variant that invokes
66271         __gen_tempname.
66272         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66273         __gen_tempname.
66274
66275 2006-11-08  Bruno Haible  <bruno@clisp.org>
66276
66277         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66278         to 'yes' instead of 'cross-compiling'.
66279
66280 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66281
66282         * lib/quotearg.h (quotearg_free): New decl.
66283         * lib/quotearg.c (quotearg_free): New function.
66284         (slot0, nslots, slotvec0, slotvec):
66285         Now file-scope so that quotearg_free can get at them.
66286
66287 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66288
66289         Sync from Automake.
66290         * build-aux/gnupload: Add missing 'gnu' to example URL.
66291         Report by Karl Berry.
66292
66293 2006-11-08  Bruno Haible  <bruno@clisp.org>
66294
66295         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66296         Suggested by Paul Eggert.
66297
66298 2006-11-08  Jim Meyering  <jim@meyering.net>
66299
66300         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66301         It's already included if !_LIBC.
66302         (fts_safe_changedir): Add a comment.
66303
66304 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66305
66306         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66307         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66308         Matthew Woehlke.
66309
66310         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66311         definitions up, to avoid colliding with change below.
66312         (static_inline) [HAVE_INLINE]: New macro.
66313         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66314         Provide extern decls when !HAVE_INLINE.  Do not define unless
66315         static_inline is defined, either by us or by xmalloc.c.  Use
66316         static_inline rather than static inline.
66317         (XCALLOC): Optimize sizeof(T) = 1 case.
66318         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66319
66320 2006-11-07  Bruno Haible  <bruno@clisp.org>
66321
66322         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66323         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66324         AC_C_INLINE.
66325         * modules/xalloc (Files): Add m4/inline.m4.
66326
66327 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66328
66329         * README: Fix typo.
66330         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66331         (Miscellanous Notes): ...from this.
66332
66333 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66334
66335         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66336         Mention that offsetof should be used instead of sizeof.
66337         From Bruno Haible.
66338
66339 2006-11-07  Bruno Haible  <bruno@clisp.org>
66340
66341         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66342
66343 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66344
66345         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66346         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66347         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66348         (gl_tree_add_before, gl_tree_add_after):
66349         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66350         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66351         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66352         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66353         (gl_linked_add_after, gl_linked_add_at): Likewise.
66354         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66355         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66356         (gl_tree_add_before, gl_tree_add_after): Likewise.
66357         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66358         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66359         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66360
66361 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66362
66363         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66364
66365 2006-11-06  Bruno Haible  <bruno@clisp.org>
66366
66367         * m4/inline.m4: New file.
66368         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66369         * modules/list (Files): Add m4/inline.m4.
66370         * modules/oset (Files): Likewise.
66371
66372 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66373
66374         * lib/idcache.c: Include <stddef.h>, for offsetof.
66375         (struct userid.name): Change from char * to a flexible array member.
66376         All uses changed.
66377         * modules/idcache (Depends-on): Add flexmember.
66378
66379         * MODULES.html.sh (Core language properties): New module flexmember.
66380         * modules/flexmember, m4/flexmember.m4: New files.
66381
66382         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66383         inline functions that are identical with the old xnmalloc_inline,
66384         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66385         that we can avoid some unnecessary integer multiplications and
66386         divisions in the common case where the element size is known at
66387         compile time.
66388         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66389         needed.
66390         (xnboundedmalloc): Remove.
66391         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66392         arguments, for consistency with rest of this header.
66393         (xcharalloc): Rewrite using XNMALLOC.
66394         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66395         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66396         versions have been moved to lib/xalloc.h and renamed to be the
66397         non-*_inline versions.
66398         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66399         and xnrealloc functions, since those functions are now inline and
66400         now call us.
66401         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66402         renaming described above.
66403         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66404         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66405         captures the dependency in AC_C_INLINE.
66406
66407         New module canonicalize-lgpl, proposed by Charles Wilson in
66408         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66409         with a few small changes afterwards.
66410         * MODULES.html.sh (File system functions): New module
66411         canonicalize-lgpl.
66412         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66413         and canonicalize_file_name.
66414         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66415         * modules/canonicalize-lgpl: New files.
66416
66417 2006-11-05  Bruno Haible  <bruno@clisp.org>
66418
66419         * gnulib-tool (func_import, func_create_testdir): Create directories
66420         also for files in subdirectories of lib/.
66421
66422 2006-11-05  Bruno Haible  <bruno@clisp.org>
66423
66424         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66425         ANSI C compliant.
66426
66427 2006-11-03  Bruno Haible  <bruno@clisp.org>
66428
66429         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66430         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66431         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66432         (xnboundedmalloc): New inline function.
66433         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66434         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66435         xmalloc.
66436         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66437         xmalloc.
66438         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66439         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66440         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66441         xmalloc.
66442         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66443         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66444         xmalloc.
66445         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66446         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66447         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66448         xmalloc.
66449         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66450         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66451         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66452         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66453         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66454         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66455         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66456
66457 2006-11-03  Bruno Haible  <bruno@clisp.org>
66458
66459         * lib/c-ctype.h [C++]: Define functions without name mangling.
66460         * lib/fwriteerror.h [C++]: Likewise.
66461         * lib/gcd.h [C++]: Likewise.
66462         * lib/linebreak.h [C++]: Likewise.
66463
66464 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66465
66466         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66467         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66468         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66469         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66470         Check for functions and headers just once.
66471         Check for declaration of canonicalize_file_name.
66472         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66473
66474 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66475
66476         * gnulib-tool (func_import): Fix typo in actioncmd.
66477
66478 2006-11-02  Bruno Haible  <bruno@clisp.org>
66479
66480         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66481         newline sequence in the Makefile.am snippet as a space, like "make"
66482         does.
66483         Reported by Roger Persson <perrog@gmail.com>.
66484
66485 2006-11-01  Bruno Haible  <bruno@clisp.org>
66486
66487         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66488         already declared in <string.h>.
66489         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66490
66491 2006-11-01  Bruno Haible  <bruno@clisp.org>
66492
66493         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66494         * lib/strcase.h: Include <string.h>.
66495         (strcasecmp): Define to rpl_strcasecmp here.
66496
66497 2006-11-01  Bruno Haible  <bruno@clisp.org>
66498
66499         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66500
66501 2006-11-01  Eric Blake  <ebb9@byu.net>
66502
66503         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66504
66505         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66506
66507 2006-10-29  Bruno Haible  <bruno@clisp.org>
66508
66509         Make it compile in C++ mode.
66510         * lib/full-write.c (full_rw): Add a cast.
66511
66512 2006-11-01  Bruno Haible  <bruno@clisp.org>
66513
66514         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66515         be POSIX compliant.
66516         Reported by Roger Persson <perrog@gmail.com>.
66517
66518 2006-11-01  Eric Blake  <ebb9@byu.net>
66519
66520         * lib/getopt_.h: Fix comments.
66521
66522 2006-10-31  Eric Blake  <ebb9@byu.net>
66523
66524         * modules/tmpdir (Depends-on): Add sys_stat.
66525         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66526         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66527         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66528         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66529         tempname.
66530
66531 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66532
66533         Avoid some C++ diagnostics reported by Bruno Haible.
66534         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66535         xmalloc.
66536         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66537         (struct slotvec): Move to top level.
66538         (quotearg_n_options): Rewrite to avoid xmalloc.
66539         * lib/xalloc.h (xcharalloc): New function.
66540         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66541         [defined __cplusplus]: Add function template that provides result
66542         type propagation.  This part of the change is from Bruno Haible.
66543
66544 2006-10-29  Bruno Haible  <bruno@clisp.org>
66545
66546         Make it compile in C++ mode.
66547         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66548         * lib/strnlen1.c (strnlen1): Cast memchr result.
66549         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66550         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66551         (create_temp_dir): Rename local variable 'template'.
66552         (compile_csharp_using_sscli): Add cast.
66553         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66554         * lib/findprog.c (find_in_path): Likewise.
66555         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66556         * lib/wait-process.c (register_slave_subprocess): Likewise.
66557
66558 2006-10-22  Bruno Haible  <bruno@clisp.org>
66559
66560         * modules/tsearch: New file.
66561         * lib/tsearch.h: New file.
66562         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66563         * m4/tsearch.m4: New file.
66564         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66565
66566 2006-10-29  Eric Blake  <ebb9@byu.net>
66567
66568         * lib/arcfour.c: Assume config.h.
66569         * lib/arctwo.c: Likewise.
66570         * lib/base64.c: Likewise.
66571         * lib/check-version.c: Likewise.
66572         * lib/crc.c: Likewise.
66573         * lib/des.c: Likewise.
66574         * lib/gc-gnulib.c: Likewise.
66575         * lib/gc-libgcrypt.c: Likewise.
66576         * lib/gc-pbkdf2-sha1.c: Likewise.
66577         * lib/getaddrinfo.c: Likewise.
66578         * lib/getdelim.c: Likewise.
66579         * lib/getline.c: Likewise.
66580         * lib/hmac-md5.c: Likewise.
66581         * lib/hmac-sha1.c: Likewise.
66582         * lib/iconvme.c: Likewise.
66583         * lib/md2.c: Likewise.
66584         * lib/md4.c: Likewise.
66585         * lib/memxor.c: Likewise.
66586         * lib/read-file.c: Likewise.
66587         * lib/readline.c: Likewise.
66588         * lib/rijndael-alg-fst.c: Likewise.
66589         * lib/rijndael-api-fst.c: Likewise.
66590         * lib/xgetdomainname.c: Likewise.
66591
66592 2006-10-28  Eric Blake  <ebb9@byu.net>
66593
66594         * lib/xstrndup.c: Assume config.h.
66595
66596 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66597
66598         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66599         stat-macros.h is now for our own macros, whereas stat_h is for
66600         macros in the <sys/stat.h> name space.
66601         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66602         (STAT_MACROS_H): Remove.
66603         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66604         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66605         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66606         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66607         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66608         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66609         Move these macros to ...
66610         * lib/stat_.h: here.  Don't include stat-macros.h.
66611         * lib/canonicalize.c: Don't include stat-macros.h.
66612         * lib/chown.c: Likewise.
66613         * lib/euidaccess.c: Likewise.
66614         * lib/file-type.c: Likewise.
66615         * lib/filemode.c: Likewise.
66616         * lib/glob.c: Likewise.
66617         * lib/isapipe.c: Likewise.
66618         * lib/lchown.c: Likewise.
66619         * lib/lstat.c: Likewise.
66620         * lib/mkdir-p.c: Likewise.
66621         * lib/rmdir.c: Likewise.
66622         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66623         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66624         unless mkdir isn't declared, to speed up 'configure'.
66625         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66626         would define all the S_* symbols.
66627         * modules/canonicalize (Depends-on):
66628         Depend on sys_stat, not stat-macros.
66629         * modules/chown: Likewise.
66630         * modules/euidaccess: Likewise.
66631         * modules/filemode: Likewise.
66632         * modules/file-type: Likewise.
66633         * modules/glob: Likewise.
66634         * modules/isapipe: Likewise.
66635         * modules/lchown: Likewise.
66636         * modules/lstat: Likewise.
66637         * modules/mkancesdirs: Likewise.
66638         * modules/rmdir: Likewise.
66639         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66640         * modules/modechange: Likewise.
66641         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66642         (configure.ac): Remove gl_STAT_MACROS.
66643         * modules/sys_stat (Depends-on): Remove stat-macros.
66644
66645 2006-10-27  Bruno Haible  <bruno@clisp.org>
66646
66647         * m4/signed.m4: Remove file.
66648         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66649         invocation.
66650         * modules/vasnprintf (Files): Remove m4/signed.m4.
66651
66652 2006-10-27  Bruno Haible  <bruno@clisp.org>
66653
66654         Update to GNU gettext 0.16.
66655         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66656         m4/inttypes-h.m4, m4/signed.m4.
66657         * m4/gettext.m4: Update to GNU gettext 0.16.
66658         * m4/intl.m4: New file, from GNU gettext.
66659         * m4/intldir.m4: New file, from GNU gettext.
66660         * config/srclist.txt: Update
66661
66662 2006-10-27  Eric Blake  <ebb9@byu.net>
66663
66664         * MODULES.html.sh: Document tempname.
66665         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66666         dependencies.
66667         (Files): Move lib/tempname.c...
66668         * modules/tempname: ...to this new module.
66669         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66670         (gl_PREREQ_TEMPNAME): Move...
66671         * m4/tempname.m4: ...to this new file.
66672         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66673         * modules/sys_stat (Depends-on): Add stat-macros.
66674         * lib/stat_.h (includes): Pick up stat macros.
66675         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66676         if stat macros are broken.
66677         * lib/tempname.c (includes): No need to include "stat-macros.h".
66678         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66679         (direxists, __path_search) [!_LIBC]: Don't compile these in
66680         gnulib; the tmpdir module covers that.
66681         * lib/tempname.h: New file.
66682
66683 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66684
66685         * COPYING: Explain how gnulib-tool converts licence headers.
66686         Almost all wording by Eric Blake.
66687
66688 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66689
66690         * lib/mbchar.h (is_basic_table): Make read-only.
66691         * lib/mbchar.c (is_basic_table): Likewise.
66692         Reported by John Darrington.
66693
66694 2006-10-25  Bruno Haible  <bruno@clisp.org>
66695
66696         * lib/progname.h (set_program_name): Undefine before defining.
66697
66698 2006-10-25  Bruno Haible  <bruno@clisp.org>
66699
66700         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66701         false for non-gcc C++ compilers.
66702         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66703
66704 2006-10-24  Bruno Haible  <bruno@clisp.org>
66705
66706         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66707         iconv implementations like Irix iconv.
66708
66709 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66710
66711         * modules/vararrays: New file.
66712         * m4/vararrays.m4: New file, taken from diffutils.
66713         * MODULES.html.sh: New module vararrays.
66714
66715 2006-10-24  Karl Berry  <karl@gnu.org>
66716
66717         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66718         Don't call GNU Unix.
66719
66720 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66721
66722         * users.txt: Add Libtool.
66723
66724         Sync from Libtool:
66725
66726         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66727
66728         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66729         to gnulib's policy of including config.h unconditionally.
66730
66731 2006-10-24  Bruno Haible  <bruno@clisp.org>
66732
66733         * modules/wcwidth (Files): Add m4/wint_t.m4.
66734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66735         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66736
66737 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66738
66739         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66740         to pacify GCC with some -W flags enabled.  Problem reported by
66741         Bruno Haible.
66742
66743 2006-10-24  Jim Meyering  <jim@meyering.net>
66744
66745         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66746         Reported by Karl Berry.
66747
66748 2006-10-23  Bruno Haible  <bruno@clisp.org>
66749
66750         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66751
66752 2006-10-24  Bruno Haible  <bruno@clisp.org>
66753
66754         * lib/gl_list.h: Use C comment style, not C++ comment style.
66755
66756 2006-10-23  Eric Blake  <ebb9@byu.net>
66757
66758         * lib/getaddrinfo.c (includes): Add missing include.
66759
66760 2006-10-23  Bruno Haible  <bruno@clisp.org>
66761             Paul Eggert  <eggert@cs.ucla.edu>
66762
66763         Ability to rename obstack_free.
66764         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66765         obstack_free.
66766         (obstack_free): Invoke the __obstack_free macro.
66767         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66768
66769 2006-10-23  Bruno Haible  <bruno@clisp.org>
66770             Paul Eggert  <eggert@cs.ucla.edu>
66771
66772         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66773         __argc, __argv from the declaration. (They are defined as macros on
66774         mingw.)
66775
66776 2006-10-22  Bruno Haible  <bruno@clisp.org>
66777
66778         * doc/gnulib-intro.texi: New file.
66779         * doc/gnulib.texi: Include it.
66780
66781 2006-10-21  Bruno Haible  <bruno@clisp.org>
66782
66783         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66784         "Introduction", "Miscellanous Notes", "Particular Modules".
66785
66786 2006-10-21  Bruno Haible  <bruno@clisp.org>
66787
66788         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66789         Change mostlyclean-local rule to avoid sh syntax error from bash
66790         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66791
66792 2006-10-23  Jim Meyering  <jim@meyering.net>
66793
66794         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66795         in place of snprintf.
66796
66797         * modules/inttostr (Files): Add lib/uinttostr.c.
66798         * lib/uinttostr.c (inttostr): New file/function.
66799         * lib/inttostr.h (uinttostr): Declare.
66800         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66801         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66802         Add uinttostr.
66803         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66804
66805 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         * lib/canonicalize.c (ELOOP): Define if not already defined.
66808         Problem reported by Bruno Haible in
66809         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66810
66811 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66812
66813         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66814         Problem reported by Perry Smith and Ville Laurikari.
66815
66816         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66817         uses.
66818
66819 2006-10-19  Bruno Haible  <bruno@clisp.org>
66820
66821         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66822         for mingw.
66823
66824 2006-10-19  Bruno Haible  <bruno@clisp.org>
66825
66826         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66827         Needed for mingw.
66828
66829 2006-10-19  Bruno Haible  <bruno@clisp.org>
66830
66831         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66832
66833 2006-10-19  Bruno Haible  <bruno@clisp.org>
66834
66835         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66836         it.
66837
66838 2006-10-19  Bruno Haible  <bruno@clisp.org>
66839
66840         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66841         invocation.
66842
66843 2006-10-19  Bruno Haible  <bruno@clisp.org>
66844
66845         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66846         mountlist by default.
66847
66848 2006-10-16  Bruno Haible  <bruno@clisp.org>
66849
66850         * lib/c-strstr.c: Include c-strstr.h.
66851
66852 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66853
66854         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66855         in a slash.
66856
66857 2006-10-18  Bruno Haible  <bruno@clisp.org>
66858
66859         * lib/lock.h [C++]: Wrap definitions in extern "C".
66860
66861 2006-10-18  Bruno Haible  <bruno@clisp.org>
66862
66863         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66864         gl_LIBOBJS list.
66865
66866 2006-10-18  Bruno Haible  <bruno@clisp.org>
66867
66868         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66869
66870 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66871
66872         * lib/xstrtol.h: Include gettext.h.
66873         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66874         Problem reported by Eric Blake.
66875         * modules/xstrtol (Depends-on): Add gettext-h.
66876
66877 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66878
66879         * lib/strftime.c (advance): New macro.
66880         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66881         incomplete type, so you can't add 0 to it.  Problem and patch
66882         reported by Eelco Dolstra for dietlibc.
66883
66884 2006-10-18  Jim Meyering  <jim@meyering.net>
66885
66886         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66887         type for a local, and rename it: s/up/user_proc/.
66888
66889 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66890
66891         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66892         READ_UTMP_USER_PROCESS.
66893         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66894
66895 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66896
66897         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66898         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66899
66900 2006-10-17  Eric Blake  <ebb9@byu.net>
66901
66902         * lib/sigprocmask.c (sigprocmask): Fix typo.
66903
66904         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66905
66906         * modules/clean-temp (Makefile.am): Don't add to make output...
66907         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66908         config.h.
66909
66910 2006-10-17  Bruno Haible  <bruno@clisp.org>
66911
66912         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66913         differently if DEFAULT_TEXT_DOMAIN is set.
66914
66915 2006-10-16  Bruno Haible  <bruno@clisp.org>
66916
66917         * lib/clean-temp.c: Include fwriteerror.h.
66918
66919 2006-10-16  Bruno Haible  <bruno@clisp.org>
66920
66921         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66922
66923 2006-10-16  Bruno Haible  <bruno@clisp.org>
66924
66925         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66926         * lib/sigprocmask.h: Include <sys/types.h>.
66927         (sigset_t): Use the system's definition if present.
66928
66929 2006-10-17  Eric Blake  <ebb9@byu.net>
66930
66931         * lib/xvasprintf.c (includes): Assume config.h.
66932         * lib/xasprintf.c (includes): Likewise.
66933
66934 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66937         at least as wide as intmax_t.
66938
66939 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66940
66941         (Imported from Automake.)
66942         * build-aux/gnupload: Update to version 1.1 of directive file.
66943
66944 2006-10-16  Eric Blake  <ebb9@byu.net>
66945
66946         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66947         match Automake 1.10a.
66948
66949 2006-10-14  Bruno Haible  <bruno@clisp.org>
66950
66951         * modules/sigprocmask: New file.
66952         * lib/sigprocmask.h: New file.
66953         * lib/sigprocmask.c: New file.
66954         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66955         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66956         request sigprocmask.o.
66957         (gl_PREREQ_SIGPROCMASK): New macro.
66958         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66959         (Depends-on): Add sigprocmask.
66960         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66961         gt_SIGNALBLOCKING. Test for 'raise' only once.
66962         * lib/fatal-signal.c: Include sigprocmask.h.
66963         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66964         unblock_fatal_signals): Define always.
66965         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66966         sigprocmask.
66967
66968 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66969
66970         Sync from Automake.
66971         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66972         which incorrectly sets the mode of an existing destination
66973         directory.  In some cases the unpatched install-sh could do the
66974         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66975         system.  We hope this is rare in practice, but it's clearly worth
66976         fixing.  Problem reported by Alex Unleashed in
66977         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66978         Also, don't bother to check for -m bugs unless we're using -m;
66979         suggested by Stepan Kasal.
66980
66981 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66982
66983         Sync from Automake.
66984         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66985         `-c' flag, so they appear at the same position as in %FASTDEP%
66986         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66987         which ignores unknown options only after the first non-option.
66988         Bug report against M4 by Nelson H. F. Beebe.
66989
66990 2006-10-13  Jim Meyering  <jim@meyering.net>
66991
66992         Fix a bug in yesterday's change.
66993         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66994         p->fts_statp->st_dev would be used uninitialized.
66995         Ensures that we always call fts_stat on the very first entry.
66996         Miklos Szeredi reported that find -xdev stopped working.
66997
66998 2006-10-12  Bruno Haible  <bruno@clisp.org>
66999
67000         * gnulib-tool (func_get_automake_snippet): Append an automatically
67001         computed EXTRA_DIST augmentation.
67002         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67003         * modules/alloca-opt (Makefile.am): Likewise.
67004         * modules/allocsa (Makefile.am): Likewise.
67005         * modules/arcfour (Makefile.am): Likewise.
67006         * modules/arctwo (Makefile.am): Likewise.
67007         * modules/argmatch (Makefile.am): Likewise.
67008         * modules/argz (Makefile.am): Likewise.
67009         * modules/atexit (Makefile.am): Likewise.
67010         * modules/backupfile (Makefile.am): Likewise.
67011         * modules/byteswap (Makefile.am): Likewise.
67012         * modules/c-strtod (Makefile.am): Likewise.
67013         * modules/c-strtold (Makefile.am): Likewise.
67014         * modules/calloc (Makefile.am): Likewise.
67015         * modules/canon-host (Makefile.am): Likewise.
67016         * modules/canonicalize (Makefile.am): Likewise.
67017         * modules/chdir-long (Makefile.am): Likewise.
67018         * modules/chdir-safer (Makefile.am): Likewise.
67019         * modules/check-version (Makefile.am): Likewise.
67020         * modules/chown (Makefile.am): Likewise.
67021         * modules/cloexec (Makefile.am): Likewise.
67022         * modules/close-stream (Makefile.am): Likewise.
67023         * modules/closeout (Makefile.am): Likewise.
67024         * modules/crc (Makefile.am): Likewise.
67025         * modules/csharpexec (Makefile.am): Likewise.
67026         * modules/cycle-check (Makefile.am): Likewise.
67027         * modules/des (Makefile.am): Likewise.
67028         * modules/dev-ino (Makefile.am): Likewise.
67029         * modules/dirfd (Makefile.am): Likewise.
67030         * modules/dirname (Makefile.am): Likewise.
67031         * modules/dup2 (Makefile.am): Likewise.
67032         * modules/eealloc (Makefile.am): Likewise.
67033         * modules/error (Makefile.am): Likewise.
67034         * modules/euidaccess (Makefile.am): Likewise.
67035         * modules/exclude (Makefile.am): Likewise.
67036         * modules/exitfail (Makefile.am): Likewise.
67037         * modules/fcntl-safer (Makefile.am): Likewise.
67038         * modules/fcntl (Makefile.am): Likewise.
67039         * modules/file-type (Makefile.am): Likewise.
67040         * modules/fileblocks (Makefile.am): Likewise.
67041         * modules/filemode (Makefile.am): Likewise.
67042         * modules/filenamecat (Makefile.am): Likewise.
67043         * modules/fnmatch (Makefile.am): Likewise.
67044         * modules/fopen-safer (Makefile.am): Likewise.
67045         * modules/fpending (Makefile.am): Likewise.
67046         * modules/fprintftime (Makefile.am): Likewise.
67047         * modules/free (Makefile.am): Likewise.
67048         * modules/fsusage (Makefile.am): Likewise.
67049         * modules/ftruncate (Makefile.am): Likewise.
67050         * modules/fts (Makefile.am): Likewise.
67051         * modules/gc-arcfour (Makefile.am): Likewise.
67052         * modules/gc-des (Makefile.am): Likewise.
67053         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67054         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67055         * modules/gc-md4 (Makefile.am): Likewise.
67056         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67057         * modules/gc-sha1 (Makefile.am): Likewise.
67058         * modules/gc (Makefile.am): Likewise.
67059         * modules/getaddrinfo (Makefile.am): Likewise.
67060         * modules/getcwd (Makefile.am): Likewise.
67061         * modules/getdelim (Makefile.am): Likewise.
67062         * modules/getdomainname (Makefile.am): Likewise.
67063         * modules/getgroups (Makefile.am): Likewise.
67064         * modules/gethostname (Makefile.am): Likewise.
67065         * modules/gethrxtime (Makefile.am): Likewise.
67066         * modules/getline (Makefile.am): Likewise.
67067         * modules/getloadavg (Makefile.am): Likewise.
67068         * modules/getlogin_r (Makefile.am): Likewise.
67069         * modules/getndelim2 (Makefile.am): Likewise.
67070         * modules/getopt (Makefile.am): Likewise.
67071         * modules/getpagesize (Makefile.am): Likewise.
67072         * modules/getpass-gnu (Makefile.am): Likewise.
67073         * modules/getpass (Makefile.am): Likewise.
67074         * modules/getsubopt (Makefile.am): Likewise.
67075         * modules/gettime (Makefile.am): Likewise.
67076         * modules/gettimeofday (Makefile.am): Likewise.
67077         * modules/getugroups (Makefile.am): Likewise.
67078         * modules/getusershell (Makefile.am): Likewise.
67079         * modules/glob (Makefile.am): Likewise.
67080         * modules/group-member (Makefile.am): Likewise.
67081         * modules/hard-locale (Makefile.am): Likewise.
67082         * modules/hash (Makefile.am): Likewise.
67083         * modules/hmac-md5 (Makefile.am): Likewise.
67084         * modules/hmac-sha1 (Makefile.am): Likewise.
67085         * modules/human (Makefile.am): Likewise.
67086         * modules/idcache (Makefile.am): Likewise.
67087         * modules/imaxabs (Makefile.am): Likewise.
67088         * modules/imaxdiv (Makefile.am): Likewise.
67089         * modules/inet_ntop (Makefile.am): Likewise.
67090         * modules/inet_pton (Makefile.am): Likewise.
67091         * modules/intprops (Makefile.am): Likewise.
67092         * modules/inttostr (Makefile.am): Likewise.
67093         * modules/inttypes (Makefile.am): Likewise.
67094         * modules/isapipe (Makefile.am): Likewise.
67095         * modules/javaversion (Makefile.am): Likewise.
67096         * modules/lchmod (Makefile.am): Likewise.
67097         * modules/lchown (Makefile.am): Likewise.
67098         * modules/localcharset (Makefile.am): Likewise.
67099         * modules/long-options (Makefile.am): Likewise.
67100         * modules/lstat (Makefile.am): Likewise.
67101         * modules/malloc (Makefile.am): Likewise.
67102         * modules/mathl (Makefile.am): Likewise.
67103         * modules/mbchar (Makefile.am): Likewise.
67104         * modules/md2 (Makefile.am): Likewise.
67105         * modules/md4 (Makefile.am): Likewise.
67106         * modules/md5 (Makefile.am): Likewise.
67107         * modules/memcasecmp (Makefile.am): Likewise.
67108         * modules/memchr (Makefile.am): Likewise.
67109         * modules/memcmp (Makefile.am): Likewise.
67110         * modules/memcoll (Makefile.am): Likewise.
67111         * modules/memcpy (Makefile.am): Likewise.
67112         * modules/memmem (Makefile.am): Likewise.
67113         * modules/memmove (Makefile.am): Likewise.
67114         * modules/mempcpy (Makefile.am): Likewise.
67115         * modules/memrchr (Makefile.am): Likewise.
67116         * modules/memset (Makefile.am): Likewise.
67117         * modules/memxor (Makefile.am): Likewise.
67118         * modules/mkancesdirs (Makefile.am): Likewise.
67119         * modules/mkdir-p (Makefile.am): Likewise.
67120         * modules/mkdir (Makefile.am): Likewise.
67121         * modules/mkdtemp (Makefile.am): Likewise.
67122         * modules/mkstemp (Makefile.am): Likewise.
67123         * modules/mktime (Makefile.am): Likewise.
67124         * modules/modechange (Makefile.am): Likewise.
67125         * modules/mountlist (Makefile.am): Likewise.
67126         * modules/nanosleep (Makefile.am): Likewise.
67127         * modules/obstack (Makefile.am): Likewise.
67128         * modules/openat (Makefile.am): Likewise.
67129         * modules/pagealign_alloc (Makefile.am): Likewise.
67130         * modules/pathmax (Makefile.am): Likewise.
67131         * modules/physmem (Makefile.am): Likewise.
67132         * modules/poll (Makefile.am): Likewise.
67133         * modules/posixtm (Makefile.am): Likewise.
67134         * modules/posixver (Makefile.am): Likewise.
67135         * modules/putenv (Makefile.am): Likewise.
67136         * modules/quote (Makefile.am): Likewise.
67137         * modules/quotearg (Makefile.am): Likewise.
67138         * modules/raise (Makefile.am): Likewise.
67139         * modules/read-file (Makefile.am): Likewise.
67140         * modules/readline (Makefile.am): Likewise.
67141         * modules/readlink (Makefile.am): Likewise.
67142         * modules/readtokens (Makefile.am): Likewise.
67143         * modules/readutmp (Makefile.am): Likewise.
67144         * modules/realloc (Makefile.am): Likewise.
67145         * modules/regex (Makefile.am): Likewise.
67146         * modules/rename-dest-slash (Makefile.am): Likewise.
67147         * modules/rename (Makefile.am): Likewise.
67148         * modules/rijndael (Makefile.am): Likewise.
67149         * modules/rmdir (Makefile.am): Likewise.
67150         * modules/rpmatch (Makefile.am): Likewise.
67151         * modules/safe-read (Makefile.am): Likewise.
67152         * modules/safe-write (Makefile.am): Likewise.
67153         * modules/same-inode (Makefile.am): Likewise.
67154         * modules/same (Makefile.am): Likewise.
67155         * modules/save-cwd (Makefile.am): Likewise.
67156         * modules/savedir (Makefile.am): Likewise.
67157         * modules/setenv (Makefile.am): Likewise.
67158         * modules/settime (Makefile.am): Likewise.
67159         * modules/sha1 (Makefile.am): Likewise.
67160         * modules/sig2str (Makefile.am): Likewise.
67161         * modules/snprintf (Makefile.am): Likewise.
67162         * modules/stat-macros (Makefile.am): Likewise.
67163         * modules/stat-time (Makefile.am): Likewise.
67164         * modules/stdbool (Makefile.am): Likewise.
67165         * modules/stdint (Makefile.am): Likewise.
67166         * modules/stdlib-safer (Makefile.am): Likewise.
67167         * modules/stpcpy (Makefile.am): Likewise.
67168         * modules/stpncpy (Makefile.am): Likewise.
67169         * modules/strcase (Makefile.am): Likewise.
67170         * modules/strcasestr (Makefile.am): Likewise.
67171         * modules/strchrnul (Makefile.am): Likewise.
67172         * modules/strcspn (Makefile.am): Likewise.
67173         * modules/strdup (Makefile.am): Likewise.
67174         * modules/strerror (Makefile.am): Likewise.
67175         * modules/strftime (Makefile.am): Likewise.
67176         * modules/strndup (Makefile.am): Likewise.
67177         * modules/strnlen (Makefile.am): Likewise.
67178         * modules/strpbrk (Makefile.am): Likewise.
67179         * modules/strsep (Makefile.am): Likewise.
67180         * modules/strstr (Makefile.am): Likewise.
67181         * modules/strtod (Makefile.am): Likewise.
67182         * modules/strtoimax (Makefile.am): Likewise.
67183         * modules/strtok_r (Makefile.am): Likewise.
67184         * modules/strtol (Makefile.am): Likewise.
67185         * modules/strtoll (Makefile.am): Likewise.
67186         * modules/strtoul (Makefile.am): Likewise.
67187         * modules/strtoull (Makefile.am): Likewise.
67188         * modules/strtoumax (Makefile.am): Likewise.
67189         * modules/strverscmp (Makefile.am): Likewise.
67190         * modules/sys_socket (Makefile.am): Likewise.
67191         * modules/sys_stat (Makefile.am): Likewise.
67192         * modules/sysexits (Makefile.am): Likewise.
67193         * modules/time_r (Makefile.am): Likewise.
67194         * modules/timegm (Makefile.am): Likewise.
67195         * modules/timespec (Makefile.am): Likewise.
67196         * modules/tmpfile-safer (Makefile.am): Likewise.
67197         * modules/trim (Makefile.am): Likewise.
67198         * modules/unistd-safer (Makefile.am): Likewise.
67199         * modules/unlinkdir (Makefile.am): Likewise.
67200         * modules/unlocked-io (Makefile.am): Likewise.
67201         * modules/userspec (Makefile.am): Likewise.
67202         * modules/utime (Makefile.am): Likewise.
67203         * modules/utimecmp (Makefile.am): Likewise.
67204         * modules/utimens (Makefile.am): Likewise.
67205         * modules/vasnprintf (Makefile.am): Likewise.
67206         * modules/vasprintf (Makefile.am): Likewise.
67207         * modules/vsnprintf (Makefile.am): Likewise.
67208         * modules/xalloc (Makefile.am): Likewise.
67209         * modules/xgetcwd (Makefile.am): Likewise.
67210         * modules/xnanosleep (Makefile.am): Likewise.
67211         * modules/xreadlink (Makefile.am): Likewise.
67212         * modules/xstrtod (Makefile.am): Likewise.
67213         * modules/xstrtol (Makefile.am): Likewise.
67214         * modules/xstrtold (Makefile.am): Likewise.
67215         * modules/yesno (Makefile.am): Likewise.
67216         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67217
67218 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67219
67220         * modules/error (Makefile.am): Distribute files through
67221         EXTRA_DIST, not lib_SOURCES.
67222
67223 2006-10-12  Eric Blake  <ebb9@byu.net>
67224
67225         * modules/error (Makefile.am): Distribute files in /lib.
67226         * modules/obstack (Makefile.am): Likewise.
67227
67228 2006-10-12  Bruno Haible  <bruno@clisp.org>
67229
67230         * modules/acl (Makefile.am): Distribute all files in lib/ through
67231         EXTRA_DIST.
67232         * modules/arcfour (Makefile.am): Likewise.
67233         * modules/arctwo (Makefile.am): Likewise.
67234         * modules/argmatch (Makefile.am): Likewise.
67235         * modules/argz (Makefile.am): Likewise.
67236         * modules/atexit (Makefile.am): Likewise.
67237         * modules/backupfile (Makefile.am): Likewise.
67238         * modules/c-strtod (Makefile.am): Likewise.
67239         * modules/c-strtold (Makefile.am): Likewise.
67240         * modules/calloc (Makefile.am): Likewise.
67241         * modules/canon-host (Makefile.am): Likewise.
67242         * modules/canonicalize (Makefile.am): Likewise.
67243         * modules/chdir-long (Makefile.am): Likewise.
67244         * modules/chdir-safer (Makefile.am): Likewise.
67245         * modules/check-version (Makefile.am): Likewise.
67246         * modules/chown (Makefile.am): Likewise.
67247         * modules/cloexec (Makefile.am): Likewise.
67248         * modules/close-stream (Makefile.am): Likewise.
67249         * modules/closeout (Makefile.am): Likewise.
67250         * modules/crc (Makefile.am): Likewise.
67251         * modules/cycle-check (Makefile.am): Likewise.
67252         * modules/des (Makefile.am): Likewise.
67253         * modules/dirfd (Makefile.am): Likewise.
67254         * modules/dirname (Makefile.am): Likewise.
67255         * modules/dup2 (Makefile.am): Likewise.
67256         * modules/euidaccess (Makefile.am): Likewise.
67257         * modules/exclude (Makefile.am): Likewise.
67258         * modules/exitfail (Makefile.am): Likewise.
67259         * modules/fcntl-safer (Makefile.am): Likewise.
67260         * modules/file-type (Makefile.am): Likewise.
67261         * modules/fileblocks (Makefile.am): Likewise.
67262         * modules/filemode (Makefile.am): Likewise.
67263         * modules/filenamecat (Makefile.am): Likewise.
67264         * modules/fnmatch (Makefile.am): Likewise.
67265         * modules/fopen-safer (Makefile.am): Likewise.
67266         * modules/fpending (Makefile.am): Likewise.
67267         * modules/fprintftime (Makefile.am): Likewise.
67268         * modules/free (Makefile.am): Likewise.
67269         * modules/fsusage (Makefile.am): Likewise.
67270         * modules/ftruncate (Makefile.am): Likewise.
67271         * modules/fts (Makefile.am): Likewise.
67272         * modules/gc (Makefile.am): Likewise.
67273         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67274         * modules/getaddrinfo (Makefile.am): Likewise.
67275         * modules/getcwd (Makefile.am): Likewise.
67276         * modules/getdelim (Makefile.am): Likewise.
67277         * modules/getdomainname (Makefile.am): Likewise.
67278         * modules/getgroups (Makefile.am): Likewise.
67279         * modules/gethostname (Makefile.am): Likewise.
67280         * modules/gethrxtime (Makefile.am): Likewise.
67281         * modules/getline (Makefile.am): Likewise.
67282         * modules/getloadavg (Makefile.am): Likewise.
67283         * modules/getlogin_r (Makefile.am): Likewise.
67284         * modules/getopt (Makefile.am): Likewise.
67285         * modules/getpass (Makefile.am): Likewise.
67286         * modules/getpass-gnu (Makefile.am): Likewise.
67287         * modules/getsubopt (Makefile.am): Likewise.
67288         * modules/gettime (Makefile.am): Likewise.
67289         * modules/gettimeofday (Makefile.am): Likewise.
67290         * modules/getugroups (Makefile.am): Likewise.
67291         * modules/getusershell (Makefile.am): Likewise.
67292         * modules/glob (Makefile.am): Likewise.
67293         * modules/group-member (Makefile.am): Likewise.
67294         * modules/hard-locale (Makefile.am): Likewise.
67295         * modules/hash (Makefile.am): Likewise.
67296         * modules/hmac-md5 (Makefile.am): Likewise.
67297         * modules/hmac-sha1 (Makefile.am): Likewise.
67298         * modules/human (Makefile.am): Likewise.
67299         * modules/idcache (Makefile.am): Likewise.
67300         * modules/imaxabs (Makefile.am): Likewise.
67301         * modules/imaxdiv (Makefile.am): Likewise.
67302         * modules/inet_ntop (Makefile.am): Likewise.
67303         * modules/inet_pton (Makefile.am): Likewise.
67304         * modules/inttostr (Makefile.am): Likewise.
67305         * modules/isapipe (Makefile.am): Likewise.
67306         * modules/lchown (Makefile.am): Likewise.
67307         * modules/long-options (Makefile.am): Likewise.
67308         * modules/lstat (Makefile.am): Likewise.
67309         * modules/malloc (Makefile.am): Likewise.
67310         * modules/mathl (Makefile.am): Likewise.
67311         * modules/mbchar (Makefile.am): Likewise.
67312         * modules/md2 (Makefile.am): Likewise.
67313         * modules/md4 (Makefile.am): Likewise.
67314         * modules/md5 (Makefile.am): Likewise.
67315         * modules/memcasecmp (Makefile.am): Likewise.
67316         * modules/memchr (Makefile.am): Likewise.
67317         * modules/memcmp (Makefile.am): Likewise.
67318         * modules/memcoll (Makefile.am): Likewise.
67319         * modules/memcpy (Makefile.am): Likewise.
67320         * modules/memmem (Makefile.am): Likewise.
67321         * modules/memmove (Makefile.am): Likewise.
67322         * modules/mempcpy (Makefile.am): Likewise.
67323         * modules/memrchr (Makefile.am): Likewise.
67324         * modules/memset (Makefile.am): Likewise.
67325         * modules/memxor (Makefile.am): Likewise.
67326         * modules/mkancesdirs (Makefile.am): Likewise.
67327         * modules/mkdir (Makefile.am): Likewise.
67328         * modules/mkdir-p (Makefile.am): Likewise.
67329         * modules/mkdtemp (Makefile.am): Likewise.
67330         * modules/mkstemp (Makefile.am): Likewise.
67331         * modules/mktime (Makefile.am): Likewise.
67332         * modules/modechange (Makefile.am): Likewise.
67333         * modules/mountlist (Makefile.am): Likewise.
67334         * modules/nanosleep (Makefile.am): Likewise.
67335         * modules/openat (Makefile.am): Likewise.
67336         * modules/pagealign_alloc (Makefile.am): Likewise.
67337         * modules/physmem (Makefile.am): Likewise.
67338         * modules/poll (Makefile.am): Likewise.
67339         * modules/posixtm (Makefile.am): Likewise.
67340         * modules/posixver (Makefile.am): Likewise.
67341         * modules/putenv (Makefile.am): Likewise.
67342         * modules/quote (Makefile.am): Likewise.
67343         * modules/quotearg (Makefile.am): Likewise.
67344         * modules/raise (Makefile.am): Likewise.
67345         * modules/read-file (Makefile.am): Likewise.
67346         * modules/readline (Makefile.am): Likewise.
67347         * modules/readlink (Makefile.am): Likewise.
67348         * modules/readtokens (Makefile.am): Likewise.
67349         * modules/readutmp (Makefile.am): Likewise.
67350         * modules/realloc (Makefile.am): Likewise.
67351         * modules/regex (Makefile.am): Likewise.
67352         * modules/rename (Makefile.am): Likewise.
67353         * modules/rename-dest-slash (Makefile.am): Likewise.
67354         * modules/rijndael (Makefile.am): Likewise.
67355         * modules/rmdir (Makefile.am): Likewise.
67356         * modules/rpmatch (Makefile.am): Likewise.
67357         * modules/safe-read (Makefile.am): Likewise.
67358         * modules/safe-write (Makefile.am): Likewise.
67359         * modules/same (Makefile.am): Likewise.
67360         * modules/save-cwd (Makefile.am): Likewise.
67361         * modules/savedir (Makefile.am): Likewise.
67362         * modules/setenv (Makefile.am): Likewise.
67363         * modules/settime (Makefile.am): Likewise.
67364         * modules/sha1 (Makefile.am): Likewise.
67365         * modules/sig2str (Makefile.am): Likewise.
67366         * modules/snprintf (Makefile.am): Likewise.
67367         * modules/stdlib-safer (Makefile.am): Likewise.
67368         * modules/stpcpy (Makefile.am): Likewise.
67369         * modules/stpncpy (Makefile.am): Likewise.
67370         * modules/strcase (Makefile.am): Likewise.
67371         * modules/strcasestr (Makefile.am): Likewise.
67372         * modules/strchrnul (Makefile.am): Likewise.
67373         * modules/strcspn (Makefile.am): Likewise.
67374         * modules/strdup (Makefile.am): Likewise.
67375         * modules/strerror (Makefile.am): Likewise.
67376         * modules/strftime (Makefile.am): Likewise.
67377         * modules/strndup (Makefile.am): Likewise.
67378         * modules/strnlen (Makefile.am): Likewise.
67379         * modules/strpbrk (Makefile.am): Likewise.
67380         * modules/strsep (Makefile.am): Likewise.
67381         * modules/strstr (Makefile.am): Likewise.
67382         * modules/strtod (Makefile.am): Likewise.
67383         * modules/strtoimax (Makefile.am): Likewise.
67384         * modules/strtok_r (Makefile.am): Likewise.
67385         * modules/strtol (Makefile.am): Likewise.
67386         * modules/strtoll (Makefile.am): Likewise.
67387         * modules/strtoul (Makefile.am): Likewise.
67388         * modules/strtoull (Makefile.am): Likewise.
67389         * modules/strtoumax (Makefile.am): Likewise.
67390         * modules/strverscmp (Makefile.am): Likewise.
67391         * modules/time_r (Makefile.am): Likewise.
67392         * modules/timegm (Makefile.am): Likewise.
67393         * modules/tmpfile-safer (Makefile.am): Likewise.
67394         * modules/unistd-safer (Makefile.am): Likewise.
67395         * modules/unlinkdir (Makefile.am): Likewise.
67396         * modules/userspec (Makefile.am): Likewise.
67397         * modules/utime (Makefile.am): Likewise.
67398         * modules/utimecmp (Makefile.am): Likewise.
67399         * modules/utimens (Makefile.am): Likewise.
67400         * modules/vasnprintf (Makefile.am): Likewise.
67401         * modules/vasprintf (Makefile.am): Likewise.
67402         * modules/vsnprintf (Makefile.am): Likewise.
67403         * modules/xalloc (Makefile.am): Likewise.
67404         * modules/xgetcwd (Makefile.am): Likewise.
67405         * modules/xnanosleep (Makefile.am): Likewise.
67406         * modules/xreadlink (Makefile.am): Likewise.
67407         * modules/xstrtod (Makefile.am): Likewise.
67408         * modules/xstrtol (Makefile.am): Likewise.
67409         * modules/xstrtold (Makefile.am): Likewise.
67410         * modules/yesno (Makefile.am): Likewise.
67411
67412 2006-10-12  Jim Meyering  <jim@meyering.net>
67413
67414         * m4/getloadavg.m4: Revert the change below.
67415
67416         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67417         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67418         fail with a symlink, which is what coreutils' ./bootstrap now
67419         creates by default.
67420
67421 2006-10-12  Bruno Haible  <bruno@clisp.org>
67422
67423         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67424         mingw.
67425         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67426         MSVC and mingw explicitly.
67427
67428 2006-10-11  Simon Josefsson  <jas@extundo.com>
67429             Bruno Haible  <bruno@clisp.org>
67430
67431         Add support for multiple gnulib-tool invocations in the scope of a
67432         single configure.ac file.
67433         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67434         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67435         with the same contents as the _LIBADD variable.
67436         (func_emit_initmacro_start, func_emit_initmacro_end,
67437         func_emit_initmacro_done): New functions.
67438         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67439         gl_LIBOBJS and gl_LTLIBOBJS.
67440
67441 2006-10-11  Bruno Haible  <bruno@clisp.org>
67442
67443         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67444         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67445         autoreconf. Instead, invoke autopoint explicitly but move back the
67446         *.m4 files from gnulib.
67447
67448 2006-10-11  Bruno Haible  <bruno@clisp.org>
67449
67450         * gnulib-tool (func_usage): Make module names after --create-testdir
67451         optional.
67452         (func_create_testdir): If no module was specified, use nearly all
67453         modules.
67454
67455 2006-10-12  Jim Meyering  <jim@meyering.net>
67456
67457         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67458         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67459         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67460         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67461         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67462         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67463         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67464         (fts_set_stat_required): New function.
67465         (fts_open): Defer the calls to fts_stat, if possible or requested.
67466         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67467         into fts_stat itself.
67468         (fts_read): Perform any required (deferred) fts_stat call.
67469         (fts_build): Likewise, for the directory we're about to open and read.
67470         In the readdir loop, carefully decide whether each entry will require
67471         an eventual call to fts_stat, using dirent.d_type info if available.
67472         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67473         a command line argument into this function.  Update all callers.
67474         Map a return value of FTS_DOT to FTS_D for a command line argument.
67475         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67476         Thanks to Miklos Szeredi for his tenacity and for the initial
67477         bug report about "find" failing on a FUSE-based file system.
67478
67479         * lib/fts.c (fts_open): Use consistent indentation.
67480
67481 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67482
67483         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67484         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67485         reported by Jim Meyering.  All uses of cache variables renamed
67486         to match Autoconf's.
67487         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67488         the other one.
67489
67490         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67491         Fix misspelling in diagnostic.
67492
67493 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67494
67495         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67496         defined.  Problem reported by Matthew Woehlke.
67497
67498         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67499         Add support for Tandem NonStop R series.
67500         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67501         Use new macro.
67502
67503         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67504         (has_trailing_slash): Omit size arg; all callers changed.
67505         Omit 'inline', since it doesn't help performance and we'd
67506         need to configure it.
67507         Don't count //, ///, etc. as having a trailing slash.
67508         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67509         (rpl_rename_dest_slash): On failure, use rename's errno rather
67510         than (in some cases) an incorrect or junk errno.
67511         Simplify code by removing need to compute length; this does
67512         cause it to make two passes instead of one over the file name,
67513         but it's worth it.
67514
67515         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67516         change, since Autoconf's version may no longer be appropriate now
67517         that we are using CVS Autoconf's version.  Add support for Tandem.
67518
67519 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67520             Bruno Haible  <bruno@clisp.org>
67521
67522         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67523         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67524         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67525         gl_AC_TYPE_LONG_LONG.
67526
67527         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67528         instead of HAVE_LONG_LONG.
67529         * lib/printf-args.c (printf_fetchargs): Likewise.
67530         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67531         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67532         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67533         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67534         gl_AC_TYPE_LONG_LONG.
67535
67536 2006-10-11  Bruno Haible  <bruno@clisp.org>
67537
67538         * m4/longlong.m4: Add comments.
67539         * m4/ulonglong.m4: Likewise.
67540
67541 2006-10-10  Bruno Haible  <bruno@clisp.org>
67542
67543         Make it possible to #define stpcpy, strdup to aliases.
67544         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67545         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67546
67547 2006-10-10  Bruno Haible  <bruno@clisp.org>
67548
67549         Make it possible to #define gcd to an alias.
67550         * lib/gcd.c: Include config.h.
67551
67552 2006-10-10  Bruno Haible  <bruno@clisp.org>
67553
67554         Make it possible to #define c_isascii to an alias.
67555         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67556         defined. Undefine the macros before defining them, to avoid gcc
67557         warnings.
67558         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67559         define NO_C_CTYPE_MACROS early.
67560
67561 2006-10-10  Bruno Haible  <bruno@clisp.org>
67562
67563         Make it possible to #define set_program_name to an alias.
67564         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67565         ENABLE_RELOCATABLE early.
67566
67567 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67568
67569         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67570         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67571         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67572         More generally, don't assume that 64-bit signed int is available
67573         if unsigned int is, and vice versa.
67574         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67575         unsigned symbols, not on their signed counterparts.
67576         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67577         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67578         (UINT64_C, UINTMAX_C):
67579         Likewise.
67580         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67581         unsigned counterparts.
67582         (Have_long_long, Unsigned): New macros.
67583         (Int): Renamed from INT.
67584         (strtoimax): Use the new macros.
67585         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67586         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67587         * modules/inttypes (inttypes.h): Substitute
67588         HAVE_UNSIGNED_LONG_LONG_INT.
67589         * modules/stdint (stdint.h): Likewise.
67590         (Files): Add m4/ulonglong.m4.
67591
67592 2006-10-10  Bruno Haible  <bruno@clisp.org>
67593
67594         Fix a gcc -Wshadow warning.
67595         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67596         to 'bucket'.
67597         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67598         gl_linked_indexof_from_to): Likewise.
67599         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67600         Likewise.
67601         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67602         Likewise.
67603         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67604         Reported by Eric Blake.
67605
67606 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67607
67608         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67609         for NetBSD.  Problem reported by Bruno Haible.
67610
67611 2006-10-09  Jim Meyering  <jim@meyering.net>
67612
67613         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67614         Patch from Bruno Haible.
67615
67616 2006-10-09  Jim Meyering  <jim@meyering.net>
67617
67618         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67619         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67620         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67621
67622 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67623
67624         Don't include <config.h> twice; this doesn't work in some cases,
67625         e.g., when config.h has "#define intmax_t long long int" and
67626         we include <config.h>, <inttypes.h>, <config.h> in that order.
67627         Problem reported by Matthew Woehlke in:
67628         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67629         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67630         * lib/fts-cycle.c: Don't include config.h.
67631         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67632         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67633         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67634         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67635         inttypes.h.
67636         * lib/xstrtoumax.c: Likewise.
67637         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67638         __strtol and the like, so that this module is more like its siblings.
67639         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67640         Remove; no longer needed now that we assume gnulib inttypes.h.
67641
67642 2006-10-08  Bruno Haible  <bruno@clisp.org>
67643
67644         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67645         option.
67646
67647 2006-10-07  Jim Meyering  <jim@meyering.net>
67648
67649         * modules/inttypes (inttypes.h): Revert what seems to have been
67650         an inadvertent part of today's change: use "|", not "/" in the
67651         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67652
67653 2006-10-07  Bruno Haible  <bruno@clisp.org>
67654
67655         * modules/sublist: New file.
67656
67657 2006-10-07  Bruno Haible  <bruno@clisp.org>
67658
67659         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67660         * modules/argz (argz.h): Likewise.
67661         * modules/arpa_inet (arpa/inet.h): Likewise.
67662         * modules/byteswap (byteswap.h): Likewise.
67663         * modules/configmake (configmake.h): Likewise.
67664         * modules/fcntl (fcntl.h): Likewise.
67665         * modules/fnmatch (fnmatch.h): Likewise.
67666         * modules/getopt (getopt.h): Likewise.
67667         * modules/glob (glob.h): Likewise.
67668         * modules/inttypes (inttypes.h): Likewise.
67669         * modules/netinet_in (netinet/in.h): Likewise.
67670         * modules/poll (poll.h): Likewise.
67671         * modules/stdbool (stdbool.h): Likewise.
67672         * modules/stdint (stdint.h): Likewise.
67673         * modules/sys_select (sys/select.h): Likewise.
67674         * modules/sys_socket (sys/socket.h): Likewise.
67675         * modules/sys_stat (sys/stat.h): Likewise.
67676         * modules/sysexits (sysexits.h): Likewise.
67677         * modules/unistd (unistd.h): Likewise.
67678         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67679         Add a "DO NOT EDIT" comment to the generated file.
67680         (func_import): Likewise for gnulib-comp.m4.
67681
67682 2006-10-07  Bruno Haible  <bruno@clisp.org>
67683
67684         * lib/gl_sublist.h: New file.
67685         * lib/gl_sublist.c: New file.
67686
67687 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67688
67689         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67690         name (relative to the original working directory) and the file
67691         name component (relative to the temporary working directory).  All
67692         callers changed.
67693         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67694         * lib/mkdir-p.c (make_dir_parents): Likewise.
67695         * lib/mkdir-p.h (make_dir_parents): Likewise.
67696
67697 2006-10-06  Eric Blake  <ebb9@byu.net>
67698
67699         Define several macros for use by the clean-temp module.
67700         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67701         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67702         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67703
67704         * lib/clean-temp.h (close_stream_temp): New declaration.
67705         * lib/clean-temp.c (includes): Pull in headers according to what
67706         other modules are in use.
67707         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67708
67709 2006-10-06  Bruno Haible  <bruno@clisp.org>
67710
67711         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67712         instead of fopen, fwriteerror.
67713
67714 2006-10-06  Bruno Haible  <bruno@clisp.org>
67715
67716         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67717         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67718         int.
67719         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67720         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67721         Return an error indicator.
67722         Suggested by Eric Blake.
67723
67724 2006-10-06  Bruno Haible  <bruno@clisp.org>
67725
67726         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67727         Reported by Eric Blake.
67728
67729 2006-10-06  Bruno Haible  <bruno@clisp.org>
67730
67731         * modules/closeout (Description): Mention stderr too.
67732
67733 2006-10-06  Bruno Haible  <bruno@clisp.org>
67734         and Paul Eggert  <eggert@cs.ucla.edu>
67735
67736         * lib/closeout.c (close_stdout): Also close stderr.
67737         * lib/closeout.h: Update comment.
67738
67739 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67740
67741         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67742         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67743         * lib/dirchownmod.c: Include lchown.h.
67744         * lib/lchown.c: Don't include files that lchown.h now includes.
67745         Don't declare chown, since lchown.h now does that.
67746         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67747         (lchown): Define to rpl_chown if lchown is declared but
67748         does not exist.  Declare using a prototype if lchown is not
67749         declared.  Add a copyright notice.
67750         * lib/mkstemp.h: Include <unistd.h>.
67751         * lib/openat.c: Include lchown.h.
67752
67753         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67754         we now test for that separately.
67755         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67756         rather than O_NOFOLLOW, when testing whether it's possible to
67757         avoid a race condition reliably.
67758         * lib/savewd.c (savewd_chdir): Likewise.
67759
67760         Remove macros that are no longer needed now that stdint.h is
67761         reliable.
67762         * lib/fsusage.c (UINTMAX_MAX): Remove.
67763         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67764         * lib/utimecmp.c (SIZE_MAX): Remove.
67765
67766         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67767
67768         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67769         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67770         O_NOATIME works.
67771
67772 2006-10-05  Bruno Haible  <bruno@clisp.org>
67773
67774         * lib/gl_list.h (gl_sortedlist_search_from_to,
67775         gl_sortedlist_indexof_from_to): New declarations.
67776         (gl_list_implementation): New fields sortedlist_search_from_to,
67777         sortedlist_indexof_from_to.
67778         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67779         inline functions.
67780         * lib/gl_list.c (gl_sortedlist_search_from_to,
67781         gl_sortedlist_indexof_from_to): New functions.
67782         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67783         function.
67784         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67785         (gl_array_sortedlist_search_from_to): New function.
67786         (gl_array_list_implementation): Update.
67787         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67788         function.
67789         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67790         (gl_carray_sortedlist_search_from_to): New function.
67791         (gl_carray_list_implementation): Update.
67792         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67793         gl_linked_sortedlist_indexof_from_to): New functions.
67794         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67795         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67796         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67797         gl_tree_sortedlist_indexof_from_to): New functions.
67798         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67799         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67800         Update.
67801         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67802         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67803         Update.
67804
67805 2006-10-05  Bruno Haible  <bruno@clisp.org>
67806
67807         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67808         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67809         (struct gl_list_implementation): Add fields search_from_to,
67810         indexof_from_to. Remove fields search, indexof.
67811         (gl_list_search): Use the search_from_to method.
67812         (gl_list_search_from, gl_list_search_from_to): New functions.
67813         (gl_list_indexof): Use the indexof_from_to method.
67814         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67815         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67816         (gl_list_search_from, gl_list_search_from_to): New functions.
67817         (gl_list_indexof): Use the indexof_from_to method.
67818         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67819         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67820         gl_array_indexof. Add start_index, end_index arguments.
67821         (gl_array_search_from_to): Renamed from gl_array_search. Add
67822         start_index, end_index arguments.
67823         (gl_array_remove, gl_array_list_implementation): Update.
67824         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67825         gl_carray_indexof. Add start_index, end_index arguments.
67826         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67827         start_index, end_index arguments.
67828         (gl_carray_remove, gl_carray_list_implementation): Update.
67829         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67830         gl_linked_search. Add start_index, end_index arguments.
67831         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67832         start_index, end_index arguments.
67833         (gl_linked_remove): Update.
67834         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67835         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67836         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67837         field to 'size_t'.
67838         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67839         gl_tree_search. Add start_index, end_index arguments.
67840         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67841         start_index, end_index arguments.
67842         (gl_tree_remove): Update.
67843         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67844         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67845         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67846         function.
67847         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67848         gl_tree_search. Add start_index, end_index arguments.
67849         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67850         start_index, end_index arguments.
67851         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67852         Update.
67853         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67854
67855 2006-10-05  Bruno Haible  <bruno@clisp.org>
67856
67857         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67858
67859         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67860         fwriteerror_temp): New declarations.
67861         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67862         (descriptors): New variable.
67863         (cleanup): First, close the descriptors.
67864         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67865         fclose_temp, fwriteerror_temp): New functions.
67866
67867 2006-10-04  Jim Meyering  <jim@meyering.net>
67868
67869         * lib/fts.c (fts_open): Tiny comment change.
67870
67871 2006-10-04  Bruno Haible  <bruno@clisp.org>
67872
67873         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67874         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67875         gl_LOCK_BODY.
67876         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67877         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67878         gl_LOCK_EARLY_BODY.
67879         (gl_LOCK): Require gl_LOCK_BODY.
67880
67881 2006-10-04  Bruno Haible  <bruno@clisp.org>
67882
67883         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67884         (gl_oset_search_atleast): New declaration.
67885         (struct gl_oset_implementation): Add field 'search_atleast'.
67886         (gl_oset_search_atleast): New inline function.
67887         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67888         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67889         (gl_array_oset_implementation): Update.
67890         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67891         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67892         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67893
67894 2006-10-04  Bruno Haible  <bruno@clisp.org>
67895
67896         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67897
67898 2006-10-03  Bruno Haible  <bruno@clisp.org>
67899
67900         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67901         from gl_avltreehash_list_implementation.
67902
67903 2006-10-03  Bruno Haible  <bruno@clisp.org>
67904
67905         * lib/gl_oset.c (gl_oset_add): Fix return type.
67906
67907 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67908
67909         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67910
67911 2006-10-02  Eric Blake  <ebb9@byu.net>
67912
67913         * modules/strnlen (Depends-on): Add extensions.
67914
67915 2006-10-02  Eric Blake  <ebb9@byu.net>
67916
67917         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67918         definition in 2.60+.
67919
67920 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67921
67922         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67923         checks.
67924
67925 2006-10-02  Bruno Haible  <bruno@clisp.org>
67926
67927         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67928         to the AUTOMAKE_OPTIONS.
67929         Reported by Jim Meyering.
67930
67931 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67932
67933         Work around bug in Solaris 10 /proc file system:
67934         /proc/self/fd/NNN/.. isn't the parent directory of
67935         the directory whose file descriptor is NNN.  This needs to
67936         be worked around at run time, not compile time, since a
67937         program might be built on Solaris 8, where things work, and
67938         run on Solaris 10.
67939         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67940         to use the following interface instead:
67941         (OPENAT_BUFFER_SIZE): New macro.
67942         (openat_proc_name): New function.
67943         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67944         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67945         Likewise.
67946         * lib/openat-proc.c: New file.
67947         * modules/openat (Files): Add lib/openat-proc.c.
67948         (Depends-on): Add same-inode, stdbool.
67949         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67950
67951 2006-09-29  Bruno Haible  <bruno@clisp.org>
67952
67953         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67954         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67955         argument. Set stdout_closed before testing for ferror, not after.
67956         (fwriteerror, fwriteerror_no_ebadf): New functions.
67957
67958 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67959
67960         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67961
67962 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67963
67964         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67965         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67966
67967 2006-09-28  Jim Meyering  <jim@meyering.net>
67968
67969         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67970         Include <unistd.h>.
67971
67972 2006-09-28  Bruno Haible  <bruno@clisp.org>
67973
67974         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67975         * modules/linkedhash-list (Depends-on): Likewise.
67976         * modules/rbtreehash-list (Depends-on): Likewise.
67977
67978 2006-09-28  Bruno Haible  <bruno@clisp.org>
67979
67980         * lib/strndup.h: Simplify the redefinition of strndup.
67981         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67982         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67983
67984 2006-09-28  Bruno Haible  <bruno@clisp.org>
67985
67986         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67987         * lib/gl_linkedhash_list.c: Likewise.
67988         * lib/gl_rbtreehash_list.c: Likewise.
67989
67990 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67991
67992         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67993         getaddrinfo.
67994
67995         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67996         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67997         it causes <stdio_ext.h> to cause a compile-time error.
67998         Problem reported by Nelson H. F. Beebe.
67999         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68000         of HAVE_DECL___PENDING.
68001
68002         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68003         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68004         declaration.
68005
68006 2006-09-27  Jim Meyering  <jim@meyering.net>
68007
68008         This file could end up with a definition for a function
68009         named __strndup, rather than rpl_strndup on a system with
68010         incomplete weak_alias support.
68011         * lib/strndup.c (strndup): Rename from __strndup.
68012         Remove #defines that used to map __strndup to strndup.
68013         Don't use K&R prototypes.
68014         Remove LIBC-related code, since this file is not sync'd with glibc.
68015         * lib/strndup.h: Revamp, accordingly.
68016         * m4/strndup.m4: Modernize.
68017
68018 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68019
68020         * modules/savewd (Depends-on): Add 'raise'.
68021         * lib/savewd.c: Include <signal.h>, for 'raise'.
68022
68023 2006-09-26  Jim Meyering  <jim@meyering.net>
68024
68025         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68026         when we detect Darwin 8.7.0's acl_get_file bug.
68027         Rearrange to perform the new (below) run-test while $LIBS
68028         contains any acl-related library.  Set USE_ACL at the end.
68029         (gl_ACL_GET_FILE): New function.
68030
68031 2006-09-26  Eric Blake  <ebb9@byu.net>
68032
68033         * lib/verror.c: Include <config.h> unconditionally.
68034
68035 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68036
68037         * modules/clock-time (Maintainer): Add self.
68038         * modules/getlogin_r (Depends-on): Add extensions.
68039
68040 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68041
68042         * modules/clock-time: New module.
68043         * modules/nanosleep (Depends-on): Add clock-time.
68044         * modules/gethrxtime (Depends-on): Likewise.
68045         * modules/gettime (Depends-on): Likewise.
68046         * modules/settime (Depends-on): Likewise.
68047
68048         * modules/fts-lgpl: Depend on openat.
68049         * modules/mkancesdirs: Depend on savewd.
68050         * modules/mkdir-p: Likewise.
68051
68052 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68053
68054         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68055
68056         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68057         `gl_have_arbitrary_file_name_length_limit' to
68058         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68059         actually works between configure runs.
68060
68061 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68062             Bruno Haible  <bruno@clisp.org>
68063
68064         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68065
68066 2006-09-25  Jim Meyering  <jim@meyering.net>
68067
68068         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68069         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68070
68071 2006-09-25  Eric Blake  <ebb9@byu.net>
68072
68073         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68074         exec's in 2006-09-18 patch when shuffling fds.
68075
68076 2006-09-25  Bruno Haible  <bruno@clisp.org>
68077
68078         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68079         Reported by Jim Meyering.
68080
68081 2006-09-24  Jim Meyering  <jim@meyering.net>
68082
68083         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68084         compare a pointer against a literal "0".  That caused failures with
68085         at least HP-UX's hpcc.
68086
68087 2006-09-22  Simon Josefsson  <jas@extundo.com>
68088
68089         * modules/gc-sha1:
68090         * modules/gc-md4:
68091         * modules/gc-hmac-sha1:
68092         * modules/gc-hmac-md5:
68093         * modules/gc-des:
68094         * modules/gc-arcfour: Distribute more files.
68095
68096 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68097
68098         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68099         (gl_linked_iterator_from_to): Initialize struct completely.
68100         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68101         (gl_tree_iterator_from_to): Likewise
68102         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68103         * lib/gl_array_list.c [lint] (gl_array_iterator)
68104         (gl_array_iterator_from_to): Likewise.
68105         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68106         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68107         (gl_carray_iterator_from_to): Likewise.
68108
68109         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68110         * lib/md4.c (md4_process_block): Remove unused variable.
68111         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68112         parentheses for clarity.
68113
68114 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68115
68116         * modules/bison-i18n (Depends-on): Add gettext.
68117
68118 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68119
68120         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68121         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68122         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68123         also add missing comma that caused broken test.
68124         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68125         stdlib.h, for `abort'.
68126         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68127         variables.
68128         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68129         include unistd.h if present, for `rmdir'.
68130         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68131         variables.
68132         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68133         in the process include standard headers for prototypes.
68134         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68135         gets declared on GNU/Linux.
68136         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68137         unistd.h, for `rmdir'.
68138         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68139
68140         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68141         always true.
68142         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68143
68144         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68145
68146 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68147
68148         * gnulib-tool (func_version): Create output all at once.  This
68149         may help avoid triggering unnecessary SIGPIPEs, and at any
68150         rate it doesn't hurt.
68151
68152 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68153             Bruno Haible  <bruno@clisp.org>
68154
68155         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68156         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68157         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68158
68159         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68160         (gl_FUNC_VASPRINTF): Invoke it.
68161
68162 2006-09-22  Bruno Haible  <bruno@clisp.org>
68163
68164         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68165         getloadavg.c as first argument.
68166
68167 2006-09-22  Bruno Haible  <bruno@clisp.org>
68168
68169         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68170         at the beginning of the gl_INIT macro.
68171         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68172         gl_GETLOADAVG.
68173
68174 2006-09-22  Bruno Haible  <bruno@clisp.org>
68175
68176         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68177         module.
68178         Suggested by Ralf Wildenhues.
68179
68180 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68181
68182         Import this patch from libc:
68183
68184         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68185
68186         * lib/regex_internal.c (re_string_reconstruct): Handle
68187         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68188         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68189         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68190         re_string_context_at.
68191
68192         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68193         now requires it.
68194         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68195         gl_REGEX now does it for us.
68196         (gl_REGEX): Add test taken from
68197         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68198
68199         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68200         Check that large offsets work.  Modernize Autoconf usages.
68201         Prefer "yes" to mean a good thing rather than a bad.
68202         Don't put "#define mkstemp" in config.h, as this might interfere
68203         with standard system headers that "#define mkstemp mkstemp64".
68204
68205         * modules/mkstemp (Depends-on): Add extensions, so that
68206         mkstemp is visible on some platforms.
68207         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68208         (Include): Change to "mkstemp.h" from <stdlib.h>.
68209         (Files): Add mkstemp.h.
68210
68211         * lib/mkstemp.h: New file, since some standard headers
68212         #define mkstemp.
68213         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68214         Include "mkstemp.h".
68215         Make the _LIBC code resemble glibc original more,
68216         e.g., use K&R style.
68217         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68218         (mkstemp): Remove, since mkstemp.h does this for us.
68219         * lib/stdlib--.h: Include mkstemp.h.
68220
68221         Import this patch from libc:
68222
68223         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68224
68225         * lib/tempname.c (__gen_tempname): Change attempts_min
68226         into a macro.  Use preprocessor to decide how to initialize
68227         attempts [Coverity CID 67].
68228
68229 2006-09-20  Bruno Haible  <bruno@clisp.org>
68230
68231         * lib/mkdtemp.c: Import from libc.
68232         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68233                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68234                 attempts_min into a macro.  Use preprocessor to decide how to
68235                 initialize attempts [Coverity CID 67].
68236         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68237                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68238                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68239
68240 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68241
68242         * gnulib-tool (func_exit): New function, to allow to pass the
68243         exit status portably through the trap.  Use everywhere.
68244         (--help, --version): Signal a write error.
68245         (trap): catch SIGPIPE, for write errors.
68246         Exit at the end of the trap, with the correct exit status.
68247
68248 2006-09-19  Karl Berry  <karl@gnu.org>
68249
68250         * doc/gnulib.texi: note about the license texinfo files.
68251
68252 2006-09-19  Eric Blake  <ebb9@byu.net>
68253
68254         * gnulib-tool: Avoid space-tab.
68255
68256 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68257
68258         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68259         that prevented coreutils 6.1 from building.  Problem reported
68260         by Petter Reinholdtsen.
68261
68262 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68263
68264         * gnulib-tool (avoidlist): Fix typo that broke options like
68265         --avoid=lock that are used by coreutils bootstrap.
68266
68267 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68268
68269         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68270         more systematically.
68271
68272 2006-09-18  Jim Meyering  <jim@meyering.net>
68273
68274         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68275
68276 2006-09-18  Bruno Haible  <bruno@clisp.org>
68277
68278         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68279
68280 2006-09-18  Bruno Haible  <bruno@clisp.org>
68281
68282         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68283         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68284         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68285         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68286         * m4/gettext.m4: Require autoconf >= 2.52.
68287         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68288         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68289         of gl_cv_header_inttypes_h.
68290
68291 2006-09-18  Bruno Haible  <bruno@clisp.org>
68292
68293         * lib/javaversion.c: Include configmake.h.
68294
68295 2006-09-18  Bruno Haible  <bruno@clisp.org>
68296
68297         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68298         avoid that the while loops be executed in a subshell.
68299
68300 2006-09-18  Bruno Haible  <bruno@clisp.org>
68301
68302         * MODULES.html.sh (func_module): Break long lines.
68303         Suggested by Bruce Korb <bkorb@gnu.org>.
68304
68305 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68306
68307         Speed up by a factor of 1.12.
68308         * gnulib-tool (nl): New variable.
68309         (func_import): Rewrite include directive extraction to only read each
68310         directive once.
68311
68312 2006-09-17  Bruno Haible  <bruno@clisp.org>
68313
68314         * modules/javaversion (Makefile.am): Remove DEFS setting.
68315         (Depends-on): Add configmake, for PKGDATADIR definition.
68316
68317 2006-09-17  Bruno Haible  <bruno@clisp.org>
68318
68319         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68320
68321 2006-09-17  Bruno Haible  <bruno@clisp.org>
68322
68323         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68324         (func_modules_transitive_closure, func_modules_add_dummy,
68325         func_modules_to_filelist, func_import, func_create_testdir,
68326         func_create_megatestdir, ...): Use it wherever possible.
68327         Suggested by Ralf Wildenhues.
68328
68329 2006-09-16  Karl Berry  <karl@gnu.org>
68330
68331         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68332         to avoid sectioning errors.
68333         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68334         [ifinfo]: blank line after @center-ed titles.
68335         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68336         Spell FSF address consistently with others.
68337         (These changes approved by rms.)
68338
68339 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68340
68341         Speed up by a factor of 1.61.
68342         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68343         already checked module names again.
68344
68345 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68346
68347         Speed up by a factor of 1.13.
68348         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68349         for new_files, and the input to func_add_or_update.
68350
68351 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68352
68353         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68354         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68355
68356 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68357
68358         * modules/mkancesdirs (Depends-on): Add fcntl.
68359         * modules/savewd: New file.
68360         * MODULES.html.sh (File system functions): Add savewd.
68361
68362         * modules/configmake (Makefile.am): Add support for the
68363         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68364
68365 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68366
68367         * m4/savewd.m4: New file.
68368
68369 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68370
68371         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68372         (dirchownmod): New arg FD.  All callers changed.
68373         Use FD rather than opening the directory ourself, as opening is
68374         now the caller's responsibility.
68375         * lib/dirchownmod.h: Likewise.
68376         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68377         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68378         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68379         (test_dir): Remove.
68380         (mkancesdirs): Return length of prefix of FILE that has already
68381         been made, or -2 if there is a child doing the work.  Redo
68382         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68383         ".", and treat ".." specially since it might stray back into
68384         already-created areas.  Use a subprocess if necessary.  New arg
68385         WD; all users changed.  MAKE_DIR function should now return 1
68386         if it creates a directory that is not readable.  Return -2 if
68387         a child process is spun off.
68388         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68389         Adjust signature to match code.
68390         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68391         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68392         all users changed.
68393         * lib/savewd.c, lib/savewd.h: New files.
68394
68395 2006-09-15  Jim Meyering  <jim@meyering.net>
68396
68397         * modules/rename-dest-slash: New module.
68398         * MODULES.html.sh (posix_compat): Add it here.
68399
68400         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68401
68402 2006-09-15  Jim Meyering  <jim@meyering.net>
68403
68404         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68405         file.
68406
68407         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68408
68409 2006-09-15  Jim Meyering  <jim@meyering.net>
68410
68411         * lib/rename-dest-slash.c (has_trailing_slash): Use
68412         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68413         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68414         test before testing whether SRC is a directory.
68415         Suggestions from Bruno Haible.
68416
68417         Avoid a warning about an unused variable.
68418         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68419         into the #ifdef block where it's used.
68420
68421         * lib/rename-dest-slash.c: New file.
68422
68423 2006-09-14  Bruno Haible  <bruno@clisp.org>
68424
68425         * lib/allocsa.c: Include <config.h> unconditionally.
68426         * lib/asnprintf.c: Likewise.
68427         * lib/asprintf.c: Likewise.
68428         * lib/c-strcasecmp.c: Likewise.
68429         * lib/c-strcasestr.c: Likewise.
68430         * lib/c-strncasecmp.c: Likewise.
68431         * lib/c-strstr.c: Likewise.
68432         * lib/classpath.c: Likewise.
68433         * lib/clean-temp.c: Likewise.
68434         * lib/concatpath.c: Likewise.
68435         * lib/copy-file.c: Likewise.
68436         * lib/csharpcomp.c: Likewise.
68437         * lib/csharpexec.c: Likewise.
68438         * lib/execute.c: Likewise.
68439         * lib/fatal-signal.c: Likewise.
68440         * lib/findprog.c: Likewise.
68441         * lib/fwriteerror.c: Likewise.
68442         * lib/gl_array_list.c: Likewise.
68443         * lib/gl_array_oset.c: Likewise.
68444         * lib/gl_avltree_list.c: Likewise.
68445         * lib/gl_avltree_oset.c: Likewise.
68446         * lib/gl_avltreehash_list.c: Likewise.
68447         * lib/gl_carray_list.c: Likewise.
68448         * lib/gl_linked_list.c: Likewise.
68449         * lib/gl_linkedhash_list.c: Likewise.
68450         * lib/gl_list.c: Likewise.
68451         * lib/gl_oset.c: Likewise.
68452         * lib/gl_rbtree_list.c: Likewise.
68453         * lib/gl_rbtree_oset.c: Likewise.
68454         * lib/gl_rbtreehash_list.c: Likewise.
68455         * lib/imaxabs.c: Likewise.
68456         * lib/imaxdiv.c: Likewise.
68457         * lib/javacomp.c: Likewise.
68458         * lib/javaexec.c: Likewise.
68459         * lib/javaversion.c: Likewise.
68460         * lib/linebreak.c: Likewise.
68461         * lib/localcharset.c: Likewise.
68462         * lib/lock.c: Likewise.
68463         * lib/mbchar.c: Likewise.
68464         * lib/mbswidth.c: Likewise.
68465         * lib/mkdtemp.c: Likewise.
68466         * lib/pipe.c: Likewise.
68467         * lib/printf-args.c: Likewise.
68468         * lib/printf-parse.c: Likewise.
68469         * lib/progname.c: Likewise.
68470         * lib/progreloc.c: Likewise.
68471         * lib/readlink.c: Likewise.
68472         * lib/sh-quote.c: Likewise.
68473         * lib/stpcpy.c: Likewise.
68474         * lib/stpncpy.c: Likewise.
68475         * lib/strcasecmp.c: Likewise.
68476         * lib/strcasestr.c: Likewise.
68477         * lib/strcspn.c: Likewise.
68478         * lib/striconv.c: Likewise.
68479         * lib/strncasecmp.c: Likewise.
68480         * lib/strnlen1.c: Likewise.
68481         * lib/strstr.c: Likewise.
68482         * lib/strtok_r.c: Likewise.
68483         * lib/tls.c: Likewise.
68484         * lib/tmpdir.c: Likewise.
68485         * lib/unicodeio.c: Likewise.
68486         * lib/unsetenv.c: Likewise.
68487         * lib/vasnprintf.c: Likewise.
68488         * lib/vasprintf.c: Likewise.
68489         * lib/wait-process.c: Likewise.
68490         * lib/xallocsa.c: Likewise.
68491         * lib/xsetenv.c: Likewise.
68492         * lib/xstriconv.c: Likewise.
68493
68494 2006-09-13  Simon Josefsson  <jas@extundo.com>
68495
68496         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68497         that internally, suggested by Ralf Wildenhues
68498         <Ralf.Wildenhues@gmx.de>.
68499
68500 2006-09-13  Simon Josefsson  <jas@extundo.com>
68501
68502         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68503         @LIBOBJS@.
68504         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68505
68506 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68507
68508         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68509         longer worry about uses that don't define HAVE_CONFIG_H.
68510         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68511         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68512         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68513         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68514         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68515         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68516         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68517         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68518         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68519         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68520         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68521         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68522         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68523         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68524         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68525         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68526         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68527         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68528         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68529         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68530         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68531         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68532         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68533         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68534         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68535         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68536         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68537         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68538         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68539         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68540         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68541         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68542         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68543         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68544         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68545         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68546         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68547         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68548         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68549         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68550         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68551         Likewise.
68552
68553 2006-09-13  Eric Blake  <ebb9@byu.net>
68554
68555         * lib/getopt.c: Fix typo in last commit.
68556
68557 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68558
68559         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68560         dgettext.
68561
68562 2006-09-12  Jim Meyering  <jim@meyering.net>
68563
68564         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68565         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68566         Reported by Nelson H. F. Beebe.
68567
68568 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68569
68570         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68571         program_invocation_name and program_invocation_short_name are
68572         initialized.
68573         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68574         and program_invocation_short_name to argp.h, so they are visible
68575         to user programs.
68576         * lib/argp.h: Likewise
68577
68578 2006-09-10  Bruno Haible  <bruno@clisp.org>
68579
68580         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68581         m4/inttypes_h.m4, m4/uintmax_t.m4.
68582
68583 2006-09-10  Bruno Haible  <bruno@clisp.org>
68584
68585         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68586         gl_AC_TYPE_UINTMAX_T.
68587
68588 2006-09-10  Bruno Haible  <bruno@clisp.org>
68589
68590         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68591
68592 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68593
68594         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68595         convention.  Text proposed by Bruno Haible.
68596         (struct argp_option): Document the use of N_() wrappers.
68597
68598         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68599         '\v', and translate the two parts separately, instead of feeding
68600         the whole string to gettext.  This allows to exclude
68601         '\v' from the strings visible to the translator by writing doc
68602         strings as N_("..") "\v" N_("..").
68603
68604 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68605
68606         * config/srclist.txt: Undo latest change; the bug was fixed.
68607
68608 2006-09-09  Bruno Haible  <bruno@clisp.org>
68609
68610         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68611         assignments if building a library without libtool.
68612         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68613         in func_emit_lib_Makefile_am.
68614         (func_import): When building a static library libfoo.a, arrange to
68615         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68616         (func_create_testdir): Likewise.
68617         * modules/gc (configure.ac, Makefile.am): If building statically,
68618         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68619         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68620         * modules/striconv (configure.ac, Makefile.am): Likewise.
68621         Based on a suggestion by Ralf Wildenhues.
68622
68623 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68624
68625         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68626         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68627         Also:
68628
68629         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68630         Add year_2050_test to catch glibc bug 2821
68631         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68632
68633         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68634         Prefer #ifdef to #if.
68635
68636         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68637         Return from 'main' instead of calling 'exit'.
68638
68639 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68640
68641         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68642         returned the maximum time_t value rather than (time_t) -1.
68643         Problem originally reported by William Bardwell
68644         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68645
68646         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68647         Moved to here ...
68648         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68649         ... from here.
68650
68651 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68652
68653         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68654         2821 is fixed.
68655
68656 2006-09-08  Jim Meyering  <jim@meyering.net>
68657
68658         Don't make generated files read-only.  That would bother too many
68659         people.  However, do retain the ability to work when targets are
68660         read-only: remove the destination and temporary files before writing
68661         them (when generated via sed or echo), or by using the -f option for
68662         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68663         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68664         * modules/byteswap, modules/configmake, modules/fcntl:
68665         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68666         * modules/localcharset, modules/netinet_in, modules/poll:
68667         * modules/stdbool, modules/stdint, modules/sys_select:
68668         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68669
68670 2006-09-08  Jim Meyering  <jim@meyering.net>
68671
68672         Avoid new build failure on FreeBSD 6.0.
68673         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68674         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68675         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68676
68677 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68678
68679         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68680
68681 2006-09-07  Jim Meyering  <jim@meyering.net>
68682
68683         Fix global typo in last change: use chmod u-w, not chmod u-x.
68684         Spotted by Paul Eggert and Bruce Korb.
68685         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68686         * modules/byteswap, modules/configmake, modules/fcntl:
68687         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68688         * modules/localcharset, modules/netinet_in, modules/poll:
68689         * modules/stdbool, modules/stdint, modules/sys_select:
68690         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68691
68692 2006-09-06  Jim Meyering  <jim@meyering.net>
68693
68694         Make generated files be read-only.
68695         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68696         Ensure that each generated file is now read-only.
68697         * modules/argz: Likewise.
68698         * modules/arpa_inet: Likewise.
68699         * modules/byteswap: Likewise.
68700         * modules/configmake: Likewise.
68701         * modules/fcntl: Likewise.
68702         * modules/fnmatch: Likewise.
68703         * modules/getopt: Likewise.
68704         * modules/glob: Likewise.
68705         * modules/inttypes: Likewise.
68706         * modules/netinet_in: Likewise.
68707         * modules/poll: Likewise.
68708         * modules/stdbool: Likewise.
68709         * modules/stdint: Likewise.
68710         * modules/sys_select: Likewise.
68711         * modules/sys_socket: Likewise.
68712         * modules/sys_stat: Likewise.
68713         * modules/sysexits: Likewise.
68714         * modules/localcharset: Same as above, but continue using temporary
68715         file named "t-$@" (why different?) rather than the "$@-t" used
68716         everywhere else.
68717
68718         * modules/sysexits (Makefile.am): Replace literal occurrences
68719         of "sysexit.h" more readable, and more consistent, "$@".
68720
68721 2006-09-06  Bruno Haible  <bruno@clisp.org>
68722
68723         * modules/striconv: New file.
68724         * modules/xstriconv: New file.
68725         * MODULES.html.sh (Internationalization functions): Add striconv,
68726         xstriconv.
68727
68728 2006-09-06  Bruno Haible  <bruno@clisp.org>
68729
68730         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68731         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68732         not using libtool correctly.
68733
68734 2006-09-06  Bruno Haible  <bruno@clisp.org>
68735
68736         * lib/striconv.h: New file.
68737         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68738         iconvstring.c.
68739         * lib/xstriconv.h: New file.
68740         * lib/xstriconv.c: New file.
68741
68742 2006-09-06  Bruno Haible  <bruno@clisp.org>
68743
68744         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68745         lib_..._LDFLAGS.
68746
68747 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68748
68749         * lib/argz_.h: Sync from Libtool.
68750
68751         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68752                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68753
68754         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68755
68756 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68757
68758         * modules/trim: New file.
68759
68760 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68761
68762         * lib/trim.h: New file.
68763         * lib/trim.c: New file.
68764
68765 2006-09-05  Bruno Haible  <bruno@clisp.org>
68766
68767         * MODULES.html.sh (String handling): Add trim.
68768
68769 2006-09-04  Karl Berry  <karl@gnu.org>
68770
68771         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68772         until next release.
68773
68774 2006-09-03  Bruno Haible  <bruno@clisp.org>
68775
68776         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68777         correctly.
68778
68779 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68780
68781         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68782         not gl_GETLOADAVG.  Omit unneeded semicolons.
68783         Problems reported by Ralf Wildenhues in
68784         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68785         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68786         at the end, which is the usual gnulib style.
68787
68788         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68789         of doing all the work ourselves.
68790         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68791         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68792
68793 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68794
68795         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68796         Problem reported by Ralf Wildenhues in
68797         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68798
68799         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68800         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68801
68802 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68803
68804         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68805         yesterday's patch by changing test -n to test -z.
68806
68807 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68808
68809         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68810         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68811         the former is now obsolescent.
68812
68813         * modules/chdir-long (Depends-on): Add fcntl.
68814
68815 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68816
68817         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68818         obsolescent, and programs should use gnulib instead.
68819         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68820         but with prefixes changed.
68821
68822 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68823
68824         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68825         or stdbool.h, because they might not exist while configuring.
68826
68827         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68828         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68829         does that for us.
68830         (O_DIRECTORY): Remove.
68831
68832 2006-08-31  Eric Blake  <ebb9@byu.net>
68833
68834         * gnulib-tool: Don't let emacs change spaces to TAB.
68835
68836 2006-08-31  Bruno Haible  <bruno@clisp.org>
68837
68838         * gnulib-tool: When calling func_import more than once, do it in a
68839         subshell.
68840         Reported by Eric Blake <ebb9@byu.net>.
68841
68842 2006-08-31  Bruno Haible  <bruno@clisp.org>
68843
68844         * gnulib-tool (nl): Remove variable.
68845         (sed_transform_lib_file): Use more robust test for config-h module.
68846         (func_import): Fix typo in 2006-08-25 patch.
68847
68848 2006-08-31  Bruno Haible  <bruno@clisp.org>
68849
68850         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68851         specified, augment Makefile.am variables instead of assigning them.
68852
68853 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68854
68855         Work around a bug in both the Linux and SunOS 64-bit kernels:
68856         nanosleep mishandles sleeps for longer than 2**31 seconds.
68857         Problem reported by Frank v Waveren in
68858         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68860         Check for nanosleep bug.
68861         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68862
68863 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68864
68865         Work around a bug in both the Linux and SunOS 64-bit kernels:
68866         nanosleep mishandles sleeps for longer than 2**31 seconds.
68867         Problem reported by Frank v Waveren in
68868         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68869         * lib/nanosleep.c (BILLION): New constant.
68870         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68871         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68872         implementation.
68873
68874 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68875
68876         * modules/nanosleep (Depends-on): Add gettime.
68877
68878 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68879         and Simon Josefsson  <jas@extundo.com>
68880         and Oskar Liljeblad  <oskar@osk.mine.nu>
68881
68882         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68883         * gnulib-tool (func_import): New license type 'unmodifiable license
68884         text'.
68885         * modules/fdl: Use it.  Longer description.
68886         * module/gpl, module/lgpl: New files.
68887
68888 2006-08-30  Jim Meyering  <jim@meyering.net>
68889
68890         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68891         shadowing the parameter.
68892
68893 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68894
68895         Sync from Libtool:
68896
68897         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68898
68899         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68900         sharing with gnulib.  Report by Eric Blake.
68901
68902 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68903
68904         * modules/isapipe: New file.
68905         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68906
68907 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68908
68909         * modules/configmake (Makefile.am): Add a comment, and omit
68910         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68911         by Bruno Haible.
68912
68913 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68914
68915         * m4/isapipe.m4: New file.
68916
68917 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68918
68919         * lib/isapipe.c, lib/isapipe.h: New files.
68920
68921 2006-08-29  Jim Meyering  <jim@meyering.net>
68922
68923         * modules/configmake (Makefile.am): Make configmake.h depend on
68924         Makefile.  Otherwise, a stale configmake.h could hang around.
68925
68926 2006-08-29  Eric Blake  <ebb9@byu.net>
68927
68928         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68929         resolution of upstream bug 3044.
68930
68931 2006-08-29  Bruno Haible  <bruno@clisp.org>
68932
68933         * modules/localcharset (Depends-on): Add configmake.
68934         (Makefile.am): Remove setting of LIBDIR through DEFS.
68935
68936 2006-08-29  Bruno Haible  <bruno@clisp.org>
68937
68938         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68939         defined.
68940
68941 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68942
68943         * modules/fcntl: New file.
68944         * modules/chdir-safer (Depends-on): Add fcntl.
68945         * modules/fts: Likewise.
68946         * modules/mkdir-p: Likewise.
68947
68948         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68949         This undoes the most recent change, since we're now addressing the
68950         problem in a different way.
68951
68952         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68953         into output, since the output might be called Makefile.am even
68954         if $makefile_name is something different.
68955         (func_import): Use $makefile_am rather than
68956         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68957         empty.
68958
68959         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68960
68961 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68962
68963         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68964         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68965         recent change to stdint.m4, since we're now addressing the problem in a
68966         different way.
68967
68968 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68969
68970         * m4/fcntl_h.m4: New file.
68971
68972 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         * lib/fcntl_.h: New file.
68975         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68976         the fcntl module.
68977         * lib/dirchownmod.c: Likewise.
68978         * lib/fts.c: Likewise.
68979
68980         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68981         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68982         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68983         just before including <inttypes.h>, to avoid circular inclusion.
68984
68985 2006-08-28  Jim Meyering  <jim@meyering.net>
68986
68987         * doc/visibility.texi: Actually read and correct the grammar of the
68988         sentence affected by yesterday's change.
68989
68990 2006-08-28  Eric Blake  <ebb9@byu.net>
68991
68992         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68993         needs wrapper.
68994
68995 2006-08-28  Eric Blake  <ebb9@byu.net>
68996
68997         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68998
68999 2006-08-28  Eric Blake  <ebb9@byu.net>
69000
69001         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69002
69003 2006-08-28  Bruno Haible  <bruno@clisp.org>
69004
69005         * modules/c-strstr: New file, from GNU gettext.
69006         * MODULES.html.sh (String handling): Add c-strstr.
69007
69008 2006-08-28  Bruno Haible  <bruno@clisp.org>
69009
69010         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69011         macros.
69012         Reported by Eric Blake.
69013
69014 2006-08-28  Bruno Haible  <bruno@clisp.org>
69015
69016         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69017         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69018         * lib/vasprintf.c: Include errno.h, limits.h.
69019         (EOVERFLOW): New fallback definition.
69020         (vasprintf): Test here whether the string length is > INT_MAX.
69021         * lib/vsnprintf.c: Include errno.h, limits.h.
69022         (EOVERFLOW): New fallback definition.
69023         (vsnprintf): Fix bug when generated string was too long for the buffer.
69024         Test here whether the string length is > INT_MAX.
69025
69026 2006-08-28  Bruno Haible  <bruno@clisp.org>
69027
69028         * lib/inttypes_.h (SCNX*): Remove definitions.
69029         Reported by Eric Blake.
69030
69031 2006-08-28  Bruno Haible  <bruno@clisp.org>
69032
69033         * lib/c-strstr.h: New file, from GNU gettext.
69034         * lib/c-strstr.c: New file, from GNU gettext.
69035
69036 2006-08-28  Bruno Haible  <bruno@clisp.org>
69037
69038         * gnulib-tool: Reorder some statements.
69039
69040 2006-08-28  Bruno Haible  <bruno@clisp.org>
69041
69042         * gnulib-tool: New option --makefile-name.
69043         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69044         $makefile_name.
69045         (func_import): Write $makefile_name to the cache file, and read it from
69046         there unless explicitly specified. Use $makefile_name as file name
69047         instead of Makefile.am. Adjust the recommendations accordingly.
69048
69049 2006-08-28  Bruno Haible  <bruno@clisp.org>
69050
69051         * gnulib-tool (func_verify_module): Check against misapplying patch.
69052
69053 2006-08-28  Bruno Haible  <bruno@clisp.org>
69054
69055         * gnulib-tool (func_relativize, func_relconcat): New functions.
69056         Give an error if --local-dir is given with --update.
69057         Remove trailing slashes from $local_gnulib_dir.
69058         (func_import): Store the relativized $local_gnulib_dir in
69059         gnulib-cache.m4, and read it from there if not specified explicitly.
69060
69061 2006-08-28  Bruno Haible  <bruno@clisp.org>
69062
69063         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69064         is the current directory. Respect also $local_gnulib_dir.
69065
69066 2006-08-28  Bruno Haible  <bruno@clisp.org>
69067             Simon Josefsson  <jas@extundo.com>
69068
69069         BeOS portability.
69070         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69071
69072 2006-08-27  Jim Meyering  <jim@meyering.net>
69073
69074         * doc/visibility.texi: Remove duplicate word: "pointer".
69075
69076 2006-08-26  Bruno Haible  <bruno@clisp.org>
69077
69078         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69079         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69080         (Makefile.am): Create inttypes.h from inttypes_.h.
69081         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69082
69083         * modules/imaxabs: New file.
69084
69085         * modules/imaxdiv: New file.
69086
69087 2006-08-26  Bruno Haible  <bruno@clisp.org>
69088
69089         * m4/inttypes.m4: New file.
69090         * m4/_inttypes_h.m4: Remove file.
69091         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69092         PRI_MACROS_BROKEN.
69093         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69094
69095         * m4/imaxabs.m4: New file.
69096
69097         * m4/imaxdiv.m4: New file.
69098
69099 2006-08-26  Bruno Haible  <bruno@clisp.org>
69100
69101         * lib/inttypes_.h: New file.
69102         * lib/inttypes.h: Remove file.
69103         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69104
69105         * lib/imaxabs.c: New file.
69106
69107         * lib/imaxdiv.c: New file.
69108
69109 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69110
69111         New config-h module, so that "make" output needn't be cluttered
69112         by -DHAVE_CONFIG_H.
69113         * MODULES.html.sh (Support for building libraries and executables):
69114         Add config-h.
69115         * modules/config-h: New file.
69116         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69117         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69118         the config-h module is used.
69119
69120         New configmake module, so that "make" output needn't be cluttered
69121         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69122         * MODULES.html.sh (Support for building libraries and executables):
69123         Add configmake.
69124         * modules/configmake: New file.
69125
69126 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69127
69128         * m4/config-h.m4: New file.
69129
69130 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69131
69132         * config/srclist.txt: Add elisp-comp.
69133
69134 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69135
69136         * MODULES.html.sh (Support for building libraries and executables):
69137         Add elisp-comp.
69138         * build-aux/elisp-comp: New file.
69139         * modules/elisp-comp: New file.
69140
69141 2006-08-24  Bruno Haible  <bruno@clisp.org>
69142
69143         * gnulib-tool (func_create_testdir): Use non-default values of
69144         sourcebase and m4base.
69145
69146 2006-08-24  Bruno Haible  <bruno@clisp.org>
69147
69148         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69149         HTML structure.
69150
69151 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69152
69153         * modules/openat (Depends-on): Add lchown.
69154
69155 2006-08-23  Bruno Haible  <bruno@clisp.org>
69156
69157         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69158         of gl_LOCK_EARLY instead of gl_LOCK.
69159
69160 2006-08-23  Bruno Haible  <bruno@clisp.org>
69161
69162         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69163         on OSF/1 to no.
69164         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69165
69166 2006-08-23  Bruno Haible  <bruno@clisp.org>
69167
69168         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69169         as unusable.
69170
69171         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69172         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69173         (gl_LOCK): New macro.
69174
69175 2006-08-22  Simon Josefsson  <jas@extundo.com>
69176
69177         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69178         to md5 module.
69179
69180 2006-08-22  Simon Josefsson  <jas@extundo.com>
69181
69182         * MODULES.html.sh: Add "Support for maintaining and release
69183         projects".
69184
69185         * build-aux/gnupload: New file, from coreutils.
69186
69187 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69188
69189         Avoid the need for AC_LIBSOURCES in m4 macros.
69190         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69191         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69192         * modules/check-version (EXTRA_DIST): Add check-version.h.
69193         * modules/crc (EXTRA_DIST): Add crc.h.
69194         * modules/des (EXTRA_DIST): Add des.h.
69195         * modules/gc (EXTRA_DIST): Add gc.h.
69196         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69197         * modules/getline (EXTRA_DIST): Add getline.h.
69198         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69199         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69200         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69201         * modules/md2 (EXTRA_DIST): Add md2.h.
69202         * modules/md4 (EXTRA_DIST): Add md4.h.
69203         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69204         * modules/read-file (EXTRA_DIST): Add read-file.h.
69205         * modules/readline (EXTRA_DIST): Add readline.h.
69206         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69207         rijndael-api-fst.h.
69208
69209 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69210
69211         * m4/rijndael.m4 (gl_ARCFOUR):
69212         * m4/arctwo.m4 (gl_ARCTWO):
69213         * m4/check-version.m4 (gl_CHECK_VERSION):
69214         * m4/crc.m4 (gl_CRC):
69215         * m4/des.m4 (gl_DES):
69216         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69217         * m4/gc.m4 (gl_GC):
69218         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69219         * m4/getline.m4 (gl_FUNC_GETLINE):
69220         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69221         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69222         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69223         * m4/md2.m4 (gl_MD2):
69224         * m4/md4.m4 (gl_MD4):
69225         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69226         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69227         * m4/readline.m4 (gl_FUNC_READLINE):
69228         * m4/rijndael.m4 (gl_RIJNDAEL):
69229         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69230         to get the necessary .h files and whatnot.
69231
69232 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69233
69234         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69235         gnulib rather than the other way around.
69236         * config/srclistvars.sh (COREUTILS): Remove.
69237
69238 2006-08-22  Jim Meyering  <jim@meyering.net>
69239
69240         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69241
69242         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69243
69244 2006-08-22  Eric Blake  <ebb9@byu.net>
69245
69246         * modules/regexprops-generic: New file.
69247         * MODULES.html.sh (Support for building documentation): List it.
69248
69249 2006-08-22  Eric Blake  <ebb9@byu.net>
69250
69251         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69252         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69253         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69254         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69255
69256 2006-08-22  Bruno Haible  <bruno@clisp.org>
69257
69258         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69259         and lib_LTLIBRARIES like the other lib_* variables.
69260
69261 2006-08-22  Bruno Haible  <bruno@clisp.org>
69262
69263         * build-aux/x-to-1.in: New file, from GNU gettext.
69264
69265 2006-08-22  Bruno Haible  <bruno@clisp.org>
69266
69267         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69268         <utmpx.h> exists.
69269
69270 2006-08-22  Bruno Haible  <bruno@clisp.org>
69271
69272         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69273         <utmpx.h> exists.
69274
69275 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69276
69277         BeOS portability.
69278         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69279         exist.
69280         Problem reported by Bruno Haible.
69281
69282 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         Avoid the need for AC_LIBSOURCES in m4 macros.
69285         * modules/acl (EXTRA_DIST): Add acl.h.
69286         * modules/argmatch (Files): Add m4/argmatch.m4.
69287         (configure.ac): Add gl_ARGMATCH.
69288         (EXTRA_DIST): Renamed from lib_SOURCES, for
69289         consistency with the other modules.  Remove argmatch.c.
69290         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69291         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69292         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69293         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69294         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69295         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69296         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69297         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69298         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69299         * modules/closeout (EXTRA_DIST): Add closeout.h.
69300         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69301         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69302         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69303         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69304         dirname.h; remove basename.c and stripslash.c.
69305         * modules/exclude (EXTRA_DIST): Add exclude.h.
69306         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69307         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69308         * modules/file-type (EXTRA_DIST): Add file-type.h.
69309         * modules/filemode (EXTRA_DIST): Add filemode.h.
69310         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69311         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69312         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69313         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69314         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69315         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69316         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69317         * modules/getdate (EXTRA_DIST): Add getdate.c.
69318         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69319         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69320         * modules/getpass (EXTRA_DIST): Add getpass.h.
69321         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69322         * modules/group-member (EXTRA_DIST): Add group-member.h.
69323         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69324         * modules/hash (EXTRA_DIST): Add hash.h.
69325         * modules/human (EXTRA_DIST): Add human.h.
69326         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69327         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69328         * modules/lchown (EXTRA_DIST): Add lchown.h.
69329         * modules/long-options (EXTRA_DIST): Add long-options.h.
69330         * modules/lstat (EXTRA_DIST): Add lstat.h.
69331         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69332         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69333         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69334         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69335         * modules/memxor (EXTRA_DIST): Add memxor.h.
69336         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69337         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69338         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69339         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69340         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69341         * modules/physmem (EXTRA_DIST): Add physmem.h.
69342         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69343         * modules/posixver (EXTRA_DIST): Add posixver.h.
69344         * modules/quote (EXTRA_DIST): Add quote.h.
69345         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69346         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69347         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69348         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69349         regex_internal.h regexec.c.
69350         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69351         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69352         * modules/same (EXTRA_DIST): Add same.h.
69353         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69354         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69355         * modules/savedir (EXTRA_DIST): Add savedir.h.
69356         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69357         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69358         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69359         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69360         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69361         * modules/strdup (EXTRA_DIST): Add strdup.h.
69362         * modules/strftime (EXTRA_DIST): Add strftime.h.
69363         * modules/strndup (EXTRA_DIST): Add strndup.h.
69364         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69365         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69366         * modules/time_r (EXTRA_DIST): Add time_r.h.
69367         * modules/timespec (EXTRA_DIST): Add timespec.h.
69368         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69369         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69370         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69371         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69372         * modules/userspec (EXTRA_DIST): Add userspec.h.
69373         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69374         * modules/utimens (EXTRA_DIST): Add utimens.h.
69375         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69376         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69377         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69378         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69379         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69380         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69381         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69382         * modules/yesno (EXTRA_DIST): Add yesno.h.
69383
69384 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69385
69386         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69387
69388         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69389         * m4/dev-ino.m4, same-inode.m4: Remove.
69390
69391         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69392         * m4/acl.m4 (AC_FUNC_ACL):
69393         * m4/backupfile.m4 (gl_BACKUPFILE):
69394         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69395         * m4/canon-host.m4 (gl_CANON_HOST):
69396         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69397         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69398         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69399         * m4/cloexec.m4 (gl_CLOEXEC):
69400         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69401         * m4/closeout.m4 (gl_CLOSEOUT):
69402         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69403         * m4/dirname.m4 (gl_DIRNAME):
69404         * m4/exclude.m4 (gl_EXCLUDE):
69405         * m4/exitfail.m4 (gl_EXITFAIL):
69406         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69407         * m4/file-type.m4 (gl_FILE_TYPE):
69408         * m4/filemode.m4 (gl_FILEMODE):
69409         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69410         * m4/fpending.m4 (gl_FUNC_FPENDING):
69411         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69412         * m4/fts.m4 (gl_FUNC_FTS):
69413         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69414         * m4/getdate.m4 (gl_GETDATE):
69415         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69416         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69417         * m4/getpass.m4 (gl_FUNC_GETPASS):
69418         * m4/gettime.m4 (gl_GETTIME):
69419         * m4/getugroups.m4 (gl_GETUGROUPS):
69420         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69421         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69422         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69423         * m4/hash.m4 (gl_HASH):
69424         * m4/idcache.m4 (gl_IDCACHE):
69425         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69426         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69427         * m4/long-options.m4 (gl_LONG_OPTIONS):
69428         * m4/lstat.m4 (gl_FUNC_LSTAT):
69429         * m4/md5.m4 (gl_MD5):
69430         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69431         * m4/memcoll.m4 (gl_MEMCOLL):
69432         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69433         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69434         * m4/memxor.m4 (gl_MEMXOR):
69435         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69436         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69437         * m4/modechange.m4 (gl_MODECHANGE):
69438         * m4/mountlist.m4 (gl_MOUNTLIST):
69439         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69440         * m4/openat.m4 (gl_FUNC_OPENAT):
69441         * m4/pathmax.m4 (gl_PATHMAX):
69442         * m4/physmem.m4 (gl_PHYSMEM):
69443         * m4/posixtm.m4 (gl_POSIXTM):
69444         * m4/posixver.m4 (gl_POSIXVER):
69445         * m4/quote.m4 (gl_QUOTE):
69446         * m4/quotearg.m4 (gl_QUOTEARG):
69447         * m4/readtokens.m4 (gl_READTOKENS):
69448         * m4/readutmp.m4 (gl_READUTMP):
69449         * m4/regex.m4 (gl_REGEX):
69450         * m4/safe-read.m4 (gl_SAFE_READ):
69451         * m4/safe-write.m4 (gl_SAFE_WRITE):
69452         * m4/same.m4 (gl_SAME):
69453         * m4/save-cwd.m4 (gl_SAVE_CWD):
69454         * m4/savedir.m4 (gl_SAVEDIR):
69455         * m4/settime.m4 (gl_SETTIME):
69456         * m4/sha1.m4 (gl_SHA1):
69457         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69458         * m4/stat-macros.m4 (gl_STAT_MACROS):
69459         * m4/stat-time.m4 (gl_STAT_TIME):
69460         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69461         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69462         * m4/strdup.m4 (gl_FUNC_STRDUP):
69463         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69464         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69465         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69466         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69467         * m4/time_r.m4 (gl_TIME_R):
69468         * m4/timespec.m4 (gl_TIMESPEC):
69469         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69470         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69471         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69472         * m4/userspec.m4 (gl_USERSPEC):
69473         * m4/utimecmp.m4 (gl_UTIMECMP):
69474         * m4/utimens.m4 (gl_UTIMENS):
69475         * m4/xalloc.m4 (gl_XALLOC):
69476         * m4/xgetcwd.m4 (gl_XGETCWD):
69477         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69478         * m4/xreadlink.m4 (gl_XREADLINK):
69479         * m4/xstrtod.m4 (gl_XSTRTOD):
69480         * m4/yesno.m4 (gl_YESNO):
69481         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69482         to get the necessary .h files and whatnot.
69483
69484 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69485             Bruno Haible  <bruno@clisp.org>
69486
69487         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69488         /bin/sh understanding of '!' conditional negation.
69489
69490 2006-08-21  Jim Meyering  <jim@meyering.net>
69491
69492         * modules/openat (Depends-on): Really alphabetize.
69493
69494         * modules/acl (Depends-on): Add error and quote.
69495
69496         * check-module (find_included_lib_files): Add at-func.c to the
69497         ok-to-include-more-than-once white list.
69498
69499         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69500
69501 2006-08-21  Bruno Haible  <bruno@clisp.org>
69502
69503         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69504         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69505         Reported by Martin Lambers <marlam@marlam.de>.
69506
69507 2006-08-21  Bruno Haible  <bruno@clisp.org>
69508
69509         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69510         specify an installation location, don't emit a noinst_LIBRARIES or
69511         noinst_LTLIBRARIES assignment.
69512
69513 2006-08-21  Bruno Haible  <bruno@clisp.org>
69514
69515         BeOS portability.
69516         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69517         BeOS has mbrtowc() but no <wctype.h>.
69518
69519 2006-08-21  Bruno Haible  <bruno@clisp.org>
69520
69521         BeOS portability.
69522         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69523         exist.
69524
69525 2006-08-21  Bruno Haible  <bruno@clisp.org>
69526
69527         BeOS portability.
69528         * lib/mbchar.h: Include <wctype.h> only if it exists.
69529
69530 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69531
69532         Remove files that are no longer needed by their respective modules.
69533         * m4/obstack.m4: Remove.
69534         * m4/strerror_r.m4: Remove.
69535         * m4/uint32_t.m4: Remove.
69536         * m4/uintptr_t.m4: Remove.
69537         * m4/ullong_max.m4: Remove.
69538         * m4/xstrtoimax.m4: Remove.
69539         * m4/xstrtoumax.m4: Remove.
69540
69541         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69542         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69543         dependencies now capture this.
69544
69545         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69546         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69547         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69548         * m4/human.m4 (gl_HUMAN): Likewise.
69549         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69550         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69551
69552         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69553
69554         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69555         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69556         stdint.
69557         * m4/human.m4 (gl_HUMAN): Likewise.
69558         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69559         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69560         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69561         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69562         * m4/xstrtol (gl_XSTRTOL): Likewise.
69563
69564         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69565         AC_TYPE_LONG_LONG_INT.
69566         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69567         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69568         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69569         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69570
69571         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69572         on stdbool.
69573
69574         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69575         (gl_PREREQ_XSTRTOUL): Remove.
69576
69577         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69578
69579         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69580         mode.
69581
69582 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         Add and change modules to make it easier for coreutils to use
69585         gnulib-tool.
69586         * modules/backupfile (Files): Remove m4/d-ino.m4.
69587         (Depends-on): Add d-ino.
69588         * modules/cycle-check (Depends-on): Add stdint.
69589         (lib_SOURCES): Add cycle-check.h.
69590         * modules/d-ino: New module.
69591         * modules/d-type: New module.
69592         * modules/error (Files): Remove m4/strerror_r.m4.
69593         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69594         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69595         m4/inttypes_h.m4, m4/uintmax_t.m4.
69596         (Depends-on): Add stdint.
69597         (lib_SOURCES): Add fsusage.h.
69598         * modules/getcwd (Files): Remove d-ino.m4.
69599         (Depends-on): Add d-ino.
69600         * modules/getndelim2 (Depends-on): Add stdint.
69601         * modules/glob (Files): Remove m4/d-type.m4.
69602         (Depends-on): Add d-type.
69603         * modules/host-os: New module.
69604         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69605         m4/inttypes_h.m4, m4/uintmax_t.m4.
69606         * Depends-on: Add stdint.
69607         (lib_SOURCES): Add human.h.
69608         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69609         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69610         m4/uintmax_t.m4, m4/ulonglong.m4.
69611         (Depends-on): Add stdint.
69612         (EXTRA_DIST): Add inttostr.h.
69613         * modules/lchmod: New module.
69614         * modules/link-follow: New module.
69615         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69616         (Depends-on): Add lchmod.
69617         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69618         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69619         (Depends-on): Add stdint.
69620         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69621         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69622         (Depends-on): Add stdint.
69623         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69624         * modules/perl: New module.
69625         * modules/regex (Depends-on): Add stdint.
69626         * modules/rmdir-errno: New module.
69627         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69628         m4/intmax_t.m4.
69629         (Depends-on): Add stdint.
69630         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69631         m4/uintmax_t.m4.
69632         (Depends-on): Add stdint.
69633         * modules/unlink-busy: New module.
69634         * modules/utimecmp (Depends-on): Add stdint.
69635         * modules/uptime: New module.
69636         * modules/winsz-ioctl: New module.
69637         * modules/winsz-termios: New module.
69638         * modules/xnanosleep (Depends-on): Add nanosleep.
69639         * modules/ullong_max: Remove.
69640         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69641         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69642         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69643         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69644         (Depends-on): Add inttypes.
69645         (lib_SOURCES): Add xstrtol.h.
69646         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69647         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69648         * MODULES.html.sh: Move 'assert' into the assert section.
69649         Move 'dummy' into the linking section.
69650         Remove ullong_max.
69651         Add section for compatibility checks for POSIX:2001 functions,
69652         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69653         winsz-ioctl, and winsz-termios into it.
69654         Add lchmod.
69655         Add top-level Misc section and put host-os, perl, and uptime
69656         into it.
69657
69658 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69659
69660         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69661         now assume the stdint module.  Do not include inttypes.h.
69662         * lib/fsusage.h: Likewise.
69663         * lib/getndelim2.c: Likewise.
69664         * lib/human.h: Likewise.
69665         * lib/inttostr.h: Likewise.
69666         * lib/obstack.c: Likewise.
69667         * lib/regex_internal.h: Likewise.
69668         * lib/tempname.c: Likewise.
69669         * lib/utimecmp.c: Likewise.
69670         * lib/xstrtol.h: Likewise.
69671
69672         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69673
69674         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69675         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69676         * lib/xtime.h: Likewise.
69677
69678 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69679
69680         * modules/openat (Files): Add lib/fchmodat.c.
69681         Fixes problem reported by Jay Youngman.
69682
69683 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69684
69685         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69686         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69687
69688 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69689             Bruno Haible  <bruno@clisp.org>
69690
69691         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69692         and is a script that invokes bison. Tighten the code. Add comments.
69693
69694 2006-08-18  Jim Meyering  <jim@meyering.net>
69695
69696         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69697         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69698         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69699         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69700
69701 2006-08-18  Bruno Haible  <bruno@clisp.org>
69702
69703         * modules/bison-i18n: New file.
69704         * MODULES.html.sh (Internationalization functions): Add it.
69705
69706 2006-08-18  Bruno Haible  <bruno@clisp.org>
69707
69708         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69709         sys/statvfs.h. When getmntinfo was found, check its declaration and
69710         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69711
69712 2006-08-18  Bruno Haible  <bruno@clisp.org>
69713
69714         * m4/bison-i18n.m4: New file, from bison.
69715
69716 2006-08-18  Bruno Haible  <bruno@clisp.org>
69717
69718         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69719         (ME_DUMMY): Treat "kernfs" as a dummy.
69720         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69721
69722 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69723
69724         Update from coreutils.
69725
69726         2006-08-15  Jim Meyering  <jim@meyering.net>
69727
69728         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69729
69730         2006-01-17  Jim Meyering  <jim@meyering.net>
69731
69732         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69733
69734         2006-01-11  Jim Meyering  <jim@meyering.net>
69735
69736         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69737         Check for the lchmod function.
69738
69739 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         Update from coreutils.
69742
69743         * lib/__fpending.h: Add copyright notice.
69744         * lib/fprintftime.h: Likewise.
69745         * lib/savedir.c: Use (C) in copyright notice.
69746         * lib/savedir.h: Likewise.
69747
69748         2006-08-15  Jim Meyering  <jim@meyering.net>
69749
69750         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69751         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69752         in support of the EXPECTED_ERRNO macro.
69753         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69754         definitions.  Instead, define the appropriate symbols and include
69755         "at-func.c".
69756         * lib/mkdirat.c (mkdirat): Likewise.
69757         * lib/fchmodat.c (fchmodat): Likewise.
69758         (ENOSYS): Remove definition.
69759         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69760         it.  Don't include "unistd--.h" -- it wasn't ever used.
69761
69762         2006-01-17  Jim Meyering  <jim@meyering.net>
69763
69764         Rewrite fts.c not to change the current working directory,
69765         by using openat, fstatat, fdopendir, etc..
69766
69767         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69768         (HAVE_OPENAT_SUPPORT): Define.
69769         [_LIBC] (fchdir): Don't undef or define; no longer used.
69770         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69771         Now, this `function' always succeeds, and consumes its file descriptor
69772         parameter -- so callers must not close such FDs.  Update callers.
69773         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69774         (diropen): Add parameter, SP.  Adjust all callers.
69775         Implement using diropen_fd, rather than open.
69776         (fts_open): Initialize new member, fts_cwd_fd.
69777         Remove fts_rft-setting code.
69778         (fts_close): Close fts_cwd_fd, if necessary.
69779         (__opendir2): Define in terms of opendir or opendirat,
69780         depending on whether the FST_NOCHDIR flag is set.
69781         (fts_build): Since fts_safe_changedir consumes its FD, and since
69782         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69783         and close the dup'd file descriptor upon failure.
69784         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69785         (fts_safe_changedir): Tweak semantics to reflect that this function
69786         now calls cwd_advance_fd and hence consumes its FD argument.
69787         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69788         [struct FTS] (fts_rft): Remove now-unused member.
69789         [struct FTS] (fts_cycle.state): Improve comment.
69790
69791         * lib/openat.c (openat_needs_fchdir): New function.
69792         * lib/openat.h (openat_needs_fchdir): Declare it.
69793
69794 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69795
69796         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69797         Problem and fix reported by Pádraig Brady in
69798         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69799
69800 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69801
69802         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69803
69804 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69805
69806         * lib/memcoll.c (memcoll): Optimize for the common case where the
69807         arguments are bytewise equal.
69808
69809 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69810
69811         * doc/regexprops-generic.texi: Add a copyright notice.
69812
69813 2006-08-15  Bruno Haible  <bruno@clisp.org>
69814
69815         * modules/tmpdir (License): Change to LGPL.
69816
69817 2006-08-15  Bruno Haible  <bruno@clisp.org>
69818
69819         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69820         module.
69821
69822 2006-08-14  Simon Josefsson  <jas@extundo.com>
69823
69824         * config/srclist.txt: Add gnupload.
69825
69826 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69827
69828         Change copyright notice from LGPL 2 to GPL 2, since that's the
69829         standard form used in the gnulib repository.
69830         * tests/test-lock.c: Likewise.
69831         * tests/test-stdint.c: Likewise.
69832         * tests/test-tls.c: Likewise.
69833
69834         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69835         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69836         Add copyright notice.
69837
69838         * check-module: Add copyright notice.  Output a copyright
69839         notice if "--version" is specified.
69840         * modules/COPYING: New file.
69841         * tests/test-getaddrinfo.c: Add copyright notice.
69842         * tests/test-verify.c: Likewise.
69843
69844 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69845
69846         Change copyright notice from LGPL 2 to GPL 2, since that's the
69847         standard form used in the gnulib repository.
69848         * lib/lock.c: LGPL -> GPL.
69849         * lib/lock.h: Likewise.
69850         * lib/strnlen1.c: Likewise.
69851         * lib/strnlen1.h: Likewise.
69852         * lib/tls.c: Likewise.
69853         * lib/tls.h: Likewise.
69854         * lib/tmpdir.c: Likewise.
69855
69856         * lib/TODO: Remove; this belongs only in coreutils.
69857
69858 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69859
69860         Add copyright notices to long-enough files that lack them, since
69861         otherwise the files aren't clearly free.  Use the same notice that
69862         getdate.texi already uses.
69863         * doc/alloca-opt.texi: Add copyright notice.
69864         * doc/alloca.texi: Likewise.
69865         * doc/ctime.texi: Likewise.
69866         * doc/functions.texi: Likewise.
69867         * doc/gcd.texi: Likewise.
69868         * doc/gnulib-tool.texi: Likewise.
69869         * doc/inet_ntoa.texi: Likewise.
69870         * doc/visibility.texi: Likewise.
69871
69872         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69873         * doc/quote.texi: Add copyright notice.
69874
69875         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69876         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69877         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69878         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69879         is now obsolete, and give a pointer to the Sun list.
69880         Add copyright notice.
69881
69882 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69883
69884         * config/srclistvars.sh: Add copyright notice.
69885
69886 2006-08-14  Eric Blake  <ebb9@byu.net>
69887
69888         Import the following change from libc:
69889
69890         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69891
69892         Upstream bug 2997.
69893         * lib/misc/error.c: Add space between program name and message if file
69894         name is missing.
69895
69896 2006-08-12  Karl Berry  <karl@gnu.org>
69897
69898         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69899         remove, these originate in gnulib now.
69900
69901 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69902
69903         * doc/Makefile (standards.info standards.html standards.dvi):
69904         Also depend on make-stds.texi.
69905
69906 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69907
69908         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69909         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69910
69911         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69912         in wchar_t.  Problem reported by Eric Blake.
69913
69914         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69915         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69916         Also, help the compiler to keep LEN in a register.
69917
69918 2006-08-11  Eric Blake  <ebb9@byu.net>
69919
69920         * users.txt: Sort.  Add tar.
69921
69922 2006-08-11  Bruno Haible  <bruno@clisp.org>
69923
69924         * users.txt: New file.
69925
69926 2006-08-11  Bruno Haible  <bruno@clisp.org>
69927
69928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69929         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69930
69931 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69932
69933         * modules/snprintf (Depends-on): Remove minmax.
69934         (Maintainer): Add self and Bruno.
69935
69936 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69937
69938         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69939         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69940         (EOVERFLOW): Define if the system does not.
69941         Do not include "minmax.h"; it wasn't used.
69942         (snprintf): Don't assume size_t promotes to an unsigned type.
69943         Fix bug when generated string was too long for the buffer: the
69944         buffer's contents are supposed to be the initial prefix of the
69945         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69946         exceeds INT_MAX; do the check ourselves.
69947
69948         Import the following changes from libc:
69949
69950         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69951
69952         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69953         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69954         set wc to the byte which couldn't be converted.
69955         (re_string_reconstruct): Don't clear valid_raw_len before calling
69956         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69957         tip_context using re_string_context_at.
69958
69959         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69960
69961         * lib/posix/regex.h: g++ still cannot handled [restrict].
69962
69963         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69964
69965         * lib/posix/regex.h: Remove special handling for VMS.
69966
69967 2006-08-10  Jim Meyering  <jim@meyering.net>
69968
69969         * modules/same-inode: New module.
69970         * modules/dev-ino: New module.
69971         * modules/cycle-check: Depend on these modules, rather than simply
69972         including their .h files.
69973         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69974         required via m4/cycle-check.m4.
69975         * modules/same: Depend on new same-inode module, rather than
69976         including same-inode.h.
69977         * modules/chdir-safer: New file.
69978
69979         * modules/chown (Depends-on): Add stat-macros.
69980
69981 2006-08-10  Jim Meyering  <jim@meyering.net>
69982
69983         * m4/cycle-check.m4: New file.
69984         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69985         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69986
69987 2006-08-10  Eric Blake  <ebb9@byu.net>
69988
69989         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69990         in from original proposal.
69991
69992 2006-08-10  Eric Blake  <ebb9@byu.net>
69993         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69994
69995         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69996         namespace.
69997
69998 2006-08-10  Bruno Haible  <bruno@clisp.org>
69999
70000         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70001         as well.
70002
70003 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70004
70005         Sync from coreutils.
70006
70007         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70008
70009         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70010         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70011
70012 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70013
70014         * modules/restrict: Remove; no longer needed now that we assume
70015         Autoconf 2.59 or later.
70016         * MODULES.html.sh: Remove 'restrict'.
70017         * modules/argp (Depends-on): Remove 'restrict'.
70018         * modules/base64 (Depends-on): Likewise.
70019         * modules/gc (Depends-on): Likewise.
70020         * modules/getaddrinfo (Depends-on): Likewise.
70021         * modules/glob (Depends-on): Likewise.
70022         * modules/inet_ntop (Depends-on): Likewise.
70023         * modules/inet_pton (Depends-on): Likewise.
70024         * modules/memxor (Depends-on): Likewise.
70025         * modules/regex (Depends-on): Likewise.
70026         * modules/strtok_r (Depends-on): Likewise.
70027         * modules/time_r (Depends-on): Likewise.
70028
70029 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70030
70031         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70032         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70033         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70034         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70035         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70036         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70037         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70038         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70039
70040         Merge from coreutils.
70041         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70042         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70043         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70044         * m4/time_r.m4 (gl_TIME_R): Likewise.
70045
70046 2006-08-09  Karl Berry  <karl@gnu.org>
70047
70048         * config/srclist.txt: no more gettext-tools, per Bruno.
70049
70050 2006-08-08  Eric Blake  <ebb9@byu.net>
70051
70052         * modules/verror: New module.
70053         * MODULES.html.sh: Document it.
70054
70055 2006-08-08  Eric Blake  <ebb9@byu.net>
70056
70057         * lib/verror.h, lib/verror.c: New files.
70058
70059 2006-08-08  Eric Blake  <ebb9@byu.net>
70060
70061         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70062         verror_at_line output complies with GNU Coding Standards even when
70063         file is NULL.
70064
70065 2006-08-07  Bruno Haible  <bruno@clisp.org>
70066
70067         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70068         versions of AIX.
70069         Reported by Ralf Wildenhues.
70070
70071 2006-08-07  Bruno Haible  <bruno@clisp.org>
70072
70073         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70074         in an AC_DEFUN. Needed so that the autoconf snippets can use
70075         AC_REQUIRE.
70076
70077 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70078
70079         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70080         Initialize pkgdata_DATA.
70081         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70082         overriding it.
70083
70084 2006-08-06  Eric Blake  <ebb9@byu.net>
70085
70086         * lib/error.h: Fold in some upstream changes from glibc.
70087         * lib/error.c: Likewise.
70088
70089 2006-08-04  Bruno Haible  <bruno@clisp.org>
70090
70091         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70092         Make the mostlyclean-local rule depend on mostlyclean-generic.
70093         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70094
70095 2006-07-31  Bruno Haible  <bruno@clisp.org>
70096
70097         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70098         <stdlib.h>, <string.h>.
70099
70100 2006-07-30  Bruno Haible  <bruno@clisp.org>
70101
70102         * modules/readlink (License): Change to LGPL.
70103
70104 2006-07-30  Bruno Haible  <bruno@clisp.org>
70105
70106         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70107         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70108         set PKGDATADIR to point to it.
70109
70110 2006-07-30  Bruno Haible  <bruno@clisp.org>
70111
70112         * modules/csharpexec (configure.ac): Comment out macro invocation.
70113         * modules/javaexec (configure.ac): Likewise.
70114         * modules/javacomp-script (configure.ac): Likewise.
70115
70116         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70117
70118 2006-07-30  Bruno Haible  <bruno@clisp.org>
70119
70120         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70121         linked-list.
70122
70123 2006-07-30  Bruno Haible  <bruno@clisp.org>
70124
70125         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70126
70127 2006-07-30  Bruno Haible  <bruno@clisp.org>
70128
70129         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70130         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70131         get removed.
70132
70133 2006-07-29  Bruno Haible  <bruno@clisp.org>
70134
70135         Make it possible for gnulib-tool to work with locally modified or
70136         augmented gnulib repositories.
70137         * gnulib-tool (func_usage): Document --local-dir option.
70138         (local_gnulib_dir): New variable.
70139         Handle --local-dir option.
70140         (func_lookup_file): New function.
70141         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70142         (func_get_description, func_get_filelist, func_get_description,
70143         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70144         func_get_automake_snippet, func_get_include_directive,
70145         func_get_license, func_get_maintainer): Use func_lookup_file.
70146         (func_import, func_create_testdir): Use func_lookup_file.
70147
70148 2006-07-29  Bruno Haible  <bruno@clisp.org>
70149
70150         * modules/setenv (Depends-on): Add unistd.
70151
70152 2006-07-29  Bruno Haible  <bruno@clisp.org>
70153
70154         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70155
70156 2006-07-29  Bruno Haible  <bruno@clisp.org>
70157
70158         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70159
70160 2006-07-29  Bruno Haible  <bruno@clisp.org>
70161
70162         * gnulib-tool (import, update): If there is no Makefile.am, look at
70163         aclocal.m4, instead of bailing out.
70164
70165 2006-07-29  Bruno Haible  <bruno@clisp.org>
70166
70167         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70168         Categorize the options by when they are useful.
70169
70170 2006-07-29  Bruno Haible  <bruno@clisp.org>
70171
70172         * gnulib-tool (func_usage): Document option --no-libtool.
70173         Handle option --no-libtool.
70174         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70175         for changed semantics of $libtool variable.
70176         (func_import): Likewise. If libtool is not used, show this through
70177         an option --no-libtool.
70178         (func_create_testdir): Update.
70179
70180 2006-07-29  Bruno Haible  <bruno@clisp.org>
70181
70182         * gnulib-tool (func_import): Extend error message about missing
70183         --doc-base.
70184
70185 2006-07-29  Bruno Haible  <bruno@clisp.org>
70186
70187         * gnulib-tool (func_import): Don't create the $docbase directory if
70188         there is no file to store there.
70189
70190 2006-07-29  Bruno Haible  <bruno@clisp.org>
70191
70192         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70193         relevant, look for configure.ac there, not in the current directory.
70194         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70195
70196 2006-07-29  Bruno Haible  <bruno@clisp.org>
70197
70198         * gnulib-tool (SORT): New variable.
70199         (func_usage): Undocument --assume-autoconf option.
70200         Remove --assume-autoconf option handling.
70201         (autoconf_minversion): Determine from the contents of configure.ac.
70202         (func_import): Remove autoconf_minversion handling.
70203         Suggested by Eric Blake.
70204
70205 2006-07-29  Bruno Haible  <bruno@clisp.org>
70206
70207         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70208
70209 2006-07-29  Bruno Haible  <bruno@clisp.org>
70210
70211         * config/srclist.txt (*setenv.[ch]): Remove rules.
70212
70213 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70214
70215         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70216
70217 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70218
70219         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70220         arpa/inet.h.
70221
70222 2006-07-28  Simon Josefsson  <jas@extundo.com>
70223
70224         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70225         * modules/inet_pton (Depends-on): Likewise.
70226
70227 2006-07-28  Simon Josefsson  <jas@extundo.com>
70228
70229         * m4/netinet_in_h.m4: New file.
70230
70231 2006-07-28  Simon Josefsson  <jas@extundo.com>
70232
70233         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70234         #include's.
70235
70236 2006-07-28  Simon Josefsson  <jas@extundo.com>
70237
70238         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70239         #include's.
70240
70241 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70242
70243         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70244         setgid on directories only if they set these bits.
70245         * lib/modechange.h: Remove obsolete comment about masks.
70246
70247 2006-07-28  Eric Blake  <ebb9@byu.net>
70248
70249         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70250         macro expansion.
70251
70252 2006-07-28  Bruno Haible  <bruno@clisp.org>
70253
70254         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70255
70256 2006-07-28  Bruno Haible  <bruno@clisp.org>
70257
70258         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70259
70260 2006-07-28  Bruno Haible  <bruno@clisp.org>
70261
70262         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70263         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70264         Define fallbacks.
70265         Avoids link error on FreeBSD 4.x.
70266         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70267
70268         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70269         encoding.
70270         * lib/mbswidth.c (iswcntrl): Likewise.
70271
70272 2006-07-27  Bruno Haible  <bruno@clisp.org>
70273
70274         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70275         test.
70276
70277 2006-07-27  Bruno Haible  <bruno@clisp.org>
70278
70279         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70280         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70281         defined.
70282
70283 2006-07-26  Eric Blake  <ebb9@byu.net>
70284
70285         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70286
70287 2006-07-26  Eric Blake  <ebb9@byu.net>
70288
70289         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70290         like mingw that lack mkstemp.
70291         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70292         avoid compilation warning on mingw.
70293
70294 2006-07-26  Bruno Haible  <bruno@clisp.org>
70295
70296         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70297         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70298         INT_FAST*_MIN, INTPTR_MIN.
70299
70300 2006-07-25  Bruno Haible  <bruno@clisp.org>
70301
70302         * modules/version-etc (Depends-on): Add stdarg.
70303
70304 2006-07-25  Bruno Haible  <bruno@clisp.org>
70305
70306         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70307         complex commands.
70308
70309 2006-07-25  Bruno Haible  <bruno@clisp.org>
70310
70311         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70312         defined in <stdarg.h> or config.h.
70313
70314 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70315
70316         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70317         (gl_STDIO_SAFER): Remove.
70318
70319 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70320
70321         * MODULES.html.sh (File stream based Input/Output):
70322         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70323         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70324         * modules/fopen-safer, modules/tmpfile-safer: New files.
70325         * modules/stdio-safer: Remove.
70326
70327 2006-07-24  Bruno Haible  <bruno@clisp.org>
70328
70329         * modules/tmpdir: New file.
70330         * MODULES.html.sh (File system functions): Add it.
70331
70332 2006-07-24  Bruno Haible  <bruno@clisp.org>
70333
70334         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70335         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70336
70337 2006-07-24  Bruno Haible  <bruno@clisp.org>
70338
70339         * modules/clean-temp: New file.
70340
70341 2006-07-24  Bruno Haible  <bruno@clisp.org>
70342
70343         * m4/tmpdir.m4: New file, from GNU gettext.
70344
70345 2006-07-24  Bruno Haible  <bruno@clisp.org>
70346
70347         * lib/tmpdir.h: New file, from GNU gettext.
70348         * lib/tmpdir.c: New file, from GNU gettext.
70349
70350 2006-07-24  Bruno Haible  <bruno@clisp.org>
70351
70352         * lib/clean-temp.h: New file, from GNU gettext.
70353         * lib/clean-temp.c: New file, from GNU gettext.
70354
70355 2006-07-23  Eric Blake  <ebb9@byu.net>
70356
70357         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70358         (Depends-on): Add binary-io.
70359
70360 2006-07-23  Eric Blake  <ebb9@byu.net>
70361
70362         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70363
70364 2006-07-23  Eric Blake  <ebb9@byu.net>
70365
70366         * lib/tmpfile-safer.c: New file.
70367         * lib/stdio-safer.h (fopen_safer): Add prototype.
70368         * lib/stdio--.h (tmpfile): Make safer.
70369
70370 2006-07-23  Bruno Haible  <bruno@clisp.org>
70371
70372         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70373         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70374         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70375         gl_linked_remove_at): Use it.
70376
70377 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70378         and Simon Josefsson <jas@extundo.com>
70379
70380         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70381
70382         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70383
70384 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70385
70386         * modules/close-stream: New file.
70387         * modules/closeout (Description): Make it clear that it exits
70388         with a diagnostic on error.
70389         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70390         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70391
70392 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70393
70394         * m4/close-stream.m4: New file.
70395
70396 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70397
70398         * lib/close-stream.c, lib/close-stream.h: New files.
70399
70400 2006-07-22  Bruno Haible  <bruno@clisp.org>
70401
70402         Merge from GNU gettext 0.15.
70403
70404         2006-05-01  Bruno Haible  <bruno@clisp.org>
70405
70406                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70407
70408         2006-07-22  Bruno Haible  <bruno@clisp.org>
70409
70410                 * modules/javaversion: New file.
70411                 * MODULES.html.sh (Java): Add javaversion.
70412
70413         2006-03-12  Bruno Haible  <bruno@clisp.org>
70414
70415                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70416
70417         2005-12-04  Bruno Haible  <bruno@clisp.org>
70418
70419                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70420                 (untested).
70421
70422         2006-06-21  Bruno Haible  <bruno@clisp.org>
70423
70424                 Avoid warnings from recent versions of mcs.
70425                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70426                 -o, -L, -r any more. Use options documented since mcs-1.0
70427                 instead. Similarly for -g.
70428
70429         2005-12-04  Bruno Haible  <bruno@clisp.org>
70430
70431                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70432                 .resources, not .resource.
70433
70434         2005-07-09  Bruno Haible  <bruno@clisp.org>
70435
70436                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70437                 add a .dll suffix.
70438                 Reported by Mark Junker <mjscod@gmx.de>.
70439
70440         2006-07-22  Bruno Haible  <bruno@clisp.org>
70441
70442                 * modules/gettext: Upgrade to gettext-0.15.
70443                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70444                 m4/visibility.m4.
70445                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70446
70447 2006-07-22  Bruno Haible  <bruno@clisp.org>
70448
70449         Merge from GNU gettext 0.15.
70450
70451         2006-03-25  Bruno Haible  <bruno@clisp.org>
70452
70453                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70454
70455         2006-07-21  Bruno Haible  <bruno@clisp.org>
70456
70457                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70458                 "1.1".
70459
70460         2006-05-09  Bruno Haible  <bruno@clisp.org>
70461
70462                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70463                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70464                 for the conftestver execution.
70465
70466         2006-05-01  Bruno Haible  <bruno@clisp.org>
70467
70468                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70469                 optional target-version argument. Verify that the compiler
70470                 groks source of the specified source-version, or add -source
70471                 option as necessary. Verify that the compiler produces
70472                 bytecode in the specified target-version, or add -target and
70473                 -source options as necessary. Make the result of the test
70474                 available as variable CONF_JAVAC. Also log error output in
70475                 config.log.
70476
70477         2006-03-11  Bruno Haible  <bruno@clisp.org>
70478
70479                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70480
70481         2006-05-09  Bruno Haible  <bruno@clisp.org>
70482
70483                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70484                 CLASSPATH_SEPARATOR to a semicolon.
70485
70486         2006-03-12  Bruno Haible  <bruno@clisp.org>
70487
70488                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70489                 available as variable CONF_JAVA, for subsequent autoconf
70490                 tests. Also log error output in config.log.
70491
70492         2006-07-19  Bruno Haible  <bruno@clisp.org>
70493
70494                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70495                 that getline works on glibc2 systems. Needed to avoid trouble
70496                 in relocatable.c.
70497                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70498
70499         2005-12-04  Bruno Haible  <bruno@clisp.org>
70500
70501                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70502                 launcher (untested).
70503
70504         2005-12-04  Bruno Haible  <bruno@clisp.org>
70505
70506                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70507
70508         2006-07-22  Bruno Haible  <bruno@clisp.org>
70509
70510                 * gettext.m4: Update from GNU gettext-0.15.
70511                 * nls.m4: Likewise.
70512                 * po.m4: Likewise.
70513                 * inttypes-pri.m4: Likewise.
70514                 * inttypes-h.m4: Renamed from inttypes.m4.
70515                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70516
70517 2006-07-22  Bruno Haible  <bruno@clisp.org>
70518
70519         Merge from GNU gettext 0.15.
70520
70521         2005-07-05  Bruno Haible  <bruno@clisp.org>
70522
70523                 * printf-args.c (printf_fetchargs): Work around broken
70524                 definition of wint_t on mingw.
70525
70526         2005-02-12  Bruno Haible  <bruno@clisp.org>
70527
70528                 * xallocsa.h: Add extern "C" for C++.
70529
70530         2006-05-17  Bruno Haible  <bruno@clisp.org>
70531
70532                 Cygwin portability.
70533                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70534
70535         2006-04-30  Bruno Haible  <bruno@clisp.org>
70536
70537                 * progreloc.c: Include <mach-o/dyld.h> if available.
70538                 (find_executable): Use _NSGetExecutablePath when possible.
70539
70540         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70541
70542                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70543                 function.
70544
70545         2005-12-29  Bruno Haible  <bruno@clisp.org>
70546
70547                 * progreloc.c (set_program_name_and_installdir): Fix
70548                 compilation error.
70549
70550         2005-12-04  Bruno Haible  <bruno@clisp.org>
70551
70552                 Cygwin portability.
70553                 * progreloc.c: Include <windows.h> also on Cygwin.
70554                 (find_executable): Add support for Cygwin.
70555                 (set_program_name_and_installdir): Handle also platforms with
70556                 nonempty EXEEXT.
70557
70558         2006-07-11  Bruno Haible  <bruno@clisp.org>
70559
70560                 * javacomp.c: Fix a comment.
70561                 Reported by Jim Meyering.
70562
70563         2006-04-30  Bruno Haible  <bruno@clisp.org>
70564
70565                 * javacomp.h (compile_java_class): Add source_version,
70566                 target_version arguments.
70567                 * javacomp.c: Rewritten to choose only a compiler that
70568                 respects the specified source_version and target_version.
70569
70570         2006-06-27  Bruno Haible  <bruno@clisp.org>
70571
70572                 Assume correct S_ISDIR macro.
70573                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70574
70575         2006-07-22  Bruno Haible  <bruno@clisp.org>
70576
70577                 * javaversion.h: New file, from GNU gettext.
70578                 * javaversion.c: New file, from GNU gettext.
70579                 * javaversion.java: New file, from GNU gettext.
70580                 * javaversion.class: New file, from GNU gettext.
70581
70582         2006-05-17  Bruno Haible  <bruno@clisp.org>
70583
70584                 Cygwin portability.
70585                 * javaexec.c (execute_java_class): Test for jview program
70586                 also on Cygwin.
70587
70588         2006-04-09  Bruno Haible  <bruno@clisp.org>
70589
70590                 * fatal-signal.c: Don't include string.h.
70591                 (at_fatal_signal): Use a copying loop instead of memcpy.
70592
70593         2005-12-04  Bruno Haible  <bruno@clisp.org>
70594
70595                 * csharpexec.c: Add support for 'clix' launcher (untested).
70596                 (execute_csharp_using_sscli): New function.
70597                 (execute_csharp_program): Call it.
70598
70599         2006-06-21  Bruno Haible  <bruno@clisp.org>
70600
70601                 Avoid warnings from recent versions of mcs.
70602                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70603                 -o, -L, -r any more. Use options documented since mcs-1.0
70604                 instead. Similarly for -g.
70605
70606         2005-07-09  Bruno Haible  <bruno@clisp.org>
70607
70608                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70609                 add a .dll suffix.
70610                 Reported by Mark Junker <mjscod@gmx.de>.
70611
70612         2006-06-17  Bruno Haible  <bruno@clisp.org>
70613
70614                 * config.charset: Update for NetBSD 3.0.
70615
70616         2006-05-17  Bruno Haible  <bruno@clisp.org>
70617
70618                 Cygwin portability.
70619                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70620
70621         2006-05-16  Bruno Haible  <bruno@clisp.org>
70622
70623                 * localcharset.c [CYGWIN]: Include <windows.h>.
70624                 (get_charset_aliases): For Cygwin, return the same CPxxx
70625                 aliases list as under WIN32.
70626                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70627                 the environment variables. Fall back to GetACP().
70628
70629         2006-04-05  Bruno Haible  <bruno@clisp.org>
70630
70631                 * config.charset: Update Juan Manuel Guerrero's address.
70632
70633         2005-02-12  Bruno Haible  <bruno@clisp.org>
70634
70635                 * allocsa.h: Add extern "C" for C++.
70636
70637         2005-02-10  Bruno Haible  <bruno@clisp.org>
70638
70639                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70640                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70641
70642         2006-07-22  Bruno Haible  <bruno@clisp.org>
70643
70644                 * gettext.h: Update to GNU gettext-0.15.
70645
70646 2006-07-22  Bruno Haible  <bruno@clisp.org>
70647
70648         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70649         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70650         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70651
70652 2006-07-21  Eric Blake  <ebb9@byu.net>
70653
70654         * modules/stdlib-safer: New file.
70655         * MODULES.html.sh (File stream based Input/Output): Add
70656         stdlib-safer.
70657
70658 2006-07-21  Eric Blake  <ebb9@byu.net>
70659
70660         * lib/stdlib-safer.h: New file from coreutils, required by
70661         stdlib--.h.
70662
70663 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70664
70665         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70666
70667 2006-07-20  Bruno Haible  <bruno@clisp.org>
70668
70669         * gnulib-tool: Recognize new option --assume-autoconf.
70670         (autoconf_minversion): New variable.
70671         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70672
70673 2006-07-20  Bruno Haible  <bruno@clisp.org>
70674
70675         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70676
70677 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70678
70679         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70680         Reindent and repaginate.
70681
70682 2006-07-19  Derek Price  <derek@ximbiot.com>
70683
70684         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70685         Correct grammar.
70686
70687 2006-07-17  Bruno Haible  <bruno@clisp.org>
70688
70689         * modules/list: New file.
70690         * modules/array-list: New file.
70691         * modules/carray-list, modules/carray-list-tests: New files.
70692         * modules/linked-list, modules/linked-list-tests: New files.
70693         * modules/avltree-list, modules/avltree-list-tests: New files.
70694         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70695         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70696         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70697         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70698         * modules/oset: New file.
70699         * modules/array-oset: New file.
70700         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70701         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70702         * tests/test-carray_list.c: New file.
70703         * tests/test-linked_list.c: New file.
70704         * tests/test-avltree_list.c: New file.
70705         * tests/test-rbtree_list.c: New file.
70706         * tests/test-linkedhash_list.c: New file.
70707         * tests/test-avltreehash_list.c: New file.
70708         * tests/test-rbtreehash_list.c: New file.
70709         * tests/test-avltree_oset.c: New file.
70710         * tests/test-rbtree_oset.c: New file.
70711         * MODULES.html.sh (Container data structures): New section.
70712
70713 2006-07-17  Bruno Haible  <bruno@clisp.org>
70714
70715         * m4/gl_list.m4: New file.
70716
70717 2006-07-17  Bruno Haible  <bruno@clisp.org>
70718
70719         * lib/gl_list.h: New file.
70720         * lib/gl_list.c: New file.
70721         * lib/gl_array_list.h: New file.
70722         * lib/gl_array_list.c: New file.
70723         * lib/gl_carray_list.h: New file.
70724         * lib/gl_carray_list.c: New file.
70725         * lib/gl_linked_list.h: New file.
70726         * lib/gl_linked_list.c: New file.
70727         * lib/gl_anylinked_list1.h: New file.
70728         * lib/gl_anylinked_list2.h: New file.
70729         * lib/gl_avltree_list.h: New file.
70730         * lib/gl_avltree_list.c: New file.
70731         * lib/gl_anyavltree_list1.h: New file.
70732         * lib/gl_anyavltree_list2.h: New file.
70733         * lib/gl_rbtree_list.h: New file.
70734         * lib/gl_rbtree_list.c: New file.
70735         * lib/gl_anyrbtree_list1.h: New file.
70736         * lib/gl_anyrbtree_list2.h: New file.
70737         * lib/gl_anytree_list1.h: New file.
70738         * lib/gl_anytree_list2.h: New file.
70739         * lib/gl_linkedhash_list.h: New file.
70740         * lib/gl_linkedhash_list.c: New file.
70741         * lib/gl_anyhash_list1.h: New file.
70742         * lib/gl_anyhash_list2.h: New file.
70743         * lib/gl_avltreehash_list.h: New file.
70744         * lib/gl_avltreehash_list.c: New file.
70745         * lib/gl_rbtreehash_list.h: New file.
70746         * lib/gl_rbtreehash_list.c: New file.
70747         * lib/gl_anytreehash_list1.h: New file.
70748         * lib/gl_anytreehash_list2.h: New file.
70749
70750         * lib/gl_oset.h: New file.
70751         * lib/gl_oset.c: New file.
70752         * lib/gl_array_oset.h: New file.
70753         * lib/gl_array_oset.c: New file.
70754         * lib/gl_avltree_oset.h: New file.
70755         * lib/gl_avltree_oset.c: New file.
70756         * lib/gl_rbtree_oset.h: New file.
70757         * lib/gl_rbtree_oset.c: New file.
70758         * lib/gl_anytree_oset.h: New file.
70759
70760 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70761
70762         * m4/mkancesdirs.m4: New file.
70763         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70764         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70765         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70766         it.
70767
70768 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70769
70770         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70771         * lib/mkancesdirs.h: New files.
70772         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70773         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70774         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70775         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70776         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70777         callers changed.  Revamp internals significantly, by not
70778         attempting to create directories that are temporarily more
70779         permissive than the final results.  Do not attempt to use
70780         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70781         This removes some race conditions, fixes some bugs, and simplifies
70782         things.  Use new dirchownmod function to do owner and mode changes.
70783         * lib/mkdir-p.h: Likewise.
70784         * lib/modechange.c (octal_to_mode): New function.
70785         (struct mode_change): New member mentioned.
70786         (make_node_op_equals): New arg mentioned.  All callers changed.
70787         (mode_compile): Keep track of which mode bits the user has explicitly
70788         mentioned.
70789         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70790         New arg PMODE_BITS, to keep track of which mode bits the user
70791         mentioned; it treats S_ISUID and S_ISGID speciall.
70792         All callers changed.
70793         * lib/modechange.h: Likewise.
70794
70795 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70796
70797         * MODULES.html.sh: Add mkancestors.
70798         * modules/mkancesdirs: New module.
70799         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70800         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70801         The chdir-safer and afs files are now orphans; I'll remove them
70802         unless someone speaks up.
70803         Add lib/dirchownmod.c, lib/dirchownmod.h.
70804         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70805         Add lchown, mkancesdirs.
70806         (Maintainer): Add self.
70807
70808 2006-07-15  Karl Berry  <karl@gnu.org>
70809
70810         * gnulib-tool: help message wording/arrangement.
70811
70812 2006-07-14  Simon Josefsson  <jas@extundo.com>
70813
70814         * doc/gnulib.texi (Libtool and Windows): New section.
70815
70816 2006-07-12  Simon Josefsson  <jas@extundo.com>
70817
70818         * modules/gendocs (License): Fix license, approved by Karl.
70819
70820 2006-07-12  Eric Blake  <ebb9@byu.net>
70821
70822         * MODULES.html.sh: Add gendocs.
70823
70824 2006-07-11  Eric Blake  <ebb9@byu.net>
70825
70826         * modules/fdl: New module, to install doc/fdl.texi.
70827         * MODULES.html.sh: Add new section for documentation modules.
70828         * gnulib-tool: Avoid space-tab.
70829         (--doc-base): New option, to manage files from doc.
70830
70831 2006-07-11  Eric Blake  <ebb9@byu.net>
70832
70833         * m4/absolute-header.m4: Fix comments to match recent change.
70834
70835 2006-07-11  Eric Blake  <ebb9@byu.net>
70836
70837         * gnulib-tool: List --doc-base before --tests-base.
70838
70839 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70840
70841         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70842
70843 2006-07-11  Bruno Haible  <bruno@clisp.org>
70844
70845         * README: Mention where to put documentation.
70846
70847 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70848
70849         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70850
70851 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70852
70853         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70854         to stdint.m4.
70855
70856 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70859         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70860         "no/such/file/stdint.h" when there is no such file, so that
70861         the resulting C code can be parsed by dodgy compilers.
70862         Problems reported by Bob Proulx.
70863
70864 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70865
70866         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70867         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70868         macros into the GNU _D_EXACT_NAMLEN.
70869         * lib/savedir.c:  Likewise.
70870         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70871
70872 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70873         and Paul Eggert  <eggert@cs.ucla.edu>
70874
70875         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70876         * m4/savedir.m4:
70877         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70878         macros into the GNU _D_EXACT_NAMLEN.
70879
70880 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70881
70882         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70883         around the absolute name, to work around a problem with the HP-UX
70884         11.23 native C compiler, reported by Bob Proulx.
70885
70886 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70887
70888         * doc/maintain.texi, make-stds.texi: Sync from
70889         <http://savannah.gnu.org/projects/gnustandards>.
70890
70891 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70892
70893         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70894
70895 2006-07-09  Jim Meyering  <jim@meyering.net>
70896
70897         * m4/glob.m4: Remove a doubled word in a comment.
70898
70899 2006-07-09  Jim Meyering  <jim@meyering.net>
70900
70901         * lib/argp-pv.c: Remove a doubled word in a comment.
70902         * lib/check-version.c (check_version): Likewise.
70903         * lib/javacomp.c (compile_java_class): Likewise.
70904
70905 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70906
70907         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70908         for the benefit of people using Autoconf 2.60.  If you want to
70909         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70910         (or m4/onceonly.m4, if pre-2.57) manually.
70911
70912 2006-07-08  Jim Meyering  <jim@meyering.net>
70913
70914         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70915         comment.
70916         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70917         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70918         comment.
70919
70920 2006-07-08  Jim Meyering  <jim@meyering.net>
70921
70922         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70923
70924 2006-07-07  Simon Josefsson  <jas@extundo.com>
70925
70926         * tests/test-crc.c: Change expected crc value, the test vector
70927         were probably computed using the old broken crc.c?
70928
70929 2006-07-06  Simon Josefsson  <jas@extundo.com>
70930
70931         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70932         now the canonical place for the M4 file).
70933
70934         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70935         from the sys_socket dependency now.
70936
70937         * modules/inet_pton (Files): Ditto.
70938
70939         * modules/inet_ntop (Files): Ditto.
70940
70941 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70942
70943         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70944         not gl_PREREQ_GETUSERSHELL.
70945
70946 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70947
70948         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70949         with only one argument, for Autoconf 2.60.
70950         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70951         expand to nothing, so add a shell command to avoid syntax error.
70952         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70953
70954 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70955
70956         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70957
70958 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70959
70960         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70961         no longer needed.  Check for isblank decl.
70962         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70963         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70964         of existence.
70965
70966 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70967
70968         * lib/getloadavg.c: Use __VMS, not VMS.
70969         * lib/getopt.c: Likewise.
70970         * lib/getpagesize.h: Likewise.
70971         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70972         and probably does not work.
70973
70974 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         * lib/.cppi-disable: Add wcwidth.
70977         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70978         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70979         (ISGRAPH): Remove.  All uses changed to isgraph.
70980         (FOLD) [!defined _LIBC]: Remove special case.
70981         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70982         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70983         HAVE_ISBLANK.
70984         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70985         case.
70986
70987 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70988
70989         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70990         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70991         brackets.  Other minor changes to suppress some compiler
70992         warnings.
70993
70994 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70995         and Paul Eggert  <eggert@cs.ucla.edu>
70996
70997         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70998         of invoking obsolescent AC_HEADER_DIRENT macro.
70999         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71000         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71001         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71002         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71003         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71004         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71005         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71006         * m4/readdir.m4: Remove; no longer needed.
71007
71008 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71009         and Paul Eggert  <eggert@cs.ucla.edu>
71010
71011         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71012         Don't worry about this obsolete case any more.
71013         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71014         directories.
71015         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71016         worry about this obsolete case any more.
71017         * lib/fts.c: Likewise.
71018         * lib/getcwd.c: Likewise.
71019         * lib/glob.h: Likewise.
71020         * lib/savedir.c: Likewise.
71021
71022 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71023
71024         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71025         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71026         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71027         needed.
71028         All uses removed.
71029         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71030         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71031         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71032         needed.
71033         * m4/getdate.m4 (gl_GETDATE): Likewise.
71034         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71035         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71036         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71037         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71038         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71039         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71040         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71041         needed.
71042
71043 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71044
71045         * lib/memcasecmp.c: Include <limits.h>.
71046         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71047         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71048         Don't assume isdigit succeeds only on '0' through '9'.
71049
71050 2006-07-05  Eric Blake  <ebb9@byu.net>
71051
71052         * modules/getaddrinfo (Depends-on): Add snprintf.
71053
71054 2006-07-05  Eric Blake  <ebb9@byu.net>
71055
71056         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71057         to avoid 'header present but could not be compiled' on cygwin.
71058
71059 2006-07-05  Eric Blake  <ebb9@byu.net>
71060
71061         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71062         missing from netdb.h.
71063         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71064
71065 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71066
71067         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71068         no longer needed.
71069         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71070         * m4/getdate.m4 (gl_GETDATE): Likewise.
71071         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71072         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71073         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71074         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71075         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71076
71077 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71078
71079         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71080         All uses of is_space replaced by isspace.
71081         * lib/exit.h: Don't talk about STDC_HEADERS.
71082         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71083         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71084         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71085         replaced by isprint etc.
71086         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71087         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71088         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71089         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71090         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71091         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71092
71093 2006-07-05  Bruno Haible  <bruno@clisp.org>
71094
71095         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71096         the function exists, before testing against AIX.
71097         Reported by Martin Lambers <marlam@marlam.de>.
71098
71099 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71100
71101         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71102         From Mark D. Baushke.
71103
71104 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71107         to the absolute name, not just one, to bypass Sun C 5.8's
71108         "warning: #include of /usr/include/... may be non-portable".
71109
71110 2006-07-04  Eric Blake  <ebb9@byu.net>
71111
71112         * modules/dirname-tests: New test module.
71113         * tests/test-dirname.c: New file, replacing dirname.c
71114         TEST_DIRNAME section that was recently deleted.
71115
71116 2006-07-04  Bruno Haible  <bruno@clisp.org>
71117
71118         Assume ANSI C header files and <ctype.h> functions.
71119         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71120         (mbsnwidth): Use isprint, iscntrl instead.
71121
71122 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71123
71124         Merge from coreutils.
71125         * MODULES.html.sh: Add xstrtold.
71126         * modules/xstrtold: New file.
71127         * modules/cycle-check (Files): Add lib/same-inode.h.
71128         * modules/dirname (Files): Add m4/double-slash-root.m4.
71129         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71130         * modules/mkdir-p (Files): Add lib/same-inode.h.
71131         * modules/same (Files): Add lib/same-inode.h.
71132
71133 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71134
71135         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71136         This is to keep the terminology clean; POSIX talks about
71137         "absolute pathnames", not "full pathnames", but the GNU
71138         Coding Standards say to use "path" for something else;
71139         so use "absolute" to keep both sides happy.
71140         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71141         Set gl_absolute_header, not gl_full_header_path.
71142         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71143         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71144         All uses changed.
71145
71146         Merge from coreutils.
71147
71148         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71149
71150         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71151         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71152         want to require the building of c-strtod.o.
71153         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71154         needs -lm directly.
71155         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71156
71157         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71158
71159         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71160         --as-needed option if available.  Problem reported by Albert Chin in
71161         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71162         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71163         cc merely issues a bunch of annoying warnings for --as-needed
71164         (this problem was reported by Bob Proulx).  Also, try linking with
71165         -lm to detect a bug in binutils 2.16 (this problem was reported
71166         by Ralf Wildenhues).
71167
71168         2006-06-18  Jim Meyering  <jim@meyering.net>
71169
71170         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71171         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71172         macro.
71173         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71174         also check for glibc-2.4's abort-inducing bug.
71175
71176         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71177         Low-probability clean-up should be to use rmdir to get rid of
71178         the just-created directory, not unlink.
71179
71180         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71181         configure fail, and request a bug report to inform us about it.
71182         Add a comment that, barring reports to the contrary, in 2007 we'll
71183         assume ftruncate is universally available.
71184
71185         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71188
71189         2006-03-12  Jim Meyering  <jim@meyering.net>
71190
71191         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71192         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71193         * m4/same.m4 (gl_SAME): Likewise.
71194         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71195
71196         2006-03-11  Eric Blake  <ebb9@byu.net>
71197
71198         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71199         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71200         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71201         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71202
71203 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71204
71205         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71206         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71207         reported by Mark D. Baushke, one in
71208         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71209
71210         Merge from coreutils.
71211
71212         * lib/.cppi-disable: Add stdint_.h.
71213         * lib/.cvsignore: Add stdint.h.
71214
71215         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71216
71217         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71218         both double and long double versions.
71219         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71220         * lib/xstrtold.c: New file.
71221         * lib/xstrtod.h (xstrtold): New decl.
71222
71223         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71224
71225         * lib/filemode.c (setst): Remove.
71226         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71227         (arguably) clearer, and the generated code is a bit smaller on my
71228         Debian GNU/Linux stable x86 host.
71229
71230         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71231
71232         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71233         Assume that filemode.h includes sys/types.h and sys/stat.h.
71234         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71235         (ftypelet): Reorder to put common cases first, for efficiency.
71236         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71237         to do 'M'.
71238         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71239         of 10, for compatibility with FreeBSD.  All callers changed.
71240         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71241         types that can't be deduced solely from st_mode.  First arg is now a
71242         const pointer.
71243         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71244         (strmode): Renamed from mode_string.
71245         (filemodestring): New decl.
71246         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71247         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71248         needed.
71249         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71250
71251         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71252
71253         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71254         fsusage.h now does that.  Include fsusage.h first, to test interface.
71255         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71256         at most one method (the old code could have generated decls that
71257         didn't conform to C89, not that this was ever exercised).
71258         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71259
71260         2006-03-19  Jim Meyering  <jim@meyering.net>
71261
71262         Work even in a chroot where d_ino values for entries in "/"
71263         don't match the stat.st_ino values for the same names.
71264         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71265         number, iterate through all entries again, using lstat instead.
71266         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71267         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71268
71269         * lib/getcwd.c (__getcwd): Clarify a comment.
71270         Use memcpy in place of a call to strcpy.
71271
71272         2006-03-12  Jim Meyering  <jim@meyering.net>
71273
71274         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71275         matches that of the current directory (which we're about to chdir ".."
71276         out of), then save the dev-ino of the parent, instead.
71277
71278         * lib/same-inode.h (SAME_INODE): New file/macro.
71279         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71280         Include "same-inode.h", instead.
71281         * lib/same.c: Likewise.
71282         * lib/cycle-check.h: Include "same-inode.h".
71283         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71284         * lib/cycle-check.c (SAME_INODE): Remove definition.
71285         * lib/root-dev-ino.h: Include "same-inode.h".
71286
71287         2006-03-11  Eric Blake  <ebb9@byu.net>
71288
71289         * lib/same.c (same_name): s/base_name/last_component/
71290         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71291         * lib/filenamecat.c (file_name_concat): Likewise.
71292
71293         2006-03-11  Eric Blake  <ebb9@byu.net>,
71294                     Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71297         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71298         drive prefix.
71299         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71300         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71301         (last_component): New method.
71302         * lib/dirname.c (dir_len): Determine when drive letters need a
71303         subsequent slash.  Preserve // when it is special.
71304         (dir_name): Don't append dot when drive letter is absolute.
71305         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71306         * lib/basename.c (base_name): New semantics - malloc the result.
71307         Preserve // when it is special.  Preserve relative files that look
71308         like drive letters.
71309         (base_len): Preserve // when it is special.
71310         (last_component): New method, similar to old base_name semantics.
71311         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71312         base_name.  Strip redundant slashes from ///.
71313
71314 2006-07-03  Jim Meyering  <jim@meyering.net>
71315
71316         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71317         macro is used before the first cycle_check call.
71318
71319 2006-07-03  Eric Blake  <ebb9@byu.net>
71320
71321         * modules/dirname (Depends-on): Add xstrndup.
71322
71323 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71324
71325         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71326         test cases, so that config.log is a bit easier to follow.
71327
71328 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71329
71330         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71331         both are 64 bits, since this seems to be the tradition, and this
71332         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71333         we ever run into a host that prefers long long to long in this
71334         case, we'll need another configure-time test.  Problem reported by
71335         Jim Meyering.
71336
71337 2006-07-02  Eric Blake  <ebb9@byu.net>
71338
71339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71340
71341 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71342
71343         * modules/inttypes (Depends-on): No longer depends on stdint.
71344         * modules/stdint (Description): Say more about assumptions.
71345         Say that the fast types might differ.  Say macros are used.
71346         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71347         (Makefile.am): Revise list of substituted symbols to match
71348         new stdint.m4.
71349         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71350         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71351         * tests/test-stdint.c (verify_same_types)
71352         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71353         the code conforms to C99/C89.
71354         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71355         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71356
71357 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71358
71359         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71360         but fix a bug, by requiring at least 64 bits.
71361         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71362         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71363         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71364         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71365
71366         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71367         changes.  Make 2.59 a prerequisite.  Check and substitute for
71368         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71369         inttypes.h.  Do not use special include files; just use the
71370         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71371         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71372         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71373         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71374         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71375         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71376         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71377         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71378         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71379         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71380         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71381         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71382         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71383         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71384         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71385         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71386         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71387         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71388         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71389         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71390         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71391         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71392         not check for things that C99 does not require, e.g., int8_t.  If
71393         a test isn't needed unless <stdint.h> isn't working, and is
71394         unlikely to be needed for any other reason, then don't do it
71395         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71396         size_t, since we assume C89 freestanding at least.  Do not check
71397         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71398         the right thing even if the types are not defined.  Instead use:
71399         (gl_STDINT_TYPE_PROPERTIES): New macro.
71400         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71401         testing whether <sys/types.h> clashes, as Autoconf does this for
71402         us now.  All uses removed.
71403         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71404         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71405         (gl_CHECK_TYPE_SAME):
71406         Remove; no longer needed.
71407         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71408         exists, since we'll return 0 anyway in that case.
71409         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71410
71411 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71412
71413         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71414         possible collision with system files.
71415         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71416         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71417         WCHAR_MIN and WCHAR_MAX in this case.
71418         (<stddef.h>): Do not include; no longer needed.
71419         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71420         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71421         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71422         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71423         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71424         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71425         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71426         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71427         !defined(__c99))]: Include in this case too, since it's harmless
71428         now.
71429         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71430         dangerous to do so.
71431         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71432         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71433         (_STDINT_MIN, _STDINT_MAX): New macros.
71434         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71435         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71436         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71437         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71438         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71439         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71440         macros, not typedefs; this simplifies things quite a bit.
71441         Use long int for all types narrower than int64_t.
71442         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71443         Define in terms of long long int or int64_t or long int,
71444         not int64_t or int32_t.  This saves some compile-time testing.
71445         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71446         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71447         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71448         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71449         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71450         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71451         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71452         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71453         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71454         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71455         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71456         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71457         undef any previous version and define our own version, for
71458         simplicity and consistency with the new macros for types.
71459         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71460         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71461         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71462         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71463         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71464         @WINT_T_SUFFIX@ to keep things simple here.
71465         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71466         Simplify by assuming typical 8/16/32/64 host, since we're
71467         already doing that elsewhere anyway.
71468         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71469         and assume long long int is 64 bits if available.  This
71470         speeds up 'configure'.
71471
71472 2006-07-01  Eric Blake  <ebb9@byu.net>
71473
71474         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71475         Reported by Andreas Buening.
71476
71477 2006-07-01  Eric Blake  <ebb9@byu.net>
71478
71479         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71480
71481 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71482
71483         * lib/getaddrinfo.c: fixed typo
71484
71485 2006-06-29  Jim Meyering  <jim@meyering.net>
71486
71487         * modules/strftime (Maintainer): Add my name, since with the
71488         FPRINTFTIME changes strftime.c has forked from glibc.
71489
71490 2006-06-29  Eric Blake  <ebb9@byu.net>
71491
71492         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71493
71494 2006-06-29  Eric Blake  <ebb9@byu.net>
71495
71496         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71497
71498 2006-06-29  Eric Blake  <ebb9@byu.net>
71499
71500         * lib/stat_.h: New file.
71501
71502 2006-06-29  Eric Blake  <ebb9@byu.net>
71503
71504         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71505         unused static function.
71506
71507 2006-06-29  Eric Blake  <ebb9@byu.net>
71508
71509         * doc/functions.texi (Function Portability): Document missing lstat
71510         on mingw.
71511
71512 2006-06-29  Eric Blake  <ebb9@byu.net>
71513
71514         * MODULES.html.sh: Add sys_stat.
71515         * modules/sys_stat: New module.
71516         * modules/mkstemp (Depends-on): Add sys_stat.
71517
71518 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71519
71520         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71521
71522 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71523
71524         * m4/c-bs-a.m4: Removed.
71525
71526 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71527
71528         * lib/strftime.c: Assume strftime() exists.
71529
71530 2006-06-29  Derek Price  <derek@ximbiot.com>
71531
71532         * modules/c-bs-a: Removed - \a is C89.
71533         * MODULES.html.sh: Remove c-bs-a.
71534
71535 2006-06-29  Bruno Haible  <bruno@clisp.org>
71536
71537         * modules/wcwidth (License): Change to LGPL.
71538
71539 2006-06-28  Simon Josefsson  <jas@extundo.com>
71540
71541         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71542         on _WIN32.
71543
71544         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71545         getnameinfo.
71546
71547 2006-06-28  Simon Josefsson  <jas@extundo.com>
71548
71549         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71550
71551 2006-06-28  Simon Josefsson  <jas@extundo.com>
71552
71553         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71554         functions there.  It will succeed on Windows XP, but on Windows
71555         2000 and (presumably) earlier, it will fail, and use the internal
71556         re-implementation.
71557         (use_win32_p): New function.
71558         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71559         Support AI_NUMERICSERV to disable getservbyname.
71560         (getnameinfo): New function, only supports
71561         NI_NUMERICHOST|NI_NUMERICSERV for now.
71562
71563         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71564         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71565         getnameinfo.
71566
71567 2006-06-28  Eric Blake  <ebb9@byu.net>
71568
71569         * modules/wcwidth: New file.
71570         * modules/mbchar (Depends-on): Add wcwidth.
71571         * modules/mbswidth (Depends-on): Add wcwidth.
71572         * MODULES.html.sh: Add wcwidth.
71573
71574 2006-06-28  Eric Blake  <ebb9@byu.net>
71575
71576         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71577         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71578
71579 2006-06-28  Eric Blake  <ebb9@byu.net>
71580
71581         * lib/xvasprintf.h: Fix comments.
71582
71583 2006-06-28  Eric Blake  <ebb9@byu.net>
71584
71585         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71586         * lib/mbswidth.c (wcwidth): Move from here...
71587         * lib/wcwidth.h: ...to this new file.
71588
71589 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71590
71591         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71592
71593         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71594         it's obsolete.
71595         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71596
71597 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71598
71599         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71600         Autoconf 2.60 says this stuff was obsolete.
71601
71602 2006-06-28  Bruno Haible  <bruno@clisp.org>
71603
71604         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71605
71606 2006-06-28  Bruno Haible  <bruno@clisp.org>
71607
71608         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71609         gt_TYPE_WCHAR_T.
71610
71611 2006-06-28  Bruno Haible  <bruno@clisp.org>
71612
71613         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71614         declaration for wcwidth.
71615         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71616
71617 2006-06-28  Bruno Haible  <bruno@clisp.org>
71618
71619         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71620         (mkdir): Define using _mkdir.
71621
71622 2006-06-28  Bruno Haible  <bruno@clisp.org>
71623
71624         * lib/getaddrinfo.h: Fix POSIX URL.
71625         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71626         _WIN32.
71627         (use_win32_p): Make static.
71628         (getaddrinfo): Reject service name if it is empty or does not consist
71629         solely of decimal digits, or if its value is > 65535.
71630         (getnameinfo): Remove useless casts.
71631
71632 2006-06-27  Simon Josefsson  <jas@extundo.com>
71633
71634         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71635         Eggert and Martin Lambers.
71636
71637 2006-06-27  Simon Josefsson  <jas@extundo.com>
71638
71639         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71640         Eggert and Martin Lambers.
71641
71642 2006-06-27  Bruno Haible  <bruno@clisp.org>
71643
71644         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71645         result to 0, not to empty.
71646         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71647
71648 2006-06-27  Bruno Haible  <bruno@clisp.org>
71649
71650         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71651
71652 2006-06-26  Simon Josefsson  <jas@extundo.com>
71653
71654         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71655         present.
71656
71657 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71658
71659         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71660         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71661         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71662
71663 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71664
71665         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71666
71667 2006-06-26  Bruno Haible  <bruno@clisp.org>
71668
71669         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71670
71671 2006-06-26  Bruno Haible  <bruno@clisp.org>
71672
71673         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71674
71675 2006-06-26  Bruno Haible  <bruno@clisp.org>
71676
71677         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71678         SGI C compiler in pre-C99 mode.
71679         Suggested by Mark D. Baushke and Larry Jones.
71680
71681 2006-06-26  Bruno Haible  <bruno@clisp.org>
71682
71683         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71684         WCHAR_MAX.
71685         Reported by Mark D. Baushke and Larry Jones.
71686
71687 2006-06-26  Bruno Haible  <bruno@clisp.org>
71688
71689         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71690         in pre-C99 mode.
71691         Suggested by Mark D. Baushke and Larry Jones.
71692
71693 2006-06-23  Simon Josefsson  <jas@extundo.com>
71694             Bruno Haible  <bruno@clisp.org>
71695
71696         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71697         Emit mostlyclean-local rule.
71698         (func_emit_tests_Makefile_am): Likewise.
71699         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71700
71701 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71702
71703         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71704
71705 2006-06-23  Bruno Haible  <bruno@clisp.org>
71706
71707         * tests/test-stdint.c: Update to match ISO C 99 Technical
71708         Corrigendum 1.
71709
71710 2006-06-23  Bruno Haible  <bruno@clisp.org>
71711
71712         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71713
71714 2006-06-23  Bruno Haible  <bruno@clisp.org>
71715
71716         * lib/stdint_.h: Treat IRIX like OpenBSD.
71717
71718 2006-06-23  Bruno Haible  <bruno@clisp.org>
71719
71720         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71721         ISO C 99 Technical Corrigendum 1.
71722
71723 2006-06-22  Simon Josefsson  <jas@extundo.com>
71724
71725         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71726         MinGW.
71727
71728 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71729
71730         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71731         needed.  Some compiler complained about some of them.  Problem reported
71732         by Larry Jones in
71733         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71734
71735 2006-06-21  Simon Josefsson  <jas@extundo.com>
71736
71737         * tests/test-getaddrinfo.c: New file.
71738
71739         * modules/getaddrinfo-tests: New file.
71740
71741         * MODULES.html.sh: Add inet_pton.
71742
71743         * modules/inet_pton: New file.
71744
71745 2006-06-21  Simon Josefsson  <jas@extundo.com>
71746
71747         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71748         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71749         of using the (limited) gnulib implementation on Windows XP.
71750
71751         * m4/inet_pton.m4: New file.
71752
71753 2006-06-21  Simon Josefsson  <jas@extundo.com>
71754
71755         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71756         variable.
71757
71758         * lib/socket_.h: Don't define WINVER.
71759
71760         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71761         slightly modified to work in gnulib.
71762
71763 2006-06-21  Simon Josefsson  <jas@extundo.com>
71764
71765         * doc/gnulib.texi (Windows sockets): Add.
71766
71767 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71768
71769         * lib/read-file.c (fread_file): Start with buffer allocation of
71770         0 bytes rather than 1 byte; this simplifies the code.
71771         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71772         code to free buffer and save/restore errno.
71773         (internal_read_file): Remove unused local.
71774
71775 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71776
71777         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71778         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71779         Problem reported by Denis Excoffier in
71780         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71781
71782 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71783
71784         * modules/sys_socket, modules/socklen: Include sys/types since
71785         FreeBSD 4.x's sys/socket.h needs it.
71786
71787 2006-06-19  Simon Josefsson  <jas@extundo.com>
71788
71789         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71790
71791 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71792
71793         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71794
71795 2006-06-19  Bruno Haible  <bruno@clisp.org>
71796
71797         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71798         and FULL_PATH_INTTYPES_H in angle brackets.
71799         Reported by Mark D. Baushke <mdb@gnu.org>.
71800
71801 2006-06-17  Eric Blake  <ebb9@byu.net>
71802
71803         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71804         errno.
71805
71806 2006-06-17  Bruno Haible  <bruno@clisp.org>
71807
71808         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71809         <sys/inttypes.h>.
71810
71811 2006-06-17  Bruno Haible  <bruno@clisp.org>
71812
71813         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71814         whether errno is declared. Assume <errno.h> declares errno.
71815
71816 2006-06-17  Bruno Haible  <bruno@clisp.org>
71817
71818         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71819
71820 2006-06-17  Bruno Haible  <bruno@clisp.org>
71821
71822         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71823         problem on Solaris 2.5.1.
71824
71825 2006-06-16  Eric Blake  <ebb9@byu.net>
71826
71827         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71828         * lib/unicodeio.c [!defined errno]: Likewise.
71829         * lib/strtol.c [!defined errno]: Likewise.
71830         * lib/strtod.c [!defined errno]: Likewise.
71831
71832 2006-06-15  Eric Blake  <ebb9@byu.net>
71833
71834         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71835
71836 2006-06-15  Eric Blake  <ebb9@byu.net>
71837
71838         * config/srclist.txt (ssize_t.m4): Lose sync.
71839
71840 2006-06-15  Bruno Haible  <bruno@clisp.org>
71841
71842         * modules/stdint (Files): Include m4/full-header-path.m4,
71843         m4/size_max.m4, m4/wchar_t.m4.
71844         (Makefile.am): Many more substitutions.
71845         * modules/stdint-tests: New file.
71846         * tests/test-stdint.c: New file.
71847
71848 2006-06-15  Bruno Haible  <bruno@clisp.org>
71849
71850         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71851         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71852         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71853         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71854         gl_CHECK_TYPE_SAME): New macros.
71855
71856 2006-06-15  Bruno Haible  <bruno@clisp.org>
71857
71858         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71859
71860 2006-06-15  Bruno Haible  <bruno@clisp.org>
71861
71862         * lib/stdint_.h: Rewritten to be fully auto-configured.
71863         Fixes bug on HP-UX/IA64.
71864
71865 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71866
71867         * lib/getdate.y (__attribute__): Don't define if already defined.
71868         Problem reported by Larry Jones.
71869         * lib/utimens.c (__attribute__): Likewise.
71870
71871 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71872
71873         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71874         reported by Andreas Schwab.
71875
71876 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71877             Bruno Haible  <bruno@clisp.org>
71878
71879         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71880         check for the declaration of strnlen and a run test that exposes the
71881         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71882         rpl_strndup.
71883
71884 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71885             Bruno Haible  <bruno@clisp.org>
71886
71887         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71888
71889 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71890
71891         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71892         compile test, for Tru64 4.0D.
71893
71894 2006-05-28  Karl Berry  <karl@gnu.org>
71895
71896         * config/srclist.txt (printf-args.c): lose sync.
71897
71898 2006-05-26  Martin Lambers  <marlam@marlam.de>
71899
71900         * lib/getpass.c: Updates the test for the native W32 API, and adds
71901         missing includes, thus fixing compilation warnings.
71902
71903 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71904
71905         * lib/exclude.c (exclude_fnmatch): New function.
71906         (excluded_file_name): Call exclude_fnmatch.
71907         * lib/exclude.h (excluded_file_name): New prototype
71908
71909 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71910
71911         * lib/tempname.c (small_open, large_open): New macros.
71912         (__open, __open64) [!_LIBC]: Remove.
71913         (__gen_tempname): Use small_open and large_open instead of __open
71914         and __open64.  This fixes a portability bug on HP-UX 11.11i
71915         reported by Simon Wing-Tang in
71916         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71917
71918 2006-05-24  Bruno Haible  <bruno@clisp.org>
71919
71920         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71921         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71922         Reported by Thorsten Maerz <torte@netztorte.de> via
71923         Aaron Stone <aaron@serendipity.cx>.
71924
71925 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71926
71927         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71928         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71929         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71930         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71931         not really conditional on the cache.
71932         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71933
71934 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71935
71936         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71937         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71938         (my_usleep): Don't mishandle maximum value.
71939
71940 2006-05-19  Jim Meyering  <jim@meyering.net>
71941
71942         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71943
71944 2006-05-17  Bruno Haible  <bruno@clisp.org>
71945
71946         Cygwin portability.
71947         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71948
71949 2006-05-17  Bruno Haible  <bruno@clisp.org>
71950
71951         * lib/stdint_.h: Fix recognition of Cygwin.
71952
71953 2006-05-15  Bruno Haible  <bruno@clisp.org>
71954
71955         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71956         on libtool patch by Ralf Wildenhues.
71957
71958 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71959
71960         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71961         test for C99 conformance; (bool) 0.5 is an integer constant
71962         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71963         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71964
71965 2006-05-11  Simon Josefsson  <jas@extundo.com>
71966
71967         * m4/xvasprintf.m4: Fix obvious typo.
71968
71969 2006-05-11  Jim Meyering  <jim@meyering.net>
71970
71971         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71972         James Lemley.
71973
71974 2006-05-10  Simon Josefsson  <jas@extundo.com>
71975
71976         * lib/md4.c: Typo fix, update copyright years.
71977         (K1, K2): Don't use L because it turn computations into 64-bit on
71978         64-bit platforms.
71979
71980 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71981
71982         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71983         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71984         unwanted sign propagation, e.g., on hosts with 64-bit int.
71985         There still are some problems with reeelly weird theoretical hosts
71986         (e.g., 33-bit int) but it's not worth worrying about now.
71987         * lib/sha1.c (rol): Likewise.
71988         (K1, K2, K3, K4): Remove unnecessary L suffix.
71989
71990 2006-05-10  Bruno Haible  <bruno@clisp.org>
71991
71992         * lib/des.c: Cast to avoid warnings.
71993
71994 2006-05-09  Bruno Haible  <bruno@clisp.org>
71995
71996         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71997         (Depends-on): Depend also on xsize, stdarg.
71998         (configure.ac): Add gl_XVASPRINTF.
71999
72000 2006-05-09  Bruno Haible  <bruno@clisp.org>
72001
72002         * m4/xvasprintf.m4: New file.
72003
72004 2006-05-09  Bruno Haible  <bruno@clisp.org>
72005
72006         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72007         (EOVERFLOW): Define fallback value.
72008         (xstrcat): New function.
72009         (xvasprintf): Recognize the special case of a string concatenation.
72010
72011 2006-05-08  Eric Blake  <ebb9@byu.net>
72012
72013         * gnulib-tool (func_version): Base copyright year on CVS date.
72014         (func_emit_copyright_notice): New function.
72015         (func_emit_lib_Makefile_am): Use it.
72016         (func_emit_tests_Makefile_am): Likewise.
72017         (func_import): Likewise.
72018
72019 2006-05-08  Bruno Haible  <bruno@clisp.org>
72020
72021         * modules/stdarg: New file.
72022         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72023
72024 2006-05-08  Bruno Haible  <bruno@clisp.org>
72025
72026         * m4/stdarg.m4: New file, from GNU gettext.
72027
72028 2006-05-08  Bruno Haible  <bruno@clisp.org>
72029
72030         * config/srclist.txt (build-aux/config.rpath): different from latest
72031         release.
72032
72033 2006-05-08  Bruno Haible  <bruno@clisp.org>
72034
72035         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72036
72037 2006-05-05  Jim Meyering  <jim@meyering.net>
72038
72039         * m4/warning.m4: New file, derived from bison's file by the same name.
72040
72041 2006-05-03  Bruno Haible  <bruno@clisp.org>
72042
72043         * lib/stdint_.h: Shorter URL.
72044         * lib/inttypes.h: Likewise.
72045
72046 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72047
72048         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72049
72050 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72051
72052         * lib/verify.h: Document the internals better.  Most of this change
72053         was written by Bruno Haible.
72054
72055 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72056
72057         * doc/verify.texi: New file, partly based on a proposal by
72058         Bruno Haible.
72059
72060 2006-05-02  Bruno Haible  <bruno@clisp.org>
72061
72062         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72063         test from here...
72064         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72065
72066 2006-04-29  Bruno Haible  <bruno@clisp.org>
72067
72068         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72069         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72070
72071 2006-04-29  Bruno Haible  <bruno@clisp.org>
72072
72073         * gnulib-tool: Make --update option actually work.
72074
72075 2006-04-29  Bruno Haible  <bruno@clisp.org>
72076
72077         * doc/gcd.texi: New file.
72078         * doc/gnulib.texi: Include it.
72079
72080 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72081
72082         * lib/getdate.y (get_date): When adding relative date, start with the
72083         initial time, not with the result of the first mktime call.
72084
72085 2006-04-25  Bruno Haible  <bruno@clisp.org>
72086
72087         * gnulib-tool (func_import): Output the include directives in three
72088         blocks, sorted separately.
72089         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72090
72091 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72092
72093         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72094         to define main with arguments, for C++.  Reported by Eric Blake.
72095         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72096         Prefer 'int main ()' to 'int main (void)', for C++.
72097         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72098         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72099         for 'main', for C99 and C++.
72100
72101 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72102
72103         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72104         Don't assume that exit status -1 is valid.
72105         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72106         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72107         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72108         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72109         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72110         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72111         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72112         functions can be used without declaring them, or that you can
72113         exit with status -1.
72114         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72115
72116 2006-04-24  Karl Berry  <karl@gnu.org>
72117
72118         * config/srclist.txt (longdouble.m4): sync lost.
72119
72120 2006-04-24  Eric Blake  <ebb9@byu.net>
72121
72122         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72123
72124 2006-04-24  Bruno Haible  <bruno@clisp.org>
72125
72126         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72127         poll() implementation in AIX.
72128         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72129
72130 2006-04-24  Bruno Haible  <bruno@clisp.org>
72131
72132         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72133         assigned exactly once.
72134
72135 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72136             Bruno Haible  <bruno@clisp.org>
72137
72138         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72139         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72140         for AM_CPPFLAGS.
72141
72142 2006-04-23  Bruno Haible  <bruno@clisp.org>
72143
72144         * modules/copy-file: Depend on unistd.
72145         * modules/execute: Likewise.
72146         * modules/fatal-signal: Likewise.
72147         * modules/findprog: Likewise.
72148         * modules/mkdtemp : Likewise.
72149         * modules/pipe: Likewise.
72150         * modules/wait-process: Likewise.
72151
72152 2006-04-23  Bruno Haible  <bruno@clisp.org>
72153
72154         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72155         condition was already detected.
72156         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72157
72158 2006-04-23  Bruno Haible  <bruno@clisp.org>
72159
72160         * lib/copy-file.c: Include <unistd.h> unconditionally.
72161         * lib/execute.c: Likewise.
72162         * lib/fatal-signal.c: Likewise.
72163         * lib/findprog.c: Likewise.
72164         * lib/mkdtemp.c: Likewise.
72165         * lib/pipe.h: Likewise.
72166         * lib/pipe.c: Likewise.
72167         * lib/wait-process.h: Likewise.
72168
72169 2006-04-23  Bruno Haible  <bruno@clisp.org>
72170
72171         * gnulib-tool (func_usage): Fix --import description. Document
72172         --update.
72173         (func_import): Create temporary file in a temporary directory, if
72174         --dry-run is specified. Silence errors from 'grep' when there are no
72175         m4 files in $m4dir.
72176         (func_create_testdir): Silence errors from 'grep' when there are no
72177         m4 files in $m4dir.
72178         Reported by Karl Berry <karl@freefriends.org>.
72179
72180 2006-04-20  Bruno Haible  <bruno@clisp.org>
72181
72182         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72183         one argument, so that the code will be portable to Autoconf 2.60.
72184         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72185         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72186         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72187
72188 2006-04-19  Derek Price  <derek@ximbiot.com>
72189             Eric Blake  <ebb9@byu.net>
72190
72191         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72192         rather than "/full/path.h".  Update comment to match.  Shorten &
72193         generalize m4_translit call via AS_TR_CPP.
72194
72195 2006-04-19  Derek Price  <derek@ximbiot.com>
72196             Eric Blake  <ebb9@byu.net>
72197
72198         * lib/inttypes.h: Correct grammar in comment.
72199
72200 2006-04-18  Derek Price  <derek@ximbiot.com>
72201             Paul Eggert  <eggert@cs.ucla.edu>
72202
72203         * modules/inttypes: New file.
72204         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72205
72206 2006-04-18  Derek Price  <derek@ximbiot.com>
72207             Paul Eggert  <eggert@cs.ucla.edu>
72208
72209         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72210         New files.
72211
72212 2006-04-18  Derek Price  <derek@ximbiot.com>
72213             Paul Eggert  <eggert@cs.ucla.edu>
72214
72215         * lib/inttypes.h: New file.
72216         * lib/strtoimax.c: Assume <inttypes.h>.
72217
72218 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72219
72220         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72221         isn't mounted.  Problem reported by Kir Kolyshkin.
72222
72223 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72224
72225         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72226         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72227         Derek R. Price.
72228         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72229         implementation.
72230
72231 2006-04-12  Eric Blake  <ebb9@byu.net>
72232
72233         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72234         is now done automatically by the corresponding Autoconf macro.
72235
72236 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72237
72238         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72239         time_r.h.
72240
72241 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72242
72243         Merge regex changes from libc, removing some of our
72244         POSIX-conformance changes that were rejected and redoing them in a
72245         less-intrusive way.
72246
72247         * lib/regcomp.c (re_compile_internal, init_dfa):
72248         Length arg is now size_t, not Idx.  All uses changed.
72249         (peek_token): Forward decl now says internal_function.
72250         (__re_error_msgid, __re_error_msgid_idx):
72251         Now static rather than extern with attribute_hidden.
72252         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72253         For some reason libc prefers K&R style defns for external functions.
72254         (regerror) [!defined _LIBC]: Likewise.
72255         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72256         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72257         (build_range_exp, build_collating_symbol):
72258         Use K&R-style defn.
72259         (re_compile_fastmap): Use '\0' to memset, not 0.
72260         (utf8_sb_map): Make the calculations more obvious.
72261         (init_dfa, parse_bracket_exp, build_charclass_op):
72262         Call calloc and cast result, as glibc does.
72263         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72264         (build_range_exp, build_collating_symbol):
72265         Now internal functions.
72266
72267         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72268
72269         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72270         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72271         Don't depend on VMS; depend on __VMS instead, for POSIX
72272         namespace cleanness.
72273         (regoff_t): Define to ssize_t, not long int.
72274
72275         Remove the REG_ macros named below.  Instead, make the old names
72276         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72277         __USE_GNU_REGEX.
72278         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72279         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72280         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72281         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72282         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72283         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72284         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72285         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72286         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72287         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72288         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72289         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72290         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72291         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72292         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72293         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72294         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72295         (REG_NREGS):
72296         Remove.  All uses replaced by the old RE_* names.
72297         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72298         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72299         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72300         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72301         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72302         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72303         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72304         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72305         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72306         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72307         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72308         Don't bother having these macros be independent of each others'
72309         values, since they no longer exist in the POSIX name space.
72310
72311         Rename the following member names back to their old names,
72312         unless !__USE_GNU_REGEX.  All uses changed back.
72313         (buffer): Renamed from re_buffer.
72314         (allocated): Renamed from re_allocated.
72315         (used): Renamed from re_used.
72316         (syntax): Renamed from re_syntax.
72317         (fastmap): Renamed from re_fastmap.
72318         (translate): Renamed from re_translate.
72319         (can_be_null): Renamed from re_can_be_null.
72320         (regs_allocated): Renamed from re_regs_allocated.
72321         (fastmap_accurate): Renamed from re_fastmap_accurate.
72322         (no_sub): Renamed from re_no_sub.
72323         (not_bol): Renamed from re_not_bol.
72324         (not_eol): Renamed from re_not_eol.
72325         (newline_anchor): Renamed from re_newline_anchor.
72326         (num_regs): Renamed from rm_num_regs.
72327         (start): Renamed from rm_start.
72328         (end): Renamed from rm_end.
72329
72330         (free_state): Move up a bit.
72331
72332         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72333         #define to be empty.
72334         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72335         when that is what is intended.
72336         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72337         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72338         (MAX): New macro.
72339         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72340         All uses changed back to re_malloc, etc.  It's now the caller's
72341         responsibility to check for overflow; all callers changed.
72342         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72343         (re_x2nrealloc): Remove.
72344         (free_state): Remove decl.
72345
72346         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72347         (re_set_registers, re_exec):
72348         Use K&R-style defn.
72349
72350         2006-01-31  Roland McGrath  <roland@redhat.com>
72351
72352         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72353         Reported by Mike Frysinger <vapier@gentoo.org>.
72354
72355         2006-01-15  Andreas Jaeger  <aj@suse.de>
72356
72357         [BZ #1950]
72358         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72359         build_wcs_upper_buffer change.
72360         (build_wcs_upper_buffer): Change return type.
72361
72362         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72363
72364         * lib/regex_internal.h: Include <stdint.h> if available.
72365
72366         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72367
72368         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72369
72370         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72371
72372         * lib/regcomp.c: Adjust for changed secondary hash function.
72373
72374         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72375
72376         * lib/regex.h: Pretty printing.
72377         Clean up namespace a bit.
72378
72379         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72380
72381         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72382         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72383
72384         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72385                     Ulrich Drepper  <drepper@redhat.com>
72386
72387         [BZ #1302]
72388         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72389         changed.
72390         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72391
72392         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72393
72394         [BZ #281]
72395         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72396         * lib/regcomp.c: Remove unnecessary uses of
72397         unsigned RE_TRANSLATE_TYPE.
72398         * lib/regex_internal.h: Likewise.
72399         * lib/regex_internal.c: Likewise.
72400         * lib/regexec.c: Likewise.
72401         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72402
72403         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72404
72405         * lib/regexec.c (find_recover_state): Remove unnecessary
72406         initialization.
72407         (transit_state_bkref): Make DFA a const pointer.
72408         (get_subexp): Likewise.
72409         (check_arrival): Likewise.
72410         (update_cur_sifted_state): Likewise.
72411         (re_search_internal): Likewise.
72412         (prune_impossible_nodes): Likewise.
72413         (acquire_init_state_context): Likewise.
72414         (proceed_next_node): Likewise.
72415         (set_regs): Likewise.
72416         (free_fail_stack_return): Likewise.
72417         (check_arrival_expand_ecl): Mark DFA parameter as const.
72418         (check_arrival_expand_ecl_sub): Likewise.
72419         (check_subexp_limits): Likewise.
72420         (sub_epsilon_src_nodes):  Likewise.
72421         (add_epsilon_src_nodes):  Likewise.
72422         (merge_state_array): Likewise.
72423         (update_regs): Likewise.
72424         (build_trtable): Likewise.
72425         (sift_states_backward): Mark MCTX parameter as const.
72426         (build_sifted_states): Likewise.
72427         (update_cur_sifted_state): Likewise.
72428         (sift_states_mkref): Likewise.
72429         (check_arrival_expand_ecl): Mark eclosure as const.
72430         (check_dst_limits_calc_pos_1): Likewise.
72431         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72432         pointer.
72433
72434         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72435
72436         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72437         (transit_state_sb): Likewise.
72438         (transit_state_mb): Likewise.
72439         (sift_states_iter_mb): Likewise.
72440         (check_arrival_add_next_nodes): Likewise.
72441         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72442         [_LIBC] (re_search_2_stub): Use mempcpy.
72443
72444         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72445         mbrtowc for very simple UTF-8 case.
72446
72447         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72448         a pointer-to-const.
72449         (re_acquire_state_context): Likewise.
72450         * lib/regex_internal.h: Adjust prototypes.
72451
72452         * lib/regex.c: Prevent using C++ compilers.
72453
72454         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72455         (re_acquire_state_context): Likewise.
72456
72457 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72458
72459         * modules/regex (Depends-on): Add ssize_t.
72460
72461 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72462
72463         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72464         translation table.
72465
72466 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72467
72468         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72469
72470 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72471             Bruno Haible  <bruno@clisp.org>
72472
72473         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72474         <sys/types.h> and <inttypes.h>.
72475
72476 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72477
72478         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72479         `__error_t_defined', so argp.h will not typedef the former.
72480
72481 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72484         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72485         glibc names.  Even if glibc is changed to conform to POSIX, the
72486         traditional names will be available anyway, since regex depends on
72487         the extensions module.  Also, fix a longstanding typo in the
72488         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72489         reported by Emanuele Giaquinta.  Also, change sense of cached
72490         variable, so that the message makes sense.
72491
72492 2006-03-24  Simon Josefsson  <jas@extundo.com>
72493
72494         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72495         including some doc fixes.
72496         (base64_encode_alloc): Fix +1 bug on allocation failures.
72497
72498 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72499
72500         * lib/base64.c (base64_encode): Do not read past end of array with
72501         unsanitized input on systems with CHAR_BIT > 8.
72502
72503 2006-03-24  Eric Blake  <ebb9@byu.net>
72504
72505         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72506
72507 2006-03-22  Karl Berry  <karl@gnu.org>
72508
72509         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72510         * config/srclistvars.sh (COREUTILS): new var.
72511
72512 2006-03-17  Jim Meyering  <jim@meyering.net>
72513
72514         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72515         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72516
72517 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72518
72519         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72520         no longer needs it.  Instead, check that regoff_t is as least
72521         as wide as ptrdiff_t.
72522
72523         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72524         so that our regex.h stays compatible with the installed regex.
72525         This is helpful for installers who configure --without-included-regex.
72526         Problem reported by Emanuele Giaquinta.
72527
72528 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72529
72530         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72531         Typedef to long int, not to off_, as POSIX will likely change
72532         in that direction.
72533
72534 2006-03-15  Eric Blake  <ebb9@byu.net>
72535
72536         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72537
72538 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72539
72540         * lib/argp-help.c (validate_uparams): Fix typo
72541         * lib/argp-parse.c (argp_default_options): Consistently begin help
72542         messages with a lowercase letter.
72543
72544 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72545
72546         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72547         overrun buffers and shouldn't be used (much as gets shouldn't be
72548         used).
72549         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72550
72551 2006-03-08  Simon Josefsson  <jas@extundo.com>
72552
72553         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72554         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72555
72556 2006-03-08  Simon Josefsson  <jas@extundo.com>
72557
72558         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72559         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72560
72561 2006-03-08  Simon Josefsson  <jas@extundo.com>
72562
72563         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72564         signal that configure disabled the device.
72565
72566 2006-03-08  Simon Josefsson  <jas@extundo.com>
72567
72568         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72569         languages.
72570
72571 2006-03-07  Simon Josefsson  <jas@extundo.com>
72572
72573         * modules/getopt (Depends-on): Add unistd.
72574
72575         * modules/unistd: New file.
72576
72577 2006-03-07  Simon Josefsson  <jas@extundo.com>
72578
72579         * modules/gc-random: New file.
72580
72581 2006-03-07  Simon Josefsson  <jas@extundo.com>
72582
72583         * m4/unistd_h.m4: New file.
72584
72585 2006-03-07  Simon Josefsson  <jas@extundo.com>
72586
72587         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72588         test to be side-effect free by storing the result in the cache
72589         variable gl_cv_lib_readline, and moving the assignment of
72590         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72591         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72592
72593 2006-03-07  Simon Josefsson  <jas@extundo.com>
72594
72595         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72596         error on missing devices (the functions will return an error).
72597
72598         * m4/gc.m4: Move random stuff to gc-random.m4
72599
72600 2006-03-07  Simon Josefsson  <jas@extundo.com>
72601
72602         * lib/unistd_.h: New file.
72603
72604 2006-03-07  Simon Josefsson  <jas@extundo.com>
72605
72606         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72607
72608 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72609
72610         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72611         Problem reported by Juan Manuel Guerrero.
72612
72613 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72614
72615         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72616         the unistd module.
72617         * lib/getlogin_r.c: Likewise.
72618         * lib/getlogin_r.h: Likewise.
72619         * lib/glob.c: Likewise.
72620         * lib/pagealign_alloc.c: Likewise.
72621         * lib/unistd_.h: Remove; no longer needed.
72622
72623 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72624
72625         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72626         Add unistd.
72627         * modules/c-stack (Depends-on): Add unistd.
72628         * modules/getlogin_r: Likewise.
72629         * modules/glob: Likewise.
72630         * modules/pagealign_alloc: Likewise.
72631         * modules/unistd (Files): Remove lib/unistd_.h.
72632         (EXTRA_DIST): Remove.
72633         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72634         need unistd_.h.
72635         (MOSTLYCLEANFILES): Remove unistd.h-t.
72636
72637 2006-03-03  Simon Josefsson  <jas@extundo.com>
72638
72639         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72640
72641 2006-03-03  Simon Josefsson  <jas@extundo.com>
72642
72643         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72644         libidn and bison.
72645
72646 2006-03-03  Simon Josefsson  <jas@extundo.com>
72647
72648         * build-aux/maint.mk: Add indent target.
72649
72650 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72651
72652         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72653         our replacement poll.h in any case, to avoid a differing
72654         declaration from a system header.  Seen on AIX.
72655
72656 2006-03-01  Simon Josefsson  <jas@extundo.com>
72657
72658         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72659         <kasal@ucw.cz>.
72660
72661 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72662
72663         * modules/gettime (Depends-on): Add extensions module.
72664         * modules/nanosleep (Depends-on): Likewise.
72665         * modules/settime (Depends-on): Likewise.
72666
72667 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72670         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72671         pedantically.
72672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72673         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72674
72675         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72676         not "==".  Reported by Ralf Wildenhues.
72677
72678 2006-03-01  Karl Berry  <karl@gnu.org>
72679
72680         * doc/Copyright/request-*: new files, synced from gnuorg.
72681
72682 2006-03-01  Karl Berry  <karl@gnu.org>
72683
72684         * config/srclist.txt (Copyright/*): new entries.
72685
72686 2006-02-28  Simon Josefsson  <jas@extundo.com>
72687
72688         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72689
72690 2006-02-27  Simon Josefsson  <jas@extundo.com>
72691
72692         * lib/base64.h: Indent #define's.  From Jim Meyering
72693         <jim@meyering.net>.
72694
72695 2006-02-27  Jim Meyering  <jim@meyering.net>
72696
72697         Revert the change of 2006-02-24, so these files can continue
72698         to be sync'd from gettext.
72699         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72700         of `config.h'.
72701
72702 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72703
72704         * modules/intprops: New file.
72705         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72706         Add intprops.
72707         * modules/getloadavg (Files): Remove lib/intprops.h.
72708         (Depends-on): Add intprops.
72709         * modules/human: Likewise.
72710         * modules/inttostr: Likewise.
72711         * modules/openat: Likewise.
72712         * modules/sig2str: Likewise.
72713         * modules/userspec: Likewise.
72714         * modules/utimecmp: Likewise.
72715         * modules/xnanosleep: Likewise.
72716         * modules/xstrtol: Likewise.
72717
72718 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72719
72720         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72721         * modules/lock-tests (TESTS): Use $(EXEEXT).
72722         * modules/tls-tests: Likewise.
72723         * modules/argp-tests: Likewise.
72724         (check_PROGRAMS): New var, replacing...
72725         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72726
72727 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72728
72729         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72730         `config.h'.
72731
72732 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72733
72734         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72735
72736 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72737
72738         Sync from coreutils.
72739         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72740         gl_CHDIR_SAFER.
72741
72742 2006-02-22  Jim Meyering  <jim@meyering.net>
72743
72744         Sync from coreutils.
72745         * m4/chdir-safer.m4: New file.
72746
72747 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72748
72749         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72750         AT_FDCWD exceeds INT_MAX.
72751         * lib/openat.h (AT_FDCWD): Likewise.
72752
72753 2006-02-17  Eric Blake  <address@hidden>
72754
72755         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72756
72757 2006-02-16  Simon Josefsson  <jas@extundo.com>
72758
72759         * modules/getaddrinfo (Depends-on): Add sys_socket.
72760
72761 2006-02-15  Simon Josefsson  <jas@extundo.com>
72762
72763         * build-aux/maint.mk: Add dsyntax-check rule.
72764
72765 2006-02-15  Eric Blake  <ebb9@byu.net>
72766
72767         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72768         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72769         'present but cannot compile' warnings on cygwin.
72770         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72771         use ws2tcpip.h if sys/socket.h works.
72772         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72773         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72774
72775 2006-02-14  Simon Josefsson  <jas@extundo.com>
72776
72777         * modules/maintainer-makefile (Files): Rename.
72778
72779         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72780         and (the local) Makefile.cfg to maint-cfg.mk.
72781
72782         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72783         to the latter.
72784
72785         * modules/maintainer-makefile: New module.
72786
72787         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72788         severaly stripped to make it possible to build it up from scratch
72789         with reliable tests.
72790
72791         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72792         fixes to permit overriding the default actions when configure and
72793         makefile are not available.
72794
72795 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72796
72797         Sync from coreutils.
72798         * modules/lstat (Depends-on): Don't depend on xalloc.
72799         (License): Change from GPL to LGPL, since this is now simply a
72800         replacement for a libc function.
72801
72802 2006-02-14  Jim Meyering  <jim@meyering.net>
72803
72804         Sync from coreutils.
72805
72806         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72807         failure on deficient systems, and simplify gnulib lgpl dependencies.
72808         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72809         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72810
72811         * lib/xalloc-die.c: Remove unused definition of N_.
72812
72813 2006-02-14  Jim Meyering  <jim@meyering.net>
72814
72815         Sync from coreutils.
72816         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72817         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72818         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72819         double-quote uses of that variable, to accommodate the rare case in
72820         which getmntent is available in none of the libraries checked.  This
72821         happens at least on FreeBSD 5.0.
72822
72823 2006-02-13  Simon Josefsson  <jas@extundo.com>
72824
72825         * gnulib-tool (Usage): Fix --import, from
72826         karl@freefriends.org (Karl Berry).
72827
72828 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72829
72830         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72831
72832 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72833
72834         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72835         "autoupdate" on 2005-12-12.
72836
72837 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72838
72839         * modules/closeout (Depends-on): Remove atexit.
72840
72841 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72842
72843         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72844         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72845
72846 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72847
72848         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72849         __EXTENSIONS__ if this causes compilation to fail.  Problem
72850         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72851         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72852
72853 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72854
72855         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72856         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72857         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72858         All uses changed.
72859
72860 2006-01-26  Simon Josefsson  <jas@extundo.com>
72861
72862         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72863         prototype is visible on mingw32.
72864
72865         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72866         for mingw32.
72867
72868         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72869         mingw32).
72870
72871 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72872
72873         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72874         attempt to open for write; this always fails, at least on POSIX
72875         hosts.  This reinstates the 2006-01-09 change, which was
72876         inadvertently removed.
72877
72878 2006-01-26  Bruno Haible  <bruno@clisp.org>
72879
72880         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72881         Reported by Paul Eggert.
72882
72883 2006-01-26  Bruno Haible  <bruno@clisp.org>
72884             Paul Eggert  <eggert@cs.ucla.edu>
72885
72886         * lib/stdbool_.h (_Bool)
72887         [(! (defined __cplusplus || defined __BEOS__)
72888           && !defined __GNUC__
72889           && !(defined __HP_cc || defined __xlc__
72890                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72891                || defined __sgi))]:
72892         #define to signed char in these cases too; this simplifies
72893         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72894         etc., separately) and makes it more conservative.
72895
72896 2006-01-25  Simon Josefsson  <jas@extundo.com>
72897
72898         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72899         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72900         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72901
72902 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72903
72904         * lib/argp-namefrob.h: Bugfix. Remove stray #
72905
72906 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72907
72908         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72909         so that we test the test.
72910         Check for yet another HP-UX cc bug involving *bool |= bool.
72911
72912 2006-01-25  Karl Berry  <karl@gnu.org>
72913
72914         * config/srclist.txt (vasnprintf.c): sync lost.
72915
72916 2006-01-25  Jim Meyering  <jim@meyering.net>
72917
72918         Sync from the stable (b5) branch of coreutils:
72919
72920         * lib/fts.c (fts_children): Don't let close() clobber errno from
72921         failed fchdir().
72922
72923         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72924         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72925         a dangling symlink.  That can also happen at least for ELOOP.
72926         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72927         FYI, this bug predates the inclusion of fts.c in coreutils.
72928
72929         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72930         in their own block, so pre-c99 compilers don't object.
72931
72932         Avoid the double-free (first in fts_read, second in fts_close) that
72933         would occur when an `active' directory is made inaccessible (e.g.,
72934         via chmod a-x) during a traversal.
72935         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72936         before returning.  Reproduce this failure by
72937         mkdir -p a/b; cd a; chmod a-x . b
72938         Reported by Stavros Passas.
72939
72940 2006-01-25  Jim Meyering  <jim@meyering.net>
72941
72942         * lib/fileblocks.c: Remove more useless parentheses.
72943         * lib/readutmp.h: Likewise.
72944
72945 2006-01-25  Bruno Haible  <bruno@clisp.org>
72946
72947         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72948         warnings.
72949         Reported by Paul Eggert.
72950
72951 2006-01-25  Bruno Haible  <bruno@clisp.org>
72952
72953         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72954         rid of a trap command. For Solaris sh.
72955         Reported by Mark D. Baushke <mdb@gnu.org>.
72956
72957 2006-01-24  Simon Josefsson  <jas@extundo.com>
72958
72959         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72960         Bruno.
72961
72962 2006-01-24  Karl Berry  <karl@gnu.org>
72963
72964         * config/srclist.txt (argp-namefrob.h): sync lost.
72965
72966 2006-01-24  Jim Meyering  <jim@meyering.net>
72967
72968         * modules/openat (Files): Add lib/intprops.h.
72969         From Mark D. Baushke.
72970
72971 2006-01-24  Jim Meyering  <jim@meyering.net>
72972
72973         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72974         Reported by Mark D. Baushke.
72975
72976 2006-01-24  Jim Meyering  <jim@meyering.net>
72977
72978         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72979
72980 2006-01-24  Bruno Haible  <bruno@clisp.org>
72981
72982         * modules/strnlen (Maintainer): Change from glibc to all.
72983
72984 2006-01-24  Bruno Haible  <bruno@clisp.org>
72985
72986         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72987         Patch by Paul Eggert.
72988
72989 2006-01-24  Bruno Haible  <bruno@clisp.org>
72990
72991         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72992         already has it.
72993         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72994         2005-11-26.
72995
72996         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72997         'signed char' to avoid problems with the built-in _Bool type.
72998         Reported by Paul Eggert on 2005-11-26.
72999
73000 2006-01-24  Bruno Haible  <bruno@clisp.org>
73001
73002         * gnulib-tool (func_import): Avoid constructing complicated sed
73003         expressions inside backquote.
73004         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73005
73006 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73007
73008         These changes imported from libc.
73009         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73010         test and two separate function calls.
73011         * lib/strndup.c (__strndup): Add libc_hidden_def.
73012
73013 2006-01-23  Simon Josefsson  <jas@extundo.com>
73014
73015         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73016         Remove the test_*_SOURCES variable: automake infers it by default.
73017         * modules/tls-tests: Likewise.
73018
73019 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73020
73021         Work around porting bugs reported by Dieter in
73022         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73023         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73024         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73025         Include "getopt.h" first, to check interface.
73026         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73027         !HAVE_DECL_GETENV.
73028         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73029         (__strndup): Revert to K&R-style function dfns, the glibc style.
73030         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73031         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73032         Include strnlen.h first, to get prototype properly.
73033         (strnlen): Renamed from __strnlen.
73034         Remove weak alias.
73035
73036 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73037
73038         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73039
73040 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73041
73042         * config/srclist.txt: Adjust to reflect glibc reorganization.
73043         This affects only comments.
73044
73045 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73046
73047          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73048          Reported by Bruce Korb <bkorb@gnu.org>.
73049
73050 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73051
73052         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73053         to pacify gcc -Wswitch-default.
73054
73055 2006-01-22  Bruno Haible  <bruno@clisp.org>
73056
73057         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73058         temporary buffer for sprintf, take into account the precision also
73059         for 'd', 'i', 'u', 'o', 'x', 'X'.
73060
73061 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73062
73063         * modules/argp-tests: New module
73064         * tests/test-argp.c: New file
73065         * tests/test-argp-2.sh: New file
73066
73067 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73068
73069         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73070         (__argp_base_name): Removed
73071         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73072         typo.
73073         (__argp_base_name): Provide macro definition or extern declaration
73074         depending on the configuration
73075
73076 2006-01-20  Simon Josefsson  <jas@extundo.com>
73077
73078         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73079
73080 2006-01-20  Simon Josefsson  <jas@extundo.com>
73081
73082         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73083
73084 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73085
73086         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73087         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73088         Suggested by Bruno Haible.
73089
73090 2006-01-20  Karl Berry  <karl@gnu.org>
73091
73092         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73093         until changes propagate, I guess.
73094
73095 2006-01-19  Simon Josefsson  <jas@extundo.com>
73096
73097         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73098
73099 2006-01-19  Simon Josefsson  <jas@extundo.com>
73100
73101         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73102
73103 2006-01-19  Simon Josefsson  <jas@extundo.com>
73104
73105         * gnulib-tool: Set check_PROGRAMS.
73106
73107         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73108         modules/des-tests, modules/gc-arcfour-tests,
73109         modules/gc-arctwo-tests, modules/gc-des-tests,
73110         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73111         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73112         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73113         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73114         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73115         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73116         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73117         test_*_SOURCES.
73118
73119 2006-01-18  Simon Josefsson  <jas@extundo.com>
73120
73121         * modules/socklen (Depends-on): Depend on sys_socket.
73122
73123 2006-01-18  Simon Josefsson  <jas@extundo.com>
73124
73125         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73126         modules/des-tests, modules/gc-arcfour-tests,
73127         modules/gc-arctwo-tests, modules/gc-des-tests,
73128         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73129         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73130         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73131         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73132         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73133         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73134         $(EXEEXT) to automake TESTS variable, for mingw32.
73135
73136 2006-01-17  Simon Josefsson  <jas@extundo.com>
73137
73138         * modules/socklen (Include): Need sys/socket.h.
73139
73140 2006-01-17  Bruno Haible  <bruno@clisp.org>
73141
73142         * modules/ssize_t (Include): Add <sys/types.h>.
73143
73144 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73145
73146         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73147         it's not portable and it doesn't work with cross-compiles.
73148         Problem reported by Bruno Haible.  Fix missing-$ typo in
73149         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73150         -zignore from being used with Sun's C compiler.
73151
73152 2006-01-12  Simon Josefsson  <jas@extundo.com>
73153
73154         * lib/base64.c: Fix warning, reported by Bruno Haible
73155         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73156
73157 2006-01-12  Bruno Haible  <bruno@clisp.org>
73158
73159         * modules/ldd: New file.
73160         * build-aux/ldd.sh.in: New file.
73161         * MODULES.html.sh (Support for building libraries and executables): Add
73162         ldd.
73163
73164 2006-01-12  Bruno Haible  <bruno@clisp.org>
73165
73166         * m4/ldd.m4: New file.
73167
73168 2006-01-12  Bruno Haible  <bruno@clisp.org>
73169
73170         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73171         endless loop while replacing $auxdir with build-aux.
73172
73173 2006-01-11  Simon Josefsson  <jas@extundo.com>
73174
73175         * lib/stdint_.h (SIZE_MAX): Add missing (.
73176
73177 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73178
73179         Sync from coreutils.
73180         * lib/md5.c: Fix commentary typos.
73181         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73182         * lib/md5.h (__attribute__): Remove; unused.
73183         * lib/sha1.c: Fix commentary to match md5 better.
73184         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73185         so that we don't need to worry about alignment.  All uses changed.
73186         This merges the 2005-10-28 md5 change into sha1.
73187
73188 2006-01-11  Jim Meyering  <jim@meyering.net>
73189
73190         Sync from coreutils.
73191         * lib/md5.c (OP): Fix spacing.
73192
73193 2006-01-11  Bruno Haible  <bruno@clisp.org>
73194
73195         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73196         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73197         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73198
73199 2006-01-11  Bruno Haible  <bruno@clisp.org>
73200
73201         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73202         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73203         the "early" section as well.
73204
73205 2006-01-11  Bruno Haible  <bruno@clisp.org>
73206
73207         Avoid "ar: no archive members specified" error on MacOS X.
73208         * gnulib-tool (func_modules_add_dummy): New function.
73209         (func_import, func_create_testdir): Invoke it.
73210
73211 2006-01-11  Bruno Haible  <bruno@clisp.org>
73212
73213         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73214         with $auxdir in AC_CONFIG_FILES statements.
73215
73216 2006-01-11  Bruno Haible  <bruno@clisp.org>
73217
73218         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73219         Initialize also noinst_HEADERS to empty.
73220
73221 2006-01-11  Bruno Haible  <bruno@clisp.org>
73222
73223         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73224         variables.
73225         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73226         autoreconf.
73227
73228 2006-01-11  Bruno Haible  <bruno@clisp.org>
73229
73230         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73231         overridable by the user.
73232         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73233
73234 2006-01-10  Simon Josefsson  <jas@extundo.com>
73235
73236         * modules/sys_socket: New file.
73237
73238 2006-01-10  Simon Josefsson  <jas@extundo.com>
73239
73240         * m4/sys_socket_h.m4: New file.
73241
73242 2006-01-10  Simon Josefsson  <jas@extundo.com>
73243
73244         * lib/socket_.h: New file.
73245
73246 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73247
73248         * modules/readutmp (Maintainer): Add myself.
73249
73250 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73251
73252         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73253         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73254         People who are still concerned with buggy memcmp implementations
73255         can invoke gl_FUNC_MEMCMP themselves.
73256
73257 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73258
73259         * lib/regex_internal.h (BITSET_WORD_BITS):
73260         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73261         preprocessor mishandles large unsigned values as if they were signed.
73262         Problem reported by Claudio Fontana in
73263         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73264
73265 2006-01-10  Jim Meyering  <jim@meyering.net>
73266
73267         Avoid the double-free (first in fts_read, second in fts_close) that
73268         would occur when an `active' directory is made inaccessible (e.g.,
73269         via chmod a-x) during a traversal.
73270         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73271         before returning.  Reproduce this failure by
73272         mkdir -p a/b; cd a; chmod a-x . b
73273         Reported by Stavros Passas.
73274
73275         Sync from coreutils.
73276         * lib/sha1.c: Tweak grammar in a comment.
73277
73278 2006-01-10  Jim Meyering  <jim@meyering.net>
73279
73280         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73281         Patch by Joerg Sonnenberger.
73282
73283 2006-01-10  Bruno Haible  <bruno@clisp.org>
73284
73285         * modules/readutmp: Depend on module free.
73286         * modules/strtok_r: Depend on module restrict.
73287
73288 2006-01-10  Bruno Haible  <bruno@clisp.org>
73289
73290         * modules/gettext (configure.ac): Add an invocation of
73291         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73292
73293 2006-01-10  Bruno Haible  <bruno@clisp.org>
73294
73295         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73296         Reported by Werner Lemberg <wl@gnu.org>.
73297
73298 2006-01-10  Bruno Haible  <bruno@clisp.org>
73299
73300         * lib/localcharset.c: Update from GNU gettext.
73301
73302 2006-01-10  Bruno Haible  <bruno@clisp.org>
73303
73304         * lib/argp.h (__const): Remove macro. Use const instead.
73305         * lib/argp-fmtstream.h (__const): Likewise.
73306         * lib/glob_.h (__const): Remove macro.
73307         * lib/glob-libc.h: Use const instead of __const.
73308
73309 2006-01-10  Bruno Haible  <bruno@clisp.org>
73310
73311         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73312         variable.
73313         Needed to avoid an automake error regarding the 'gettext' module.
73314
73315 2006-01-09  Simon Josefsson  <jas@extundo.com>
73316
73317         * modules/inet_ntop (Depends-on): Add restrict.
73318
73319 2006-01-09  Simon Josefsson  <jas@extundo.com>
73320
73321         * modules/gc-rijndael-tests (License): Put under LGPL.
73322
73323         * modules/gc-des-tests (License): Likewise.
73324
73325         * modules/gc-arcfour-tests (License): Likewise.
73326
73327         * modules/gc-arctwo-tests (License): Likewise.
73328
73329         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73330
73331         * modules/gc-hmac-sha1-tests (Files): Likewise.
73332
73333         * modules/gc-hmac-md5-tests (License): Likewise.
73334
73335         * modules/gc-sha1-tests (License): Likewise.
73336
73337         * modules/gc-md5-tests (License): Likewise.
73338
73339         * modules/gc-md4-tests (License): Likewise.
73340
73341         * modules/gc-md2-tests (License): Likewise.
73342
73343         * modules/gc-tests (License): Likewise.
73344
73345         * modules/des-tests (License): Likewise.
73346
73347         * modules/md4-tests (License): Likewise.
73348
73349         * modules/md2-tests (License): Likewise.
73350
73351 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73352
73353         Sync from coreutils:
73354
73355         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73356         * modules/lib-ignore: New file.
73357         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73358         chdir-safer.m4, lchmod.m4.
73359         * modules/openat: Add mkdirat.c, openat-priv.h.
73360
73361 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73362
73363         Sync from coreutils.
73364         * m4/lib-ignore.m4: New file.
73365         * m4/lchmod.m4: New file.
73366
73367 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73368
73369         Sync from coreutils.
73370         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73371         for write access: POSIX says that must fail.
73372         * lib/fts.c (diropen): Likewise.
73373         * lib/save-cwd.c (save_cwd): Likewise.
73374         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73375         well, for minor improvements on hosts that lack O_DIRECTORY.
73376         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73377         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73378         Fall back on chown if open failed with EACCES.
73379
73380         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73381         Report an error at compile-time if only a 1-second nominal clock
73382         resolution is found.
73383
73384         * lib/lchmod.h: New file.
73385         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73386         (make_dir_parents): Use lchown rather than chown, and
73387         lchmod rather than chmod.
73388
73389         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73390         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73391         "proc" reported by n0dalus.
73392
73393         * lib/mountlist.c: Include <limits.h>.
73394         (dev_from_mount_options)
73395         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73396         New function.  It no longer assumes "dev=" has the System V meaning
73397         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73398         (read_file_system_list)
73399         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73400         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73401         dev= in that case.
73402
73403         * lib/posixtm.h (PDS_PRE_2000): New macro.
73404         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73405         allow_century.  All usages changed.  Reject dates outside the range
73406         1969-1999 if PDS_PRE_2000 is used.
73407
73408 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73409
73410         Sync from coreutils.
73411         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73412         (Time of day items): Mention the possibility of leap seconds.
73413         Problem reported by Dr. David Alan Gilbert.
73414
73415 2006-01-09  Jim Meyering  <jim@meyering.net>
73416
73417         Sync from coreutils.
73418
73419         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73420
73421         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73422
73423         * lib/modechange.c (mode_compile): Reject an invalid mode string
73424         that starts with an octal digit.  From Andreas Gruenbacher.
73425
73426         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73427         and dup to open_safer and dup_safer, respectively.
73428         (openat_permissive): Fix typo in comment.
73429
73430         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73431         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73432         (_): Remove; no longer needed.
73433         (openat): Renamed from rpl_openat; no need for rpl_openat
73434         since openat.h renames openat for us.
73435         Replace most of the body with a call to openat_permissive,
73436         to avoid duplicate code.
73437         Port to (probably hypothetical) environments were mode_t is
73438         wider than int.
73439         (openat_permissive): Require mode arg, so that we can check
73440         types better.  Put it just after flags.  Change cwd failure
73441         indicator from pointer-to-bool to pointer-to-errno-value.
73442         All callers changed.
73443         Invoke openat_save_fail and/or openat_restore_fail if
73444         cwd_errno is null, so that openat can call us.
73445         (openat_permissive, fdopendir, fstatat, unlinkat):
73446         Simplify errno handling to avoid some duplicate code,
73447         as it's OK to set errno on success.
73448         * lib/openat.h: Revamp code so that function macros depend on
73449         __OPENAT_PREFIX only, not also on AT_FDCWD.
73450         (openat_ro): Remove.  Caller changed to use openat_permissive.
73451         (openat_permissive): Now a macro, if not a function.
73452         (openat_restore_fail, openat_save_fail): Now always functions,
73453         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73454
73455         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73456         and openat.c.
73457         * lib/mkdirat.c: Include openat-priv.h.
73458         Remove definitions of macros defined therein.
73459         * lib/openat.c: Likewise.
73460
73461         * lib/mkdirat.c (mkdirat): New file and function.
73462         * lib/openat.h (mkdirat): Declare.
73463
73464         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73465
73466         * lib/openat.h (openat_permissive): Declare.
73467         (openat_ro): Define.
73468
73469         * lib/openat.c (EXPECTED_ERRNO): New macro.
73470         (openat_permissive): New function -- used in remove.c rewrite.
73471         (all functions): Set errno just before returning, only if there
73472         was an actual failure.
73473         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73474
73475         Emulate openat-family functions using Linux's procfs, if possible.
73476         Idea and some code based on Ulrich Drepper's glibc changes.
73477
73478         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73479         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73480         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73481         before falling back on save_cwd and restore_cwd.
73482         (fdopendir, fstatat, unlinkat): Likewise.
73483
73484         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73485         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73486
73487         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73488         as second argument to va_arg.  Otherwise, some versions of gcc
73489         warn that `if this code is reached, the program will abort'.
73490
73491 2006-01-09  Jim Meyering  <jim@meyering.net>
73492
73493         Sync from coreutils.
73494         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73495         Require openat-priv.h.
73496
73497 2006-01-09  Bruno Haible  <bruno@clisp.org>
73498
73499         * modules/strnlen (Include): Use strnlen.h.
73500
73501 2006-01-09  Bruno Haible  <bruno@clisp.org>
73502
73503         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73504
73505 2006-01-09  Bruno Haible  <bruno@clisp.org>
73506
73507         * lib/sysexit_.h (EX_OK): New macro.
73508         Suggested by Martin Lambers <marlam@marlam.de>.
73509
73510 2006-01-09  Bruno Haible  <bruno@clisp.org>
73511
73512         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73513         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73514
73515 2006-01-09  Bruno Haible  <bruno@clisp.org>
73516
73517         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73518         numbers.
73519
73520 2006-01-09  Bruno Haible  <bruno@clisp.org>
73521
73522         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73523         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73524         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73525         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73526
73527 2006-01-09  Bruno Haible  <bruno@clisp.org>
73528
73529         * build-aux/javacomp.sh.in: New file, moved from lib/.
73530         * modules/javacomp-script (Files): Update.
73531         (configure.ac): Add AC_CONFIG_FILES invocation.
73532         (EXTRA_DIST): Remove variable.
73533
73534         * build-aux/javaexec.sh.in: New file, moved from lib/.
73535         * modules/javaexec (Files): Update.
73536         (configure.ac): Add AC_CONFIG_FILES invocation.
73537         (EXTRA_DIST): Remove javaexec.sh.in.
73538
73539         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73540         * modules/csharpcomp-script (Files): Update.
73541         (configure.ac): Add AC_CONFIG_FILES invocation.
73542         (EXTRA_DIST): Remove variable.
73543
73544         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73545         * modules/csharpexec (Files): Update.
73546         (configure.ac): Add AC_CONFIG_FILES invocation.
73547         (EXTRA_DIST): Remove csharpexec.sh.in.
73548
73549 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73550
73551         Sync from coreutils.
73552
73553         Add POSIX ACL support
73554         * lib/acl.h (copy_acl, set_acl): Add declarations.
73555         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73556         systems other than Linux.
73557         (chmod_or_fchmod): New function: use fchmod when possible,
73558         and chmod otherwise.
73559         (file_has_acl): Add a POSIX ACL implementation, with a
73560         Linux-specific subcase.
73561         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73562         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73563         acls are unsupported.
73564         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73565         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73566         are unsupported.
73567
73568 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73569
73570         Sync from coreutils.
73571         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73572
73573 2006-01-07  Bruno Haible  <bruno@clisp.org>
73574
73575         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73576         gl_EARLY.
73577
73578 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73579
73580         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73581         Problem reported for Mingw by Mark Junker.
73582
73583 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73584
73585         * README: Gnulib normally doesn't generate a tarball.
73586
73587 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73588
73589         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73590         long int, not int, for nanosecond counts, so that people who are
73591         used to POSIX struct timespec won't be surprised.  Reported by Jim
73592         Meyering.
73593
73594 2005-12-28  Bruno Haible  <bruno@clisp.org>
73595
73596         * build-aux/config.rpath: Update from GNU gettext.
73597
73598 2005-12-16  Jim Meyering  <jim@meyering.net>
73599
73600         * modules/fprintftime: New module.
73601         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73602
73603 2005-12-16  Jim Meyering  <jim@meyering.net>
73604
73605         * m4/fprintftime.m4: New file.
73606
73607 2005-12-16  Jim Meyering  <jim@meyering.net>
73608
73609         * lib/fprintftime.c, lib/fprintftime.h: New files.
73610
73611 2005-12-15  Simon Josefsson  <jas@extundo.com>
73612
73613         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73614         new m4/socklen.m4.
73615
73616 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73617
73618         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73619         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73620
73621 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73622
73623         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73624         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73625         struct uparams is valid. Fall back to the default values if it is
73626         not.
73627
73628 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73629
73630         * modules/argp (Files): Add argp-pin.c
73631         (Depends-on): dirname
73632         (lib_SOURCES): Add argp-pin.c
73633
73634 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73635
73636         * m4/argp.m4:  Check if program_invocation_name and
73637         program_invocation_short_name are declared and define appropriate
73638         macros if they are not.
73639
73640 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73641
73642         * lib/argp-help.c (__argp_base_name): New function
73643         (__argp_short_program_name): Rewrite using __argp_base_name
73644         * lib/argp-namefrob.h: Define program_invocation_name and
73645         program_invocation_short_name if requested
73646         (__argp_base_name): Add prototype
73647         * lib/argp-parse.c (argp_def): Use gettext wrappers
73648         (argp_default_parser): Use __argp_base_name
73649         * lib/argp-pin.c: New file. Defines program_invocation_name and
73650         program_invocation_short_name on systems that lack them.
73651
73652 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73653
73654         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73655         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73656         porting problem reported by Georg Schwarz in
73657         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73658
73659 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73660
73661         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73662         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73663         porting problem reported by Georg Schwarz in
73664         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73665
73666 2005-12-05  Bruno Haible  <bruno@clisp.org>
73667
73668         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73669         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73670         Reported by Mark Junker <mjscod@gmx.de>.
73671
73672 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73673
73674         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73675         Use implementation from Albert Chin, with some
73676         comments/corrections by Stepan Kasal and myself.
73677
73678 2005-12-02  Bruno Haible  <bruno@clisp.org>
73679
73680         * gnulib-tool (func_import): Accept GPLed build tool modules when
73681         --lgpl is given.
73682         * modules/csharpcomp-script: New file.
73683         * modules/csharpcomp: Depend on it.
73684         * modules/javacomp-script: New file.
73685         * modules/javacomp: Depend on it.
73686         Suggested by Simon Josefsson.
73687
73688 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73689
73690         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73691         statement, to work around an HP-UX 10.20 compiler bug reported by
73692         Peter O'Gorman.
73693
73694 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73695
73696         * modules/savedir (Depends-on): Add openat.
73697
73698 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73699
73700         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73701         (uintmax_t) [defined uintmax_t]: Do not declare.
73702         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73703         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73704         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73705         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73706         sake of portability to weird hosts that C allows (though we don't
73707         know of any practical examples).
73708
73709         * lib/savedir.h (fdsavedir): New decl.
73710         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73711         contains most of the former guts of savedir.
73712         (savedir): Use savedirstream.
73713         Include "openat.h".
73714
73715 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73716
73717         * modules/obstack (Files): Add m4/ulonglong.m4.
73718         Problem reported by Davide Angelocola.
73719
73720 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73721
73722         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73723         coreutils no longer futzes with rounding modes.
73724
73725 2005-11-14  Jim Meyering  <jim@meyering.net>
73726
73727         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73728         replacement of mkstemp.
73729
73730 2005-11-10  Simon Josefsson  <jas@extundo.com>
73731
73732         * lib/readline.c: Remove EOL.
73733
73734 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73735
73736         * modules/gethrxtime (Depends-on): Add gettime.
73737
73738 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73739
73740         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73741         or gettimeofday; no longer needed.
73742
73743 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73744
73745         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73746         time business.
73747         (gethrxtime) [! (HAVE_NANOUPTIME
73748         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73749         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73750         our own approximation.
73751
73752 2005-11-08  Eric Blake  <ebb9@byu.net>
73753
73754         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73755
73756 2005-11-08  Eric Blake  <ebb9@byu.net>
73757
73758         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73759
73760 2005-11-04  Bruno Haible  <bruno@clisp.org>
73761
73762         * gnulib-tool: Implement --update mode.
73763
73764 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73765
73766         Fix porting problem reported by Theodoros V. Kalamatianos.
73767         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73768         Don't assume that futimes failing means we must fail.
73769
73770 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73771
73772         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73773         variables to suggest the intended function of the PATH_MAX check.
73774
73775 2005-10-30  Kean Johnston  <jkj@sco.com>
73776
73777         Trivial changes to support SCO systems.
73778         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73779         as PATH_MAX.
73780         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73781         where __ptr is null when no I/O is pending.
73782
73783 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73784
73785         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73786         leave errno alone.  Problem reported by Dmitry V. Levin.
73787
73788 2005-10-28  Simon Josefsson  <jas@extundo.com>
73789
73790         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73791         Test more.
73792
73793         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73794
73795         * modules/md2, modules/md2-tests: New files.
73796
73797 2005-10-28  Simon Josefsson  <jas@extundo.com>
73798
73799         * m4/inet_ntop.m4: More tests.
73800
73801         * m4/gc-md2.m4, md2.m4: New file.
73802
73803 2005-10-28  Simon Josefsson  <jas@extundo.com>
73804
73805         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73806         "restrict" keywords, as per POSIX.  Protect the function
73807         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73808         Don't use K&R prototypes.  Check the sprintf return values.
73809         Re-define EAFNOSUPPORT if not present.  Indent.
73810
73811         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73812         suggested by Bruno Haible <bruno@clisp.org>.
73813
73814         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73815
73816         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73817
73818         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73819         libgcrypt).
73820
73821         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73822
73823         * lib/md2.h, lib/md2.c: New files.
73824
73825 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73828         errno alone.  Problem reported by Frederic Jolliton.
73829
73830 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73831
73832         * modules/verify (License): Change from GPL to LGPL.  This is a
73833         tiny module and there are apparently near-equivalents that are
73834         under the BSD license.
73835
73836 2005-10-24  Simon Josefsson  <jas@extundo.com>
73837
73838         * modules/sha1: Relicense to LGPL.
73839
73840 2005-10-24  Simon Josefsson  <jas@extundo.com>
73841
73842         * lib/md4.h: Shrink buffer size, now that we changed the type.
73843
73844 2005-10-23  Simon Josefsson  <jas@extundo.com>
73845
73846         * gnulib-tool (func_import): Fix --tests-base.
73847
73848 2005-10-22  Simon Josefsson  <jas@extundo.com>
73849
73850         * modules/arcfour (Depends-on): Need stdint.
73851
73852 2005-10-22  Simon Josefsson  <jas@extundo.com>
73853
73854         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73855         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73856
73857 2005-10-22  Simon Josefsson  <jas@extundo.com>
73858
73859         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73860         suggested by Bruno Haible <bruno@clisp.org>.
73861
73862 2005-10-22  Simon Josefsson  <jas@extundo.com>
73863
73864         * lib/crc.h: Include stddef.h, for size_t.
73865
73866 2005-10-22  Simon Josefsson  <jas@extundo.com>
73867
73868         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73869         arcfour_context struct (simplify test vector testing in GNU
73870         Shishi).
73871
73872 2005-10-21  Simon Josefsson  <jas@extundo.com>
73873
73874         * modules/des, modules/des-tests: New files.
73875
73876         * modules/gc-des, modules/gc-des-tests: New files.
73877
73878         * tests/test-des.c, tests/test-gc-des.c: New file.
73879
73880 2005-10-21  Simon Josefsson  <jas@extundo.com>
73881
73882         * modules/arctwo, modules/arctwo-tests: New files.
73883
73884         * tests/test-arctwo.c: New file.
73885
73886         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73887
73888         * tests/test-gc-arctwo.c: New file.
73889
73890 2005-10-21  Simon Josefsson  <jas@extundo.com>
73891
73892         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73893         Bruno Haible <bruno@clisp.org>.
73894
73895         * m4/gc-des.m4: New file.
73896
73897 2005-10-21  Simon Josefsson  <jas@extundo.com>
73898
73899         * m4/arctwo.m4: New file.
73900
73901         * m4/gc-arctwo.m4: New file.
73902
73903 2005-10-21  Simon Josefsson  <jas@extundo.com>
73904
73905         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73906         block.
73907
73908 2005-10-21  Simon Josefsson  <jas@extundo.com>
73909
73910         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73911         <bruno@clisp.org>.
73912
73913         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73914
73915         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73916         Bruno Haible <bruno@clisp.org>.
73917
73918         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73919         <bruno@clisp.org>.
73920
73921 2005-10-21  Simon Josefsson  <jas@extundo.com>
73922
73923         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73924
73925 2005-10-21  Simon Josefsson  <jas@extundo.com>
73926
73927         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73928
73929 2005-10-21  Simon Josefsson  <jas@extundo.com>
73930
73931         * lib/des.h, lib/des.c: New files.
73932
73933         * lib/gc-gnulib.c: Support DES.c
73934
73935 2005-10-21  Simon Josefsson  <jas@extundo.com>
73936
73937         * lib/arctwo.h, lib/arctwo.c: New files.
73938
73939         * lib/gc-gnulib.c: Support ARCTWO.
73940
73941 2005-10-21  Simon Josefsson  <jas@extundo.com>
73942
73943         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73944         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73945
73946 2005-10-21  Simon Josefsson  <jas@extundo.com>
73947
73948         * gnulib-tool (func_import, func_create_testdir): Define automake
73949         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73950         Makefile.am snippet),
73951         suggested by Bruno Haible <bruno@clisp.org>.
73952
73953         * modules/gc (Makefile.am): Use it.
73954
73955 2005-10-21  Bruno Haible  <bruno@clisp.org>
73956
73957         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73958         patch.
73959
73960 2005-10-19  Simon Josefsson  <jas@extundo.com>
73961
73962         * tests/test-gc-rijndael.c: New file.
73963
73964         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73965
73966 2005-10-19  Simon Josefsson  <jas@extundo.com>
73967
73968         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73969         interface too.
73970
73971 2005-10-19  Simon Josefsson  <jas@extundo.com>
73972
73973         * tests/test-gc-arcfour.c: New file.
73974
73975         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73976
73977 2005-10-19  Simon Josefsson  <jas@extundo.com>
73978
73979         * modules/gc-md4, modules/gc-md4-tests: New file.
73980
73981         * tests/test-gc-md4.c: New file.
73982
73983 2005-10-19  Simon Josefsson  <jas@extundo.com>
73984
73985         * m4/gc-md4.m4: New file.
73986
73987 2005-10-19  Simon Josefsson  <jas@extundo.com>
73988
73989         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73990         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73991         <kasal@ucw.cz>.
73992
73993 2005-10-19  Simon Josefsson  <jas@extundo.com>
73994
73995         * m4/gc-arcfour.m4: New file.
73996
73997         * m4/gc-rijndael.m4: New file.
73998
73999 2005-10-19  Simon Josefsson  <jas@extundo.com>
74000
74001         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74002
74003 2005-10-19  Simon Josefsson  <jas@extundo.com>
74004
74005         * lib/gc-gnulib.c: Support ARCFOUR.
74006
74007 2005-10-19  Simon Josefsson  <jas@extundo.com>
74008
74009         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74010         support.
74011
74012         * lib/gc.h: Add ECB enum type.
74013
74014         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74015
74016 2005-10-18  Simon Josefsson  <jas@extundo.com>
74017
74018         * tests/test-md5.c: New file.
74019
74020         * modules/md5-tests: New file.
74021
74022 2005-10-18  Simon Josefsson  <jas@extundo.com>
74023
74024         * tests/test-md4.c: New file.
74025
74026         * modules/md4, modules/md4-tests: New files.
74027
74028 2005-10-18  Simon Josefsson  <jas@extundo.com>
74029
74030         * m4/md4.m4: New file.
74031
74032 2005-10-18  Simon Josefsson  <jas@extundo.com>
74033
74034         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74035
74036 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74037
74038         * gnulib-tool (func_create_testdir): Omit the second check whether
74039         BUILT_SOURCES in nonempty.
74040
74041 2005-10-17  Simon Josefsson  <jas@extundo.com>
74042
74043         * tests/test-rijndael.c: New file.
74044
74045 2005-10-17  Simon Josefsson  <jas@extundo.com>
74046
74047         * modules/sha1: Depend on stdint instead of md5.
74048
74049         * modules/md5: Depend on stdint, remove uint32_t.
74050
74051 2005-10-17  Simon Josefsson  <jas@extundo.com>
74052
74053         * modules/gc-sha1-tests: New file.
74054
74055         * tests/test-gc-sha1.c: New file.
74056
74057 2005-10-17  Simon Josefsson  <jas@extundo.com>
74058
74059         * m4/md5.m4: Remove call to uint32_t.m4.
74060
74061 2005-10-17  Simon Josefsson  <jas@extundo.com>
74062
74063         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74064
74065         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74066         md5.h.
74067
74068         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74069
74070         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74071
74072 2005-10-17  Simon Josefsson  <jas@extundo.com>
74073
74074         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74075
74076 2005-10-17  Simon Josefsson  <jas@extundo.com>
74077
74078         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74079
74080 2005-10-17  Simon Josefsson  <jas@extundo.com>
74081
74082         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74083
74084         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74085
74086 2005-10-17  Bruno Haible  <bruno@clisp.org>
74087
74088         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74089         that it can also be used in a test.
74090
74091 2005-10-16  Bruno Haible  <bruno@clisp.org>
74092
74093         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74094         TESTS_ENVIRONMENT, so that individual tests can augment it.
74095
74096         * gnulib-tool (func_create_testdir): Use an intermediate target for
74097         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74098         macros, like $(ALLOCA_H), which cannot be passed through the command
74099         line.
74100
74101 2005-10-15  Simon Josefsson  <jas@extundo.com>
74102
74103         * modules/rijndael-tests: New file.
74104
74105         * modules/rijndael: New file.
74106
74107 2005-10-15  Simon Josefsson  <jas@extundo.com>
74108
74109         * m4/rijndael.m4: New file.
74110
74111 2005-10-15  Simon Josefsson  <jas@extundo.com>
74112
74113         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74114
74115         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74116
74117 2005-10-14  Simon Josefsson  <jas@extundo.com>
74118
74119         * tests/test-arcfour.c: New file.
74120
74121         * modules/arcfour, modules/arcfour-tests: New files.
74122
74123 2005-10-14  Simon Josefsson  <jas@extundo.com>
74124
74125         * m4/arcfour.m4: New file.
74126
74127 2005-10-14  Simon Josefsson  <jas@extundo.com>
74128
74129         * lib/arcfour.h, lib/arcfour.c: New files.
74130
74131 2005-10-14  Roland McGrath  <roland@redhat.com>
74132
74133         Import from libc.  [BZ #1331]
74134         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74135         macro argument.
74136         Reported by Matej Vela <vela@debian.org>.
74137
74138 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74139
74140         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74141         include <wchar.h>; no longer needed.
74142
74143 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74144
74145         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74146
74147 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74148         and  Ulrich Drepper  <drepper@redhat.com>
74149
74150         Import from libc.
74151         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74152         instead of inline stream orientation test and two separate
74153         function calls.  Pay no attention to USE_IN_LIBIO.
74154
74155 2005-10-13  Simon Josefsson  <jas@extundo.com>
74156
74157         * modules/gc-hmac-md5-tests: New file.
74158
74159         * tests/test-gc-hmac-sha1.c: New file.
74160
74161         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74162
74163         * modules/gc-hmac-md5-tests: New file.
74164
74165         * tests/test-gc-md5.c: New file.
74166
74167         * modules/gc-md5-tests: New file.
74168
74169 2005-10-13  Simon Josefsson  <jas@extundo.com>
74170
74171         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74172         Move memory allocation outside of loop.
74173
74174 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74177         intermediate directory is in a read-only file system.  Problem
74178         reported by Eric Blake.
74179
74180 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74181
74182         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74183
74184 2005-10-12  Simon Josefsson  <jas@extundo.com>
74185
74186         * tests/test-hmac-sha1.c: New file.
74187
74188         * modules/hmac-sha1-tests: New file.
74189
74190         * modules/hmac-sha1: New file.
74191
74192 2005-10-12  Simon Josefsson  <jas@extundo.com>
74193
74194         * modules/gc-sha1: New file.
74195
74196 2005-10-12  Simon Josefsson  <jas@extundo.com>
74197
74198         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74199
74200         * tests/test-gc-pbkdf2-sha1.c: New file.
74201
74202 2005-10-12  Simon Josefsson  <jas@extundo.com>
74203
74204         * modules/gc-md5, modules/gc-hmac-md5: New files.
74205
74206         * modules/gc (Files): Remove md5, memxor and hmac files.
74207
74208 2005-10-12  Simon Josefsson  <jas@extundo.com>
74209
74210         * m4/gc-pbkdf2-sha1.m4: New file.
74211
74212         * m4/gc-hmac-sha1.m4: New file.
74213
74214         * m4/gc-sha1: New file.
74215
74216         * m4/hmac-sha1.m4: New file.
74217
74218 2005-10-12  Simon Josefsson  <jas@extundo.com>
74219
74220         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74221
74222         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74223
74224 2005-10-12  Simon Josefsson  <jas@extundo.com>
74225
74226         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74227         suggested by Bruno Haible <bruno@clisp.org>.
74228
74229 2005-10-12  Simon Josefsson  <jas@extundo.com>
74230
74231         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74232
74233 2005-10-12  Simon Josefsson  <jas@extundo.com>
74234
74235         * lib/gc-pbkdf2-sha1.c: New file.
74236
74237         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74238
74239 2005-10-12  Simon Josefsson  <jas@extundo.com>
74240
74241         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74242
74243         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74244
74245 2005-10-12  Simon Josefsson  <jas@extundo.com>
74246
74247         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74248         GC_USE_HMAC_MD5, respectively.
74249
74250         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74251         (gc_md5): Fix typo.
74252
74253         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74254
74255         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74256
74257         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74258
74259 2005-10-12  Bruno Haible  <bruno@clisp.org>
74260
74261         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74262         Reported by Stepan Kasal <kasal@ucw.cz>.
74263
74264 2005-10-11  Simon Josefsson  <jas@extundo.com>
74265
74266         * tests/test-crc.c: New file.
74267
74268         * modules/crc, modules/crc-tests: New files.
74269
74270 2005-10-11  Simon Josefsson  <jas@extundo.com>
74271
74272         * m4/crc.m4: New file.
74273
74274 2005-10-11  Simon Josefsson  <jas@extundo.com>
74275
74276         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74277
74278         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74279
74280         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74281
74282 2005-10-11  Simon Josefsson  <jas@extundo.com>
74283
74284         * lib/crc.h, lib/crc.c: New files.
74285
74286         * lib/gc.h (gc_hash_buffer): Add doc.
74287
74288 2005-10-11  Bruno Haible  <bruno@clisp.org>
74289
74290         * modules/c-strcasestr: New file.
74291         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74292
74293 2005-10-11  Bruno Haible  <bruno@clisp.org>
74294
74295         * modules/c-strcase: New file.
74296         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74297
74298 2005-10-11  Bruno Haible  <bruno@clisp.org>
74299
74300         * lib/strcasecmp.c: Include limits.h.
74301         (strcasecmp): Avoid integer overflow on exotic platforms.
74302         * lib/strncasecmp.c: Include limits.h.
74303         (strncasecmp): Avoid integer overflow on exotic platforms.
74304         Reported by Paul Eggert.
74305
74306 2005-10-11  Bruno Haible  <bruno@clisp.org>
74307
74308         * lib/c-strcasestr.h: New file, from GNU gettext.
74309         * lib/c-strcasestr.c: New file, from GNU gettext.
74310
74311 2005-10-11  Bruno Haible  <bruno@clisp.org>
74312
74313         * lib/c-strcase.h: New file, from GNU gettext.
74314         * lib/c-strcasecmp.c: New file, from GNU gettext.
74315         * lib/c-strncasecmp.c: New file, from GNU gettext.
74316
74317 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74318
74319         * modules/mempcpy (License): GPL -> LGPL.
74320         * modules/strchrnul (License): Likewise.
74321         * modules/sysexits (License): Likewise.
74322
74323 2005-10-08  Simon Josefsson  <jas@extundo.com>
74324
74325         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74326
74327 2005-10-07  Simon Josefsson  <jas@extundo.com>
74328
74329         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74330
74331 2005-10-06  Simon Josefsson  <jas@extundo.com>
74332
74333         * tests/test-hmac-md5.c: New file.
74334
74335         * modules/hmac-md5-tests: New file.
74336
74337         * modules/hmac-md5: New file.
74338
74339 2005-10-06  Simon Josefsson  <jas@extundo.com>
74340
74341         * m4/hmac-md5.m4: New file.
74342
74343         * m4/memxor.m4: Require gl_C_RESTRICT.
74344
74345 2005-10-06  Simon Josefsson  <jas@extundo.com>
74346
74347         * lib/memxor.c (memxor): Avoid casts and warnings.
74348
74349 2005-10-06  Simon Josefsson  <jas@extundo.com>
74350
74351         * lib/hmac-md5.c: New file.
74352
74353         * lib/hmac.h: New file.
74354
74355 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74356
74357         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74358         promotes to int, not unsigned int, to catch the AIX 5.3
74359         compiler bug.
74360
74361 2005-10-05  Simon Josefsson  <jas@extundo.com>
74362
74363         * modules/memxor: New file.
74364
74365         * modules/iconv (Files): Move config.rpath to havelib, it is used
74366         there.
74367
74368         * modules/havelib (Files): Add config.rpath.
74369
74370 2005-10-05  Simon Josefsson  <jas@extundo.com>
74371
74372         * m4/memxor.m4: New file.
74373
74374 2005-10-05  Simon Josefsson  <jas@extundo.com>
74375
74376         * lib/memxor.c (memxor): Fix compiler error.
74377
74378         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74379         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74380
74381         * lib/memxor.h, lib/memxor.c: New files.
74382
74383         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74384         we assume all systems have it, suggested by Jim Meyering
74385         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74386         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74387         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74388         same reasons.
74389
74390 2005-10-05  Simon Josefsson  <jas@extundo.com>
74391
74392         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74393
74394 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74395
74396         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74397         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74398         needed, since the source code now assumes these .h files.
74399
74400 2005-10-05  Derek Price  <derek@ximbiot.com>
74401
74402         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74403
74404 2005-10-05  Bruno Haible  <bruno@clisp.org>
74405
74406         * modules/stdint (License): Change to LGPL.
74407
74408 2005-10-04  Simon Josefsson  <jas@extundo.com>
74409
74410         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74411         D. Baushke" <mdb@gnu.org>.
74412
74413 2005-10-04  Bruno Haible  <bruno@clisp.org>
74414
74415         * lib/verify.h (verify_true): Provide alternative definition for C++.
74416
74417 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74418
74419         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74420         (SSIZE_MAX): New macro, if not already defined.
74421         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74422         than 2 GiB.
74423
74424 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74425
74426         Sync from coreutils.
74427         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74428         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74429         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74430         ULLONG_MAX doesn't work with 2.7.2.1.
74431
74432 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74433
74434         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74435         From Ben Pfaff.
74436
74437         * modules/exclude (Depends-on): Depend on verify.
74438         * modules/strtoimax (Depends-on): Likewise.
74439         * modules/utimecmp (Depends-on): Likewise.
74440
74441 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74442
74443         * lib/exclude.c: Include verify.h.
74444         (verify): Remove.  All callers changed to use verify.h's version.
74445         * lib/strtoimax.c: Likewise.
74446         * lib/utimecmp.c: Likewis.e
74447
74448         Sync from coreutils.
74449         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74450         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74451         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74452         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74453         bother returning ENOSYS if settimeofday or stime fails; just let
74454         them return whatever errno they want to return.
74455         * lib/utimens.c: Include unistd.h, for dup2.
74456         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74457         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74458
74459 2005-10-02  Jim Meyering  <jim@meyering.net>
74460
74461         Sync from coreutils.
74462         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74463         from glibc-2.2.5 that fails for read-only files.
74464
74465 2005-10-02  Jim Meyering  <jim@meyering.net>
74466
74467         Sync from coreutils.
74468         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74469         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74470         `#if HAVE_CONFIG_H'.
74471         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74472         Remove AT_FDCWD test.
74473         Do not consume the fd unless successful.
74474         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74475         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74476         block, so that we don't even try to compile it if settimeofday is
74477         available.  This works around a compilation failure on OSF1 V5.1,
74478         due to stime requiring a `long int*' while tv_sec is `int'.
74479
74480 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74481
74482         Sync from coreutils.
74483         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74484         against `yes', rather than just testing for nonempty.
74485
74486 2005-10-01  Simon Josefsson  <jas@extundo.com>
74487
74488         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74489         and Darwin.
74490
74491         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74492         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74493         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74494         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74495         Check if struct addrinfo is declared.
74496
74497 2005-10-01  Simon Josefsson  <jas@extundo.com>
74498
74499         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74500         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74501         AI_* and EAI_* definitions.  Protect function declarations.
74502
74503 2005-10-01  Jim Meyering  <jim@meyering.net>
74504
74505         Sync from coreutils.
74506
74507         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74508         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74509         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74510         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74511         in the inet and nsl libraries.  Required on Solaris 5.7.
74512
74513 2005-10-01  Jim Meyering  <jim@meyering.net>
74514
74515         Sync from coreutils.
74516         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74517         in the inet and nsl libraries.  Required on Solaris 5.7.
74518
74519 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74520
74521         * lib/getdelim.c (getdelim): Remove unused variables.
74522
74523 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74524
74525         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74526         so that the code works even with ancient cpp.  Portability problem
74527         with GCC 2.7.2.1 reported by Thomas M.Ott.
74528
74529 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74530
74531         * modules/regex (Depends-on): Add strcase.
74532
74533         * modules/gethostname (Licence): Change from GPL to LGPL, since
74534         gethostname.c is a trivial implementation of a standard library
74535         function.
74536         * modules/poll (License): Change from GPL to LGPL, since it's
74537         derived from LGPL code.
74538
74539 2005-09-27  Jim Meyering  <jim@meyering.net>
74540
74541         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74542         HAVE_CONFIG_H.
74543
74544         * lib/intprops.h (signed_type_or_expr__): Define.
74545         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74546         for unsigned types.
74547
74548 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74549
74550         * lib/verify.h (verify_expr): Remove, replacing with:
74551         (verify_true): New macro that returns true instead of void.
74552         (verify_type__): Remove.
74553         (verify): Use verify_true rather than verify_type__.
74554
74555 2005-09-26  Bruno Haible  <bruno@clisp.org>
74556
74557         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74558         is necessary.
74559         (lib_SOURCES): Remove mbchar.c.
74560         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74561         (Files): Add m4/mbrtowc.m4.
74562         * modules/mbiter: Likewise.
74563         * modules/mbuiter: Likewise.
74564
74565 2005-09-26  Bruno Haible  <bruno@clisp.org>
74566
74567         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74568         compile mbchar.c if they are not both present.
74569         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74570         * m4/mbiter.m4 (gl_MBITER): Likewise.
74571         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74572         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74573         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74574
74575 2005-09-25  Jim Meyering  <jim@meyering.net>
74576
74577         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74578         also uses socklen_t.
74579
74580 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74581
74582         * lib/utimens.c (ENOSYS): Define if not already defined.
74583         (futimens): Support having a null PATH if the file descriptor
74584         is nonnegative.
74585
74586         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74587         Remove.
74588         (__attribute): Define to empty unless GCC 3.1 or later.
74589         This works around a core dump on OpenBSD 3.4, which has GCC
74590         2.95.3, which dumps core when given __attribute__(()).  It also
74591         simplifies other tests, since we really don't want to bother with
74592         worrying about which ancient version of GCC supported what.
74593         Original problem reported by Yoann Vandoorselaere, with part of
74594         the fix suggested by Derek Price.
74595
74596 2005-09-24  Jim Meyering  <jim@meyering.net>
74597
74598         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74599         so we can once again use a positive bitfield width of 1 -- now we
74600         don't have to explain why we were using a bitfield width of 2.
74601
74602 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74603
74604         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74605         and similarly for the other external symbols.  Problem reported
74606         by James Gallager.
74607
74608         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74609         bug reported by Jim Meyering.
74610
74611         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74612         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74613         not needed, since socklen is a prerequisite module.
74614
74615 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74616
74617         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74618         Problem reported by Eric Blake.
74619         (getaddrinfo): Initialize se so that it's not garbage.
74620         Redo internal storage allocation so that it doesn't make unportable
74621         assumptions about alignment.
74622         Fix a memory leak.
74623
74624         * lib/utimens.c (futimens): Use futimesat if available.
74625         Prefer it to futimes since it doesn't have the futimes bug.
74626
74627         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74628         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74629         Instead, declare a function that returns a pointer to an array,
74630         and use verify_type__ to declare the size of the array.
74631         Problem and germ of a solution reported by Bruno Haible.
74632         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74633         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74634
74635 2005-09-23  Jim Meyering  <jim@meyering.net>
74636
74637         Sync from coreutils.
74638         Correct build failure (socklen_t not defined) on at least
74639         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74640         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74641
74642 2005-09-23  Jim Meyering  <jim@meyering.net>
74643
74644         * modules/getaddrinfo (Depends-on): Add socklen.
74645
74646 2005-09-23  Bruno Haible  <bruno@clisp.org>
74647
74648         * tests/test-verify.c: New file.
74649
74650 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74651
74652         Sync from coreutils.
74653
74654         * modules/argmatch (Depends-on): Add verify.
74655         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74656         unistd-safer.
74657         * modules/save-cwd (Depends-on): Likewise.
74658
74659         * modules/openat (Files): Add lib/openat-die.c.
74660         (Depends-on): Remove error, exitfail.
74661         Add dirname.
74662
74663         * modules/verify: New file.
74664         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74665         with "verify" module.
74666
74667 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74668
74669         Sync from coreutils.
74670
74671         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74672         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74673         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74674         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74675         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74676         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74677         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74678         Don't bother checking for string.h, stdlib.h, unistd.h.
74679         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74680         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74681         module's job.
74682         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74683         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74684
74685         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74686         (gl_GETDATE): Use it.
74687
74688         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74689
74690 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74691
74692         Sync from coreutils.
74693
74694         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74695         stat-time.h.
74696         * lib/argmatch.h: Include verify.h
74697         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74698         (ARGMATCH_ASSERT): Remove; unused.
74699         * lib/canonicalize.c: Assume STDC_HEADERS.
74700         * lib/exclude.c: Include "strcase.h".
74701         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74702         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74703         and stdio-safer.h.
74704         (getusershell): Call fopen, not fopen_safer.
74705         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74706         Do not include unistd-safer.h.
74707         (save_cwd): Don't call fd_safer; no longer needed
74708         now that we include fcntl--.h.
74709
74710         * lib/getdate.y (relative_time): New type.
74711         (RELATIVE_TIME_0): New constant.
74712         (parser_control): Use relative_time instead of doing it ourselves.
74713         (%union): Add new relative_time rel member.
74714         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74715         Now typeless.
74716         (relunit, relunit_snumber): Now of type rel.
74717         (zone, rel, relunit, get_date): Adjust to above changes.
74718
74719         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74720         Do not include unistd-safer.h.
74721         (getloadavg): Don't call fd_safer; no longer needed
74722         now that we include fcntl--.h.
74723
74724         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74725         (make_dir_parents): Treat ENOSYS like EEXIST.
74726
74727         Improve quality of diagnostics on restore_cwd failure.
74728         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74729         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74730         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74731         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74732         each time through the loop.  Do not diagnose restore_cwd failure;
74733         that is the caller's job (and perhaps the caller does not care).
74734
74735         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74736         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74737         If the file already exists but is not a directory, don't bother
74738         to try to make its parents.
74739         Close potential file descriptor leak if we can't chdir("/") (!).
74740         Don't always return true if chdir($PWD) fails; return true only
74741         if the requested action was done successfully (except for the
74742         chdir($PWD)).
74743         Don't log final directory unless we actually made it.
74744         Refactor to avoid duplicate code to fix up permissions.
74745         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74746
74747         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74748         to make it a bit faster and (I hope) clearer.
74749         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74750         Fix bug in formats like %2N.
74751
74752         * lib/verify.h: New file.
74753
74754 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74755
74756         Sync from coreutils.
74757         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74758
74759 2005-09-22  Jim Meyering  <jim@meyering.net>
74760
74761         Sync from coreutils.
74762
74763         * m4/lstat.m4 (gl_FUNC_LSTAT):
74764         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74765         Remove obsolete comment.
74766         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74767         * m4/xstrtod.m4: Likewise.
74768
74769         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74770
74771 2005-09-22  Jim Meyering  <jim@meyering.net>
74772
74773         Sync from coreutils.
74774
74775         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74776
74777         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74778         the .tm_year member, since otherwise gcc-4.0 would now warn about
74779         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74780
74781         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74782         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74783
74784         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74785         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74786         when run in a time zone for which daylight savings time is in effect
74787         for the starting date.
74788
74789         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74790         stop us from restricting permissions of just-created absolute-named
74791         directories.
74792         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74793         to restore initial working directory.
74794         * lib/mkdir-p.c (make_dir_parents): New parameter:
74795         different_working_dir, to tell caller if/when we change the working
74796         directory and are unable to return to the initial one.
74797         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74798         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74799         `return false'.  This fixes a bug introduced on 2004-07-30.
74800
74801         * lib/openat.c (fdopendir): Be sure to close the supplied
74802         file descriptor before returning.  This makes our replacement
74803         implementation a little closer to Solaris's, where fdopendir
74804         ties the file descriptor to the returned DIR* pointer.
74805         * lib/openat.c (unlinkat): New function.
74806         * lib/openat.h (unlinkat): Add prototype.
74807         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74808         (openat_restore_fail): Rename from openat_restore_die.
74809         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74810
74811         Provide an alternative to exiting immediately upon save_cwd or
74812         restore_cwd failure.  Now, an application can arrange e.g.,
74813         to perform a longjump in that case.
74814         * lib/openat.c: Include dirname.h.
74815         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74816         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74817         and openat_restore_die rather than calling error directly.
74818         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74819
74820         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74821         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74822         define.
74823
74824         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74825         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74826                             int utc, int nanoseconds);
74827         Background:
74828         date should not have to allocate a megabyte of virtual memory to
74829         handle a format argument like +%1048575T.  When implemented with
74830         strftime, it must allocate such a buffer, use strftime to fill it
74831         in, print it, then free it.
74832         With fprintftime, it simply prints everything and exits.
74833         With no need for memory allocation, that's one fewer way to fail.
74834         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74835         optional field width, not before, so we accept %9:z, not %:9z.
74836         (my_strftime): Be sure to use L_('x') for literals.
74837
74838         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74839         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74840         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74841         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74842         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74843         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74844         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74845         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74846         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74847         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74848         * lib/xgethostname.c, lib/xreadlink.c:
74849         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74850
74851         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74852         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74853         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74854         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74855         and don't include <sys/file.h>).
74856
74857 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74858
74859         Sync from coreutils.
74860
74861         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74862         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74863         [!LDAV_DONE]: Avoid unused variable warning.
74864
74865 2005-09-21  Bruno Haible  <bruno@clisp.org>
74866
74867         * lib/unicodeio.h (unicode_to_mb): New declaration.
74868
74869 2005-09-20  Derek Price  <derek@ximbiot.com>
74870
74871         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74872         getaddrinfo.h.
74873
74874 2005-09-20  Bruno Haible  <bruno@clisp.org>
74875
74876         * gnulib-tool: Remove trailing slashes from the values specified for
74877         --source-base, --m4-base, --tests-base, --aux-dir.
74878         Suggested by Simon Josefsson <jas@extundo.com>.
74879
74880 2005-09-20  Bruno Haible  <bruno@clisp.org>
74881
74882         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74883         func_modules_to_filelist, func_import, func_create_testdir): Make all
74884         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74885         change when gnulib-tool is invoked in a different locale.
74886
74887 2005-09-19  Simon Josefsson  <jas@extundo.com>
74888
74889         * m4/socklen.m4: Fix typo.
74890
74891 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74892
74893         Use a consistent style for including <config.h>.
74894         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74895         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74896         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74897         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74898         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74899         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74900         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74901         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74902         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74903         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74904         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74905         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74906         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74907         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74908         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74909         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74910         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74911         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74912         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74913         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74914         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74915         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74916         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74917         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74918         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74919         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74920         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74921         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74922         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74923         lib/xstrtoumax.c, lib/yesno.c:
74924         Standardize inclusion of config.h.
74925         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74926         lib/inttostr.h:  Removed inclusion of config.h from header files.
74927         * lib/inttostr.c:  Adjusted in-tree users.
74928         * lib/timespec.h: Remove superfluous warning to include config.h.
74929         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74930         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74931         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74932         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74933         config.h with HAVE_CONFIG_H.
74934
74935 2005-09-19  Jim Meyering  <jim@meyering.net>
74936
74937         * modules/pathmax (License): Change to LGPL.
74938
74939 2005-09-19  Derek Price  <derek@ximbiot.com>
74940
74941         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74942
74943 2005-09-19  Bruno Haible  <bruno@clisp.org>
74944
74945         * gnulib-tool (import): Provide default for --tests-base.
74946
74947 2005-09-19  Bruno Haible  <bruno@clisp.org>
74948
74949         * doc/quote.texi: New file, extracted from gnulib.texi.
74950         * doc/ctime.texi: New file, extracted from gnulib.texi.
74951         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74952         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74953         * doc/gnulib.texi: Include them.
74954
74955 2005-09-18  Bruno Haible  <bruno@clisp.org>
74956
74957         Portability fix.
74958         * gnulib-tool (func_readlink): New function.
74959         (func_ln_if_changed): Use it.
74960
74961 2005-09-18  Bruno Haible  <bruno@clisp.org>
74962
74963         * gnulib-tool: Support --with-tests also with --import.
74964         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74965         (func_import): Use variables $testsbase and $inctests. Emit a
74966         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74967         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74968         SUBDIRS += $testsdir.
74969         (func_create_testdir): Update.
74970
74971 2005-09-18  Bruno Haible  <bruno@clisp.org>
74972
74973         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74974         instead of $dry_run.
74975         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74976         (func_ln_if_changed): Don't handle dry-run here.
74977         (func_import): In dry-run mode, detect more precisely which actions
74978         would be performed, and don't use "...ing" verbs.
74979
74980 2005-09-18  Bruno Haible  <bruno@clisp.org>
74981
74982         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74983         (func_import): Use join on two temporary files instead of three nested
74984         loops, in order to determine which files are new or old.
74985
74986 2005-09-18  Bruno Haible  <bruno@clisp.org>
74987
74988         * gnulib-tool (func_import): Comment out code that spits out the
74989         new files with --dry-run.
74990
74991 2005-09-18  Bruno Haible  <bruno@clisp.org>
74992
74993         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74994
74995 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74996
74997         * lib/stat-time.h: New file.
74998         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74999         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75000         in a different way.
75001         (timespec_cmp): New function.
75002         * lib/utimecmp.c: Include stat-time.h.
75003         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75004         members exist, not on the obsolescent ST_MTIM_NSEC.
75005         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75006
75007 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75010
75011 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75012
75013         * MODULES.html.sh (File system functions): Add stat-time.
75014         * modules/stat-time: New file.
75015         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75016         is now done in a different way, by the stat-time module.
75017         * modules/utimecmp (Depends-on): Add stat-time.
75018
75019 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75020
75021         * m4/st_mtim.m4: Remove.  Superseded by...
75022         * m4/stat-time.m4: New file.
75023         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75024         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75025
75026 2005-09-15  Derek Price  <derek@ximbiot.com>
75027
75028         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75029
75030 2005-09-15  Derek Price  <derek@ximbiot.com>
75031
75032         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75033         * lib/regex_internal.c: Ditto, using this...
75034         (__GNUC_PREREQ): ...new macro.
75035         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75036         using...
75037         (__GNUC_PREREQ): ...this new macro.
75038
75039         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75040
75041 2005-09-15  Derek Price  <derek@ximbiot.com>
75042             Paul Eggert  <eggert@cs.ucla.edu>
75043
75044         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75045         changes, consolidating in...
75046         * lib/regex_internal.h: ...this file.
75047
75048 2005-09-13  Jim Meyering  <jim@meyering.net>
75049
75050         * lib/canon-host.c: Filter through gnu indent and reword comments
75051         slightly.
75052         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75053
75054 2005-09-13  Derek Price  <derek@ximbiot.com>
75055
75056         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75057         failure.
75058         Reported by Jim Meyering  <jim@meyering.net>.
75059
75060 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75061
75062         * lib/base64.c: Typo.
75063         (base64_encode): Put b64str in initialized data section.
75064
75065 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75066
75067         Merge glibc and coreutils changes into gnulib, plus a few
75068         extra fixes.
75069         * lib/md5.c: Use #error rather than a string.
75070         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75071         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75072         (__attribute__): Define to empty for non recent-GCC.
75073         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75074         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75075         Renamed from their non-__ counterparts, with new macros replacing
75076         them if not _LIBC.  Add __THROW attribute.
75077         (rol): Remove.
75078         (struct md5_ctx): Align buffer if using GCC.
75079         * lib/sha1.h (struct sha1_ctx): Likewise.
75080         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75081         The old name was backwards.
75082         (NOTSWAP): Remove; not used.
75083         (rol): New macro, moved here from md5.h.
75084         (sha1_process_block): Remove a FIXME that doesn't make sense.
75085
75086 2005-09-12  Derek Price  <derek@ximbiot.com>
75087
75088         Return usable errors from canon-host.
75089         * lib/canon-host.h: New file.
75090         * lib/canon-host.c (canon_host): Wrap...
75091         (canon_host_r): ...this new function, which now relies exclusively on
75092         getaddrinfo.
75093         (ch_strerror): New function.
75094         (last_cherror): New global.
75095         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75096         interface.
75097         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75098         void *.
75099         (freeaddrinfo): Free ai->ai_canonname when set.
75100
75101 2005-09-12  Derek Price  <derek@ximbiot.com>
75102
75103         Make canon-host require getaddrinfo.
75104         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75105         AC_LIBSOURCE canon-host.h.  Call...
75106         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75107         gl_GETADDRINFO.
75108         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75109
75110 2005-09-12  Derek Price  <derek@ximbiot.com>
75111
75112         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75113         LGPL.
75114         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75115
75116 2005-09-12  Derek Price  <derek@ximbiot.com>
75117
75118         * lib/gai_strerror.c: Include config.h when available.  Include
75119         getaddrinfo.h before other headers to test interface.
75120         Reported by Larry Jones <lawrence.jones@ugs.com>.
75121
75122 2005-09-12  Derek Price  <derek@ximbiot.com>
75123             Paul Eggert  <eggert@cs.ucla.edu>
75124
75125         * modules/glob (Files): Add glob-libc.h.
75126
75127 2005-09-12  Derek Price  <derek@ximbiot.com>
75128             Paul Eggert  <eggert@cs.ucla.edu>
75129
75130         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75131         glob_.h, glob-libc.h.
75132         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75133
75134 2005-09-12  Derek Price  <derek@ximbiot.com>
75135             Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75138         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75139         protecting things that should be done only in gnulib contexts.
75140         * lib/glob_.h: New file, containing only the glob things needed for
75141         gnulib.
75142         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75143         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75144         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75145         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75146         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75147         and to respect the namespace rules better.
75148
75149 2005-09-08  Simon Josefsson  <jas@extundo.com>
75150
75151         * modules/socklen: New file.
75152
75153 2005-09-08  Simon Josefsson  <jas@extundo.com>
75154
75155         * m4/socklen.m4: New file.
75156
75157 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75158
75159         * modules/utimens (Files): Add m4/utimbuf.m4, since
75160         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75161         Reported by Sergey Poznyakoff.
75162
75163 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75164
75165         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75166         definitions, since that's the preferred style in glibc.
75167         Fix a minor spacing issue, and update copyright notice to match
75168         glibc's.
75169
75170 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75171
75172         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75173
75174 2005-09-06  Simon Josefsson  <jas@extundo.com>
75175
75176         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75177         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75178
75179 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75180
75181         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75182         warning.
75183
75184 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75185
75186         * config/srclist.txt: Add glibc bug 1302.
75187
75188 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75189
75190         Change bitset word type from unsigned int to unsigned long int,
75191         as this has better performance on typical 64-bit hosts.
75192         Port bitset code to hosts with unusual word sizes.
75193         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75194         (build_collating_symbol):
75195         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75196         argument is a bitset.  This is merely a style issue, but it makes
75197         it clearer that an entire array is expected.
75198         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75199         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75200         Port to the case where bitset_word is not the same as unsigned int.
75201         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75202         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75203         Likewise.
75204         * lib/regexec.c (check_dst_limits_calc_pos_1,
75205         check_subexp_matching_top):
75206         (build_trtable, group_nodes_into_DFAstates):
75207         Likewise.
75208         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75209         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75210         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75211         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75212         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75213         * lib/regcomp.c (optimize_subexps, lower_subexp):
75214         Work even if bitset_word has holes in its bitwise representation.
75215         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75216         * lib/regexec.c (check_dst_limits_calc_pos_1,
75217         check_subexp_matching_top):
75218         Likewise.
75219         * lib/regex_internal.c (re_string_reconstruct):
75220         Don't assume UCHAR_MAX == 255.
75221         * lib/regex_internal.h (bitset_set_all): Likewise.
75222         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75223         All uses changed.
75224         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75225         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75226         All uses changed.
75227         (BITSET_WORD_MAX): New macro.
75228         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75229         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75230         (bitset_empty, bitset_copy):
75231         Prefer sizeof (bitset) to multiplying it out ourselves.
75232         (bitset_not_merge): Remove; unused.
75233         (bitset_contain): Return bool, not unsigned int with one bit on.
75234         All callers changed.
75235         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75236         alignment than re_node_set; do this by defining a new internal
75237         type struct dests_alloc and using it to allocate memory.
75238
75239 2005-09-05  Bruno Haible  <bruno@clisp.org>
75240
75241         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75242         links.
75243
75244 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75245
75246         * modules/size_max (Makefile.am): Add size_max.h
75247
75248 2005-09-04  Derek Price  <derek@ximbiot.com>
75249
75250         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75251
75252 2005-09-03  Simon Josefsson  <jas@extundo.com>
75253
75254         * gnulib-tool: Fix typo.
75255
75256 2005-09-03  Simon Josefsson  <jas@extundo.com>
75257
75258         * config/srclist.txt: Add glibc bug 1293.
75259
75260 2005-09-03  Derek Price  <derek@ximbiot.com>
75261
75262         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75263         From Larry Jones <lawrence.jones@ugs.com>.
75264
75265 2005-09-02  Simon Josefsson  <jas@extundo.com>
75266
75267         * modules/socklen: New file.
75268
75269 2005-09-02  Simon Josefsson  <jas@extundo.com>
75270
75271         * modules/havelib: New module.
75272
75273         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75274         Use havelib.
75275
75276 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75277
75278         Check for arithmetic overflow when calculating sizes, to prevent
75279         some buffer-overflow issues.  These patches are conservative, in the
75280         sense that when I couldn't determine whether an overflow was possible,
75281         I inserted a run-time check.
75282         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75283         macros.
75284         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75285         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75286         (re_xnrealloc, re_x2nrealloc): New inline functions.
75287         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75288         parse_bracket_exp):
75289         (build_equiv_class, build_charclass): Check for arithmetic overflow
75290         in size expression calculations.
75291         * lib/regex_internal.c (re_string_realloc_buffers):
75292         (build_wcs_upper_buffer, re_node_set_add_intersect):
75293         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75294         (re_dfa_add_node, register_state): Likewise.
75295         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75296         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75297         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75298         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75299
75300 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75301
75302         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75303         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75304
75305 2005-09-02  Bruno Haible  <bruno@clisp.org>
75306
75307         Support for lib vs. lib64 distinction on biarch platforms.
75308         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75309         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75310         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75311
75312 2005-09-02  Bruno Haible  <bruno@clisp.org>
75313
75314         * gnulib-tool (import): In the other first-use case, provide defaults
75315         as well.
75316
75317 2005-09-02  Bruno Haible  <bruno@clisp.org>
75318
75319         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75320         patches not yet found in the latest gettext release.
75321
75322 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75323
75324         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75325         to avoid a collision with bits/local_lim.h in glibc.
75326         All uses changed.  Problem reported by Dmitry V. Levin in
75327         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75328
75329         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75330         bugs in int versus size_t comparisons.
75331         (re_string_context_at): Fix bug where the code assumed that
75332         Idx is signed.
75333
75334         Use bool where appropriate.
75335         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75336         All callers changed.
75337         (calc_eclosure_iter): Likewise, for ROOT arg.
75338         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75339         (build_charclass_op): Likewise, for NON_MATCH arg.
75340         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75341         (re_string_construct_common): Likewise, for ICASE arg.
75342         * lib/regexec.c (re_search_2_stub, re_search_stub):
75343         Likewise, for RET_LEN arg.
75344         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75345         (set_regs): Likewise, for FL_BACKTRACK arg.
75346         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75347         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75348         (calc_eclosure_iter, parse_bracket_exp):
75349         Use bool for internal variables that are booleans.
75350         * lib/regexec.c (re_search_internal, check_matching,
75351         proceed_next_node):
75352         (set_regs, build_sifted_states, sift_states_bkref):
75353         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75354         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75355         (find_collation_sequence_value):
75356         Likewise.
75357         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75358         (re_node_set_compare):
75359         Return bool, not int. All callers changed.
75360         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75361         (build_trtable, check_node_accept): Likewise.
75362         * lib/regex_internal.h: Include stdbool.h.
75363
75364         Fix bugs uncovered when converting to bool.
75365         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75366         failure instead of charging ahead blindly.
75367         * lib/regex_internal.c (register_state): Likewise.
75368         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75369         for freeing internal storage.
75370         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75371         bitset pieces used as boolean, to avoid undefined behavior
75372         on hosts that do int overflow checking.
75373
75374 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75375
75376         * config/srclist.txt: Add glibc bugs 1285-1287.
75377
75378 2005-09-01  Jim Meyering  <jim@meyering.net>
75379
75380         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75381         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75382         Require gl_STAT_MACROS, too.
75383
75384 2005-09-01  Bruno Haible  <bruno@clisp.org>
75385
75386         * gnulib-tool (import): In the first-use case, provide defaults.
75387
75388 2005-09-01  Bruno Haible  <bruno@clisp.org>
75389
75390         * gnulib-tool (func_import): Remove the .tmp files.
75391
75392 2005-09-01  Bruno Haible  <bruno@clisp.org>
75393
75394         * gnulib-tool (func_import): Fix handling of symbolic links.
75395
75396 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75397
75398         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75399         old glibc regex code mishandles strings longer than 2**31 bytes.
75400         This patch fixes this when the regex code is used in gnulib
75401         (i.e., outside glibc).
75402
75403         This patch should not affect the use of the regex code inside
75404         glibc.  No doubt this problem also needs to be handled for glibc
75405         as well, but the result will be an incompatible change to the
75406         glibc ABI, and the old ABI will have to be supported too.  That
75407         can be the the subject for another patch.
75408
75409         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75410         governing whether the rest of this patch is active.  By default,
75411         the macro is disabled and the patch has no effect.
75412         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75413         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75414         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75415         (re_match_2, re_set_registers): Use the new types.
75416         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75417         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75418         New macros.
75419         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75420         (re_string_context_at, bin_tree_t, re_dfastate_t):
75421         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75422         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75423         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75424         (re_string_char_size_at, re_string_wchar_at):
75425         (re_string_elem_size_at):
75426         Use the new types and macros to port to 64-bit hosts.
75427         Use unsigned types for internal values, so that the code
75428         mostly works even for arrays larger than SSIZE_MAX.
75429         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75430         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75431         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75432         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75433         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75434         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75435         (calc_inveclosure, parse_dup_op, build_range_exp):
75436         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75437         (fetch_number, create_token_tree, mark_opt_subexp):
75438         Likewise.
75439         * lib/regex_internal.c (re_string_construct_common,
75440         create_ci_newstate):
75441         (create_cd_newstate, re_string_allocate, re_string_construct):
75442         (re_string_realloc_buffers, build_wcs_upper_buffer):
75443         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75444         (re_string_reconstruct, re_string_peek_byte_case):
75445         (re_string_fetch_byte_case, re_string_context_at):
75446         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75447         (re_node_set_init_copy, re_node_set_add_intersect):
75448         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75449         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75450         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75451         (re_acquire_state, re_acquire_state_context, register_state):
75452         Likewise.
75453         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75454         search_cur_bkref_entry):
75455         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75456         (re_search_internal, re_search_2_stub, re_search_stub)
75457         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75458         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75459         (update_cur_sifted_state, check_dst_limits):
75460         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75461         (check_subexp_limits, sift_states_bkref, merge_state_array):
75462         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75463         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75464         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75465         (expand_bkref_cache, check_node_accept_bytes):
75466         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75467         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75468         (acquire_init_state_context, check_halt_node_context):
75469         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75470         (sift_states_backward, clean_state_log_if_needed):
75471         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75472         (find_recover_state, transit_state_sb, transit_state_mb):
75473         (transit_state_bkref, build_trtable, match_ctx_clean):
75474         Likewise.
75475         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75476         to work around an assumption that REG_MISSING is negative.
75477
75478         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75479         (seek_collating_symbol_entry) [defined _LIBC]:
75480         (lookup_collation_sequence_value) [defined _LIBC]:
75481         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75482         Use prototypes rather than old-style function definitions.
75483         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75484         (transit_state_sb) [0]:
75485         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75486
75487         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75488         rm_eo.
75489
75490         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75491         (optimize_subexps, lower_subexp):
75492         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75493         since the signed shift might overflow.  Use 1u<<31 instead.
75494         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75495         Likewise.
75496         * lib/regexec.c (check_dst_limits_calc_pos_1,
75497         check_subexp_matching_top): Likewise.
75498
75499         * lib/regcomp.c (optimize_subexps, lower_subexp):
75500         Use CHAR_BIT rather than 8, for clarity.
75501         * lib/regexec.c (check_dst_limits_calc_pos_1):
75502         (check_subexp_matching_top): Likewise.
75503         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75504         have to worry about portability issues when shifting it left.
75505         Remove no-longer-needed test for table_size > 0.
75506         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75507         in a word, as the resulting behavior is undefined.
75508         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75509         in one case, a <= should have been an <, and in another case the
75510         whole test was missing.
75511         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75512         the standard name CHAR_BIT.
75513         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75514         this is not true on one's complement and signed-magnitude hosts.
75515
75516         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75517         next_last_offset.
75518         (struct re_dfa_t): Remove unused member states_alloc.
75519         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75520
75521 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75522
75523         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75524         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75525         and large-file glibc and in 32-bit large-file Solaris.
75526
75527 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75528
75529         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75530         lengths fit in regoff_t; this isn't true if regoff_t is the same
75531         width as size_t.
75532         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75533         (= START + RANGE) instead of RANGE.  This avoids overflow
75534         problems when regoff_t is the same width as size_t.
75535         All callers changed.
75536         (re_search_2_stub): Check for overflow when adding the
75537         sizes of the two strings.
75538         (re_search_stub): Check for overflow when adding START
75539         to RANGE; if it occurs, substitute the extreme value.
75540
75541 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75544
75545 2005-08-31  Jim Meyering  <jim@meyering.net>
75546
75547         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75548         a pointer-to-const.
75549         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75550         (register_state): Likewise.
75551         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75552         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75553         (group_nodes_into_DFAstates): Likewise.
75554
75555 2005-08-31  Jim Meyering  <jim@meyering.net>
75556
75557         * check-module: Add a FIXME comment.
75558
75559 2005-08-31  Eric Blake  <ebb9@byu.net>
75560
75561         * modules/unistd-safer (Files): Add unistd--.h.
75562         * modules/stdio-safer (Files): Add stdio--.h.
75563
75564 2005-08-31  Derek Price  <derek@ximbiot.com>
75565
75566         * lib/getdelim.c (getdelim): Return EOF on EOF.
75567         Reported by Larry Jones <lawrence.jones@ugs.com>.
75568
75569 2005-08-31  Bruno Haible  <bruno@clisp.org>
75570
75571         Avoid unnecessary diffs in the generated lib/Makefile.am.
75572         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75573         the generated files.
75574         (func_import): Don't set cmd.
75575
75576 2005-08-31  Bruno Haible  <bruno@clisp.org>
75577
75578         * lib/strstr.c: Include <stddef.h>, for NULL.
75579         * lib/strcasestr.c: Likewise.
75580         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75581
75582 2005-08-31  Bruno Haible  <bruno@clisp.org>
75583
75584         * gnulib-tool: New option --macro-prefix.
75585         (func_import): Use macro_prefix.
75586         (import): Handle option --macro-prefix.
75587
75588 2005-08-31  Bruno Haible  <bruno@clisp.org>
75589
75590         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75591         Also use new variables cached_lgpl, cached_libtool.
75592
75593 2005-08-31  Bruno Haible  <bruno@clisp.org>
75594
75595         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75596         always instantiating them.
75597
75598 2005-08-31  Bruno Haible  <bruno@clisp.org>
75599
75600         * gnulib-tool (func_import): Read the previous cached settings
75601         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75602         earlier added by gnulib but are now dropped. Warn when a gnulib file
75603         overwrites a non-gnulib file.
75604
75605 2005-08-31  Bruno Haible  <bruno@clisp.org>
75606
75607         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75608         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75609         projects that don't keep autogenerated files in CVS. Put into
75610         actioncmd only the specified modules, not the transitive closure.
75611
75612 2005-08-31  Bruno Haible  <bruno@clisp.org>
75613
75614         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75615         Create directories that shall be filled.
75616         (import): Don't look for gl_* macros in configure.ac. Recurse across
75617         all directories containing a gnulib-cache.m4 files, if meaningful.
75618
75619 2005-08-31  Bruno Haible  <bruno@clisp.org>
75620
75621         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75622         (import): Set seen_libtool when we see gl_LIBTOOL.
75623
75624 2005-08-31  Bruno Haible  <bruno@clisp.org>
75625
75626         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75627         declaration macro definitions from generated gnulib.m4.
75628
75629 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75630
75631         * lib/iconvme.h: Add prototype for iconv_alloc.
75632
75633 2005-08-29  Simon Josefsson  <jas@extundo.com>
75634
75635         * lib/iconvme.c: Fix errno.
75636
75637 2005-08-29  Bruno Haible  <bruno@clisp.org>
75638
75639         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75640         that it works when the directory contains spaces.
75641
75642 2005-08-29  Bruno Haible  <bruno@clisp.org>
75643
75644         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75645
75646 2005-08-29  Bruno Haible  <bruno@clisp.org>
75647
75648         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75649         Emit more advice.
75650
75651 2005-08-29  Bruno Haible  <bruno@clisp.org>
75652         and Stepan Kasal  <kasal@ucw.cz>
75653
75654         * check-module: If more parameters are given, check each of them
75655         separately; add more exceptions, as noted by Jim Meyering.
75656         (check_module): New procedure.
75657         (%exempt_header): Now contains all exceptions.
75658
75659 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75660
75661         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75662
75663 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75664
75665         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75666
75667 2005-08-28  Bruno Haible  <bruno@clisp.org>
75668
75669         * m4/gnulib-tool.m4: New file.
75670
75671 2005-08-27  Jim Meyering  <jim@meyering.net>
75672
75673         * modules/unistd-safer (Files): Add pipe-safer.c.
75674         * modules/fcntl-safer (Files): Add creat-safer.c.
75675
75676 2005-08-27  Jim Meyering  <jim@meyering.net>
75677
75678         * m4/stdlib-safer.m4: New file.  From coreutils.
75679         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75680         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75681         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75682         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75683         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75684
75685 2005-08-27  Jim Meyering  <jim@meyering.net>
75686
75687         * lib/fopen-safer.c: Merge minor changes from coreutils.
75688         * lib/dup-safer.c: Likewise.
75689         * lib/fd-safer.c: Likewise.
75690
75691         Merge from coreutils.
75692         * lib/stdio--.h: New file.
75693         * lib/stdlib--.h: New file.
75694         * lib/mkstemp-safer.c: New file.
75695
75696         GNU tar needs these.
75697         * lib/pipe-safer.c: New file.
75698         * lib/creat-safer.c: New file.
75699         * lib/fcntl--.h (creat): Define to creat_safer.
75700         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75701         * lib/unistd--.h (pipe): Define to pipe_safer.
75702         * lib/unistd-safer.h: Declare pipe_safer.
75703
75704 2005-08-26  Simon Josefsson  <jas@extundo.com>
75705
75706         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75707         Haible <bruno@clisp.org>.
75708
75709 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75710
75711         * lib/regex_internal.h: Remove all references to
75712         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75713         or better.
75714         (bitset_not, bitset_merge, bitset_not_merge):
75715         (bitset_mask, re_string_allocate, re_string_construct):
75716         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75717         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75718         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75719         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75720         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75721         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75722         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75723         (re_acquire_state_context):
75724         Remove unnecessary forward decls.
75725         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75726         Put __attribute at function definition,
75727         now that the function decl has been removed.
75728         * lib/regex_internal.c (re_string_peek_byte_case):
75729         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75730         Likewise.
75731
75732 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75733
75734         * m4/regex.m4: Add AC_PREREQ(2.50).
75735         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75736
75737 2005-08-25  Simon Josefsson  <jas@extundo.com>
75738
75739         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75740         __fsetlocking.
75741
75742 2005-08-25  Simon Josefsson  <jas@extundo.com>
75743
75744         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75745         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75746         GLIBC specific code.
75747
75748 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75749
75750         Make regex safe for g++.  This fixes one real bug (an "err"
75751         that should have been "*err").  g++ problem reported by
75752         Sam Steingold.
75753         * lib/regex_internal.h (re_calloc): New macro, consistent with
75754         re_malloc etc.  All callers of calloc changed to use re_calloc.
75755         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75756         not int.  All callers changed.
75757         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75758         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75759         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75760         (find_recover_state): Change "err" to "*err"; this fixes what
75761         appears to be a real bug.
75762         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75763         versus int.
75764
75765 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75766
75767         * modules/regex (Depends-on): Add malloc, since the code
75768         assumes that !malloc(0) means failure.
75769
75770 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75771
75772         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75773
75774         alloca modernization/simplification for regex.
75775         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75776         needs to be at the start of the file, and can be moved into
75777         regex_internal.h and simplified.
75778         * lib/regex_internal.h: Include <alloca.h>.
75779         (__libc_use_alloca) [!defined _LIBC]: New macro.
75780         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75781         now works outside glibc.
75782
75783 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75784
75785         * config/srclist.txt: Add glibc bugs 1241, 1245.
75786
75787 2005-08-25  Jim Meyering  <jim@meyering.net>
75788
75789         * lib/open-safer.c: Include <config.h>.
75790         Otherwise, we'd lose LARGEFILE support in any file using
75791         e.g. "fcntl--.h"
75792
75793 2005-08-25  Bruno Haible  <bruno@clisp.org>
75794
75795         * m4/minmax.m4: Require autoconf 2.52.
75796         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75797         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75798         alternatives of translit over the alphabet.
75799         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75800
75801 2005-08-24  Simon Josefsson  <jas@extundo.com>
75802
75803         * tests/test-getpass.c: New file.
75804
75805 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75806
75807         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75808         for GNU regex features.
75809
75810 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75811
75812         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75813         * lib/regex.h (regerror): Likewise.
75814
75815         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75816         requires this.  (The code never needed it.)
75817
75818         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75819         All uses of recently-renamed identifiers changed to use the new,
75820         POSIX-compliant names.  The code will build and run just fine
75821         without these changes, but it's better to eat our own dog food
75822         and use the standard-conforming names.
75823
75824         * lib/regex.h: Fix a multitude of POSIX name space violations.
75825         These changes have an effect only for programs that define
75826         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75827         do not change anything for programs compiled in the normal way.
75828         Also, there is no effect on the ABI.
75829
75830         (_REGEX_SOURCE): New macro.
75831         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75832         defined and _GNU_SOURCE is not; this fixes a name space violation.
75833
75834         Rename the following macros to obey POSIX requirements.
75835         The old names are still visible as macros if _REGEX_SOURCE is defined.
75836         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75837         RE_BACKSLASH_ESCAPE_IN_LISTS.
75838         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75839         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75840         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75841         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75842         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75843         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75844         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75845         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75846         (REG_INTERVALS): renamed from RE_INTERVALS.
75847         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75848         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75849         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75850         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75851         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75852         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75853         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75854         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75855         RE_UNMATCHED_RIGHT_PAREN_ORD.
75856         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75857         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75858         (REG_DEBUG): renamed from RE_DEBUG.
75859         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75860         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75861         unusual, since we can't clash with the POSIX REG_ICASE.
75862         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75863         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75864         (REG_NO_SUB): renamed from RE_NO_SUB.
75865         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75866         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75867         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75868         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75869         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75870         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75871         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75872         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75873         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75874         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75875         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75876         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75877         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75878         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75879         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75880         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75881         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75882         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75883         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75884         (REG_FIXED): Renamed from REGS_FIXED.
75885         (REG_NREGS): Renamed from RE_NREGS.
75886
75887         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75888         of other REG_* macros, since POSIX says the user is allowed to
75889         #undef these macros selectively.
75890
75891         (reg_errcode_t): Update comment stating what other tables need
75892         to be consistent.
75893
75894         Rename the following enum values to obey POSIX requirements.
75895         The old names are still visible as macros.
75896         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75897         is not defined, since GNU is supposed to be a superset of POSIX as
75898         much as possible, and since we want reg_errcode_t to be a signed
75899         type for implementation consistency.
75900         (_REG_NOERROR): Renamed from REG_NOERROR.
75901         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75902         (_REG_BADPAT): Renamed from REG_BADPAT.
75903         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75904         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75905         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75906         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75907         (_REG_EBRACK): Renamed from REG_EBRACK.
75908         (_REG_EPAREN): Renamed from REG_EPAREN.
75909         (_REG_EBRACE): Renamed from REG_EBRACE.
75910         (_REG_BADBR): Renamed from REG_BADBR.
75911         (_REG_ERANGE): Renamed from REG_ERANGE.
75912         (_REG_ESPACE): Renamed from REG_ESPACE.
75913         (_REG_BADRPT): Renamed from REG_BADRPT.
75914         (_REG_EEND): Renamed from REG_EEND.
75915         (_REG_ESIZE): Renamed from REG_ESIZE.
75916         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75917         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75918         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75919         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75920         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75921
75922         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75923         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75924         changed.  But support the old name if the new one is not defined
75925         and if _REGEX_SOURCE.
75926
75927         Change the following member names in struct re_pattern_buffer.
75928         The old names are still supported if !_REGEX_SOURCE.
75929         The new names are always supported, regardless of _REGEX_SOURCE.
75930         (re_buffer): Renamed from buffer.
75931         (re_allocated): Renamed from allocated.
75932         (re_used): Renamed from used.
75933         (re_syntax): Renamed from syntax.
75934         (re_fastmap): Renamed from fastmap.
75935         (re_translate): Renamed from translate.
75936         (re_can_be_null): Renamed from can_be_null.
75937         (re_regs_allocated): Renamed from regs_allocated.
75938         (re_fastmap_accurate): Renamed from fastmap_accurate.
75939         (re_no_sub): Renamed from no_sub.
75940         (re_not_bol): Renamed from not_bol.
75941         (re_not_eol): Renamed from not_eol.
75942         (re_newline_anchor): Renamed from newline_anchor.
75943
75944         Change the following member names in struct re_registers.
75945         The old names are still supported if !_REGEX_SOURCE.
75946         The new names are always supported, regardless of _REGEX_SOURCE.
75947         (rm_num_regs): Renamed from num_regs.
75948         (rm_start): Renamed from start.
75949         (rm_end): Renamed from end.
75950
75951         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75952         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75953         Prepend __ to parameter names.
75954
75955         Undo yesterday's changes.
75956
75957 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75958
75959         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75960         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75961         lib/regex.c.
75962
75963 2005-08-24  Jim Meyering  <jim@meyering.net>
75964
75965         Sync from coreutils.
75966         * m4/fcntl-safer.m4: New file.
75967
75968         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75969         and object files for this module.
75970
75971 2005-08-24  Jim Meyering  <jim@meyering.net>
75972
75973         Sync from coreutils.
75974         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75975
75976 2005-08-24  Jim Meyering  <jim@meyering.net>
75977
75978         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75979         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75980
75981 2005-08-24  Jim Meyering  <jim@meyering.net>
75982
75983         * modules/fcntl-safer: New module.
75984         * modules/fts (Depends-on): Add fcntl-safer.
75985         * MODULES.html.sh (File descriptor based Input/Output):
75986         Add fcntl-safer.
75987
75988 2005-08-24  Bruno Haible  <bruno@clisp.org>
75989
75990         Support for unit test modules.
75991         * modules/README: Mention tests modules.
75992         * modules/TEMPLATE-TESTS: New file.
75993         * gnulib-tool: New options --extract-tests-module, --with-tests and
75994         --tests-base (unused for the moment).
75995         (testsbase, inctests): New variables.
75996         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75997         (func_verify_module): Exclude TEMPLATE-TESTS.
75998         (func_verify_nontests_module, func_verify_tests_module): New functions.
75999         (func_get_dependencies): Add implicit dependency for tests modules.
76000         (func_get_tests_module): New function.
76001         (func_modules_transitive_closure): When --with-tests was specified,
76002         include the unit tests as well, unless explicitly avoided.
76003         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76004         (func_emit_tests_Makefile_am): New function.
76005         (func_create_testdir): When --with-tests was specified, emit a
76006         tests/ directory.
76007         * MODULES.html.sh (Future developments): Update.
76008
76009 2005-08-24  Bruno Haible  <bruno@clisp.org>
76010
76011         * modules/tls-tests: New file.
76012         * tests/test-tls.c: New file, from GNU gettext.
76013
76014 2005-08-24  Bruno Haible  <bruno@clisp.org>
76015
76016         * modules/lock-tests: New file.
76017         * tests/test-lock.c: New file, from GNU gettext.
76018
76019 2005-08-24  Bruno Haible  <bruno@clisp.org>
76020
76021         * lib/lock.h: Add multiple inclusion guard.
76022         * lib/tls.h: Add multiple inclusion guard.
76023
76024 2005-08-24  Bruno Haible  <bruno@clisp.org>
76025
76026         * gnulib-tool: Add support for the --aux-dir option to
76027         --create-testdir, --create-megatestdir, --test, --megatest.
76028         (func_create_testdir, func_create_megatestdir): Optionally emit a
76029         AC_CONFIG_AUX_DIR directive.
76030         (create-testdir, create-megatestdir, test, megatest): Provide a
76031         default value for $auxdir.
76032
76033 2005-08-24  Bruno Haible  <bruno@clisp.org>
76034
76035         * gnulib-tool (import): Use compound statement instead of subshell
76036         where possible.
76037
76038 2005-08-24  Bruno Haible  <bruno@clisp.org>
76039
76040         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76041
76042 2005-08-24  Bruno Haible  <bruno@clisp.org>
76043
76044         * gnulib-tool (func_version): Update.
76045
76046 2005-08-24  Bruno Haible  <bruno@clisp.org>
76047
76048         * gnulib-tool (func_import, func_create_testdir,
76049         func_create_megatestdir): Quote all autoconf macro arguments.
76050
76051 2005-08-24  Bruno Haible  <bruno@clisp.org>
76052
76053         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76054         option --force, because --force causes the aclocal.m4 of each
76055         subdirectory to be newer than the corresponding config.h.in.
76056
76057 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76058
76059         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76060         All contents moved to gl_REGEX.
76061         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76062         assume that it does.
76063
76064 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76065
76066         * lib/regex.h (REG_NOSYS)
76067         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76068         Define, since POSIX requires it as of 2001.
76069         (_REG_ENOSYS)
76070         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76071         New private symbol, used to keep the enum signed in all cases.
76072         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76073         Youngman in
76074         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76075
76076         * lib/regex_internal.c (re_string_skip_chars, register_state):
76077         (calc_state_hash):
76078         Remove forward decls; no longer needed now that we use prototypes.
76079         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76080         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76081         (clean_state_log_if_needed): Likewise.
76082
76083 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76084
76085         * config/srclist.txt: Add glibc bugs 1231-1233.
76086
76087 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76088
76089         Fix problems reported by Sam Steingold in
76090         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76091         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76092         assumed that reg_errcode_t is a signed type, which is not
76093         necessarily true if _XOPEN_SOURCE is not defined.
76094         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76095         since some compilers warn about it otherwise.
76096
76097 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76098
76099         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76100         (init_word_char, create_initial_state, duplicate_node_closure):
76101         (fetch_token, peek_token_bracket, build_range_exp):
76102         (build_collating_symbol): Remove forward decls; no longer needed
76103         now that we use prototypes.
76104
76105         * lib/regcomp.c:
76106         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76107         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76108         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76109         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76110         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76111         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76112         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76113         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76114         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76115         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76116         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76117         (build_charclass, build_charclass_op, fetch_number, create_tree):
76118         (create_token_tree, mark_opt_subexp, duplicate_tree):
76119         Use prototypes rather than old-style definitions.
76120
76121         * lib/regex_internal.c:
76122         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76123         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76124         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76125         (re_string_reconstruct, re_string_peek_byte_case):
76126         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76127         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76128         (re_node_set_init_copy, re_node_set_add_intersect):
76129         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76130         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76131         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76132         (re_acquire_state, re_acquire_state_context, register_state):
76133         (create_ci_newstate, create_cd_newstate, free_state):
76134         Likewise.
76135         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76136         re_search_2):
76137         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76138         (re_search_internal, prune_impossible_nodes):
76139         (acquire_init_state_context, check_matching, static):
76140         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76141         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76142         (update_regs, sift_states_backward, build_sifted_states):
76143         (clean_state_log_if_needed, merge_state_array):
76144         (update_cur_sifted_state, add_epsilon_src_nodes):
76145         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76146         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76147         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76148         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76149         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76150         (check_arrival, check_arrival_add_next_nodes):
76151         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76152         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76153         (check_node_accept_bytes, check_node_accept, extend_buffers):
76154         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76155         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76156         (sift_ctx_init):
76157         Likewise.
76158
76159         * lib/regex_internal.h:
76160         (re_string_allocate, re_string_construct, re_string_reconstruct):
76161         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76162         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76163         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76164         (re_string_context_at, re_string_peek_byte_case):
76165         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76166         is defined, since we now use prototypes always.
76167
76168         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76169         C89 or better.  All uses removed.
76170
76171 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76172
76173         * config/srclist.txt: Add glibc bugs 1220-1227.
76174
76175 2005-08-20  Jim Meyering  <jim@meyering.net>
76176
76177         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76178         of unused local, dfa.
76179
76180 2005-08-20  Bruno Haible  <bruno@clisp.org>
76181
76182         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76183
76184 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76185
76186         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76187         (re_node_set_insert_last, re_dfa_add_node):
76188         Rename local variables to avoid GCC shadowing warnings.
76189
76190 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76191
76192         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76193         [defined lint]: Suppress bogus uninitialized-variable warnings.
76194
76195         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76196         and let the caller return REG_ESPACE if out of space.  This
76197         removes an uninitialied-variable warning with GCC 4.0.1, and also
76198         avoids taking the address of a local variable.  All callers
76199         changed.
76200
76201 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76202
76203         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76204         $LIBCSRC/posix/regexec.c.
76205         Add glibc bug 1217 for regcomp.c.
76206
76207 2005-08-19  Jim Meyering  <jim@meyering.net>
76208
76209         * lib/regexec.c (proceed_next_node): Redo local variables to
76210         avoid GCC shadowing warnings.
76211
76212 2005-08-18  Bruno Haible  <bruno@clisp.org>
76213
76214         * lib/strstr.c (strstr): Fix return value in multibyte case.
76215         * lib/strcasestr.c (strcasestr): Likewise.
76216
76217 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76218
76219         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76220
76221 2005-08-17  Jim Meyering  <jim@meyering.net>
76222
76223         Make the %s format (seconds since the epoch) work for a negative
76224         number and when used with a zero-padded field width, e.g. %015s.
76225
76226         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76227         label so that it precedes the code to set `digits'.  Otherwise,
76228         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76229         print `00-22'.  Now, it prints `-0022', as it should.
76230
76231 2005-08-17  Bruno Haible  <bruno@clisp.org>
76232
76233         * modules/strstr (Files): Add m4/mbrtowc.m4.
76234         (Depends-on): Add mbuiter.
76235
76236 2005-08-17  Bruno Haible  <bruno@clisp.org>
76237
76238         * modules/strcasestr: New file.
76239         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76240         strcasestr.
76241
76242 2005-08-17  Bruno Haible  <bruno@clisp.org>
76243
76244         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76245
76246 2005-08-17  Bruno Haible  <bruno@clisp.org>
76247
76248         * modules/mbuiter: New file.
76249         * MODULES.html.sh (Extended multibyte and wide character utilities):
76250         Add mbuiter.
76251
76252 2005-08-17  Bruno Haible  <bruno@clisp.org>
76253
76254         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76255         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76256
76257 2005-08-17  Bruno Haible  <bruno@clisp.org>
76258
76259         * m4/strcasestr.m4: New file.
76260
76261 2005-08-17  Bruno Haible  <bruno@clisp.org>
76262
76263         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76264         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76265
76266 2005-08-17  Bruno Haible  <bruno@clisp.org>
76267
76268         * lib/strcasestr.h: New file.
76269         * lib/strcasestr.c: New file.
76270
76271 2005-08-17  Bruno Haible  <bruno@clisp.org>
76272
76273         * lib/strcasecmp.c: Use mbuiter.h.
76274
76275 2005-08-17  Bruno Haible  <bruno@clisp.org>
76276
76277         * lib/mbuiter.h: New file.
76278
76279 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76280
76281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76282         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76283         and gl_GETOPT are both invoked via different paths (as happens
76284         with GNU tar CVS because it uses both argp and getopt), the former
76285         wins.
76286
76287 2005-08-16  Bruno Haible  <bruno@clisp.org>
76288
76289         * modules/tls: New file.
76290         * MODULES.html.sh (Multithreading): Add tls.
76291
76292 2005-08-16  Bruno Haible  <bruno@clisp.org>
76293
76294         * modules/strnlen1: New file.
76295         * MODULES.html.sh (String handling): Add strnlen1.
76296
76297 2005-08-16  Bruno Haible  <bruno@clisp.org>
76298
76299         * modules/strcase (Files): Add m4/mbrtowc.m4.
76300         (Depends-on): Add strnlen1, mbchar.
76301
76302 2005-08-16  Bruno Haible  <bruno@clisp.org>
76303
76304         * modules/mbiter: New file.
76305         * MODULES.html.sh (Extended multibyte and wide character utilities):
76306         Add mbiter.
76307
76308 2005-08-16  Bruno Haible  <bruno@clisp.org>
76309
76310         * modules/mbfile: New file.
76311         * MODULES.html.sh (Extended multibyte and wide character utilities):
76312         Add mbfile.
76313
76314 2005-08-16  Bruno Haible  <bruno@clisp.org>
76315
76316         * modules/mbchar: New file.
76317         * MODULES.html.sh (Extended multibyte and wide character utilities):
76318         New section.
76319
76320 2005-08-16  Bruno Haible  <bruno@clisp.org>
76321
76322         * m4/tls.m4: New file, from GNU gettext.
76323
76324 2005-08-16  Bruno Haible  <bruno@clisp.org>
76325
76326         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76327         always.
76328         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76329
76330 2005-08-16  Bruno Haible  <bruno@clisp.org>
76331
76332         * m4/mbiter.m4: New file.
76333
76334 2005-08-16  Bruno Haible  <bruno@clisp.org>
76335
76336         * m4/mbfile.m4: New file.
76337
76338 2005-08-16  Bruno Haible  <bruno@clisp.org>
76339
76340         * m4/mbchar.m4: New file.
76341
76342 2005-08-16  Bruno Haible  <bruno@clisp.org>
76343
76344         * lib/tls.h: New file, from GNU gettext.
76345         * lib/tls.c: New file, from GNU gettext.
76346
76347 2005-08-16  Bruno Haible  <bruno@clisp.org>
76348
76349         * lib/strnlen1.h: New file.
76350         * lib/strnlen1.c: New file.
76351
76352 2005-08-16  Bruno Haible  <bruno@clisp.org>
76353
76354         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76355         (mbi_init): Update.
76356         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76357         NUL byte, not after it.
76358
76359 2005-08-16  Bruno Haible  <bruno@clisp.org>
76360
76361         * lib/strcase.h (strcasecmp): Add note in comments.
76362         * lib/strncasecmp.c: Use code from strcasecmp.c.
76363         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76364         (strcasecmp): Work correctly in multibyte locales.
76365
76366 2005-08-16  Bruno Haible  <bruno@clisp.org>
76367
76368         * lib/mbiter.h: New file.
76369
76370 2005-08-16  Bruno Haible  <bruno@clisp.org>
76371
76372         * lib/mbfile.h: New file.
76373
76374 2005-08-16  Bruno Haible  <bruno@clisp.org>
76375
76376         * lib/mbchar.h: New file.
76377         * lib/mbchar.c: New file.
76378
76379 2005-08-16  Bruno Haible  <bruno@clisp.org>
76380
76381         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76382         the valid ones. Makes the comparison operations transitive:
76383         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76384         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76385
76386 2005-08-15  Simon Josefsson  <jas@extundo.com>
76387
76388         * modules/ssize_t (License): Change to 'unlimited'.
76389
76390         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76391
76392 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76393
76394         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76395         Add comments for each pending glibc patch.
76396
76397 2005-08-15  Bruno Haible  <bruno@clisp.org>
76398
76399         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76400         __cplusplus is defined.
76401
76402 2005-08-14  Jim Meyering  <jim@meyering.net>
76403
76404         Sync from coreutils.
76405
76406         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76407         Use the hash-table-based cycle-detection code not just when
76408         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76409         Reported by James Youngman in
76410         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76411         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76412         FTS_TIGHT_CYCLE_CHECK.
76413         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76414         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76415         once again.
76416         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76417         * lib/fts.c (fd_safer): Remove decl.
76418         Include fcntl--.h rather than unistd-safer.h
76419         (fts_safe_changedir): Don't call fd_safer; no longer needed
76420         now that we include fcntl--.h.
76421
76422 2005-08-12  Simon Josefsson  <jas@extundo.com>
76423
76424         * modules/getndelim2: Use ssize_t module.
76425         * modules/getnline: Likewise.
76426         * modules/safe-read: Likewise.
76427         * modules/xreadlink: Likewise.
76428
76429         * modules/ssize_t: New file.
76430
76431 2005-08-12  Simon Josefsson  <jas@extundo.com>
76432
76433         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76434
76435 2005-08-12  Simon Josefsson  <jas@extundo.com>
76436
76437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76438         ssize_t.
76439
76440 2005-08-12  Simon Josefsson  <jas@extundo.com>
76441
76442         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76443         readline, getdelim and check_version.
76444         (Support for systems lacking ISO C 99: Sizes of integer types):
76445         Add size_max.
76446
76447 2005-08-12  Bruno Haible  <bruno@clisp.org>
76448
76449         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76450
76451 2005-08-11  Simon Josefsson  <jas@extundo.com>
76452
76453         * modules/readline: New file.
76454
76455         * modules/strnlen (Files): Add strnlen.h.
76456
76457 2005-08-11  Simon Josefsson  <jas@extundo.com>
76458
76459         * m4/readline.m4: New file.
76460
76461 2005-08-11  Simon Josefsson  <jas@extundo.com>
76462
76463         * lib/readline.h, readline.c: New file.
76464
76465 2005-08-11  Simon Josefsson  <jas@extundo.com>
76466
76467         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76468         gl_AVOID.
76469
76470 2005-08-11  Bruno Haible  <bruno@clisp.org>
76471
76472         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76473
76474 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76475
76476         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76477
76478 2005-08-10  Simon Josefsson  <jas@extundo.com>
76479
76480         * tests/test-iconvme.c: New file.
76481
76482 2005-08-10  Simon Josefsson  <jas@extundo.com>
76483
76484         * m4/strnlen.m4: New file.
76485
76486         * m4/strndup.m4: Don't check for strnlen declaration, done in
76487         strnlen.m4.
76488
76489 2005-08-10  Simon Josefsson  <jas@extundo.com>
76490
76491         * lib/strndup.c: Use strnlen.h.
76492
76493         * lib/strnlen.h: New file.
76494
76495 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76496
76497         * README: Typos.
76498
76499 2005-08-02  Simon Josefsson  <jas@extundo.com>
76500
76501         * modules/readline: New file.
76502
76503 2005-08-02  Simon Josefsson  <jas@extundo.com>
76504
76505         * modules/getdelim: New file.
76506
76507         * modules/getline: Rewrite, don't use getndelim2.
76508
76509 2005-08-02  Simon Josefsson  <jas@extundo.com>
76510
76511         * m4/getline.m4: Separate out getdelim stuff into separate module.
76512
76513         * m4/getdelim.m4: New file.
76514
76515 2005-08-02  Simon Josefsson  <jas@extundo.com>
76516
76517         * lib/getline.h, getline.c: Rewrite.
76518
76519         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76520
76521 2005-07-31  Bruno Haible  <bruno@clisp.org>
76522
76523         * lib/lock.h (gl_lock_initializer): New macro.
76524         (gl_lock_define_initialized): Use it.
76525         (gl_rwlock_initializer): New macro.
76526         (gl_rwlock_define_initialized): Use it.
76527         (gl_recursive_lock_initializer): New macro.
76528         (gl_recursive_lock_define_initialized): Use it.
76529
76530 2005-07-30  Karl Berry  <karl@gnu.org>
76531
76532         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76533         Report from Ben Pfaff, regarding getopt.
76534
76535 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76536
76537         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76538         normal way.
76539         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76540         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76541         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76542         (gl_GETOPT): Use the new macros.  Most of the implementation
76543         is moved to the new macros.  This is for programs like Emacs
76544         that don't want all the functionality of gl_GETOPT.
76545
76546 2005-07-26  Bruno Haible  <bruno@clisp.org>
76547
76548         * m4/lock.m4: Update from GNU gettext.
76549
76550 2005-07-26  Bruno Haible  <bruno@clisp.org>
76551
76552         * lib/lock.h: Update from GNU gettext.
76553         * lib/lock.c: Update from GNU gettext.
76554
76555 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76556
76557         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76558         obsolescent AC_TRY_RUN.  Include the default includes files, for
76559         'exit'.
76560
76561 2005-07-24  Bruno Haible  <bruno@clisp.org>
76562
76563         * modules/visibility: New file.
76564         * MODULES.html.sh (Misc): Add visibility.
76565
76566 2005-07-24  Bruno Haible  <bruno@clisp.org>
76567
76568         * m4/visibility.m4: New file.
76569
76570 2005-07-24  Bruno Haible  <bruno@clisp.org>
76571
76572         * doc/visibility.texi: New file.
76573
76574 2005-07-22  Bruno Haible  <bruno@clisp.org>
76575
76576         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76577         $(ALLOCA_H), redundant through BUILT_SOURCES.
76578         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76579         redundant through BUILT_SOURCES.
76580         * modules/byteswap (Makefile.am): Remove explicit dependency on
76581         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76582         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76583         $(FNMATCH_H), redundant through BUILT_SOURCES.
76584         * modules/getopt (Makefile.am): Remove explicit dependency on
76585         $(GETOPT_H), redundant through BUILT_SOURCES.
76586         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76587         redundant through BUILT_SOURCES.
76588         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76589         redundant through BUILT_SOURCES.
76590         * modules/stdbool (Makefile.am): Remove explicit dependency on
76591         $(STDBOOL_H), redundant through BUILT_SOURCES.
76592         * modules/stdint (Makefile.am): Remove explicit dependency on
76593         $(STDINT_H), redundant through BUILT_SOURCES.
76594         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76595         Remove explicit dependency on $(SYSEXITS_H).
76596         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76597
76598 2005-07-18  Simon Josefsson  <jas@extundo.com>
76599
76600         * lib/check-version.c (check_version): Accept identical versions too.
76601
76602 2005-07-18  Bruno Haible  <bruno@clisp.org>
76603
76604         * modules/lock: New file.
76605         * MODULES.html.sh (Multithreading): New section.
76606
76607 2005-07-18  Bruno Haible  <bruno@clisp.org>
76608
76609         * m4/lock.m4: New file, from GNU gettext.
76610
76611 2005-07-18  Bruno Haible  <bruno@clisp.org>
76612
76613         * lib/lock.h: New file, from GNU gettext.
76614         * lib/lock.c: New file, from GNU gettext.
76615
76616 2005-07-18  Bruno Haible  <bruno@clisp.org>
76617
76618         * lib/lock.h (gl_once_t): New type.
76619         (gl_once_define, gl_once): New macros.
76620         * lib/lock.c (fresh_once): New variable.
76621         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76622         functions.
76623
76624 2005-07-16  Simon Josefsson  <jas@extundo.com>
76625
76626         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76627         workaround, suggested by Bruno.
76628
76629 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76630
76631         * modules/xalloc (Depends-on): Add xalloc-die.
76632         * modules/xvasprintf (Depends-on): Add xalloc-die.
76633
76634 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76635
76636         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76637         with a minor change.
76638
76639 2005-07-15  Bruno Haible  <bruno@clisp.org>
76640
76641         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76642         When using lib/poll.c, define poll as rpl_poll.
76643
76644 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76645
76646         * modules/argp (Depends-on): Remove unlocked-io.
76647
76648 2005-07-14  Derek Price  <derek@ximbiot.com>
76649
76650         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76651         for glob symlink bug.
76652
76653 2005-07-14  Bruno Haible  <bruno@clisp.org>
76654
76655         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76656         Instead, test for *_unlocked function declarations directly.
76657
76658 2005-07-11  Simon Josefsson  <jas@extundo.com>
76659
76660         * modules/size_max: New file.
76661
76662         * modules/xsize: Depend on size_max module for size_max.m4.
76663
76664 2005-07-11  Simon Josefsson  <jas@extundo.com>
76665
76666         * lib/size_max.h: New file.
76667
76668 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76669
76670         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76671         copyright symbol and the year.
76672         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76673         (version_etc_va): Use parameterized copyright notice.
76674         Reword to conform to the current GNU coding standards.
76675
76676 2005-07-11  Karl Berry  <karl@gnu.org>
76677
76678         * doc/gnulib.texi (Quoting): new node.
76679         (Initial import): more info, from Patrice.
76680
76681 2005-07-11  Bruno Haible  <bruno@clisp.org>
76682
76683         * gnulib-tool (func_usage): Document option --avoid.
76684         (Command line options): Handle --avoid.
76685         (func_acceptable): New function.
76686         (func_modules_transitive_closure): Use it.
76687
76688 2005-07-11  Bruno Haible  <bruno@clisp.org>
76689
76690         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76691         Reported by Jim Meyering.
76692
76693 2005-07-10  Bruno Haible  <bruno@clisp.org>
76694
76695         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76696         Needed when size_t is smaller than 'unsigned int'.
76697         Reported by Paul Eggert.
76698
76699 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76700
76701         * modules/argp (Depends-on): Add unlocked-io
76702
76703 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76704
76705         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76706         block of defines.
76707
76708 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76709
76710         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76711         fix now.
76712
76713 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76714         and Paul Eggert  <eggert@cs.ucla.edu>
76715
76716         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76717         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76718
76719 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76720
76721         * modules/regex (Files): Add lib/regex_internal.c,
76722         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76723         (Depends-on): Add extensions.
76724         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76725
76726 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76727
76728         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76729         pathconf.
76730         * m4/same.m4 (gl_SAME): Likewise.
76731         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76732
76733         * m4/regex.m4: Adjust to new libc regex implementation.
76734         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76735         all the .c and .h parts of (the new) regex.
76736         Quote the m4 stuff better.
76737         Check for RE_ICASE bug of old gnulib.
76738         Check for REG_STARTEND of recent libc.
76739         Rename local variables from jm_* to gl_*.
76740         Quote operand of "test -f".
76741         Say "recent enough" version of libc, not "version 2".
76742         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76743         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76744         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76745         Remove check for btowc, isascii.
76746         Require AM_LANGINFO_CODESET.
76747
76748 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76749
76750         * lib/regex.c, regex.h: Sync from libc.
76751         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76752         * lib/regexec.c:
76753         New files, synced from libc, except that regex_internal.h
76754         currently has a small porting fix.
76755
76756 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76757
76758         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76759         regex_internal.c, regexec.c.
76760         Add regex_internal.h too, but as a comment, since the libc version
76761         is currently broken in gnulib mode.
76762
76763 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76764
76765         Support programs like Emacs that use gnulib but not gettext.
76766         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76767         * modules/gettext-h: New file.
76768         * modules/gettext (Files): Remove lib/gettext.h.
76769         (Depends-on): Add gettext-h.
76770         (Makefile.am): Remove lib_SOURCES.
76771         * modules/argmatch, modules/c-stack, modules/closeout:
76772         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76773         * modules/execute, modules/file-type, modules/getaddrinfo:
76774         * modules/getopt, modules/human, modules/javacomp:
76775         * modules/javaexec, modules/mkdir-p, modules/obstack:
76776         * modules/openat, modules/pagealign_alloc, modules/pipe:
76777         * modules/quotearg, modules/regex, modules/rpmatch:
76778         * modules/unicodeio, modules/userspec, modules/version-etc:
76779         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76780         * modules/xsetenv:
76781         Depend on gettext-h, not gettext.
76782
76783 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76784
76785         * gnulib-tool (func_import): Add support for 'public domain' license.
76786         * modules/alloca, modules/atexit, modules/memmove:
76787         Now public domain, not GPL.
76788         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76789         * modules/realloc, modules/strerror, modules/strtod:
76790         Now LGPL, not GPL.
76791
76792 2005-07-05  Bruno Haible  <bruno@clisp.org>
76793
76794         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76795         autoconf CVS. Needed for mingw.
76796
76797 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76798
76799         Remove the dependency of the strftime module on the tzset module.
76800         * modules/strftime (Depends-on): Remove dependency on tzset.
76801
76802 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76803
76804         Remove the dependency of the strftime module on the tzset module.
76805         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76806         gl_FUNC_TZSET_CLOBBER.
76807
76808 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76809
76810         Remove the dependency of the strftime module on the tzset module.
76811         * lib/strftime.c (my_strftime)
76812         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76813         Copy the input structure, to work around some of the bug with
76814         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76815         Solaris releases, you should also use the tzset module, but we won't
76816         require it as a dependency any more since we don't want LGPLed code
76817         to depend on GPLed code.
76818
76819 2005-07-02  Jim Meyering  <jim@meyering.net>
76820
76821         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76822         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76823         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76824         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76825
76826 2005-07-02  Jim Meyering  <jim@meyering.net>
76827
76828         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76829
76830 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76831
76832         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76833         declares only 'struct timespec;' (!).
76834
76835 2005-07-01  Jim Meyering  <jim@meyering.net>
76836
76837         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76838         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76839         * lib/save-cwd.c, tempname.c:
76840         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76841         and don't include <sys/file.h>).
76842
76843 2005-06-29  Jim Meyering  <jim@meyering.net>
76844
76845         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76846         type name.  Use the variable name instead.
76847         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76848         Likewise.
76849
76850 2005-06-28  Simon Josefsson  <jas@extundo.com>
76851
76852         * modules/check-version (Files): Add check-version.m4.
76853
76854 2005-06-28  Simon Josefsson  <jas@extundo.com>
76855
76856         * m4/check-version.m4: New file, suggested by Jim Meyering
76857         <jim@meyering.net>.
76858
76859 2005-06-28  Simon Josefsson  <jas@extundo.com>
76860
76861         * lib/check-version.h, lib/check-version.c: New files.
76862
76863 2005-06-28  Simon Josefsson  <jas@extundo.com>
76864
76865         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76866         collision with global variable.  Better indentation.  Don't
76867         increment buffer pointer beyond buffer end.  Based on comments
76868         from Paul Eggert <eggert@cs.ucla.edu>.
76869
76870         * lib/base64.h: Indent.
76871
76872 2005-06-28  Simon Josefsson  <jas@extundo.com>
76873
76874         * doc/gnulib.texi (Library version handling): New section.
76875
76876 2005-06-28  Jim Meyering  <jim@meyering.net>
76877
76878         * check-module (find_included_lib_files): Hard-code another
76879         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76880         but modules/fts-lgpl (correctly) does not list those files.
76881
76882         * modules/canonicalize (Files): Add lib/pathmax.h.
76883
76884 2005-06-25  Simon Josefsson  <jas@extundo.com>
76885
76886         * modules/check-version: New file.
76887
76888 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76889
76890         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76891         initializer of struct addrinfo, as an indication that we don't
76892         care how many members the structure has.
76893
76894 2005-06-24  Derek Price  <derek@ximbiot.com>
76895         and Bruno Haible  <bruno@clisp.org>
76896
76897         Remove stat module & update lstat.
76898         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76899         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76900         * m4/stat.m4: Remove this file.
76901
76902 2005-06-24  Derek Price  <derek@ximbiot.com>
76903         and Bruno Haible  <bruno@clisp.org>
76904
76905         Remove stat module & update lstat.
76906         * lib/stat.c: Remove this file...
76907         (slash_aware_lstat): ...moving this content and its support...
76908         * lib/lstat.c (rpl_lstat): ...into here.
76909         * lib/lstat.h: New file.
76910
76911 2005-06-24  Derek Price  <derek@ximbiot.com>
76912         and Bruno Haible  <bruno@clisp.org>
76913
76914         Remove stat module & update lstat.
76915         * config/srclist.txt (libc sources): Remove stat.
76916
76917 2005-06-24  Derek Price  <derek@ximbiot.com>
76918         and Bruno Haible  <bruno@clisp.org>
76919
76920         Remove stat module & update lstat.
76921         * MODULES.html.sh (stat): Remove.
76922         * MODULES.html: Regenerated.
76923         * modules/lstat (Description): Correct function name.
76924         (Files): Add "lstat.h".
76925         (Depends-on): Remove stat, add xalloc, stat-macros.
76926         * modules/stat: Remove this file.
76927         (Include): Add "lstat.h", remove <sys/stat.h>.
76928
76929 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76930
76931         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76932         (ranged_convert): Don't save conversion in a temporary struct.
76933         This causes a warning with GCC 4.0.0, and anyway in the typical
76934         case it's not worth the extra 100 bytes or so of code.
76935         (ranged_convert, __mktime_internal): When calling a function via a
76936         pointer P, use P () rather than (*P) (), as we now assume C89 or
76937         better.
76938
76939 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76940
76941         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76942         "who -r" failed to give output.  Problem reported by Tim Waugh.
76943
76944         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76945         (xcalloc): Use it to avoid needless tests.
76946         Problem reported by Jim Meyering.
76947
76948 2005-06-20  Derek Price  <derek@ximbiot.com>
76949
76950         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76951         unnecessary for Autoconfs > 2.59c.
76952
76953 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76954
76955         * lib/argp.h (__option_is_short): Check upper limit of
76956         __key. Isprint() requires its argument to have the value
76957         of an unsigned char or EOF.
76958
76959 2005-06-16  Jim Meyering  <jim@meyering.net>
76960
76961         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76962         when either N or S is zero.
76963
76964 2005-06-16  Derek Price  <derek@ximbiot.com>
76965
76966         * m4/bison.m4: Declare YACC & YFLAGS precious.
76967
76968 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76969
76970         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76971         multibyte string or pattern, fall back on unibyte matching.
76972         Problem reported by James Youngman.
76973
76974 2005-06-08  Bruno Haible  <bruno@clisp.org>
76975
76976         * modules/csharpcomp: New file.
76977         * MODULES.html.sh (C#): Add csharpcomp.
76978
76979 2005-06-08  Bruno Haible  <bruno@clisp.org>
76980
76981         * m4/csharpcomp.m4: New file, from GNU gettext.
76982
76983 2005-06-08  Bruno Haible  <bruno@clisp.org>
76984
76985         * lib/csharpcomp.h: New file, from GNU gettext.
76986         * lib/csharpcomp.c: New file, from GNU gettext.
76987         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76988
76989 2005-06-08  Bruno Haible  <bruno@clisp.org>
76990
76991         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76992         warning on mingw.
76993
76994 2005-06-07  Derek Price  <derek@ximbiot.com>
76995
76996         Sync from CVS.
76997         * lib/glob_.h: Indent nested #ifdef.
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         * lib/mkdir-p.c: Renamed from makepath.c.
77005         (make_dir_parents): Renamed from make_path.  All callers changed.
77006         * lib/mkdir-p.h: Likewise.  All includers changed.
77007         * lib/filenamecat.c: Renamed from path-concat.c.
77008         (file_name_concat): Renamed from path_concat.  All callers changed.
77009         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77010         * lib/filenamecat.h: Likewise.  All includers changed.
77011         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77012         in comments or local variable names.
77013         * lib/basename.c: Likewise.
77014         * lib/canonicalize.c, canonicalize.h: Likewise.
77015         * lib/dirname.c, dirname.h: Likewise.
77016         * lib/euidaccess.c: Likewise.
77017         * lib/exclude.c: Likewise
77018         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77019         * lib/fsusage.c, fsuage.h: Likewise.
77020         * lib/fts.c, fts_.h: Likewise.
77021         * lib/getcwd.c: Likewise.
77022         * lib/getloadavg.c: Likewise.
77023         * lib/mkstemp.c: Likewise.
77024         * lib/mountlist.c, mountlist.h: Likewise.
77025         * lib/openat.c, openat.h: Likewise.
77026         * lib/readlink-stub.c: Likewise.
77027         * lib/readutmp.c, readutmp.h: Likewise.
77028         * lib/rename.c: Likewise.
77029         * lib/rmdir.c: Likewise.
77030         * lib/same.c: Likewise.
77031         * lib/savedir.c: Likewise.
77032         * lib/stripslash.c: Likewise.
77033         * lib/tempname.c: Likewise.
77034         * lib/xreadlink.c: Likewise.
77035         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77036         All uses changed.
77037         * lib/exclude.h: Likewise.
77038
77039         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77040         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77041         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77042         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77043         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77044         files have been getting away with it for years (MORE/BSD 4.3
77045         is extinct now).
77046         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77047         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77048
77049         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77050         Define to 256, not 255, as per modern POSIX.
77051
77052 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77053
77054         Sync from coreutils.
77055         Use "file name" when talking about file names, instead of "filename"
77056         or "path", as per the GNU coding standards.
77057         * MODULES.html.sh: mkdir-p renamed from makepath.
77058         filenamecat renamed from path-concat.
77059         * modules/filenamecat: Renamed from modules/path-concat.
77060         (Files): filenamecat.h and filenamecat.c renamed from
77061         path-concat.h and path-concat.c.
77062         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77063         (Include): filenamecat.h, not path-concat.h.
77064         * modules/mkdir-p: Renamed from modules/makepath.
77065         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77066         makepath.c.
77067         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77068         (Include): mkdir-p.h, not makepath.h.
77069
77070 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77071
77072         Sync from coreutils.
77073         * m4/mkdir-p.m4: Renamed from makepath.m4.
77074         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77075         Rename files from makepath.c to mkdir-p.c, and from
77076         makepath.h to mkdir-p.h.
77077         * m4/filenamecat.m4: Renamed from path-concat.m4.
77078         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77079         Rename files from path-concat.c to filenamecat.c,
77080         and from path-concat.h to filenamecat.h.
77081         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77082         "file name" in local variables or comments.
77083         * m4/rename.m4: Likewise.
77084
77085 2005-06-01  Bruno Haible  <bruno@clisp.org>
77086
77087         * modules/csharpexec: New file.
77088         * MODULES.html.sh (C#): New section.
77089
77090 2005-06-01  Bruno Haible  <bruno@clisp.org>
77091
77092         * m4/csharp.m4: New file, from GNU gettext.
77093         * m4/csharpexec.m4: New file, from GNU gettext.
77094
77095 2005-06-01  Bruno Haible  <bruno@clisp.org>
77096
77097         * lib/csharpexec.h: New file, from GNU gettext.
77098         * lib/csharpexec.c: New file, from GNU gettext.
77099         * lib/csharpexec.sh.in: New file, from GNU gettext.
77100
77101 2005-05-31  Derek Price  <derek@ximbiot.com>
77102             Paul Eggert  <eggert@cs.ucla.edu>
77103
77104         Sync from cvs.
77105         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77106
77107 2005-05-31  Derek Price  <derek@ximbiot.com>
77108             Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         Sync from cvs.
77111         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77112
77113 2005-05-29  Derek Price  <derek@ximbiot.com>
77114
77115         * config/srclist.txt (glob_.h, glob.c): Add these files.
77116
77117 2005-05-29  Derek Price  <derek@ximbiot.com>
77118
77119         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77120         * modules/glob: New file.
77121         * modules/getlogin_r: Add link to POSIX spec in description.
77122
77123 2005-05-29  Derek Price  <derek@ximbiot.com>
77124             Paul Eggert  <eggert@cs.ucla.edu>
77125
77126         * m4/glob.m4: New file.
77127
77128 2005-05-29  Derek Price  <derek@ximbiot.com>
77129             Paul Eggert  <eggert@cs.ucla.edu>
77130
77131         * lib/glob_.h, lib/glob.c: New files.
77132
77133 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77134
77135         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77136         * modules/fts-lgpl (Depends-on): Remove gettext.
77137
77138 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77139
77140         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77141         and don't require gt_INTTYPES_PRI.
77142
77143 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77144
77145         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77146
77147         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77148         the configuration hassle isn't worth it.
77149         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77150         (LONGEST_MODIFIER, PRIuMAX): Remove.
77151
77152 2005-05-27  Bruno Haible  <bruno@clisp.org>
77153
77154         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77155
77156 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77157
77158         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77159         _POSIX_PTHREAD_SEMANTICS for Solaris.
77160
77161 2005-05-25  Derek Price  <derek@ximbiot.com>
77162
77163         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77164
77165 2005-05-25  Derek Price  <derek@ximbiot.com>
77166             Paul Eggert  <eggert@cs.ucla.edu>
77167
77168         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77169         * lib/getlogin_r.c, getlogin_r.h: New files.
77170
77171 2005-05-25  Bruno Haible  <bruno@clisp.org>
77172             Derek Price  <derek@ximbiot.com>
77173
77174         * lib/getlogin_r.h: Simplify API documentation.
77175
77176 2005-05-23  Derek Price  <derek@ximbiot.com>
77177
77178         * modules/minmax (Files): Add m4/minmax.m4.
77179         (configure.ac): Add gl_MINMAX.
77180
77181 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77182
77183         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77184         so that unistd-safer.h (GPL'ed code) need not be included.
77185
77186 2005-05-22  Bruno Haible  <bruno@clisp.org>
77187
77188         * m4/minmax.m4: New file.
77189         Based on a patch by Derek Price <derek@ximbiot.com>.
77190
77191 2005-05-22  Bruno Haible  <bruno@clisp.org>
77192
77193         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77194         (INT64_MIN): Fix definition.
77195         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77196
77197         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77198         NEED_SIGNED_INT_TYPES.
77199
77200         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77201         HAVE_SYSTEM_INTTYPES.
77202
77203 2005-05-22  Bruno Haible  <bruno@clisp.org>
77204
77205         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77206         Also include <sys/param.h> if it defines MIN, MAX.
77207         Based on a patch by Derek Price <derek@ximbiot.com>.
77208
77209 2005-05-21  Jim Meyering  <jim@meyering.net>
77210
77211         * modules/fts (Files): Add m4/inttypes-pri.m4.
77212         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77213
77214 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77215
77216         New fts module.
77217         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77218         (setup_dir, free_dir): New functions.
77219         (enter_dir, leave_dir): Define trivial
77220         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77221         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77222         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77223         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77224         Move to fts-cycle.c.
77225         (fts_open): Use setup_dir.
77226         (fts_close): Use free_dir.
77227         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77228         This adds a label and some gotos, but the alternatives were messier.
77229         Check for memory allocation failure when entering a dir.
77230         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77231         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77232         (FTS): New member fts_cycle, that is a union that contains the
77233         old active_dir_ht and cycle_state.  All uses changed to mention
77234         fts_cycle.ht and fts_cycle.state.
77235         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77236         fts.c, with the following changes:
77237         (setup_dir, free_dir): New functions.
77238         (enter_dir): Now returns bool.  Return true if successful, false
77239         if memory exhausted.  All callers changed.
77240         Do not bother partly cleaning up on
77241         memory allocation failure; that is free_dir's job.
77242         However, free ad if hash_insert fails, to avoid memory leak.
77243         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77244         fts->fts_options to see which union member to use.
77245
77246 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77247
77248         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77249         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77250
77251 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77252
77253         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77254
77255 2005-05-20  Jim Meyering  <jim@meyering.net>
77256
77257         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77258         Now a macro, to pacify GCC.
77259
77260 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77261
77262         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77263         of -1.
77264
77265 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77266
77267         * lib/chown.c (rpl_chown): Return -1 on failure.
77268
77269 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77270
77271         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77272         Don't check for stddef.h.
77273         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77274         don't use its results.
77275         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77276         since we include them unconditionally.  Don't require
77277         AM_STDBOOL_H, since stdbool is a prerequisite.
77278         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77279         since we assume C89 or better.
77280         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77281         as we don't use their results.
77282         Don't check for fchdir, memmove, memset, strrchr, as we use
77283         them unconditionally.
77284         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77285         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77286
77287 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77288
77289         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77290         Include <stddef.h> unconditionally, since we assume C89 now.
77291         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77292         * lib/fts.c: Include fts_.h first, to check interface.
77293         Do not include intprops.h; no longer needed.
77294         Include cycle-check.h and hash.h, since fts_.h no longer does.
77295         Remove unnecessary casts of closedir to void.
77296         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77297         decide whether to decrement nlinks.
77298         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77299         (FTS): Use struct hash_table * instead of Hash_table, so that
77300         we no longer need to include hash.h here.
77301
77302 2005-05-18  Jim Meyering  <jim@meyering.net>
77303
77304         * modules/dirfd (License): Change to LGPL.  Most of the code
77305         is already in the public domain.
77306
77307 2005-05-18  Jim Meyering  <jim@meyering.net>
77308
77309         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77310         Reported by Yoann Vandoorselaere.
77311
77312 2005-05-17  Jim Meyering  <jim@meyering.net>
77313
77314         * m4/fts.m4: New file, from coreutils.
77315
77316 2005-05-17  Jim Meyering  <jim@meyering.net>
77317
77318         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77319
77320 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77321
77322         Sync from coreutils.
77323         * m4/unlinkdir.m4: New file.
77324
77325 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77326
77327         Sync from coreutils.
77328         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77329         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77330         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77331         White space changes only.
77332         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77333         special.
77334         * lib/yesno.c: Include getline.h, not ctype.h.
77335         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77336         Use getline to remove arbitrary restriction on response length.
77337
77338 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77339
77340         * config/srclist-update: Spell out "Street" in FSF postal
77341         mail address; this is the style the FSF seems to prefer.
77342
77343         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77344         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77345         this updates FSF postal mail address.
77346
77347         Sync from coreutils.
77348         * modules/unlinkdir: New file.
77349         * modules/yesno (Depends-on): Add getline.
77350         * MODULES.html.sh (File system functions): Add unlinkdir.
77351
77352 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77353
77354         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77355         lib/strsep.h:
77356         Change the initial comment to refer to GPL, not LGPL.
77357         gnulib-tool will change it to LGPL as needed.
77358
77359         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77360         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77361         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77362         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77363         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77364         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77365         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77366         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77367         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77368         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77369         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77370         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77371         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77372         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77373         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77374         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77375         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77376         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77377         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77378         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77379         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77380         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77381         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77382         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77383         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77384         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77385         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77386         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77387         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77388         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77389         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77390         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77391         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77392         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77393         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77394         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77395         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77396         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77397         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77398         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77399         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77400         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77401         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77402         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77403         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77404         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77405         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77406         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77407         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77408         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77409         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77410         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77411         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77412         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77413         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77414         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77415         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77416         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77417         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77418         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77419         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77420         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77421         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77422         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77423         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77424         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77425         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77426         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77427         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77428         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77429         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77430         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77431         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77432         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77433         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77434         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77435         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77436         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77437         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77438         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77439         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77440         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77441         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77442         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77443         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77444         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77445         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77446         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77447         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77448         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77449         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77450         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77451         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77452         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77453         lib/yesno.c, lib/yesno.h:
77454         Update FSF postal mail address.
77455
77456 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77457
77458         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77459         tests/test-memmem.c, tests/test-stpncpy.c:
77460         Update FSF postal mail address.
77461
77462 2005-05-13  Bruno Haible  <bruno@clisp.org>
77463
77464         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77465         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77466         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77467         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77468         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77469         Add support for 64-bit integers in the MSVC compiler.
77470
77471 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77472
77473         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77474
77475 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77476
77477         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77478
77479 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77480
77481         * doc/getdate.texi (General date syntax): Don't say that date
77482         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77483         Problem reported by Nic Ferrier.
77484
77485 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77486
77487         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77488         specified in ai_socktype. Fix invalid ai_protocol
77489         check. ai_protocol is usually set to 0 or depending on
77490         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77491         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77492         ai_socktype / ai_protocol in the returned addrinfo structure.
77493
77494 2005-05-10  Simon Josefsson  <jas@extundo.com>
77495
77496         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77497         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77498
77499 2005-05-10  Karl Berry  <karl@gnu.org>
77500
77501         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77502         (from http://www.gnu.org/licenses).
77503         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77504         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77505         fdl.texi suffices.
77506
77507 2005-05-10  Karl Berry  <karl@gnu.org>
77508
77509         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77510         (COPYING.DOC): remove.
77511
77512         * config/srclist-update: new FSF address.
77513
77514 2005-05-10  Derek Price  <derek@ximbiot.com>
77515
77516         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77517         possible.
77518
77519 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77520             Bruno Haible  <bruno@clisp.org>
77521
77522         * modules/inet_ntop: New file.
77523         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77524         inet_ntop.
77525
77526 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77527             Bruno Haible  <bruno@clisp.org>
77528
77529         * m4/inet_ntop.m4: New file.
77530
77531 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77532             Bruno Haible  <bruno@clisp.org>
77533
77534         * lib/inet_ntop.h: New file.
77535         * lib/inet_ntop.c: New file, from glibc with modifications.
77536
77537 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77538
77539         * modules/time_r (License): Change to LGPL.
77540         * modules/extensions (License): Change to LGPL.  Actually,
77541         the license is more permissive than that, but currently gnulib-tool
77542         doesn't know how to handle more-permissive licenses.
77543
77544         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77545         Problem reported by Dave Love.
77546
77547 2005-05-08  Jim Meyering  <jim@meyering.net>
77548
77549         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77550         blank.
77551
77552 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77553
77554         * modules/argmatch (Depends-on): Add stdbool.
77555         * modules/backupfile (Depends-on): Likewise.
77556         * modules/chdir-long (Depends-on): Likewise.
77557         * modules/closeout (Depends-on): Likewise.
77558         * modules/cycle-check (Depends-on): Likewise.
77559         * modules/dirname (Depends-on): Likewise.
77560         * modules/fnmatch (Depends-on): Likewise.
77561         * modules/fsusage (Depends-on): Likewise.
77562         * modules/fwriteerror (Depends-on): Likewise.
77563         * modules/getcwd (Depends-on): Likewise.
77564         * modules/getloadavg (Depends-on): Likewise.
77565         * modules/hard-locale (Depends-on): Likewise.
77566         * modules/makepath (Depends-on): Likewise.
77567         * modules/mountlist (Depends-on): Likewise.
77568         * modules/nanosleep (Depends-on): Likewise.
77569         * modules/posixtm (Depends-on): Likewise.
77570         * modules/quotearg (Depends-on): Likewise.
77571         * modules/readtokens (Depends-on): Likewise.
77572         * modules/readtokens0 (Depends-on): Likewise.
77573         * modules/readutmp (Depends-on): Likewise.
77574         * modules/save-cwd (Depends-on): Likewise.
77575         * modules/strftime (Depends-on): Likewise.
77576         * modules/userspec (Depends-on): Likewise.
77577         * modules/utimecmp (Depends-on): Likewise.
77578         * modules/xgetcwd (Depends-on): Likewise.
77579         * modules/xnanosleep (Depends-on): Likewise.
77580         * modules/xstrtod (Depends-on): Likewise.
77581         * modules/yesno (Depends-on): Likewise.
77582
77583 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77584
77585         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77586         needless checks.
77587
77588 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77589
77590         Merge from coreutils.  Among other things,
77591         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77592         * lib/fd-safer.c: New file.
77593         * lib/fcntl-safer.h, open-safer.c: Remove.
77594         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77595         * lib/dup-safer.c: Include unistd-safer.h first.
77596         Don't include errno.h.
77597         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77598         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77599         * lib/file-type.c: Rely on file-type.h change.
77600         * lib/getloadavg.c: Include unistd-safer.h.
77601         (getloadavg): Use safer open.
77602         * lib/getusershell.c: Include "stdio-safer.h".
77603         (getusershell): Use safer fopen.
77604         * lib/long-options.c (long_options): Use NULL rather than 0.
77605         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77606         'free'.
77607         * lib/modechange.c: Likewise.
77608         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77609         (MODE_DONE): New constant.
77610         (struct mode_change): Remove 'next' member.
77611         (make_node_op_equals): New function; like the old one of the
77612         same name, except it allocates an array.
77613         (mode_compile, mode_create_from_ref): Use it.
77614         (mode_compile): Allocate result as an array, not a linked list.
77615         Parse octal string ourself, so that we catch mistakes like "+0".
77616         (mode_adjust): Arg is an array, not a linked list.
77617         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77618         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77619         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77620         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77621         Remove.  This is now stat-macros.h's job.
77622         (talloc): Remove.  All callers replaced by xalloc, so that
77623         our invokers don't have to worry about reporting memory failures.
77624         (make_node_op_equals): Remove.
77625         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77626         New constants.
77627         (struct mode_change): Moved here from modechange.h.
77628         (mode_append_entry): Remove.
77629         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77630         apps to have incorrect behavior.  Use simpler algorithm for head
77631         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77632         Detect more invalid usages rather than having somewhat-random behavior.
77633         Don't insert an "a=" action, as that leads to incorrect behavior.
77634         (mode_compile, mode_create_from_ref): Return NULL on error instead
77635         of an enum, since now there's only one way to have an error.  All
77636         callers changed.
77637         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77638         at the correct time.  Simplify calculation of "+u" and its ilk.
77639         Don't mishandle "+X".
77640         (mode_free): Remove "register" and localize decls.
77641         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77642         (struct mode_change): Move to modechange.c; callers don't
77643         need to see this stuff.
77644         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77645         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77646         (mode_change, mode_adjust): Reflect the new signatures noted above.
77647         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77648         that might redefine system include files.
77649         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77650         (my_usleep): Use NULL rather than (void *) 0.
77651         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77652         Use siginterrupt to specify that system calls should be interrupted.
77653         (rpl_nanosleep): Move initialization of suspended closer to call of
77654         my_usleep.
77655         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77656         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77657         (desirable_utmp_entry): New function.
77658         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77659         using x2nrealloc, to simplify logic.
77660         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77661         size calculation.  Do not assume utmp file is a regular file.
77662         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77663         (READ_UTMP_CHECK_PIDS): New constant.
77664         * lib/save-cwd.c: Include unistd-safer.h.
77665         (save_cwd): Use fd_safer.
77666         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77667         [!_LIBC] Include "stat-macros.h" instead.
77668         * lib/unistd-safer.h (fd_safer): New decl.
77669
77670 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77671
77672         * modules/getloadavg (Depends-on): Add unistd-safer.
77673         * modules/getusershell (Depends-on): Add stdio-safer.
77674         * modules/lstat (Depends-on): Remove xalloc.
77675         * modules/mkstemp (Depends-on): Add stat-macros.
77676         * modules/modechange (Depends-on): Remove xstrtol.
77677         Add stat-macros, xalloc.
77678         * modules/save-cwd (Depends-on): Add unistd-safer.
77679         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77680         * modules/unistd-safer (Files): Add lib/fd-safer.c
77681         (Makefile.am): Remove lib_SOURCES.
77682
77683         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77684         Remove fcntl-safer; unistd-safer supersedes it.
77685
77686 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77687
77688         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77689         AC_HEADER_STAT.
77690         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77691         (gl_PREREQ_CHOWN): Remove.
77692         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77693         it.  Don't require AC_HEADER_STAT.
77694         (gl_PREREQ_LSTAT): Remove.
77695         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77696         Don't require AC_HEADER_STAT.
77697         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77698         (gl_PREREQ_RMDIR): Remove.
77699         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77700         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77701         the stat-macros module a prerequisite.
77702         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77703         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77704         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77705         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77706         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77707         variable names.
77708         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77709         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77710         variable prefixes.
77711         * m4/fcntl-safer.m4: Remove.
77712         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77713         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77714         Invoke gl_PREREQ_FD_SAFER.
77715         (gl_PREREQ_FD_SAFER): New macro.
77716         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77717         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77718         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77719         Remove duplicate call to AC_LIBOBJ(readutmp).
77720         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77721
77722         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77723         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77724
77725 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77726
77727         * MODULES.html.sh (Misc): Add byteswap.
77728
77729 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77730
77731         * modules/getcwd (Depends-on): Add extensions.
77732         * modules/openat (Depends-on): Likewise.
77733
77734 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77735
77736         * modules/byteswap: New file.
77737
77738 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77739
77740         * m4/byteswap.m4: New file.
77741
77742 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77743
77744         * lib/byteswap_.h: New file.
77745
77746 2005-04-25  Karl Berry  <karl@gnu.org>
77747
77748         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77749
77750 2005-04-25  Albert Chin  <china@thewrittenword.com>
77751
77752         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77753         Toolkit C bug.
77754
77755 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77756
77757         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77758         (func_ln_if_changed): Remove forcibly for no error message
77759         in case file does not exist.
77760
77761 2005-04-19  Simon Josefsson  <jas@extundo.com>
77762
77763         * gnulib-tool (Options): Make --symlink mean --symbolic.
77764
77765 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77766
77767         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77768
77769 2005-04-16  Simon Josefsson  <jas@extundo.com>
77770
77771         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77772
77773 2005-04-15  Simon Josefsson  <jas@extundo.com>
77774
77775         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77776
77777 2005-04-15  Simon Josefsson  <jas@extundo.com>
77778
77779         * gnulib-tool: Rename --symlink to --symbolic.
77780
77781 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77782
77783         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77784         symbolic links to files instead of copying/moving.  Add --aux-dir,
77785         specifying directory relative --dir where auxiliary build tools
77786         are placed.
77787
77788 2005-04-14  Bruno Haible  <bruno@clisp.org>
77789
77790         * modules/allocsa (License): Change to LGPL.
77791         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77792
77793 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77794
77795         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77796         that "UTC +1 second" continues to work.  Problem reported
77797         by Dmitry V. Levin.
77798         (relunit_snumber): New rule.
77799         (relunit): Use it.
77800
77801 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77802
77803         * lib/getdate.y (universal_time_zone_table): New constant.
77804         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77805         universal_time_zone_table.
77806         (lookup_zone): Prefer universal_time_zone_table to
77807         local_time_zone_table, so that "GMT" time stamps are allowed in
77808         London during the summer.  Problem reported by Ian Abbott.
77809
77810 2005-04-12  Jim Meyering  <jim@meyering.net>
77811
77812         * lib/human.c (humblock): Set *options even when returning due to
77813         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77814         warning from gcc-4.
77815
77816 2005-04-09  Jim Meyering  <jim@meyering.net>
77817
77818         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77819         -Wuninitialized: initialize tm0.tm_year.
77820
77821 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77822
77823         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77824         count, since there's no maximum.  All uses changed.
77825         Add member dsts_seen.
77826         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77827         not being INT_MAX.
77828         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77829         Use pc_rels_seen to decide whther a date is absolute.
77830
77831         * lib/getdate.y (number): Don't overwrite year.
77832         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77833         check.
77834
77835 2005-04-02  Simon Josefsson  <jas@extundo.com>
77836
77837         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77838         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77839
77840 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77841
77842         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77843         where no absolute path name can be longer than PATH_MAX.
77844
77845 2005-03-27  Jim Meyering  <jim@meyering.net>
77846
77847         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77848
77849 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77850
77851         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77852         "one's complement" -> "ones' complement" in comment, as per Knuth.
77853         "value of type" -> "type or expression" in comment.
77854         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77855
77856 2005-03-26  Jim Meyering  <jim@meyering.net>
77857
77858         Comment nits.
77859         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77860         Correct typos: s/or/of/.
77861
77862 2005-03-26  Jim Meyering  <jim@meyering.net>
77863
77864         * modules/check-include-files: Move to ../ and rename to...
77865         * check-module: ...this.
77866
77867 2005-03-25  Jim Meyering  <jim@meyering.net>
77868
77869         * modules/xvasprintf (Files): Add xalloc.h.
77870
77871 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77872
77873         * modules/gettext (Files): config/config.rpath ->
77874         build-aux/config.rpath
77875         * modules/iconv (Files): Likewise.
77876         Problem reported by Oskar Liljeblad.
77877
77878 2005-03-23  Jim Meyering  <jim@meyering.net>
77879
77880         * modules/check-include-files: New script to check for
77881         missing dependencies, multiple includes, etc.
77882
77883         * modules/c-strtold (Depends-on): Add xalloc.
77884         * modules/c-strtod (Depends-on): Add xalloc.
77885         * modules/hash (Depends-on): Add xalloc.
77886         (Files): Remove lib/xalloc.h.
77887
77888         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77889         * modules/userspec (Files): Add lib/inttostr.h.
77890
77891 2005-03-23  Jim Meyering  <jim@meyering.net>
77892
77893         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77894
77895 2005-03-22  Jim Meyering  <jim@meyering.net>
77896
77897         * modules/stat-macros: New module.
77898         * modules/canonicalize, modules/euidaccess, modules/file-type,
77899         * modules/filemode, modules/lchown, modules/makepath,
77900         * modules/rmdir, modules/stat: Depend on new stat-macros module
77901         rather than listing lib/stat-macros.h manually.
77902         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77903
77904 2005-03-22  Jim Meyering  <jim@meyering.net>
77905
77906         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77907
77908 2005-03-22  Bruno Haible  <bruno@clisp.org>
77909
77910         * config/srclist.txt: Replace target directory 'config' with
77911         'build-aux'.
77912         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77913         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77914         ../build-aux/.
77915
77916 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77917
77918         * modules/chdir-long (Depends-on): Add mempcpy.
77919
77920         * modules/acl, modules/backupfile, modules/c-strtod,
77921         modules/c-strtold, modules/canon-host, modules/canonicalize,
77922         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77923         modules/exclude, modules/exitfail, modules/file-type,
77924         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77925         modules/getdate, modules/getline, modules/getpagesize,
77926         modules/getpass, modules/getugroups, modules/group-member,
77927         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77928         modules/inttostr, modules/long-options, modules/makepath,
77929         modules/md5, modules/memcasecmp, modules/memcoll,
77930         modules/modechange, modules/mountlist, modules/path-concat,
77931         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77932         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77933         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77934         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77935         modules/strftime, modules/strndup, modules/strverscmp,
77936         modules/timespec, modules/unlocked-io, modules/userspec,
77937         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77938         modules/yesno:
77939         Remove lib_SOURCES line from Makefile.am section, as this is now
77940         done automatically by the corresponding Autoconf macro.
77941
77942 2005-03-21  Jim Meyering  <jim@meyering.net>
77943
77944         Changes imported from coreutils.
77945
77946         * lib/cycle-check.c: Don't include xalloc.h.
77947
77948         * lib/path-concat.c: Don't include assert.h.
77949         (path_concat): Remove assertion that would have triggered
77950         for ABASE starting with more than one slash.
77951         Reported by Andreas Schwab.
77952
77953         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77954         properly when ABASE is an absolute file name.
77955         Correct the description of this function.
77956         Include <assert.h>.
77957         Add an assertion and a test driver.
77958         This fixes a bug introduced on 2004-07-02.
77959         Andreas Schwab reported the resulting failure of cp --parents:
77960         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77961
77962 2005-03-21  Jim Meyering  <jim@meyering.net>
77963
77964         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77965         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77966
77967 2005-03-21  Jim Meyering  <jim@meyering.net>
77968         and  Paul Eggert  <eggert@cs.ucla.edu>
77969
77970         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77971         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77972         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77973         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77974         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77975         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77976         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77977         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77978         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77979         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77980         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77981         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77982         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77983         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77984         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77985         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77986         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77987         for these modules.
77988
77989 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77990
77991         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77992         (which shouldn't happen), generate nothing instead of returning 0
77993         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77994
77995 2005-03-16  Bruno Haible  <bruno@clisp.org>
77996
77997         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77998         HAVE_LONGLONG_64BIT.
77999
78000 2005-03-16  Bruno Haible  <bruno@clisp.org>
78001
78002         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78003         HAVE_LONGLONG_64BIT.
78004
78005 2005-03-16  Bruno Haible  <bruno@clisp.org>
78006
78007         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78008         HAVE_LONGLONG_64BIT.
78009
78010 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78011
78012         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78013         reliably distinguish strftime failure from empty output on POSIX
78014         hosts.
78015
78016 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78019         (iconv_string): Don't guess a size-zero buffer, as that might cause
78020         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78021         result would be 'too large', where 'too large' is (heuristically)
78022         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78023         overflow concerns.  This will prevent some unwanted malloc failures
78024         when the inputs are very large.
78025
78026 2005-03-15  Karl Berry  <karl@gnu.org>
78027
78028         * config/srclist.txt (config.rpath): from gettext.
78029         * config/config.rpath: update.
78030
78031 2005-03-15  Bruno Haible  <bruno@clisp.org>
78032
78033         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78034         to 'negate'.
78035
78036         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78037         variable.
78038
78039         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78040         results.
78041
78042 2005-03-14  Simon Josefsson  <jas@extundo.com>
78043
78044         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78045         <fx@gnu.org>.
78046
78047 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78048
78049         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78050         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78051         intprops.h.
78052         * lib/strtol.c: Likewise.
78053
78054 2005-03-14  Jim Meyering  <jim@meyering.net>
78055
78056         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78057         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78058         to be nonzero so that we (and caller) can detect the difference
78059         between a valid zero-length expansion and an error return, even
78060         when the underlying strftime fails before writing anything into
78061         that location.
78062
78063 2005-03-14  Bruno Haible  <bruno@clisp.org>
78064
78065         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78066         Update from GNU gettext 0.14.3.
78067
78068 2005-03-10  Jim Meyering  <jim@meyering.net>
78069
78070         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78071
78072 2005-03-10  Jim Meyering  <jim@meyering.net>
78073
78074         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78075         so that this module works on systems without fchdir.
78076
78077 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78078
78079         Factor int-properties macros into a single file, except for
78080         glibc-related files.
78081         * lib/intprops.h: New file.
78082         * lib/getloadavg.c: Include it instead of limits.h.
78083         (INT_STRLEN_BOUND): Remove.
78084         * lib/human.c: Include intprops.h.
78085         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78086         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78087         302/1000.
78088         * lib/inttostr.h: Include intprops.h instead of limits.h.
78089         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78090         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78091         for consistency with intprops.h.
78092         (time_t_is_integer, twos_complement_arithmetic): Use them.
78093         * lib/sig2str.h: Include <signal.h>, intprops.h.
78094         (INT_STRLEN_BOUND): Remove.
78095         * lib/strftime.c (TYPE_SIGNED): Remove.
78096         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78097         * lib/strtol.c: Adjust comments to match intprops.h.
78098         * lib/userspec.c: Include intprops.h.
78099         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78100         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78101         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78102         instead of rolling our own expressions.
78103         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78104
78105         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78106         instead of int.
78107         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78108         the right thing even if adding 1900 would overflow.  Similarly
78109         for tm_mon + 1 and tm_yday + 1.
78110         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78111         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78112         (DO_SIGNED_NUMBER): New macro.
78113         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78114
78115 2005-03-07  Bruno Haible  <bruno@clisp.org>
78116
78117         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78118
78119 2005-03-07  Bruno Haible  <bruno@clisp.org>
78120
78121         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78122
78123 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78124
78125         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78126         (func_import): Only replace files via --import when they have actually
78127         changed.
78128
78129 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78130
78131         * m4/mmap-anon.m4: New file.
78132         * m4/pagealign_alloc.m4: New file.
78133
78134 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78135             Bruno Haible  <bruno@clisp.org>
78136
78137         * modules/pagealign_alloc: New file.
78138         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78139
78140 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78141             Bruno Haible  <bruno@clisp.org>
78142
78143         * lib/pagealign_alloc.h: New file.
78144         * lib/pagealign_alloc.c: New file.
78145
78146 2005-03-03  Bruno Haible  <bruno@clisp.org>
78147
78148         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78149         Use an all-permissive copyright notice, recommended by RMS.
78150
78151 2005-03-02  Bruno Haible  <bruno@clisp.org>
78152
78153         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78154         of AIX, the replacement has to be done only after <string.h> is
78155         included, therefore not in config.h. stpncpy.h does the replacement,
78156         and stpncpy.c uses it.
78157
78158 2005-03-02  Bruno Haible  <bruno@clisp.org>
78159
78160         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78161         stpncpy.c uses it.
78162
78163 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78164
78165         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78166         The workaround isn't strictly needed for POSIX conformance, and
78167         it's too much of a pain to configure and maintain.  We'll ask
78168         people to fix their kernels instead.
78169         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78170         (NANOSLEEP_BUG_WORKAROUND): Remove.
78171         (xnanosleep): Remove the workaround.
78172
78173 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78174
78175         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78176         Reported by Derek Price.
78177         (Include): Add "timespec.h".
78178
78179         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78180
78181 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78182
78183         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78184         to detect nanosleep bug.
78185
78186 2005-03-01  Bruno Haible  <bruno@clisp.org>
78187
78188         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78189
78190 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78191
78192         * modules/gethrxtime: New file.
78193         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78194         (Depends-on): Add gethrxtime.
78195         (configure.ac): Add gl_XNANOSLEEP.
78196         (Makefile.am): Remove lib_SOURCES line.
78197
78198 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78199
78200         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78201         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78202
78203 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78204
78205         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78206         * lib/timespec.h (gettime): Return void, since it always
78207         succeeds now.  All uses changed.
78208         * lib/gettime.c (gettime): Likewise.
78209         [HAVE_NANOTIME]: Prefer nanotime.
78210         Assume gettimeofday succeeds, as POSIX requires.
78211         Assime time () succeeds, since other code already does.
78212         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78213         (timespec_subtract): Remove.
78214         (NANOSLEEP_BUG_WORKAROUND): New constant.
78215         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78216         things considerably.  Use it only on GNU/Linux hosts, since the
78217         workaround shouldn't be needed elsewhere.
78218
78219 2005-02-24  Bruno Haible  <bruno@clisp.org>
78220
78221         * modules/gettext (Files): Add m4/glibc2.m4.
78222
78223 2005-02-24  Bruno Haible  <bruno@clisp.org>
78224
78225         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78226         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78227         * m4/progtest.m4:
78228         Update from GNU gettext 0.14.2.
78229         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78230
78231 2005-02-24  Bruno Haible  <bruno@clisp.org>
78232
78233         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78234         * lib/config.charset: Update from GNU gettext 0.14.2.
78235
78236 2005-02-24  Bruno Haible  <bruno@clisp.org>
78237
78238         * lib/gettext.h: Update from GNU gettext 0.14.2.
78239
78240 2005-02-23  Simon Josefsson  <jas@extundo.com>
78241
78242         * m4/iconvme.m4: New file.
78243
78244 2005-02-23  Jim Meyering  <jim@meyering.net>
78245
78246         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78247         change.
78248         Thanks to Bruno Haible for catching it.
78249
78250 2005-02-22  Simon Josefsson  <jas@extundo.com>
78251
78252         * modules/iconvme: New file.
78253
78254         * MODULES.html.sh: Add iconvme.
78255
78256 2005-02-22  Simon Josefsson  <jas@extundo.com>
78257
78258         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78259
78260 2005-02-22  Simon Josefsson  <jas@extundo.com>
78261
78262         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78263
78264 2005-02-22  Jim Meyering  <jim@meyering.net>
78265
78266         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78267         s/ifndef/ifdef/.
78268
78269 2005-02-20  Neil Conway  <neilc@samurai.com>
78270
78271         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78272         returned by OSX/Darwin if the specified buffer is not large
78273         enough for the hostname.
78274
78275 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78276
78277         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78278         pass it to _help, otherwise the latter coredumps trying to
78279         dereference state.root_argp.
78280
78281 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78282
78283         * modules/chdir-long (Depends-on): Add memrchr.
78284         * modules/memrchr (Files): Add lib/memrchr.h.
78285         (Include): "memrchr.h".
78286
78287 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78288
78289         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78290
78291 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78292
78293         * lib/memrchr.h: New file.
78294         * lib/chdir-long.c: Include it.
78295         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78296         Don't bother including stddef.h.
78297
78298 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78299
78300         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78301         inclusion.
78302         Include <sys/types.h>, for dev_t.
78303         (ME_DUMMY, ME_REMOTE): Move from here....
78304         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78305         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78306         Dmitry V. Levin.
78307         Include mountlist.h first, to test the interface.
78308
78309 2005-01-29  Bruno Haible  <bruno@clisp.org>
78310
78311         * lib/progname.c (program_name): Initialize.
78312         Needed when linking statically on MacOS X.
78313
78314 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78315
78316         Sync from coreutils.
78317         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78318         (Depends-on): Add c-strtod.
78319         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78320
78321 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78322
78323         Sync from coreutils.
78324         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78325
78326         Remove files that are specific to coreutils.
78327         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78328
78329 2005-01-28  Bruno Haible  <bruno@clisp.org>
78330
78331         * modules/javacomp: New file.
78332         * MODULES.html.sh (Java): Add javacomp.
78333
78334 2005-01-28  Bruno Haible  <bruno@clisp.org>
78335
78336         * m4/javacomp.m4: New file, from GNU gettext.
78337
78338 2005-01-28  Bruno Haible  <bruno@clisp.org>
78339
78340         * lib/javacomp.sh.in: New file, from GNU gettext.
78341         * lib/javacomp.h: New file, from GNU gettext.
78342         * lib/javacomp.c: New file, from GNU gettext.
78343
78344 2005-01-26  Simon Josefsson  <jas@extundo.com>
78345
78346         * lib/gai_strerror.c: Use GPL in header.
78347
78348 2005-01-26  Bruno Haible  <bruno@clisp.org>
78349
78350         * modules/javaexec: New file.
78351         * MODULES.html.sh (Java): Add javaexec.
78352
78353 2005-01-26  Bruno Haible  <bruno@clisp.org>
78354
78355         * m4/javaexec.m4: New file, from GNU gettext.
78356
78357 2005-01-26  Bruno Haible  <bruno@clisp.org>
78358
78359         * lib/javaexec.sh.in: New file, from GNU gettext.
78360         * lib/javaexec.h: New file, from GNU gettext.
78361         * lib/javaexec.c: New file, from GNU gettext.
78362
78363 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78364
78365         * modules/lchown (Depends-on): Remove lchown.h
78366
78367 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78368
78369         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78370         must be defined if the header file was not found, in order
78371         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78372
78373 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78374
78375         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78376         initializers for struct pentry_state.
78377         (__argp_error): Check return value of __asprintf
78378         (__argp_failure): Translate error message
78379
78380         * lib/argp-parse.c: Removed braces around the expansion of N_()
78381
78382 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78383
78384         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78385         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78386         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78387         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78388         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78389         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78390         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78391         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78392         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78393         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78394         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78395         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78396         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78397         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78398         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78399         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78400         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78401         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78402         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78403         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78404         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78405         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78406         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78407         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78408         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78409         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78410         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78411         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78412         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78413         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78414         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78415         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78416         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78417         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78418         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78419         Use an all-permissive copyright notice, recommended by RMS.
78420
78421 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78422
78423         * modules/chdir-long (Depends-on): Remove mempcpy.
78424
78425 2005-01-21  Jim Meyering  <jim@meyering.net>
78426
78427         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78428         same value as for Solaris 9.
78429
78430         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78431         component length.  This included changing the parameter to be
78432         of type `char *' rather than `char const *'.
78433         * lib/chdir-long.h (chdir_long): Update prototype.
78434
78435         * lib/openat.c (fdopendir, fstatat): New functions.
78436         * lib/openat.h: Include headers required for use of DIR and struct
78437         stat.
78438         [AT_SYMLINK_NOFOLLOW]: Define.
78439         (fdopendir, fstatat): Add prototypes.
78440
78441 2005-01-21  Bruno Haible  <bruno@clisp.org>
78442
78443         * modules/classpath: New file.
78444         * MODULES.html.sh (Java): Add classpath.
78445
78446 2005-01-21  Bruno Haible  <bruno@clisp.org>
78447
78448         * lib/classpath.h: New file, from GNU gettext.
78449         * lib/classpath.c: New file, from GNU gettext.
78450
78451 2005-01-20  Simon Josefsson  <jas@extundo.com>
78452
78453         * modules/version-etc-fsf: New file.
78454
78455 2005-01-20  Simon Josefsson  <jas@extundo.com>
78456
78457         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78458         * lib/version-etc.c: Remove version_etc_copyright.
78459         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78460         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78461
78462 2005-01-20  Simon Josefsson  <jas@extundo.com>
78463
78464         * lib/base64.h (isbase64): Add.
78465
78466         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78467         using a unsigned prototype, don't inline.
78468         (base64_decode): Use it.
78469
78470 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78471
78472         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78473         it.
78474
78475 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78476
78477         * lib/save-cwd.c (save_cwd): Remove code to support the case
78478         where fchdir is missing or flaky.
78479
78480 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78481
78482         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78483
78484 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78485
78486         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78487         AC_LIBSOURCES now does this.
78488         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78489         with new ullong_max module.
78490
78491 2005-01-19  Bruno Haible  <bruno@clisp.org>
78492
78493         * modules/sh-quote: New file.
78494         * MODULES.html.sh (Executing programs): Add sh-quote.
78495
78496 2005-01-19  Bruno Haible  <bruno@clisp.org>
78497
78498         * lib/sh-quote.h: New file, from GNU gettext.
78499         * lib/sh-quote.c: New file, from GNU gettext.
78500
78501 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78502
78503         Merge from coreutils.
78504         * m4/ullong_max.m4: New file.
78505         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78506         (gl_MACROS): Assume localeconv exists.
78507
78508 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78509
78510         Merge changes from coreutils, as described below in several
78511         changelogs dated today.
78512
78513         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78514         (O_DIRECTORY): Remove; not needed here, since "." must be
78515         a directory.  All uses removed.
78516         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78517         universal on Suns, and we also need to test for IRIX.
78518         Revamp code to use 'if' rather than '#if'.
78519         Avoid unnecessary comparison of cwd->desc to 0.
78520
78521         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78522         for known valid error numbers rather than observed invalid ones.
78523
78524 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78525
78526         * modules/ullong_max: New file.
78527
78528         * modules/chdir-long, modules/openat: New files.
78529         * modules/save-cwd (Depends-on): Depend on chdir-long.
78530         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78531
78532 2005-01-18  Jim Meyering  <jim@meyering.net>
78533
78534         Merge from coreutils.
78535         * m4/chdir-long.m4, m4/openat.m4: New files.
78536         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78537         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78538         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78539         is sane and DOES follow symlinks.  Besides, testing 20 different
78540         systems found no broken chown implementations.
78541         Prompted by a change in rsync's copy of this macro.
78542         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78543
78544         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78545
78546         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78547         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78548         NULL-means-set-to-current-time semantics.
78549         Remove temporary file immediately, rather than waiting
78550         for configure's at-exit trap code to do it.
78551
78552 2005-01-18  Jim Meyering  <jim@meyering.net>
78553
78554         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78555
78556         * lib/utimens.c (futimens): Account for the fact that futimes
78557         can also fail with errno == ENOSYS or errno == ENOENT.
78558         Patch from Dmitry V. Levin.
78559
78560         Change the name of the robust chdir function from chdir to chdir_long.
78561         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78562         (restore_cwd): Use chdir_long, not chdir.
78563         * lib/chdir-long.c: Renamed from chdir.c.
78564         * lib/chdir-long.h: Renamed from chdir.h.
78565         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78566         Hurd.
78567
78568 2005-01-18  Bruno Haible  <bruno@clisp.org>
78569
78570         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78571         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78572         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78573         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78574         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78575         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78576         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78577         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78578         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78579         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78580         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78581         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78582         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78583         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78584         Use an all-permissive copyright notice, recommended by RMS.
78585
78586 2005-01-18  Bob Proulx  <bob@proulx.com>
78587
78588         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78589         simplify offsetof() macro construct to avoid compile failure with
78590         native HP-UX 11.0 ANSI C compiler.
78591
78592 2005-01-17  Bruno Haible  <bruno@clisp.org>
78593
78594         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78595         redundant because stpncpy.m4 takes care of it.
78596
78597 2005-01-17  Bruno Haible  <bruno@clisp.org>
78598
78599         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78600
78601 2005-01-17  Bruno Haible  <bruno@clisp.org>
78602
78603         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78604         used.
78605
78606 2005-01-17  Bruno Haible  <bruno@clisp.org>
78607
78608         * lib/fwriteerror.h (fwriteerror): Change specification to include
78609         fclose.
78610         * lib/fwriteerror.c: Include <stdbool.h>.
78611         (fwriteerror): At the end, close the file stream. Record whether
78612         stdout was already closed.
78613
78614 2005-01-17  Bruno Haible  <bruno@clisp.org>
78615
78616         * lib/execute.c (environ): Declare if needed.
78617         * lib/pipe.c (environ): Likewise.
78618         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78619
78620 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78621
78622         * modules/argp: Depend on vsnprintf
78623
78624 2005-01-10  Jim Meyering  <jim@meyering.net>
78625
78626         * modules/closeout (Depends-on): Add atexit.
78627
78628 2005-01-06  Bruno Haible  <bruno@clisp.org>
78629
78630         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78631
78632 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78633
78634         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78635         definitions to be after all include files, to avoid collisions.
78636         Problem reported by Bob Proulx.
78637
78638 2005-01-04  Jim Meyering  <jim@meyering.net>
78639
78640         Changes imported from coreutils.
78641         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78642         as the mkstemp template, use a temporary directory and an
78643         8.3-friendly template to avoid trouble on systems like DJGPP.
78644         Reported by Juan M. Guerrero via Stepan Kasal.
78645         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78646         close. Remove the temporary directory right away, rather than waiting
78647         for configure's at-exit trap code to do it.
78648         Suggestion from Stepan Kasal.
78649
78650 2005-01-01  Simon Josefsson  <jas@extundo.com>
78651
78652         * gnulib-tool: Print #include directives when --import'ing.
78653
78654 2004-12-28  Simon Josefsson  <jas@extundo.com>
78655
78656         * tests/test-base64.c: Include required header files.  Remove
78657         unused variables.
78658
78659 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78660
78661         * modules/error (Depends-on): Remove gettext.
78662
78663 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78664
78665         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78666         not needed.  This removes a dependency on the gettext module.
78667         [defined _LIBC]: Do not include <libintl.h>; not needed.
78668
78669 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78670
78671         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78672         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78673
78674 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78675
78676         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78677         HAVE_DECL_STRTOLD.
78678
78679 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78680
78681         * modules/getdate (Depends-on): Remove alloca-opt.
78682
78683 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78684
78685         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78686
78687 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78688
78689         * lib/argp-parse.c: Include <stddef.h>.
78690         (alignof, alignto): New macros.
78691         (parser_init): Don't assume that void * is aligned sufficiently
78692         for struct option.
78693
78694         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78695         need to extend the stack.
78696         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78697         large.
78698
78699 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78700
78701         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78702
78703 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78706         (2004-10-24) change.  Apparently this was a false alarm.
78707
78708         * modules/getdate: Depend on alloca-opt, not alloca.
78709
78710 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78711
78712         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78713         Remove now-obsolete comment about AIX.
78714         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78715         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78716         (YYMAXDEPTH): New macro.
78717
78718 2004-12-18  Simon Josefsson  <jas@extundo.com>
78719
78720         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78721
78722 2004-12-18  Bruno Haible  <bruno@clisp.org>
78723
78724         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78725
78726 2004-12-18  Bruno Haible  <bruno@clisp.org>
78727
78728         * lib/fatal-signal.c (fatal_signals): Make non-const.
78729         (init_fatal_signals): New function.
78730         (uninstall_handlers, install_handlers): Ignore signals that were set to
78731         SIG_IGN.
78732         (at_fatal_signal): Call init_fatal_signals.
78733         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78734         SIG_IGN.
78735         Reported by Paul Eggert.
78736
78737 2004-12-18  Bruno Haible  <bruno@clisp.org>
78738
78739         * doc/alloca.texi: New file.
78740         * doc/alloca-opt.texi: New file.
78741
78742 2004-12-17  Jim Meyering  <jim@meyering.net>
78743
78744         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78745         Otherwise, install-sh could exit with improper exit status when
78746         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78747
78748 2004-12-16  Simon Josefsson  <jas@extundo.com>
78749
78750         * tests/test-base64.c: Add license.
78751
78752 2004-12-15  Stepan Kasal  <address@hidden>
78753
78754         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78755
78756 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         * modules/getcwd (Files): Add m4/d-ino.m4.
78759         Suggested by Mark D. Baushke.
78760
78761 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78762
78763         * lib/getdate.y (textint): New member "negative".
78764         (time_zone_hhmm): New function.
78765         Expect 14 shift-reduce conflicts, not 13.
78766         (o_colon_minutes): New rule.
78767         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78768         (yylex): Set the "negative" member of signed numbers.
78769
78770 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78771
78772         * doc/getdate.texi (Time of day items, Time zone items):
78773         Describe new formats +00:00, UTC+00:00.
78774
78775 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78776
78777         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78778         spurious "-l"s.  Problem reported by Stepan Kasal.
78779
78780 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78781
78782         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78783         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78784
78785 2004-12-04  Simon Josefsson  <jas@extundo.com>
78786
78787         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78788         Vandoorselaere <yoann@prelude-ids.org>.
78789
78790 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78791
78792         Changes imported from coreutils.
78793         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78794         exist.
78795         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78796
78797 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         Changes imported from coreutils.
78800         * lib/hard-locale.c: Assume <locale.h> exists.
78801         Include "strdup.h".
78802         (GLIBC_VERSION): New macro.
78803         (hard_locale): Assume setlocale exists.
78804         Rewrite to avoid #ifdef.
78805         Use strdup rather than malloc + strcpy.
78806         * lib/human.c: Assume <locale.h> exists.
78807         (human_readable): Assume localeconv exists.
78808
78809 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78810
78811         * modules/hard-locale (Depends-on): Add strdup.
78812
78813 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78814
78815         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78816         convert T2, not T.  (Imported from libc.)
78817
78818 2004-11-30  Simon Josefsson  <jas@extundo.com>
78819
78820         * modules/restrict (License): Change to LGPL.
78821
78822 2004-11-30  Simon Josefsson  <jas@extundo.com>
78823
78824         * m4/restrict.m4: Add copyright and copying conditions.
78825
78826 2004-11-30  Simon Josefsson  <jas@extundo.com>
78827
78828         * m4/base64.m4: New file.
78829
78830 2004-11-30  Simon Josefsson  <jas@extundo.com>
78831
78832         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78833         base64.
78834
78835         * tests/test-base64.c: New file.
78836
78837         * modules/base64: New file.
78838
78839 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78840
78841         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78842         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78843
78844         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78845
78846 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78847
78848         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78849         (__getcwd.c): Don't restore errno; glibc doesn't.
78850         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78851         first, falling back to our code only if its results look suspicious.
78852         Ensure that the resulting buffer is only as large as necessary.
78853
78854         * lib/readutmp.c: Include readutmp.h first.
78855         Include <errno.h>, since readutmp.h no longer does that.
78856         * lib/readutmp.h: Don't include <errno.h>,
78857         <sys/param.h>, <time.h>; not needed to establish interface.
78858         (errno): Remove decl.
78859         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78860         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78861         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78862
78863 2004-11-28  Simon Josefsson  <jas@extundo.com>
78864
78865         * lib/base64.h, base64.c: New file.
78866
78867 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78868
78869         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78870
78871 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78872
78873         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78874         (Depends-on): Remove pathmax, same.  Add mempcpy.
78875         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78876         (Makefile.am): Append getcwd.h to lib_SOURCES.
78877         (Include): Add getcwd.h.
78878         (Maintainer): Change from Jim Meyering to "all, glibc",
78879         since getdate now uses intended-for-glibc code.
78880         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78881         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78882
78883 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78886         HP's ANSI C compiler.
78887         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78888         Declaring int functions causes warnings on some modern systems and
78889         shouldn't be needed to compile on ancient ones.
78890         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78891         defined.
78892
78893         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78894         with the following changes.
78895         (__set_errno): Parenthesize properly.
78896         Include <stdbool.h>.
78897         (MIN, MAX, MATCHING_INO): New macros.
78898         (__getcwd): Define with prototype, not K&R form.
78899         Use heuristics to allocate default buffer on stack if possible.
78900         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78901         behavior, and to avoid the PATH_MAX limit when computing
78902         ../../../../...
78903         Use MATCHING_INO to compare inode number to file.
78904         Check for arithmetic overflow in size calculations.
78905         Fix bug in reallocation of dot array that caused getcwd to fail
78906         on directories nested deeper than 75.
78907         Be more careful about saving errno on error.
78908         Do not use realloc; use only free+malloc, as this is a bit
78909         more flexible and avoids a needless copy operation.
78910         Do not inspect st_dev and st_ino for symbolic links; POSIX
78911         doesn't specify the latter.
78912         Check for closedir errors.
78913         Avoid needless casts.
78914         Use "#ifdef weak_alias" around weak_alias, to be like other
78915         glibc code.
78916         The following changes to getcwd.c have effect only when used in
78917         gnulib; they have no effect inside glibc proper.
78918         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78919         as alloca isn't used.
78920         (alloca, __alloca): Likewise.
78921         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78922         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78923         unconditionally, as gnulib assumes C89 or better.
78924         Do not include <sys/param.h>.
78925         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78926         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78927         better.
78928         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78929         Include <dirent.h> in a way that is compatible with modern Autoconf.
78930         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78931         New macros, if not already defined.
78932         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78933         Use "_LIBC", not "defined _LIBC", for consistency.
78934         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78935         a mempcpy module.
78936         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78937         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78938         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78939         credit only to Jim Meyering and adjust the copyright dates.
78940         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78941         <stdlib.h>, <unistd.h>, "pathmax.h".
78942         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78943         (INITIAL_BUFFER_SIZE): Remove.
78944         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78945
78946 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78947
78948         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78949         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78950         Use the _ONCE methods, for efficiency.
78951         Check for fcntl.h.  In test program, include <errno.h>
78952         and <fcntl.h> if available.  Remove old K&R cruft from
78953         test program.  Check for common errors in GNU/Linux,
78954         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78955         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78956         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78957         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78958         name accordingly.
78959         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78960         accommodate new getcwd.c.
78961         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78962         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78963         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78964         that's all we need now.
78965
78966 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78967
78968         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78969         argp-parse.c depends on getopt internals, that means we should
78970         always use our getopt, to be on the safe side.
78971         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78972         order not to spoil the result of an eventual previous invocation
78973         of gl_GETOPT_SUBSTITUTE.
78974
78975 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78976
78977         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78978         redefinition warnings. To avoid them, include the defines
78979         in `#if !defined __need_getopt ... #endif'. The only place
78980         where __getopt_argv_const is used is in definitions
78981         of getopt_long and getopt_long_only below, which are as well
78982         protected by `#ifndef __need_getopt'.
78983         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78984         __need_getopt after including <stdio.h> and <unistd.h> These
78985         headers might have defined it.
78986
78987 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78988
78989         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78990
78991 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78992
78993         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78994         (futimens): New function, which uses futimes if available.
78995         (futimens, utimens): Support timespec==NULL, with same semantics
78996         as utime and utimens.
78997         * lib/utimens.h (futimens): New decl.
78998
78999 2004-11-23  Jim Meyering  <jim@meyering.net>
79000
79001         * lib/getopt_.h: Remove trailing blanks.
79002
79003 2004-11-23  Jim Meyering  <jim@meyering.net>
79004
79005         * lib/__fpending.c: Add comment.
79006
79007 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79008
79009         * modules/canonicalize (Depends-on): Add xreadlink.
79010         Problem reported by James Youngman.
79011
79012 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79013
79014         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79015         New macros.
79016         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79017         optopt): Use them instead of invoking ## directly; otherwise, the
79018         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79019
79020 2004-11-19  Bruno Haible  <bruno@clisp.org>
79021
79022         * lib/strtok_r.c: Move comments from here...
79023         * lib/strtok_r.h: ... to here.
79024
79025 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79026
79027         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79028         implementations that mishandle size_t overflow.
79029
79030 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79031
79032         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79033         might fail.  Problem reported by Yoann Vandoorselaere.
79034         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79035         implementations that mishandle size_t overflow.
79036
79037 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79038
79039         * modules/canon-host (Depends-on): Add strdup.
79040
79041 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79042
79043         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79044
79045 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79046
79047         * lib/canon-host.c: Include "strdup.h".
79048         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79049         Use strdup instead of malloc/strcpy to duplicate strings.
79050
79051         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79052         (human_space_before_unit): New constant.
79053         * lib/human.c (human_readable): Support it.
79054
79055         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79056         (xgetcwd): Set errno correctly when failing.
79057         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79058         the failure is actually due to a PATH_MAX problem.
79059
79060         Further getopt changes to make it more likely that glibc will
79061         buy the changes back.
79062         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79063         (getopt): Use it, so to preserve glibc semantic
79064         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79065         when compiling for libc.
79066         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79067         (getopt_long, getopt_long_only): Use it.
79068
79069         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79070         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79071         (getopt): Argv is now char * const *, as per standard.
79072         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79073         not char *__getopt_argv_const *.
79074         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79075         _getopt_long_only_r): Likewise.
79076         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79077         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79078         _getopt_long_r, _getopt_long_only_r): Likewise.
79079         * lib/getopt_.h (__getopt_argv_const): Remove.
79080         (getopt): Argv is now char * const *, as per standard.
79081
79082         * lib/getdate.y (tORDINAL): New token.
79083         (day, relunit): Allow it for relative times.
79084         (relative_time_table): Use tORDINAL for ordinals.
79085
79086 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79087
79088         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79089         Document that "second" isn't allowed as an ordinal number.
79090
79091 2004-11-16  Jim Meyering  <jim@meyering.net>
79092
79093         * modules/closeout (Depends-on): Add fpending.
79094
79095 2004-11-15  Jim Meyering  <jim@meyering.net>
79096
79097         * lib/closeout.c: Include "__fpending.h" once again.
79098         Include <stdbool.h>.
79099         (close_stdout): Don't fail just because stdout was closed initially,
79100         since some programs don't write to stdout in the normal course of
79101         operation (other than --version and --help), and we don't want this
79102         function to make e.g. `touch file >&-' fail.
79103         But do fail if it was closed and someone has tried to write to it.
79104         E.g., `printf foo >&-' must fail.
79105
79106 2004-11-13  Jim Meyering  <jim@meyering.net>
79107
79108         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79109
79110 2004-11-12  Simon Josefsson  <jas@extundo.com>
79111
79112         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79113         small doc fix is still pending.
79114
79115 2004-11-11  Simon Josefsson  <jas@extundo.com>
79116
79117         * modules/strtok_r: New file.
79118
79119         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79120         strtok_r.
79121
79122 2004-11-11  Simon Josefsson  <jas@extundo.com>
79123
79124         * m4/strtok_r.m4: New file.
79125
79126         * m4/getopt.m4: Replace opterr.
79127
79128 2004-11-11  Simon Josefsson  <jas@extundo.com>
79129
79130         * lib/strtok_r.h, strtok_r.c: New file.
79131
79132 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79133
79134         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79135         of replacing opterr, getopt, etc.  This should handle the
79136         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79137
79138 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79139
79140         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79141         we can stop lying to compilers about the constness of argv when we
79142         are compiled outside glibc.
79143         (getopt, getopt_long, getopt_long_only): Use it.
79144         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79145         _getopt_internal, getopt): Likewise.
79146         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79147         _getopt_long_only_r): Likewise.
79148         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79149         _getopt_long_r, _getopt_long_only_r): Likewise.
79150
79151         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79152         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79153         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79154         the other external symbols.
79155         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79156         declaration, since the above renaming now works around collisions.
79157
79158 2004-11-11  Jim Meyering  <jim@meyering.net>
79159
79160         * lib/linebreak.c: Remove trailing blanks.
79161         * lib/alloca_.h: Likewise.
79162         * lib/acosl.c: Likewise.
79163         * lib/euidaccess.c: Likewise.
79164         * lib/allocsa.h: Likewise.
79165
79166 2004-11-10  Simon Josefsson  <jas@extundo.com>
79167
79168         * m4/getaddrinfo.m4: New file.
79169
79170 2004-11-10  Simon Josefsson  <jas@extundo.com>
79171
79172         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79173
79174 2004-11-10  Simon Josefsson  <jas@extundo.com>
79175
79176         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79177         getaddrinfo.
79178
79179         * modules/getaddrinfo: New file.
79180
79181 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79182
79183         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79184
79185 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79186
79187         * lib/mktime.c (SHR): New macro, which is a portable
79188         substitute for >> that should work even on Crays.
79189         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79190         Problem reported by Mark D. Baushke in
79191         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79192         * lib/getdate.y (SHR): Likewise.
79193         (tm_diff): Use it.
79194         * lib/strftime.c (SHR): Likewise.
79195         (tm_diff): Use it.
79196         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79197         quote_these_too, so that right shifts are well defined.  All uses
79198         changed.
79199
79200 2004-11-10  Jim Meyering  <jim@meyering.net>
79201
79202         Ensure that no close failure goes unreported.
79203         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79204         return early when it seems there's nothing to flush.
79205         Don't include __fpending.h.
79206
79207 2004-11-10  Jim Meyering  <jim@meyering.net>
79208
79209         * modules/closeout (Depends-on): Remove fpending.
79210
79211 2004-11-10  Jim Meyering  <jim@meyering.net>
79212
79213         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79214
79215 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79216
79217         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79218         gl_FUNC_STRFTIME.
79219         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79220         and AC_REQUIRE when possible, to avoid duplicate checks.
79221         Check for <wchar.h>.
79222
79223 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79224
79225         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79226
79227 2004-11-09  Bruno Haible  <bruno@clisp.org>
79228
79229         * m4/sockpfaf.m4: New file.
79230
79231 2004-11-05  Bruno Haible  <bruno@clisp.org>
79232
79233         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79234         Reported by Mark D. Baushke <mdb@cvshome.org>.
79235
79236 2004-11-04  Bruno Haible  <bruno@clisp.org>
79237
79238         2004-09-11  Bruno Haible  <bruno@clisp.org>
79239                 * allocsa.valgrind: New file.
79240         2004-02-06  Bruno Haible  <bruno@clisp.org>
79241                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79242                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79243                 Reported by Christopher Seip <chris.seip@hp.com>.
79244
79245 2004-11-04  Bruno Haible  <bruno@clisp.org>
79246
79247         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79248         (Makefile.am): Distribute it.
79249
79250 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79251
79252         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79253         with errno == ERANGE if the buffer is too small.
79254         Problem reported by Mark D. Baushke.
79255
79256 2004-11-03  Albert Chin  <china@thewrittenword.com>
79257             Paul Eggert  <eggert@cs.ucla.edu>
79258
79259         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79260         equivalent, substitute $ac_type for equivalent type rather than
79261         blindly using uint32_t *always* which won't work if uint32_t is not
79262         available.  Define _UINT32_T to work around typedef of uint32_t if
79263         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79264         2.5.1.
79265
79266 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79267
79268         * m4/jm-macros.m4: Sync from coreutils.
79269         (gl_MACROS): Check for mbrlen, for pathchk.
79270         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79271
79272 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79273
79274         * lib/xreadlink.c (MAXSIZE): New macro.
79275         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79276         size does not exceed MAXSIZE.  Avoid cast.
79277         As suggested by Mark D. Baushke in
79278         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79279         if readlink fails with buffer size just under MAXSIZE, try again
79280         with MAXSIZE.
79281
79282 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79283
79284         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79285
79286 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79287         and  Paul Eggert  <eggert@cs.ucla.edu>
79288
79289         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79290         (get_date): Overparenthesize to avoid GCC warning.
79291
79292 2004-11-02  Bruno Haible  <bruno@clisp.org>
79293
79294         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79295         returns void.
79296
79297 2004-11-02  Bruno Haible  <bruno@clisp.org>
79298
79299         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79300         function returns void.
79301
79302 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79303
79304         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79305         fflush_unlocked, flockfile, funlockfile, funlockfile,
79306         fputs_unlocked, putc_unlocked.
79307
79308 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79309
79310         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79311         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79312         already declared.
79313
79314 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79315
79316         * modules/getdate (Files): Add doc/getdate.texi.
79317         (Depends-on): Add setenv, xalloc.
79318
79319 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79320
79321         * lib/getdate.y: Add support for TZ="foo" within a date string.
79322         Fix some bugs near time_t boundaries.  Reject dates with
79323         out-of-range components, e.g., "Sept 31".
79324         Include <stdlib.h>, "setenv.h", "xalloc.h".
79325         (ISDIGIT_LOCALE): Remove; unused.
79326         Note that the TZ and time functions used here are not reentrant.
79327         (mktime_ok, get_tz): New functions.
79328         (TZBUFSIZE): New constant.
79329         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79330         This requires that we sometimes generate our own TZ="XXX..." setting.
79331
79332 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79333
79334         * doc/getdate.texi: New file, from coreutils with modifications for
79335         the new TZ parsing.
79336
79337 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79338
79339         * lib/mktime.c (not_equal_tm): Remove redundant check.
79340
79341 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79342
79343         * modules/regex (lib_SOURCES): Add regex.c.
79344         Reported by James Youngman in
79345         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79346
79347 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79348
79349         * lib/getdate.y: Use Bison 1.875 features, and some minor
79350         code cleanups.  This change does not affect semantics.
79351         Don't include <stdlib.h>; no longer needed.
79352         Don't include unlocked-io.h; only the "#if TEST" code uses
79353         stdio, and performance isn't crucial there.
79354         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79355         Bison 1.875 features as described below.
79356         All uses of "PC." replaced by "pc->".
79357         (YYSTYPE): Add a forward declaration.
79358         (yylex, yyerror): Use full prototypes in forward decls.
79359         Use "%pure-parser" rather than obsolescent "%pure_parser".
79360         Use %parse-param and %lex-param instead of obsolescent
79361         YYPARSE_PARAM and YYLEX_PARAM.
79362         (meridian_table, month_and_day_table, time_units_table,
79363         relative_time_table, time_zone_table, military_table,
79364         lookup_zone, lookup_word, get_date):
79365         Use NULL instead of 0 where appropriate.
79366         (to_hour): Avoid abort (), to avoid a dependency on
79367         stdlib.h.
79368         (yyerror, yylex): Now accepts parser_control * arg.
79369         (main) [TEST]: Use '\0' rather than 0 for char.
79370
79371 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79372
79373         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79374
79375 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79376
79377         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79378         It's now the caller's responsibility to handle the case where
79379         !HAVE_GETPAGESIZE && !defined getpagesize.
79380
79381         * lib/mktime.c (leapyear): Arg is long int, not int.
79382
79383 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79384
79385         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79386
79387 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79388
79389         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79390         missing.  Problem reported by James Youngman.
79391
79392 2004-10-16  Simon Josefsson  <jas@extundo.com>
79393
79394         * gnulib-tool: Fix comments.  Fix parse problem.
79395         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79396
79397 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79398
79399         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79400         implementation of getopt_long.  Problem reported by Alexander Taler in:
79401         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79402
79403 2004-10-15  Bruno Haible  <bruno@clisp.org>
79404
79405         * gnulib-tool: Untabify. Initialize supplied_libname.
79406         (func_usage): More homogenous output.
79407         (func_modules_transitive_closure, func_modules_to_filelist,
79408         func_emit_lib_Makefile_am): New functions.
79409         (func_import): New function, extracted from big case statement. Use
79410         func_get_license, func_modules_transitive_closure,
79411         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79412         opt_lgpl. Don't use test -a, as it's not portable.
79413         (func_create_testdir): Use func_modules_transitive_closure,
79414         func_modules_to_filelist, func_emit_lib_Makefile_am.
79415
79416 2004-10-15  Bruno Haible  <bruno@clisp.org>
79417
79418         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79419
79420 2004-10-15  Bruno Haible  <bruno@clisp.org>
79421
79422         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79423         the portions belonging to each module.
79424         Suggested by Derek Robert Price <derek@ximbiot.com>.
79425
79426 2004-10-12  Simon Josefsson  <jas@extundo.com>
79427
79428         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79429         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79430         to real functions.
79431
79432 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79433
79434         * modules/vsnprintf: New file.
79435
79436 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79437
79438         * m4/vsnprintf.m4: New file.
79439
79440 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79441
79442         * lib/vsnprintf.h: New file.
79443         * lib/vsnprintf.c: New file.
79444
79445 2004-10-11  Bruno Haible  <bruno@clisp.org>
79446
79447         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79448         vsnprintf.
79449
79450 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79451
79452         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79453
79454 2004-10-07  Bruno Haible  <bruno@clisp.org>
79455
79456         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79457         fits into the provided buffer.
79458
79459 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79460
79461         * lib/diacrit.c, diacrit.h: Add GPL notice.
79462
79463         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79464         notice.
79465         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79466         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79467         This avoids a potential constant-folding bug.
79468
79469 2004-10-05  Bruno Haible  <bruno@clisp.org>
79470
79471         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79472         for the declaration of strsep.
79473
79474 2004-10-05  Bruno Haible  <bruno@clisp.org>
79475
79476         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79477
79478 2004-10-04  Simon Josefsson  <jas@extundo.com>
79479
79480         * modules/memmem: New file.
79481         * tests/test-memmem.c: New file.
79482         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79483
79484 2004-10-04  Simon Josefsson  <jas@extundo.com>
79485
79486         * m4/memmem.m4: New file.
79487
79488 2004-10-04  Simon Josefsson  <jas@extundo.com>
79489
79490         * lib/memmem.h: New file.
79491         * lib/memmem.c: New file, taken from glibc.
79492
79493 2004-10-04  Simon Josefsson  <jas@extundo.com>
79494
79495         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79496         '#ifdef USE_UNLOCKED_IO'.
79497
79498 2004-10-04  Simon Josefsson  <jas@extundo.com>
79499
79500         * config/srclist.txt: Add memmem from glibc.
79501
79502 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79503
79504         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79505
79506         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79507         modules/exclude, modules/getdate, modules/getline,
79508         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79509         modules/getusershell, modules/linebuffer, modules/md5,
79510         modules/mountlist, modules/posixtm, modules/readtokens,
79511         modules/readutmp, modules/regex, modules/sha1,
79512         modules/version-etc, modules/yesno:
79513         Remove dependency on unlocked-io.
79514
79515 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79516
79517         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79518
79519         * m4/unlocked-io.m4: Add copyright notice.
79520         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79521
79522 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79523
79524         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79525         * lib/xmalloc.c (xmemdup): Likewise.
79526         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79527         XFREE): Remove these long-obsolescent macros.
79528         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79529         * lib/xstrdup.c: Remove.
79530
79531         * lib/regex.c (re_comp): Cast gettext return value to char *,
79532         Problem reported by Martin Neitzel via Mark D. Baushke.
79533
79534 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79535
79536         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79537         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79538         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79539         regex.c, sha1.c, version-etc.c, yesno.c:
79540         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79541         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79542         the includer's responsibility.
79543
79544         Sync from coreutils.
79545
79546         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79547         points to the start of a string, as the C Standard says the
79548         resulting behavior is undefined.
79549
79550         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79551         simple -> simple_backups, numbered_existing ->
79552         numbered_existing_backups, numbered -> numbered_backups
79553         to avoid shadowing problems.  All uses changed.
79554         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79555         * lib/backupfile.c (check_extension, numbered_backup):
79556         Rename locals to avoid shadowing 'basename'.
79557         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79558         once.
79559
79560         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79561         * lib/.cvsignore: Add getopt.h.
79562
79563 2004-10-04  Bruno Haible  <bruno@clisp.org>
79564
79565         * modules/README: New file.
79566         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79567         not a module.
79568
79569 2004-10-02  Jim Meyering  <jim@meyering.net>
79570
79571         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79572
79573 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79574
79575         * modules/strsep: New file.
79576
79577 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79578
79579         * m4/strsep.m4: New file.
79580
79581 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79582
79583         * lib/strsep.h: New file.
79584         * lib/strsep.c: New file.
79585
79586 2004-10-01  Simon Josefsson  <jas@extundo.com>
79587
79588         * lib/snprintf.c (snprintf): Handle size==0.
79589
79590 2004-10-01  Simon Josefsson  <jas@extundo.com>
79591             Bruno Haible  <bruno@clisp.org>
79592
79593         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79594         (snprintf): Declare 'args'.
79595
79596 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79597
79598         * lib/snprintf.c: Remove comments as to why each header is needed.
79599
79600 2004-10-01  Bruno Haible  <bruno@clisp.org>
79601
79602         * MODULES.html.sh: Add strsep.
79603
79604 2004-09-30  Simon Josefsson  <jas@extundo.com>
79605
79606         * modules/snprintf: New file.
79607
79608 2004-09-30  Simon Josefsson  <jas@extundo.com>
79609
79610         * m4/snprintf.m4: New file.
79611
79612 2004-09-30  Simon Josefsson  <jas@extundo.com>
79613
79614         * lib/snprintf.h, lib/snprintf.c: New files.
79615
79616 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79617
79618         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79619         (hol_entry_help): Never translate an empty string.
79620         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79621         * lib/argp.h (OPTION_NO_TRANS): New option.
79622
79623 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79624
79625         * modules/argp (Maintainer): Replace Simon Josefsson
79626         by Sergey Poznyakoff.
79627
79628 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79629
79630         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79631         changes merged back into glibc.
79632
79633 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79634
79635         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79636
79637 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79638
79639         * lib/xvasprintf.c: Include xalloc.h.
79640         (xvasprintf): Use xalloc_die, not xmalloc_die.
79641
79642 2004-09-29  Bruno Haible  <bruno@clisp.org>
79643
79644         * modules/alloca-opt: New file, derived from modules/alloca.
79645         * modules/allocsa: Depend on alloca-opt instead of alloca.
79646         * modules/setenv: Likewise.
79647         * modules/vasnprintf: Likewise.
79648         * MODULES.html.sh: Add alloca-opt.
79649
79650 2004-09-28  Simon Josefsson  <jas@extundo.com>
79651
79652         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79653         LGPL, and to replace license template from GPL to LGPL.
79654
79655 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79656
79657         * modules/dummy: Change license to LGPL.
79658
79659 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79660
79661         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79662
79663 2004-09-24  Simon Josefsson  <jas@extundo.com>
79664
79665         * modules/minmax (License): Change from GPL to LGPL.
79666
79667 2004-09-23  Simon Josefsson  <jas@extundo.com>
79668
79669         * gnulib-tool (--import): Typo.
79670
79671 2004-09-23  Simon Josefsson  <jas@extundo.com>
79672
79673         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79674
79675 2004-09-22  Bruno Haible  <bruno@clisp.org>
79676
79677         * modules/*: Add 'License' field.
79678         * gnulib-tool: Accept --extract-license option.
79679         (func_get_license): New function.
79680
79681 2004-09-21  Bruno Haible  <bruno@clisp.org>
79682
79683         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79684         Reported by Simon Josefsson.
79685
79686 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79687
79688         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79689         gl_AC_TYPE_LONG_LONG.
79690
79691 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79692
79693         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79694
79695 2004-09-18  Simon Josefsson  <jas@extundo.com>
79696         and  Paul Eggert  <eggert@cs.ucla.edu>
79697
79698         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79699         calls with autoreconf.  Define GL_LIB.
79700
79701 2004-09-14  Karl Berry  <karl@gnu.org>
79702
79703         * config/srclist.txt: unsync setenv.c, sigh.
79704
79705 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79706
79707         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79708         Problem reported by Bruno Haible in:
79709         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79710
79711 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79712
79713         * config/srclist.txt: Comment out argp-pvh.c.
79714
79715 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79716
79717         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79718         in case some system header has #define'd it.  Problem reported by
79719         Soeren D. Schulze in
79720         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79721
79722 2004-09-09  Karl Berry  <karl@gnu.org>
79723
79724         * regex.[ch]: delete from the root.  These were supposed to be
79725                 synced with emacs cvs, but this has not happened for about
79726                 a year, and anyway nothing else uses emacs regex.[ch].
79727                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79728                 lib/regex[.ch] is untouched.
79729
79730 2004-09-09  Bruno Haible  <bruno@clisp.org>
79731
79732         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79733
79734 2004-09-09  Bruno Haible  <bruno@clisp.org>
79735
79736         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79737         modifications.
79738         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79739
79740 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79741
79742         * modules/xvasprintf: New file.
79743         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79744
79745 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79746
79747         * lib/xvasprintf.h: New file.
79748         * lib/xvasprintf.c: New file.
79749         * lib/xasprintf.c: New file.
79750
79751 2004-09-08  Bruno Haible  <bruno@clisp.org>
79752
79753         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79754
79755 2004-09-08  Bruno Haible  <bruno@clisp.org>
79756
79757         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79758         length is > INT_MAX.
79759         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79760         more.
79761
79762 2004-09-08  Bruno Haible  <bruno@clisp.org>
79763
79764         * lib/stdint_.h: New file, taken from GNU clisp.
79765
79766 2004-09-08  Bruno Haible  <bruno@clisp.org>
79767             Oskar Liljeblad  <oskar@osk.mine.nu>
79768
79769         * modules/stdint: New file.
79770         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79771
79772 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79773
79774         Import from coreutils.
79775         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79776         strings on unbounded length.  alloca's performance benefits aren't
79777         that important here.
79778         (V_STRDUP): Remove.
79779         (parse_with_separator): New function, with most of the internals
79780         of the old parse_user_spec.  Allow user to omit both user and group,
79781         for compatibility with FreeBSD.
79782         Clone only the user name, not the entire spec.
79783         Do not set *uid, *gid unless entirely successful.
79784         Avoid memory leak in some failing cases.
79785         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79786         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79787         (parse_user_spec): Rewrite to use parse_with_separator.
79788
79789 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79790
79791         * modules/userspec: Don't depend on alloca.
79792
79793 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79794
79795         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79796
79797 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79798
79799         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79800         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79801         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79802
79803 2004-08-16  Simon Josefsson  <jas@extundo.com>
79804
79805         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79806         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79807         Add --dry-run for --import.
79808         Let user provided command line parameters override configure.ac
79809         settings.
79810
79811 2004-08-12  Simon Josefsson  <jas@extundo.com>
79812
79813         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79814         as discussed with Paul Eggert in threads rooted at
79815         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79816         and
79817         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79818         Before, the test was empty, and relied on ELIDE_CODE in source
79819         code.)
79820         (gl_PREREQ_GETOPT): New macro.
79821         (gl_GETOPT): Use them.
79822
79823 2004-08-12  Simon Josefsson  <jas@extundo.com>
79824
79825         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79826         * lib/getopt_.h: Renamed from getopt.h.
79827
79828 2004-08-12  Simon Josefsson  <jas@extundo.com>
79829
79830         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79831         Change default library name from libfoo to libgnu.
79832         Now, if you have a configure.ac that says:
79833                 gl_SOURCE_BASE(gl)
79834                 gl_M4_BASE(gl/m4)
79835                 gl_MODULES(error getopt etcetera)
79836                 gl_INIT
79837         you can import all you need by running:
79838                 ../gnulib/gnulib-tool --import
79839
79840         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79841         (Makefile.am): Rewrite, use logic from argz.
79842         (Include): Use <getopt.h> instead of "getopt.h".
79843
79844 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79845
79846         * modules/argp (Files): Add m4/unlocked-io.m4.
79847         (Depends-on): Add extensions.
79848
79849 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79850
79851         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79852         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79853         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79854         Check for program_invocation_name, program_invocation_short_name,
79855         flockfile, funlockfile, features.h, _getopt_long_only_r.
79856
79857 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79858
79859         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79860         its complicated substitute.
79861         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79862         and program_invocation_name.
79863         (__argp_basename) [!_LIBC]: Remove; the only use was
79864         replaced by its body.
79865         (__argp_short_program_name): Change condition from
79866         !defined __argp_short_program_name to
79867         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79868         to match argp-namefrob.h.
79869         (__argp_failure): Don't assume strerror_r returns char *.
79870         * lib/argp-parse.c (N_): Define unconditionally.
79871         (argp_default_options): Fill out initializers with 0 to avoid
79872         gcc warnings.
79873
79874 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79877         getopt1.c.
79878
79879 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79880
79881         Merge from coreutils.
79882
79883         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79884
79885         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79886         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79887
79888 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79889
79890         Merge from coreutils.
79891
79892         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79893         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79894         for Reliant Unix 5.43.
79895
79896         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79897         (union fooround): Use uintmax_t, not long int.
79898         The rest is a merge from libc:
79899         [defined _LIBC]: Include <shlib-compat.h>.
79900         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79901
79902         * lib/settime.c (settime): Recode to avoid warning with
79903         Sun Forte C 6U2.
79904
79905         * lib/strverscmp.c: Convert to UTF-8.
79906
79907 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79908
79909         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79910         m4/uintmax_t.m4.
79911
79912 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79913
79914         * modules/xalloc-die: New file.
79915         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79916
79917         * modules/md5 (Files): Add m4/uint32_t.m4.
79918         * modules/sha1: Renamed from modules/sha.
79919         (Files):
79920         Rename lib/sha.h to lib/sha1.h.
79921         Rename lib/sha.c to lib/sha1.c.
79922         Rename m4/sha.m4 to m4/sha1.m4.
79923         (lib_SOURCES): Likewise.
79924         (configure.ac): Rename gl_SHA to gl_SHA1.
79925         (Include): sha.h -> sha1.h.
79926
79927 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79928
79929         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79930         * m4/sha1.m4: Renamed from sha.m4.
79931         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79932
79933 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79934
79935         * lib/obstack.h (obstack_empty_p):
79936         Don't assume that chunk->contents is suitably aligned.
79937         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79938         Likewise. Problem reported by Benno in
79939         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79940
79941         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79942         readable.  This could be improved further but it'd take some work.
79943
79944 2004-08-08  Simon Josefsson  <jas@extundo.com>
79945
79946         * modules/xgethostname (Depends-on): Remove exit and error (not
79947         used).
79948
79949         * modules/getpass-gnu: Add getpass.h.
79950         (Depends-on): Add stdbool.
79951         * modules/getpass: Add getpass.h.
79952
79953 2004-08-08  Simon Josefsson  <jas@extundo.com>
79954
79955         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79956         Check getpass declaration.
79957
79958 2004-08-08  Simon Josefsson  <jas@extundo.com>
79959
79960         * lib/xgethostname.c: Don't include error.h (not used).
79961
79962         * lib/getpass.h: Add.
79963         * lib/getpass.c: Include getpass.h first.
79964
79965 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79966
79967         * lib/xalloc-die.c: New file.
79968         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79969         All uses removed.
79970         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79971         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79972         xalloc-die.c.
79973         (_, N_, xalloc_die): Move to xalloc-die.c.
79974         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79975         so that we needn't mess with xalloc_msg_memory_exhausted.
79976
79977         * lib/sha1.h: Renamed from sha.h.
79978         (SHA1_H): Renamed from _SHA_H.
79979         (sha1_ctx): Renamed from sha_ctx.
79980         (sha1_init_ctx): Renamed from sha_init_ctx.
79981         (sha1_process_block): Renamed from sha_process_block.
79982         (sha1_process_bytes): Renamed from sha_process_bytes.
79983         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79984         (sha1_read_ctx): Renamed from sha_read_ctx.
79985         (sha1_stream): Renamed from sha_stream.
79986         (sha1_buffer): Renamed from sha_buffer.
79987         * lib/sha1.c: Likewise; renamed from sha.c.
79988         Do not include <sys/types.h>.
79989         Include <stddef.h> rather than <stdlib.h>.
79990
79991 2004-08-08  Bruno Haible  <bruno@clisp.org>
79992
79993         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79994         FILESYSTEM_PREFIX_LEN.
79995         * lib/progreloc.c: Likewise.
79996         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79997
79998 2004-08-06  Simon Josefsson  <jas@extundo.com>
79999
80000         * modules/progname (Depends-on): Don't depend on stdbool.
80001
80002 2004-08-06  Simon Josefsson  <jas@extundo.com>
80003
80004         * modules/getsubopt: New file.
80005         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80006         getsubopt.
80007
80008 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80009
80010         More merge from coreutils.
80011
80012         * m4/utimens.m4, m4/utimecmp.m4: New files.
80013         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80014         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80015         prereq.m4, sha.m4: Import changes from coreutils.
80016
80017 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80018
80019         More merge from coreutils.
80020         * modules/raise, modules/readtokens0, modules/utimens:
80021         * modules/utimecmp, module/xnanosleep: New files.
80022         * modules/strftime: Add lib/strftime.h.
80023         Change include from <time.h> to "strftime.h".
80024         * modules/yesno: Add lib/yesno.h.
80025         * modules/backupfile: Remove lib/addext.c.
80026         * modules/euidaccess: Add stat-macros.h.
80027         * modules/canonicalize, modules/euidaccess,
80028         modules/filemode, modules/lchown, modules/makepath,
80029         modules/rmdir, modules/stat: Likewise.
80030
80031 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80032
80033         Merge from tar.
80034         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80035         SIZE_MAX is a valid preprocessor constant.
80036         (__argp_basename): Change from "#ifndef _LIBC"
80037         to "#ifndef __argp_short_program_name", so that
80038         we don't compile these functions for tar.
80039
80040         More merges from coreutils.
80041         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80042         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80043         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80044         * lib/addext.c: Remove; no longer needed.
80045         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80046         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80047         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80048         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80049         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80050         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80051         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80052         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80053         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80054         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80055         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80056         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80057         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80058         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80059         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80060         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80061         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80062         Import changes from coreutils.
80063
80064 2004-08-05  Simon Josefsson  <jas@extundo.com>
80065
80066         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80067
80068 2004-08-05  Simon Josefsson  <jas@extundo.com>
80069
80070         * m4/getsubopt.m4: New file.
80071
80072 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80073
80074         Merge from coreutils.
80075
80076         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80077         * m4/getcwd-path-max.m4: New files.
80078
80079         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80080         FILESYSTEM_PREFIX_LEN ->
80081         FILE_SYSTEM_PREFIX_LEN.
80082         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80083         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80084         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80085         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80086
80087         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80088         prerequisite modules now handle the DOS stuff.
80089         Don't check for unistd.h.
80090
80091 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80092
80093         Merge from coreutils.
80094
80095         * lib/.gdb-history: Remove; this doesn't belong here.
80096
80097         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80098         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80099         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80100         * lib/getcwd.c: New files.
80101
80102         * lib/dirname.h: Include <stdbool.h>.
80103         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80104         for consistency with POSIX terminology.  All uses changed.
80105         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80106         (strip_trailing_slashes): Use bool for booleans.
80107         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80108
80109         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80110         sometimes returns a positive errno value even when it succeeds.
80111         (print_errno_message) [!LIBC]: Fall back on strerror if
80112         __strerror_r fails.
80113
80114         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80115         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80116         (longest_relative_suffix): New function.
80117         (path_concat): Use it.  Assume first argument is not NULL.
80118         Port to DOS.  Omit redundant separators.
80119         Report an error instead of returning NULL.
80120         Use mempcpy instead of memcpy.
80121         (xpath_concat): Remove: not declared or used.
80122
80123         * lib/same.h: Include <stdbool.h>
80124         (same_name): Return bool, not int.
80125         * lib/same.c (same_name): Likewise.
80126         (errno): Don't declare; we assume C89 or better now.
80127
80128         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80129         if not already defined.
80130
80131         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80132         * lib/dup-safer.c (errno): Likewise.
80133
80134 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80135
80136         Merge from coreutils.
80137         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80138         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80139         * modules/path-concat: Don't depend on strdup.
80140
80141 2004-08-03  Simon Josefsson  <jas@extundo.com>
80142
80143         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80144         * lib/progname.h: Don't include stdbool.h.
80145
80146 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80147
80148         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80149         * MODULES.html.sh (func_all_modules): Remove fatal.
80150
80151 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80152
80153         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80154
80155 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80156
80157         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80158         working.
80159
80160 2004-08-02  Simon Josefsson  <jas@extundo.com>
80161
80162         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80163         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80164         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80165
80166 2004-08-01  Simon Josefsson  <jas@extundo.com>
80167
80168         * lib/xgetdomainname.c: Include stdlib.h, for free().
80169
80170 2004-07-19  Bruno Haible  <bruno@clisp.org>
80171
80172         * MODULES.html.sh (func_all_modules): Add dummy.
80173
80174 2004-07-16  Simon Josefsson  <jas@extundo.com>
80175
80176         * modules/dummy: New file.
80177
80178 2004-07-16  Simon Josefsson  <jas@extundo.com>
80179
80180         * lib/dummy.c: New file.
80181
80182 2004-07-16  Bruno Haible  <bruno@clisp.org>
80183
80184         * lib/backupfile.h: Add extern "C" for C++.
80185         * lib/closeout.h: Likewise.
80186         * lib/copy-file.h: Likewise.
80187         * lib/findprog.h: Likewise.
80188         * lib/full-write.h: Likewise.
80189         * lib/pathname.h: Likewise.
80190         * lib/progname.h: Likewise.
80191         * lib/stpcpy.h: Likewise.
80192         * lib/stpncpy.h: Likewise.
80193         * lib/strcase.h: Likewise.
80194         * lib/strstr.h: Likewise.
80195         * lib/xalloc.h: Likewise.
80196
80197         * lib/mbswidth.h: Add extern "C" for C++.
80198         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80199
80200 2004-07-13  Robert Millan  <robertmh@gnu.org>
80201
80202         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80203
80204 2004-07-09  Simon Josefsson  <jas@extundo.com>
80205
80206         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80207         failed without this.)
80208
80209 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80210
80211         * modules/chown (Files): Add lib/fchown-stub.c, since
80212         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80213
80214 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80215
80216         * lib/fchown-stub.c: New file.
80217
80218 2004-06-24  Jim Meyering  <jim@meyering.net>
80219
80220         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80221
80222 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80223
80224         * modules/argz: Omit "#include".
80225
80226         * MODULES.html.sh (func_all_modules): Add calloc, to match
80227         2004-06-01 addition of calloc module.
80228
80229 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80230
80231         * m4/argz.m4: New file, which is autoupdated from libtool.
80232
80233 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80234
80235         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80236         libtool.
80237
80238 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80239
80240         * config/srclist-update: Don't insist on "USA." before the
80241         close-comment, as libtool omits the period and puts the */ on a
80242         separate line.
80243         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80244         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80245
80246 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80247
80248         * modules/argz: New file.
80249         * MODULES.html.sh (func_all_modules): Add argz.
80250
80251 2004-06-12  Jim Meyering  <jim@meyering.net>
80252         and  Paul Eggert  <eggert@cs.ucla.edu>
80253
80254         * modules/hash (Files): Add lib/xalloc.h.
80255         * modules/pipe (Depends-on): Add wait-process.
80256         * modules/stat (Depends-on): Add xalloc.
80257         * modules/userspec (Files): Add lib/userspec.h.
80258         * modules/xstrto
80259
80260         Upgrade from gettext-0.13.
80261         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80262         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80263         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80264
80265 2004-06-10  Jim Meyering  <jim@meyering.net>
80266
80267         * lib/calloc.c: New file.
80268
80269 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80270
80271         * lib/getdate.y (yylex): Allow space between sign and number.
80272         Problem reported by Dan Jacobson.
80273
80274 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80275
80276         Merge from coreutils CVS.
80277
80278         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80279         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80280         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80281         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80282         xstrtol.m4: Fix copyright date and/or serial number.
80283
80284         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80285         See if we need an fchown replacement.
80286         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80287         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80288         and use the replacement function if we detect either defect.
80289
80290         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80291         gl_UTIMECMP.
80292
80293 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80294         and  Jim Meyering  <jim@meyering.net>
80295
80296         Merge from coreutils CVS.
80297
80298         * lib/stat-macros.h: New file, with contents from file-type.h
80299         and coreutils' system.h.
80300         * lib/file-type.c: Include "stat-macros.h".
80301         * lib/file-type.h (file_type): Move all macro definitions to new file,
80302         stat-macros.h.
80303
80304         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80305         Wrap old code with this conditional.
80306         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80307         function that does not dereference symlinks.
80308         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80309
80310         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80311         dependency problems.
80312         (xreadlink): Accept new arg SIZE, for efficiency.
80313         All decls and uses changed.
80314         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80315
80316         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80317         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80318
80319         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80320         sysexits.h.
80321
80322 2004-06-01  Jim Meyering  <jim@meyering.net>
80323
80324         * m4/calloc.m4: New file.
80325
80326 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80327
80328         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80329         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80330         Also, fix a typo in a diagnostic.
80331
80332 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80333
80334         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80335         or AC_FUNC_REALLOC.
80336
80337 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80338
80339         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80340         macros to be defined.
80341         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80342         the allocator returns NULL because the requested size is zero.
80343
80344 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80345
80346         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80347         var.  Add comment explaining why libc still defines it.  This
80348         merges the following patch from glibc:
80349         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80350
80351 2004-05-20  Andreas Schwab  <schwab@suse.de>
80352
80353         * m4/free.m4: Replace free if it not known to work, not the other
80354         way round.
80355
80356 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80357
80358         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80359         present in glibc since revision 1.1 of this file.
80360         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80361         obstack_alignment_mask, obstack_alloc, obstack_base,
80362         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80363         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80364         obstack_grow0, obstack_init, obstack_int_grow,
80365         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80366         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80367         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80368         nonexistent functions.
80369
80370 2004-05-18  Karl Berry  <karl@gnu.org>
80371
80372         * config/srclist.txt: break link for vasnprintf.c.
80373
80374 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80375
80376         Port obstack to the AS/400, where pointers are 16 bytes wide and
80377         you cannot cast an integer to a valid pointer.  This patch is
80378         currently waiting to be integrated into glibc; see
80379         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80380
80381         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80382         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80383         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80384         (struct obstack): temp member is now a union of a pointer and
80385         an integer, instead of an integer.  All integer uses changed.
80386         This does not affect the physical layout of struct obstack,
80387         except on hosts (like the AS/400) where the size or alignment of
80388         void * is greater than that of ptrdiff_t.
80389         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80390         __STDC__)]: Store temporary in pointer member of union, not
80391         integer member.
80392         * lib/obstack.c: Include <stddef.h>, for offsetof.
80393         (struct fooalign): Remove; it doesn't need a name.
80394         (union fooround): Change double to long double, and add void *.
80395         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80396         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80397         not a macro.  Hence the values are always int; so remove all
80398         casts-to-int in uses.
80399
80400 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80401
80402         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80403         we can get this patch merged into glibc.
80404
80405 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80406             Paul Eggert  <eggert@cs.ucla.edu>
80407
80408         * m4/argp: Depend on alloca.
80409
80410 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80411             Paul Eggert  <eggert@cs.ucla.edu>
80412
80413         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80414         freecoding.
80415
80416 2004-05-17  Bruno Haible  <bruno@clisp.org>
80417
80418         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80419         precision that consists of a '.' followed by an empty digit string.
80420         Patch by Tor Lillqvist <tml@iki.fi>.
80421
80422 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80423
80424         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80425         for backward compatibility with older code.  We need our own
80426         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80427         it under some other name, and our alloca.h will define it.
80428
80429 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80430             Derek Price  <derek@ximbiot.com>
80431
80432         * lib/alloca.c: Include <alloca.h>, to get our interface.
80433         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80434         include <alloca.h> first.  Use C89 prototype for alloca; this
80435         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80436         Use #elif for simplicity, since we can assume C89 now.
80437         Don't try to source the system alloca.h since it will not be found
80438         and to prevent recursively including its replacement.
80439         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80440         * lib/regex.c: Likewise.
80441
80442 2004-05-16  Derek Price  <derek@ximbiot.com>
80443             Paul Eggert  <eggert@cs.ucla.edu>
80444
80445         getline cleanup.  This changes the getndelim2 API: both order of
80446         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80447         no delimiter).
80448
80449         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80450         interface does that.
80451         (getline): Always use getdelim, so that we don't have two
80452         copies of this code.
80453         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80454         if available.
80455         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80456         (GETNDELIM2_MAXIMUM): New macro.
80457         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80458         instead of the old practice of delim2==0.  All callers changed.
80459         Return -1 on overflow, instead of returning junk.
80460         Do not set *linesize unless allocation succeeds.
80461         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80462         that we include sys/types.h.
80463         * lib/getnline.h: Likewise.
80464         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80465         (getndelim2): Reorder arguments.
80466         * lib/getnline.c (getnline, getndelim):
80467         Don't discard the NMAX argument.
80468         (getnline): Invoke getndelim, to avoid code duplication.
80469         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80470         of (size_t) -1 by callers of the getnline family.
80471
80472 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80473
80474         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80475         Check for gettimeofday.
80476         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80477         Check for settimeofday, stime.
80478
80479 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80480
80481         * lib/nanosleep.c (suspended): Change its type from int to
80482         sig_atomic_t volatile.
80483         (first_call): Make it private to rpl_nanosleep, and have it
80484         be zero initially as that's a bit faster.
80485         (my_usleep): Round up fractional times instead of truncating them,
80486         as this is the usual meaning for 'sleep'.
80487
80488         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80489         doesn't work.
80490         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80491         (ENOSYS): Define if not defined.
80492         (settime): Fall back on stime if it exists and settimeofday fails.
80493         But don't bother with fallbacks if a method fails with errno == EPERM.
80494
80495 2004-05-11  Jim Meyering  <jim@meyering.net>
80496
80497         Prior to this change, the save_cwd caller required read access to the
80498         current directory on most systems (ones with the fchdir function).
80499
80500         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80501         fails, try write-only, and finally, resort to using xgetcwd.
80502
80503 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80504
80505         * lib/obstack.c, obstack.h: Import changes from libc.
80506
80507 2004-04-28  Bruno Haible  <bruno@clisp.org>
80508
80509         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80510         also implicitly appends .exe to executables.
80511         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80512         accepts Windows pathnames.
80513         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80514         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80515         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80516         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80517         Reported by Derek Robert Price <derek@ximbiot.com>.
80518
80519 2004-04-21  Karl Berry  <karl@gnu.org>
80520
80521         * config/srclist.txt (localcharset.c): break sync.
80522
80523 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80524
80525         * m4/host-os.m4: Add a copyright notice.
80526
80527 2004-04-20  Jim Meyering  <jim@meyering.net>
80528
80529         Change UTILS_ to gl_ in AC_DEFINE'd names.
80530         Change utils_- and jm_-prefixed variables, too.
80531         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80532         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80533         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80534
80535         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80536         Don't emit trailing blanks.
80537         Also rename jm_-prefixed variables to have gl_ prefix.
80538
80539         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80540         Also rename jm_-prefixed variables to have gl_ prefix.
80541
80542         * m4/jm-macros.m4: Reflect the renamings.
80543         * m4/prereq.m4: Likewise.
80544
80545 2004-04-20  Jim Meyering  <jim@meyering.net>
80546
80547         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80548         memory.
80549
80550 2004-04-20  Jim Meyering  <jim@meyering.net>
80551             Bruno Haible  <bruno@clisp.org>
80552
80553         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80554         memory when realloc fails.
80555
80556 2004-04-19  Jim Meyering  <jim@meyering.net>
80557
80558         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80559         now that readutmp.c may call `free (0)'.
80560
80561 2004-04-19  Bruno Haible  <bruno@clisp.org>
80562
80563         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80564         * m4/inttypes_h.m4: Likewise.
80565         * m4/stdint_h.m4: Likewise.
80566         * m4/intmax_t.m4: Likewise.
80567         * m4/uintmax_t.m4: Likewise.
80568
80569 2004-04-18  Jim Meyering  <jim@meyering.net>
80570
80571         * m4/prereq.m4: Don't forbid jm_ prefix.
80572
80573         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80574         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80575         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80576         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80577         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80578         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80579         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80580         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80581         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80582         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80583         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80584         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80585         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80586         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80587         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80588         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80589         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80590         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80591         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80592
80593 2004-04-18  Jim Meyering  <jim@meyering.net>
80594
80595         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80596         failure, don't leak memory and do call END_UTMP_ENT.
80597
80598 2004-04-16  Jim Meyering  <jim@meyering.net>
80599
80600         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80601         coreutils' stat program.
80602         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80603
80604 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80605
80606         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80607         C89.
80608         (CHAR_BIT): Remove, since we assume C89.
80609         Include <stdint.h> if available, as per current Autoconf CVS advice.
80610
80611 2004-03-31  Jim Meyering  <jim@meyering.net>
80612
80613         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80614         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80615         * m4/xalloc.m4: Likewise.
80616
80617 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80618
80619         Merge from coreutils.
80620
80621         * m4/inttostr.m4: New file.
80622         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80623         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80624         Require gl_CLOCK_TIME.
80625         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80626
80627 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80628
80629         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80630         not bool, to be more consistent with Unix conventions.
80631         Suggested by Bruno Haible.
80632
80633         Merge from coreutils.
80634
80635         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80636         * lib/umaxtostr.c: New files.
80637
80638         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80639         the usual <time.h> dance.
80640         (get_date): Change signature to support fractional time stamps.
80641         All callers changed.
80642         * lib/getdate.y: Include "getdate.h" first, as we can now
80643         assume C89 and don't need to worry about 'const'.
80644         Similarly, include "unlocked-io.h" near start, not in middle.
80645         Include <limits.h>.
80646         (textint.value): Use long int rather than int.
80647         (textint.digits): Use size_t rather than int.
80648         (BILLION, LOG10_BILLION): New constants.
80649         (parser_control): New member rel_ns.  Members day_ordinal,
80650         time_zone, month, day, hour, minutes, rel_year, rel_month,
80651         rel_day, rel_hour, rel_minutes, rel_seconds
80652         are now long int, not int.  Member seconds is now struct timespec,
80653         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80654         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80655         not int.
80656         (%union.intval): Now long int, not int.
80657         New member timespec.
80658         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80659         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80660         (spec): Now is a timespec or an item list.
80661         (timespec, items): New nonterminals.
80662         (time, rel, relunit, number, get_date):
80663         Add support for fractional seconds.
80664         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80665         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80666         (to_hour): First arg is now long int, not int.
80667         (to_year): Returns long int, not int.
80668         Don't treat year -70 like 70.
80669         (tm_diff): Returns long int, not int.
80670         (lookup_word): Use bool instead of int when appropriate.
80671         (yylex): Use size_t for count, not int.
80672         Detect overflow when parsing large integer constants.
80673         Add support for fractions.
80674         (get_date): Make pointers 'const' if possible.
80675         Use more-portable code to detect integer overflow.
80676         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80677         Don't use ctime; it's not reliable if the year has >4 digits.
80678
80679         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80680         This is for compatibility with BSD.
80681
80682         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80683         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80684         From coreutils' system.h.
80685
80686         * lib/userspec.c: Don't include "posixver.h".
80687         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80688         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80689         compatible extension.  Simplify code by removing a boolean int
80690         that was always nonzero if a string was nonnull.
80691
80692 2004-03-30  Jim Meyering  <jim@meyering.net>
80693
80694         Merge from coreutils.
80695
80696         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80697         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80698         on some systems one must include <grp.h> before it.
80699         Reported by Christian Krackowizer.
80700
80701 2004-03-30  Jim Meyering  <jim@meyering.net>
80702
80703         Merge from coreutils.
80704
80705         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80706
80707         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80708         an empty input stream.
80709
80710         * lib/readtokens.c: Include <stdbool.h>.
80711         (readtoken): Use `size_t' rather than int/long.
80712         All callers adjusted.
80713         Use `bool' rather than `int' where appropriate.
80714         Use memset rather than an explicit loop.
80715         Use x2nrealloc rather than xrealloc.
80716         Allow the use of `\0' as a delimiter.
80717         (readtokens): Likewise.
80718         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80719
80720 2004-03-30  Jim Meyering  <jim@meyering.net>
80721
80722         * m4/realloc.m4: Remove file, since now it does no more than
80723         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80724         the `configure.ac' section of module/realloc.
80725         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80726
80727 2004-03-30  Bruno Haible  <bruno@clisp.org>
80728
80729         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80730         nonnull.
80731
80732 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80733
80734         Merge changes to getloadavg.c from coreutils and Emacs.
80735
80736         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80737         Define to an expression, not to the empty string.
80738         Include cloexec.h and xalloc.h.
80739         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80740         Use set_cloexec_flag rather than rolling our own.
80741         * lib/cloexec.c, lib/cloexec.h: New files.
80742
80743 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80744
80745         * m4/cloexec.m4: New file.
80746
80747 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80748
80749         * lib/getopt.h: Sync with libc CVS.
80750
80751 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80752             Bruno Haible  <bruno@clisp.org>
80753
80754         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80755         mbswidth.
80756
80757 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80758             Bruno Haible  <bruno@clisp.org>
80759
80760         * lib/mbswidth.h: Include <wchar.h> only if
80761         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80762         <wchar.h>.
80763         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80764
80765 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80766
80767         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80768         Sync with libc CVS.
80769         * lib/getopt_int.h: New file, also synced from libc.
80770
80771 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80772
80773         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80774         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80775         Bring back getopt.c, getopt.h, getopt1.c.
80776
80777 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80778
80779         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80780         All uses changed.  Check for sa_sigaction member; this fixes
80781         a bug first reported by Jason Andrade in
80782         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80783
80784 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80785
80786         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80787         '#if' expressions.  Unlike the code it replaces, it does not
80788         depend on (defined _SC_PAGESIZE).  However, it does depend on
80789         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80790         first reported by Jason Andrade in
80791         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80792
80793 2004-02-25  Simon Josefsson  <jas@extundo.com>
80794
80795         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80796
80797 2004-02-25  Simon Josefsson  <jas@extundo.com>
80798
80799         * lib/strdup.h: New file.
80800         * lib/strdup.c: Include it.
80801         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80802         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80803
80804 2004-02-23  Karl Berry  <karl@gnu.org>
80805
80806         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80807         (from fencepost.gnu.org:/gd/gnuorg).
80808
80809 2004-02-23  Karl Berry  <karl@gnu.org>
80810
80811         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80812         * config/srclist.txt: add maintain/standards documents.
80813
80814 2004-02-18  Bruno Haible  <bruno@clisp.org>
80815
80816         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80817         Reported by Derek Robert Price <derek@ximbiot.com>.
80818
80819 2004-02-16  Karl Berry  <karl@gnu.org>
80820
80821         * config/mkinstalldirs, install-sh: update from automake.
80822
80823 2004-02-06  Karl Berry  <karl@gnu.org>
80824
80825         * m4/po.m4: update from gettext 0.14.1.
80826
80827 2004-02-06  Karl Berry  <karl@gnu.org>
80828
80829         * lib/config.charset: update from gettext 0.14.1.
80830
80831 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80832
80833         Add comments and code, prompted by suggestions from Bruno Haible
80834         for sh-quote.
80835         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80836         describing the enum quoting_style values.
80837         * lib/quotearg.c (quotearg_alloc): New function.
80838         (quotearg_buffer_restyled): Treat lone { and } as special.
80839         Treat = as special.  Work around bug with older shells
80840         that "see" a '\' that is really the 2nd byte of a multibyte char.
80841         Quote empty string with shell_quoting_style.
80842
80843 2004-02-03  Bruno Haible  <bruno@clisp.org>
80844
80845         * m4/pipe.m4: New file, from GNU gettext.
80846
80847 2004-02-03  Bruno Haible  <bruno@clisp.org>
80848
80849         * lib/pipe.h: New file, from GNU gettext.
80850         * lib/pipe.c: New file, from GNU gettext.
80851
80852 2004-01-27  Bruno Haible  <bruno@clisp.org>
80853
80854         * m4/execute.m4: New file, from GNU gettext.
80855
80856 2004-01-27  Bruno Haible  <bruno@clisp.org>
80857
80858         * lib/execute.h: New file, from GNU gettext.
80859         * lib/execute.c: New file, from GNU gettext.
80860         * lib/w32spawn.h: New file, from GNU gettext.
80861
80862 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80863
80864         Merge from diffutils.
80865
80866         * lib/file-type.c (file_type): Add typed memory objects.
80867         * lib/file-type.h (S_TYPEISTMO): New macro.
80868
80869         * lib/c-stack.h (c_stack_action): Remove argv argument.
80870         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80871         (die): Don't calculate message unless segv_action returns.
80872         (get_stack_location, min_address_from_argv, max_address_from_argv,
80873         volatile stack_base, volatile_stack_size): Remove.
80874         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80875         that every segmentation violation is a stack overflow.  (Ouch!)
80876         See Debian bug 136249 (still outstanding) for more info about why
80877         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80878
80879 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80880
80881         Exit-status fix from coreutils.
80882
80883         Use exit_failure consistently in place of EXIT_FAILURE,
80884         so that program exit statuses are consistent on failure.
80885
80886         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80887         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80888         * lib/argmatch.h: Comment fix to match the above.
80889         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80890         Now a macro referring to exit_failure, instead of a separate
80891         variable.  Include "exitfail.h" to get it.
80892         * lib/xstrtol.h: Include "exitfail.h".
80893         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80894
80895         * lib/long-options.c (parse_long_options): Use prototype
80896         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80897         for clarity.
80898
80899 2004-01-21  Jim Meyering  <jim@meyering.net>
80900
80901         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80902         so as not to conflict with a different-sized __mktime_internal
80903         function in GNU libc.
80904         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80905         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80906
80907 2004-01-20  Karl Berry  <karl@gnu.org>
80908
80909         * config/config.guess: update from config.
80910
80911         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80912
80913 2004-01-20  Bruno Haible  <bruno@clisp.org>
80914
80915         Safer stack allocation.
80916         * lib/setenv.c: Include allocsa.h.
80917         (alloca): Remove fallback definition.
80918         (freea): Remove macro.
80919         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80920         instead of freea.
80921
80922 2004-01-20  Bruno Haible  <bruno@clisp.org>
80923
80924         * m4/eealloc.m4: New file, from GNU gettext.
80925
80926 2004-01-20  Bruno Haible  <bruno@clisp.org>
80927
80928         * m4/allocsa.m4: New file, from GNU gettext.
80929
80930 2004-01-20  Bruno Haible  <bruno@clisp.org>
80931
80932         * lib/xallocsa.h: New file, from GNU gettext.
80933         * lib/xallocsa.c: New file, from GNU gettext.
80934
80935 2004-01-20  Bruno Haible  <bruno@clisp.org>
80936
80937         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80938
80939 2004-01-20  Bruno Haible  <bruno@clisp.org>
80940
80941         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80942         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80943         specially.
80944
80945 2004-01-20  Bruno Haible  <bruno@clisp.org>
80946
80947         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80948         patch.
80949
80950 2004-01-20  Bruno Haible  <bruno@clisp.org>
80951
80952         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80953
80954 2004-01-20  Bruno Haible  <bruno@clisp.org>
80955
80956         * lib/eealloc.h: New file.
80957
80958 2004-01-20  Bruno Haible  <bruno@clisp.org>
80959
80960         * lib/binary-io.h: Avoid warnings on Cygwin.
80961
80962 2004-01-20  Bruno Haible  <bruno@clisp.org>
80963
80964         * lib/allocsa.h: New file, from GNU gettext.
80965         * lib/allocsa.c: New file, from GNU gettext.
80966
80967 2004-01-18  Karl Berry  <karl@gnu.org>
80968
80969         * doc/gpl.texi, doc/lgpl.texi: new files.
80970
80971 2004-01-18  Karl Berry  <karl@gnu.org>
80972
80973         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80974         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80975
80976 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80977
80978         Merge from coreutils.
80979
80980         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80981         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80982         (gl_DEFAULT_POSIX2_VERSION): Move
80983         the documentation from 'configure' into 'config.hin',
80984         so that 'configure --help' isn't burdened by it and
80985         we don't have to worry about its formatting there.
80986         Reword the documentation so that it's more succinct
80987         and can be run together into a single paragraph.
80988         * m4/same.m4 (gl_SAME): Check for pathconf.
80989
80990 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80991
80992         Merge from coreutils.
80993
80994         * lib/posixver.c: Include posixver.h.
80995
80996         * lib/same.c: Include <stdbool.h>, <limits.h>.
80997         (_POSIX_NAME_MAX): Define if not defined.
80998         (MIN): New macro.
80999         (same_name): If file names are silently truncated, report
81000         that the file names are the same if they are the same after
81001         the silent truncation.
81002
81003         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81004         conversion function.
81005         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81006         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81007         longer needed.
81008
81009 2004-01-15  Jim Meyering  <jim@meyering.net>
81010
81011         Merge from coreutils.
81012
81013         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81014         if no library is required.
81015         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81016         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81017         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81018         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81019         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81020         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81021         value, $ac_cv_search_crypt, if it's "none required".
81022         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81023         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81024         not gl_FUNC_GETLOADAVG.
81025         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81026         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81027
81028 2004-01-15  Jim Meyering  <jim@meyering.net>
81029
81030         Merge from coreutils.
81031
81032         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81033         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81034         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81035
81036         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81037         optional configure-time default.
81038
81039         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81040
81041         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81042
81043 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81044
81045         Merge from coreutils.
81046
81047         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81048         value, $ac_cv_search_nanosleep, if it's "none required".
81049
81050 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81051
81052         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81053         with like-named macro in fnmatch.c.
81054         (EXT): Use an internal constant instead.
81055
81056         Merge fnmatch patches from glibc.
81057         * lib/fnmatch.c (mbsinit): Remove define.
81058         Add libc_hidden_ver (__fnmatch, fnmatch).
81059         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81060         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81061
81062 2004-01-14  Karl Berry  <karl@gnu.org>
81063
81064         * config/install-sh: update from automake.
81065
81066 2004-01-13  Karl Berry  <karl@gnu.org>
81067
81068         * config/install-sh: update from automake.
81069
81070 2004-01-09  Karl Berry  <karl@gnu.org>
81071
81072         * config/install-sh: update from automake.
81073
81074 2004-01-05  Karl Berry  <karl@gnu.org>
81075
81076         * config/config.{sub,guess}: update from config.
81077
81078 2003-12-31  Karl Berry  <karl@gnu.org>
81079
81080         * config/depcomp: update from automake.
81081
81082 2003-12-14  Karl Berry  <karl@gnu.org>
81083
81084         * lib/config.charset: update from gettext-runtime.
81085
81086 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81087
81088         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81089         Bug reported by Alfred M. Szmidt.
81090
81091 2003-12-03  Bruno Haible  <bruno@clisp.org>
81092
81093         * m4/gettext.m4: Upgrade from gettext-0.13.
81094         * m4/po.m4: Upgrade from gettext-0.13.
81095         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81096         * m4/intmax.m4: New file, from gettext-0.13.
81097         * m4/printf-posix.m4: New file, from gettext-0.13.
81098
81099 2003-11-29  Karl Berry  <karl@gnu.org>
81100
81101         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81102
81103 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81104             Bruno Haible  <bruno@clisp.org>
81105
81106         * lib/printf-parse.h: Don't include sys/types.h.
81107         (ARG_NONE): New macro.
81108         (char_directive): Change type of *arg_index fields to size_t.
81109         * lib/printf-parse.c: Don't include sys/types.h.
81110         (SSIZE_MAX): Remove macro.
81111         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81112         Remove unnecessary overflow check.
81113         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81114         fields.
81115
81116 2003-11-25  Bruno Haible  <bruno@clisp.org>
81117
81118         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81119
81120 2003-11-25  Bruno Haible  <bruno@clisp.org>
81121
81122         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81123         gt_TYPE_SSIZE_T.
81124
81125 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81126
81127         * modules/alloca: Remove dependency on xalloc.
81128
81129 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81130
81131         * lib/alloca.c: Remove dependency on xalloc module.
81132         (xalloc_die): Remove.
81133         (memory_full) [!defined emacs]: New macro.
81134         [!defined emacs]: Don't include xalloc.h.
81135         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81136         address arithmetic overflows.  Change datatypes a bit to avoid
81137         unnecessary casts.
81138
81139 2003-11-22  Jim Meyering  <jim@meyering.net>
81140
81141         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81142         s/size/size_t/.
81143
81144 2003-11-21  Karl Berry  <karl@gnu.org>
81145
81146         * config/config.{sub,guess}: update from config.
81147
81148 2003-11-18  Karl Berry  <karl@gnu.org>
81149
81150         * config/config.{sub,guess}: update from config.
81151
81152         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81153
81154 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81155
81156         * README: Mention that S+T cannot overflow if S is the size of
81157         an existing object and T is sufficiently small.
81158
81159 2003-11-17  Jim Meyering  <jim@meyering.net>
81160
81161         On systems without utime and without a utimes function capable of
81162         dealing with a NULL struct utimbuf* argument, this utime replacement
81163         could -- in unusual circumstances -- leak a file descriptor.
81164         * lib/utime.c: Include <unistd.h> and <errno.h>.
81165         (utime_null): Be sure to close `fd' and to preserve errno.
81166         Reported by Geoff Collyer via Arnold Robbins.
81167
81168 2003-11-17  Bruno Haible  <bruno@clisp.org>
81169
81170         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81171         (Depends-on): Add xsize.
81172
81173 2003-11-17  Bruno Haible  <bruno@clisp.org>
81174
81175         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81176
81177 2003-11-17  Bruno Haible  <bruno@clisp.org>
81178
81179         * lib/vasnprintf.c (alloca): Remove fallback definition.
81180         (freea): Remove definition.
81181         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81182         Reported by Paul Eggert.
81183
81184 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81185             Bruno Haible  <bruno@clisp.org>
81186
81187         Protect against address arithmetic overflow.
81188         * lib/printf-args.h: Include stddef.h.
81189         (arguments): Change type of field 'count' to size_t.
81190         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81191         'unsigned int' where appropriate.
81192         * lib/printf-parse.h: Include sys/types.h.
81193         (char_directive): Change type of *arg_index fields to ssize_t.
81194         (char_directives): Change type of fields 'count', max_*_length to
81195         size_t.
81196         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81197         (SSIZE_MAX): Define fallback value.
81198         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81199         instead of 'int' where appropriate. Check a_allocated, d_allocated
81200         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81201         * lib/vasnprintf.c: Include xsize.h.
81202         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81203         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81204         overflow. Avoid wraparound when converting a width or precision from
81205         decimal to binary.
81206
81207 2003-11-16  Bruno Haible  <bruno@clisp.org>
81208
81209         Update from GNU gettext.
81210         * lib/printf-parse.c: Generalize to it can be compiled for wide
81211         strings.
81212         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81213         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81214         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81215         SNPRINTF): New macros.
81216         Don't include <alloca.h> if the file is used inside libintl.
81217         (local_wcslen): New function, for Solaris 2.5.1.
81218         (VASNPRINTF): Use it instead of wcslen.
81219
81220 2003-11-16  Bruno Haible  <bruno@clisp.org>
81221
81222         * lib/xsize.h (xmax): New function.
81223         (xsum, xsum3, xsum4): Declare as "pure" functions.
81224
81225 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81226
81227         * modules/xalloc (Files): Undo latest change, since xalloc.h
81228         no longer needs SIZE_MAX or PTRDIFF_MAX.
81229
81230 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81231
81232         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81233         gl_PTRDIFF_MAX.
81234
81235 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81236
81237         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81238         "return", to pacify some unknown compiler.  Problem reported
81239         by Joerg Schilling.
81240
81241 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81242
81243         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81244         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81245         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81246         heuristic is just as accurate as far as we know, and it removes a
81247         dependency on size_max.m4 and ptrdiff_max.m4.
81248
81249 2003-11-11  Bruno Haible  <bruno@clisp.org>
81250
81251         * modules/xsize (Files): Add m4/size_max.m4.
81252         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81253
81254 2003-11-11  Bruno Haible  <bruno@clisp.org>
81255
81256         * m4/size_max.m4: New file.
81257         * m4/ptrdiff_max.m4: New file.
81258         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81259         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81260         (gl_XALLOC): Invoke it.
81261
81262 2003-11-11  Bruno Haible  <bruno@clisp.org>
81263
81264         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81265         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81266         defined.
81267
81268 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81269
81270         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81271         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81272         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81273         From Bruno Haible.
81274         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81275         not (size_t) -1, since it's defined here.
81276
81277 2003-11-09  Karl Berry  <karl@gnu.org>
81278
81279         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81280
81281 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81282
81283         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81284         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81285         Reject sizes of exactly SIZE_MAX bytes.
81286         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81287         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81288
81289 2003-11-05  Bruno Haible  <bruno@clisp.org>
81290
81291         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81292         SIZE_MAX defined in <limits.h> on Solaris.
81293
81294 2003-11-04  Jim Meyering  <jim@meyering.net>
81295
81296         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81297         variable names, rather than @VAR@.
81298         * modules/poll: Likewise.
81299
81300 2003-11-04  Bruno Haible  <bruno@clisp.org>
81301
81302         * modules/xsize: New file.
81303         * modules/linebreak: Depend on xsize.
81304         * MODULES.html.sh (func_all_modules): Add xsize.
81305
81306 2003-11-04  Bruno Haible  <bruno@clisp.org>
81307
81308         * m4/xsize.m4: New file.
81309
81310 2003-11-04  Bruno Haible  <bruno@clisp.org>
81311
81312         * lib/xsize.h: New file.
81313         * lib/linebreak.c: Include xsize.h.
81314         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81315         argument for overflow.
81316         Suggested by Paul Eggert.
81317
81318 2003-11-03  Karl Berry  <karl@gnu.org>
81319
81320         * config/config.{guess,sub}: update from config.
81321
81322 2003-11-03  Jim Meyering  <jim@meyering.net>
81323
81324         * modules/userspec (lib_SOURCES): Add userspec.h.
81325         (Include): Add "userspec.h".
81326         Improve description.
81327
81328 2003-11-03  Jim Meyering  <jim@meyering.net>
81329
81330         * lib/userspec.c: Include "userspec.h".
81331         * lib/userspec.h: New file.
81332
81333 2003-11-03  Bruno Haible  <bruno@clisp.org>
81334
81335         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81336
81337 2003-11-03  Bruno Haible  <bruno@clisp.org>
81338
81339         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81340         available, to avoid (extremely rare) race condition.
81341         Suggested by Paul Eggert.
81342
81343 2003-11-02  Karl Berry  <karl@gnu.org>
81344
81345         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81346
81347 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81348
81349         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81350         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81351         (read_filesystem_list): Set and use me_type_malloced.
81352         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81353         whatever the type happens to be), for brevity and consistency.
81354         Check for size calculation overflow on Alphas running OSF/1.
81355
81356 2003-10-31  Jim Meyering  <jim@meyering.net>
81357
81358         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81359
81360         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81361
81362 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81363             Bruno Haible  <bruno@clisp.org>
81364
81365         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81366         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81367
81368 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81369
81370         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81371         netbsd*-gnu*.  Suggested by Robert Millan.
81372
81373 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81374
81375         * modules/group-member: Depend on stdbool.
81376
81377 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81378
81379         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81380
81381 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81382
81383         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81384         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81385         after the 'gnu' in these cases.  This fixes some bugs in the
81386         previous change, and is based on suggestions by Robert Millan.
81387
81388 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81389
81390         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81391         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81392         no longer needed.
81393         * lib/quotearg.c (quotearg_n_options): Use it.
81394         * lib/group-member.c: Include <stdbool.h>.
81395         (free_group_info): Arg is now const *; don't free arg.
81396         (get_group_info): Now returns bool and accepts struct group_info *,
81397         rather than returning a malloc'ed struct group_info *.
81398         All uses changed.  Check for overflow in internal size calculation.
81399
81400         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81401         rather than xmalloc/xrealloc.
81402         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81403         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81404         conformance bug: the old code used a pointer after freeing the
81405         storage that it addressed.
81406         * lib/hash.c (hash_initialize): Simplify the code by using
81407         xalloc_oversized rather than doing it by hand.
81408         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81409         the buffer preserved.  Use free and xmalloc instead.
81410         * lib/quotearg.c (quotearg_n_options): Likewise.
81411         Use a simpler test for size overflow.  Don't use xalloc_oversized
81412         because unsigned int might be wider than size_t (!); this suggests
81413         that we should switch from unsigned int to size_t for slot numbers.
81414
81415 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81416
81417         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81418         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81419         NetBSD kernels.  Requested by Richard Stallman.
81420
81421 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81422
81423         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81424         to allocate the returned structure.  Do not allocate a subarray,
81425         as x2nrealloc will do that.
81426         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81427         instead of xnrealloc.
81428         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81429
81430 2003-10-27  Bruno Haible  <bruno@clisp.org>
81431
81432         * lib/stdbool_.h: Better support for BeOS.
81433
81434 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81435
81436         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81437         now uses inline.
81438
81439 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81440
81441         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81442         callers that want to do their own size-overflow checking.  Include
81443         <stdbool.h>, since xalloc_oversized returns bool.
81444         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81445         to use xalloc_oversized.
81446
81447         Add two functions x2realloc, x2nrealloc, for programs that grow
81448         arrays dynamically by doubling their sizes.
81449         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81450         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81451         New functions.
81452
81453         Port to C99 semantics for 'inline' of external functions.
81454         Bug reported by Bruno Haible.
81455         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81456         with the old contents of xnmalloc.
81457         (xnmalloc, xmalloc): Use it.
81458         (xnrealloc_inline): New static inline function,
81459         with the old contents of xnrealloc.
81460         (xnrealloc, xrealloc): Use it.
81461
81462         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81463         that.
81464
81465 2003-10-26  Karl Berry  <karl@gnu.org>
81466
81467         * config/srclist.txt (COPYING.DOC): no longer available from
81468         /gd/gnuorg; don't know where the ultimate source is.
81469
81470 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81471
81472         Fix several address-calculation bugs in the hash modules,
81473         plus some minor code cleanup.
81474
81475         * lib/hash.h: Include <stdbool.h>, for bool.
81476         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81477         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81478         hash_get_n_entries, hash_get_max_bucket_length,
81479         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81480         hash_rehash): Use size_t rather than unsigned.
81481         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81482         hash_get_n_buckets_used, hash_get_n_entries,
81483         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81484         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81485         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81486         Likewise.
81487         (SIZE_MAX): Define if not defined.
81488         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81489         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81490         hash_print):
81491         Use const * when possible.
81492         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81493         (check_tuning): Fix bug: if tuning parameters were very close to
81494         0 or 1, rounding errors could have caused subscript violations.
81495         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81496         (hash_initialize): Add 'fail:' label
81497         to free table and return NULL, and use it to simplify code.
81498         Use calloc rather than clearing the storage ourself.
81499         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81500         buffer size calculations.
81501         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81502         Include <stddef.h>, for size_t.
81503         * lib/hash-pjw.c (hash_pjw): Likewise.
81504         Switch to method described by Bruno Haible.
81505         Include <limits.h>, for CHAR_BIT.
81506         (SIZE_BITS): New macro.
81507
81508 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81509
81510         * m4/getline.m4 (AM_FUNC_GETLINE):
81511         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81512         hosts.  Problem reported by Derek Robert Price in
81513         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81514         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81515         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81516
81517 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81518
81519         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81520         ceiling the allocation at NMAX bytes rather than silently
81521         discarding input bytes before NMAX is reached.  This makes
81522         a difference only if NMAX exceeds SIZE_MAX / 2.
81523
81524         * lib/obstack.c: Merge from glibc.
81525         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81526         Add libc_hidden_def (_obstack_newchunk).
81527         (_obstack_free) [! defined _LIBC]: Remove.
81528         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81529         a clone of the function body.
81530         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81531         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81532
81533         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81534         glibc.
81535         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81536         arg to memcpy.
81537
81538         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81539         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81540         Don't use lvalue casts, as GCC plans to remove support for them
81541         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81542         was also present in the non-GCC version, indicating that this
81543         code had always been buggy and had never been widely used.
81544         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81545         Use the fast variant of each macro, rather than copying the
81546         definiens of the fast variant; that way, we'll be more likely to
81547         catch future bugs in the fast variants.
81548
81549 2003-10-20  Bruno Haible  <bruno@clisp.org>
81550
81551         * modules/wait-process: New file.
81552         * MODULES.html.sh (func_all_modules): Add wait-process.
81553
81554 2003-10-20  Bruno Haible  <bruno@clisp.org>
81555
81556         * m4/wait-process.m4: New file.
81557
81558 2003-10-20  Bruno Haible  <bruno@clisp.org>
81559
81560         * lib/wait-process.h: New file, from GNU gettext.
81561         * lib/wait-process.c: New file, from GNU gettext.
81562
81563 2003-10-19  Jim Meyering  <jim@meyering.net>
81564
81565         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81566         HPUX 10.20.
81567
81568 2003-10-18  Karl Berry  <karl@gnu.org>
81569
81570         * config/config.guess: update from config.
81571
81572 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81573
81574         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81575         (getgroups): First arg is int, not size_t.
81576         Don't let 'free' mangle errno.
81577
81578 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81579
81580         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81581
81582 2003-10-16  Karl Berry  <karl@gnu.org>
81583
81584         * config/config.{guess,sub}: update from config.
81585
81586 2003-10-16  Jim Meyering  <jim@meyering.net>
81587
81588         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81589         memcpy.
81590
81591 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81592
81593         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81594         (SIZE_MAX): Remove.
81595         (new_exclude, add_exclude_file): Initial size no longer needs to
81596         be a power of 2.
81597         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81598         our own address arithmetic overflow checking.
81599
81600         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81601         (fnmatch): Do not alloca more than 2000 wide characters;
81602         instead, use malloc for large buffers.
81603         Check for address arithmetic overflow, and return -1
81604         with errno set to ENOMEM in that case.
81605         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81606         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81607         instead, return -1.  Check for address arithmetic overflow.
81608
81609 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81610
81611         Handle invalid suffixes and overflow independently, so that
81612         callers can treat them independently as needed.  Fix some bugs in
81613         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81614         suffix for a human-readable blocksize.  The major caller-visible
81615         change is the addition of a new
81616         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81617         that both overflow and suffix chars were found.
81618
81619         * lib/human.c (humblock): Don't check separately for invalid suffix
81620         char; that is xstrtoumax's job (now that its bug is fixed).
81621         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81622         INTMAX_MAX]: New macros.
81623         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81624         TYPE_MAXIMUM): New macros.
81625         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81626         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81627         if overflow occurs, as it's what __strtol does and it's more useful
81628         in practice.
81629         (__xstrtol): If __strtol reports some error other than ERANGE,
81630         reflect it to the caller as LONGINT_INVALID.  If it reports
81631         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81632         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81633         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81634         value.
81635         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81636         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81637         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81638         [defined UINTMAX_MAX]: New macros.
81639
81640 2003-10-14  Bruno Haible  <bruno@clisp.org>
81641
81642         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81643
81644 2003-10-14  Bruno Haible  <bruno@clisp.org>
81645
81646         * m4/sig_atomic_t: New file, from GNU gettext.
81647         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81648
81649 2003-10-14  Bruno Haible  <bruno@clisp.org>
81650
81651         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81652         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81653         Also use volatile where needed.
81654
81655 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81656
81657         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81658         Change maintainer from Bruno Haible to 'all'.
81659
81660 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81661
81662         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81663
81664 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81665
81666         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81667         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81668         and define in terms of the other primitives.
81669         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81670         (SIZE_MAX): Define if not already defined.
81671         (array_size_overflow): New function.
81672         (xalloc_die): Abort instead of exiting if 'error' returns.
81673         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81674         (xmalloc, xrealloc): Use them.
81675         (xcalloc): Check for address arithmetic overflow.
81676         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81677         a bit faster than strcpy.
81678
81679 2003-10-10  Simon Josefsson  <jas@extundo.com>
81680
81681         * modules/argp (Depends-on): Add restrict and strcase.
81682
81683 2003-10-10  Simon Josefsson  <jas@extundo.com>
81684
81685         * m4/argp.m4: Add AC_C_INLINE.
81686
81687 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81688
81689         Merge getpass from libc, plus a few fixes.
81690
81691         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81692         Include <stdbool.h>.
81693         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81694         __fsetlocking to empty.
81695         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81696         do include <bits/libc-lock.h>.
81697         Do not include <fcntl.h>; not needed.
81698         [_LIBC]: Include <wchar.h>.
81699         (NOTCANCEL_MODE): New macro.
81700         (flockfile, funlockfile) [_LIBC]: New macros.
81701         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81702         [!_LIBC]: New macros.
81703         (call_fclose): New function.
81704         (getpass): Use it.  Save tty stream separately; this simplifies the
81705         code and makes it more reliable if stdin happens to equal stdout.
81706         Invoke __fsetlocking on tty.
81707         Handle thread cancellation if needed.
81708         Namespace cleanup (use __tcgetattr, __getline).
81709         Use bool for Booleans.
81710         [USE_IN_LIBIO]: Handle wide streams.
81711         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81712         stream might go where.
81713
81714         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81715         doesn't have to include <stdio.h> before us.
81716         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81717         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81718         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81719         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81720         if not declared, so that we can use getpass.c code from libc without
81721         rewriting it.
81722         (flockfile, ftrylockfile, funlockfile): New macros.
81723
81724 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81725
81726         * modules/getpass: Depend on stdbool.
81727
81728 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81729
81730         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81731
81732 2003-10-07  Karl Berry  <karl@gnu.org>
81733
81734         * config/config.{guess,sub}: update from config.
81735
81736 2003-10-06  Jim Meyering  <jim@meyering.net>
81737             Bruno Haible  <bruno@clisp.org>
81738
81739         This lets translators provide better translations for the
81740         "Written by ..." part of --version output.
81741         * lib/version-etc.h: Include stdarg.h.
81742         (version_etc_copyright): Declare as readonly.
81743         (version_etc): Make this function variadic with a NULL-terminated list
81744         of author name strings.
81745         (version_etc_va): New declaration.
81746         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81747         (version_etc_copyright): Declare as readonly.
81748         (version_etc_va): New function. Provide a different translatable string
81749         for each possible number of authors < 10. Abbreviate when there are 10
81750         authors or more.
81751         (version_etc): Make this function variadic. Call version_etc_va.
81752         Suggestion from Gary V. Vaughan.
81753
81754         * lib/long-options.h (parse_long_options): Change prototype: the
81755         authors string is moved to the end and becomes variadic.
81756         * lib/long-options.c: Include stdarg.h.
81757         (parse_long_options): Make this function variadic, too.
81758         Call version_etc_va, not version_etc.
81759
81760 2003-10-06  Bruno Haible  <bruno@clisp.org>
81761
81762         * modules/version-etc-2: Remove file.
81763         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81764
81765 2003-10-06  Bruno Haible  <bruno@clisp.org>
81766
81767         * modules/fatal-signal: New file.
81768         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81769
81770 2003-10-06  Bruno Haible  <bruno@clisp.org>
81771
81772         * m4/fatal-signal.m4: New file.
81773         * m4/signalblocking.m4: New file, from GNU gettext.
81774
81775 2003-10-06  Bruno Haible  <bruno@clisp.org>
81776
81777         * lib/version-etc-2.h: Remove file.
81778         * lib/version-etc-2.c: Remove file.
81779
81780 2003-10-06  Bruno Haible  <bruno@clisp.org>
81781
81782         * lib/fatal-signal.h: New file, from GNU gettext.
81783         * lib/fatal-signal.c: New file, from GNU gettext.
81784
81785 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81786
81787         * README: Rework advice for preventing empty .o files.
81788         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81789         not <sys/types.h>.
81790
81791 2003-10-04  Karl Berry  <karl@gnu.org>
81792
81793         * lib/argp*: update from libc.
81794
81795 2003-10-04  Karl Berry  <karl@gnu.org>
81796
81797         * config/config.{guess,sub}: update from config.
81798
81799 2003-10-02  Bruno Haible  <bruno@clisp.org>
81800
81801         * modules/lchown (Include): Add lchown.h.
81802         * modules/time_r (Include): Use "..." syntax.
81803         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81804
81805 2003-10-01  Simon Josefsson  <jas@extundo.com>
81806
81807         * MODULES.html.sh (func_all_modules): Move gethostname from section
81808         'based on' to section 'lacking' POSIX:2001.
81809
81810 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81811
81812         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81813         to output mode on the same stream.
81814
81815 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81816
81817         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81818         Fix arg typo in previous patch.
81819
81820 2003-09-28  Jim Meyering  <jim@meyering.net>
81821
81822         * lib/error.c: Correct cpp indentation.
81823
81824 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81825
81826         * modules/free: New file.
81827
81828 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81829
81830         * m4/free.m4: New file.
81831
81832 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81833
81834         * lib/minmax.h (MIN, MAX)
81835         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81836         Omit the special code that used __typeof__, since we worry that
81837         it could be more trouble than it's worth.  See:
81838         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81839         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81840
81841         * lib/free.c: New file.
81842
81843 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81844
81845         Trivial fixes to Makefile.am parts of module listings.
81846         * modules/strstr: Append strstr.h to lib_SOURCES.
81847         * modules/strcase: Likewise, for strcase.h.
81848
81849 2003-09-27  Karl Berry  <karl@gnu.org>
81850
81851         * config/mkinstalldirs: update from automake.
81852
81853 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81854
81855         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81856         (error_tail): Do not loop, reallocating temporary buffer, since
81857         the output cannot contain more wide characters than the input
81858         contains bytes, the size must be big enough already.  This avoids
81859         one potential size overflow calculation.  Check for size overflow
81860         when calculating temporary buffer size.  Free temporary buffer
81861         when done, if it was allocated with malloc; this plugs a memory
81862         leak.  Remove casts from void * to pointers, that are no longer
81863         needed now that we're assuming C89 or better.
81864
81865         Merge error changes from glibc.
81866
81867         * lib/error.c, error.h: Update copyright notice header to match glibc.
81868         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81869         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81870         Disable cancellation while printing error.
81871         * lib/error.h: Prepend __ to parameter names.
81872
81873 2003-09-26  Jim Meyering  <jim@meyering.net>
81874
81875         * lib/error.c (error_tail): Move some declarations
81876         into inner scope where the local variables are used.
81877
81878 2003-09-26  Bruno Haible  <bruno@clisp.org>
81879
81880         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81881         stpncpy().
81882         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81883
81884 2003-09-26  Bruno Haible  <bruno@clisp.org>
81885
81886         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81887         (stpncpy): Define as alias for gnu_stpncpy.
81888         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81889
81890 2003-09-25  Simon Josefsson  <jas@extundo.com>
81891
81892         * lib/xgetdomainname.h: New file.
81893         * lib/xgetdomainname.c: New file.
81894
81895 2003-09-25  Simon Josefsson  <jas@extundo.com>
81896             Bruno Haible  <bruno@clisp.org>
81897
81898         * modules/getdomainname: New file.
81899         * modules/xgetdomainname: New file.
81900         * MODULES.html.sh (func_all_modules): Add getdomainname,
81901         xgetdomainname.
81902
81903 2003-09-25  Simon Josefsson  <jas@extundo.com>
81904             Bruno Haible  <bruno@clisp.org>
81905
81906         * m4/getdomainname.m4: New file.
81907
81908 2003-09-25  Simon Josefsson  <jas@extundo.com>
81909             Bruno Haible  <bruno@clisp.org>
81910
81911         * lib/getdomainname.h: New file.
81912         * lib/getdomainname.c: New file.
81913
81914 2003-09-25  Karl Berry  <karl@gnu.org>
81915
81916         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81917
81918 2003-09-25  Karl Berry  <karl@gnu.org>
81919
81920         * config/install-sh: update from automake.
81921
81922 2003-09-25  Bruno Haible  <bruno@clisp.org>
81923
81924         * modules/version-etc-2: New file, from modules/version-etc with
81925         modifications.
81926         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81927
81928 2003-09-25  Bruno Haible  <bruno@clisp.org>
81929
81930         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81931         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81932
81933 2003-09-24  Simon Josefsson  <jas@extundo.com>
81934
81935         * modules/xgethostname: Add xgethostname.h.
81936
81937 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81938
81939         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81940         the buffer associated with the argument.  Bug reported by
81941         Simon Josefsson.
81942
81943 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81944
81945         * README: Document assumptions that 'int' is at least 32 bits
81946         wide, that integer arithmetic is 2's complement without overflow,
81947         that there are no holes in integer values, that adding sizes of
81948         two nonoverlapping objects can't overflow, and that all-bits-zero
81949         yields scalar zero.  Fix spelling and capitalization typos.
81950
81951 2003-09-19  Karl Berry  <karl@gnu.org>
81952
81953         * lib/argp.h: update from libc.
81954
81955 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81956
81957         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81958         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81959         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81960
81961 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81962
81963         * gnulib-tool: Use "test -h", not "test -L", for portability
81964         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81965         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81966         (sed_extract_prog): Issue s commands one-by-one, rather than
81967         using \| in one s command.
81968
81969 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81970
81971         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81972         input error, instead of returning NULL the next time we are called
81973         (and therefore losing track of errno).
81974
81975 2003-09-16  Bruno Haible  <bruno@clisp.org>
81976
81977         * gnulib-tool (func_create_testdir): Warn about duplicated
81978         dependencies.
81979
81980 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81981
81982         * modules/argmatch, modules/fatal, modules/obstack,
81983         modules/xalloc, modules/xgethostname: Sort dependencies by
81984         importance, not alphabetically.
81985
81986 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81987
81988         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81989         fails, so that the caller gets the proper errno.
81990
81991         * lib/readutmp.c (read_utmp): Likewise.
81992         Check for fstat error.  Close stream and free storage
81993         when failing.
81994
81995 2003-09-14  Karl Berry  <karl@gnu.org>
81996
81997         * config/srclist.txt (strdup.c): disable for c89 changes.
81998
81999 2003-09-14  Jim Meyering  <jim@meyering.net>
82000
82001         * lib/getloadavg.c: Correct cpp indentation.
82002         * lib/strdup.c: Likewise.
82003         * lib/vasnprintf.c: Likewise.
82004
82005 2003-09-14  Bruno Haible  <bruno@clisp.org>
82006
82007         * modules/fwriteerror: New file.
82008         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82009
82010 2003-09-14  Bruno Haible  <bruno@clisp.org>
82011
82012         * lib/fwriteerror.h: New file.
82013         * lib/fwriteerror.c: New file.
82014
82015 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82016
82017         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82018         modules/xgethostname, modules/xalloc: Depend on exit.
82019
82020 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82021
82022         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82023
82024         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82025         and AC_MINIX, too, so that their extensions are available.
82026
82027         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82028         This macro has been superseded by gl_BACKUPFILE.
82029
82030         More patches to assume C89 or better.
82031
82032         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82033
82034         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82035         unconditionally.
82036         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82037         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82038         Include <string.h>, <stdlib.h> unconditionally.
82039         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82040         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82041         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82042         headers or for string.h.
82043         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82044         or strtoul.
82045
82046         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82047         headers.
82048         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82049         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82050         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82051         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82052         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82053         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82054         memcpy, memset.
82055         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82056         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82057         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82058         strtol.
82059         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82060         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82061         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82062         strtoul.
82063
82064 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82065
82066         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82067         * lib/obstack.c [!defined _LIBC]: Likewise.
82068         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82069         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82070         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82071
82072         More changes to assume C89 or better.
82073
82074         * lib/error.c (error_tail): Assume vprintf.
82075
82076         * lib/argmatch.c (getenv): Remove decl.
82077         * lib/progreloc.c (get_full_program_name): Define via prototype.
82078         * lib/setenv.c (clearenv): Likewise.
82079         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82080         needed.
82081         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82082         (malloc, memcpy): Remove decls.
82083         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82084         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82085         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82086         (memcpy): Remove macro.
82087         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82088         (__P): Remove.  All uses removed.
82089         (PTR): Remove.  All uses changed to void *.
82090         (CHAR_BIT, NULL): Remove.
82091         (spaces, zeros, memset_space, memset_zero)
82092         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82093         Remove.
82094         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82095         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82096         Define with prototype.
82097         Remove now-unnecessary prototype decl.
82098         (extra_args_spec): Assume ANSI C.  All uses changed.
82099         (extra_args_spec_iso): Remove.
82100         (my_strftime, emacs_strftimeu): Define via prototype.
82101         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82102         unconditionally.
82103         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82104         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82105         (strtoul, strtol): Remove decls.
82106         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82107         LONG_MAX): Remove.
82108         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82109         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82110         (LOCALE_PARAM_PROTO): New macro.
82111         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82112         (INTERNAL (strtol), strtol): Define with a prototype.
82113         (PARAMS): Remove.  All uses removed.
82114         * lib/tempname.c: Include <string.h> unconditionally.
82115         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82116         * lib/xgethostname.c (main): Define with a prototype.
82117         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82118         Include <stdlib.h> unconditionally.
82119         (calloc, malloc, realloc, free): Remove decls.
82120         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82121         Include <stdlib.h> unconditionally.  Sort include file names.
82122         (strtod): Remove.
82123         (xstrtod): Define with a prototype.
82124         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82125         (strtol, strtoul): Remove decls.
82126
82127 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82128
82129         More patches to assume C89 or better.
82130         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82131         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82132         string.h, memchr, STDC_HEADERS.
82133
82134 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82135
82136         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82137         Include <stdlib.h>, <string.h> unconditionally.
82138         Remove now-unnecessary cast to char *.
82139         * lib/strnlen.c: Include <string.h> unconditionally.
82140         * lib/yesno.c (yesno): Define with a prototype.
82141
82142 2003-09-11  Bruno Haible  <bruno@clisp.org>
82143
82144         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82145
82146 2003-09-10  Jim Meyering  <jim@meyering.net>
82147
82148         * lib/error.c: Correct indentation of cpp directives.
82149
82150 2003-09-10  Bruno Haible  <bruno@clisp.org>
82151
82152         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82153         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82154         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82155         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82156         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82157         <stdlib.h> and <string.h> checks.
82158         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82159         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82160
82161 2003-09-10  Bruno Haible  <bruno@clisp.org>
82162
82163         * lib/strcspn.c: Include <string.h> unconditionally.
82164         * lib/strpbrk.c: Include <string.h> unconditionally.
82165         * lib/strstr.c: Include <string.h> unconditionally.
82166         * lib/unicodeio.c: Include <string.h> unconditionally.
82167         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82168         * lib/unsetenv.c: Likewise.
82169         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82170         * lib/yesno.c: Include <stdlib.h> unconditionally.
82171         (rpmatch): Add prototype.
82172
82173 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82174
82175         More patches to assume C89 or better.
82176         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82177         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82178         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82179         or for string.h.
82180         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82181         stdlib.h.
82182         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82183         C headers.
82184         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82185         string.h.
82186         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82187         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82188         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82189         or for string.h.
82190         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82191         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82192         C headers.
82193         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82194         memcpy.
82195         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82196         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82197         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82198         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82199         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82200         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82201         string.h, free.
82202         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82203         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82204         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82205         C headers, or for string.h.
82206         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82207         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82208         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82209         headers, memory.h, stdlib.h, string.h, strings.h.
82210         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82211         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82212         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82213         strchr.
82214         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82215         headers, memory.h, string.h.
82216         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82217         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82218         free.
82219         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82220         headers.
82221         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82222         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82223         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82224         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82225         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82226
82227 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82228
82229         More K&R removal.
82230
82231         * lib/acosl.c (main): Use a prototype.
82232         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82233         tanl.c: Likewise.
82234
82235         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82236
82237         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82238         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82239         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82240         with a prototype.
82241         * lib/getopt.c (const): Remove macro.
82242         Include <string.h> unconditionally.
82243         (my_index): Remove; all uses changed to strchr.
82244         (strlen): Remove decl.
82245         (exchange): Remove forward decl; no longer needed.
82246         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82247         Define with prototype.
82248         * lib/getopt1.c (const): Remove macro.
82249         (getopt_long, getopt_long_only, main): Define with prototype.
82250
82251         * lib/getugroups.c: Include <string.h> unconditionally.
82252
82253         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82254         (getusershell, setusershell, endusershell, readname, main):
82255         Define with prototypes.
82256
82257         * lib/group-member.c: Include group-member.h first.
82258         Include <stdlib.h> unconditionally.
82259
82260         * lib/hard-locale.c: Include hard-locale.h first.
82261         Include <stdlib.h>, <string.h> unconditionally.
82262
82263         * lib/hash.c (free, malloc): Remove decls.
82264         Include <stdlib.h> unconditionally.
82265
82266         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82267         (getenv): Do not declare.
82268
82269         * lib/idcache.c: Include <string.h> unconditionally.
82270
82271         * lib/long-options.c: Include long-options.h first, to test interface.
82272         Include <stdlib.h> unconditionally.
82273
82274         * lib/makepath.c: Include makepath.h first, to test interface.
82275         Include <stdlib.h> and <string.h> unconditionally.
82276
82277         * lib/linebuffer.c: Include <stdlib.h>.
82278         (free): Remove decl.
82279
82280         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82281         stddef.h. rpl_malloc returns void *, not char *.
82282         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82283         prototype.
82284
82285         * lib/md5.h: Include <limits.h> unconditionally.
82286         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82287         (__P): Remove; all uses removed.
82288         * lib/md5.c: Include "md5.h" first.
82289         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82290         md5_buffer, md5_process_bytes, md5_process_block):
82291         Define with prototypes.
82292         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82293         * lib/sha.c: Include "sha.h" first.
82294         Include <stdlib.h>, <string.h> unconditionally.
82295
82296         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82297         * lib/memcmp.c (__ptr_t): Likewise.
82298         * lib/memrchr.c (__ptr_t): Likewise.
82299         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82300         Include <string.h> unconditionally.
82301         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82302         * lib/memchr.c: Include <stdlib.h> unconditionally.
82303         * lib/memchr.c (LONG_MAX): Remove.
82304         * lib/memrchr.c (LONG_MAX): Likewise.
82305         * lib/memchr.c (__memchr): Define via a prototype.
82306         * lib/memrchr.c (__memrchr): Likewise.
82307         * lib/memcmp.c (__P): Remove, and remove all uses.
82308         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82309         Remove forward decls; no longer needed.
82310         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82311         Use types required by C89 in prototype.
82312
82313         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82314         * lib/savedir.c: Likewise.
82315         * lib/mkdir.c (free): Remove decl.
82316         * lib/rmdir.c (rmdir): Define with a prototype.
82317         * lib/savedir.c: Include savedir.h first, to test interface.
82318
82319         * lib/mktime.c (STDC_HEADERS): Remove.
82320         Include <stdlib.h>, <string.h> unconditionally.
82321
82322         * lib/modechange.c: Include <stdlib.h> unconditionally.
82323         (malloc): Remove decl.
82324
82325         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82326         (free): Remove decl.
82327
82328         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82329         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82330         (This type really should be intptr_t, but that's a C99ism.)
82331         (_obstack_memcpy): Remove: all uses changed to memcpy.
82332         Include <string.h> unconditionally.
82333         (struct obstack): Assume __STDC__ for types of members
82334         chunkfun, freefun, extra_arg.
82335         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82336         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82337         obstack_begin, obstack_specify_allocation,
82338         obstack_specify_allocation_with_arg, obstack_chunkfun,
82339         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82340         Remove unprototyped decls and the macros that use them.
82341         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82342         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82343         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82344         (defined __STDC__ && __STDC__)]:
82345         Remove nonprototyped code.
82346         Include <stdlib.h> unconditionally.
82347         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82348         _obstack_allocated_p, _obstack_free, obstack_free,
82349         _obstack_memory_used, print_and_abort):
82350         Define using prototypes.
82351         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82352         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82353         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82354         obstack_next_free, obstack_object_size, obstack_room) [0]:
82355         Remove unused, unprototyped code.
82356
82357         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82358
82359         * lib/physmem.c (physmem_total, physmem_available, main): Define
82360         with prototypes.
82361
82362         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82363         (main): Define with a prototype.
82364
82365         * lib/posixver.c (getenv): Remove decl.
82366
82367         * lib/putenv.c (malloc): Returns void *, not char *.
82368         Include <string.h> unconditionally.
82369         (strchr, memcpy, NULL): Do not define.
82370
82371         * lib/readtokens.c: Include readtokens.h first, to test interface.
82372         Include <stdlib.h>, <string.h> unconditionally.
82373         (init_tokenbuffer): Define with a prototype.
82374
82375         * lib/regex.c (PARAMS): Remove.  All uses removed.
82376         All uses of _RE_ARGS removed, too.
82377         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82378         unconditionally.
82379         (bzero): Assume memset exists.
82380         (memcmp, memcpy, NULL): Remove.
82381         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82382         char, or assignments to local vars of type signed char.
82383         (init_syntax_once, PREFIX(extract_number_and_incr),
82384         PREFIX(print_partial_compiled_pattern),
82385         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82386         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82387         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82388         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82389         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82390         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82391         wcs_compile_range, byte_compile_range, truncate_wchar,
82392         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82393         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82394         count_mbs_length, wcs_re_match_2_internal,
82395         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82396         PREFIX(alt_match_null_string_p),
82397         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82398         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82399         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82400         now-unnecessary declaration, if any.
82401         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82402         regcomp, regexec):
82403         Remove now-unnecessary casts among pointer types.
82404         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82405
82406         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82407         (free): Remove decl.
82408
82409         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82410
82411         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82412         (free): Remove decl.
82413
82414         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82415         * lib/xgetcwd.c: Likewise.
82416
82417         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82418         (free): Remove decl.
82419
82420         * lib/strchrnul.c (strchrnul): Define with a prototype.
82421         Fix bug: c_in was not converted to char before searching.
82422
82423         The following changes are not K&R related:
82424
82425         * lib/group-member.h: Include <sys/types.h>, so that this file is
82426         self-contained.
82427         * lib/makepath.h: Likewise.
82428
82429         * lib/getusershell.c (readname, default_index, line_size, readname):
82430         Use size_t, not int, for sizes.
82431         (readname): If the size overflows, report an error instead of
82432         looping forever.
82433
82434 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82435
82436         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82437         libc.
82438
82439 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82440
82441         * README: New section: portability guidelines.
82442
82443 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82444
82445         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82446         C89 spec.
82447
82448 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82449
82450         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82451
82452 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82453
82454         Assume C89 or better; remove K&R cruft.
82455         A few of these changes were first proposed by Derek Robert Price
82456         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82457
82458         * lib/addext.c: Include <string.h> unconditionally.
82459         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82460         Don't declare getenv or malloc.
82461
82462         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82463         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82464         (NULL): Remove.
82465         (find_stack_direction, alloca): Use prototypes.
82466
82467         * lib/atexit.c (atexit): Define using a prototype.
82468
82469         * lib/basename.c, dirname.c, stripslash.c:
82470         Include <string.h> unconditionally.
82471
82472         * lib/bcopy.c: Include <stddef.h>.
82473         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82474
82475         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82476
82477         * lib/error.h (error, error_at_line, error_print_progname)
82478         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82479         * lib/error.c: Include error.h first, to check interface.
82480         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82481         (VA_START): Remove; all uses changeed to va_start.
82482         (exit, strerror): Remove decls.
82483         (error_print_progname): Prototype uncondionally.
82484         Don't include <errno.h>; no longer needed.
82485         (private_strerror): Remove.
82486         (error_tail): Always define.
82487         (error, error_at_line): Assume C89 or better; always use prototypes.
82488         * lib/fatal.c: Include "fatal.h" first, to test interface.
82489         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82490         (VA_START): Remove; all uses changed to va_start.
82491         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82492         this case.
82493         (exit): Remove decl.
82494         (fatal): Prototype unconditionally.  Assume va_start works.
82495         Abort at end, to pacify gcc.
82496
82497         * lib/euidaccess.c (main): Define with a prototype.
82498
82499         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82500
82501         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82502
82503         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82504         prototypes.
82505         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82506         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82507         (getenv): Remove decl.
82508         (fnmatch): Define using a prototype.
82509         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82510         (FCT): Define using a prototype.
82511
82512         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82513
82514         * lib/gethostname.c: Include <stddef.h>.
82515         (gethostname): Define with prototype.  Length is size_t, not int.
82516
82517 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82518
82519         Assume C89 or better; remove K&R cruft.
82520         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82521         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82522         string.h, getenv, malloc.
82523         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82524         headers.
82525         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82526         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82527         do not check for strerror.
82528         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82529         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82530         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82531         do not check for doprnt or vprintf.
82532         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82533         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82534
82535 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82536
82537         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82538         getversion.c should have been removed then, but was accidentally
82539         preserved.
82540
82541         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82542         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82543
82544 2003-09-08  Karl Berry  <karl@gnu.org>
82545
82546         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82547                 config, forget about prep.
82548
82549         * config/depcomp, missing: update from automake.
82550
82551 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82552
82553         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82554         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82555
82556 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82557
82558         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82559         copy_tm_result.  Bug reported by Simon Josefsson in
82560         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82561
82562 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82563
82564         * m4/time_r.m4: New file.
82565         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82566         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82567         is. Check for timegm declaration.
82568         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82569         Do not check for gmtime_r.
82570         Replace mktime if __mktime_internal does not exist and if mktime
82571         hasn't been replaced already.
82572
82573 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82574
82575         * lib/time_r.c, lib/time_r.h: New files.
82576
82577         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82578         __localtime_r.
82579         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82580         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82581
82582         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82583         __gmtime_r.
82584         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82585         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82586         Include <time_r.h>.
82587
82588         * lib/timegm.c: Switch to glibc implementation, with the following
82589         changes:
82590         [defined HAVE_CONFIG_H]: Include <config.h>.
82591         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82592         (__mktime_internal) [!defined _LIBC]: New decl.
82593         (__gmtime_r) [!defined _LIBC]: New macro and function.
82594         (timegm): Use a prototype, since gnulib assumes C89.
82595         Do not bother declaring tmp to be const, as it's not really usefu.
82596         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82597         (timegm): Declare only if HAVE_DECL_TIMEGM.
82598
82599 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82600
82601         * MODULES.html.sh (func_all_modules): Add time_r.
82602         * modules/time_r: New file.
82603         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82604         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82605
82606 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82607
82608         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82609         Bug reported by Lute Kamstra in
82610         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82611
82612         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82613         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82614         course with correspondingly smaller numbers for tomorrow and
82615         yesterday.  From Tadayoshi Funaba.  Originally installed into
82616         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82617         coreutils merge?).
82618
82619 2003-08-31  Simon Josefsson  <jas@extundo.com>
82620
82621         * modules/timegm: New file.
82622         * MODULES.html.sh (func_all_modules): Add timegm.
82623
82624 2003-08-31  Simon Josefsson  <jas@extundo.com>
82625
82626         * m4/timegm.m4: New file.
82627
82628 2003-08-31  Simon Josefsson  <jas@extundo.com>
82629
82630         * lib/timegm.h: New file.
82631         * lib/timegm.c: New file.  Based on
82632         wget-1.8.2/src/http.c:mktime_from_utc.
82633
82634 2003-08-31  Karl Berry  <karl@gnu.org>
82635
82636         * lib/argp.h: update from libc.
82637
82638 2003-08-28  Bruno Haible  <bruno@clisp.org>
82639
82640         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82641         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82642         followed by '#define fnmatch fnmatch_posix' gives an error.
82643
82644 2003-08-28  Bruno Haible  <bruno@clisp.org>
82645
82646         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82647         warning on QNX, which defines O_BINARY to 000000.
82648
82649 2003-08-27  Jim Meyering  <jim@meyering.net>
82650
82651         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82652         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82653         would fail after 32.  Reported by Danny Levinson.  Details here:
82654         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82655
82656 2003-08-24  Bruno Haible  <bruno@clisp.org>
82657
82658         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82659         MSVC7 <stdio.h> is included later.
82660
82661 2003-08-22  Simon Josefsson  <jas@extundo.com>
82662
82663         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82664
82665 2003-08-20  Karl Berry  <karl@gnu.org>
82666
82667         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82668
82669 2003-08-20  Bruno Haible  <bruno@clisp.org>
82670
82671         * modules/progname: New file.
82672         * MODULES.html.sh (func_all_modules): Add progname.
82673
82674 2003-08-20  Bruno Haible  <bruno@clisp.org>
82675
82676         * lib/progname.h: New file, from GNU gettext.
82677         * lib/progname.c: New file, from GNU gettext.
82678         * lib/progreloc.c: New file, from GNU gettext.
82679
82680 2003-08-19  Jim Meyering  <jim@meyering.net>
82681
82682         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82683         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82684
82685 2003-08-19  Bruno Haible  <bruno@clisp.org>
82686
82687         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82688         more.
82689
82690 2003-08-19  Bruno Haible  <bruno@clisp.org>
82691
82692         * lib/xstrdup.c: Assume <string.h> exists.
82693
82694 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82695
82696         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82697         in makefile rules.
82698
82699 2003-08-18  Jim Meyering  <jim@meyering.net>
82700
82701         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82702         * m4/lib-ld.m4: Likewise.
82703
82704 2003-08-18  Jim Meyering  <jim@meyering.net>
82705
82706         * lib/setenv.h: Indent nested cpp directive.
82707         * lib/vasnprintf.c: Remove trailing blanks.
82708
82709 2003-08-17  Simon Josefsson  <jas@extundo.com>
82710
82711         * modules/xstrndup: New file.
82712         * MODULES.html.sh (func_all_modules): Add xstrndup.
82713
82714 2003-08-17  Simon Josefsson  <jas@extundo.com>
82715
82716         * modules/argp: Fix autoconf macro name. Add more dependencies.
82717
82718 2003-08-17  Simon Josefsson  <jas@extundo.com>
82719
82720         * m4/xstrndup.m4: New file.
82721
82722 2003-08-17  Simon Josefsson  <jas@extundo.com>
82723
82724         * m4/argp.m4: New file.
82725
82726 2003-08-17  Simon Josefsson  <jas@extundo.com>
82727             Bruno Haible  <bruno@clisp.org>
82728
82729         * lib/xstrndup.h: New file.
82730         * lib/xstrndup.c: New file.
82731
82732 2003-08-17  Bruno Haible  <bruno@clisp.org>
82733
82734         * modules/strndup (Files, Include): Add lib/strndup.h.
82735
82736 2003-08-17  Bruno Haible  <bruno@clisp.org>
82737
82738         * modules/euidaccess (Files): Add lib/euidaccess.h.
82739
82740 2003-08-17  Bruno Haible  <bruno@clisp.org>
82741
82742         * lib/strndup.h: New file.
82743
82744 2003-08-17  Bruno Haible  <bruno@clisp.org>
82745
82746         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82747         like AC_GNU_SOURCE.
82748         * modules/extensions (configure.ac): Comment out the invocation of
82749         gl_USE_SYSTEM_EXTENSIONS.
82750
82751 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82752
82753         Merges from coreutils, etc.
82754         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82755         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82756         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82757         fixing a typo.
82758         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82759         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82760
82761 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82762
82763         Document merge from coreutils.
82764         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82765         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82766         * modules/utime: Add m4/utimes-null.m4.
82767
82768 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82769
82770         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82771         space, undoing this 2003-08-12 change:
82772         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82773
82774 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82775
82776         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82777         strtoul.c from libc, undoing this 2003-08-12 change:
82778         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82779
82780 2003-08-16  Jim Meyering  <jim@meyering.net>
82781
82782         Merges from coreutils.
82783         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82784         prefix.  Adjust cache variables similarly.  Create 500 rather than
82785         just 300 files, to exercise bug on Darwin6.5, too.
82786         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82787         $missing_dir.
82788         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82789         AM_SYS_POSIX_TERMIOS.
82790         Reported by mkc@mathdogs.com.
82791         Also change use of $am_cv_sys_posix_termios
82792         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82793         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82794         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82795         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82796         in /proc/mounts until it finds one with matching device number.  This
82797         is unnecessary when the FILE argument *is* a mount point.  No stat call
82798         is necessary in that case.  So, disable the statvfs-testing code on
82799         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82800         as RedHat bug# 84846.
82801         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82802         to 1MB, so as not to render systems with no stack size limit (e.g.,
82803         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82804         Include <unistd.h>.  On some systems,
82805         it is required for the definition of _SC_PAGESIZE.
82806
82807 2003-08-16  Jim Meyering  <jim@meyering.net>
82808
82809         Merge from coreutils.
82810         * lib/xstrtoimax.c: #else #if -> #elif.
82811         * lib/xstrtoumax.c: Likewise.
82812
82813 2003-08-16  Jim Meyering  <jim@meyering.net>
82814
82815         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82816         * m4/utimes.m4: Removed.
82817         * m4/utimes-null.m4: Renamed from utimes.m4.
82818
82819         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82820         to 1MB, so as not to render systems with no stack size limit (e.g.,
82821         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82822         Include <unistd.h>.  On some systems,
82823         it is required for the definition of _SC_PAGESIZE.
82824
82825 2003-08-16  Jim Meyering  <jim@meyering.net>
82826         and Paul Eggert  <eggert@cs.ucla.edu>
82827
82828         Merges from coreutils, etc.
82829
82830         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82831         using the latest version from cvs.  This avoids problems with #line
82832         directives using a vendor (Sun) compiler.
82833         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82834         Don't set GETGROUPS_LIB here; now it's
82835         done via getgroups.m4's wrapper function.
82836         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82837         rather than just in sh-util/configure.in, so that the
82838         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82839         same.
82840         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82841         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82842         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82843         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82844         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82845         Remove code that is now done by the newly-required macros.
82846         Append $(EXEEXT) to DF_PROG.
82847         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82848         Do not invoke or require the following here,
82849         since prereq.m4 or some gnulib .m4 now does this for us:
82850         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82851         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82852         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82853         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82854         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82855         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82856         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82857         AC_FUNC_OBSTACK.
82858         Do not replace the following functions, as this is now the job
82859         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82860         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82861         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82862         atexit getpass, strdup, getpagesize.
82863         Replace 'raise'.
82864         Do not check for the following functions, as this is now the job
82865         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82866         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82867         setregid.
82868         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82869         Check for sys/sysctl.h.
82870         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82871         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82872         of checking for ssize_t ourselves.
82873
82874         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82875         Require every macro that gnulib/modules/* suggests for us.
82876         (jm_PREREQ_ADDEXT): New macro.
82877         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82878         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82879
82880         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82881         (gl_PHYSMEM): Use it.
82882         Also check for `table' function.
82883         Check for new headers and functions.
82884         Add check for sys/sysmp.h.
82885         With suggestions from Kaveh Ghazi.
82886         Ignore headers that are present but cannot be compiled.  This
82887         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82888         C 5.4.
82889
82890 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82891
82892         Document merge from coreutils.
82893         * modules/userspec: Depend on posixver.
82894         * modules/strftime: Depend on tzset.
82895
82896 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82897
82898         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82899         rather than tab, after '#' in shell-script copyright notices.
82900         Suggested by Bruno Haible.
82901
82902 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82903
82904         * config/srclist-update: Use three spaces, rather than tab, after '#'
82905         in shell-script copyright notices.  Suggested by Bruno Haible.
82906         Remove unnecessary parenthesization in regular expression.
82907
82908 2003-08-15  Jim Meyering  <jim@meyering.net>
82909
82910         Merge from coreutils.
82911         * lib/xgethostname.c: Include <stdlib.h>.
82912         (xghostname): Don't exit for anything other than memory-related
82913         failure; just return NULL.
82914         * lib/userspec.c: Include "posixver.h".
82915         (parse_user_spec): Accept `.' as a separator only
82916         in pre-POSIX-200112 mode.
82917         * lib/strtoimax.c: Use #elif rather than #else #if.
82918         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82919         Remove function, now that we can rely on a working tzset function.
82920         [!_LIBC]: Ensure that the required autoconf test has been run.
82921         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82922         Use underlying_strftime for %r.
82923         * lib/sha.c: Merge in some clean-up and optimization changes from
82924         glibc.
82925         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82926         Ensure that it is a multiple of 64.
82927         Rearrange loop exit tests so as to avoid performing an
82928         additional fread after encountering an error or EOF.
82929         * lib/realloc.c: Update copyright date.
82930
82931 2003-08-15  Jim Meyering  <jim@meyering.net>
82932         and Paul Eggert  <eggert@twinsun.com>
82933
82934         Merge from coreutils.
82935         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82936         member but strut utmpx does not.  Needed for AIX 4.3.3.
82937         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82938
82939 2003-08-15  Jim Meyering  <jim@meyering.net>
82940         and Paul Eggert  <eggert@cs.ucla.edu>
82941
82942         Merges from coreutils, etc.
82943         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82944         Require gl_FUNC_TZSET_CLOBBER.
82945         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82946         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82947         members.
82948
82949 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82950
82951         Help the merge from coreutils.
82952         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82953         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82954         * m4/tzset.m4: Use it too.
82955
82956 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82957
82958         * modules/tzset: New file.
82959
82960 2003-08-14  Jim Meyering  <jim@meyering.net>
82961
82962         Merges from coreutils.
82963         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82964         variable names, rather than @FNMATCH_H@.
82965         * modules/alloca: Likewise for $(ALLOCA_H).
82966
82967         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82968         the three copies of the literal target, `fnmatch.h'.
82969         * modules/alloca (alloca.h): Likewise.
82970
82971 2003-08-14  Jim Meyering  <jim@meyering.net>
82972
82973         Merge from coreutils.
82974         * m4/tzset.m4: New file.
82975         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82976         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82977         otherwise, AIX 5.1 systems would end up using the latter.
82978         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82979         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82980         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82981         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82982
82983 2003-08-14  Jim Meyering  <jim@meyering.net>
82984
82985         Merge from coreutils.
82986         * lib/obstack.h: Whitespace changes.
82987         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82988         and xcalloc return values.
82989         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82990         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82991         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82992         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82993         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82994         error from mntctl.
82995         Use mntctl's return value to drive the entry-processing loop, since
82996         we can't rely on the value of the vmt_length member in the last
82997         entry.  On some systems doing so could result in exhausting
82998         virtual memory.  Based in part on a patch from Mike Jetzer.
82999
83000 2003-08-14  Jim Meyering  <jim@meyering.net>
83001         and Paul Eggert  <eggert@twinsun.com>
83002
83003         Merges from coreutils, plus other fixes.
83004         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83005         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83006         for credits and details.  Thanks to Kaveh Ghazi for helping
83007         to keep these files in sync.
83008         (ARRAY_SIZE): Define it.
83009         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83010         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83011         (memcasecmp): Don't assume size_t fits in unsigned int.
83012         Remove casts and duplicate code.
83013         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83014         (memcpy): Remove definition.
83015         Merge in some clean-up and optimization changes from glibc.
83016         [BLOCKSIZE]: Move definition to top of file.
83017         Ensure that it is a multiple of 64.
83018         Rearrange loop exit tests so as to avoid performing an
83019         additional fread after encountering an error or EOF.
83020         * lib/md5.h (md5_uintptr): Define.
83021         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83022         return to the initial working directory.  Preserve errno
83023         for caller.
83024         * lib/idcache.c: Include "xalloc.h".
83025         (xmalloc, xrealloc): Remove decls.
83026         (getuser): Remove casts no longer required in C89.
83027         * lib/human.c: Include stdio.h, for sprintf.
83028         * lib/group-member.c: Include "xalloc.h".
83029         (xmalloc, xrealloc): Remove decls.
83030         (get_group_info): Remove casts no longer required in C89.
83031         * lib/getusershell.c (readname): Remove casts no longer required in
83032         C89.
83033         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83034         * lib/getline.c: Whitespace fix, from coreutils.
83035
83036 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83037
83038         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83039         Check for isascii.
83040
83041         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83042         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83043         Undo previous (whitespace-only) change.
83044
83045 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83046
83047         * lib/exclude.c: Include <ctype.h>
83048         (IN_CTYPE_DOMAIN): New macro.
83049         (is_space): New fn.
83050         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83051         and empty lines.
83052
83053         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83054         Undo previous (whitespace-only) change.
83055
83056 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83057
83058         * config/srclist-update: Change update back to the old behavior,
83059         leaving whitespace alone.  Use one 'sed' command rather than a
83060         pipeline.
83061         (fixlicense): Now a variable, not a function.
83062         (remove_trailing_blanks): Remove.
83063         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83064         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83065         Undo previous (whitespace-only) change.
83066
83067 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83068
83069         Merge from coreutils.
83070         * modules/euidaccess: Add lib_SOURCES, include for new
83071         file euidaccess.h
83072
83073 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83074
83075         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83076         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83077         Normalize leading white space and remove trailing white space.
83078
83079         Merge from coreutils
83080         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83081
83082         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83083         0.12.1.  These files are now being upgraded automatically by
83084         ../config/srclist-update.
83085
83086 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83087
83088         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83089         Normalize leading white space and remove trailing white space.
83090         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83091         notice, as per ../config/srclist-update.
83092
83093         Merge from coreutils.
83094         * lib/euidaccess.h: New file.
83095         * lib/euidaccess.c: Include it.
83096         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83097         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83098         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83099
83100 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83101
83102         * config/srclist-update: Add copyright notice.
83103         (remove_id_lines, remove_trailing_blanks): New constants.
83104         (fixfile): Use them to normalize spacing a bit in copied files.
83105         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83106         Normalize leading white space and remove trailing white space.
83107
83108         * config/texinfo.tex: Sync with texinfo.
83109
83110         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83111         strtoul.c from libc, to merge coreutils whitespace changes.
83112
83113         * config/srclist.txt: Get the following m4 files from gettext:
83114         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83115         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83116         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83117         wint_t.m4.
83118
83119 2003-08-12  Karl Berry  <karl@gnu.org>
83120
83121         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83122         been made.
83123
83124 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83125
83126         * modules/gnu-source, m4/gnu-source.m4:
83127         Remove; we're assuming Autoconf 2.54 or later now.
83128         Suggested by Bruno Haible.
83129         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83130
83131 2003-08-11  Bruno Haible  <bruno@clisp.org>
83132
83133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83134
83135 2003-08-11  Bruno Haible  <bruno@clisp.org>
83136
83137         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83138         (vasnprintf): Use it instead of wcslen.
83139
83140 2003-08-11  Bruno Haible  <bruno@clisp.org>
83141
83142         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83143         value to ensure that _Bool promotes to int. Use #define for _Bool when
83144         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83145
83146 2003-08-10  Karl Berry  <karl@gnu.org>
83147
83148         * lib/regex.h: update from libc (whitespace fix).
83149
83150 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83151
83152         Merge some files from coreutils.  These changes were
83153         originally made by Jim Meyering.
83154         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83155         many older Unixes require this.
83156         * lib/alloca.c (alloca): Remove cast to argument of free;
83157         no longer needed in C89.
83158         * lib/alloca_.h, regex.h: Fix white space to match
83159         what GNU indent does.
83160
83161 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83162
83163         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83164         apparently Emacs's Unicode mode got confused before my 2003-08-05
83165         checkin.
83166
83167 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83168
83169         * m4/extensions.m4: New file.
83170         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83171         Require gl_USE_SYSTEM_EXTENSIONS.
83172         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83173         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83174
83175 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83176
83177         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83178         * modules/extensions, modules/gnu-source: New files.
83179         * modules/timespec, modules/unlocked-io: Depend on extensions.
83180
83181 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83182
83183         * modules/restrict: New file.
83184         * MODULES.html.sh (func_all_modules): Add restrict.
83185         * modules/regex: Depend on restrict.
83186
83187 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83188
83189         * m4/restrict.m4: New file.
83190         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83191
83192 2003-08-07  Bruno Haible  <bruno@clisp.org>
83193
83194         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83195         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83196
83197 2003-08-07  Bruno Haible  <bruno@clisp.org>
83198
83199         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83200         makes the module 'getndelim2' compatible with the module 'getline'.
83201
83202 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83203
83204         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83205         byte with "\201" to avoid glitches when editing that source file
83206         with multi-gnome-terminal.
83207
83208 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83209
83210         * lib/bumpalloc.h: Remove.
83211
83212 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83213
83214         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83215         * modules/bumpalloc: Remove.
83216
83217 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83218
83219         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83220         GNU coding style.
83221
83222         Merge from coreutils.
83223         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83224         1. From glibc.
83225         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83226         from Karl Berry, implemented by Jim Meyering.
83227         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83228         from Dmitry V. Levin.
83229         Remove anachronistic cast of xrealloc.
83230         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83231         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83232         type. Otherwise, it wouldn't compile with at least /bin/cc on
83233         ymp-cray-unicos9.0.2.X.
83234         Combine two mostly-identical uses of alloca into one.
83235         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83236
83237 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83238
83239         [From Emacs.]
83240
83241         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83242         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83243         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83244         obsolete NLIST_NAME_UNION.
83245         [__GNU__]: Undef BSD and FSCALE.
83246         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83247
83248 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83249
83250         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83251         an enum type, so that it's guaranteed to promote to int.  See:
83252         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83253
83254 2003-08-03  Karl Berry  <karl@gnu.org>
83255
83256         * config/depcomp: update from automake.
83257
83258 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83259
83260         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83261         (strerror): Don't assume that a printable int fits in 14 bytes.
83262
83263 2003-07-31  Bruno Haible  <bruno@clisp.org>
83264
83265         * modules/getpass-gnu: New file.
83266         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83267
83268 2003-07-31  Bruno Haible  <bruno@clisp.org>
83269
83270         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83271
83272 2003-07-24  Karl Berry  <karl@gnu.org>
83273
83274         * config/missing: update from automake.
83275
83276 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83277             Bruno Haible  <bruno@clisp.org>
83278
83279         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83280         * lib/getline.c (getline, getdelim): Likewise.
83281         Remove _GNU_SOURCE define; now it's defined in config.h through
83282         m4/getline.m4.
83283
83284 2003-07-23  Karl Berry  <karl@gnu.org>
83285
83286         * config/config.sub: update from prep.
83287
83288 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83289
83290         * modules/xalloc (Depends-on): Add exitfail.
83291         * modules/xmemcoll: Likewise.
83292
83293 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83294
83295         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83296         over-parenthesization in macros.
83297
83298         Sync with coreutils.
83299
83300         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83301         required by C99.
83302
83303         Use `exit_failure' for xalloc and xmemcoll instead of their own
83304         private exit-failure variables.
83305         * lib/xalloc.h (xalloc_exit_failure): Remove.
83306         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83307         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83308         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83309         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83310         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83311
83312 2003-07-20  Jim Meyering  <jim@meyering.net>
83313
83314         * modules/closeout (Depends-on): Add exitfail.
83315         Suggestion from Bruno Haible.
83316
83317 2003-07-19  Karl Berry  <karl@gnu.org>
83318
83319         * config/config.sub: update from prep.
83320
83321 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83322
83323         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83324         Remove.
83325         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83326         to test that it can stand by itself.  Include "exitfail.h".
83327         Clients should set exit_failure instead.
83328         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83329
83330 2003-07-18  Bruno Haible  <bruno@clisp.org>
83331
83332         * modules/getndelim2: New file.
83333         * modules/getline: Share files with module getndelim2.
83334         * modules/getnline: Depend on getndelim2 instead of sharing files with
83335         it. Add getnline.c to lib_SOURCES.
83336         * MODULES.html.sh (func_all_modules): Add getndelim2.
83337
83338 2003-07-18  Bruno Haible  <bruno@clisp.org>
83339
83340         * m4/getndelim2.m4: New file.
83341         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83342         invoke gl_PREREQ_GETNDELIM2.
83343         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83344         gl_PREREQ_GETNDELIM2.
83345         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83346         gl_GETNDELIM2.
83347
83348 2003-07-18  Bruno Haible  <bruno@clisp.org>
83349
83350         * lib/getndelim2.h: New file.
83351         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83352         getndelim2.h.
83353         (getndelim2): Make non-static. Change return type to ssize_t.
83354         * lib/getline.h: Change argument names.
83355         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83356         * lib/getnline.c: Include getndelim2.h.
83357
83358 2003-07-18  Andreas Schwab  <schwab@suse.de>
83359
83360         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83361
83362 2003-07-17  Karl Berry  <karl@gnu.org>
83363
83364         * config/config.sub: update from prep.
83365
83366 2003-07-17  Bruno Haible  <bruno@clisp.org>
83367
83368         * modules/getnline: New file.
83369         * modules/getline: Add lib/getndelim2.c to source file list.
83370         * MODULES.html.sh (func_all_modules): Add getnline.
83371
83372 2003-07-17  Bruno Haible  <bruno@clisp.org>
83373
83374         * m4/getnline.m4: New file.
83375
83376 2003-07-17  Bruno Haible  <bruno@clisp.org>
83377
83378         * m4/Makefile.am.in: Remove file.
83379         * m4/Makefile.am: Remove file.
83380         * m4/Makefile.in: Remove file.
83381
83382 2003-07-17  Bruno Haible  <bruno@clisp.org>
83383
83384         * lib/getnline.h: New file.
83385         * lib/getnline.c: New file.
83386         * lib/getndelim2.c: New file, extracted from getline.c.
83387         (getndelim2): Renamed from getdelim2, with added nmax argument.
83388         * lib/getline.c: Include getndelim2.c.
83389         (getdelim2): Moved out to getndelim2.c.
83390         (getline, getdelim): Update.
83391
83392 2003-07-17  Bruno Haible  <bruno@clisp.org>
83393
83394         * lib/Makefile.am: Remove file.
83395         * lib/Makefile.in: Remove file.
83396
83397 2003-07-17  Bruno Haible  <bruno@clisp.org>
83398
83399         * configure.in: Remove file.
83400         * Makefile.in: Remove file.
83401
83402 2003-07-17  Bruno Haible  <bruno@clisp.org>
83403
83404         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83405
83406 2003-07-16  Karl Berry  <karl@gnu.org>
83407
83408         * config/srclist-update: was running fixlicense twice, which caused
83409                 texinfo.tex to be nullified for some reason.  Simplify,
83410                 $gplsrc is no longer needed as far as I can see?
83411
83412 2003-07-16  Jim Meyering  <jim@meyering.net>
83413
83414         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83415
83416 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83417
83418         * config/srclist.txt: Get the following files from gettext-runtime/intl
83419         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83420         ref-del.sin.  From Bruno Haible.
83421         * config/srclist-update (fixfile): Change grep pattern again, since the
83422         previous fix didn't work (there was another trailing $).  Use
83423         '[$]' to escape the $s.
83424
83425 2003-07-15  Karl Berry  <karl@gnu.org>
83426
83427         * lib/vasnprintf.c: update from gettext.
83428
83429 2003-07-15  Karl Berry  <karl@gnu.org>
83430
83431         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83432         gets expanded when surrounded by '$'.
83433
83434 2003-07-15  Jim Meyering  <jim@meyering.net>
83435
83436         * modules/save-cwd: Don't depend on error.  From Derek Price.
83437
83438 2003-07-15  Jim Meyering  <jim@meyering.net>
83439
83440         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83441
83442 2003-07-14  Simon Josefsson  <jas@extundo.com>
83443
83444         * modules/mempcpy: New file.
83445         * MODULES.html.sh (func_all_modules): Add mempcpy.
83446
83447 2003-07-14  Simon Josefsson  <jas@extundo.com>
83448
83449         * m4/mempcpy.m4: New file.
83450
83451 2003-07-14  Simon Josefsson  <jas@extundo.com>
83452
83453         * lib/mempcpy.h: New file.
83454         * lib/mempcpy.c: New file.
83455
83456 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83457
83458         * modules/getdate, modules/posixtm: Depend on mktime.
83459
83460 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83461
83462         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83463         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83464         unicodeio.c, unicodeio.h, unlocked-io.h:
83465         Switch from LGPL to GPL.
83466
83467 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83468
83469         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83470         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83471         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83472         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83473         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83474         updated automatically by ../config/srclist-update.  This changes
83475         their license from LPGL to GPL.
83476
83477 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83478
83479         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83480         assumed to refer to the root of the most recent stable gettext version.
83481         * config/srclistvars.sh: Add defaults for eggert.
83482         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83483         Match "This program" as well as "The program".  This is needed
83484         for gettext.
83485
83486 2003-07-14  Jim Meyering  <jim@meyering.net>
83487
83488         Don't emit diagnostics.  Let callers do that.
83489         * lib/save-cwd.c: Don't include "error.h".
83490         (save_cwd): Don't call error.  Ensure that errno is valid
83491         when returning nonzero.
83492
83493         * lib/save-cwd.h (restore_cwd): Update prototype.
83494         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83495         Simplify.  Don't call error upon failure.  Let callers do that.
83496         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83497         when auditing is enabled.  But don't bother updating the #if.
83498
83499 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83500
83501         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83502         it breaks C++ compilation.
83503         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83504
83505 2003-07-10  Simon Josefsson  <jas@extundo.com>
83506
83507         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83508
83509 2003-07-10  Jim Meyering  <jim@meyering.net>
83510
83511         * m4/clock_time.m4: Remove trailing blank.
83512         * m4/intmax_t.m4: Likewise.
83513
83514 2003-07-10  Jim Meyering  <jim@meyering.net>
83515
83516         * lib/vasnprintf.c: Remove trailing blanks.
83517         Make cpp indentation consistent.
83518
83519 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83520
83521         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83522         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83523         Switch from LGPL to GPL.
83524
83525 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83526
83527         * config/srclist.txt: Sort sublists.  Add
83528         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83529         that differ from gnulib for one reason or another; we'd like this list
83530         to be smaller but for now let's document what we have.
83531
83532 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83533
83534         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83535         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83536         and sweeter "eval x=$x".
83537         * config/srclist.txt: Get lib/argp* from glibc.
83538
83539 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83540
83541         * lib/mktime.c: Fix some boundary cases and remove need for floating
83542         point.
83543
83544         Issue a compile-time diagnostic if time_t is floating point, or if
83545         two's complement arithmetic is not in effect, or if arithmetic
83546         right shift does not propagate the sign.  These assumptions were
83547         all in the original code but they weren't checked.
83548
83549         (TIME_T_MIDPOINT, verify): New macros.
83550         (__isleap): Remove; it has integer overflow problems.
83551         (leapyear): New function, without those problems.
83552         (ydhms_tm_diff): Remove; splitting into two parts.
83553         (ydhms_diff): New function, containing the arithmetic part of
83554         the old ydhms_tm_diff function.  Issue a compile-time
83555         diagnostic if we are not using C99 integer division.
83556         Avoid casts when possible.
83557         (guess_time_tm): New function, containing the checking part of
83558         the old ydhms_tm_diff function.  Return the new value, rather than
83559         the difference between it and the old.  Accept a new argument T
83560         so that *T specifies the old value.  Check for overflow in the result.
83561
83562         (__mktime_internal): Use a time_t offset, not a long int offset.
83563         This undoes the 2003-06-04 change, which is no longer needed now
83564         that we have better overflow checking.
83565         (localtime_offset): Likewise.
83566
83567         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83568         and long are 64-bit but int is only 32-bit.
83569         (ydhms_diff): Use long int to store year1 and yday1.
83570         Issue a compile-time diagnostic if long int is not wide enough.
83571
83572         (__mktime_internal): Use long int to store adjusted year and yday.
83573         Use plain C rather than preprocessor commands, if that doesn't
83574         affect efficiency.
83575         Check for overflow (and try to repair) after each probe
83576         rather than checking only at the very end.  This avoids some bugs
83577         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83578         does not equal GMT offset at maximum time).
83579         Use integer to check for overflow rather than floating point; this
83580         is more portable to non-IEEE hosts, and is a tad faster.
83581         When we detect that we are oscillating between two values,
83582         don't check whether tm_isdst has the requested value, since
83583         we already know the answer.  When tm_isdst has the wrong value,
83584         use a different heuristic to find the right one, based on the
83585         extreme values actually observed in practice in tz2003a,
83586         rather than the (overly optimistic) "previous 3 calendar quarters".
83587
83588         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83589         "T const" to accommodate glibc style.
83590         (check_result): Use less-confusing report format.  "long" -> "long int.
83591         (main): Likewise.
83592         Don't loop if the iteration overflows time_t.
83593         Allow a negative step in the iteration.
83594
83595 2003-07-06  Karl Berry  <karl@gnu.org>
83596
83597         * config/depcomp: update from automake.
83598         * config/config.sub: update from prep.
83599
83600 2003-07-03  Karl Berry  <karl@gnu.org>
83601
83602         * config/config.guess: update from prep.
83603
83604 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83605
83606         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83607         xreadlink.c now includes it unconditionally.
83608
83609 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83610
83611         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83612         having it depend on HAVE_SYS_TYPES_H.
83613
83614 2003-07-01  Bruno Haible  <bruno@clisp.org>
83615
83616         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83617         <sys/types.h> should be sufficient.
83618         Reported by Paul Eggert.
83619
83620 2003-06-26  Karl Berry  <karl@gnu.org>
83621
83622         * config/depcomp: update from automake.
83623
83624 2003-06-26  Bruno Haible  <bruno@clisp.org>
83625
83626         * modules/human: Depend on module stdbool.
83627
83628 2003-06-25  Bruno Haible  <bruno@clisp.org>
83629
83630         * modules/readlink: New file.
83631         * modules/xreadlink: Depend on it.
83632         * MODULES.html.sh (func_all_modules): Add readlink.
83633
83634 2003-06-25  Bruno Haible  <bruno@clisp.org>
83635
83636         * m4/readlink.m4: New file.
83637
83638 2003-06-25  Bruno Haible  <bruno@clisp.org>
83639
83640         * lib/readlink.c: New file.
83641
83642 2003-06-22  Karl Berry  <karl@gnu.org>
83643
83644         * config/srclist.txt: update mkinstalldirs from automake.
83645         * config/mkinstalldirs: update.
83646
83647 2003-06-22  Bruno Haible  <bruno@clisp.org>
83648
83649         Portability to mingw32.
83650         * m4/ssize_t.m4: New file, from GNU gettext.
83651         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83652         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83653
83654 2003-06-22  Bruno Haible  <bruno@clisp.org>
83655
83656         * modules/safe-read: Add m4/ssize_t.m4.
83657         * modules/xreadlink: Add m4/ssize_t.m4.
83658
83659 2003-06-20  Bruno Haible  <bruno@clisp.org>
83660
83661         Assume C89, so PARAMS isn't needed.
83662         * lib/unicodeio.h (PARAMS): Remove.
83663         * lib/unicodeio.c: Don't use PARAMS.
83664
83665 2003-06-18  Karl Berry  <karl@gnu.org>
83666
83667         * config/config.{guess,sub}: update from prep.
83668
83669 2003-06-18  Jim Meyering  <jim@meyering.net>
83670
83671         Merge changes from coreutils.
83672         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83673         Remove explicit declarations of xmalloc and realloc.
83674         Include xalloc.h.
83675         (read_utmp): Remove anachronistic cast of xmalloc.
83676
83677 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83678
83679         Assume C89, so PARAMS isn't needed.
83680         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83681         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83682         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83683         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83684         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83685         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83686         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83687         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83688         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83689         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83690         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83691         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83692         no longer needed. Anyway, config.h should always be included before any
83693         other file.
83694
83695 2003-06-11  Simon Josefsson  <jas@extundo.com>
83696
83697         * modules/sysexits: New file.
83698         * MODULES.html.sh (func_all_modules): Add sysexits.
83699
83700 2003-06-11  Simon Josefsson  <jas@extundo.com>
83701
83702         * lib/sysexit_.h: New file.
83703
83704 2003-06-11  Derek Price  <derek@ximbiot.com>
83705
83706         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83707         necessary.
83708
83709 2003-06-11  Bruno Haible  <bruno@clisp.org>
83710
83711         * m4/sysexits.m4: New file.
83712
83713 2003-06-10  Simon Josefsson  <jas@extundo.com>
83714
83715         * lib/argp.h: New file, from glibc.
83716         * lib/argp-ba.c: New file, from glibc.
83717         * lib/argp-eexst.c: New file, from glibc.
83718         * lib/argp-fmtstream.c: New file, from glibc.
83719         * lib/argp-fmtstream.h: New file, from glibc.
83720         * lib/argp-fs-xinl.c: New file, from glibc.
83721         * lib/argp-help.c: New file, from glibc.
83722         * lib/argp-namefrob.h: New file, from glibc.
83723         * lib/argp-parse.c: New file, from glibc.
83724         * lib/argp-pv.c: New file, from glibc.
83725         * lib/argp-pvh.c: New file, from glibc.
83726         * lib/argp-xinl.c: New file, from glibc.
83727
83728 2003-06-10  Simon Josefsson  <jas@extundo.com>
83729
83730         * modules/strchrnul: New file.
83731
83732 2003-06-10  Simon Josefsson  <jas@extundo.com>
83733
83734         * modules/argp: New file.
83735
83736 2003-06-10  Simon Josefsson  <jas@extundo.com>
83737
83738         * m4/strchrnul.m4: New file.
83739
83740 2003-06-10  Simon Josefsson  <jas@extundo.com>
83741
83742         * lib/strchrnul.h: New file.
83743         * lib/strchrnul.c: New file.
83744
83745 2003-06-10  Bruno Haible  <bruno@clisp.org>
83746
83747         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83748
83749 2003-06-07  Karl Berry  <karl@gnu.org>
83750
83751         * config/config.{guess,sub}: update from prep.
83752
83753 2003-06-07  Jim Meyering  <jim@meyering.net>
83754
83755         * modules/strtod: Use $(...) notation, not @...@ for
83756         AC_REPLACE'd variables.
83757         * modules/localcharset: Likewise.
83758
83759 2003-06-07  Jim Meyering  <jim@meyering.net>
83760
83761         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83762         in place of my name in the copyright comment.
83763         Remove definition and uses of __P.
83764
83765         From coreutils.
83766         * lib/stat.c: Don't declare xmalloc explicitly.
83767         Instead, include "xalloc.h".
83768         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83769         xrealloc, and xcalloc return values.
83770         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83771         Improve comment.
83772         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83773
83774 2003-06-07  Bruno Haible  <bruno@clisp.org>
83775
83776         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83777         avoid AC_CONFIG_LINKS.
83778         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83779         fnmatch.h, to avoid AC_CONFIG_LINKS.
83780         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83781
83782 2003-06-07  Bruno Haible  <bruno@clisp.org>
83783
83784         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83785         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83786         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83787         directory.
83788         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83789         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83790         directory.
83791
83792 2003-06-06  Jim Meyering  <jim@meyering.net>
83793
83794         Merge from coreutils.
83795         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83796         Consolidate declarations and initializations of *_base* locals.
83797
83798         Merge from coreutils.
83799         This avoids a core dump on systems without GNU putenv,
83800         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83801         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83802         (unsetenv): New static function, from GNU libc.
83803         (rpl_putenv): Use it.
83804
83805         * lib/modechange.c: Remove trailing blanks.
83806
83807         Merge from coreutils.
83808         * lib/fsusage.c: Remove declaration of statfs.
83809         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83810
83811         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83812
83813 2003-06-06  Jim Meyering  <jim@meyering.net>
83814
83815         * lib/stdbool_.h: Renamed from stdbool.h.in.
83816
83817 2003-06-06  Jim Meyering  <jim@meyering.net>
83818             Bruno Haible  <bruno@clisp.org>
83819
83820         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83821         Adjust Makefile.am snippet not to redirect directly to target.
83822         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83823
83824 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83825
83826         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83827         mismatch, look in future quarters as well as past.  This fixes a
83828         bug when processing fall-backwards gaps immediately after a long
83829         period of daylight-saving time.
83830
83831         * lib/mktime.c: Assume freestanding C89 or better.
83832         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83833         (__P): Remove; not used.
83834         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83835         (mktime, not_equal_tm, print_tm, check_result,
83836         main): Use prototypes.  Use const * where appropriate.
83837         (main): Fix typo in testing code that uncovered by above changes.
83838         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83839
83840 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83841
83842         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83843         locale.h, localeconv.  This merges changes from coreutils.
83844
83845         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83846         It can be removed after the next Autoconf is released.
83847         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83848         needed.
83849
83850 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83851
83852         * lib/mktime.c: Fix Debian bug 177940
83853         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83854         (localtime_offset): Now long int, not time_t, because we want it
83855         to be guaranteed to be signed.  All uses changed.
83856         (__mktime_internal): If overflow would occur when adding offset,
83857         don't add it.
83858
83859         Merge 'human' changes from coreutils.  Rewrite to support
83860         locale-specific notations like thousands separators.
83861         * lib/human.c: Simplify authorship notice.
83862         Include human.h immediately after config.h.
83863         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83864         <limits.h>: Do not include, since human.h does.
83865         (SIZE_MAX, UINTMAX_MAX): New macros.
83866         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83867         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83868         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83869         (power_letter): Renamed from suffixes.
83870         (generate_suffix_backwards): Remove.
83871         (adjust_value): Now takes int style (because of human.h changes)
83872         and long double value (for greater precision on some platforms).
83873         (group_number): New function.
83874         (human_readable): Use it.  Use integer options, not enum.
83875         Put the options before the sizes in the arg list.
83876         Support all the new options.
83877         The old human_readable function has been removed;
83878         use inttostr.h instead.
83879         (human_readable, default_block_size, humblock):
83880         Use uintmax_t, not int, for block sizes.
83881         (human_readable_inexact, block_size_types): Remove.
83882         (block_size_opts): New constant.
83883         (human_options): Renamed from human_block_size, with new signature
83884         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83885         * lib/human.h: Add copyright and authorship notice.
83886         Include <limits.h> and <stdbool.h> unconditionally.
83887         (PARAMS): Remove.  All uses removed.
83888         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83889         (enum human_inexact_style): Remove tag; now a nameless enum.
83890         (human_floor, human_ceiling, human_round_to_even): Now have
83891         values 2, 0, 1 rather than -1, 1, 0.
83892         (human_group_digits, human_suppress_point_zero, human_autoscale,
83893         human_base_1024, human_SI, human_B): New constants.
83894         (human_readable_inexact, human_block_size): Remove.
83895         (human_readable): Size args are now uintmax_t, not int.
83896         (human_options): New decl.
83897
83898         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83899         unnecessary now that we assume C89 or better.  This change
83900         imported from coreutils.
83901
83902         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83903         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83904         in the 2003-05-30 sync from glibc.
83905
83906         .h files should stand alone, but we shouldn't include <sys/types.h>
83907         if we can get away with just <stddef.h>.
83908
83909         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83910         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83911         rather than <sys/types.h>, as we merely need size_t.
83912         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83913         to get size_t.
83914         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83915         Include <stdio.h>, to get FILE.
83916         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83917         memcasecmp.h has included <stddef.h> and all we need is size_t.
83918         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83919         our interface, instead of including <sys/types.h>
83920
83921 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83922
83923         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83924         now, as glibc mktime is buggy on non-glibc systems.
83925
83926 2003-06-03  Karl Berry  <karl@gnu.org>
83927
83928         * config/config.sub: update from prep.
83929
83930 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83931
83932         [from coreutils]
83933         Fix some minor time-related bugs with POSIX time arguments.
83934         Some valid time stamps were being rejected (notably -1, and
83935         time stamps before 1900 on 64-bit hosts).  And some invalid
83936         time stamps were being accepted, e.g. September 31.
83937
83938         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83939         that we can return (time_t) -1 successfully.
83940         * lib/posixtm.c: Likewise.
83941         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83942         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83943         (t): Remove static var.
83944         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83945         of static var.  All uses changed.
83946         (year): Do not reject years before 1900; they can occur with
83947         64-bit time_t.
83948         (posix_time_parse): Do not check for out-of-range components;
83949         that is now the caller's responsibility, since our checks were
83950         only approximations.
83951         (posixtime): Use mktime to check for out-of-range components,
83952         since it knows them exactly.
83953         If mktime returns (time_t) -1, check whether an error actually occurred
83954         by invoking localtime on -1.
83955         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83956         posixtime failures better.
83957         Improve the test data (in comments only).
83958
83959 2003-06-02  Karl Berry  <karl@gnu.org>
83960
83961         * config/mkinstalldirs (version): new variable.
83962         (--version): new option.
83963         (usage): improve message.
83964
83965 2003-05-30  Karl Berry  <karl@gnu.org>
83966
83967         * lib/mktime.c: update from libc.
83968
83969 2003-05-30  Bruno Haible  <bruno@clisp.org>
83970
83971         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83972         * config/config.rpath: Upgrade to gettext-0.12.1.
83973
83974 2003-05-30  Bruno Haible  <bruno@clisp.org>
83975
83976         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83977         * m4/nls.m4: New file, from gettext-0.12.1.
83978         * m4/po.m4: New file, from gettext-0.12.1.
83979         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83980
83981 2003-05-30  Bruno Haible  <bruno@clisp.org>
83982
83983         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83984         * lib/localcharset.h: Likewise.
83985         * lib/localcharset.c: Likewise.
83986
83987 2003-05-29  Karl Berry  <karl@gnu.org>
83988
83989         * config/config.rpath: update from gettext.
83990
83991 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83992
83993         Assume the headers required for C89 freestanding compilers.
83994         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83995         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83996         * m4/human.m4 (gl_HUMAN): Likewise.
83997         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83998         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83999         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84000         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84001         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84002         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84003
84004 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84005
84006         Assume the headers required for C89 freestanding compilers.
84007         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84008         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84009         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84010         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84011         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84012         define, since <limits.h> is guaranteed to do that.
84013         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84014         * lib/exclude.c: Include <stdbool.h> unconditionally.
84015         * lib/tempname.c: Include <stddef.h> unconditionally.
84016         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84017         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84018         <stddef.h> does that.
84019         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84020         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84021         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84022         needed.
84023         * lib/xstrtol.c: Likewise.
84024         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84025         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84026
84027         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84028         warnings on some platforms.
84029
84030         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84031         arbitrarily.
84032
84033 2003-05-26  Jim Meyering  <jim@meyering.net>
84034
84035         Merge in a change from coreutils:
84036         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84037         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84038         that condition, rather than `-1' which is slightly misleading.
84039         Change the name of the cache variable to have the gl_ prefix.
84040         Prompted by a patch from Richard Dawe for DJGPP.
84041
84042 2003-05-24  Karl Berry  <karl@gnu.org>
84043
84044         * config/config.guess: update from prep.
84045
84046 2003-05-22  Karl Berry  <karl@gnu.org>
84047
84048         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84049
84050 2003-05-20  Karl Berry  <karl@gnu.org>
84051
84052         * config/config.guess: update from prep.
84053
84054 2003-05-18  Karl Berry  <karl@gnu.org>
84055
84056         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84057         might actually be set by the user.
84058
84059         * config/depcomp, install-sh, mdate-sh: update from automake.
84060
84061 2003-05-17  Bruno Haible  <bruno@clisp.org>
84062
84063         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84064         invalid expansion for AC_EGREP_CPP.
84065         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84066         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84067         Suggested by Akim Demaille <akim@epita.fr> in
84068         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84069
84070 2003-05-12  Jim Meyering  <jim@meyering.net>
84071
84072         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84073         the space-padded-by-default conversion specifiers, %e, %k, %l.
84074
84075 2003-05-12  Bruno Haible  <bruno@clisp.org>
84076
84077         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84078         the string is longer than 4 KB.
84079
84080 2003-05-11  Karl Berry  <karl@gnu.org>
84081
84082         * config/config.{guess,sub}: update from prep.
84083
84084 2003-05-09  Bruno Haible  <bruno@clisp.org>
84085
84086         * modules/error: Add m4/strerror_r.m4 to file list.
84087
84088 2003-05-03  Bruno Haible  <bruno@clisp.org>
84089
84090         Upgrade to Unicode-4.0.
84091         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84092         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84093         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84094         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84095         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84096         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84097         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84098         Change width of U+E0100..U+E01EF from 1 to 0.
84099
84100 2003-04-25  Jim Meyering  <jim@meyering.net>
84101
84102         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84103         of type size_t, not int.
84104
84105 2003-04-25  Bruno Haible  <bruno@clisp.org>
84106
84107         * lib/copy-file.c: Include <stddef.h>, for size_t.
84108
84109 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84110
84111         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84112         code which expansion is under static control.  Patch imported from
84113         Akim Demaille's patch to Bison; see
84114         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84115
84116 2003-04-14  Bruno Haible  <bruno@clisp.org>
84117
84118         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84119
84120 2003-04-11  Jim Meyering  <jim@meyering.net>
84121
84122         Merge changes from Coreutils.
84123
84124         2003-03-22  Jim Meyering  <jim@meyering.net>
84125
84126         * lib/strftime.c (widen): Cast alloca return value to proper type.
84127
84128         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84129
84130         From GNU libc.
84131         * lib/strftime.c (my_strftime): Handle very large width
84132         specifications for numeric values correctly.  Improve checks for
84133         overflow.
84134
84135         2003-01-19  Jim Meyering  <jim@meyering.net>
84136
84137         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84138         definitions.
84139         (nl_get_alt_digit) [! defined my_strftime]: Define.
84140         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84141         _nl_get_alt_digit and _nl_get_walt_digit.
84142
84143         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84144         libc. These changes have no effect outside of _LIBC.
84145
84146 2003-04-10  Bruno Haible  <bruno@clisp.org>
84147
84148         * modules/findprog: New file.
84149         * MODULES.html.sh (func_all_modules): Add it.
84150
84151 2003-04-10  Bruno Haible  <bruno@clisp.org>
84152
84153         * m4/findprog.m4: New file.
84154         * m4/eaccess.m4: New file.
84155
84156 2003-04-10  Bruno Haible  <bruno@clisp.org>
84157
84158         * lib/findprog.h: New file, from GNU gettext.
84159         * lib/findprog.c: New file, from GNU gettext.
84160
84161 2003-04-05  Jim Meyering  <jim@meyering.net>
84162
84163         Merge changes from Coreutils.
84164
84165         * lib/exclude.h (PARAMS): Remove definition and uses.
84166         * lib/exclude.c: Remove uses of `PARAMS'.
84167
84168         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84169         Add test-cases for DOS filenames. Declare program_name.
84170         (main): Set up program_name.  Patch by Rich Dawe.
84171
84172         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84173         error from mntctl.
84174         Use mntctl's return value to drive the entry-processing loop, since
84175         we can't rely on the value of the vmt_length member in the last
84176         entry.  On some systems doing so could result in exhausting
84177         virtual memory.  Based in part on a patch from Mike Jetzer.
84178
84179 2003-04-04  Bruno Haible  <bruno@clisp.org>
84180
84181         * modules/linebreak: New file.
84182         * MODULES.html.sh (func_all_modules): Add it.
84183
84184 2003-04-04  Bruno Haible  <bruno@clisp.org>
84185
84186         * m4/linebreak.m4: New file.
84187
84188 2003-04-04  Bruno Haible  <bruno@clisp.org>
84189
84190         * lib/linebreak.h: New file, from GNU gettext.
84191         * lib/linebreak.c: New file, from GNU gettext with slight
84192         modifications.
84193         * lib/lbrkprop.h: New file, from GNU gettext.
84194
84195 2003-04-03  Bruno Haible  <bruno@clisp.org>
84196
84197         * modules/utf8-ucs4: New file.
84198         * modules/utf16-ucs4: New file.
84199         * modules/ucs4-utf8: New file.
84200         * modules/ucs4-utf16: New file.
84201         * MODULES.html.sh (func_all_modules): Add them.
84202
84203 2003-04-03  Bruno Haible  <bruno@clisp.org>
84204
84205         * m4/utf-ucs4.m4: New file.
84206         * m4/ucs4-utf.m4: New file.
84207
84208 2003-04-03  Bruno Haible  <bruno@clisp.org>
84209
84210         * lib/utf8-ucs4.h: New file, from GNU gettext.
84211         * lib/utf16-ucs4.h: New file, from GNU gettext.
84212         * lib/ucs4-utf8.h: New file, from GNU gettext.
84213         * lib/ucs4-utf16.h: New file, from GNU gettext.
84214
84215 2003-04-02  Bruno Haible  <bruno@clisp.org>
84216
84217         * modules/binary-io: New file.
84218         * MODULES.html.sh (func_all_modules): Add it.
84219
84220 2003-04-02  Bruno Haible  <bruno@clisp.org>
84221
84222         * lib/binary-io.h: New file, from GNU gettext.
84223
84224 2003-04-01  Bruno Haible  <bruno@clisp.org>
84225
84226         * modules/pathname: New file.
84227         * MODULES.html.sh (func_all_modules): Add it.
84228
84229 2003-04-01  Bruno Haible  <bruno@clisp.org>
84230
84231         * lib/pathname.h: New file, from GNU gettext.
84232         * lib/concatpath.c: New file, from GNU gettext.
84233
84234 2003-03-30  Bruno Haible  <bruno@clisp.org>
84235
84236         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84237
84238 2003-03-30  Bruno Haible  <bruno@clisp.org>
84239
84240         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84241         function chown() doesn't exist.
84242
84243 2003-03-28  Bruno Haible  <bruno@clisp.org>
84244
84245         * modules/copy-file: New file.
84246         * MODULES.html.sh (func_all_modules): Add it.
84247
84248 2003-03-28  Bruno Haible  <bruno@clisp.org>
84249
84250         * m4/copy-file.m4: New file.
84251
84252 2003-03-28  Bruno Haible  <bruno@clisp.org>
84253
84254         * lib/copy-file.h: New file, from GNU gettext.
84255         * lib/copy-file.c: New file, from GNU gettext.
84256
84257 2003-03-18  Jim Meyering  <jim@meyering.net>
84258
84259         * lib/quote.c (quote_n): Fix typo in comment.
84260
84261 2003-03-18  Bruno Haible  <bruno@clisp.org>
84262
84263         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84264         checking.
84265         * m4/onceonly_2_57.m4: Likewise.
84266
84267 2003-03-17  Bruno Haible  <bruno@clisp.org>
84268
84269         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84270         (m4_quote): Remove macro.
84271         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84272
84273 2003-03-14  Jim Meyering  <jim@meyering.net>
84274
84275         Merge changes from Coreutils.
84276         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84277         to be const, in order to avoid warnings.
84278         (obstack_room): Likewise.
84279         (obstack_empty_p): Likewise.
84280
84281 2003-03-14  Bruno Haible  <bruno@clisp.org>
84282
84283         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84284         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84285
84286 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84287
84288         Merge changes from Bison.
84289         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84290         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84291         when compiling Bison 1.875's `bitset bset = obstack_alloc
84292         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84293         * lib/hash.c: Include <stdbool.h> unconditionally.
84294
84295 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84296
84297         * m4/onceonly.m4 (m4_quote): New macro.
84298         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84299         Quote AC_FOREACH variable-expansions properly.
84300
84301 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84302
84303         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84304
84305 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84306
84307         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84308         Reported by Bruce Becker; see:
84309         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84310
84311 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84312             Bruno Haible  <bruno@clisp.org>
84313
84314         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84315         Reported by John Hughes, see
84316         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84317
84318 2003-02-20  Bruno Haible  <bruno@clisp.org>
84319
84320         * MODULES.html.sh (func_all_modules): Add poll.
84321
84322 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84323
84324         * modules/poll: New file.
84325
84326 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84327
84328         * lib/poll_.h: New file.
84329         * lib/poll.c: New file.
84330
84331 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84332
84333         * m4/poll.m4: New file.
84334
84335 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84336
84337         * modules/mathl: New file.
84338
84339 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84340
84341         * lib/mathl.h: New file.
84342         * lib/acosl.c: New file.
84343         * lib/asinl.c: New file.
84344         * lib/atanl.c: New file.
84345         * lib/ceill.c: New file.
84346         * lib/cosl.c: New file.
84347         * lib/expl.c: New file.
84348         * lib/floorl.c: New file.
84349         * lib/frexpl.c: New file.
84350         * lib/ldexpl.c: New file.
84351         * lib/logl.c: New file.
84352         * lib/sincosl.c: New file.
84353         * lib/sinl.c: New file.
84354         * lib/sqrtl.c: New file.
84355         * lib/tanl.c: New file.
84356         * lib/trigl.c: New file.
84357         * lib/trigl.h: New file.
84358
84359 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84360
84361         * m4/mathl.m4: New file.
84362
84363 2003-02-18  Bruno Haible  <bruno@clisp.org>
84364
84365         * MODULES.html.sh (func_all_modules): Add mathl.
84366
84367 2003-02-17  Bruno Haible  <bruno@clisp.org>
84368
84369         * modules/mkdtemp: New module.
84370         * MODULES.html.sh (func_all_modules): Add it.
84371
84372 2003-02-17  Bruno Haible  <bruno@clisp.org>
84373
84374         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84375
84376 2003-02-17  Bruno Haible  <bruno@clisp.org>
84377
84378         * lib/mkdtemp.h: New file, from GNU gettext.
84379         * lib/mkdtemp.c: New file, from GNU gettext.
84380
84381 2003-02-02  Jim Meyering  <jim@meyering.net>
84382
84383         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84384         e.g. glibc-2.2.93.
84385
84386 2003-01-31  Bruno Haible  <bruno@clisp.org>
84387
84388         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84389         'rpl_rename'.
84390         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84391         'rpl_strnlen'.
84392         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84393         'rpl_strtod'.
84394         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84395         'rpl_utime'.
84396
84397 2003-01-31  Bruno Haible  <bruno@clisp.org>
84398
84399         * lib/rename.c: #undef rename before defining rpl_rename.
84400         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84401
84402 2003-01-30  Bruno Haible  <bruno@clisp.org>
84403
84404         * modules/vasnprintf, modules/vasprintf: New modules.
84405         * MODULES.html.sh (func_all_modules): Add them.
84406
84407 2003-01-30  Bruno Haible  <bruno@clisp.org>
84408
84409         * m4/signed.m4: New file, from GNU gettext.
84410         * m4/longdouble.m4: New file, from GNU gettext.
84411         * m4/wchar_t.m4: New file, from GNU gettext.
84412         * m4/wint_t.m4: New file, from GNU gettext.
84413         * m4/vasnprintf.m4: New file.
84414         * m4/vasprintf.m4: New file.
84415
84416 2003-01-30  Bruno Haible  <bruno@clisp.org>
84417
84418         * lib/printf-args.h: New file, from GNU gettext.
84419         * lib/printf-args.c: New file, from GNU gettext.
84420         * lib/printf-parse.h: New file, from GNU gettext.
84421         * lib/printf-parse.c: New file, from GNU gettext.
84422         * lib/vasnprintf.h: New file, from GNU gettext.
84423         * lib/vasnprintf.c: New file, from GNU gettext.
84424         * lib/asnprintf.c: New file, from GNU gettext.
84425         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84426         * lib/vasprintf.c: New file, from GNU gettext.
84427         * lib/asprintf.c: New file, from GNU gettext.
84428
84429 2003-01-29  Bruno Haible  <bruno@clisp.org>
84430
84431         * modules/stpncpy: New module.
84432         * MODULES.html.sh (func_all_modules): Add it.
84433
84434 2003-01-29  Bruno Haible  <bruno@clisp.org>
84435
84436         * m4/stpncpy.m4: New file.
84437
84438 2003-01-29  Bruno Haible  <bruno@clisp.org>
84439
84440         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84441         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84442
84443 2003-01-28  Bruno Haible  <bruno@clisp.org>
84444
84445         * modules/c-ctype: New module.
84446         * MODULES.html.sh (func_all_modules): Add it.
84447
84448 2003-01-28  Bruno Haible  <bruno@clisp.org>
84449
84450         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84451         Paul Eggert.
84452         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84453         Paul Eggert.
84454
84455 2003-01-27  Bruno Haible  <bruno@clisp.org>
84456
84457         * modules/xsetenv: New module.
84458         * MODULES.html.sh (func_all_modules): Add it.
84459
84460 2003-01-27  Bruno Haible  <bruno@clisp.org>
84461
84462         * lib/xsetenv.h: New file, from GNU gettext.
84463         * lib/xsetenv.c: New file, from GNU gettext.
84464
84465 2003-01-23  Jim Meyering  <jim@meyering.net>
84466
84467         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84468         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84469
84470 2003-01-23  Bruno Haible  <bruno@clisp.org>
84471
84472         * modules/minmax: New module.
84473         * MODULES.html.sh (func_all_modules): Add it.
84474
84475 2003-01-23  Bruno Haible  <bruno@clisp.org>
84476
84477         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84478         Eggert.
84479
84480 2003-01-22  Bruno Haible  <bruno@clisp.org>
84481
84482         * modules/exit: New module.
84483         * MODULES.html.sh (func_all_modules): Add it.
84484
84485 2003-01-22  Bruno Haible  <bruno@clisp.org>
84486
84487         * lib/exit.h: New file, from GNU gettext.
84488
84489 2003-01-19  Bruno Haible  <bruno@clisp.org>
84490
84491         * gnulib-tool: Recognize option --extract-maintainer.
84492         (func_get_maintainer): New function.
84493         * modules/*: Add Maintainer entry.
84494
84495 2003-01-16  Jim Meyering  <jim@meyering.net>
84496
84497         * m4/regex.m4: The `regex' struct is both input and output.
84498         Initialize it before each use.  Patch by Tim Waugh.
84499
84500 2003-01-16  Bruno Haible  <bruno@clisp.org>
84501
84502         * MODULES.html.sh: Add a table of contents. Add the module name as
84503         leftmost column. Add hyperlinks.
84504
84505 2003-01-15  Bruno Haible  <bruno@clisp.org>
84506
84507         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84508
84509 2003-01-15  Bruno Haible  <bruno@clisp.org>
84510
84511         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84512         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84513         suffix.
84514
84515 2003-01-15  Bruno Haible  <bruno@clisp.org>
84516
84517         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84518
84519 2003-01-15  Bruno Haible  <bruno@clisp.org>
84520
84521         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84522         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84523
84524 2003-01-14  Jim Meyering  <jim@meyering.net>
84525
84526         * lib/same.c (same_name): Tweak a comment.
84527
84528 2003-01-14  Bruno Haible  <bruno@clisp.org>
84529
84530         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84531         when a string comparison is sufficient.
84532
84533 2003-01-14  Bruno Haible  <bruno@clisp.org>
84534
84535         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84536         'unsigned int'.
84537
84538 2003-01-14  Bruno Haible  <bruno@clisp.org>
84539
84540         * lib/hash-pjw.c: Add comment about low quality of this function.
84541
84542 2003-01-13  Bruno Haible  <bruno@clisp.org>
84543
84544         * modules/stpcpy: Distribute lib/stpcpy.h.
84545         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84546
84547 2003-01-13  Bruno Haible  <bruno@clisp.org>
84548
84549         * modules/*: Add a description.
84550         * modules/strpbrk: Fix Makefile.am snippet.
84551         * modules/strtoimax: Fix dependencies.
84552         * modules/strtoumax: Likewise.
84553
84554 2003-01-13  Bruno Haible  <bruno@clisp.org>
84555
84556         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84557         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84558         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84559
84560 2003-01-13  Bruno Haible  <bruno@clisp.org>
84561
84562         * gnulib-tool (func_create_testdir): Store config/* files in the main
84563         directory.
84564         * config.rpath: Move to ...
84565         * config/config.rpath: ... here.
84566         * modules/gettext: Contains config/config.rpath, not config.rpath.
84567         * modules/iconv: Likewise.
84568
84569 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84570
84571         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84572         to avoid collisions with libcurses and libreadline.
84573
84574         * m4/getstr.m4: Remove.
84575         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84576
84577 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84578
84579         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84580         to avoid collisions with libcurses and libreadline.
84581
84582         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84583         * lib/getstr.h, getstr.c: Remove.
84584         * lib/getline.c: Include "getline.h", to check interface.
84585         Move body of old getstr.c here: this defines MIN_CHUNK and
84586         declares getdelim2, which is renamed from getstr.
84587         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84588
84589         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84590         All uses changed.
84591         * lib/linebuffer.h: Likewise.
84592         (readline): Remove backward-compatibility macro.
84593
84594 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84595
84596         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84597         to avoid collisions with libcurses and libreadline.
84598         * getstr: Remove.
84599         * MODULES.html.sh: Remove getstr.
84600         * modules/getline: Depend on unlocked-io, not getstr.
84601
84602 2003-01-12  Jim Meyering  <jim@meyering.net>
84603
84604         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84605
84606 2003-01-10  Bruno Haible  <bruno@clisp.org>
84607
84608         * modules/alloca: Change Makefile.am requirements. Simplify Include
84609         requirements. Add lib/alloca_.h to file list.
84610
84611 2003-01-10  Bruno Haible  <bruno@clisp.org>
84612
84613         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84614
84615 2003-01-10  Bruno Haible  <bruno@clisp.org>
84616
84617         * lib/alloca_.h: New file.
84618         * lib/getdate.y: Unconditionally include alloca.h.
84619         * lib/makepath.c: Likewise.
84620         * lib/setenv.c: Likewise.
84621         * lib/userspec.c: Likewise.
84622
84623 2003-01-09  Karl Berry  <karl@gnu.org>
84624
84625         * MODULES.html.sh: include `dirname $0` in PATH, to find
84626         gnulib-tool.
84627
84628 2003-01-09  Bruno Haible  <bruno@clisp.org>
84629
84630         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84631         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84632
84633 2003-01-09  Bruno Haible  <bruno@clisp.org>
84634
84635         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84636
84637 2003-01-09  Bruno Haible  <bruno@clisp.org>
84638
84639         * lib/stdbool.h.in: New file.
84640
84641 2003-01-09  Bruno Haible  <bruno@clisp.org>
84642
84643         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84644         * MODULES.html.sh: Likewise.
84645
84646 2003-01-08  Jim Meyering  <jim@meyering.net>
84647
84648         * lib/full-write.c: Undefine and define-away `const' after inclusion
84649         of errno.h, not before.  Suggestion from Bruno Haible.
84650
84651 2003-01-08  Bruno Haible  <bruno@clisp.org>
84652
84653         * modules/full-read: Depend on full-write.
84654
84655 2003-01-08  Bruno Haible  <bruno@clisp.org>
84656
84657         * lib/safe-read.c: Include specification header first, to ensure its
84658         selfcontainedness.
84659         * lib/full-write.c: Likewise.
84660
84661 2003-01-07  Jim Meyering  <jim@meyering.net>
84662
84663         * lib/full-write.c: Rework so that it may serve to define full_read,
84664         too.
84665         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84666
84667 2003-01-07  Bruno Haible  <bruno@clisp.org>
84668
84669         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84670         <inttypes.h>.
84671         * lib/xstrtol.h: Likewise.
84672         * lib/xstrtoimax.c: Likewise.
84673         * lib/xstrtoumax.c: Likewise.
84674         * lib/human.h: Likewise.
84675
84676         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84677         on systems that have <inttypes.h> but not <stdint.h>.
84678
84679 2003-01-07  Bruno Haible  <bruno@clisp.org>
84680
84681         * MODULES.html.sh: Add copyright notice.
84682         (missed_files): Omit CVS directory entries.
84683         (func_module): Make it work with sed-3.02.
84684         * MODULES.txt: Remove file.
84685
84686 2003-01-06  Jim Meyering  <jim@meyering.net>
84687
84688         * lib/version-etc.c: Update year in translatable copyright string.
84689
84690 2003-01-03  Karl Berry  <karl@gnu.org>
84691
84692         * config/config.{guess,sub}: update from prep.
84693
84694 2003-01-02  Karl Berry  <karl@gnu.org>
84695
84696         * doc/COPYING.DOC: belatedly updated to 1.2.
84697
84698 2003-01-01  Karl Berry  <karl@gnu.org>
84699
84700         * gnulib-tool (func_verify_module): report module name $module in
84701         error message, not $1.
84702         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84703         be created, only if it doesn't exist.
84704         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84705
84706 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84707
84708         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84709
84710 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84711
84712         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84713         memcmp if strcoll doesn't work.
84714
84715 2002-12-31  Bruno Haible  <bruno@clisp.org>
84716
84717         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84718         nonempty.
84719
84720 2002-12-31  Bruno Haible  <bruno@clisp.org>
84721
84722         * lib/memcoll.c (STRCOLL): New macro.
84723         (memcoll): Use it.
84724
84725 2002-12-31  Bruno Haible  <bruno@clisp.org>
84726
84727         * lib/localcharset.h: New file.
84728         * lib/localcharset.c: Include it.
84729         * lib/unicodeio.c: Likewise.
84730
84731 2002-12-31  Bruno Haible  <bruno@clisp.org>
84732
84733         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84734         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84735
84736 2002-12-31  Bruno Haible  <bruno@clisp.org>
84737
84738         * lib/getline.h: Include <stddef.h>, for size_t.
84739
84740         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84741         * lib/unicodeio.c: Don't include <stddef.h>.
84742
84743 2002-12-31  Bruno Haible  <bruno@clisp.org>
84744
84745         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84746         HAVE_TM_ZONE.
84747
84748 2002-12-24  Karl Berry  <karl@gnu.org>
84749
84750         * config/config.guess: update from prep.
84751
84752 2002-12-24  Bruno Haible  <bruno@clisp.org>
84753
84754         General infrasructure.
84755         * m4/README: Rewritten.
84756         * m4/onceonly.m4: New file.
84757         * m4/onceonly_2_57.m4: New file.
84758
84759         Module atexit.
84760         * m4/atexit.m4: New file.
84761
84762         Module strtod.
84763         * m4/strtod.m4: New file.
84764
84765         Module strtol.
84766         * m4/strtol.m4: New file.
84767
84768         Module strtoul.
84769         * m4/strtoul.m4: New file.
84770
84771         Module memchr.
84772         * m4/memchr.m4: New file.
84773
84774         Module memcmp.
84775         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84776         (jm_FUNC_MEMCMP): Invoke it.
84777
84778         Module memcpy.
84779         * m4/memcpy.m4: New file.
84780
84781         Module memmove.
84782         * m4/memmove.m4: New file.
84783
84784         Module memset.
84785         * m4/memset.m4: New file.
84786
84787         Module strcspn.
84788         * m4/strcspn.m4: New file.
84789
84790         Module strpbrk.
84791         * m4/strpbrk.m4: New file.
84792
84793         Module strstr.
84794         * m4/strstr.m4: New file.
84795
84796         Module strerror.
84797         * m4/strerror.m4: New file.
84798
84799         Module mktime.
84800         * m4/mktime.m4: Renamed from jm-mktime.m4.
84801         (gl_PREREQ_MKTIME): New macro.
84802         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84803
84804         Module malloc.
84805         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84806         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84807         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84808
84809         Module realloc.
84810         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84811         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84812         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84813
84814         Module strftime.
84815         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84816         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84817         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84818         gl_TM_GMTOFF.
84819         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84820
84821         Module xalloc.
84822         * m4/xalloc.m4: New file.
84823
84824         Module alloca.
84825         * m4/alloca.m4: New file.
84826
84827         Module putenv.
84828         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84829         (jm_FUNC_PUTENV): Invoke it.
84830
84831         Module setenv.
84832         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84833         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84834         when invoked twice.
84835         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84836         gt_FUNC_SETENV.
84837
84838         Module memrchr.
84839         * m4/memrchr.m4: New file.
84840
84841         Module stpcpy.
84842         * m4/stpcpy.m4: New file.
84843
84844         Module strcase.
84845         * m4/strcase.m4: New file.
84846
84847         Module strdup.
84848         * m4/strdup.m4: New file.
84849
84850         Module strnlen.
84851         * m4/strnlen.m4: New file.
84852
84853         Module strndup.
84854         * m4/strndup.m4: New file.
84855
84856         Module xstrtod.
84857         * m4/xstrtod.m4: New file.
84858
84859         Module xstrtol.
84860         * m4/xstrtol.m4: New file.
84861
84862         Module getdate.
84863         * m4/getdate.m4: New file.
84864
84865         Module unlocked-io.
84866         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84867         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84868         * m4/jm-glibc-io.m4n: Remove file.
84869
84870         Module long-options.
84871         * m4/long-options.m4: New file.
84872
84873         Module md5.
84874         * m4/md5.m4: New file.
84875
84876         Module sha.
84877         * m4/sha.m4: New file.
84878
84879         Module getstr.
84880         * m4/getstr.m4: New file.
84881
84882         Module getline.
84883         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84884         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84885         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84886         simply getline. Infoke gl_PREREQ_GETLINE.
84887
84888         Module obstack.
84889         * m4/obstack.m4: New file.
84890
84891         Module hash.
84892         * m4/hash.m4: New file.
84893
84894         Module readtokens.
84895         * m4/readtokens.m4: New file.
84896
84897         Module strverscmp.
84898         * m4/strverscmp.m4: New file.
84899
84900         Module stdbool.
84901         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84902         OSF/1.
84903
84904         Module strtoll.
84905         * m4/strtoll.m4: New file.
84906
84907         Module strtoull.
84908         * m4/strtoull.m4: New file.
84909
84910         Module strtoimax.
84911         * m4/strtoimax.m4: New file.
84912
84913         Module strtoumax.
84914         * m4/strtoumax.m4: New file.
84915
84916         Module xstrtoimax.
84917         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84918         jm_AC_PREREQ_XSTRTOIMAX.
84919         Moved the strtol prerequisites to strtol.m4.
84920         Moved the strtoll prerequisites to strtoll.m4.
84921         Moved the strtoimax prerequisites to strtoimax.m4.
84922
84923         Module xstrtoumax.
84924         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84925         jm_AC_PREREQ_XSTRTOUMAX.
84926         Moved the strtoul prerequisites to strtoul.m4.
84927         Moved the strtoull prerequisites to strtoull.m4.
84928         Moved the strtoumax prerequisites to strtoumax.m4.
84929
84930         Module chown.
84931         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84932         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84933
84934         Module dup2.
84935         * m4/dup2.m4: New file.
84936
84937         Module ftruncate.
84938         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84939         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84940
84941         Module getgroups.
84942         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84943         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84944
84945         Module gettimeofday.
84946         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84947         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84948         gl_PREREQ_GETTIMEOFDAY.
84949
84950         Module mkdir.
84951         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84952         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84953
84954         Module mkstemp.
84955         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84956         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84957         jm_AC_TYPE_UINTMAX_T.
84958         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84959
84960         Module stat.
84961         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84962         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84963
84964         Module lstat.
84965         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84966         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84967
84968         Module timespec.
84969         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84970         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84971         * m4/st_mtim.m4: Indentation.
84972
84973         Module nanosleep.
84974         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84975         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84976         gl_PREREQ_NANOSLEEP.
84977
84978         Module regex.
84979         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84980         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84981         (gl_REGEX): New macro.
84982
84983         Module rename.
84984         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84985         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84986
84987         Module rmdir.
84988         * m4/rmdir.m4: New file.
84989
84990         Module utime.
84991         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84992         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84993         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84994
84995         Module dirname.
84996         * m4/dirname.m4: New file.
84997
84998         Module getopt.
84999         * m4/getopt.m4: New file.
85000
85001         Module unistd-safer.
85002         * m4/unistd-safer.m4: New file.
85003
85004         Module fnmatch.
85005         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85006         declaration.
85007         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85008         (gl_FUNC_FNMATCH_POSIX): New macro.
85009         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85010         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85011         simply fnmatch.
85012
85013         Module exclude.
85014         * m4/exclude.m4: New file.
85015
85016         Module human.
85017         * m4/human.m4: New file.
85018
85019         Module acl.
85020         * m4/acl.m4: Nop.
85021
85022         Module backupfile.
85023         * m4/backupfile.m4: New file.
85024         * m4/d-ino.m4: Indentation.
85025
85026         Module fsusage.
85027         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85028         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85029         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85030
85031         Module dirfd.
85032         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85033         requirements.
85034
85035         Module euidaccess.
85036         * m4/euidaccess.m4: New file.
85037
85038         Module file-type.
85039         * m4/file-type.m4: New file.
85040
85041         Module fileblocks.
85042         * m4/fileblocks.m4: New file.
85043
85044         Module filemode.
85045         * m4/filemode.m4: New file.
85046
85047         Module isdir.
85048         * m4/isdir.m4: New file.
85049
85050         Module lchown.
85051         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85052         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85053
85054         Module makepath.
85055         * m4/makepath.m4: New file.
85056
85057         Module modechange.
85058         * m4/modechange.m4: New file.
85059
85060         Module mountlist.
85061         * m4/mountlist.m4: New file.
85062         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85063         Indentation.
85064
85065         Module path-concat.
85066         * m4/path-concat.m4: New file.
85067
85068         Module pathmax.
85069         * m4/pathmax.m4: New file.
85070
85071         Module same.
85072         * m4/same.m4: New file.
85073
85074         Module save-cwd.
85075         * m4/save-cwd.m4: New file.
85076
85077         Module savedir.
85078         * m4/savedir.m4: New file.
85079
85080         Module xgetcwd.
85081         * m4/xgetcwd.m4: New file.
85082         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85083
85084         Module xreadlink.
85085         * m4/xreadlink.m4: New file.
85086
85087         Module safe-read.
85088         * m4/safe-read.m4: New file.
85089
85090         Module safe-write.
85091         * m4/safe-write.m4: New file.
85092
85093         Module closeout.
85094         * m4/closeout.m4: New file.
85095
85096         Module stdio-safer.
85097         * m4/stdio-safer.m4: New file.
85098
85099         Module getpass.
85100         * m4/getpass.m4: New file.
85101
85102         Module getugroups.
85103         * m4/getugroups.m4: New file.
85104
85105         Module group-member.
85106         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85107         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85108
85109         Module idcache.
85110         * m4/idcache.m4: New file.
85111
85112         Module userspec.
85113         * m4/userspec.m4: New file.
85114
85115         Module gettime.
85116         * m4/clock_time.m4: New file.
85117         * m4/gettime.m4: New file.
85118
85119         Module settime.
85120         * m4/settime.m4: New file.
85121
85122         Module posixtm.
85123         * m4/posixtm.m4: New file.
85124
85125         Module gethostname.
85126         * m4/gethostname.m4: New file.
85127
85128         Module canon-host.
85129         * m4/canon-host.m4: New file.
85130
85131         Module gettext.
85132         * m4/codeset.m4: New file, from gettext-0.11.5.
85133         * m4/gettext.m4: New file, from gettext-0.11.5.
85134         * m4/glibc21.m4: New file, from gettext-0.11.5.
85135         * m4/iconv.m4: New file, from gettext-0.11.5.
85136         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85137         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85138         * m4/inttypes.m4: New file, from gettext-0.11.5.
85139         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85140         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85141         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85142         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85143         * m4/lib-link.m4: New file, from gettext-0.11.5.
85144         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85145         * m4/progtest.m4: New file, from gettext-0.11.5.
85146         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85147         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85148         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85149
85150         Module localcharset.
85151         * m4/localcharset.m4: New file.
85152
85153         Module hard-locale.
85154         * m4/hard-locale.m4: New file.
85155
85156         Module mbswidth.
85157         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85158         onceonly macros.
85159         * m4/mbrtowc.m4: Add comment.
85160
85161         Module memcasecmp.
85162         * m4/memcasecmp.m4: New file.
85163
85164         Module memcoll.
85165         * m4/memcoll.m4: New file.
85166
85167         Module unicodeio.
85168         * m4/unicodeio.m4: New file.
85169
85170         Module rpmatch.
85171         * m4/rpmatch.m4: New file.
85172
85173         Module yesno.
85174         * m4/yesno.m4: New file.
85175
85176         Module exitfail.
85177         * m4/exitfail.m4: New file.
85178
85179         Module c-stack.
85180         * m4/c-stack.m4 (gl_C_STACK): New macro.
85181         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85182
85183         Module error.
85184         * m4/error.m4 (gl_ERROR): New macro.
85185         (jm_PREREQ_ERROR): Use onceonly macros.
85186
85187         Module fatal.
85188         * m4/fatal.m4: New file.
85189
85190         Module getloadavg.
85191         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85192         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85193
85194         Module getpagesize.
85195         * m4/getpagesize.m4: New file.
85196
85197         Module getusershell.
85198         * m4/getusershell.m4: New file.
85199
85200         Module physmem.
85201         * m4/physmem.m4: New file.
85202
85203         Module posixver.
85204         * m4/posixver.m4: New file.
85205
85206         Module quotearg.
85207         * m4/quotearg.m4: New file.
85208
85209         Module quote.
85210         * m4/quote.m4: New file.
85211
85212         Module readutmp.
85213         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85214
85215         Module sig2str.
85216         * m4/sig2str.m4: New file.
85217
85218         Other.
85219         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85220         ulonglong.m4.
85221         * m4/intmax_t.m4: New file.
85222         * m4/d-type.m4: Indentation.
85223         * m4/jm-macros.m4: Update.
85224         * m4/prereq.m4 (jm_PREREQ): Update.
85225         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85226         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85227         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85228         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85229         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85230         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85231         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85232         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85233         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85234         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85235         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85236         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85237         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85238         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85239         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85240         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85241         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85242         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85243         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85244
85245 2002-12-24  Bruno Haible  <bruno@clisp.org>
85246
85247         * MODULES.txt: Update according to m4/ changes.
85248
85249         Module gettext.
85250         * config.rpath: New file, from gettext-0.11.5.
85251
85252         * modules/*: New module descriptions.
85253         * gnulib-tool: New file.
85254         * MODULES.html.sh: New file.
85255
85256 2002-12-21  Karl Berry  <karl@gnu.org>
85257
85258         * doc/fdl.texi: update to version 1.2.
85259
85260 2002-12-19  Karl Berry  <karl@gnu.org>
85261
85262         * config/config.guess: update from prep.
85263
85264 2002-12-18  Bruno Haible  <bruno@clisp.org>
85265
85266         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85267         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85268
85269 2002-12-17  Bruno Haible  <bruno@clisp.org>
85270
85271         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85272         stdlib.h, string.h.
85273
85274 2002-12-17  Bruno Haible  <bruno@clisp.org>
85275
85276         * lib/canon-host.c (strdup): Remove unused declaration.
85277
85278         * lib/fsusage.c: Include full_read.h.
85279         (get_fs_usage): Use full_read instead of safe_read.
85280
85281         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85282
85283 2002-12-12  Karl Berry  <karl@gnu.org>
85284
85285         * config/config.guess: update from prep.
85286
85287 2002-12-11  Bruno Haible  <bruno@clisp.org>
85288
85289         * m4/setenv.m4: New file, from gettext-0.11.5.
85290
85291 2002-12-11  Bruno Haible  <bruno@clisp.org>
85292
85293         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85294         not unsetenv().
85295         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85296         modifications:
85297
85298         2002-12-11  Bruno Haible  <bruno@clisp.org>
85299
85300                 * setenv.c (alloca): Fall back to malloc.
85301                 (freea): New macro.
85302                 (setenv): Use freea() to free memory allocated with alloca().
85303
85304         2002-11-13  Bruno Haible  <bruno@clisp.org>
85305
85306                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85307                 function declarations.
85308                 * unsetenv.c (unsetenv): Likewise.
85309
85310         2002-03-04  Bruno Haible  <bruno@clisp.org>
85311
85312                 Portability to AIX 4.3.3.
85313                 * unsetenv.c: New file, extracted from setenv.c.
85314                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85315
85316         2001-12-20  Bruno Haible  <bruno@clisp.org>
85317
85318                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85319                 use malloc instead. For SunOS 4.
85320
85321         2001-12-11  Bruno Haible  <bruno@clisp.org>
85322
85323                 * setenv.c: Declare alloca.
85324                 (compar_fn_t): New typedef.
85325                 (KNOWN_VALUE, STORE_VALUE): Use it.
85326
85327         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85328         setenv.h.
85329
85330 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85331
85332         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85333         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85334         Choose values that are less likely to collide with system fnmatch
85335         options.
85336         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85337         defined (e.g., a pure POSIX system).
85338         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85339         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85340
85341 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85342
85343         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85344         a pain in practice to deal with generated m4 files.  This change
85345         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85346
85347         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85348         and jm-glibc-io.m4, as they are no longer a special case.
85349         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85350         kludge and the auto-generation stuff.  Check only whether the
85351         functions are declared, not whether they exist, since older hosts
85352         that don't declare the functions can't use the optimization anyway.
85353
85354 2002-12-06  Jim Meyering  <jim@meyering.net>
85355
85356         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85357
85358         Merge in changes from libc's misc/error.c, in preparation
85359         for the merge of gnulib's changes back into libc.
85360
85361         * lib/error.c (_): Define only if not already defined.
85362         Move definition to follow all #include directives.
85363         Include unlocked-io.h only if !_LIBC.
85364         [_LIBC]: Include <libio/libioP.h>.
85365         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85366         (fflush): Tweak definition to use INTUSE.
85367         (putc): Define.
85368
85369 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85370
85371         * lib/alloca.c [defined emacs]: Include "lisp.h".
85372         (xalloc_die) [defined emacs]: New macro.
85373         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85374         [! defined emacs]: Include <xalloc.h>.
85375         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85376         (pointer): Typedef to POINTER_TYPE *.
85377         (malloc): Remove decl; we now always use xmalloc.
85378         (alloca): Use old-style definition, since Emacs needs this.
85379         Check for arithmetic overflow when computing combined size.
85380
85381 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85382
85383         Do not generate unlocked-io.h automatically, since it's easier to
85384         maintain it by hand.
85385
85386         * lib/unlocked-io.h: New file, from GNU diffutils,
85387         but with proper copyright notice and attribution.
85388         * lib/gen-uio: Remove.
85389         * lib/Makefile.am: Add copyright notice.
85390         (libfetish_a_SOURCES): Add unlocked-io.h.
85391         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85392         (DISTCLEANFILES, io_functions): Remove macros.
85393         (EXTRA_DIST): Remove gen_uio.
85394         (unlocked-io.h): Remove rule.
85395
85396 2002-12-04  Jim Meyering  <jim@meyering.net>
85397
85398         Reflect the fact that stat.c and lstat.c are no longer generated.
85399         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85400         (DISTCLEANFILES): Likewise.
85401         (EXTRA_DIST): Likewise.
85402         (all_local): Don't depend on stat.c or lstat.c.
85403         (stat.c, lstat.c): Remove rules.
85404         (EXTRA_DIST): Remove xstat.in.
85405
85406         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85407         * lib/stat.c: New file.  Contents mostly from xstat.in.
85408         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85409         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85410
85411         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85412         too.
85413         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85414
85415 2002-12-03  Jim Meyering  <jim@meyering.net>
85416
85417         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85418         but not semantics, to minimize the differences between these two files.
85419         (safe_read): Change comment to mention SAFE_READ_ERROR.
85420
85421         * lib/safe-read.c (IS_EINTR): Define.
85422         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85423
85424 2002-12-02  Jim Meyering  <jim@meyering.net>
85425
85426         * lib/safe-read.c (EINTR): Define.
85427         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85428         (INT_MAX): Provide fallback.
85429         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85430
85431         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85432
85433 2002-12-02  Bruno Haible  <bruno@clisp.org>
85434
85435         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85436         Define, taken from safe-read.c.
85437         (INT_MAX): Provide fallback.
85438         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85439         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85440
85441         * lib/safe-read.c (EINTR): Remove definition.
85442         (safe_read): Don't use EINTR if it is absent.
85443
85444 2002-12-01  Jim Meyering  <jim@meyering.net>
85445
85446         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85447         zero.
85448         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85449
85450 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85451
85452         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85453         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85454         with `if (! (value < limit)) abort ();', for readability.
85455
85456 2002-11-26  Karl Berry  <karl@gnu.org>
85457
85458         * lib/strdup.c: copy from libc again, with jim's ok.
85459         * lib/.cppi-disable: re-add strdup.c
85460
85461 2002-11-25  Karl Berry  <karl@gnu.org>
85462
85463         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85464         instead of "strtol.c".
85465
85466 2002-11-25  Karl Berry  <karl@gnu.org>
85467
85468         * config/install-sh: update from automake for variable quoting, $0 in
85469         error msgs, etc.
85470
85471         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85472         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85473         entry.
85474
85475 2002-11-25  Jim Meyering  <jim@meyering.net>
85476
85477         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85478
85479 2002-11-24  Karl Berry  <karl@gnu.org>
85480
85481         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85482         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85483
85484 2002-11-24  Jim Meyering  <jim@meyering.net>
85485
85486         Update from coreutils:
85487
85488         * lib/mktime.c: Merge in changes from libc.
85489
85490         Avoid a link-time failure on some Linux systems.
85491         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85492         (otherwise).
85493         (__mon_yday): Declare with the STATIC attribute.
85494         (__mktime_internal): Likewise.
85495         Based on a report from Greg Schafer.
85496
85497 2002-11-23  Jim Meyering  <jim@meyering.net>
85498
85499         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85500         Use `unsigned', not `int', as type of index.
85501
85502         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85503
85504         * lib/fsusage.c: Remove unneeded parentheses around operands of
85505         `defined'.
85506
85507 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85508
85509         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85510         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85511         so that we can be included first.
85512         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85513         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85514         No need to include stddef.h or sys/types.h any more.
85515         Surround local include files with "", not "<>".
85516         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85517         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85518         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85519         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85520         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85521         (ISPRINT): Remove; no longer needed now that we assume C89.
85522
85523         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85524         Preserve errno.
85525
85526         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85527         quotearg_char): Use SIZE_MAX rather than
85528         (size_t) -1 when we are talking about "infinity".
85529
85530         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85531
85532 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85533
85534         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85535         hint that one should use `if (! x) abort ();' rather than `assert
85536         (x);', and anyway it's one less thing to worry about configuring.
85537         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85538         hash_rehash, hash_insert): Use abort rather than assert.
85539
85540 2002-11-22  Bruno Haible  <bruno@clisp.org>
85541
85542         * lib/safe-read.h: Assume C89. Add comments.
85543         (safe_read): Change return type to size_t.
85544         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85545         byte counts > SSIZE_MAX correctly.
85546         * lib/safe-write.h: New file.
85547         * lib/safe-write.c: New file.
85548         * lib/full-read.h: New file.
85549         * lib/full-read.c: New file.
85550         * lib/full-write.h: Assume C89. Add comments.
85551         * lib/full-write.c: Include safe-write.h.
85552         (full_write): Rewritten to use safe_write.
85553         Suggested by Jim Meyering and Paul Eggert.
85554
85555 2002-11-21  Jim Meyering  <jim@meyering.net>
85556
85557         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85558
85559         Merge in changes from the coreutils.
85560
85561         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85562         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85563         <stdint.h>.
85564         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85565         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85566         int.  Work more efficiently if X is the same width as uintmax_t.
85567         Do not compare X to -1, to avoid bogus compiler warning.
85568         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85569         Don't assume that f_frsize and f_bsize are the same type.
85570
85571         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85572         warning on FreeBSD.
85573
85574         * lib/makepath.c (make_path): Restore umask *before* creating the final
85575         component.
85576         (make_path): Minor reformatting.
85577
85578         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85579         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85580         HAVE_MALLOC/HAVE_REALLOC.
85581
85582         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85583         dummy ones.  At least on GNU/Linux systems, `auto' means something
85584         else.
85585         From Michael Stone.
85586
85587 2002-11-21  Bruno Haible  <bruno@clisp.org>
85588
85589         Remove case insensitive option matching.
85590         * lib/argmatch.h (argcasematch): Remove declaration.
85591         (ARGCASEMATCH): Remove macro.
85592         (__xargmatch_internal): Remove case_sensitive argument.
85593         (XARGMATCH): Update.
85594         (XARGCASEMATCH): Remove macro.
85595         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85596         case_sensitive argument.
85597         (argcasematch): Remove function.
85598         (__xargmatch_internal): Remove case_sensitive argument.
85599         (main): Use XARGMATCH instead of XARGCASEMATCH.
85600
85601         * lib/xmalloc.c: Change compile-time error message. Add comment about
85602         required autoconf version.
85603
85604 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85605
85606         Merge argmatch cleanups from Bison.  Assume C89.
85607
85608         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85609         Include stdlib.h, for EXIT_FAILURE.
85610         Always include <string.h>, since we assume C89.
85611         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85612         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85613         Include <stddef.h> instead, since it's all we need for size_t.
85614         (PARAMS): Remove.  All uses removed.
85615         (ARRAY_CARDINALITY): Do not bother to #undef.
85616         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85617         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85618         Remove unnecessary parentheses.
85619         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85620         Insert necessary parentheses.
85621         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85622         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85623
85624 2002-11-19  Bruno Haible  <bruno@clisp.org>
85625
85626         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85627         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85628
85629         * lib/mbswidth.h (PARAMS): Remove macro.
85630         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85631         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85632
85633         * lib/gcd.h (PARAMS): Remove macro.
85634         (gcd): Use ANSI C function declarations.
85635         * lib/gcd.c (gcd): Likewise.
85636
85637 2002-11-15  Bruno Haible  <bruno@clisp.org>
85638
85639         * lib/strcspn.c: Include <stddef.h>.
85640         (strcspn): Use ANSI C function declaration. Change return type to
85641         size_t. Use NULL.
85642         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85643         (strpbrk): Use NULL.
85644         * lib/strpbrk.h (PARAMS): Remove macro.
85645         (strpbrk): Use ANSI C function declaration.
85646         * lib/strstr.c: Don't include <sys/types.h>.
85647         * lib/strstr.h (PARAMS): Remove macro.
85648         (strstr): Use ANSI C function declarations.
85649
85650 2002-11-14  Karl Berry  <karl@gnu.org>
85651
85652         * config/mkinstalldirs: `do' on separate line, instead of
85653         `for var; do'.
85654
85655 2002-11-06  Bruno Haible  <bruno@clisp.org>
85656
85657         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85658         * lib/gcd.c (gcd): Likewise.
85659
85660 2002-11-05  Bruno Haible  <bruno@clisp.org>
85661
85662         * lib/gcd.h: New file, from gettext-0.11.5.
85663         * lib/gcd.c: New file, from gettext-0.11.5.
85664
85665 2002-11-05  Bruno Haible  <bruno@clisp.org>
85666
85667         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85668         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85669         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85670         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85671
85672         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85673         <libintl.h>.
85674         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85675         <libintl.h>.
85676
85677         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85678         * lib/human.c: Include gettext.h instead of <libintl.h>.
85679         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85680         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85681         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85682         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85683         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85684         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85685         (textdomain): Remove definition.
85686         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85687
85688         * lib/long-options.c: Remove include of <libintl.h> and definition of
85689         _.
85690         * lib/same.c: Remove include of <libintl.h> and definition of _.
85691
85692 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85693
85694         * lib/config.charset: A few additions for Solaris.
85695
85696 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85697
85698         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85699         * lib/localcharset.c (locale_charset): Declare as extern "C".
85700
85701 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85702
85703         * lib/config.charset: msdos in uk_UA uses CP1125.
85704
85705 2002-11-04  Bruno Haible  <bruno@clisp.org>
85706
85707         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85708         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85709         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85710         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85711         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85712
85713 2002-11-04  Bruno Haible  <bruno@clisp.org>
85714
85715         * lib/localcharset.c (locale_charset): Don't return an empty string.
85716
85717 2002-11-04  Bruno Haible  <bruno@clisp.org>
85718
85719         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85720         aliases.
85721
85722 2002-11-04  Bruno Haible  <bruno@clisp.org>
85723
85724         * lib/config.charset: Update for newest glibc. Add canonical names
85725         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85726
85727 2002-11-04  Bruno Haible  <bruno@clisp.org>
85728
85729         * lib/config.charset: Add support for NetBSD.
85730
85731 2002-11-04  Bruno Haible  <bruno@clisp.org>
85732
85733         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85734
85735 2002-11-01  Bruno Haible  <bruno@clisp.org>
85736
85737         * configure.in: Add AC_CONFIG_AUX_DIR call.
85738         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85739         test/Makefile.
85740         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85741
85742 2002-09-28  Karl Berry  <karl@gnu.org>
85743
85744         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85745         installed automake until the next release, since changes have been
85746         made.
85747
85748 2002-09-25  Karl Berry  <karl@gnu.org>
85749
85750         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85751         * lib/getopt*: copy from libc/posix.
85752         * lib/gettext.h: copy from gettext.
85753         * lib/.cppi-disable: add strdup.c, gettext.h.
85754
85755 2002-09-25  Karl Berry  <karl@gnu.org>
85756
85757         * config/srclist.txt: enable gettext.h check.
85758         * config/config.{guess,sub}: update from prep.
85759         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85760                 from automake 1.6.3.
85761         See srclist*.
85762
85763 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85764
85765         * regex.c (PATFETCH): Remove the translating fetch.
85766         (PATFETCH_RAW): Rename to PATFETCH.
85767         (set_image_of_range): New fun.
85768         (SET_RANGE_TABLE_WORK_AREA): Use it.
85769         (regex_compile): Don't translate the pattern chars so eagerly.
85770         Only do it when inserting an `exactn' bytecode or when handling
85771         a char-range.
85772         (mutually_exclusive_p): Avoid empty statement.
85773
85774 2002-07-06  Jim Meyering  <meyering@lucent.com>
85775
85776         * m4/README: Don't mention Makefile.am.in.
85777         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85778
85779 2002-07-01  Jim Meyering  <meyering@lucent.com>
85780
85781         * lib/c-stack.c: Include sys/time.h.
85782         From Volker Borchert.
85783
85784 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85785
85786         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85787
85788 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85789
85790         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85791         New macro.  Use it uniformly instead of
85792         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85793         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85794         reported by Vin Shelton.
85795
85796 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85797
85798         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85799         Do not assume SA_SIGINFO behavior.
85800         Bug reported by Jim Meyering on NetBSD 1.5.2.
85801
85802 2002-06-22  Jim Meyering  <meyering@lucent.com>
85803
85804         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85805         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85806
85807         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85808         now that configure.ac uses AC_GNU_SOURCE.
85809         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85810         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85811
85812         Update to latest tools.  Suggestions from Paul Eggert.
85813         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85814         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85815         * m4/fnmatch.m4: Likewise.
85816         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85817         to AC_HEADER_STDBOOL
85818
85819 2002-06-22  Jim Meyering  <meyering@lucent.com>
85820
85821         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85822         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85823
85824 2002-06-22  Jim Meyering  <meyering@lucent.com>
85825
85826         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85827
85828         * lib/exitfail.c, exitfail.h: Likewise.
85829         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85830
85831         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85832         of fnmatch.h.
85833         (EXTRA_DIST): Add fnmatch_loop.c.
85834         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85835
85836         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85837         * lib/fnmatch.c: Update from diffutils-2.8.2.
85838         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85839         * lib/fnmatch.h: Remove file.
85840
85841 2002-06-21  Jim Meyering  <meyering@lucent.com>
85842
85843         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85844         * m4/mbrtowc.m4: Likewise.
85845
85846         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85847         * m4/mbswidth.m4: Reflect name change:
85848         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85849         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85850
85851         * m4/lib-link.m4: Update from gettext-0.11.2.
85852         * m4/gettext.m4: Likewise.
85853
85854         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85855         From Alfred M. Szmidt.
85856
85857 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85858
85859         * lib/file-type.h: Report an error if neither S_ISREG nor
85860         S_IFREG is defined, instead of using a test specific to glibc
85861         2.2.  This should be safe, since POSIX requires S_ISREG and
85862         Unix Version 7 had S_IFREG.  We don't need to check for
85863         <sys/types.h> since we don't use any symbols that it defines.
85864
85865 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85866
85867         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85868         $@-t, so that each temporary file name is unique and valid in the first
85869         8 characters, for operation under DOS.
85870
85871 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85872
85873         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85874
85875 2002-06-15  Jim Meyering  <meyering@lucent.com>
85876
85877         Work even with DJGPP 2.03, which lacks support for symlinks.
85878         From Richard Dawe.
85879         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85880         is defined.
85881         * lib/lchown.c (S_ISLNK): Likewise.
85882
85883 2002-06-15  Jim Meyering  <meyering@lucent.com>
85884
85885         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85886         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85887         have been included before this file.
85888
85889 2002-06-14  Jim Meyering  <meyering@lucent.com>
85890
85891         * lib/file-type.h: Use the version from diffutils-2.8.2.
85892         * lib/file-type.c: Likewise.
85893
85894 2002-06-07  Jim Meyering  <meyering@lucent.com>
85895
85896         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85897         They're needed at least for NetBSD 1.5.2.
85898         ($statxfs_includes): Include those same headers.
85899         ($statxfs_includes): Include sys/vfs.h if available.
85900         ($statxfs_includes): Likewise for sys/statvfs.h.
85901         Check for the following members in both structs statfs and statvfs:
85902         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85903
85904 2002-06-01  Jim Meyering  <meyering@lucent.com>
85905
85906         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85907         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85908
85909 2002-05-28  Jim Meyering  <meyering@lucent.com>
85910
85911         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85912         Reported by Volker Borchert.
85913
85914 2002-05-27  Jim Meyering  <meyering@lucent.com>
85915
85916         Fix a problem seen only on nonconforming systems whereby ls.c's
85917         use of localtime, and then of gettimeofday would cause trouble:
85918         the localtime call used to initialize rpl_gettimeofday's save
85919         mechanism would clobber ls's current local time information so
85920         that in any long listing the first file would always be listed
85921         with date 1970-01-01.  Analysis by Volker Borchert.
85922
85923         * lib/gettimeofday.c (localtime): Undefine.
85924         (rpl_localtime): New function.
85925
85926 2002-05-27  Jim Meyering  <meyering@lucent.com>
85927
85928         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85929         localtime.
85930
85931         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85932         use the replacement function; it wouldn't resolve at link time.
85933         Reported by Volker Borchert.
85934
85935 2002-05-22  Jim Meyering  <meyering@lucent.com>
85936
85937         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85938         file-type.h.
85939         * lib/file-type.h: New file.
85940         * lib/file-type.c (file_type): New file/function.  Extracted from
85941         diffutils.
85942
85943 2002-04-30  Jim Meyering  <meyering@lucent.com>
85944
85945         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85946
85947 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85948
85949         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85950
85951 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85952
85953         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85954         Do not check for alloca.h (no longer used) or stdbool.h (was never
85955         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85956
85957 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85958
85959         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85960
85961 2002-04-29  Jim Meyering  <meyering@lucent.com>
85962
85963         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85964         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85965         Use AC_FUNC_STRNLEN here instead.
85966
85967         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85968         With autoconf-2.53a, it's part of AC_PROG_CC.
85969
85970 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85971
85972         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85973         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85974
85975 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85976
85977         * lib/sig2str.h, lib/sig2str.c: New files.
85978         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85979
85980 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85981
85982         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85983         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85984         of 127, since 64 is the largest conceivable number for ancient
85985         nonstandard hosts.
85986         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85987
85988 2002-04-28  Jim Meyering  <meyering@lucent.com>
85989
85990         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85991
85992 2002-04-24  Jim Meyering  <meyering@lucent.com>
85993
85994         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85995         (jm_PREREQ): Use it.
85996
85997         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85998         mach/mach.h fcntl.h.
85999         Check for this function: setlocale.
86000
86001 2002-04-24  Jim Meyering  <meyering@lucent.com>
86002
86003         * lib/gettext.h: New file, from Gettext.
86004         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86005         (libfetish_a_SOURCES): Add gettext.h.
86006
86007 2002-04-16  Jim Meyering  <meyering@lucent.com>
86008
86009         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86010         ut_pid, ut_id, ut_exit.
86011
86012 2002-04-16  Jim Meyering  <meyering@lucent.com>
86013
86014         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86015         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86016         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86017
86018 2002-04-12  Jim Meyering  <meyering@lucent.com>
86019
86020         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86021         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86022         existence of the getmntinfo function.  Needed for Darwin 5.3.
86023
86024         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86025         This is necessary at least on Darwin 5.3.
86026
86027         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86028         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86029         strnlen.o in the library, and that makes some versions of ranlib
86030         object.
86031
86032 2002-04-12  Jim Meyering  <meyering@lucent.com>
86033
86034         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86035
86036 2002-04-09  Jim Meyering  <meyering@lucent.com>
86037
86038         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86039         to be more precise.  Rather than saying we're checking whether the
86040         function `works', say what we're testing.
86041         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86042         Reported by Bruno Haible.
86043
86044 2002-03-10  Jim Meyering  <meyering@lucent.com>
86045
86046         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86047         Suggestion from Santiago Vila.
86048
86049 2002-03-08  Jim Meyering  <meyering@lucent.com>
86050
86051         * lib/rename.c: Mention that this wrapper is needed also on
86052         mips-dec-ultrix4.4 systems.
86053
86054 2002-03-02  Jim Meyering  <meyering@lucent.com>
86055
86056         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86057         not HAVE_CLOCK_SETTIME.
86058
86059 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86060
86061         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86062         Check for clock_settime.
86063
86064 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86065
86066         * lib/nanosleep.h: Rename to....
86067         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86068
86069         * lib/gettime.c: New file.
86070         * lib/settime.c: New file.
86071         * lib/stime.c: Remove.
86072
86073         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86074         timespec.h.  Remove nanosleep.h.
86075
86076 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86077
86078         * m4/acl.m4: New file.
86079         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86080         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86081
86082 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86083
86084         * lib/acl.c, lib/acl.h: New files.
86085         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86086
86087 2002-02-24  Jim Meyering  <meyering@lucent.com>
86088
86089         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86090         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86091         cause trouble.  Reported by Nelson Beebe.
86092
86093 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86094
86095         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86096         compilers that don't know that xalloc_die never returns.
86097
86098 2002-02-20  Jim Meyering  <meyering@lucent.com>
86099
86100         * lib/getdate.c: Regenerate using bison-1.33.
86101
86102 2002-02-17  Jim Meyering  <meyering@lucent.com>
86103
86104         * config/config.guess (main): Don't use `head -1'; it's no longer
86105         portable. Use `sed 1q' instead.
86106
86107 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86108
86109         * m4/codeset.m4: Upgrade to gettext-0.11.
86110         * m4/gettext.m4: Upgrade to gettext-0.11.
86111         * m4/glibc21.m4: Upgrade to gettext-0.11.
86112         * m4/iconv.m4: Upgrade to gettext-0.11.
86113         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86114         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86115         * m4/lib-ld.m4: New file, from gettext-0.11.
86116         * m4/lib-link.m4: New file, from gettext-0.11.
86117         * m4/lib-prefix.m4: New file, from gettext-0.11.
86118         * m4/progtest.m4: Upgrade to gettext-0.11.
86119
86120 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86121
86122         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86123         (jm_PREREQ): Use it.
86124
86125 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86126
86127         * lib/posixver.c, lib/posixver.h: New files.
86128         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86129
86130 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86131             Bruno Haible  <bruno@clisp.org>
86132
86133         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86134         (fwrite_success_callback): New declaration.
86135         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86136         print_unicode_char. Call failure callback instead of error.
86137         (fwrite_success_callback): New function.
86138         (exit_failure_callback): New function.
86139         (fallback_failure_callback): New function.
86140         (print_unicode_char): Call unicode_to_mb.
86141
86142 2002-01-26  Jim Meyering  <meyering@lucent.com>
86143
86144         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86145         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86146
86147 2002-01-26  Jim Meyering  <meyering@lucent.com>
86148
86149         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86150
86151 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86152
86153         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86154
86155 2002-01-22  Jim Meyering  <meyering@lucent.com>
86156
86157         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86158         Otherwise, some versions of automake would omit the rule that makes
86159         Makefile from Makefile.in.
86160
86161 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86162
86163         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86164         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86165         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86166         (memcoll): Set errno to zero if there is no error.
86167
86168         * lib/quotearg.c (quotearg_buffer_restyled):
86169         Fix bug with quoting buffers containing NUL when backslashing escapes.
86170         This bug was exposed by the other changes in this patch.
86171         (quotearg_n_options): New arg ARGSIZE.
86172         All callers changed.
86173         (quoting_options_from_style): New function.
86174         (quotearg_n_style): Use it.
86175         (quotearg_n_style_mem): New function.
86176
86177         * lib/quotearg.h (quotearg_n_style_mem): New function.
86178
86179 2002-01-19  Jim Meyering  <meyering@lucent.com>
86180
86181         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86182         Remove useless quotes: DF_PROG="df".
86183         * m4/strnlen.m4: New file.
86184
86185 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86186
86187         * lib/backupfile.c (ISDIGIT): Comment fix.
86188         * lib/getdate.y (ISDIGIT): Likewise.
86189         * lib/posixtm.c (ISDIGIT, year): Likewise.
86190         * lib/strverscmp.c (ISDIGIT): Likewise.
86191         * lib/userspec.c (ISDIGIT): Likewise.
86192
86193 2002-01-16  Jim Meyering  <meyering@lucent.com>
86194
86195         * lib/getdate.y: Add three semicolons, each just before a closing
86196         brace. Bison (as of version 1.31) no longer papers over that mistake.
86197
86198 2002-01-05  Jim Meyering  <meyering@lucent.com>
86199
86200         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86201
86202 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86203
86204         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86205         not silently exit merely because the output buffer happens to
86206         have nothing pending.
86207
86208 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86209
86210         See the big note in ../ChangeLog.
86211         * lib/human.c (suffixes): Prefer K to k for 1024.
86212         (generate_suffix_backwards): New function.
86213         (human_readable_inexact): Use it.
86214         * lib/xstrtol.c (__xstrtol): If there is no number but there
86215         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86216         Accept 'K' as well as 'k'.
86217
86218 2001-12-15  Jim Meyering  <meyering@lucent.com>
86219
86220         * lib/regex.h (__restrict_arr): Update from libc.
86221
86222         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86223         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86224         (STREQ): Define.
86225
86226 2001-12-14  Jim Meyering  <meyering@lucent.com>
86227
86228         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86229         Suggestion from Bruno Haible.
86230
86231 2001-12-10  Jim Meyering  <meyering@lucent.com>
86232
86233         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86234         xrealloc, Instead, include "xalloc.h".
86235         (initbuffer): Don't cast xmalloc return value to char*.
86236         (readline): Reword comment.
86237         Don't cast xrealloc return value to char*
86238         Return NULL, not 0.
86239
86240 2001-12-09  Jim Meyering  <meyering@lucent.com>
86241
86242         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86243         about `signed and unsigned type in conditional expression'.
86244         * lib/posixtm.c (posix_time_parse): Likewise.
86245
86246         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86247
86248         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86249         to avoid a pedantic warning.
86250
86251         * lib/getstr.c: Don't include assert.h.
86252         (getstr): Remove warning-evoking assertions.
86253         Return -1 if offset parameter is out of bounds.
86254         Change the type of a local from int to size_t.
86255
86256         * lib/strftime.c (my_strftime_localtime_r): Include this function
86257         definition in the `#if ! HAVE_TM_GMTOFF' block.
86258
86259         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86260         Include xalloc.h instead.
86261
86262 2001-12-02  Jim Meyering  <meyering@lucent.com>
86263
86264         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86265         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86266         included.
86267
86268         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86269         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86270
86271 2001-11-30  Akim Demaille  <akim@epita.fr>
86272
86273         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86274         before being defined.
86275
86276 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86277
86278         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86279         First arg is int, not unsigned.
86280         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86281         (SIZE_MAX, UINT_MAX): New macros.
86282         (quotearg_n_options): Abort if N is negative.
86283         Avoid overflow check on hosts where size_t is 64 bits and int
86284         is 32 bits, as overflow is impossible there.
86285         Fix off-by-one typo that caused unnecessary reallocation.
86286
86287 2001-11-27  Jim Meyering  <meyering@lucent.com>
86288
86289         * lib/tempname.c: Merge with version from libc.
86290         * lib/regex.c: Likewise.
86291
86292         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86293         systems for which STDC_HEADERS is 0, it was not included, resulting in
86294         a warning about an integer-to-pointer conversion problem with getenv.
86295         Reported by Volker Borchert.
86296
86297 2001-11-26  Jim Meyering  <meyering@lucent.com>
86298
86299         * lib/gtod.h: Remove file.
86300         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86301         * lib/gettimeofday.c: Don't include gtod.h.
86302         (GTOD_init): Remove function.
86303         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86304         Suggestion from Volker Borchert.
86305
86306 2001-11-23  Jim Meyering  <meyering@lucent.com>
86307
86308         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86309         it.
86310         * lib/hash.c (struct hash_table): Define it here instead.
86311
86312 2001-11-22  Jim Meyering  <meyering@lucent.com>
86313
86314         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86315
86316 2001-11-20  Jim Meyering  <meyering@lucent.com>
86317
86318         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86319         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86320
86321 2001-11-19  Jim Meyering  <meyering@lucent.com>
86322
86323         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86324         directory.  Use "conftestXXXXXX" as the template.
86325         Suggestion from Paul Eggert.
86326
86327         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86328         immediately, so the test doesn't mistakenly hit the max-open-files
86329         limit.
86330
86331 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86332
86333         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86334         (TEMPORARIES): New macro.
86335         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86336         removes an artificial limitation (e.g. HP-UX 10.20, where
86337         TMP_MAX is 17576).
86338
86339 2001-11-18  Jim Meyering  <meyering@lucent.com>
86340
86341         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86342
86343 2001-11-18  Jim Meyering  <meyering@lucent.com>
86344
86345         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86346         on SunOS 4.
86347
86348         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86349         files will be created before anything else.
86350
86351 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86352
86353         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86354         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86355
86356 2001-11-17  Jim Meyering  <meyering@lucent.com>
86357
86358         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86359         Prompted by a report from Bob Proulx.
86360
86361         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86362         Instead, require UTILS_FUNC_MKSTEMP.
86363
86364 2001-11-17  Jim Meyering  <meyering@lucent.com>
86365
86366         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86367         Now, that's done as part of AC_FUNC_STRTOD.
86368
86369 2001-11-17  Jim Meyering  <meyering@lucent.com>
86370
86371         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86372         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86373         rather than group writable.  Patch by Juan F. Codagnone.
86374
86375         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86376         xrealloc, Instead, include "xalloc.h".
86377
86378         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86379         Remove explicit declarations of xmalloc, xrealloc,
86380         and xstrdup.  Instead, include "xalloc.h".
86381
86382         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86383         unlocked-io.h.
86384         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86385         Likewise.
86386         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86387
86388         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86389         Reported by Padraig Brady.
86390
86391         * lib/mkstemp.c: #undef mkstemp.
86392         Include config.h.
86393         (rpl_mkstemp): Rename from mkstemp.
86394         Protoize.
86395
86396 2001-11-16  Jim Meyering  <meyering@lucent.com>
86397
86398         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86399         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86400         determine the amount of total physical memory, use pstat_getstatic.
86401         HPUX-11 doesn't define _SC_PHYS_PAGES.
86402         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86403         If sysconf couldn't be used to determine the amount of available
86404         physical memory, use both pstat_getstatic and pstat_getdynamic.
86405         Based on a patch from Bob Proulx.
86406
86407 2001-11-10  Jim Meyering  <meyering@lucent.com>
86408
86409         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86410         (jm_PREREQ): Use it.
86411
86412 2001-11-09  Jim Meyering  <meyering@lucent.com>
86413
86414         * m4/jm-macros.m4: Require autoconf-2.52f.
86415         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86416         Use these AC_-prefixed names, not the AM_-prefixed ones.
86417
86418         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86419
86420 2001-11-05  Jim Meyering  <meyering@lucent.com>
86421
86422         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86423
86424 2001-11-04  Jim Meyering  <meyering@lucent.com>
86425
86426         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86427         $DEFS.
86428
86429 2001-11-03  Jim Meyering  <meyering@lucent.com>
86430
86431         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86432         of AC_DEFUN.
86433
86434         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86435         know the name of the variable in the macro definition.
86436
86437 2001-11-03  Jim Meyering  <meyering@lucent.com>
86438
86439         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86440         in argmatch_to_argument call.
86441
86442         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86443         argument.
86444
86445         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86446         e.g., a fault due to an attempt to free a NULL pointer.
86447
86448 2001-11-01  Jim Meyering  <meyering@lucent.com>
86449
86450         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86451         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86452
86453 2001-11-01  Jim Meyering  <meyering@lucent.com>
86454
86455         * lib/dirfd.c, lib/dirfd.h: New files.
86456         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86457
86458         * lib/hash.c (hash_print) [TESTING]: Clean up.
86459
86460 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86461
86462         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86463         to avoid a warning if -Wall.
86464
86465 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86466
86467         * README: New file
86468         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86469         (per RMS's instructions, this is now the canonical source)
86470         * lgpl/, gpl/: New directories.
86471
86472 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86473
86474         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86475
86476 2001-10-21  Jim Meyering  <meyering@lucent.com>
86477
86478         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86479         this code would end up calling gettext even in packages built
86480         with --disable-nls.
86481         * lib/getopt.c (_): Likewise.
86482         * lib/regex.c (_): Likewise.
86483
86484 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86485
86486         * m4/error.m4 (jm_PREREQ_ERROR):
86487         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86488         AC_FUNC_STRERROR_R does that.
86489         Check for strerror declaration.
86490
86491         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86492         are supposed to have them these days.
86493         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86494         Merge changes from latest Autoconf CVS.
86495         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86496         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86497         POSIX decided to standardize on the int flavor of strerror_r.
86498
86499 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86500
86501         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86502         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86503         Use strerror_r that is only a macro, even if it is not a function.
86504         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86505         (private_strerror): Use prototypes, not old-style function definition.
86506         (print_errno_message): New function.
86507         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86508         char*-flavored one.
86509         (error_tail, error, error_at_line): Use it.
86510
86511 2001-10-11  Jim Meyering  <meyering@lucent.com>
86512
86513         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86514         and quote_n (1, ... to avoid clobbering a buffer.
86515
86516 2001-10-05  Jim Meyering  <meyering@lucent.com>
86517
86518         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86519         hash-pjw.h.
86520         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86521         * lib/hash-pjw.h: New file.
86522
86523 2001-09-30  Jim Meyering  <meyering@lucent.com>
86524
86525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86526         `struct fsstat' has the `f_fstypename' member.
86527         Use that to define FS_TYPE, which is now used to make
86528         the getfsstat link test tighter.
86529
86530 2001-09-30  Jim Meyering  <meyering@lucent.com>
86531
86532         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86533         Include <sys/ucred.h>, for Apple Darwin.
86534         Include sys/mount.h and sys/fs_types.h only if available.
86535         (FS_TYPE): Define.
86536         (read_filesystem_list): Use FS_TYPE.
86537
86538 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86539
86540         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86541         a boolean context.
86542
86543 2001-09-29  Jim Meyering  <meyering@lucent.com>
86544
86545         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86546         [one-argument getmntent function]): Include stdio.h before mntent.h.
86547         SunOS 4.1.x needs it for the declaration of `FILE'.
86548         Patch by Volker Borchert.
86549
86550         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86551         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86552         sys/fs_types.h, and make the link-test for getfsstat guard #include
86553         directives with appropriate #if HAVE_*_H tests so that we can
86554         detect getfsstat on Apple Darwin1.3.7 systems.
86555         Reported by Nelson Beebe.
86556         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86557
86558 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86559
86560         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86561         #defines strtoimax.  Also treat the other strto* functions
86562         like strtoimax.
86563
86564         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86565         Check for strtoul and strtoumax,
86566         as those declarations are made even in the signed case.
86567         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86568         Likewise, for strtol and strtoimax.
86569
86570 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86571
86572         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86573         #defines strtoimax.  Also treat the other strto* functions
86574         like strtoimax.
86575
86576         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86577         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86578         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86579
86580 2001-09-26  Jim Meyering  <meyering@lucent.com>
86581
86582         Most macros in unlocked-io.h had the wrong number of arguments.
86583         * lib/gen-uio: New script.
86584         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86585         * lib/unlocked-io.hin: Remove file.
86586         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86587         rather than trying to embed it here.
86588         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86589         Reported by Padraig Brady.
86590
86591 2001-09-25  Volker Borchert  <bt@teknon.de>
86592
86593         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86594         `result'.
86595
86596 2001-09-24  Jim Meyering  <meyering@lucent.com>
86597
86598         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86599
86600 2001-09-23  Jim Meyering  <meyering@lucent.com>
86601
86602         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86603         instead of the mere test for existence of mntent.h.  The latter
86604         would get a false-positive on AIX 3.4 systems.
86605         In the outer getmntent if-block, don't die if neither of the getmntent
86606         tests succeeds.  Instead, just fall through and continue with the
86607         remaining tests.
86608
86609 2001-09-23  Jim Meyering  <meyering@lucent.com>
86610
86611         * lib/mountlist.c: Remove useless parentheses in #if directives.
86612         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86613         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86614
86615 2001-09-22  Jim Meyering  <meyering@lucent.com>
86616
86617         * m4/gettext.m4: New file.  From gettext.
86618         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86619         * m4/progtest.m4: Likewise
86620         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86621         * m4/glibc21.m4: Likewise.
86622
86623         * m4/libintl.m4: Remove.  No longer used.
86624
86625 2001-09-22  Jim Meyering  <meyering@lucent.com>
86626
86627         * lib/localcharset.c: Update from latest gettext.
86628         * lib/config.charset: Likewise.
86629
86630 2001-09-20  Jim Meyering  <meyering@lucent.com>
86631
86632         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86633         strtoimax.
86634         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86635         strtoumax.
86636
86637 2001-09-20  Jim Meyering  <meyering@lucent.com>
86638
86639         * lib/xstrtol.c (strtoimax): Guard declaration with
86640         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86641         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86642         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86643         (strtoumax): Likewise, for completeness (it wasn't necessary).
86644
86645 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86646
86647         * lib/strtoimax.c (HAVE_LONG_LONG):
86648         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86649         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86650         to work around bug in IBM C compiler.
86651
86652 2001-09-17  Jim Meyering  <meyering@lucent.com>
86653
86654         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86655         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86656         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86657         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86658         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86659         whenever the right hand side need not be expanded by the shell.
86660
86661 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86662
86663         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86664         library.  It's not correct, as some older glibcs are buggy.
86665         fnmatch wasn't fixed until glibc 2.2.
86666
86667         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86668         special shell magic here.
86669
86670 2001-09-16  Jim Meyering  <meyering@lucent.com>
86671
86672         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86673         * m4/jm-macros.m4: Require it.
86674
86675 2001-09-16  Jim Meyering  <meyering@lucent.com>
86676
86677         * lib/mkdir.c: New file.
86678
86679 2001-09-15  Jim Meyering  <meyering@lucent.com>
86680
86681         * m4/jm-macros.m4: Check for help2man.
86682
86683 2001-09-11  Jim Meyering  <meyering@lucent.com>
86684
86685         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86686         The body, by Paul Eggert, was moved here from configure.in.
86687         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86688
86689 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86690
86691         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86692         (jm_PREREQ): Use it.
86693
86694 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86695
86696         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86697         Use ssize_t, not int, to store result of readlink.
86698         Check for ssize_t overflow as well as size_t overflow,
86699         as POSIX says the result of readlink is implementation-defined
86700         when ssize_t overflows.
86701         Remove unnecessary cast to char*.
86702         Use free+malloc instead of realloc, as the storage doesn't need
86703         to be preserved and it's clearer and can be more efficient that way.
86704         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86705         * lib/xreadlink.h (xreadlink): Update prototype.
86706
86707 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86708
86709         * lib/xgetcwd.c: Revert some of the previous change; intead,
86710         fix the HAVE_GETCWD_NULL code to behave more like the
86711         !HAVE_GETCWD_NULL code used to.
86712
86713         Include "xalloc.h".
86714         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86715         invoke xalloc_die.
86716
86717 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86718
86719         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86720         sys/param.h, as pathmax.h includes them.
86721
86722 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86723
86724         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86725         (jm_PREREQ_XGETCWD): New macro.
86726
86727         * m4/getcwd.m4: New file.
86728
86729 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86730
86731         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86732         like the HAVE_GETCWD_NULL code.
86733         Include pathmax.h if not HAVE_GETCWD.
86734         Do not include xalloc.h.
86735         (INITIAL_BUFFER_SIZE): New symbol.
86736         Do not use xmalloc / xrealloc, since the caller is responsible for
86737         handling errors.  Preserve errno around `free' during failure.
86738         Do not overrun buffer when using getwd.
86739
86740 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86741
86742         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86743         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86744         getcwd (NULL, 0).
86745
86746 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86747
86748         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86749         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86750         spotted by Jim Meyering.
86751
86752 2001-09-03  Jim Meyering  <meyering@lucent.com>
86753
86754         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86755         failure.
86756
86757 2001-09-02  Jim Meyering  <meyering@lucent.com>
86758
86759         * lib/error.c: Update from GNU libc.
86760
86761 2001-09-01  Jim Meyering  <meyering@lucent.com>
86762
86763         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86764         Used by df.
86765
86766 2001-09-01  Jim Meyering  <meyering@lucent.com>
86767
86768         * lib/xreadlink.c: New file.
86769         * lib/xreadlink.h: New file.
86770         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86771         xreadlink.h.
86772
86773         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86774         doesn't conflict with sparc Solaris 7's definition in
86775         /usr/include/sys/int_types.h.
86776
86777         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86778         files.
86779         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86780         and strncasecmp as r-values.  Unixware didn't have declarations.
86781
86782 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86783
86784         * lib/xstrtol.h: Add copyright notice.
86785         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86786         LONGINT_INVALID_SUFFIX_CHAR.
86787
86788 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86789
86790         * lib/xstrtol.c (strtoimax): New decl.
86791
86792 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86793
86794         * lib/xgetcwd.c: Don't include pathmax.h.
86795         Include stdlib.h and unistd.h if available.
86796         Include xalloc.h.
86797         (xmalloc, xstrdup, free): Remove decls.
86798         (xgetcwd): Don't assume sizes fit in unsigned.
86799         Check for overflow when computing sizes.
86800         Simplify reallocation code.
86801
86802 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86803
86804         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86805         a directory's st_size can have an arbitrary value, so the old
86806         usage could waste an arbitrary amount of memory.  All uses
86807         changed.
86808         * lib/savedir.h: Update prototype.
86809
86810 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86811
86812         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86813
86814         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86815         old strtoimax.c.
86816
86817         Also, make the following further changes to make this file's
86818         configuration more similar to that of strtol.c:
86819         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86820         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86821         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86822         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86823         changed to signed values.
86824
86825         And make the following changes as well:
86826         Fix copyright notice, as 1999 was missing.
86827         (verify): New macro.
86828         (strtoimax): Check sizes at compile-time, not run-time.
86829         Prefer strtol to strtoll if both work.
86830         (main): Remove; it was not that useful and was a pain to maintain.
86831
86832         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86833
86834 2001-08-31  Jim Meyering  <meyering@lucent.com>
86835
86836         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86837         Use an initial, malloc'd, buffer of length 128 rather than
86838         a statically allocated one of length 1024.
86839
86840 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86841
86842         Simplify code, partly by assuming autoconf 2.52 semantics.
86843
86844         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86845
86846         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86847         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86848         All uses removed.
86849         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86850         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86851         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86852         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86853         jm_AC_HEADER_INTTYPES_H.
86854         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86855
86856         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86857
86858         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86859         Quote first arg of AC_DEFUN.
86860         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86861         since they are needed to parse the include file even if we need
86862         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86863         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86864         but with opposite signedness.
86865
86866 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86867
86868         Merge 'exclude' changes from tar 1.13.22.
86869         This fixes one or two unlikely storage allocation overflow bugs,
86870         but doesn't change user-visible behavior otherwise.
86871
86872 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86873
86874         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86875         (jm_PREREQ_EXCLUDE): New macro.
86876
86877 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86878
86879         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86880         tm to be declared.
86881
86882 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86883
86884         * lib/hash.c: Remove '2001' from copyright notice.
86885
86886 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86887
86888         * lib/full-write.h: New file.
86889         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86890         * lib/full-write.c: Correct credits, as cccp.c no longer
86891         exists and anyway it was so heavily changed from the old cccp
86892         code as to be unrecognizable.  Include full-write.h.
86893         (full_write): Return size_t, with short writes meaning failure.
86894         All callers changed.  This fixes a bug with large buffers
86895         on 64-bit hosts.
86896         * lib/utime.c: Include full-write.h.
86897
86898 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86899
86900         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86901         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86902         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86903         Include if available.
86904         (<xalloc.h>): Include
86905         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86906         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86907         collide with FNM macros.
86908         (struct patopts): New struct.
86909         (struct exclude): Use it, as exclude patterns now come with options.
86910         (new_exclude): Support above changes.
86911         (new_exclude, add_exclude_file):
86912         Initial size must now be a power of two to simplify overflow checking.
86913         (free_exclude, fnmatch_no_wildcards): New function.
86914         (excluded_filename): No longer requires options arg, as the options
86915         are determined by add_exclude.  Now returns bool, not int.
86916         (excluded_filename, add_exclude):
86917         Add support for the fancy new exclusion options.
86918         (add_exclude, add_exclude_file): Now takes int options arg.
86919         Check for arithmetic overflow when computing sizes.
86920         (add_exclude_file): xrealloc might modify errno, so don't
86921         realloc until after errno might be used.
86922
86923         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86924         New macros.
86925         (free_exclude): New decl.
86926         (add_exclude, add_exclude_file): Now takes int options arg.
86927         (excluded_filename): No longer requires options arg, as the options
86928         are determined by add_exclude.  Now returns bool, not int.
86929
86930 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86931
86932         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86933
86934 2001-08-27  Jim Meyering  <meyering@lucent.com>
86935
86936         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86937
86938         * lib/version-etc.c (N_): Remove definition.
86939         Revert most of last change.
86940         Instead, simply don't mark the `Copyright...' string for translation.
86941         Based on advice from Paul Eggert.
86942
86943         * lib/strtoxmax.c: Tweak comment.
86944
86945 2001-08-26  Jim Meyering  <meyering@lucent.com>
86946
86947         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86948
86949         * m4/xstrtoimax.m4: New file.
86950         * m4/xstrtoumax.m4: Add comments explaining why we
86951         AC_REPLACE_FUNCS(strtol).
86952
86953 2001-08-26  Jim Meyering  <meyering@lucent.com>
86954
86955         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86956         of copyright with `%s' so translators don't get an untranslated
86957         message in 2002.
86958         (COPYRIGHT_YEAR): Define.
86959         (version_etc): Use fprintf rather than fputs.
86960         Suggestion from Ulrich Drepper.
86961
86962         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86963
86964         * lib/strtoll.c: New file, from GNU libc.
86965         * lib/xstrtoimax.c: New file.
86966
86967         * lib/xstrtol.h: Add xstrtoimax.
86968         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86969         * lib/strtoimax.c: New file.  Likewise, but first define
86970         STRTOUXMAX_SIGNED.
86971
86972         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86973         ...
86974         * lib/strtoxmax.c: ... then renamed to this.
86975
86976 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86977
86978         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86979         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86980         (jm_AC_TYPE_INTMAX_T): New macro.
86981         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86982
86983         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86984
86985         * m4/longlong.m4: Renamed from ulonglong.m4.
86986         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86987         * m4/uintmax_t.m4: Removed.
86988
86989 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86990
86991         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86992         Port to Solaris 8, where 'sed' requires a space after the 'r'
86993         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86994         Redirect output to $tmp just once.
86995
86996 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86997
86998         * lib/addext.c (<errno.h>): Include.
86999         (errno): Declare if not defined.
87000         (addext): Work correctly when pathconf returns -1 and leaves
87001         errno alone because there is no limit.  Also, work even if
87002         pathconf returns a value greater than SIZE_MAX.
87003
87004 2001-08-12  Jim Meyering  <meyering@lucent.com>
87005
87006         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87007         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87008         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87009         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87010         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87011         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87012         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87013         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87014         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87015         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87016         utime.m4, utimes.m4, xstrtoumax.m4:
87017         Quote the first argument in each use of AC_DEFUN.
87018
87019 2001-08-12  Jim Meyering  <meyering@lucent.com>
87020
87021         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87022         Simply `return getcwd (NULL, 0);'.
87023         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87024         Use 1300 as initial value for length, not PATH_MAX.
87025
87026         * lib/pathmax.h: Clean up cpp syntax.
87027
87028 2001-08-12  Jim Meyering  <meyering@lucent.com>
87029
87030         * lib/gettimeofday.c: New file.
87031         * lib/gtod.h: New file.
87032         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87033
87034 2001-08-05  Jim Meyering  <meyering@lucent.com>
87035
87036         * m4/jm-macros.m4: Require autoconf-2.52.
87037
87038 2001-08-04  Jim Meyering  <meyering@lucent.com>
87039
87040         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87041         stmt, to get in sync with glibc.
87042
87043 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87044
87045         The following changes are from gettext 0.10.39 as maintained by
87046         Bruno Haible.
87047
87048         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87049         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87050         with inverted sense.  All uses changed.
87051
87052         * lib/mbswidth.c: Don't include <limits.h>.
87053         Include <stdlib.h> and <string.h> unconditionally.
87054         (iswcntrl, mbsinit, ISCNTRL): New macros.
87055         (mbsnwidth): Use K&R style function declarations.
87056         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87057         can optimize it when MB_CUR_MAX == 1.
87058         The width of control characters is zero, not 1.
87059
87060 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87061
87062         The following changes are from gettext 0.10.39 as maintained by
87063         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87064
87065         * m4/codeset.m4: Upgrade to serial AM1.
87066         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87067         all uses changed.  Quote first arg of AC_DEFUN.
87068         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87069
87070         * m4/iconv.m4: Upgrade to serial AM2.
87071         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87072         Add --with-libconv-prefix.
87073         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87074         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87075         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87076         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87077         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87078
87079         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87080         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87081         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87082         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87083         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87084         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87085         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87086         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87087         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87088
87089         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87090         string.h any more.
87091
87092         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87093         not the default value.
87094
87095         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87096         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87097         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87098         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87099         Also check for iswcntrl, used for wcwidth fallback.
87100         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87101         to Autoconf 2.13.
87102
87103 2001-08-03  Jim Meyering  <meyering@lucent.com>
87104
87105         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87106         as it was in the original.  Reported by Paul Eggert.
87107
87108 2001-07-16  Jim Meyering  <meyering@lucent.com>
87109
87110         * m4/gettimeofday.m4: New file.
87111         Prompted by a report from Bernhard Baehr.
87112
87113 2001-07-15  Jim Meyering  <meyering@lucent.com>
87114
87115         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87116         stuff. Now it's in ../Makefile.cfg.
87117
87118 2001-07-15  Jim Meyering  <meyering@lucent.com>
87119
87120         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87121         (BUILT_SOURCES): Add unlocked-io.h.
87122         (io_functions): Define.
87123         (unlocked-io.h): New rule.
87124         (DISTCLEANFILES): Add unlocked-io.h.
87125         (all-local): Depend on unlocked-io.h, to ensure it is created.
87126
87127         * lib/unlocked-io.hin: New file
87128
87129         * lib/regex.c: Update from glibc.
87130
87131 2001-07-05  Jim Meyering  <meyering@lucent.com>
87132
87133         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87134         recommendation.
87135         (libfetish_a_SOURCES): Put all .h files here instead.
87136         Remove a thus-exposed (better checks in automake) duplicate and
87137         two unnecessary .h files.
87138
87139 2001-07-04  Jim Meyering  <meyering@lucent.com>
87140
87141         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87142         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87143         distcheck failure.
87144
87145 2001-07-02  Jim Meyering  <meyering@lucent.com>
87146
87147         The following changes were prompted by suggestions from Bruno Haible.
87148
87149         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87150         is now generated.
87151         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87152         definition of EXTRA_DIST.
87153         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87154         ensure that the generated file is created/updated whenever the list
87155         of $(unlocked_functions) is changed.
87156         (jm-glibc-io.m4): New rule.
87157         (unlocked-io.h): New rule -- currently unused.
87158
87159 2001-06-24  Jim Meyering  <meyering@lucent.com>
87160
87161         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87162         unmatched right bracket, rather than kludging it with an extra,
87163         falsely-matching quote in a comment.  Patch by Akim Demaille.
87164
87165 2001-06-11  Jim Meyering  <meyering@lucent.com>
87166
87167         * lib/regex.c: Update from GNU libc.
87168
87169 2001-05-27  Jim Meyering  <meyering@lucent.com>
87170
87171         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87172         Check for ut_type in struct utmp.
87173
87174 2001-05-27  Jim Meyering  <meyering@lucent.com>
87175
87176         * lib/readutmp.h (UT_TYPE): Define.
87177
87178 2001-05-24  Jim Meyering  <meyering@lucent.com>
87179
87180         * lib/argmatch.c: Include "quote.h".
87181         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87182         quote function.  Reported by Göran Uddeborg.
87183
87184 2001-05-22  Jim Meyering  <meyering@lucent.com>
87185
87186         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87187         now that we use the package-supplied version unconditionally.
87188         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87189
87190 2001-05-21  Jim Meyering  <meyering@lucent.com>
87191
87192         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87193         shell syntax errors.
87194
87195 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87196
87197         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87198
87199 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87200
87201         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87202         Don't bother to check library strftime, since
87203         we'll be using our own my_strftime function anyway.
87204         Define my_strftime instead of strftime.
87205
87206 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87207
87208         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87209         which is not yet declared.
87210
87211 2001-05-15  Jim Meyering  <meyering@lucent.com>
87212
87213         * m4/regex.m4: Use proper quoting so brackets appear in the test
87214         program.
87215         Reported by, and with help from, Bruno Haible.
87216
87217 2001-05-13  Jim Meyering  <meyering@lucent.com>
87218
87219         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87220         undefined.
87221
87222 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87223
87224         dirname code cleanup.  base_name now behaves more compatibly
87225         with POSIX basename when given file names that have trailing
87226         slashes, and similarly for dir_name.  Add new primitives
87227         base_len and dir_len.  Put the directory-name-related decls
87228         into dirname.h.
87229
87230         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87231         * lib/backupfile.c (base_name): Likewise.
87232         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87233         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87234         * lib/makepath.c (strip_trailing_slashes): Likewise.
87235         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87236         ISSLASH): Likewise.
87237         * lib/rename.c (strip_trailing_slashes): Likewise.
87238         * lib/same.c (base_name): Likewise.
87239         * lib/stripslash.c (ISSLASH): Likewise.
87240
87241         * lib/addext.c: Include <dirname.h> after size_t is defined.
87242         * lib/backupfile.c: Likewise.
87243
87244         * lib/addext.c (addext): Use base_len to trim redundant
87245         trailing slashes instead of doing it ourselves.
87246         But do not trim the last slash if it is not redundant.
87247
87248         * lib/backupfile.c (find_backup_file_name,
87249         max_backup_version): Use base_len instead of rolling it ourselves.
87250         Handle the case of "" and (on DOS) "C:" correctly.
87251
87252         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87253         needed. Include <string.h>, <dirname.h>.
87254         (base_name): Allow file names ending in slashes, other than names
87255         that are all slashes.  In this case, return the basename followed
87256         by the slashes.  This is more general, and can be used in places
87257         where the original base_name purposely had an assertion failure.
87258         (base_len): New function.
87259
87260         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87261         Do not include <assert.h>; no longer needed.
87262         Include xalloc.h.
87263         (memrchr): Remove decl.
87264         (dir_name_r): Remove.
87265         (dir_len): Renamed from dirlen.  All callers changed.
87266         Rewrite in terms of base_name, for simplicity and consistency.
87267         (dir_name): Never return NULL.  All callers changed.
87268         Do not include <stdlib.h> in test program; no longer needed.
87269         return 0; is fine for test program.
87270
87271         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87272         New macros.
87273         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87274
87275         * lib/path-concat.c (path_concat): Use base_len to compute
87276         base length, not strlen; this means we cannot rely on memcpy
87277         to null-terminate.
87278
87279         * lib/same.c (STREQ): Remove.
87280         (same_name): Handle the case where the basename ends in trailing '/'.
87281
87282         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87283         a slash was stripped.  Do not strip the last slash after a
87284         file system prefix.
87285
87286 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87287
87288         * lib/Makefile.am (libfetish_a_SOURCES):
87289         Add strftime.c, since we now compile it on all hosts.
87290
87291         * lib/strftime.c (my_strftime):
87292         Define to nstrftime if emacs, but only if my_strftime is not defined.
87293         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87294         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87295         Add one more extra argument: a nanoseconds value.
87296         All uses changed.
87297         (ns): New macro.
87298         (my_strftime function): Add %N format.
87299         (emacs_strftimeu): Renamed from emacs_strftime,
87300         with extra ut argument.
87301
87302 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87303
87304         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87305
87306 2001-04-21  Jim Meyering  <meyering@lucent.com>
87307
87308         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87309         doesn't interfere.
87310
87311 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87312
87313         * m4/ftruncate.m4: Check for chsize.
87314         Link with ftruncate.o unconditionally if ftruncate is missing.
87315         This was required when cross-compiling to i586-mingw32msvc.
87316
87317 2001-04-08  Jim Meyering  <meyering@lucent.com>
87318
87319         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87320         recomputed; that's necessary when the offset spans a DST transition.
87321         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87322
87323 2001-04-02  Jim Meyering  <meyering@lucent.com>
87324
87325         * lib/regex.h, regex.c: Update from GNU libc.
87326
87327 2001-03-24  Jim Meyering  <meyering@lucent.com>
87328
87329         * m4/jm-macros.m4: Require autoconf-2.49d.
87330
87331 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87332
87333         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87334
87335 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87336
87337         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87338
87339 2001-03-17  Jim Meyering  <meyering@lucent.com>
87340
87341         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87342         now that the version in autoconf is equivalent.
87343         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87344
87345         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87346         Suggestion from Akim Demaille.
87347
87348         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87349         (jm_PREREQ_TEMPNAME): New function.
87350
87351 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87352
87353         * lib/tempname.c (uint64_t): Define to uintmax_t if
87354         not defined, and if UINT64_MAX is not defined.
87355         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87356         Reported by John David Anglin.
87357
87358 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87359
87360         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87361         resolve alias if codeset is empty.
87362         * lib/config.charset (BeOS): Use wildcard syntax.
87363
87364 2001-03-13  Jim Meyering  <meyering@lucent.com>
87365
87366         * lib/path-concat.c (path_concat)
87367         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87368         concatenating e.g., `C:' and `foo'.
87369         From Bruno Haible.
87370
87371 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87372
87373         * lib/localcharset.c (locale_charset): Don't use
87374         setlocale(LC_CTYPE,NULL). Don't return NULL.
87375         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87376
87377 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87378
87379         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87380         support for DOS/DJGPP.
87381
87382 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87383
87384         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87385         lacks mkstemp.  Compile our own tempname.c if we compile our own
87386         mkstemp.c, as mkstemp relies on tempname.
87387
87388 2001-03-01  Jim Meyering  <meyering@lucent.com>
87389
87390         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87391         AH_VERBATIM really does output its argument verbatim.
87392
87393 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87394
87395         * lib/Makefile.am (libfetish_a_SOURCES):
87396         Add dup-safer.c, fopen-safer.c.
87397         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87398
87399         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87400         * lib/unistd-safer.h: New files.
87401
87402 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87403
87404         The mkstemp replacement is taken from glibc 2.2.2, with some
87405         portability fixes for use outside glibc, as follows:
87406
87407         * lib/tempname.c (struct_stat64): New macro.
87408         (direxists, __gen_tempname): Use it.
87409         This avoids a portability problem with Solaris 8.
87410
87411         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87412         (<stddef.h>, <stdint.h>, <string.h>):
87413         Include only if STDC_HEADERS || _LIBC.
87414         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87415         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87416         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87417         (__set_errno): Define this macro if <errno.h> doesn't.
87418         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87419         Define these macros if <stdio.h> doesn't.
87420         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87421         Define these macros if <sys/stat.h>
87422         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87423         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87424         __xstat64): Define if not _LIBC.
87425         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87426         (__gen_tempname): Invoke gettimeofday only if
87427         HAVE_GETTIMEOFDAY || _LIBC;
87428         otherwise, fall back on plain "time".
87429         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87430
87431         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87432
87433         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87434
87435 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87436
87437         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87438
87439 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87440
87441         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87442         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87443         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87444         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87445
87446 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87447
87448         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87449         Remove workaround macros for hosts that have mbrtowc but not
87450         mbstate_t, as we now insist on proper declarations for both
87451         before using mbrtowc.
87452
87453 2001-02-17  Jim Meyering  <meyering@lucent.com>
87454
87455         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87456         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87457         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87458         UnixWare 7.1.1.
87459
87460         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87461         rather than AC_CACHE_VAL.
87462
87463 2001-02-17  Jim Meyering  <meyering@lucent.com>
87464
87465         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87466         around included file name.
87467
87468         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87469
87470         * lib/strftime.c: Update from GNU libc (the only changes were to
87471         comments).
87472
87473 2001-02-17  Jim Meyering  <meyering@lucent.com>
87474
87475         * lib/regex.c: Update from libc.
87476
87477 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87478
87479         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87480         clash.
87481
87482 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87483
87484         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87485         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87486         Reported by Mark Hounschell via Paul Eggert.
87487
87488 2001-02-07  Jim Meyering  <meyering@lucent.com>
87489
87490         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87491
87492 2001-02-05  Jim Meyering  <meyering@lucent.com>
87493
87494         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87495         it includes the patch required for `large file' support with at least
87496         HP-UX's 10.20 /bin/cc.
87497
87498 2001-02-03  Jim Meyering  <meyering@lucent.com>
87499
87500         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87501         AS_IF, now that it works once again (mysteriously).
87502         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87503
87504 2001-01-30  Jim Meyering  <meyering@lucent.com>
87505
87506         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87507         * m4/chown.m4: Rename conftestchown to conftest.chown.
87508         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87509         s/conftestdir2/conftest.d2/.
87510         * m4/utimes.m4: s/conftestdata/conftest.data/
87511         Inspired by Pavel Roskin's change in autoconf.
87512
87513 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87514
87515         * lib/config.charset: Update for FreeBSD 4.2.
87516
87517 2001-01-27  Jim Meyering  <meyering@lucent.com>
87518
87519         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87520         a use of AS_IF.
87521         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87522
87523 2001-01-26  Jim Meyering  <meyering@lucent.com>
87524
87525         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87526         quotearg.c includes it.
87527
87528 2001-01-26  Jim Meyering  <meyering@lucent.com>
87529
87530         * lib/quotearg.c: Include stddef.h.
87531         * lib/quote.c: Include stddef.h.
87532         Reported by Axel Kittenberger.
87533
87534         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87535         line in double quotes so that it evokes a better diagnostic.
87536         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87537         Reported by Axel Kittenberger.
87538
87539 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87540
87541         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87542         as if it was a `charset'.
87543
87544 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87545
87546         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87547         has const.
87548
87549 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87550
87551         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87552         to avoid a warning.  Add back 'const' to inptr.
87553
87554 2001-01-20  Jim Meyering  <meyering@lucent.com>
87555
87556         Be sure that headers are checked before used in code compiled
87557         for the type checks.
87558         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87559         In place of that, invoke jm_CHECK_ALL_TYPES.
87560         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87561         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87562         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87563         The check for ssize_t was mistakenly run before the test for unistd.h.
87564
87565         The configure-time check for stdbool.h was missing.
87566         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87567         (jm_PREREQ_HASH): New function.
87568
87569 2001-01-17  Jim Meyering  <meyering@lucent.com>
87570
87571         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87572         for autoconf-2.49c.
87573         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87574
87575 2001-01-16  Jim Meyering  <meyering@lucent.com>
87576
87577         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87578         From Bruno Haible.
87579
87580 2001-01-14  Jim Meyering  <meyering@lucent.com>
87581
87582         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87583         foo and bar.  Create conftestdir/ in the script, not in the C code.
87584         Remove directories in the script, not in the C code.
87585         Remove conftestdir{,2} before trying to create the directory.
87586         Make the entire configure script fail if the mkdir fails.
87587
87588 2001-01-14  Jim Meyering  <meyering@lucent.com>
87589
87590         * lib/rename.c: New file.  From Volker Borchert.
87591         Include stdlib.h, string.h or strings.h, and xalloc.h.
87592         Use strip_trailing_slashes rather than open-coding it.
87593
87594 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87595
87596         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87597
87598 2001-01-03  Jim Meyering  <meyering@lucent.com>
87599
87600         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87601         of local `inptr' to avoid warning with some system declarations of
87602         iconv.
87603
87604 2001-01-02  Volker Borchert  <bt@teknon.de>
87605
87606         * m4/rename.m4: New file.
87607         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87608
87609 2001-01-01  Jim Meyering  <meyering@lucent.com>
87610
87611         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87612         even on systems with utmpx.h.  It's necessary for the declaration of
87613         utmp's ut_user member.  Reported by Andreas Jaeger.
87614
87615         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87616         available. They are required for the declarations of getgrgid and
87617         getpwuid resp.
87618         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87619         Reported by Andreas Jaeger.
87620
87621 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87622
87623         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87624         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87625         so `make install' also works in VPATH builds.
87626
87627 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87628
87629         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87630         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87631         can be used in subdirectories.
87632
87633 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87634
87635         * lib/modechange.c: Do not assume that mode_t uses the
87636         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87637         the other-execute bit of FOO even if S_IXOTH != 1.
87638
87639         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87640         WOTH, XOTH, ALLM): New macros.
87641         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87642          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87643         Use them.
87644         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87645         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87646         (mode_compile):
87647         No need to use uintmax_t; unsigned long is long enough.
87648         Don't bother to get suffix since we don't use it.
87649
87650 2000-12-26  Jim Meyering  <meyering@lucent.com>
87651
87652         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87653         better with autoheader.
87654
87655 2000-12-24  Jim Meyering  <meyering@lucent.com>
87656
87657         * lib/hash.c (is_prime): Return explicit boolean values.
87658         (hash_get_first): Return NULL to appease Irix5.6's 89.
87659         Reported by Nelson Beebe.
87660
87661 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87662
87663         * lib/localcharset.c (locale_charset): Add support for Win32.
87664
87665 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87666
87667         * lib/physmem.h, lib/physmem.c: New files.
87668
87669         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87670         (noinst_HEADERS): Add physmem.h.
87671
87672         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87673         't' for compatibility with Solaris 8 sort.
87674
87675 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87676
87677         * lib/config.charset: Add support for BeOS.
87678
87679 2000-12-17  Jim Meyering  <meyering@lucent.com>
87680
87681         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87682         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87683
87684 2000-12-16  Jim Meyering  <meyering@lucent.com>
87685
87686         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87687         N and M) would have treated it like `chown N:N FILE'.
87688
87689         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87690
87691 2000-12-16  Jim Meyering  <meyering@lucent.com>
87692
87693         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87694         SHELLS_FILE to a file name that's useful on djgpp systems.
87695         Include stdlib.h.
87696         (ADDITIONAL_DEFAULT_SHELLS): Define.
87697         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87698         Based mostly on a patch from Prashant TR.
87699
87700 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87701
87702         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87703         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87704         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87705
87706 2000-12-08  Andreas Schwab  <schwab@suse.de>
87707
87708         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87709         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87710
87711 2000-12-07  Jim Meyering  <meyering@lucent.com>
87712
87713         * lib/stripslash.c (ISSLASH): Define.
87714         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87715         `/'.
87716         From Prashant TR.
87717
87718         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87719         (dir_name_r): Declare this function as static.
87720         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87721         manifest itself on a name containing a mix of slashes and
87722         backslashes.
87723         Make this function work with names starting with a DOS-style
87724         drive letter and colon prefix.
87725         (dir_name): Append `.' if necessary.
87726         Based mostly on patches from Prashant TR and Eli Zaretskii.
87727
87728         * lib/dirname.h (dir_name_r): Remove prototype.
87729
87730 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87731
87732         * m4/off_t-format.m4: Remove this file.
87733         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87734
87735 2000-12-06  Jim Meyering  <meyering@lucent.com>
87736
87737         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87738         replacement strtoull, we may well need the replacement strtoul, too.
87739         Check for declarations of strtoul and strtoull.
87740         Check for strtol.  Mainly as a cue to cause automake to include
87741         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87742         Check for limits.h -- strtol.c needs it.
87743
87744 2000-12-05  Jim Meyering  <meyering@lucent.com>
87745
87746         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87747
87748 2000-12-04  Jim Meyering  <meyering@lucent.com>
87749
87750         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87751         Also include memory.h, stdlib.h, unistd.h if appropriate.
87752         Reported by Andreas Jaeger (conflicting declaration of malloc).
87753
87754 2000-12-02  Jim Meyering  <meyering@lucent.com>
87755
87756         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87757         * m4/jm-macros.m4 (jm_MACROS): require it.
87758
87759 2000-12-02  Jim Meyering  <meyering@lucent.com>
87760
87761         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87762
87763 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87764
87765         * lib/memrchr.c: Include <config.h> before any system include file.
87766
87767 2000-11-30  Jim Meyering  <meyering@lucent.com>
87768
87769         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87770
87771 2000-11-30  Jim Meyering  <meyering@lucent.com>
87772
87773         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87774
87775 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87776
87777         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87778
87779 2000-11-26  Jim Meyering  <meyering@lucent.com>
87780
87781         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87782
87783 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87784
87785         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87786         size of (size_t) -1; it's not portable.
87787
87788 2000-11-17  Jim Meyering  <meyering@lucent.com>
87789
87790         * lib/strstr.c: Update from GNU libc.
87791
87792 2000-11-17  Akim Demaille  <akim@epita.fr>
87793
87794         * lib/obstack.h: Formatting changes.
87795         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87796         prevent type checking.
87797         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87798         cast the value to (void *): assigning a `foo *' to a `void *'
87799         variable is valid.
87800         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87801
87802 2000-11-16  Jim Meyering  <meyering@lucent.com>
87803
87804         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87805
87806 2000-11-11  Jim Meyering  <meyering@lucent.com>
87807
87808         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87809
87810 2000-11-10  Jim Meyering  <meyering@lucent.com>
87811
87812         * lib/obstack.h: Update from GNU libc.
87813         * lib/obstack.c: Likewise.
87814
87815 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87816
87817         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87818
87819 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87820
87821         * lib/getusershell.c (setusershell): Use rewind rather than
87822         fseek/fseeko, to avoid configuration hassles with fseeko.
87823         Don't bother opening SHELLS_FILE if shellstream is NULL;
87824         it's not necessary.
87825
87826 2000-11-05  Jim Meyering  <meyering@lucent.com>
87827
87828         * lib/makepath.h (make_dir): Declare.
87829         * lib/makepath.c (make_dir): Remove `static' attribute.
87830         Tweak a comment.
87831
87832 2000-11-04  Jim Meyering  <meyering@lucent.com>
87833
87834         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87835
87836 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87837
87838         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87839         last one in a bucket, advance to the next bucket.
87840
87841 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87842
87843         * lib/fnmatch.c: Do not comment out all the code if we are using
87844         the GNU C library, because in some cases we are replacing buggy
87845         code in the GNU C library itself.
87846
87847 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87848
87849         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87850         (regex_compile): Catch bogus \(\1\).
87851
87852 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87853
87854         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87855         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87856         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87857
87858 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87859
87860         * lib/error.h, getline.h, modechange.h:
87861         Remove "2000" from Copyright line, as the file hasn't been
87862         changed this year other than in the copyright notice.
87863
87864         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87865         was changed this year.
87866
87867 2000-10-29  Jim Meyering  <meyering@lucent.com>
87868
87869         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87870         renaming.
87871         * m4/ls-mntd-fs.m4: Likewise
87872
87873 2000-10-29  Jim Meyering  <meyering@lucent.com>
87874
87875         * lib/xstat.in: Fix grammar in comment.
87876
87877 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87878
87879         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87880         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87881         doesn't define __restrict_arr.
87882
87883 2000-10-28  Jim Meyering  <meyering@lucent.com>
87884
87885         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87886         (jm_PREREQ_MEMCHR): New function.
87887
87888 2000-10-28  Jim Meyering  <meyering@lucent.com>
87889
87890         * lib/memchr.c: Update from libc.
87891         Adjust for portability:
87892         [HAVE_STDLIB_H]: Include stdlib.h.
87893         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87894         Undef __memchr, too.
87895         [!weak_alias]: Define __memchr to memchr.
87896
87897         * lib/regex.c: Update from libc.
87898         * lib/regex.h: Likewise.
87899         * lib/getopt1.c: Likewise.
87900         * lib/memcmp.c: Likewise.
87901
87902         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87903         Avoid using fseek, when possible -- it's broken by design.
87904         Patch by Ulrich Drepper.
87905
87906 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87907
87908         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87909         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87910         Giving in to popular pressure to shut up the compiler with casts.
87911
87912 2000-10-26  Jim Meyering  <meyering@lucent.com>
87913
87914         * lib/strftime.c: Update from libc.
87915
87916 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87917
87918         * regex.c: More `unsigned char' -> `re_char' changes.
87919         Also change several `int' into `re_wchar_t'.
87920         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87921         (PUSH_FAILURE_POINTER): Don't cast any more.
87922         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87923         We want GCC to complain, since this piece of code makes
87924         re_match non-reentrant, which *should* be fixed.
87925         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87926         (EXTEND_BUFFER): Use RETALLOC.
87927         (SET_LIST_BIT): Don't cast.
87928         (re_wchar_t): New type.
87929         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87930         that those two functions will always properly return.
87931         (IMMEDIATE_QUIT_CHECK): Cast to void.
87932         (analyse_first): Use recursion rather than an explicit stack.
87933         (re_compile_fastmap): Can't fail anymore.
87934         (re_search_2): Don't check re_compile_fastmap for failure.
87935         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87936         Now also sets the new value (passed in a new argument).
87937         (re_match_2_internal): Use it.
87938         Also, use a new var `reg' of type size_t when looping through regs
87939         rather than reuse the inappropriate `mcnt'.
87940
87941 2000-10-25  Jim Meyering  <meyering@lucent.com>
87942
87943         * lib/obstack.c: Update from libc.
87944
87945 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87946
87947         * regex.c (regex_compile): Change the way of handling a range from
87948         a char less than 256 to a char not less than 256.
87949
87950 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87951
87952         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87953         NT-Emacs only.
87954         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87955         so that re_search functions only quit when callers expect them to.
87956
87957 2000-10-23  Jim Meyering  <meyering@lucent.com>
87958
87959         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87960         wrong.  That set_locale call must not have any side effects.
87961         From Paul Eggert.
87962
87963 2000-10-22  Jim Meyering  <meyering@lucent.com>
87964
87965         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87966         [CYCLIC]: Remove now-unused definition.
87967
87968         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87969         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87970         Suggestion from Ulrich Drepper.
87971
87972 2000-10-21  Jim Meyering  <meyering@lucent.com>
87973
87974         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87975         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87976         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87977
87978 2000-10-21  Jim Meyering  <meyering@lucent.com>
87979
87980         * lib/dirname.c (memrchr): Declare if necessary.
87981         (dir_name): Remove the restriction that there be no
87982         trailing slashes.  Now, this code skips past them, effectively
87983         ignoring them.
87984         [TEST_DIRNAME] (main): New unit tests.
87985
87986         * lib/memrchr.c: New file from GNU libc.
87987         Undef __memrchr, too.
87988         [!weak_alias]: Define __memrchr to memrchr.
87989         Guard weak_alias use with `#ifdef weak_alias'.
87990
87991 2000-10-21  Jim Meyering  <meyering@lucent.com>
87992
87993         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87994         (dir_name): Use dir_name_r.
87995         * lib/dirname.h (dir_name_r): Declare it.
87996
87997 2000-10-17  Jim Meyering  <meyering@lucent.com>
87998
87999         * lib/quote.h (PARAMS): Define and use.
88000         Reported by Akim Demaille.
88001
88002         * lib/getopt.c: Update from libc.
88003
88004 2000-10-16  Jim Meyering  <meyering@lucent.com>
88005
88006         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88007         setlocale.
88008         From Jan Fedak.
88009
88010 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88011
88012         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88013
88014 2000-09-25  Jim Meyering  <meyering@lucent.com>
88015
88016         * lib/md5.h (rol): Define (from GnuPG).
88017
88018         * lib/sha.c: Give credit (GnuPG) where due.
88019         (M): Use rol rather than open-coding it.
88020         Add a FIXME comment.
88021
88022 2000-09-21  Jim Meyering  <meyering@lucent.com>
88023
88024         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88025         Reported by Michael Stone.
88026
88027 2000-09-20  Jim Meyering  <meyering@lucent.com>
88028
88029         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88030         (noinst_HEADERS): Add sha.h.
88031         Based on code from Scott G. Miller and from GnuPG.
88032
88033 2000-09-18  Jim Meyering  <meyering@lucent.com>
88034
88035         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88036         LIBS. Otherwise, everyone ends up linking with -lelf for some
88037         configurations.
88038         Reported by Mike Stone.
88039
88040 2000-09-15  Jim Meyering  <meyering@lucent.com>
88041
88042         * lib/regex.c: Update from libc.
88043
88044 2000-09-10  Jim Meyering  <meyering@lucent.com>
88045
88046         * lib/getopt.c (_getopt_internal): Update from glibc.
88047
88048 2000-09-09  Jim Meyering  <meyering@lucent.com>
88049
88050         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88051         think it should be used as a general replacement for isascii.
88052         * lib/fnmatch.c: Likewise.
88053         * lib/mbswidth.c: Likewise
88054         * lib/regex.c: Likewise.
88055
88056         Don't use atoi.
88057         * lib/userspec.c: Include sys/param.h and limits.h.
88058         Include xstrtol.h.
88059         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88060         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88061         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88062         UID, GID.  Check range.
88063
88064 2000-09-06  Jim Meyering  <meyering@lucent.com>
88065
88066         * lib/getopt.c (_getopt_internal): Update from glibc.
88067
88068 2000-08-30  Jim Meyering  <meyering@lucent.com>
88069
88070         * lib/strftime.c: Merge in changes from GNU libc.
88071
88072 2000-08-26  Jim Meyering  <meyering@lucent.com>
88073
88074         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88075         * m4/fpending.m4: New file.
88076
88077 2000-08-26  Jim Meyering  <meyering@lucent.com>
88078
88079         * lib/closeout.c: Include "__fpending.h".
88080         (close_stdout_status): Return right away if there's nothing to flush.
88081
88082         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88083         * lib/__fpending.c: New file.
88084         * lib/__fpending.h: New file.
88085
88086 2000-08-20  Jim Meyering  <meyering@lucent.com>
88087
88088         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88089         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88090         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88091
88092 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88093
88094         Improve fileutils installation on systems where running
88095         programs (like install) can't be unlinked.
88096         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88097         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88098
88099 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88100
88101         Standardize on "memory exhausted" instead of "Memory exhausted"
88102         or "virtual memory exhausted".
88103         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88104         "virtual memory exhausted".
88105         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88106         our own message.
88107         * lib/userspec.c (parse_user_spec): Likewise.
88108         * lib/bumpalloc.h: comment fix
88109         * lib/same.c, userspec.c: Include xalloc.h.
88110
88111         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88112         not char *const and pointing to a constant array.
88113         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88114         (xrealloc): Comment fix.
88115
88116         * lib/userspec.c (parse_user_spec):
88117         Don't translate a message until just before returning,
88118         to avoid unnecessary translation.
88119
88120 2000-08-07  Jim Meyering  <meyering@lucent.com>
88121
88122         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88123         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88124         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88125         getgroups.c, gethostname.c, getopt.h, group-member.c,
88126         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88127         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88128         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88129         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88130         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88131         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88132         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88133         yesno.c: Back out Copyright date changes for each file with no change
88134         this year.  This eases coordination with other programs using the same
88135         source code modules.  From Paul Eggert.
88136
88137 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88138
88139         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88140         not char, for compatibility with glibc 2.1.3 strftime.c.
88141
88142 2000-08-03  Greg McGary  <greg@mcgary.org>
88143
88144         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88145         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88146         (EXTEND_BUFFER): Use them.
88147
88148 2000-08-01  Jim Meyering  <meyering@lucent.com>
88149
88150         * lib/dirname.c (ISSLASH): Define.
88151         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88152         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88153         both `\' and `/' may be use as path separators.
88154         Based on a patch from Prashant TR.
88155
88156 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88157
88158         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88159         slot vector a constant, since it might get modified.
88160
88161 2000-07-31  Jim Meyering  <meyering@lucent.com>
88162
88163         * lib/xmalloc.c: Use `virtual memory exhausted', not
88164         `Memory exhausted'.
88165         * lib/obstack.c (print_and_abort): Likewise.
88166
88167 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88168
88169         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88170         buffer, so that the caller can always quote one small
88171         component of a "memory exhausted" message in slot 0.
88172         From a suggestion by Jim Meyering.
88173
88174 2000-07-30  Jim Meyering  <meyering@lucent.com>
88175
88176         * lib/makepath.c (make_path): Quote the other instance, too.
88177
88178         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88179         (STATIC_BUF_SIZE): Define.
88180         (quotearg_n_options): Use only statically allocated storage when
88181         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88182         than STATIC_BUF_SIZE.
88183
88184 2000-07-29  Jim Meyering  <meyering@lucent.com>
88185
88186         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88187         * lib/dirname.c (dir_name): Likewise.
88188
88189         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88190         `/'.
88191
88192         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88193         (dir_name): Assert that there are no trailing slashes.
88194
88195 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88196
88197         * lib/mbswidth.h (mbswidth): Add a flags argument.
88198         (mbswidth): New declaration.
88199         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88200         * lib/mbswidth.c (mbswidth): Add a flags argument.
88201         (mbsnwidth): New function.
88202
88203 2000-07-24  Jim Meyering  <meyering@lucent.com>
88204
88205         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88206
88207 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88208
88209         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88210
88211 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88212
88213         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88214         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88215         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88216         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88217         invoke multibyte primitives.
88218
88219 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88220
88221         * lib/quotearg.c:
88222         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88223         so that mbstate_t is always defined.
88224
88225         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88226         be 1 in at least one GCC installation, and this configuration
88227         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88228         performance on hosts that have mbrtowc but have only unibyte
88229         locales, but I assume these hosts are rare.
88230
88231 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88232
88233         * lib/mbswidth.c (_XOPEN_SOURCE):
88234         Don't define; this causes problems on Solaris 7.
88235         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88236
88237 2000-07-23  Jim Meyering  <meyering@lucent.com>
88238
88239         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88240         too: getgrgid, getpwuid, getuid.
88241
88242 2000-07-23  Jim Meyering  <meyering@lucent.com>
88243
88244         * lib/basename.c (base_name): Add an assertion.
88245
88246 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88247
88248         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88249         shadow its mbsinit function.
88250
88251 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88252
88253         * lib/mbswidth.h: New file.
88254         * lib/mbswidth.c: New file.
88255         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88256         (noinst_HEADERS): Add mbswidth.h.
88257
88258 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88259
88260         * lib/config.charset: Add support for FreeBSD. Improve support for
88261         HP-UX and IRIX 6.
88262
88263 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88264
88265         * m4/mbswidth.m4: New file.
88266         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88267
88268 2000-07-15  Jim Meyering  <meyering@lucent.com>
88269
88270         * lib/makepath.c: Include quote.h.
88271         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88272         corresponding argument in a `quote (...)' call.
88273         Give better diagnostics.
88274
88275         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88276         (noinst_HEADERS): Add quote.h.
88277
88278         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88279         from tar's src/misc.c.
88280         * lib/quote.h: New file.  Prototypes for same.
88281
88282 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88283
88284         From a suggestion by Bruno Haible.
88285         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88286         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88287         to decide whether to define the BeOS workaround macro;
88288         this adjusts to the change to AC_MBSTATE_T.
88289
88290 2000-07-14  Jim Meyering  <meyering@lucent.com>
88291
88292         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88293         jm_AC_TYPE_UINTMAX_T.
88294
88295 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88296
88297         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88298
88299         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88300         quotearg_buffer_restyled): Add support for
88301         clocale_quoting_style.  Undo previous change to
88302         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88303         and "{RIGHT QUOTATION MARK}" msgids.
88304
88305 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88306
88307         From a suggestion by Bruno Haible.
88308         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88309         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88310         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88311         and mbstate_t, to a single-part test that simply defines mbstate_t.
88312         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88313         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88314
88315 2000-07-10  Jim Meyering  <meyering@lucent.com>
88316
88317         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88318
88319         * m4/gnu-source.m4: Output to confdefs.h directly.
88320         Suggestion from Akim Demaille.
88321
88322 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88323
88324         The old behavior of quoting `like this' doesn't look good with
88325         newer, ISO-style fonts.  See:
88326         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88327
88328         Instead, quote "like this" by default.  Let the translator
88329         tailor the locale-specific quoting behavior by providing
88330         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88331
88332         * lib/quotearg.c (N_): New macro.
88333         (gettext_default): New function.
88334         (quotearg_buffer_restyled): Use
88335         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88336         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88337
88338 2000-07-09  Jim Meyering  <meyering@lucent.com>
88339
88340         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88341         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88342
88343         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88344         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88345
88346 2000-07-09  Jim Meyering  <meyering@lucent.com>
88347
88348         * lib/Most files: Update copyright dates to include 2000.
88349
88350 2000-07-08  Jim Meyering  <meyering@lucent.com>
88351
88352         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88353         if not defined.
88354         (xgethostname): Remove now-unnecessary #ifdef.
88355         Move declaration of `err' into loop where it's used.
88356
88357 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88358         and Bruno Haible  <haible@clisp.cons.org>
88359
88360         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88361         only if the test for an object-type mbstate_t fails.  This
88362         prevents us from mistakenly reporting that mbstate_t is a
88363         system object type after we "#define mbstate_t int" to work
88364         around its lack.
88365
88366 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88367         and Bruno Haible  <haible@clisp.cons.org>
88368
88369         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88370
88371 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88372
88373         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88374         to strerror_r.
88375         Include <ctype.h> for use of isalpha.
88376
88377 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88378
88379         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88380         by allocating a larger buffer. Test the gethostname return value for
88381         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88382         returns an error and ENAMETOOLONG isn't defined.
88383
88384 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88385
88386         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88387         dimension.
88388
88389 2000-07-04  Jim Meyering  <meyering@lucent.com>
88390
88391         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88392         of the deprecated AC_CHECKING.
88393
88394 2000-07-04  Jim Meyering  <meyering@lucent.com>
88395
88396         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88397         Reported by Bruno Haible.
88398
88399 2000-07-04  Jim Meyering  <meyering@lucent.com>
88400
88401         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88402         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88403         lacks mbrtowc.
88404
88405 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88406
88407         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88408         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88409
88410 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88411         and Bruno Haible  <haible@clisp.cons.org>
88412
88413         * lib/quotearg.c (mbrtowc):
88414         Assign to *pwc, and return 1 only if result is nonzero.
88415         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88416
88417 2000-07-03  Jim Meyering  <meyering@lucent.com>
88418
88419         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88420
88421 2000-07-03  Jim Meyering  <meyering@lucent.com>
88422
88423         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88424         This is necessary to get a definition of e.g., UTMP_FILE on
88425         HP-UX 10.20.
88426         From Bob Proulx.
88427
88428 2000-07-02  Jim Meyering  <meyering@lucent.com>
88429
88430         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88431
88432         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88433         AC_LIBOBJ(function_name).
88434         * m4/chown.m4: Likewise.
88435         * m4/fnmatch.m4: Likewise.
88436         * m4/ftruncate.m4: Likewise.
88437         * m4/getgroups.m4: Likewise.
88438         * m4/getline.m4: Likewise.
88439         * m4/group-member.m4: Likewise.
88440         * m4/jm-macros.m4: Likewise.
88441         * m4/lstat.m4: Likewise.
88442         * m4/malloc.m4: Likewise.
88443         * m4/memcmp.m4: Likewise.
88444         * m4/nanosleep.m4: Likewise.
88445         * m4/putenv.m4: Likewise.
88446         * m4/realloc.m4: Likewise.
88447         * m4/regex.m4: Likewise.
88448         * m4/stat.m4: Likewise.
88449         * m4/strftime.m4: Likewise.
88450
88451 2000-07-02  Jim Meyering  <meyering@lucent.com>
88452
88453         * lib/quotearg.c (mbstate_t): Don't define here.
88454
88455 2000-07-02  Jim Meyering  <meyering@lucent.com>
88456
88457         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88458
88459 2000-07-01  Jim Meyering  <meyering@lucent.com>
88460
88461         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88462
88463 2000-07-01  Jim Meyering  <meyering@lucent.com>
88464
88465         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88466         problem.
88467
88468 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88469
88470         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88471         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88472
88473 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88474
88475         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88476         per change in ../m4/ls-mntd-fs.m4.
88477         (read_filesystem_list): Ignore symbolic links.
88478
88479 2000-06-29  Jim Meyering  <meyering@lucent.com>
88480
88481         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88482         for declaration of strcmp.
88483
88484         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88485
88486         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88487         Avoid warning by casting result to `char *' to remove `const'.
88488
88489 2000-06-28  Jim Meyering  <meyering@lucent.com>
88490
88491         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88492         included by quotearg.c, for which we perform this test.  From
88493         Bruno Haible.
88494
88495 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88496
88497         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88498         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88499         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88500
88501 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88502
88503         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88504
88505 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88506
88507         savedir now sets errno on failure and invokes xmalloc to get memory.
88508         Fix a couple of other minor bugs while we're at it.
88509
88510         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88511         (NAMLEN): Remove macro.
88512         (malloc, realloc): Remove decls.
88513         (stpcpy): Likewise.
88514         ("xalloc.h"): Include.
88515         (NAME_SIZE_DEFAULT): New macro.
88516         (savedir): Use xmalloc / xrealloc to allocate memory.
88517         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88518         Skip "" directory entries.
88519         Use strlen to calculate directory entry length, since the old method
88520         is rarely used these days and isn't worth supporting.
88521         Don't use a pointer after freeing it.
88522         Check for integer overflow when calculating allocation size.
88523         Use memcpy to copy entries, instead of stpcpy.
88524         Set errno properly when returning NULL.
88525         Check for readdir error.
88526
88527 2000-06-26  Jim Meyering  <meyering@lucent.com>
88528
88529         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88530
88531 2000-06-25  Jim Meyering  <meyering@lucent.com>
88532
88533         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88534         Linux header bug when _XOPEN_SOURCE is defined to 500.
88535
88536 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88537
88538         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88539         deficiency.
88540
88541 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88542
88543         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88544         Include xalloc.h.
88545         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88546
88547 2000-06-24  Jim Meyering  <meyering@lucent.com>
88548
88549         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88550         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88551         for which strerror does return char*, but which lacks a conveniently
88552         accessible declaration of the function.  If the compile-test says
88553         strerror_r doesn't work, then resort to a `run'-test that works on
88554         BeOS and segfaults on DEC Unix.
88555
88556 2000-06-24  Jim Meyering  <meyering@lucent.com>
88557
88558         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88559
88560 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88561
88562         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88563         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88564
88565 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88566
88567         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88568         (mbrtowc, mbstate_t): Define substitutes if
88569         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88570         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88571         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88572
88573 2000-06-23  Jim Meyering  <meyering@lucent.com>
88574
88575         * m4/afs.m4: Add missing AC_MSG_RESULT.
88576         Reported by Bruno Haible.
88577
88578         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88579         Suggestion from Bruno Haible.
88580
88581 2000-06-23  Jim Meyering  <meyering@lucent.com>
88582
88583         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88584
88585 2000-06-21  Jim Meyering  <meyering@lucent.com>
88586
88587         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88588
88589 2000-06-21  Jim Meyering  <meyering@lucent.com>
88590
88591         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88592         (noinst_HEADERS): Add getstr.h.
88593
88594         * lib/getline.c (getstr): Move into a separate file.
88595         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88596         the following changes: new parameter, delim2; both delim[12]
88597         parameters have type `int', not `char'.  The latter would lose
88598         with 8-bit delimiters.
88599         * lib/getstr.h: New file.
88600
88601 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88602
88603         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88604         than 1024, return a memory chunk of least possible size, instead
88605         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88606         Use free/xmalloc instead of xrealloc to avoid copying for very long
88607         paths.
88608
88609 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88610
88611         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88612         the empty string.
88613
88614 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88615
88616         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88617         address, not strdup.  Include <stdlib.h> and don't declare free().
88618
88619 2000-06-19  Jim Meyering  <meyering@lucent.com>
88620
88621         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88622
88623 2000-06-18  Jim Meyering  <meyering@lucent.com>
88624
88625         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88626
88627         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88628         `checking whether...' message to be consistent with that of the
88629         lstat test.
88630
88631 2000-06-18  Jim Meyering  <meyering@lucent.com>
88632
88633         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88634         Besides, these days every porting target provides a mkdir function.
88635
88636         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88637         needed. (this snippet comes from src/system.h).
88638
88639 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88640
88641         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88642
88643 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88644
88645         * lib/human.c (adjust_value): New function.
88646         (human_readable_inexact): Apply rounding style even when
88647         printing approximate values.
88648
88649 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88650
88651         * lib/human.c (human_readable_inexact): Allow an input block
88652         size that is not a multiple of the output block size, and vice versa.
88653         Reported by Piergiorgio Sartor.
88654
88655 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88656
88657         * lib/getdate.y (get_date): Apply relative times after time
88658         zone indicator, not before.  Reported by Todd A. Jacobs.
88659
88660 2000-06-13  Jim Meyering  <meyering@lucent.com>
88661
88662         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88663
88664         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88665
88666 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88667
88668         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88669
88670 2000-06-12  Jim Meyering  <meyering@lucent.com>
88671
88672         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88673         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88674         optional argument.
88675         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88676         the optional argument, `lib'.
88677
88678 2000-06-08  Jim Meyering  <meyering@lucent.com>
88679
88680         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88681
88682 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88683
88684         Rewrite largefile configuration so that we don't need to run
88685         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88686         AC_CANONICAL_HOST in configure.in -- jmm]
88687
88688         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88689         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88690         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88691         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88692         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88693         All uses changed.
88694         Instead of inspecting the output of getconf, try to compile the
88695         test program without and with the macro definition.
88696         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88697         for getconf.  Instead, check for the needed flags by compiling
88698         test programs.
88699
88700 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88701
88702         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88703
88704 2000-06-04  Jim Meyering  <meyering@lucent.com>
88705
88706         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88707         SunOS 4.1.4 for which gid_t is an unsigned type.
88708
88709 2000-06-03  Jim Meyering  <meyering@lucent.com>
88710
88711         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88712         now that autoconf requires that.
88713
88714         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88715         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88716         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88717
88718 2000-06-03  Jim Meyering  <meyering@lucent.com>
88719
88720         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88721
88722 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88723
88724         * m4/glibc21.m4: New file.
88725         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88726
88727 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88728
88729         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88730         newer, don't install charset.alias.
88731         * lib/config.charset: Change the Linux/glibc rules so they become empty
88732         on glibc-2.1 or newer.
88733
88734 2000-06-02  Jim Meyering  <meyering@lucent.com>
88735
88736         * lib/mountlist.c: Back out last change.  Instead, do this...
88737         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88738         me_dummy member using the same `ignore'-testing code.
88739         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88740         fs_type strings.
88741         From Mark D. Roth.
88742
88743 2000-05-29  Jim Meyering  <meyering@lucent.com>
88744
88745         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88746         mounts with the `ignore' attribute.  Based on a patch from
88747         Mark D. Roth.
88748
88749 2000-05-28  Jim Meyering  <meyering@lucent.com>
88750
88751         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88752         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88753         * m4/stat.m4: Likewise.
88754         * m4/lstat.m4: Likewise.
88755         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88756
88757         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88758         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88759
88760 2000-05-26  Jim Meyering  <meyering@lucent.com>
88761
88762         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88763
88764 2000-05-24  Jim Meyering  <meyering@lucent.com>
88765
88766         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88767         autoconf requires that.
88768         * m4/lib-check.m4: Likewise.
88769         * m4/jm-macros.m4: Likewise.
88770         * m4/strftime.m4: Likewise.
88771
88772         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88773         AC_CHECK_DECLS, now that autoconf requires that.
88774
88775 2000-05-22  Jim Meyering  <meyering@lucent.com>
88776
88777         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88778         * m4/lstat.m4: Likewise.
88779
88780 2000-05-22  Jim Meyering  <meyering@lucent.com>
88781
88782         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88783
88784 2000-05-20  Jim Meyering  <meyering@lucent.com>
88785
88786         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88787         (jm_PREREQ): Use it.
88788
88789 2000-05-18  Jim Meyering  <meyering@lucent.com>
88790
88791         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88792         back, too, since it may have been modified by allocate_entry.
88793         (hash_delete): Rewrite to use neither the assignment operator
88794         nor the comma operator in an if-expression.
88795
88796 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88797
88798         * lib/closeout.c:
88799         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88800         Remove; no longer needed.
88801         "quotearg.h": Add include.
88802         (file_name): Do not bother to explicitly initialize to NULL; it's less
88803         efficient on some hosts.
88804         (close_stdout_status): Remove test as to whether stdout was already
88805         closed; it breaks for the case "echo x | sort >&-".
88806         Quote file name colons.
88807         Do not assume that _("write error") lacks format strings.
88808
88809 2000-05-15  Jim Meyering  <meyering@lucent.com>
88810
88811         * lib/version-etc.c (version_etc_copyright): Update the copyright
88812         string used in all --version output.
88813
88814 2000-05-14  Jim Meyering  <meyering@lucent.com>
88815
88816         * lib/closeout.c (close_stdout_set_file_name): New function.
88817         (close_stdout_status): Use new file-scoped global.
88818         Return right away if fstat says the stdout file descriptor is invalid.
88819         * lib/closeout.h (close_stdout_set_file_name): Declare.
88820
88821 2000-05-10  Jim Meyering  <meyering@lucent.com>
88822
88823         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88824         (close_stdout_set_status): New function.
88825         * lib/closeout.h (close_stdout_set_status): Declare.
88826
88827 2000-05-09  Jim Meyering  <meyering@lucent.com>
88828
88829         * m4/gettext.m4: Rename this...
88830         * m4/libintl.m4: ...to this.
88831
88832 2000-05-08  Jim Meyering  <meyering@lucent.com>
88833
88834         * lib/long-options.c: Don't include closeout.h.
88835         (parse_long_options): Don't call close_stdout for --version.
88836
88837 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88838
88839         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88840         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88841         2.1.3 bug.  This avoids a clash when files like regex.c define
88842         _GNU_SOURCE.
88843
88844 2000-05-06  Jim Meyering  <meyering@lucent.com>
88845
88846         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88847         (AC_REPLACE_FUNCS): Add strnlen.
88848
88849         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88850         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88851
88852         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88853         AC_SEARCH_LIBS call for nanosleep.
88854         (LIB_NANOSLEEP): Set and AC_SUBST.
88855
88856 2000-05-06  Jim Meyering  <meyering@lucent.com>
88857
88858         * lib/strnlen.c: Undefine __strnlen and strnlen.
88859         [!weak_alias]: Define __strnlen to strnlen.
88860
88861         * lib/atexit.c: New file, from libiberty.
88862
88863 2000-05-06  Jim Meyering  <meyering@lucent.com>
88864
88865         * lib/closeout.c (close_stdout_status): Also check for errors on the
88866         stderr stream.
88867
88868 2000-05-05  Jim Meyering  <meyering@lucent.com>
88869
88870         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88871         AC_SEARCH_LIBS call for clock_gettime.
88872         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88873
88874         * m4/search-libs.m4: Update from autoconf.
88875
88876         su doesn't work on Solaris 2.6.
88877         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88878         <shadow.h>.  Reported by Dragos Harabor.
88879
88880 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88881
88882         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88883         memcpy instead of xmalloc, xrealloc, path_concat.
88884         (locale_charset): Treat empty environment variables as absent.
88885         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88886
88887 2000-05-04  Jim Meyering  <meyering@lucent.com>
88888
88889         * lib/getopt.c: Update from glibc.
88890         * lib/obstack.c: Likewise.
88891         * lib/obstack.h: Likewise.
88892         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88893         file
88894
88895         * lib/regex.h: Likewise.
88896         * lib/strndup.c: Likewise.
88897         * lib/strnlen.c: New file, from glibc.
88898
88899 2000-05-03  Jim Meyering  <meyering@lucent.com>
88900
88901         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88902
88903 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88904
88905         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88906         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88907         compile-time test, rather than inspecting host and OS, to
88908         decide whether to define _LARGEFILE_SOURCE.
88909
88910 2000-05-01  Jim Meyering  <meyering@lucent.com>
88911
88912         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88913
88914         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88915         Based on a patch from Bruno Haible.
88916
88917 2000-05-01  Jim Meyering  <meyering@lucent.com>
88918
88919         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88920
88921 2000-04-29  Jim Meyering  <meyering@lucent.com>
88922
88923         * lib/path-concat.c: Declare strdup only if it's not defined.
88924         * lib/canon-host.c: Likewise.
88925
88926 2000-04-28  Jim Meyering  <meyering@lucent.com>
88927
88928         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88929         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88930         is included first, then limits.h is included by locale.h by libintl.h.
88931         From John David Anglin.
88932
88933 2000-04-25  Jim Meyering  <meyering@lucent.com>
88934
88935         * lib/makepath.c (S_IRWXUGO): Define.
88936         (make_path): Always perform explicit chmod if MODE specifies any
88937         of the `special' permission bits.  Prompted by a bug report against
88938         install from Mate Wierdl and Joost van Baal.
88939
88940 2000-04-18  Jim Meyering  <meyering@lucent.com>
88941
88942         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88943         (jm_PREREQ): Use it.
88944
88945 2000-04-18  Jim Meyering  <meyering@lucent.com>
88946
88947         * lib/README: New file.
88948
88949         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88950         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88951
88952 2000-04-17  Jim Meyering  <meyering@lucent.com>
88953
88954         Get it right :-)
88955         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88956         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88957         Suggestion from Akim Demaille.
88958
88959 2000-04-17  Jim Meyering  <meyering@lucent.com>
88960
88961         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88962         the definition of it to rpl_strftime also defined-away the system's
88963         declaration.
88964
88965 2000-04-15  Jim Meyering  <meyering@lucent.com>
88966
88967         Use `C' to denote so-called `contiguous' files, the same way
88968         that tar does.
88969         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88970         (ftypelet): Use S_ISCTG.
88971         From Michael Deutschmann.
88972
88973 2000-04-14  Jim Meyering  <meyering@lucent.com>
88974
88975         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88976         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88977         clobbered.
88978
88979 2000-04-14  Jim Meyering  <meyering@lucent.com>
88980
88981         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88982
88983 2000-04-13  Jim Meyering  <meyering@lucent.com>
88984
88985         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88986         AH_VERBATIM to insert required #ifndef into config.h.in.
88987         Suggestion from Akim Demaille.
88988
88989 2000-04-12  Jim Meyering  <meyering@lucent.com>
88990
88991         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88992         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88993         Christian Krackowizer.
88994
88995         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88996         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88997         (AC_SYS_LARGEFILE): Require.
88998         (AM_C_PROTOTYPES): Require.
88999
89000 2000-04-08  Jim Meyering  <meyering@lucent.com>
89001
89002         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89003         names don't conflict.  Reported by Eli Zaretskii.
89004
89005 2000-04-07  Jim Meyering  <meyering@lucent.com>
89006
89007         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89008         sys/types.h, to work around system header problems on AIX 3.2.5.
89009         From Bruno Haible.
89010
89011 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89012
89013         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89014         bug.  Deal with the different error behavior of Irix iconv.
89015
89016 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89017
89018         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89019         IRIX if the installer said otherwise.
89020
89021 2000-04-05  Jim Meyering  <meyering@lucent.com>
89022
89023         Portability tweaks required for ultrix4.3.
89024         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89025         (jm_CHECK_DECLS): Add getutent to the list of functions.
89026         (_jm_DECL_HEADERS): Add utmpx.h.
89027         From John David Anglin.
89028
89029         * m4/strftime.m4: Back out the 2000-04-02 change.
89030         Instead of that change, simply undefine putenv in the test program.
89031
89032 2000-04-05  Jim Meyering  <meyering@lucent.com>
89033
89034         Portability tweaks required for ultrix4.3.
89035         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89036         getutent.
89037         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89038         * lib/canon-host.c: Declare strdup.
89039         * lib/path-concat.c: Likewise.
89040         From John David Anglin.
89041
89042 2000-04-04  Jim Meyering  <meyering@lucent.com>
89043
89044         Be more DOS 8.3-friendly.
89045         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89046         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89047         * lib/Makefile.am: Reflect renaming.
89048         Reported by Eli Zaretskii.
89049
89050         Use a temporary file name that won't clash with `charset.alias'
89051         in the DOS 8.3 name space.
89052         * lib/Makefile.am (charset_tmp): Define.
89053         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89054         (uninstall-local): Likewise.
89055         Reported by Eli Zaretskii.
89056
89057 2000-04-03  Jim Meyering  <meyering@lucent.com>
89058
89059         * m4/gettext.m4: Fix typo in comment.
89060
89061         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89062         textutils/configure.in).  Suggestion from Paul Eggert.
89063         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89064
89065 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89066
89067         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89068         variable in the shell rather than using putenv, which isn't
89069         portable.  This avoids the configure-time inter-test dependency
89070         on the potentially-renamed putenv function.
89071
89072 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89073
89074         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89075         before checking struct stat.st_blksize, so that
89076         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89077
89078 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89079
89080         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89081         since strftime.c uses HAVE_STRFTIME to decide whether to use
89082         the underlying strftime.
89083
89084 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89085
89086         * lib/time/strftime.c (my_strftime): Make sure we call the system
89087         strftime, not ourselves, when invoking the underlying strftime.
89088
89089 2000-03-24  Jim Meyering  <meyering@lucent.com>
89090
89091         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89092         (charset_alias): Define.
89093         (install-exec-local): Factor out common code.
89094         (uninstall-local): Split lines longer than 80.
89095         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89096         (SUFFIXES): Define.
89097         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89098         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89099
89100 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89101
89102         * lib/config.charset: Output a line containing "Packages using this
89103         file".
89104         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89105         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89106         ref-del.sed): New rules.
89107
89108 2000-03-17  Jim Meyering  <meyering@lucent.com>
89109
89110         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89111         Otherwise, include <strings.h>
89112
89113 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89114
89115         * lib/unicodeio.c (utf8_wctomb): New function.
89116         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89117         format instead of in UCS-4 with platform dependent endianness.
89118
89119 2000-03-10  Jim Meyering  <meyering@lucent.com>
89120
89121         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89122         From Marco Franzen.
89123
89124 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89125
89126         * lib/savedir.c (savedir): Work even if directory size is
89127         negative; this can happen with some screwy NFS configurations.
89128
89129 2000-03-06  Jim Meyering  <meyering@lucent.com>
89130
89131         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89132         if it's NULL (because we ran out of memory).  From Bruno Haible.
89133
89134 2000-03-05  Jim Meyering  <meyering@lucent.com>
89135
89136         * lib/localcharset.c ("path-concat.h"): Include.
89137         (get_charset_aliases): Use path_concat instead of ANSI string
89138         concatenation.
89139
89140         * lib/unicodeio.h (PARAMS): Define.
89141         Use it to guard prototype.
89142
89143 2000-03-04  Jim Meyering  <meyering@lucent.com>
89144
89145         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89146         for lib/localcharset.c.
89147
89148 2000-03-04  Jim Meyering  <meyering@lucent.com>
89149
89150         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89151         installing into it.
89152         (uninstall-local): Uncomment this rule so `make distcheck' works
89153         once again.
89154
89155         * lib/unicodeio.c (<errno.h>): Include it.
89156         (errno): Declare if not defined.
89157
89158         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89159
89160         * lib/config.charset: New version, incorporating remarks from a linux
89161         i18n mailing list.  From Bruno Haible.
89162
89163 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89164
89165         * m4/codeset.m4: New file.
89166         * m4/iconv.m4: New file.
89167         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89168
89169 2000-03-03  Jim Meyering  <meyering@lucent.com>
89170
89171         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89172
89173 2000-03-02  Jim Meyering  <meyering@lucent.com>
89174
89175         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89176         the messages come out on separate lines.
89177
89178         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89179         rather than jm_CHECK_DECLARATIONS.
89180         * m4/decl.m4: Remove now-unused file.
89181
89182         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89183         geteuid.
89184
89185 2000-03-02  Jim Meyering  <meyering@lucent.com>
89186
89187         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89188
89189 2000-03-01  Jim Meyering  <meyering@lucent.com>
89190
89191         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89192         * lib/unicodeio.c: Likewise.
89193
89194 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89195
89196         * lib/config.charset: New file.
89197         * lib/localcharset.c: New file.
89198         * lib/unicodeio.h, lib/unicodeio.c: New files.
89199         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89200         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89201         (noinst_HEADERS): Add unicodeio.h.
89202         (all-local, install-exec-local, charset.alias): New targets.
89203
89204 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89205
89206         * lib/quotearg.c (ALERT_CHAR): New macro.
89207         (quotearg_buffer_restyled): Use it.
89208
89209 2000-02-27  Jim Meyering  <meyering@lucent.com>
89210
89211         * m4/check-decl.m4: Add getenv to the list.
89212
89213 2000-02-27  Jim Meyering  <meyering@lucent.com>
89214
89215         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89216         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89217
89218         * lib/backupfile.c: Guard inclusion of stdlib.h with
89219         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89220         Declare malloc if needed.
89221
89222         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89223         `#ifndef HAVE_DECL..'
89224         now that autoconf always defines the HAVE_DECL_ symbols.
89225         * lib/human.c: Likewise.
89226         * lib/same.c: Likewise.
89227         * lib/strtoumax.c: Likewise.
89228
89229         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89230         declaration check was not run.
89231         * lib/hash.c: Likewise.
89232         * lib/human.c: Likewise.
89233         * lib/same.c: Likewise.
89234         * lib/strtoumax.c: Likewise.
89235
89236         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89237         `.', then first look up the entire `.'-containing string as a login
89238         name.
89239
89240 2000-02-23  Jim Meyering  <meyering@lucent.com>
89241
89242         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89243         in place of my hack.
89244
89245 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89246
89247         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89248         (textint): New typedef.
89249         (parser_control): Member year changed from int to textint.
89250         All uses changed.
89251         (YYSTYPE): Removed; replaced by %union with int and textint members.
89252         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89253         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89254         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89255         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89256         (date, number, to_year): Use width of number in digits, not its value,
89257         to determine whether it's a 2-digit year, or a 2-digit time.
89258         (yylex): Store number of digits of numeric tokens.
89259         Reported by John Kendall.
89260
89261         (parser_control): Changed from struct parser_control to typedef (for
89262         consistency).  All uses changed.
89263
89264         (tID): Removed; not used.
89265         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89266
89267 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89268
89269         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89270         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89271
89272 2000-02-12  Jim Meyering  <meyering@lucent.com>
89273
89274         * lib/userspec.c (ISDIGIT): Define it.
89275         (isdigit): Remove definition.
89276         (is_number): Use ISDIGIT, not isdigit.
89277         <libintl.h>: Include.
89278         (_ and N_): Define.
89279         (parse_user_spec): Mark translatable strings.
89280
89281 2000-02-10  Jim Meyering  <meyering@lucent.com>
89282
89283         With these changes, nanosleep.[ch] are finally enough like the other
89284         lib/* replacement files to compile on a few more losing systems.
89285
89286         * lib/nanosleep.h: Don't include config.h.
89287         Remove prototype from declaration of nanosleep.
89288         (PARAMS): Remove now-unneeded definition.
89289         * lib/nanosleep.c: #undef nanosleep.
89290         (rpl_nanosleep): Rename from nanosleep.
89291
89292 2000-02-10  Jim Meyering  <meyering@lucent.com>
89293
89294         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89295         gnu_nanosleep to rpl_nanosleep.
89296
89297 2000-02-09  Jim Meyering  <meyering@lucent.com>
89298
89299         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89300         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89301
89302 2000-02-08  Akim Demaille  <akim@epita.fr>
89303
89304         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89305         `[' and `]' and remove uses of `changequote'.
89306         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89307         (AC_SYS_LARGEFILE): Likewise.
89308         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89309         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89310         of changequote.
89311         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89312         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89313         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89314         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89315
89316 2000-02-05  Jim Meyering  <meyering@lucent.com>
89317
89318         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89319         Remove explicit use of AC_HEADER_TIME.  It is required by
89320         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89321         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89322         in autoconf whereby the expansion of the latter ended up preceding
89323         the expansion of its prerequisite, AC_HEADER_TIME.
89324         Reported by Volker Borchert.
89325
89326 2000-02-03  Jim Meyering  <meyering@lucent.com>
89327
89328         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89329
89330 2000-02-03  Jim Meyering  <meyering@lucent.com>
89331
89332         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89333         rather than with `#if HAVE_UTMPNAME'.
89334
89335 2000-02-02  Jim Meyering  <meyering@lucent.com>
89336
89337         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89338         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89339         Reported by Eli Zaretskii.
89340
89341 2000-02-01  Jim Meyering  <meyering@lucent.com>
89342
89343         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89344
89345 2000-01-31  Jim Meyering  <meyering@lucent.com>
89346
89347         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89348         functions.  Add the time.h and sys/time.h headers along with the
89349         AC_REQUIRE'ment of AC_HEADER_TIME.
89350
89351 2000-01-31  Jim Meyering  <meyering@lucent.com>
89352
89353         * lib/nanosleep.h (nanosleep): Guard declaration with
89354         `#if ! HAVE_DECL_NANOSLEEP'.
89355         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89356         the declaration in that vendor's sys/timers.h.
89357         Reported by Christian Krackowizer.
89358
89359         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89360         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89361         (ISPRINT): Likewise.
89362         Reported by Tom Tromey.
89363
89364 2000-01-30  Jim Meyering  <meyering@lucent.com>
89365
89366         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89367
89368         * m4/prereq.m4 (utmp_includes): Define.
89369         Check for ut_user and ut_name members in both struct utmpx
89370         and struct utmp.
89371
89372 2000-01-30  Jim Meyering  <meyering@lucent.com>
89373
89374         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89375         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89376         header files where only utmpx.ut_user is declared.
89377
89378         * lib/readutmp.h (UT_USER): Define.
89379
89380 2000-01-29  Jim Meyering  <meyering@lucent.com>
89381
89382         * m4/lib-check.m4: New file containing library-related checks from
89383         fileutils and sh-utils (textutils had none).
89384
89385 2000-01-28  Jim Meyering  <meyering@lucent.com>
89386
89387         * m4/perl.m4: Change format of warning message to look more like that
89388         from the missing script.  Suggestion from François Pinard.
89389
89390 2000-01-25  Jim Meyering  <meyering@lucent.com>
89391
89392         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89393         well as time.h in the compile check.
89394         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89395         Fix typo in cross-compiling case: s/yes/no/.
89396
89397 2000-01-23  Jim Meyering  <meyering@lucent.com>
89398
89399         * m4/jm-macros.m4: Move df-related tests here from
89400         fileutils/configure.in
89401
89402         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89403         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89404
89405         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89406         s/space/ac_fsusage_space/.
89407         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89408
89409         * m4/ftruncate.m4: New file (derived from part of
89410         fileutils/configure.in).
89411         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89412         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89413
89414         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89415         AC_SUBST these here, rather than just in sh-util/configure.in, so
89416         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89417         all the same.
89418         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89419         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89420         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89421         (AC_SUBST(POW_LIBM)): Likewise.
89422         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89423
89424 2000-01-23  Jim Meyering  <meyering@lucent.com>
89425
89426         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89427         obstack.c.
89428
89429 2000-01-22  Jim Meyering  <meyering@lucent.com>
89430
89431         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89432
89433         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89434
89435         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89436         configure.in
89437         (AC_CHECK_HEADERS): Likewise for sh-utils.
89438         (AC_CHECK_HEADERS): Likewise for textutils.
89439         Merge the three lists of headers.
89440
89441         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89442         from fileutils' configure.in.
89443
89444         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89445         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89446         check-decl.m4.
89447
89448         * m4/check-decl.m4: Use #if rather than #ifdef.
89449         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89450         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89451         (_jm_DECL_HEADERS): Define new function.
89452         (jm_CHECK_DECLARATIONS): Require it.
89453
89454 2000-01-22  Jim Meyering  <meyering@lucent.com>
89455
89456         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89457         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89458         Required for some AIX systems.  Reported by Christian Krackowizer.
89459         [TESTING] (main): New function.
89460
89461         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89462         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89463         letters.
89464
89465         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89466         iswprint.
89467
89468         * lib/strverscmp.c (ISDIGIT): Define.
89469         (strverscmp): Use ISDIGIT, not isdigit.
89470
89471 2000-01-19  Jim Meyering  <meyering@lucent.com>
89472
89473         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89474         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89475         defines `struct timespec' in <sys/time.h>
89476
89477         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89478         Thanks to Akim for explaining.
89479
89480 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89481
89482         * lib/nanosleep.c (nanosleep):
89483         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89484         POSIX.1 doesn't require SA_INTERRUPT and some systems
89485         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89486         it's been part of POSIX.1 since day 1 (in 1988).
89487
89488 2000-01-17  Jim Meyering  <meyering@lucent.com>
89489
89490         * lib/interlock: Remove unused file.  Reported by François Pinard.
89491
89492 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89493
89494         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89495         alert, backslash, formfeed, and vertical tab unnecessarily in
89496         shell quoting style.
89497
89498 2000-01-16  Jim Meyering  <meyering@lucent.com>
89499
89500         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89501         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89502         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89503         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89504
89505 2000-01-16  Jim Meyering  <meyering@lucent.com>
89506
89507         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89508         because the latter didn't work.
89509
89510 2000-01-15  Jim Meyering  <meyering@lucent.com>
89511
89512         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89513         (AC_REPLACE_FUNCS): Add memcpy and memset.
89514         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89515         Add strpbrk.
89516         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89517
89518 2000-01-12  Jim Meyering  <meyering@lucent.com>
89519
89520         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89521         (jm_PREREQ): Use it.
89522         (jm_PREREQ_READUTMP): New macro.
89523         (jm_PREREQ): Use it.
89524
89525 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89526
89527         Quote multibyte characters correctly.
89528         * m4/c-bs-a.m4: New file.
89529         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89530         (jm_PREREQ): Use it.
89531
89532 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89533
89534         * m4/uintmax_t.m4: Port to autoconf 2.13.
89535
89536 2000-01-08  Jim Meyering  <meyering@ascend.com>
89537
89538         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89539         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89540
89541 2000-01-04  Jim Meyering  <meyering@ascend.com>
89542
89543         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89544         jm_STRUCT_DIRENT_D_TYPE.
89545         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89546         jm_STRUCT_DIRENT_D_INO.
89547         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89548         jm_STRUCT_UTIMBUF.
89549         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89550         renamings.
89551         * m4/utime.m4: Likewise.
89552
89553         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89554         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89555
89556 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89557
89558         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89559         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89560
89561 2000-01-02  Jim Meyering  <meyering@ascend.com>
89562
89563         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89564         remember if this is necessary.
89565
89566 1999-12-26  Jim Meyering  <meyering@ascend.com>
89567
89568         * m4/jm-macros.m4: Use it here.
89569         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89570
89571 1999-12-23  Jim Meyering  <meyering@ascend.com>
89572
89573         * m4/jm-macros.m4: Check for clock_gettime (moved from
89574         fileutils/configure.in)
89575         Check for gettimeofday.
89576
89577 1999-12-20  Jim Meyering  <meyering@ascend.com>
89578
89579         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89580         autoconf-2.14a-1999-12-20.
89581
89582 1999-12-19  Jim Meyering  <meyering@ascend.com>
89583
89584         * m4/lstat-slash.m4: New file.
89585         * m4/jm-macros.m4: Use the new macro:
89586         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89587
89588 1999-12-07  Jim Meyering  <meyering@ascend.com>
89589
89590         * m4/perl.m4: Require that File::Compare be available, too.
89591         Too many systems seem to lack it.
89592
89593         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89594         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89595
89596 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89597
89598         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89599         problem with the QNX 4.25 shell, which doesn't propagate exit
89600         status of failed commands inside shell assignments.
89601
89602 1999-11-17  Jim Meyering  <meyering@ascend.com>
89603
89604         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89605
89606 1999-11-07  Jim Meyering  <meyering@ascend.com>
89607
89608         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89609
89610 1999-11-06  Jim Meyering  <meyering@ascend.com>
89611
89612         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89613         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89614
89615 1999-11-05  Jim Meyering  <meyering@ascend.com>
89616
89617         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89618         configure.in of textutils, fileutils, and sh-utils into this one
89619         (shared between those packages) file.
89620         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89621         AC_STRUCT_ST_BLKSIZE.
89622
89623 1999-11-03  Jim Meyering  <meyering@ascend.com>
89624
89625         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89626         of AC_CHECK_TYPE checks includes unistd.h.
89627         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89628         Suggestion from Akim Demaille.
89629
89630 1999-10-30  Jim Meyering  <meyering@ascend.com>
89631
89632         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89633         m4-quoted string.
89634         * m4/ls-mntd-fs.m4: Likewise.
89635         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89636         * m4/jm-winsz1.m4: Likewise.
89637
89638         * m4/const.m4: Remove file, since the fix made it into the experimental
89639         version of autoconf.
89640         * m4/mktime.m4: Likewise.
89641
89642         * m4/check-type.m4: Remove file, now that the latest version of
89643         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89644
89645         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89646         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89647         AC_CHECK_TYPE.
89648
89649 1999-10-04  Jim Meyering  <meyering@ascend.com>
89650
89651         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89652
89653 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89654
89655         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89656         2.95.1 bug with HP-UX 10.20.
89657
89658 1999-09-17  Jim Meyering  <meyering@ascend.com>
89659
89660         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89661         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89662         due to missing strdup (against sh-utils-2.0).
89663
89664 1999-08-29  Jim Meyering  <meyering@ascend.com>
89665
89666         * m4/jm-macros.m4: Require jm_BISON.
89667         * m4/bison.m4: New file.
89668
89669 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89670
89671         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89672         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89673
89674 1999-08-05  Jim Meyering  <meyering@ascend.com>
89675
89676         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89677         to avoid conflicts with `conftest' on 8+3 filesystems.
89678         Suggestion from Eli Zaretskii.
89679
89680 1999-08-04  Jim Meyering  <meyering@ascend.com>
89681
89682         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89683         fileutils and sh-utils (textutils's getline test was inadequate).
89684         (AM_FUNC_GETLINE): Run this test.
89685         (AC_CHECK_FUNCS): Check for getdelim.
89686         Reported by Bob Proulx.
89687
89688 1999-08-02  Jim Meyering  <meyering@ascend.com>
89689
89690         * m4/jm-macros.m4: Add a comment.
89691
89692 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89693
89694         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89695         <inttypes.h> defines strtoumax as a macro (and not as a
89696         function).
89697
89698 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89699
89700         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89701         that we can shift, multiply and divide unsigned long long
89702         values; Ultrix cc can't do it.
89703
89704 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89705
89706         * m4/mktime.m4: New file, which is a preview of what should appear
89707         in the next public autoconf release.
89708
89709 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89710
89711         * m4/lfs.m4: Remove this file.
89712         * m4/largefile.m4: New file.  It contains the old contents of
89713         lfs.m4, except that all names with prefix AC_LFS have been
89714         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89715         compatible with future autoconf versions.  Also, some minor m4
89716         quoting problems have been fixed.
89717
89718 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89719
89720         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89721         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89722         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89723         and simplify the shell code.
89724
89725 1999-08-01  Jim Meyering  <meyering@ascend.com>
89726
89727         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89728         m4.
89729
89730 1999-07-20  Jim Meyering  <meyering@ascend.com>
89731
89732         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89733
89734 1999-07-15  Jim Meyering  <meyering@ascend.com>
89735
89736         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89737
89738 1999-05-22  Jim Meyering  <meyering@ascend.com>
89739
89740         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89741
89742 1999-05-20  Jim Meyering  <meyering@ascend.com>
89743
89744         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89745         Add a colon after each `then' in case $4 is empty.
89746
89747 1999-05-16  Jim Meyering  <meyering@ascend.com>
89748
89749         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89750
89751 1999-05-10  Jim Meyering  <meyering@ascend.com>
89752
89753         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89754
89755         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89756         AC_FUNC_MKTIME.
89757
89758 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89759
89760         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89761
89762 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89763
89764         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89765         not CPPFLAGS, so that linking works correctly in IRIX.
89766
89767 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89768
89769         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89770
89771 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89772
89773         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89774         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89775         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89776         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89777         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89778
89779         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89780
89781 1999-04-20  Jim Meyering  <meyering@ascend.com>
89782
89783         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89784         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89785         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89786
89787 1999-04-18  Jim Meyering  <meyering@ascend.com>
89788
89789         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89790         * m4/jm-macros.m4: Use it.
89791
89792 1999-04-06  Jim Meyering  <meyering@ascend.com>
89793
89794         * m4/strftime.m4: Remove test for %f.
89795
89796 1999-03-29  Jim Meyering  <meyering@ascend.com>
89797
89798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89799         superset of the AC_TYPE_* checks in the textutils, fileutils,
89800         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89801         AC_TYPE_PID_T.
89802
89803 1999-03-28  Jim Meyering  <meyering@ascend.com>
89804
89805         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89806         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89807         replaced e.g., in the *.sh files of the sh-utils.
89808
89809 1999-03-20  Jim Meyering  <meyering@ascend.com>
89810
89811         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89812         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89813         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89814
89815 1999-03-19  Jim Meyering  <meyering@ascend.com>
89816
89817         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89818
89819 1999-03-12  Jim Meyering  <meyering@ascend.com>
89820
89821         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89822
89823 1999-03-07  Jim Meyering  <meyering@ascend.com>
89824
89825         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89826         declared.
89827
89828 1999-02-17  Jim Meyering  <meyering@ascend.com>
89829
89830         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89831         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89832
89833 1999-02-07  Jim Meyering  <meyering@ascend.com>
89834
89835         * m4/group-member.m4: New file -- extracted from sh-utils'
89836         configure.in.
89837
89838         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89839         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89840
89841 1999-02-06  Jim Meyering  <meyering@ascend.com>
89842
89843         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89844         * m4/fnmatch.m4: Likewise.
89845         * m4/getgroups.m4: Likewise.
89846         * m4/lstat.m4: Likewise.
89847         * m4/malloc.m4: Likewise.
89848         * m4/putenv.m4: Likewise.
89849         * m4/realloc.m4: Likewise.
89850         * m4/regex.m4: Likewise.
89851         * m4/stat.m4: Likewise.
89852         * m4/strftime.m4: Likewise.
89853         Suggestion from Alain Magloire.
89854
89855         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89856         * m4/fnmatch.m4: Likewise.
89857         * m4/getgroups.m4: Likewise.
89858         * m4/getline.m4: Likewise.
89859         * m4/lstat.m4: Likewise.
89860         * m4/malloc.m4: Likewise.
89861         * m4/memcmp.m4: Likewise.
89862         * m4/putenv.m4: Likewise.
89863         * m4/realloc.m4: Likewise.
89864         * m4/regex.m4: Likewise.
89865         * m4/stat.m4: Likewise.
89866         * m4/strftime.m4: Likewise.
89867         Suggestion from Alain Magloire.
89868
89869         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89870         an argument.
89871
89872         * m4/regex.m4: Add a run-time Test for proper operation of
89873         re_compile_pattern.
89874
89875 1999-01-31  Jim Meyering  <meyering@ascend.com>
89876
89877         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89878
89879 1999-01-30  Jim Meyering  <meyering@ascend.com>
89880
89881         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89882
89883         * m4/jm-mktime.m4: Make this a wrapper around the official
89884         AM_FUNC_MKTIME rather than my private copy, now that the official one
89885         is up to date.
89886         * m4/mktime.m4: Remove file.
89887
89888         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89889         * m4/uptime.m4: Likewise.
89890         * m4/uintmax_t.m4: Likewise.
89891
89892 1999-01-28  Jim Meyering  <meyering@ascend.com>
89893
89894         * m4/jm-macros.m4: Use jm_AFS.
89895         * m4/afs.m4: New file (from fileutils' configure.in).
89896
89897         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89898         * m4/chown.m4: Likewise.
89899         * m4/d-ino.m4: Likewise.
89900         * m4/d-type.m4: Likewise.
89901         * m4/fnmatch.m4: Likewise.
89902         * m4/getgroups.m4: Likewise.
89903         * m4/gettext.m4: Likewise.
89904         * m4/jm-mktime.m4: Likewise.
89905         * m4/jm-winsz2.m4: Likewise.
89906         * m4/lcmessage.m4: Likewise.
89907         * m4/ls-mntd-fs.m4: Likewise.
89908         * m4/malloc.m4: Likewise.
89909         * m4/memcmp.m4: Likewise.
89910         * m4/putenv.m4: Likewise.
89911         * m4/realloc.m4: Likewise.
89912         * m4/st_mtim.m4: Likewise.
89913         * m4/strftime.m4: Likewise.
89914
89915 1999-01-16  Jim Meyering  <meyering@ascend.com>
89916
89917         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89918         (ARGMATCH_DIE_DECL): Define.
89919
89920 1999-01-12  Jim Meyering  <meyering@ascend.com>
89921
89922         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89923         Reported by Lars Hecking.
89924
89925 1999-01-10  Jim Meyering  <meyering@ascend.com>
89926
89927         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89928         gross kludge.
89929         * m4/inttypes_h.m4: Likewise.
89930         * m4/lstat.m4: Likewise.
89931         * m4/malloc.m4: Likewise.
89932         * m4/readdir.m4: Likewise.
89933         * m4/realloc.m4: Likewise.
89934         * m4/st_dm_mode.m4: Likewise.
89935         * m4/stat.m4: Likewise.
89936         * m4/utimbuf.m4: Likewise.
89937         * m4/utimes.m4: Likewise.
89938
89939         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89940         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89941         comments in config.h.in are meaningful.
89942
89943         * m4/jm-macros.m4: Require autoconf-2.13 here.
89944
89945         * m4/regex.m4: By default, don't use the included regex.c on systems
89946         with glibc 2.  Suggestion from Uli Drepper.
89947
89948 1999-01-02  Jim Meyering  <meyering@ascend.com>
89949
89950         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89951
89952 1998-12-18  Jim Meyering  <meyering@ascend.com>
89953
89954         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89955         Based on a suggestion from Lars Hecking.
89956
89957 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89958
89959         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89960
89961 1998-11-16  Jim Meyering  <meyering@ascend.com>
89962
89963         * m4/lfs.m4: Double-quote the `uname...` expression.
89964
89965 1998-11-14  Jim Meyering  <meyering@ascend.com>
89966
89967         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89968         * m4/stat.m4: Likewise.
89969
89970 1998-11-03  Jim Meyering  <meyering@ascend.com>
89971
89972         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89973         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89974
89975 1998-10-18  Jim Meyering  <meyering@ascend.com>
89976
89977         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89978
89979 1998-10-17  Jim Meyering  <meyering@ascend.com>
89980
89981         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89982         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89983         calls for those previously hard-coded headers.  Instead, take a new
89984         parameter.
89985         (jm_CHECK_DECLARATIONS): Reflect interface change.
89986         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89987         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89988
89989         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89990
89991 1998-10-14  Jim Meyering  <meyering@ascend.com>
89992
89993         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89994         instead of "TZ=America/Vancouver".  From Paul Eggert.
89995
89996 1998-10-11  Jim Meyering  <meyering@ascend.com>
89997
89998         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89999         This adds a test for a recently added compatibility fix for mktime.c.
90000         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90001
90002 1998-09-27  Jim Meyering  <meyering@ascend.com>
90003
90004         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90005
90006         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90007         ../configure.in, including a change from Gordon Matzigkeit to allow
90008         cross-compiling for the Hurd.
90009
90010         * m4/glibc.m4: New file/macro to test for the GNU C Library
90011         versions 1 and 2.  From Gordon Matzigkeit.
90012         Indent.
90013
90014 1998-09-21  Jim Meyering  <meyering@ascend.com>
90015
90016         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90017
90018 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90019
90020         Port nanosecond-resolution times to UnixWare 2.1.2 and
90021         pedantic Solaris 2.6.
90022
90023         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90024         AC_STRUCT_ST_MTIM.
90025         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90026         Generate name of ns member, instead of just 1 or undef.
90027         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90028
90029 1998-08-15  Jim Meyering  <meyering@ascend.com>
90030
90031         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90032         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90033         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90034         instead of jm_TYPE_SSIZE_T.
90035
90036 1998-08-12  Jim Meyering  <meyering@ascend.com>
90037
90038         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90039
90040 1998-08-02  Jim Meyering  <meyering@ascend.com>
90041
90042         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90043         in acconfig.h manually.
90044
90045 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90046
90047         * m4/st_mtim.m4: New file.
90048
90049 1998-07-28  Jim Meyering  <meyering@ascend.com>
90050
90051         * m4/utimes.m4: Undef stat.
90052
90053 1998-07-25  Jim Meyering  <meyering@ascend.com>
90054
90055         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90056         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90057
90058 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90059
90060         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90061         uid and gid actually remain unchanged.
90062
90063 1998-07-07  Jim Meyering  <meyering@ascend.com>
90064
90065         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90066
90067 1998-07-04  Jim Meyering  <meyering@ascend.com>
90068
90069         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90070         to prove that this macro can be used in packages without regex.c.
90071
90072 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90073
90074         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90075         is to be used.
90076
90077 1998-07-03  Jim Meyering  <meyering@ascend.com>
90078
90079         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90080
90081         * m4/gettext.m4: New file -- from gettext-0.10.35.
90082         * m4/lcmessage.m4: Likewise.
90083         * m4/progtest.m4: Likewise.
90084
90085         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90086         * m4/jm-macros.m4: Require the new macro.
90087
90088 1998-06-29  Jim Meyering  <meyering@ascend.com>
90089
90090         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90091         for the definition of NGROUPS (used in a system header included
90092         by sys/mount.h).
90093
90094 1998-06-28  Jim Meyering  <meyering@ascend.com>
90095
90096         * m4/ls-mntd-fs.m4: New file.
90097         * m4/fstypename.m4: New file.
90098
90099         * m4/jm-macros.m4: Require the new macro.
90100         * m4/jm-glibc-io.m4: New file.
90101
90102 1998-05-19  Jim Meyering  <meyering@ascend.com>
90103
90104         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90105         * m4/lchown.m4: New file.
90106
90107         * m4/Makefile.am.in: New file.
90108         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90109
90110 1998-05-14  Jim Meyering  <meyering@ascend.com>
90111
90112         * m4/Makefile.am (EXTRA_DIST): Add them.
90113         * m4/jm-macros.m4: New file.
90114         * m4/utimbuf.m4: New file.
90115
90116 1998-05-12  Jim Meyering  <meyering@ascend.com>
90117
90118         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90119
90120 1998-05-11  Jim Meyering  <meyering@ascend.com>
90121
90122         * m4/isc-posix.m4: New file.
90123
90124 1998-05-10  Jim Meyering  <meyering@ascend.com>
90125
90126         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90127
90128 1998-05-09  Jim Meyering  <meyering@ascend.com>
90129
90130         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90131         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90132         with automake.
90133
90134         * m4/ssize_t.m4: New file.
90135         * m4/mktime.m4: Remove file -- the new automake has this now.
90136
90137 1998-04-26  Jim Meyering  <meyering@ascend.com>
90138
90139         * m4/assert.m4: New file.
90140         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90141
90142 1998-04-05  Jim Meyering  <meyering@ascend.com>
90143
90144         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90145         (jm_PREREQ): Use it here.
90146
90147 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90148
90149         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90150         in acconfig.h.
90151
90152 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90153
90154         * m4/prereq.m4: New file.
90155         * m4/error.m4: New file.
90156         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90157
90158 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90159
90160         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90161         cache-check for the same variable -- that defeated the purpose of
90162         the test; the test program was never run.  This was a problem only
90163         on systems with losing getline functions -- HP-UX 10.20 is one.
90164         Reported by Bjorn Helgaas.
90165
90166 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90167
90168         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90169
90170 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90171
90172         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90173
90174         * m4/const.m4: New file.  Use an initializer in this declaration
90175         typedef int charset[2]; const charset x;
90176         Reported by Bob Glickstein.
90177
90178 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90179
90180         * m4/chown.m4: Fix reversed types on -1 args to chown.
90181         From Kaveh Ghazi.
90182
90183 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90184
90185         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90186         Add lseek and memchr.
90187
90188         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90189         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90190         have a 20-character limit on names.
90191
90192 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90193
90194         * m4/inttypes_h.m4: New file.
90195         * m4/uintmax_t.m4: New file.
90196         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90197
90198
90199         -----
90200
90201         Local Variables:
90202         coding: utf-8
90203         End:
90204
90205         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90206
90207         Copying and distribution of this file, with or without
90208         modification, are permitted provided the copyright notice
90209         and this notice are preserved.