Add a test suite for the sethostname module.
[gnulib.git] / ChangeLog
1 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2
3         Add a test suite for the sethostname module.
4         * modules/sethostname-tests: New file.  A test program
5         for the sethostname module.
6         * tests/test-sethostname.c: Likewise.
7
8 2011-12-03  Bruno Haible  <bruno@clisp.org>
9
10         Tweak last commit.
11         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
12         Fix preprocessor directives indentation. Fix typos.
13         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
14         * modules/unistd (Makefile): Likewise.
15
16 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
17
18         Integrate the sethostname module into unistd.
19         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
20         into the unistd.h header.
21         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
22         preprocessor directives.
23         * modules/unistd: Setup the Makefile substitutions of the
24         SETHOSTNAME preprocessor directives.
25
26 2011-12-03  Bruno Haible  <bruno@clisp.org>
27
28         Tweak last commit.
29         * lib/sethostname.c: Don't include <string.h>.
30         (sethostname): No need to copy the argument string to the stack. Don't
31         call clearerr. Preserve errno when fprintf failed.
32         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
33         Don't invoke AC_REPLACE_FUNCS.
34         * modules/sethostname (Link): Remove empty section.
35         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
36         failure problem.
37
38 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
39
40         New module 'sethostname'.
41         * lib/sethostname.c (sethostname): New file.  Provide sethostname
42         for systems that lack it.
43         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
44         sethostname declaration and function.
45         * modules/sethostname: New file.  Define the sethostname module.
46
47 2011-12-03  Bruno Haible  <bruno@clisp.org>
48
49         Tweak last commit.
50         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
51
52 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
53
54         Split the HOST_NAME_MAX detection into a separate m4 macro.
55         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
56         macro so it can be used by the pending sethostname module.
57
58 2011-12-03  Bruno Haible  <bruno@clisp.org>
59
60         Fix module descriptions syntax.
61         * modules/argv-iter (License): Fix syntax.
62         * modules/di-set (License): Likewise.
63         * modules/ino-map (License): Likewise.
64         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
65
66 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67
68         stdalign: port to Clang 3.0
69         Problem reported by Simon Josefsson in
70         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
71         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
72         which has <stdalign.h> but which does not define alignof.
73         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
74
75 2011-12-01  Eric Blake  <eblake@redhat.com>
76
77         mktempd: silence dd usage
78         * build-aux/mktempd (rand_bytes): Silence dd.
79
80 2011-11-30  Simon Josefsson  <simon@josefsson.org>
81
82         manywarnings: Don't mention gcc version in docstring.
83         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
84         Jim Meyering <meyering@redhat.com>.
85
86 2011-11-30  Jim Meyering  <meyering@redhat.com>
87
88         hash: mark a few floating point constants with "f" suffix
89         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
90         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
91         floating point constants with "f", since they're destined to be
92         saved/used as "float"s.
93
94 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
95
96         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
97         * tests/test-float.c (test_long_double): Correct and re-enable the
98         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
99
100 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
101
102         Avoid subtracting two pointers that don't point into the same block.
103         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
104         only pointers into the same memory block are subtracted. We cannot
105         assume that sizeof (ptrdiff_t) == sizeof (void *).
106
107 2011-11-29  Eric Blake  <eblake@redhat.com>
108
109         maint.mk: add syntax check for use of compare from init.sh
110         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
111         moved here from coreutils.
112
113         manywarnings: drop -Wunsuffixed-float-constants
114         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
115         '1.0D', which is the only way to silence this warning for 'double'.
116
117 2011-11-29  Jim Meyering  <meyering@redhat.com>
118
119         hash: mark compute_bucket_size with the pure attribute
120         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
121
122         quotearg, propername: correct pragma guard expression
123         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
124         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
125
126 2011-11-28  Jim Meyering  <meyering@redhat.com>
127
128         propername: do not mark proper_name with the const attribute
129         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
130         since it examines data pointed to by its parameter.
131         * lib/propername.c (proper_name): Instead, add a pragma to suppress
132         the suggestion from -Wsuggest-attribute=const.
133
134         propername: mark one more function as const
135         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
136
137 2011-11-27  Jim Meyering  <meyering@redhat.com>
138
139         mark functions with const and pure attributes
140
141         Mark functions per suggestions from gcc-4.6 when using these options:
142         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
143         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
144         Follow these guidelines: when possible, apply the attribute to
145         an extern declaration, not to its definition.  Apply it to the
146         definition only when the definition is static.
147         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
148         * lib/argv-iter.h (argv_iter_n_args): Likewise.
149         * lib/base64.h (isbase64): Likewise.
150         * lib/basename-lgpl.c (last_component, base_len): Likewise.
151         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
152         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
153         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
154         (c_tolower, c_toupper): Likewise.
155         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
156         * lib/chdir-long.c (find_non_slash): Likewise.
157         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
158         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
159         * lib/file-type.h (file_type): Likewise.
160         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
161         * lib/filevercmp.c (verrevcmp): Likewise.
162         * lib/freadahead.h (freadahead): Likewise.
163         * lib/fts.c (fts_maxarglen): Likewise.
164         * lib/hash-pjw.h (hash_pjw): Likewise.
165         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
166         * lib/hash.c (is_prime, next_prime): Likewise.
167         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
168         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
169         (hash_table_ok, hash_get_first, hash_string): Likewise.
170         (compute_bucket_size): Likewise.
171         * lib/i-ring.h (i_ring_empty): Likewise.
172         * lib/isnan.c (isnanl): Likewise.
173         * lib/math.h (isnanl, rpl_isnanl): Likewise.
174         * lib/memcasecmp.h (memcasecmp): Likewise.
175         * lib/memchr2.h (memchr2): Likewise.
176         * lib/memcmp2.h (memcmp2): Likewise.
177         * lib/parse-datetime.y (lookup_zone): Likewise.
178         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
179         [!WINDOWS_SOCKETS]: Likewise.
180         * lib/strnlen1.h (strnlen1): Likewise.
181         * lib/uniwidth.in.h (uc_width): Likewise.
182         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
183         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
184         (quoting_options_from_style): Add a comment.
185         * lib/propername.h (proper_name): Add a comment.
186
187 2011-11-27  Bruno Haible  <bruno@clisp.org>
188
189         Remove unused macros from !_LIBC code in glibc-borrowed files.
190         * lib/fnmatch.c (STRCOLL): Remove macro.
191         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
192         * lib/glob.c (__stat, __readdir64): Remove macros.
193         * lib/tempname.c (__open64, __xstat64): Remove macros.
194         Suggested by Paul Eggert.
195
196 2011-11-27  Bruno Haible  <bruno@clisp.org>
197
198         getcwd: Fix link error on MSVC 9.
199         * modules/getcwd (Depends-on): Add readdir, rewinddir.
200
201 2011-11-27  Bruno Haible  <bruno@clisp.org>
202
203         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
204         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
205         HAVE_OPENDIR is 0.
206         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
207         HAVE_CLOSEDIR is 0.
208         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
209         is 0.
210         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
211
212 2011-11-27  Bruno Haible  <bruno@clisp.org>
213
214         getcwd: Fix bug from 2011-08-17.
215         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
216         platforms that need it.
217         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
218         code of 4 to be a failure, not a success. This ensures that
219         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
220
221 2011-11-27  Bruno Haible  <bruno@clisp.org>
222
223         binary-io tests: Avoid test failure on mingw when libtool is used.
224         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
225         Don't verify the size of t-bin-out1.tmp here.
226         * tests/test-binary-io.sh: Verify it here.
227         Reported by Simon Josefsson.
228
229 2011-11-26  Bruno Haible  <bruno@clisp.org>
230
231         Fix conflict between two instantiations of module 'unistd'.
232         * gnulib-tool (func_emit_autoconf_snippet): Substitute
233         ${include_guard_prefix} also in the autoconf snippet.
234         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
236         GNULIB_UNISTD_H_GETOPT.
237         * modules/getopt-posix (configure.ac): Set the
238         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
239         * modules/getopt-gnu (configure.ac): Likewise.
240         * modules/unistd (Makefile.am): Change the substitution value of
241         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
242         Reported by Simon Josefsson.
243
244 2011-11-25  Bruno Haible  <bruno@clisp.org>
245
246         pagealign_alloc: Doc and comments.
247         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
248         module.
249         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
250
251 2011-11-25  Jim Meyering  <meyering@redhat.com>
252
253         test-update-copyright.sh: avoid false-positive failure
254         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
255         around false positive failure on Cygwin/Windows.  The latter was
256         matching erroneously-created files with names like
257         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
258
259 2011-11-25  Simon Josefsson  <simon@josefsson.org>
260
261         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
262         * m4/valgrind-tests.m4: Check that the parameters that will be
263         used works, not just a subset of them.  Reported by Bruno Haible
264         <bruno@clisp.org>.
265
266 2011-11-24  Jim Meyering  <meyering@redhat.com>
267
268         test-stdalign.c: comment out long double tests
269         * tests/test-stdalign.c: Don't try to reduce alignment of long double
270         variables.  That provokes errors like this from gcc-4.7.0 20111124:
271         error: '_Alignas' specifiers cannot reduce alignment of \
272         'static_longdouble_alignas'.
273
274 2011-11-22  Jim Meyering  <meyering@redhat.com>
275
276         init.sh: make "compare /dev/null FILE" output more readable
277         * tests/init.sh (compare_): Document the preferred order of arguments.
278         (emit_diff_u_header_): New function.
279         (compare_dev_null_): Emit a simulated diff, rather than just the
280         contents of the unexpected file.  Suggestion from Bruno Haible.
281
282 2011-11-21  Jim Meyering  <meyering@redhat.com>
283             Eric Blake  <eblake@redhat.com>
284
285         init.sh: work around OSF/1 5.1's mishandling of /dev/null
286         * tests/init.sh: Make our compare function slightly more portable.
287         Reported by Bruno Haible in
288         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
289
290 2011-11-21  Simon Josefsson  <simon@josefsson.org>
291
292         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
293         before using it, in code that ends up in config.h.
294
295 2011-11-20  Bruno Haible  <bruno@clisp.org>
296
297         getcwd: Work around getcwd bug on AIX 5..7.
298         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
299         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
300         Use a different value for gl_cv_func_getcwd_path_max. Move the
301         definition of HAVE_PARTLY_WORKING_GETCWD from here...
302         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
303         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
304         Define HAVE_MINIMALLY_WORKING_GETCWD.
305         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
306         where it is not even minimally working, that is, on AIX.
307         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
308         m4/getcwd-path-max.m4.
309         (main): Update exit code computation.
310         * doc/posix-functions/getcwd.texi: Mention list of platforms where
311         getcwd does not handle long file names.
312
313 2011-11-20  Bruno Haible  <bruno@clisp.org>
314
315         getcwd: Fix bug from 2009-09-10.
316         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
317         like "no".
318
319 2011-11-20  Simon Josefsson  <simon@josefsson.org>
320
321         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
322
323 2011-11-20  Bruno Haible  <bruno@clisp.org>
324
325         fma tests: Avoid shadowing local variables.
326         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
327         expected.
328
329 2011-11-20  Bruno Haible  <bruno@clisp.org>
330
331         copysignf tests: Fix.
332         * tests/test-copysignf.c: Fix signature check.
333
334 2011-11-20  Bruno Haible  <bruno@clisp.org>
335
336         fma: Remove unused code.
337         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
338         unused macros.
339
340 2011-11-20  Bruno Haible  <bruno@clisp.org>
341
342         sethostname: Fix doc about AIX.
343         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
344         sethostname; it has it.
345
346         sethostname: Mention more portability problems.
347         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
348         problem.
349         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
350
351 2011-11-19  Bruno Haible  <bruno@clisp.org>
352
353         Depend on module fcntl-h when AT_FDCWD is used.
354         * modules/utimens (Depends-on): Add fcntl-h.
355         * modules/areadlinkat (Depends-on): Likewise.
356         * modules/areadlinkat-with-size (Depends-on): Likewise.
357         * modules/faccessat (Depends-on): Likewise.
358         * modules/fchmodat (Depends-on): Likewise.
359         * modules/fchownat (Depends-on): Likewise.
360         * modules/getcwd (Depends-on): Likewise.
361         * modules/mkdirat (Depends-on): Likewise.
362         * modules/mkfifoat (Depends-on): Likewise.
363         * modules/readlinkat (Depends-on): Likewise.
364         * modules/symlinkat (Depends-on): Likewise.
365         * modules/dup2-tests (Depends-on): Likewise.
366         * modules/fdutimensat-tests (Depends-on): Likewise.
367         * modules/futimens-tests (Depends-on): Likewise.
368
369 2011-11-19  Bruno Haible  <bruno@clisp.org>
370
371         euidaccess: Update a comment.
372         * lib/euidaccess.c: Update comment about platforms with faccessat.
373
374 2011-11-19  Bruno Haible  <bruno@clisp.org>
375
376         openat: Fix file list.
377         * modules/openat (Files): Remove lib/at-func.c.
378
379 2011-11-19  Bruno Haible  <bruno@clisp.org>
380
381         fstatat: Simplify.
382         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
383         gnulib should define rpl_fstatat, there is a
384         "#define fstatat rpl_fstatat" in <sys/stat.h>.
385
386 2011-11-19  Bruno Haible  <bruno@clisp.org>
387
388         Ensure 'inline' can be used in tests/test-utimens-common.h.
389         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
390         * modules/futimens-tests (configure.ac): Likewise.
391         * modules/utimens-tests (configure.ac): Likewise.
392         * modules/utimensat-tests (configure.ac): Likewise.
393
394 2011-11-19  Simon Josefsson  <simon@josefsson.org>
395
396         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
397         not hash_insert0.
398         (hash_insert_if_absent): Doc fix.
399
400 2011-11-19  Simon Josefsson  <simon@josefsson.org>
401
402         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
403
404 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
405
406         test-getcwd: disambiguate exit status
407         * tests/test-getcwd.c (test_long_name): Return 0..7.
408         (main): Exit with an unambiguous exit status.  The old
409         code yielded a mysterious mixture of two failure codes.
410
411         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
412         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
413         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
414         rpl_fstatat or fstatat.  This should fix the other problem
415         reported by Kai Habel in
416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
417         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
419         and I reproduced it on a Solaris 8 host we still have in production.
420
421 2011-11-18  Jim Meyering  <meyering@redhat.com>
422
423         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
424         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
425         Add a sentence to the comment.
426         (hash_insert0): New function that simply calls hash_insert_if_absent.
427         * lib/hash.h (hash_insert_if_absent): Declare it.
428         (hash_insert0): Add deprecation attribute.
429         (_GL_ATTRIBUTE_DEPRECATED): Define.
430         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
431         not hash_insert0.
432         * NEWS: Mention it, even though it's not really an incompatible change.
433
434 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
435
436         openat: avoid compilation failure due to lack of <errno.h> inclusion
437         * lib/openat.c: Include <errno.h>.
438
439 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
440
441         * modules/getcwd (Depends-on): Add fdopendir.
442         This fixes one of the two problems reported by Kai Habel in
443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
444
445         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
446         stdalign problem reported by Ian Beckwith in
447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
448         * modules/crypto/gc-arcfour (Depends-on):
449         Depend conditionally on crypto/arcfour.
450         * modules/crypto/gc-arctwo (Depends-on):
451         Depend conditionally on crypto/arctwo.
452         * modules/crypto/gc-des (Depends-on):
453         Depend conditionally on crypto/des.
454         * modules/crypto/gc-hmac-md5 (Depends-on):
455         Depend conditionally on crypto/hmac-md5.
456         * modules/crypto/gc-hmac-sha1 (Depends-on):
457         Depend conditionally on crypto/hmac-sha1.
458         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
459         * modules/crypto/gc-md4 (Depends-on):
460         Depend conditionally on crypto/md4.
461         * modules/crypto/gc-md5 (Depends-on):
462         Depend conditionally on crypto/md5.
463         * modules/crypto/gc-rijndael (Depends-on):
464         Depend conditionally on crypto/rijndael.
465         * modules/crypto/gc-sha1 (Depends-on):
466         Depend conditionally on crypto/sha1.
467         * modules/crypto/gc-arcfour:
468         * modules/crypto/gc-arctwo:
469         * modules/crypto/gc-des:
470         * modules/crypto/gc-hmac-md5:
471         * modules/crypto/gc-hmac-sha1:
472         * modules/crypto/gc-md2:
473         * modules/crypto/gc-md4:
474         * modules/crypto/gc-md5:
475         * modules/crypto/gc-rijndael:
476         * modules/crypto/gc-sha1:
477         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
478         now that the conditional dependencies do the work for us.
479
480 2011-11-17  Jim Meyering  <meyering@redhat.com>
481
482         tests: factor st_ctime-comparison out of two headers
483         * tests/test-utimens-common.h (ctime_compare): Define.
484         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
485         * tests/test-lutimens.h (test_lutimens): Likewise.
486         * tests/test-utimens.h (test_utimens): Likewise.
487
488         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
489         Invoke the test program via an init.sh-using wrapper.
490         * tests/test-getcwd.sh: New file.
491         * modules/getcwd-tests (Files): Add it.
492         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
493
494 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
495
496         gitlog-to-changelog: support multi-author commits.
497         The FSF cares about keeping track of all authors of patches to its
498         projects, but Git doesn't provide obvious support for multi-author
499         changesets. Consensus seems to be forming around the use of extra
500         Signed-off-by inspired lines in the log message formatted as
501         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
502         multi-author commits between version control systems.
503         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
504         log message and output in standard ChangeLog multi-author format.
505         Reported by Peter Rosin <peda@lysator.liu.se>
506
507 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
508             Bruno Haible  <bruno@clisp.org>
509
510         Fix some modules' file list.
511         * modules/fstatat (Files): Add m4/lstat.m4.
512         * modules/openat (Files): Likewise.
513         * modules/unlinkat (Files): Likewise.
514
515 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
516
517         maint.mk: fix tight-scope.mk generation in VPATH builds.
518         * top/maint.mk (tight-scope.mk): Make sure to prefix file
519         reference with $(srcdir) so that the file is found correctly even
520         when running `make syntax-check' in a VPATH build.
521
522 2011-11-13  Bruno Haible  <bruno@clisp.org>
523             Jim Meyering  <meyering@redhat.com>
524
525         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
526         * tests/init.sh (compare): Remove "No differences encountered" or
527         synonymous output from the 'diff' program.
528
529 2011-11-13  Bruno Haible  <bruno@clisp.org>
530
531         Makefile: Tweak indentation.
532         * Makefile: Use tab as first character in every line that contains rule
533         commands.
534
535 2011-11-13  Bruno Haible  <bruno@clisp.org>
536
537         Syntax check for copyright statements.
538         * check-copyright: New file.
539         * Makefile (sc_check_copyright): New rule.
540
541 2011-11-13  Simon Josefsson  <simon@josefsson.org>
542
543         * build-aux/git-version-gen: Add --prefix to configure the tag
544         match string.
545
546 2011-11-13  Simon Josefsson  <simon@josefsson.org>
547
548         * build-aux/git-version-gen: Add --help and --version.
549
550 2011-11-12  Jim Meyering  <meyering@redhat.com>
551
552         revamp the other test-exclude?.sh scripts to use init.sh, too
553         * tests/test-exclude1.sh: Use init.sh.
554         * tests/test-exclude2.sh: Likewise.
555         * tests/test-exclude3.sh: Likewise.
556         * tests/test-exclude4.sh: Likewise.
557         * tests/test-exclude5.sh: Likewise.
558         * tests/test-exclude6.sh: Likewise.
559         * tests/test-exclude7.sh: Likewise.
560         * tests/test-exclude8.sh: Likewise.
561         * modules/exclude-tests (Files): List init.sh.
562
563         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
564         These shell scripts ignored failure of the binary test-exclude,
565         so making the latter return 77 didn't cause them to be skipped.
566         * tests/test-exclude5.sh: Exit with test-exclude's error status
567         when that program fails.  Revamp to use init.sh.
568         * tests/test-exclude2.sh: Likewise.
569
570         test-exclude: fix a typo
571         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
572
573 2011-11-11  Bruno Haible  <bruno@clisp.org>
574
575         obstack: Fix compilation error on MSVC 9.
576         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
577
578 2011-11-11  Jim Meyering  <meyering@redhat.com>
579
580         test-exclude: skip tests rather than failing on deficient systems
581         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
582         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
583         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
584         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
585
586 2011-11-10  Bruno Haible  <bruno@clisp.org>
587
588         ptsname_r test: Avoid gcc warning on glibc systems.
589         * tests/test-ptsname_r.c (null_ptr): New function.
590         (test_errors): Use it.
591
592 2011-11-10  Bruno Haible  <bruno@clisp.org>
593
594         ptsname_r: Avoid compilation error on OSF/1 5.1.
595         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
597         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
598         function is not declared or incompatibly declared.
599         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
600         * modules/ptsname_r (Depends-on, configure.ac): Update.
601         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
602
603 2011-11-10  Bruno Haible  <bruno@clisp.org>
604
605         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
606         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
607         When cross-compiling, guess yes on all platforms except AIX.
608         Reported by Ludovic Courtès <ludo@gnu.org>.
609
610 2011-11-09  Bruno Haible  <bruno@clisp.org>
611
612         ptsname_r tests: Fix bugs.
613         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
614         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
615
616 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
617
618         fstatat: work with cross-compilation
619         Problem reported by Ludovic Courtès in
620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
621         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
622         "cross-compiling" and assume the bug is present.  Replace
623         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
624         an inverted sense, to be more conservative about our assumptions.
625         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
626
627 2011-11-09  Bruno Haible  <bruno@clisp.org>
628
629         Improve MODULES.html output.
630         * modules/mkfifoat (Description): Use the word "function".
631         * modules/readlinkat (Description): Likewise.
632         * modules/symlinkat (Description): Likewise.
633
634 2011-11-09  Eric Blake  <eblake@redhat.com>
635
636         ptsname_r-tests: new test module
637         * modules/ptsname_r-tests: New module.
638         * tests/test-ptsname_r.c: New file.
639
640         ptsname_r: new module
641         * modules/ptsname_r: New module.
642         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
643         * lib/ptsname.c (__ptsname_r): Split...
644         * lib/ptsname_r.c: ...into new file.
645         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
646         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
647         * modules/stdlib (Makefile.am): Substitute witnesses.
648         * lib/stdlib.in.h (ptsname_r): Declare it.
649         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
650         * MODULES.html.sh (Misc): Likewise.
651         * modules/ptsname (Depends-on): Alter dependency.
652         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
653
654 2011-11-09  Jim Meyering  <meyering@redhat.com>
655
656         announce-gen: be more concise when there's only one URL+tarball
657         * build-aux/announce-gen (get_tool_versions): When you distribute
658         only one type of tarball, combine the first two "Here are..."
659         sections and make the key-checking grammar independent of
660         how many tarballs there are.
661
662 2011-11-09  Eric Blake  <eblake@redhat.com>
663
664         openpty: provide a stub on mingw
665         * lib/pty.in.h (includes): Provide forward declarations.
666         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
667
668         raise: fix mingw handling of SIGPIPE
669         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
670
671 2011-11-08  Bruno Haible  <bruno@clisp.org>
672
673         More conditional dependencies.
674         * modules/faccessat (Depends-on): Add conditions.
675         * modules/fchmodat (Depends-on): Likewise.
676         * modules/fchownat (Depends-on): Likewise.
677         * modules/fstatat (Depends-on): Likewise.
678         * modules/mkfifoat (Depends-on): Likewise.
679         * modules/readlinkat (Depends-on): Likewise.
680         * modules/symlinkat (Depends-on): Likewise.
681         * modules/unlinkat (Depends-on): Likewise.
682         * modules/utimensat (Depends-on): Likewise.
683         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
684         * modules/linkat (Depends-on): Refine the conditions.
685         * modules/renameat (Depends-on): Likewise.
686
687 2011-11-08  Bruno Haible  <bruno@clisp.org>
688
689         faccessat: Move AC_LIBOBJ invocation to module description.
690         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
691         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
692         invocation from here...
693         * modules/faccessat (configure.ac): ... to here. Invoke
694         gl_PREREQ_FACCESSAT.
695
696 2011-11-08  Bruno Haible  <bruno@clisp.org>
697
698         faccessat: Simplify autoconf macro.
699         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
700         gl_FUNC_EUIDACCESS.
701
702 2011-11-08  Bruno Haible  <bruno@clisp.org>
703
704         renameat: Fix dependencies.
705         * modules/renameat (Depends-on): Add stdbool.
706
707 2011-11-08  Bruno Haible  <bruno@clisp.org>
708
709         mkfifoat: Fix module description.
710         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
711         not gl_UNISTD_MODULE_INDICATOR.
712
713 2011-11-08  Bruno Haible  <bruno@clisp.org>
714
715         fstatat: Remove unused dependency.
716         * modules/fstatat (Depends-on): Remove fstat.
717
718 2011-11-08  Simon Josefsson  <simon@josefsson.org>
719
720         GNUmakefile: behave when Makefile is missing.
721         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
722
723 2011-11-08  Bruno Haible  <bruno@clisp.org>
724
725         openat: Conditionalize dependencies.
726         * lib/openat.c: Reduce the scope of some #includes.
727         * modules/openat (Depends-on): Add conditions.
728
729 2011-11-07  Jim Meyering  <meyering@redhat.com>
730
731         maint.mk: extract GPG key ID without using a temporary file
732         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
733         without using a temporary file.  Based on a suggestion from Werner Koch
734         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
735
736 2011-11-07  Eric Blake  <eblake@redhat.com>
737
738         grantpt: fix typo
739         * lib/stdlib.in.h (grantpt): Check correct function.
740
741         maint.mk: silence new syntax check
742         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
743
744 2011-11-06  Bruno Haible  <bruno@clisp.org>
745
746         Doc about floating-point and math API.
747         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
748         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
749
750 2011-11-06  Bruno Haible  <bruno@clisp.org>
751
752         stdalign tests: Skip the test when compiled by Sun C.
753         * tests/test-stdalign.c (main): Skip the test on Sun C.
754
755 2011-11-06  Bruno Haible  <bruno@clisp.org>
756
757         ansi-c++-opt: Complete the 2011-06-05 change.
758         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
759         does not support namespaces, set the variable to "no", not to ":".
760
761 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
762
763         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
764
765 2011-11-06  Bruno Haible  <bruno@clisp.org>
766
767         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
768         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
769         (minus_zerol) [HP-UX]: New macro.
770         (unary_minus) [HP-UX]: New function.
771         (copysignl) [HP-UX]: Use unary_minus function.
772
773 2011-11-06  Bruno Haible  <bruno@clisp.org>
774
775         ldexp, ldexpf, ldexpl: Enhance tests.
776         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
777         and tests/test-ldexpl.c.
778         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
779         LDEXP, MIN_EXP, MAX_EXP): New macros.
780         Include test-ldexp.h.
781         (main): Just call test_function.
782         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
783         infinity.h, nan.h.
784         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
785         MAX_EXP): New macros.
786         Include test-ldexp.h.
787         (x, y): Remove variables.
788         (main): Just call test_function.
789         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
790         infinity.h, nan.h.
791         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
792         MAX_EXP): New macros.
793         Include test-ldexp.h.
794         (x, y): Remove variables.
795         (main): Just call test_function.
796         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
797         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
798         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
799         (Depends-on): Add isnand-nolibm, signbit, float.
800         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
801         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
802         (Depends-on): Add isnanf-nolibm, signbit, float.
803
804 2011-11-06  Bruno Haible  <bruno@clisp.org>
805
806         math tests: Cosmetics.
807         * tests/test-math-c++.cc: Reorder declarations.
808
809 2011-11-05  Bruno Haible  <bruno@clisp.org>
810
811         fma*: Simplify test.
812         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
813         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
814
815         Tests for module 'fmal'.
816         * modules/fmal-tests: New file.
817         * tests/test-fmal1.c: New file.
818         * tests/test-fmal2.c: New file.
819
820         New module 'fmal'.
821         * lib/math.in.h (fmal): New declaration.
822         * lib/fmal.c: New file.
823         * m4/fmal.m4: New file.
824         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
826         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
827         REPLACE_FMAL.
828         * modules/fmal: New file.
829         * doc/posix-functions/fmal.texi: Mention the new module and the various
830         bugs.
831
832         Tests for module 'fmaf'.
833         * modules/fmaf-tests: New file.
834         * tests/test-fmaf1.c: New file.
835         * tests/test-fmaf2.c: New file.
836
837         New module 'fmaf'.
838         * lib/math.in.h (fmaf): New declaration.
839         * lib/fmaf.c: New file.
840         * m4/fmaf.m4: New file.
841         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
842         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
843         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
844         REPLACE_FMAF.
845         * modules/fmaf: New file.
846         * doc/posix-functions/fmaf.texi: Mention the new module and the various
847         bugs.
848
849         Tests for module 'fma'.
850         * modules/fma-tests: New file.
851         * tests/test-fma1.c: New file.
852         * tests/test-fma1.h: New file.
853         * tests/test-fma2.c: New file.
854         * tests/test-fma2.h: New file.
855
856         New module 'fma'.
857         * lib/math.in.h (fma): New declaration.
858         * lib/fma.c: New file.
859         * m4/fma.m4: New file.
860         * m4/fegetround.m4: New file.
861         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
863         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
864         REPLACE_FMA.
865         * modules/fma: New file.
866         * doc/posix-functions/fma.texi: Mention the new module and the various
867         bugs.
868
869         Extend gl_MATHFUNC.
870         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
871         Support 'void' as argument type.
872         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
873
874 2011-11-05  Jim Meyering  <meyering@redhat.com>
875
876         maint.mk: also prohibit inclusion of dirent.h without use
877         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
878
879 2011-11-05  Bruno Haible  <bruno@clisp.org>
880
881         ldexpl tests: Avoid test failure on MSVC 9.
882         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
883         value. Needed in order to enforce the conversion from a value greater
884         than LDBL_MAX to Infinity.
885
886 2011-11-05  Bruno Haible  <bruno@clisp.org>
887
888         New modules 'at-internal', 'openat-h', split off from module 'openat'.
889         * modules/at-internal: New file, extracted from modules/openat.
890         * modules/openat-h: New file.
891         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
892         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
893         * modules/openat (Description): Add reference to POSIX function.
894         (Files): Remove lib/openat.h, lib/openat-proc.c.
895         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
896         intprops, unistd.
897         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
898         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
899         gl_FCNTL_MODULE_INDICATOR.
900         (Include): Remove unistd.h, openat.h.
901         * modules/areadlinkat (Files): Add lib/at-func.c.
902         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
903         openat-die, openat-h, save-cwd.
904         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
905         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
906         openat-die, openat-h, save-cwd, unistd.
907         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
908         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
909         openat-h, save-cwd. Remove fcntl-h, openat.
910         * modules/fchmodat (Files): Remove lib/openat.h.
911         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
912         openat, stdbool, unistd.
913         * modules/fchownat (Files): Remove lib/openat.h.
914         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
915         openat, stdbool, sys_stat.
916         * modules/fdopendir (Files): Remove lib/openat-priv.h,
917         lib/openat-proc.c.
918         (Depends-on): Add at-internal.
919         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
920         * modules/fstatat (Files): Remove lib/openat.h.
921         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
922         stdbool, unistd.
923         * modules/fts (Depends-on): Add openat-h.
924         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
925         openat.
926         * modules/mkdirat (Files): Remove lib/openat.h.
927         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
928         openat, stdbool, sys_stat.
929         * modules/mkfifoat (Files): Add lib/at-func.c.
930         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
931         openat-h, save-cwd. Remove fcntl-h, openat.
932         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
933         * modules/readlinkat (Files): Add lib/at-func.c.
934         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
935         openat-h, save-cwd. Remove fcntl-h, openat.
936         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
937         openat.
938         * modules/selinux-at (Files): Add lib/at-func.c.
939         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
940         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
941         * modules/symlinkat (Files): Add lib/at-func.c.
942         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
943         openat-h, save-cwd. Remove fcntl-h, openat.
944         * modules/unlinkat (Files): Remove lib/openat.h.
945         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
946         stdbool.
947         * modules/utimensat (Files): Add lib/at-func.c.
948         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
949         openat-die, openat-h, save-cwd.
950         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
951         * modules/fdutimensat-tests (Depends-on): Add openat.
952         * modules/fstatat-tests (Depends-on): Add openat-h.
953         * modules/readlinkat-tests (Depends-on): Add openat.
954         * modules/symlinkat-tests (Depends-on): Add openat.
955
956 2011-11-05  Bruno Haible  <bruno@clisp.org>
957
958         openat: Include <stdbool.h>.
959         * lib/openat.c: Include <stdbool.h>.
960
961 2011-11-04  Bruno Haible  <bruno@clisp.org>
962
963         fchownat, renameat, unlinkat: Fix dependencies.
964         * modules/fchownat (Depends-on): Add fstatat.
965         * modules/renameat (Depends-on): Likewise.
966         * modules/unlinkat (Depends-on): Likewise.
967
968 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
969
970         openat: remove direct dependency on dirent
971         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
972         and hasn't been needed ever since fdopendir was split into its own
973         module on 2009-08-31.
974         * modules/openat (Depends-on): Remove dirent.
975
976 2011-11-04  Bruno Haible  <bruno@clisp.org>
977
978         renameat: Optimize code size.
979         * modules/renameat (configure.ac): Don't compile at-func2.c if
980         REPLACE_RENAMEAT is 1.
981
982 2011-11-04  Bruno Haible  <bruno@clisp.org>
983
984         openat tests: Fix file list.
985         * modules/openat-tests (Files): Add tests/test-open.h.
986
987 2011-11-04  Bruno Haible  <bruno@clisp.org>
988
989         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
990         * modules/fchmodat (Depends-on): Add openat-die.
991         * modules/fchownat (Depends-on): Likewise.
992         * modules/linkat (Depends-on): Likewise.
993         * modules/renameat (Depends-on): Likewise.
994         * modules/openat (Depends-on): Add dirent.
995
996 2011-11-04  Jim Meyering  <meyering@redhat.com>
997
998         at-func*.c: fix comments
999         * lib/at-func2.c: Correct/improve first-line comment.
1000         * lib/at-func.c: Correct grammar in first-line comment.
1001
1002 2011-11-04  Bruno Haible  <bruno@clisp.org>
1003
1004         New module 'mkdirat', split off from module 'openat'.
1005         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1006         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1007         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1008         * modules/mkdirat: New file, extracted from modules/openat.
1009         * modules/openat (Files): Remove lib/mkdirat.c.
1010         (Depends-on): Remove mkdir.
1011         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1012         (Include): Remove <sys/stat.h>.
1013         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1014         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1015         tests/test-mkdir.h.
1016         (Depends-on): Remove ignore-value.
1017         (Makefile.am): Remove rules for test-mkdirat.
1018         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1019         of module 'openat'.
1020         * NEWS: Mention the change.
1021
1022 2011-11-04  Bruno Haible  <bruno@clisp.org>
1023
1024         closedir: Avoid warning on mingw.
1025         * lib/closedir.c: Include <unistd.h>.
1026
1027 2011-11-04  Bruno Haible  <bruno@clisp.org>
1028
1029         New module 'fstatat', split off from module 'openat'.
1030         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1031         defined.
1032         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1033         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1034         gl_FUNC_FSTATAT.
1035         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1036         * modules/fstatat: New file, extracted from modules/openat.
1037         * modules/openat (Files): Remove lib/fstatat.c.
1038         (Depends-on): Remove lstat.
1039         (configure.ac): Remove AC_LIBOBJ of fstatat.
1040         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1041         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1042         tests/test-lstat.h, tests/test-stat.h.
1043         (Depends-on): Remove getcwd-lgpl.
1044         (Makefile.am): Remove rules for test-fstatat.
1045         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1046         of module 'openat'.
1047         * NEWS: Mention the change.
1048         * modules/getcwd (Depends-on): Add fstatat.
1049         * modules/linkat (Depends-on): Likewise.
1050         * modules/mkfifoat-tests (Depends-on): Likewise.
1051         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1052
1053 2011-11-03  Bruno Haible  <bruno@clisp.org>
1054
1055         New module 'unlinkat', split off from module 'openat'.
1056         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1057         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1058         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1059         * modules/unlinkat: New file, extracted from modules/openat. Correct
1060         the dependency conditions.
1061         * modules/openat (Files): Remove lib/unlinkat.c.
1062         (Depends-on): Remove rmdir, unlink.
1063         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1064         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1065         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1066         tests/test-rmdir.h, tests/test-unlink.h.
1067         (Depends-on): Remove unlinkdir.
1068         (Makefile.am): Remove rules for test-unlinkat.
1069         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1070         of module 'openat'.
1071         * NEWS: Mention the change.
1072         * modules/linkat-tests (Depends-on): Add unlinkat.
1073         * modules/mkfifoat-tests (Depends-on): Likewise.
1074         * modules/readlinkat-tests (Depends-on): Likewise.
1075
1076 2011-11-02  Bruno Haible  <bruno@clisp.org>
1077
1078         New module 'fchmodat', split off from module 'openat'.
1079         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1080         defined.
1081         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1082         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1083         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1084         * modules/fchmodat: New file, extracted from modules/openat.
1085         * modules/openat (Files): Remove lib/fchmodat.c.
1086         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1087         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1088         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1089         (Makefile.am): Remove rules for test-fchmodat.
1090         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1091         of module 'openat'.
1092         * NEWS: Mention the change.
1093
1094 2011-11-02  Jim Meyering  <meyering@redhat.com>
1095
1096         putenv: indent #definition of "environ" to placate cppi
1097         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1098
1099         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1100         Git logs are often treated as immutable, because editing them
1101         changes the SHA1 checksums of all descendants.  Thus, errors in
1102         git logs tend to stay there forever.  However, when we generate
1103         a ChangeLog file -- typically for distribution -- from that git log,
1104         we can actually make corrections in the generated file.  The key
1105         lies in recording in machine-readable/applicable form the desired
1106         corrections.  See --help for description and an example.
1107         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1108         (usage): Describe it; alphabetize option descriptions.
1109         (main): Honor the new option, carefully.
1110
1111 2011-11-01  Jim Meyering  <meyering@redhat.com>
1112
1113         gitlog-to-changelog: avoid an infloop
1114         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1115         that ends up being empty.
1116
1117 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1118
1119         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1120         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1121         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1122         contains (possibly-quoted) backslashes.  This should avoid
1123         all-too-common shell bugs if COMPLICATED contains backslashes in
1124         the "wrong" places.  Reported by David Evans in
1125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1126         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1127         because we want ASCII ranges.  Is there some reason we don't use
1128         the C locale everywhere in this script?
1129         (func_module, top level): Avoid unwanted pathname expansion when
1130         $repo_url_prefix or $repo_url_suffix_repl contain shell
1131         metacharacters like '?' and '*'.
1132
1133 2011-11-01  Bruno Haible  <bruno@clisp.org>
1134
1135         fchownat: Improve description.
1136         * modules/fchownat (Description): Add link to function.
1137
1138 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1139
1140         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1141         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1143         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1144
1145 2011-11-01  Bruno Haible  <bruno@clisp.org>
1146
1147         alignof: Avoid collision with stdalign module.
1148         * lib/alignof.h (alignof): Remove macro.
1149         * NEWS: Mention the change.
1150         Reported by Paul Eggert.
1151
1152 2011-11-01  Bruno Haible  <bruno@clisp.org>
1153
1154         New module 'fchownat', split off from module 'openat'.
1155         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1156         defined.
1157         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1158         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1159         invoke gl_FUNC_FCHOWNAT.
1160         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1161         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1162         * modules/fchownat: New file, extracted from modules/openat.
1163         * modules/openat (Files): Remove lib/fchownat.c.
1164         (Depends-on): Remove lchown.
1165         (configure.ac): Remove AC_LIBOBJ of fchownat.
1166         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1167         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1168         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1169         (Depends-on): Remove mgetgroups, usleep, stat-time.
1170         (configure.ac): Remove test for getegid.
1171         (Makefile.am): Remove rules for test-fchownat.
1172         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1173         of module 'openat'.
1174         * NEWS: Mention the change.
1175
1176 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1177
1178         stdalign: port better to MSVC and to Sun C 5.11
1179         This fixes some of the problems reported by Bruno Haible in
1180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1181         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1182         shortcomings of MSVC and of Sun C 5.11.
1183         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1184         around __declspec arg.
1185         * modules/stdalign-tests (Files): Add tests/macros.h.
1186         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1187         Include macros.h, for ASSERT.
1188         (DECLARE_ALIGNED): Remove.
1189         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1190         to catch bug), and to 1 if not (simplifies the rest of the code).
1191         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1192         (CHECK_AUTO): Remove.
1193         (CHECK_ALIGNED): Check only the alignment of the static vars,
1194         since auto var alignment isn't supported by Sun C 5.11.
1195         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1196         ASSERT failures are easier to diagnose.
1197
1198 2011-10-31  Bruno Haible  <bruno@clisp.org>
1199
1200         doc about some IRIX 5.3 problems.
1201         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1202         on IRIX 5.3.
1203         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1204         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1205         5.3.
1206         * doc/posix-functions/grantpt.texi: Likewise.
1207         * doc/posix-functions/unlockpt.texi: Likewise.
1208         * doc/posix-functions/lgamma.texi: Likewise.
1209         * doc/posix-functions/nextafter.texi: Likewise.
1210         * doc/posix-functions/remainder.texi: Likewise.
1211         * doc/posix-functions/select.texi: Mention misplaced declaration on
1212         IRIX 5.3.
1213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1214
1215 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1216
1217         gitlog-to-changelog: fix git-log invocation.
1218         git-log mishandles date strings before 1970-01-01 UTC, and there is
1219         no use to specify --since=1970-01-01 by default anyway.
1220         * build-aux/gitlog-to-changelog: By default, when no --since option
1221         was given, do not specify explicit --since option to git-log.
1222
1223 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1224
1225         gitlog-to-changelog: new option --append-dot.
1226         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1227         first non-blank line of each commit message terminated with a dot.
1228
1229 2011-10-30  Bruno Haible  <bruno@clisp.org>
1230
1231         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1232         * lib/ffsl.h: Include <config.h>.
1233         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1234
1235 2011-10-30  Jim Meyering  <meyering@redhat.com>
1236
1237         GNUmakefile: reenable "make syntax-check" for most projects
1238         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1239         build-aux variable", "syntax-check" would do nothing but succeed with
1240         the "No version control files detected..." diagnostic (unless you
1241         happened to override _build-aux via cfg.mk).
1242         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1243         to precede inclusion of maint.mk.  Otherwise, these variables would
1244         be used undefined in any project that does not override the default.
1245
1246 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1247
1248         gitlog-to-changelog: treat a message with only blank lines as empty.
1249         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1250         trailing blank lines before the code that issues a warning about an
1251         empty commit message.
1252
1253 2011-10-30  Jim Meyering  <meyering@redhat.com>
1254
1255         test-parse-datetime.c: avoid new DST-related false positive test failure
1256         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1257         based on the time/date we'll convert, not the current time.
1258         Otherwise, the moment we cross a DST boundary like today's in
1259         Europe, (CEST to CET), that offset ends up being one hour off.
1260
1261 2011-10-27  Bruno Haible  <bruno@clisp.org>
1262
1263         fstat: Tweak documentation.
1264         * modules/fstat (Description): More precise description.
1265
1266 2011-10-27  Bruno Haible  <bruno@clisp.org>
1267
1268         Update documentation regarding 'largefile' module.
1269         * doc/posix-functions/fstat.texi: Tweak wording.
1270         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1271         problems with huge directories and/or small ino_t types.
1272         * doc/posix-functions/readdir.texi: Likewise.
1273         * doc/posix-functions/rewinddir.texi: Likewise.
1274
1275 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1276
1277         maint.mk: don't maintain a second build-aux variable.
1278         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1279         depends on GNUmakefile, which already maintains a cfg.mk
1280         overridable $(_build-aux) for projects with a non-standard
1281         build-aux directory location, although without the $(srcdir)
1282         prefix.  Use that variable consistently instead of introducing a
1283         second one.  Adjust all call sites.
1284
1285 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1286
1287         Add stdalign module and use it in other modules.
1288         This is based on a previous proposal by Bruno Haible
1289         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1290
1291         stdalign: new module
1292         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1293         * modules/stdalign: New files.
1294         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1295         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1296
1297         stdalign-tests: new module
1298         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1299
1300         argp: use stdalign
1301         * lib/argp-parse.c: Include <stdalign.h>.
1302         (alignof): Remove.
1303         * modules/argp (Depends-on): Add stdalign.
1304
1305         crypto libraries: use stdalign
1306         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1307         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1308         Do not include <stdlib.h> twice, in md4.c.
1309         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1310         because we are accessing a pointer's bit-pattern, not a size.
1311         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1312         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1313         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1314         * modules/crypto/sha512: Likewise.
1315
1316         sys_socket: use stdalign, not alignof
1317         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1318         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1319
1320 2011-10-27  Bruno Haible  <bruno@clisp.org>
1321
1322         raise test: Avoid a test failure on Linux/MIPS.
1323         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1324         because 99 is a valid signal on Linux/MIPS.
1325
1326 2011-10-27  Bruno Haible  <bruno@clisp.org>
1327
1328         nonblocking tests: Fix test failure on Linux/MIPS.
1329         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1330         Set to 270000.
1331
1332 2011-10-27  Bruno Haible  <bruno@clisp.org>
1333
1334         utimensat: Work around problem on Linux/hppa.
1335         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1336         values.
1337         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1338
1339 2011-10-25  Jim Meyering  <meyering@redhat.com>
1340
1341         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1342         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1343         after symbols like NULL, size_t, etc.
1344         Reported by Alfred M. Szmidt.
1345
1346         maint.mk: exempt ENODATA from a syntax-check rule
1347         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1348         from the sc_prohibit_always-defined_macros syntax-check rule.
1349         Add a comment.  See this for more details:
1350         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1351
1352 2011-10-23  Jim Meyering  <meyering@redhat.com>
1353
1354         fts: close parent dir FD before returning from post-traversal fts_read
1355         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1356         unlink A, even though an FD open on A remained.  This is suboptimal
1357         (holding a file descriptor open longer than needed), but otherwise not
1358         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1359         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1360         that represents a real problem: it causes the removal of A to fail
1361         with e.g., "rm: cannot remove `A': Device or resource busy"
1362
1363         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1364         directory file descriptors.  After completing the final, FTS_DP,
1365         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1366         cache, but then proceeded to add a new FD to it via the subsequent
1367         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1368         final file descriptor would be closed only via fts_close's call to
1369         fd_ring_clear.  Now, it is usually closed earlier, via the final
1370         FTS_DP-returning fts_read call.
1371         * lib/fts.c (restore_initial_cwd): New function, converted from
1372         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1373         Update callers.
1374         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1375         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1376
1377 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1378             Bruno Haible  <bruno@clisp.org>
1379             Jim Meyering  <jim@meyering.net>
1380
1381         readme-release: improve safety of release prep instructions.
1382         * README-release: Don't git pull all branches when only master
1383         is needed for the release process.
1384         Run make maintainer-clean before changing trees and merging.
1385         Don't try to run ./configure right after git pull in case files
1386         that influence the bootstrap process have changed, move the
1387         ./configure step to after running ./bootstrap.
1388         Don't bootstrap "one last time"... it's the first time!
1389
1390 2011-10-22  Bruno Haible  <bruno@clisp.org>
1391
1392         errno, strerror-override: Support for MSVC 10.
1393         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1394         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1395         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1396         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1397         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1398         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1399         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1400         Assign values compatible with MSVC 10.
1401         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1402         New macros.
1403         (GNULIB_defined_EWINSOCK): New macro.
1404         * lib/strerror-override.c (strerror_override): Update accordingly.
1405         * lib/strerror-override.h: Likewise.
1406         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1407         longer equal to the corresponding errno value.
1408         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1409
1410 2011-10-22  Bruno Haible  <bruno@clisp.org>
1411
1412         perror: Recognize when test program crashes.
1413         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1414         strerror, set gl_cv_func_perror_works to no.
1415         Reported by Daniel Richard G. <skunk@iskunk.org>.
1416
1417         perror: Fix indentation.
1418         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1419
1420 2011-10-22  Bruno Haible  <bruno@clisp.org>
1421
1422         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1423         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1424         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1425         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1426         functions, not as a macro.
1427         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1428         macros.
1429         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1430         absence of macro.
1431         Suggested by Eric Blake.
1432         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1433
1434 2011-10-21  Bruno Haible  <bruno@clisp.org>
1435
1436         relocatable-prog-wrapper: Don't leave object files behind.
1437         * build-aux/install-reloc: Re-synchronize list of .o files to be
1438         removed with list of compilation units.
1439
1440 2011-10-20  Bruno Haible  <bruno@clisp.org>
1441
1442         openpty, posix_openpt: Remove code duplication.
1443         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1444         * lib/openpty.c: Include <stdlib.h>.
1445         (openpty): Use posix_openpt on all platforms except IRIX.
1446         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1447
1448 2011-10-20  Bruno Haible  <bruno@clisp.org>
1449
1450         unlockpt: Detect invalid argument.
1451         * lib/unlockpt.c: Include <fcntl.h>.
1452         (unlockpt): Check whether fd is valid, using fcntl().
1453         * modules/unlockpt (Depends-on): Add fcntl-h.
1454
1455 2011-10-20  Bruno Haible  <bruno@clisp.org>
1456
1457         openpty: Avoid compilation error on AIX 6.1.
1458         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1459
1460 2011-10-20  Bruno Haible  <bruno@clisp.org>
1461
1462         posix_openpt: Support for OpenBSD.
1463         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1464         (posix_openpt) [OpenBSD]: New code.
1465         * lib/grantpt.c: Include <fcntl.h>.
1466         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1467         * modules/grantpt (Depends-on): Add fcntl-h.
1468
1469 2011-10-20  Bruno Haible  <bruno@clisp.org>
1470
1471         posix_openpt test: Coding style.
1472         * tests/test-posix_openpt.c: Use GNU coding style.
1473
1474 2011-10-20  Bruno Haible  <bruno@clisp.org>
1475
1476         grantpt: Support --avoid=pt_chown.
1477         * modules/grantpt (Files): Add lib/pty-private.h.
1478
1479 2011-10-20  Bruno Haible  <bruno@clisp.org>
1480
1481         posix_openpt: Fix autoconf macro.
1482         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1483         unneeded check for _getpty.
1484
1485 2011-10-20  Bruno Haible  <bruno@clisp.org>
1486
1487         openpty: Update comments.
1488         * lib/openpty.c: Add comments about Minix.
1489
1490 2011-10-19  Eric Blake  <eblake@redhat.com>
1491
1492         openpty: relax license
1493         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1494
1495         pt_chown: use configmake to simplify build
1496         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1497
1498         ptsname and others: relax license
1499         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1500         * modules/unlockpt (License): Likewise.
1501         * modules/pt_chown (License): Likewise.
1502         * modules/ptsname (License): Likewise.
1503         * modules/ttyname_r (License): Likewise.
1504
1505 2011-10-19  Jim Meyering  <meyering@redhat.com>
1506
1507         posix_openpt: remove spurious #endif
1508         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1509
1510 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1511
1512         maint.mk: Respect $(build_aux) in web-manual rule.
1513         * top/maint.mk (web-manual): Find gen-announce script in user's
1514         $(build_aux) directory instead of hard-coding 'build-aux'.
1515
1516 2011-10-19  Bruno Haible  <bruno@clisp.org>
1517
1518         posix_openpt: Fix compilation error.
1519         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1520         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1521         Mention the openpty module as an alternative.
1522
1523 2011-10-19  Bruno Haible  <bruno@clisp.org>
1524
1525         Support for old NeXTstep 3.3 frexp().
1526         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1527         execution time of the test to 5 seconds.
1528         Reported by Daniel Richard G. <skunk@iskunk.org>.
1529
1530 2011-10-19  Bruno Haible  <bruno@clisp.org>
1531
1532         Support for old NeXTstep 3.3 sed.
1533         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1534         part, use /.../, not \|...|. Escape periods in the header file name.
1535         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1536         Reported by Daniel Richard G. <skunk@iskunk.org>.
1537
1538 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1539
1540         Support for old NeXTstep 3.3 gcc.
1541         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1542         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1543         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1544         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1545         * lib/regex.h (_Restrict_arr_): Likewise.
1546         * lib/regex_internal.h (re_token_t): Likewise.
1547         * lib/regexec.c (check_node_accept_bytes): Likewise.
1548         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1549
1550 2011-10-18  Eric Blake  <eblake@redhat.com>
1551
1552         posix_openpt: new module
1553         * modules/posix_openpt: New module.
1554         * m4/posix_openpt.m4: New file.
1555         * lib/posix_openpt.c: Likewise.
1556         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1557         (gl_STDLIB_H_DEFAULTS): Set defaults.
1558         * modules/stdlib (Makefile.am): Substitute macros.
1559         * lib/stdlib.in.h (posix_openpt): Declare.
1560         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1561         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1562         * modules/posix_openpt-tests: New test module.
1563         * tests/test-posix_openpt.c: New test.
1564
1565 2011-10-15  Bruno Haible  <bruno@clisp.org>
1566
1567         xstrtoll: Fix compilation failure.
1568         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1569         from lib/strtol.c.
1570         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1571         some platforms.
1572         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1573
1574 2011-10-15  Bruno Haible  <bruno@clisp.org>
1575
1576         vasnprintf: Optimize bit search operation.
1577         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1578         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1579         gl_DOUBLE_EXPONENT_LOCATION.
1580         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1581         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1582         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1583         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1584         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1585         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1586         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1587         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1588         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1589
1590 2011-10-15  Bruno Haible  <bruno@clisp.org>
1591
1592         vasnprintf: Fix comments.
1593         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1594
1595 2011-10-14  Bruno Haible  <bruno@clisp.org>
1596
1597         Tests for module 'integer_length_ll'.
1598         * modules/integer_length_ll-tests: New file.
1599         * tests/test-integer_length_ll.c: New file.
1600
1601         New module 'integer_length_ll'.
1602         * lib/integer_length_ll.c: New file.
1603         * modules/integer_length_ll: New file.
1604
1605 2011-10-14  Bruno Haible  <bruno@clisp.org>
1606
1607         Tests for module 'integer_length_l'.
1608         * modules/integer_length_l-tests: New file.
1609         * tests/test-integer_length_l.c: New file.
1610
1611         New module 'integer_length_l'.
1612         * lib/integer_length_l.c: New file.
1613         * modules/integer_length_l: New file.
1614
1615 2011-10-14  Bruno Haible  <bruno@clisp.org>
1616
1617         Tests for module 'integer_length'.
1618         * modules/integer_length-tests: New file.
1619         * tests/test-integer_length.c: New file.
1620
1621         New module 'integer_length'.
1622         * lib/integer_length.h: New file.
1623         * lib/integer_length.c: New file.
1624         * modules/integer_length: New file.
1625
1626 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1627
1628         popen: Fix dependency conditions.
1629         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1630
1631 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1632
1633         perror: Fix autoconf test.
1634         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1635         <stdlib.h> and <string.h>.
1636
1637 2011-10-14  Bruno Haible  <bruno@clisp.org>
1638
1639         ffsl: Optimize on 64-bit platforms.
1640         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1641         unrolling.
1642
1643 2011-10-13  Bruno Haible  <bruno@clisp.org>
1644
1645         ffsl: Optimize on 32-bit platforms.
1646         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1647         use ffs() without a loop.
1648
1649         ffsl, ffsll: Optimize for GCC.
1650         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1651         * lib/ffsl.c (GCC_BUILTIN): New macro.
1652         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1653
1654 2011-10-13  Bruno Haible  <bruno@clisp.org>
1655
1656         ffs, bcopy, memset: Support symbol renaming via config.h.
1657         * lib/ffs.c: Include <config.h>.
1658         * lib/bcopy.c: Likewise.
1659         * lib/memset.c: Likewise.
1660
1661 2011-10-10  Bruno Haible  <bruno@clisp.org>
1662
1663         atanl: Simplify for platforms where 'long double' == 'double'.
1664         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1665         alternative implementation.
1666         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1667         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1668         * modules/atanl (Depends-on): Add atan. Update conditions.
1669
1670 2011-10-10  Bruno Haible  <bruno@clisp.org>
1671
1672         acosl: Simplify for platforms where 'long double' == 'double'.
1673         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1674         alternative implementation.
1675         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1676         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1677         * modules/acosl (Depends-on): Add acos. Update conditions.
1678
1679 2011-10-10  Bruno Haible  <bruno@clisp.org>
1680
1681         asinl: Simplify for platforms where 'long double' == 'double'.
1682         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1683         alternative implementation.
1684         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1685         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1686         * modules/asinl (Depends-on): Add asin. Update conditions.
1687
1688 2011-10-10  Bruno Haible  <bruno@clisp.org>
1689
1690         tanl: Simplify for platforms where 'long double' == 'double'.
1691         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1692         implementation.
1693         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1694         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1695         * modules/tanl (Depends-on): Add tan. Update conditions.
1696         (configure.ac): Don't compile trigl.c if
1697         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1698
1699 2011-10-10  Bruno Haible  <bruno@clisp.org>
1700
1701         cosl: Simplify for platforms where 'long double' == 'double'.
1702         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1703         implementation.
1704         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1705         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1706         * modules/cosl (Depends-on): Add cos. Update conditions.
1707         (configure.ac): Don't compile sincosl.c and trigl.c if
1708         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1709
1710 2011-10-10  Bruno Haible  <bruno@clisp.org>
1711
1712         sinl: Simplify for platforms where 'long double' == 'double'.
1713         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1714         implementation.
1715         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1716         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1717         * modules/sinl (Depends-on): Add sin. Update conditions.
1718         (configure.ac): Don't compile sincosl.c and trigl.c if
1719         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1720
1721 2011-10-10  Bruno Haible  <bruno@clisp.org>
1722
1723         logl: Simplify for platforms where 'long double' == 'double'.
1724         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1725         implementation.
1726         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1727         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1728         * modules/logl (Depends-on): Add log. Update conditions.
1729
1730 2011-10-10  Bruno Haible  <bruno@clisp.org>
1731
1732         expl: Simplify for platforms where 'long double' == 'double'.
1733         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1734         implementation.
1735         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1736         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1737         * modules/expl (Depends-on): Add exp. Update conditions.
1738
1739 2011-10-10  Bruno Haible  <bruno@clisp.org>
1740
1741         sqrtl: Simplify for platforms where 'long double' == 'double'.
1742         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1743         alternative implementation.
1744         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1745         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1746         * modules/sqrtl (Depends-on): Update conditions.
1747
1748 2011-10-10  Bruno Haible  <bruno@clisp.org>
1749
1750         ldexpl: Simplify for platforms where 'long double' == 'double'.
1751         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1752         alternative implementation.
1753         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1754         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1755         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1756
1757 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1758
1759         ffsll: set correct witness
1760         * modules/ffsll (configure.ac): Fix typo.
1761
1762 2011-10-10  Bruno Haible  <bruno@clisp.org>
1763
1764         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1765         * lib/printf-frexpl.c: Include <config.h>.
1766         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1767         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1768         second time.
1769         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1770         gl_LONG_DOUBLE_VS_DOUBLE.
1771         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1772         conditions.
1773
1774 2011-10-10  Bruno Haible  <bruno@clisp.org>
1775
1776         frexpl: Simplify for platforms where 'long double' == 'double'.
1777         * lib/frexpl.c: Include <config.h>.
1778         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1779         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1780         time.
1781         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1782         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1783         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1784         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1785         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1786         conditions.
1787
1788 2011-10-10  Jim Meyering  <meyering@redhat.com>
1789
1790         test-renameat: don't leave behind a temporary file
1791         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1792           ERROR: files left in build directory after distclean:
1793           ./gltests/test-renameat.too
1794           make[1]: *** [distcleancheck] Error 1
1795         Reported by Tom G. Christensen.
1796
1797 2011-10-09  Bruno Haible  <bruno@clisp.org>
1798
1799         rint: Determine RINT_LIBM correctly on AIX 7.
1800         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1801         directly, not only through a function pointer. Also accept an optional
1802         4th argument with extra code.
1803         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1804         rintf() call by gcc when optimizing.
1805
1806         mathfunc.m4: Refactor.
1807         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1808         m4 variable.
1809
1810 2011-10-09  Bruno Haible  <bruno@clisp.org>
1811
1812         rintl: Simplify for platforms where 'long double' == 'double'.
1813         * lib/rintl.c: Include <config.h>.
1814         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1815         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1816         time.
1817         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1818         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1819         * modules/rintl (Depends-on): Add rint. Update conditions.
1820
1821 2011-10-09  Bruno Haible  <bruno@clisp.org>
1822
1823         roundl: Simplify for platforms where 'long double' == 'double'.
1824         * lib/roundl.c: Include <config.h>.
1825         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1826         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1827         time.
1828         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1829         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1830         * modules/roundl (Depends-on): Add round. Update conditions.
1831
1832 2011-10-09  Bruno Haible  <bruno@clisp.org>
1833
1834         truncl: Simplify for platforms where 'long double' == 'double'.
1835         * lib/truncl.c: Include <config.h>.
1836         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1837         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1838         time.
1839         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1840         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1841         * modules/truncl (Depends-on): Add trunc. Update conditions.
1842
1843 2011-10-09  Bruno Haible  <bruno@clisp.org>
1844
1845         ceill: Simplify for platforms where 'long double' == 'double'.
1846         * lib/ceill.c: Include <config.h>.
1847         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1848         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1849         time.
1850         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1851         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1852         * modules/ceill (Depends-on): Add ceil. Update conditions.
1853
1854 2011-10-09  Bruno Haible  <bruno@clisp.org>
1855
1856         floorl: Simplify for platforms where 'long double' == 'double'.
1857         * lib/floorl.c: Include <config.h>.
1858         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1859         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1860         time.
1861         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1862         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1863         * modules/floorl (Depends-on): Add floor. Update conditions.
1864
1865 2011-10-09  Bruno Haible  <bruno@clisp.org>
1866
1867         rint: Fix ordering constraints.
1868         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1869         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1870         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1871
1872 2011-10-09  Bruno Haible  <bruno@clisp.org>
1873
1874         copysignl: Simplify for platforms where 'long double' == 'double'.
1875         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1876         alternative.
1877         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1878         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1879         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1880
1881 2011-10-09  Bruno Haible  <bruno@clisp.org>
1882
1883         Tests for module 'rintl'.
1884         * modules/rintl-tests: New file.
1885         * tests/test-rintl.c: New file.
1886
1887         New module 'rintl'.
1888         * lib/math.in.h (rintl): New declaration.
1889         * lib/rintl.c: New file.
1890         * m4/rintl.m4: New file.
1891         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1893         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1894         * modules/rintl: New file.
1895         * tests/test-math-c++.cc: Check the declaration of rintl.
1896         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1897         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1898         * doc/posix-functions/rintl.texi: Mention the new module.
1899
1900 2011-10-09  Bruno Haible  <bruno@clisp.org>
1901
1902         Tests for module 'rintf'.
1903         * modules/rintf-tests: New file.
1904         * tests/test-rintf.c: New file.
1905
1906         New module 'rintf'.
1907         * lib/math.in.h (rintf): New declaration.
1908         * lib/rintf.c: New file.
1909         * m4/rintf.m4: New file.
1910         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1912         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1913         * modules/rintf: New file.
1914         * tests/test-math-c++.cc: Check the declaration of rintf.
1915         * doc/posix-functions/rintf.texi: Mention the new module.
1916
1917 2011-10-09  Bruno Haible  <bruno@clisp.org>
1918
1919         rint: Support for MSVC.
1920         * lib/math.in.h (rint): New declaration.
1921         * lib/rint.c: New file.
1922         * m4/rint.m4: New file.
1923         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1925         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1926         * modules/rint (Description): Fix.
1927         (Files): Add lib/rint.c, m4/rint.m4.
1928         (Depends-on): Add math.
1929         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1930         gl_MATH_MODULE_INDICATOR.
1931         * tests/test-math-c++.cc: Check the declaration of rint.
1932         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1933         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1934         * doc/posix-functions/rint.texi: Mention the replacement provided by
1935         the module.
1936
1937         rint tests: More tests.
1938         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1939         minus-zero.h, infinity.h, nan.h.
1940         (main): Skip the test if the current rounding mode is not standard. Add
1941         tests for negative numbers, minus zero, infinity, NaN.
1942         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1943         tests/nan.h.
1944         (Depends-on): Add isnand-nolibm.
1945
1946 2011-10-09  Bruno Haible  <bruno@clisp.org>
1947
1948         Tests for module 'copysignl'.
1949         * modules/copysignl-tests: New file.
1950         * tests/test-copysignl.c: New file.
1951
1952         New module 'copysignl'.
1953         * lib/math.in.h (copysignl): New declaration.
1954         * lib/copysignl.c: New file.
1955         * m4/copysignl.m4: New file.
1956         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1958         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1959         HAVE_COPYSIGNL.
1960         * modules/copysignl: New file.
1961         * tests/test-math-c++.cc: Check the declaration of copysignl.
1962         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1963         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1964         * doc/posix-functions/copysignl.texi: Mention the new module.
1965
1966 2011-10-09  Bruno Haible  <bruno@clisp.org>
1967
1968         Tests for module 'copysignf'.
1969         * modules/copysignf-tests: New file.
1970         * tests/test-copysignf.c: New file.
1971
1972         New module 'copysignf'.
1973         * lib/math.in.h (copysignf): New declaration.
1974         * lib/copysignf.c: New file.
1975         * m4/copysignf.m4: New file.
1976         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1978         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1979         HAVE_COPYSIGNF.
1980         * modules/copysignf: New file.
1981         * tests/test-math-c++.cc: Check the declaration of copysignf.
1982         * doc/posix-functions/copysignf.texi: Mention the new module.
1983
1984 2011-10-09  Bruno Haible  <bruno@clisp.org>
1985
1986         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1987         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1988         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1989         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1990         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1991         gl_SIGNAL_H_DEFAULTS.
1992
1993 2011-10-09  Bruno Haible  <bruno@clisp.org>
1994
1995         poll: Make macro safer.
1996         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1997         ac_cv_header_poll_h is not set.
1998
1999 2011-10-09  Bruno Haible  <bruno@clisp.org>
2000
2001         copysign: Provide replacement.
2002         * lib/math.in.h (copysign): New declaration.
2003         * lib/copysign.c: New file.
2004         * m4/copysign.m4: New file.
2005         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2007         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2008         HAVE_COPYSIGN.
2009         * modules/copysign (Description): Clarify.
2010         (Files): Add lib/copysign.c, m4/copysign.m4.
2011         (Depends-on): Add math, signbit.
2012         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2013         gl_MATH_MODULE_INDICATOR.
2014         * tests/test-math-c++.cc: Check the declaration of copysign.
2015         * doc/posix-functions/copysign.texi: Mention the effects of the module
2016         on Minix and MSVC.
2017
2018 2011-10-09  Bruno Haible  <bruno@clisp.org>
2019
2020         isinf: Ensure macro on AIX 5.1.
2021         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2022         macro.
2023         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2024
2025 2011-10-09  Bruno Haible  <bruno@clisp.org>
2026
2027         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2028         * modules/snprintf-posix-tests (configure.ac): Require
2029         gl_LONG_DOUBLE_VS_DOUBLE.
2030         * modules/sprintf-posix-tests (configure.ac): Likewise.
2031         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2032         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2033         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2034         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2035         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2036         tests on platforms where 'long double' is the same as 'double'.
2037         * tests/test-sprintf-posix.h (test_function): Likewise.
2038         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2039         * tests/test-vasprintf-posix.c (test_function): Likewise.
2040
2041         *printf: Fix for platforms where 'long double' == 'double'.
2042         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2043         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2044         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2045         * modules/fprintf-posix (Files): Likewise.
2046         * modules/obstack-printf-posix (Files): Likewise.
2047         * modules/snprintf-posix (Files): Likewise.
2048         * modules/sprintf-posix (Files): Likewise.
2049         * modules/vasnprintf (Files): Likewise.
2050         * modules/vasnprintf-posix (Files): Likewise.
2051         * modules/vasprintf-posix (Files): Likewise.
2052         * modules/vdprintf-posix (Files): Likewise.
2053         * modules/vfprintf-posix (Files): Likewise.
2054         * modules/vsnprintf-posix (Files): Likewise.
2055         * modules/vsprintf-posix (Files): Likewise.
2056         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2057         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2058         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2059         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2060         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2061         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2062         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2063
2064         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2065         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2066         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2067         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2068         'long double'.
2069         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2070
2071         isinf: Fix for platforms where 'long double' == 'double'.
2072         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2073         Don't blindly assume 80-bit 'long double'.
2074
2075         isfinite: Fix for platforms where 'long double' == 'double'.
2076         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2077         Don't blindly assume 80-bit 'long double'.
2078
2079         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2080         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2081         * modules/isfinite-tests (configure.ac): Require
2082         gl_LONG_DOUBLE_VS_DOUBLE.
2083         * modules/isinf-tests (configure.ac): Likewise.
2084         * modules/isnan-tests (configure.ac): Likewise.
2085         * modules/isnanl-tests (configure.ac): Likewise.
2086         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2087         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2088         tests on platforms where 'long double' is the same as 'double'.
2089         * tests/test-isinf.c (test_isinfl): Likewise.
2090         * tests/test-isnan.c (test_long_double): Likewise.
2091         * tests/test-isnanl.h (main): Likewise.
2092
2093 2011-10-08  Bruno Haible  <bruno@clisp.org>
2094
2095         Tests for module 'tanhf'.
2096         * modules/tanhf-tests: New file.
2097         * tests/test-tanhf.c: New file.
2098
2099         New module 'tanhf'.
2100         * lib/math.in.h (tanhf): New declaration.
2101         * lib/tanhf.c: New file.
2102         * m4/tanhf.m4: New file.
2103         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2105         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2106         * modules/tanhf: New file.
2107         * tests/test-math-c++.cc: Check the declaration of tanhf.
2108         * doc/posix-functions/tanhf.texi: Mention the new module.
2109
2110         tanh: Use a .m4 file.
2111         * m4/tanh.m4: New file.
2112         * modules/tanh (Files): Add it.
2113         (configure.ac): Just invoke gl_FUNC_TANH.
2114
2115 2011-10-08  Bruno Haible  <bruno@clisp.org>
2116
2117         Tests for module 'coshf'.
2118         * modules/coshf-tests: New file.
2119         * tests/test-coshf.c: New file.
2120
2121         New module 'coshf'.
2122         * lib/math.in.h (coshf): New declaration.
2123         * lib/coshf.c: New file.
2124         * m4/coshf.m4: New file.
2125         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2127         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2128         * modules/coshf: New file.
2129         * tests/test-math-c++.cc: Check the declaration of coshf.
2130         * doc/posix-functions/coshf.texi: Mention the new module.
2131
2132         cosh: Use a .m4 file.
2133         * m4/cosh.m4: New file.
2134         * modules/cosh (Files): Add it.
2135         (configure.ac): Just invoke gl_FUNC_COSH.
2136
2137 2011-10-08  Bruno Haible  <bruno@clisp.org>
2138
2139         Tests for module 'sinhf'.
2140         * modules/sinhf-tests: New file.
2141         * tests/test-sinhf.c: New file.
2142
2143         New module 'sinhf'.
2144         * lib/math.in.h (sinhf): New declaration.
2145         * lib/sinhf.c: New file.
2146         * m4/sinhf.m4: New file.
2147         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2148         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2149         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2150         * modules/sinhf: New file.
2151         * tests/test-math-c++.cc: Check the declaration of sinhf.
2152         * doc/posix-functions/sinhf.texi: Mention the new module.
2153
2154         sinh: Use a .m4 file.
2155         * m4/sinh.m4: New file.
2156         * modules/sinh (Files): Add it.
2157         (configure.ac): Just invoke gl_FUNC_SINH.
2158
2159 2011-10-08  Bruno Haible  <bruno@clisp.org>
2160
2161         Tests for module 'atan2f'.
2162         * modules/atan2f-tests: New file.
2163         * tests/test-atan2f.c: New file.
2164
2165         New module 'atan2f'.
2166         * lib/math.in.h (atan2f): New declaration.
2167         * lib/atan2f.c: New file.
2168         * m4/atan2f.m4: New file.
2169         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2171         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2172         * modules/atan2f: New file.
2173         * tests/test-math-c++.cc: Check the declaration of atan2f.
2174         * doc/posix-functions/atan2f.texi: Mention the new module.
2175
2176         atan2: Use a .m4 file.
2177         * m4/atan2.m4: New file.
2178         * modules/atan2 (Files): Add it.
2179         (configure.ac): Just invoke gl_FUNC_ATAN2.
2180
2181 2011-10-08  Bruno Haible  <bruno@clisp.org>
2182
2183         Tests for module 'atanf'.
2184         * modules/atanf-tests: New file.
2185         * tests/test-atanf.c: New file.
2186
2187         New module 'atanf'.
2188         * lib/math.in.h (atanf): New declaration.
2189         * lib/atanf.c: New file.
2190         * m4/atanf.m4: New file.
2191         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2193         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2194         * modules/atanf: New file.
2195         * tests/test-math-c++.cc: Check the declaration of atanf.
2196         * doc/posix-functions/atanf.texi: Mention the new module.
2197
2198         atan: Use a .m4 file.
2199         * m4/atan.m4: New file.
2200         * modules/atan (Files): Add it.
2201         (configure.ac): Just invoke gl_FUNC_ATAN.
2202
2203 2011-10-08  Bruno Haible  <bruno@clisp.org>
2204
2205         Tests for module 'acosf'.
2206         * modules/acosf-tests: New file.
2207         * tests/test-acosf.c: New file.
2208
2209         New module 'acosf'.
2210         * lib/math.in.h (acosf): New declaration.
2211         * lib/acosf.c: New file.
2212         * m4/acosf.m4: New file.
2213         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2215         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2216         * modules/acosf: New file.
2217         * tests/test-math-c++.cc: Check the declaration of acosf.
2218         * doc/posix-functions/acosf.texi: Mention the new module.
2219
2220         acos: Use a .m4 file.
2221         * m4/acos.m4: New file.
2222         * modules/acos (Files): Add it.
2223         (configure.ac): Just invoke gl_FUNC_ACOS.
2224
2225 2011-10-08  Bruno Haible  <bruno@clisp.org>
2226
2227         Tests for module 'asinf'.
2228         * modules/asinf-tests: New file.
2229         * tests/test-asinf.c: New file.
2230
2231         New module 'asinf'.
2232         * lib/math.in.h (asinf): New declaration.
2233         * lib/asinf.c: New file.
2234         * m4/asinf.m4: New file.
2235         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2236         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2237         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2238         * modules/asinf: New file.
2239         * tests/test-math-c++.cc: Check the declaration of asinf.
2240         * doc/posix-functions/asinf.texi: Mention the new module.
2241
2242         asin: Use a .m4 file.
2243         * m4/asin.m4: New file.
2244         * modules/asin (Files): Add it.
2245         (configure.ac): Just invoke gl_FUNC_ASIN.
2246
2247 2011-10-08  Bruno Haible  <bruno@clisp.org>
2248
2249         Tests for module 'tanf'.
2250         * modules/tanf-tests: New file.
2251         * tests/test-tanf.c: New file.
2252
2253         New module 'tanf'.
2254         * lib/math.in.h (tanf): New declaration.
2255         * lib/tanf.c: New file.
2256         * m4/tanf.m4: New file.
2257         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2259         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2260         * modules/tanf: New file.
2261         * tests/test-math-c++.cc: Check the declaration of tanf.
2262         * doc/posix-functions/tanf.texi: Mention the new module.
2263
2264         tan: Use a .m4 file.
2265         * m4/tan.m4: New file.
2266         * modules/tan (Files): Add it.
2267         (configure.ac): Just invoke gl_FUNC_TAN.
2268
2269 2011-10-08  Bruno Haible  <bruno@clisp.org>
2270
2271         Tests for module 'cosf'.
2272         * modules/cosf-tests: New file.
2273         * tests/test-cosf.c: New file.
2274
2275         New module 'cosf'.
2276         * lib/math.in.h (cosf): New declaration.
2277         * lib/cosf.c: New file.
2278         * m4/cosf.m4: New file.
2279         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2281         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2282         * modules/cosf: New file.
2283         * tests/test-math-c++.cc: Check the declaration of cosf.
2284         * doc/posix-functions/cosf.texi: Mention the new module.
2285
2286         cos: Use a .m4 file.
2287         * m4/cos.m4: New file.
2288         * modules/cos (Files): Add it.
2289         (configure.ac): Just invoke gl_FUNC_COS.
2290
2291 2011-10-08  Bruno Haible  <bruno@clisp.org>
2292
2293         Tests for module 'sinf'.
2294         * modules/sinf-tests: New file.
2295         * tests/test-sinf.c: New file.
2296
2297         New module 'sinf'.
2298         * lib/math.in.h (sinf): New declaration.
2299         * lib/sinf.c: New file.
2300         * m4/sinf.m4: New file.
2301         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2303         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2304         * modules/sinf: New file.
2305         * tests/test-math-c++.cc: Check the declaration of sinf.
2306         * doc/posix-functions/sinf.texi: Mention the new module.
2307
2308         sin: Use a .m4 file.
2309         * m4/sin.m4: New file.
2310         * modules/sin (Files): Add it.
2311         (configure.ac): Just invoke gl_FUNC_SIN.
2312
2313 2011-10-08  Bruno Haible  <bruno@clisp.org>
2314
2315         Tests for module 'powf'.
2316         * modules/powf-tests: New file.
2317         * tests/test-powf.c: New file.
2318
2319         New module 'powf'.
2320         * lib/math.in.h (powf): New declaration.
2321         * lib/powf.c: New file.
2322         * m4/powf.m4: New file.
2323         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2324         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2325         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2326         * modules/powf: New file.
2327         * tests/test-math-c++.cc: Check the declaration of powf.
2328         * doc/posix-functions/powf.texi: Mention the new module.
2329
2330         pow: Use a .m4 file.
2331         * m4/pow.m4: New file.
2332         * modules/pow (Files): Add it.
2333         (configure.ac): Just invoke gl_FUNC_POW.
2334
2335 2011-10-08  Bruno Haible  <bruno@clisp.org>
2336
2337         Tests for module 'log10f'.
2338         * modules/log10f-tests: New file.
2339         * tests/test-log10f.c: New file.
2340
2341         New module 'log10f'.
2342         * lib/math.in.h (log10f): New declaration.
2343         * lib/log10f.c: New file.
2344         * m4/log10f.m4: New file.
2345         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2346         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2347         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2348         * modules/log10f: New file.
2349         * tests/test-math-c++.cc: Check the declaration of log10f.
2350         * doc/posix-functions/log10f.texi: Mention the new module.
2351
2352         log10: Use a .m4 file.
2353         * m4/log10.m4: New file.
2354         * modules/log10 (Files): Add it.
2355         (configure.ac): Just invoke gl_FUNC_LOG10.
2356
2357 2011-10-08  Bruno Haible  <bruno@clisp.org>
2358
2359         Tests for module 'logf'.
2360         * modules/logf-tests: New file.
2361         * tests/test-logf.c: New file.
2362
2363         New module 'logf'.
2364         * lib/math.in.h (logf): New declaration.
2365         * lib/logf.c: New file.
2366         * m4/logf.m4: New file.
2367         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2369         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2370         * modules/logf: New file.
2371         * tests/test-math-c++.cc: Check the declaration of logf.
2372         * doc/posix-functions/logf.texi: Mention the new module.
2373
2374         log: Use a .m4 file.
2375         * m4/log.m4: New file.
2376         * modules/log (Files): Add it.
2377         (configure.ac): Just invoke gl_FUNC_LOG.
2378
2379 2011-10-08  Bruno Haible  <bruno@clisp.org>
2380
2381         Tests for module 'expf'.
2382         * modules/expf-tests: New file.
2383         * tests/test-expf.c: New file.
2384
2385         New module 'expf'.
2386         * lib/math.in.h (expf): New declaration.
2387         * lib/expf.c: New file.
2388         * m4/expf.m4: New file.
2389         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2391         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2392         * modules/expf: New file.
2393         * tests/test-math-c++.cc: Check the declaration of expf.
2394         * doc/posix-functions/expf.texi: Mention the new module.
2395
2396         exp: Use a .m4 file.
2397         * m4/exp.m4: New file.
2398         * modules/exp (Files): Add it.
2399         (configure.ac): Just invoke gl_FUNC_EXP.
2400
2401 2011-10-08  Bruno Haible  <bruno@clisp.org>
2402
2403         Tests for module 'sqrtf'.
2404         * modules/sqrtf-tests: New file.
2405         * tests/test-sqrtf.c: New file.
2406
2407         New module 'sqrtf'.
2408         * lib/math.in.h (sqrtf): New declaration.
2409         * lib/sqrtf.c: New file.
2410         * m4/sqrtf.m4: New file.
2411         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2413         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2414         * modules/sqrtf: New file.
2415         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2416         * doc/posix-functions/sqrtf.texi: Mention the new module.
2417
2418 2011-10-08  Bruno Haible  <bruno@clisp.org>
2419
2420         Tests: Avoid link failures w.r.t. libintl.
2421         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2422         $(LIBINTL).
2423         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2424         $(LIBINTL).
2425         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2426         against $(LIBINTL).
2427         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2428         $(LIBINTL).
2429         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2430         $(LIBINTL).
2431         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2432
2433 2011-10-08  Bruno Haible  <bruno@clisp.org>
2434
2435         pow tests: Defeat compiler optimizations.
2436         * tests/test-pow.c (main): Assign arguments to x and y before use.
2437
2438 2011-10-08  Bruno Haible  <bruno@clisp.org>
2439
2440         gnulib-tool: Improve last commit.
2441         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2442         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2443         ignore dependencies that are not among the modules list.
2444
2445 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2446
2447         gnulib-tool: don't follow dependencies to avoided modules
2448         This fixes a bug that is related to the previous one.
2449         * gnulib-tool (func_modules_transitive_closure)
2450         (func_emit_autoconf_snippets):
2451         Check whether a dependency is acceptable before using it.
2452         (--extract-dependencies): Report an error if --avoid is also used,
2453         since this combination of options is not yet supported.
2454
2455         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2456         Problem reported by Peter Dyballa in
2457         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2458         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2459         when echoing "$condition".
2460
2461 2011-10-07  Bruno Haible  <bruno@clisp.org>
2462
2463         Fix documentation about math functions on MacOS X.
2464         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2465         MacOS X 10.5.
2466         * doc/posix-functions/fdim.texi: Likewise.
2467         * doc/posix-functions/feclearexcept.texi: Likewise.
2468         * doc/posix-functions/fegetenv.texi: Likewise.
2469         * doc/posix-functions/fegetround.texi: Likewise.
2470         * doc/posix-functions/feholdexcept.texi: Likewise.
2471         * doc/posix-functions/feraiseexcept.texi: Likewise.
2472         * doc/posix-functions/fesetenv.texi: Likewise.
2473         * doc/posix-functions/fesetround.texi: Likewise.
2474         * doc/posix-functions/fetestexcept.texi: Likewise.
2475         * doc/posix-functions/feupdateenv.texi: Likewise.
2476         * doc/posix-functions/fmax.texi: Likewise.
2477         * doc/posix-functions/fmin.texi: Likewise.
2478         * doc/posix-functions/log2.texi: Likewise.
2479         * doc/posix-functions/modff.texi: Likewise.
2480         * doc/posix-functions/nan.texi: Likewise.
2481         * doc/posix-functions/nanf.texi: Likewise.
2482         * doc/posix-functions/nextafterf.texi: Likewise.
2483         * doc/posix-functions/remquo.texi: Likewise.
2484
2485 2011-10-07  Bruno Haible  <bruno@clisp.org>
2486
2487         modff: Drop assumption about library that defines modff.
2488         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2489         AC_CHECK_FUNCS.
2490         * modules/modff (Files): Add m4/mathfunc.m4.
2491
2492 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2493
2494         raise tests: Avoid a GCC warning.
2495         * tests/test-raise.c (handler): Use _Noreturn.
2496
2497 2011-10-07  Bruno Haible  <bruno@clisp.org>
2498
2499         Tests for module 'ldexpf'.
2500         * modules/ldexpf-tests: New file.
2501         * tests/test-ldexpf.c: New file.
2502
2503         New module 'ldexpf'.
2504         * lib/math.in.h (ldexpf): New declaration.
2505         * lib/ldexpf.c: New file.
2506         * m4/ldexpf.m4: New file.
2507         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2509         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2510         * modules/ldexpf: New file.
2511         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2512         * doc/posix-functions/ldexpf.texi: Mention the new module.
2513
2514 2011-10-06  Bruno Haible  <bruno@clisp.org>
2515
2516         frexpf: Work around problems on IRIX and mingw.
2517         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2519         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2520         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2521         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2522         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2523         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2524
2525 2011-10-06  Bruno Haible  <bruno@clisp.org>
2526
2527         fabsf: Drop assumption about library that defines fabsf.
2528         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2529         AC_CHECK_FUNCS.
2530         * modules/fabsf (Files): Add m4/mathfunc.m4.
2531
2532 2011-10-06  Bruno Haible  <bruno@clisp.org>
2533
2534         frexpf: Drop assumption about library that defines frexpf.
2535         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2536         'int *', 'float *', 'long double *', 'float', 'long double'.
2537         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2538         AC_CHECK_FUNCS.
2539         * modules/frexpf (Files): Add m4/mathfunc.m4.
2540
2541         Tests for module 'frexpf'.
2542         * modules/frexpf-tests: New file.
2543         * tests/test-frexpf.c: New file.
2544
2545         New module 'frexpf'.
2546         * lib/math.in.h (frexpf): New declaration.
2547         * lib/frexpf.c: New file.
2548         * m4/frexpf.m4: New file.
2549         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2551         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2552         * modules/frexpf: New file.
2553         * tests/test-math-c++.cc: Check the declaration of frexpf.
2554         * doc/posix-functions/frexpf.texi: Mention the new module.
2555
2556 2011-10-06  Bruno Haible  <bruno@clisp.org>
2557
2558         math: Sort function declarations of math.in.h.
2559         * lib/math.in.h (frexp, logb): Move declarations.
2560
2561 2011-10-05  Bruno Haible  <bruno@clisp.org>
2562
2563         Tests for module 'modff'.
2564         * modules/modff-tests: New file.
2565         * tests/test-modff.c: New file.
2566
2567         New module 'modff'.
2568         * lib/math.in.h (modff): New declaration.
2569         * lib/modff.c: New file.
2570         * m4/modff.m4: New file.
2571         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2572         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2573         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2574         * modules/modff: New file.
2575         * tests/test-math-c++.cc: Check the declaration of modff.
2576         * doc/posix-functions/modff.texi: Mention the new module.
2577
2578         modf tests: Make test sharper.
2579         * tests/test-modf.c (main): Strengthen upper bound.
2580
2581         modf: Use a .m4 file.
2582         * m4/modf.m4: New file.
2583         * modules/modf (Files): Add it.
2584         (configure.ac): Just invoke gl_FUNC_MODF.
2585
2586 2011-10-05  Bruno Haible  <bruno@clisp.org>
2587
2588         Tests for module 'fmodf'.
2589         * modules/fmodf-tests: New file.
2590         * tests/test-fmodf.c: New file.
2591
2592         New module 'fmodf'.
2593         * lib/math.in.h (fmodf): New declaration.
2594         * lib/fmodf.c: New file.
2595         * m4/fmodf.m4: New file.
2596         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2598         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2599         * modules/fmodf: New file.
2600         * tests/test-math-c++.cc: Check the declaration of fmodf.
2601         * doc/posix-functions/fmodf.texi: Mention the new module.
2602
2603         fmod: Use a .m4 file.
2604         * m4/fmod.m4: New file.
2605         * modules/fmod (Files): Add it.
2606         (configure.ac): Just invoke gl_FUNC_FMOD.
2607
2608 2011-10-05  Bruno Haible  <bruno@clisp.org>
2609
2610         Tests for module 'fabsf'.
2611         * modules/fabsf-tests: New file.
2612         * tests/test-fabsf.c: New file.
2613
2614         New module 'fabsf'.
2615         * lib/math.in.h (fabsf): New declaration.
2616         * lib/fabsf.c: New file.
2617         * m4/fabsf.m4: New file.
2618         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2619         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2620         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2621         * modules/fabsf: New file.
2622         * tests/test-math-c++.cc: Check the declaration of fabsf.
2623         * doc/posix-functions/fabsf.texi: Mention the new module.
2624
2625         fabs: Use a .m4 file.
2626         * m4/fabs.m4: New file.
2627         * modules/fabs (Files): Add it.
2628         (configure.ac): Just invoke gl_FUNC_FABS.
2629
2630 2011-10-05  Jim Meyering  <meyering@redhat.com>
2631
2632         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2633         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2634         ls -lL regression introduced in coreutils-8.12, it does so at the
2635         cost of an additional stat call in the common case.  Besides, now
2636         that the kernel change that prompted commit 95f7c57f has been reverted
2637         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2638         we have no use for commit 95f7c57f, "file-has-acl: use
2639         acl_extended_file_nofollow if available".
2640
2641 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2642
2643         file-has-acl: revert unintended change in behavior of ls -L
2644         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2645         derived from...
2646         (file_has_acl): ...code here.  Call it.
2647         This problem was introduced with 2011-07-22 commit 95f7c57f,
2648         "file-has-acl: use acl_extended_file_nofollow if available".
2649         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2650
2651 2011-10-03  Bruno Haible  <bruno@clisp.org>
2652
2653         poll: Avoid link errors on MSVC.
2654         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2655         * modules/poll (Depends-on): Add sockets.
2656         (Link): New section.
2657         * NEWS: Mention the change.
2658         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2659         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2660         $(LIB_POLL) instead of $(LIBSOCKET).
2661
2662 2011-10-03  Bruno Haible  <bruno@clisp.org>
2663
2664         sys_select tests: Fix link error on MSVC 9.
2665         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2666         with $(LIB_SELECT) instead of $(LIBSOCKET).
2667
2668 2011-10-03  Bruno Haible  <bruno@clisp.org>
2669
2670         sys_select: Fix compilation error on mingw.
2671         * lib/sys_select.in.h: On native Windows, include <io.h>.
2672
2673 2011-10-03  Bruno Haible  <bruno@clisp.org>
2674
2675         wmemset: Support for MSVC.
2676         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2677         whether wmemset() exists.
2678
2679 2011-10-03  Bruno Haible  <bruno@clisp.org>
2680
2681         wmemmove: Support for MSVC.
2682         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2683         whether wmemmove() exists.
2684
2685 2011-10-03  Bruno Haible  <bruno@clisp.org>
2686
2687         wmemcpy: Support for MSVC.
2688         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2689         whether wmemcpy() exists.
2690
2691 2011-10-03  Bruno Haible  <bruno@clisp.org>
2692
2693         wmemcmp: Support for MSVC.
2694         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2695         whether wmemcmp() exists.
2696
2697 2011-10-03  Bruno Haible  <bruno@clisp.org>
2698
2699         wmemchr: Support for MSVC.
2700         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2701         whether wmemchr() exists.
2702
2703 2011-10-03  Bruno Haible  <bruno@clisp.org>
2704
2705         glthread/*, strsignal: Support for MSVC.
2706         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2707         including <winsock.h> on MSVC 9.
2708         * lib/glthread/lock.h: Likewise.
2709         * lib/glthread/thread.h: Likewise.
2710         * lib/glthread/tls.h: Likewise.
2711         * lib/glthread/yield.h: Likewise.
2712         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2713         if HAVE_UNISTD_H is false.
2714         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2715
2716 2011-10-03  Bruno Haible  <bruno@clisp.org>
2717
2718         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2719         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2720         Set to 100000.
2721
2722 2011-10-03  Bruno Haible  <bruno@clisp.org>
2723
2724         acl: Fix specification.
2725         * lib/file-has-acl.c (file_has_acl): Fix specification.
2726
2727 2011-10-03  Bruno Haible  <bruno@clisp.org>
2728
2729         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2730         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2731         (compute_curr_prefix, shared_library_fullname,
2732         find_shared_library_fullname, get_shared_library_fullname, relocate):
2733         Use it together with PIC && INSTALLDIR.
2734         Reported by <jojelino@gmail.com>
2735         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2736
2737 2011-10-01  Jim Meyering  <meyering@redhat.com>
2738
2739         maint.mk: adjust a release-related rule not to require use of gzip
2740         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2741         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2742         projects that build only .tar.xz files.  Also fix an erroneous test.
2743
2744         test-linkat: don't leave behind a temporary file
2745         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2746         Otherwise, coreutils' "make distcheck" would fail with this:
2747           Only in /c/cu/tests/torture/coreutils/test/\
2748             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2749           make[2]: *** [my-distcheck] Error 1
2750
2751         float, math: add omitted file
2752         * lib/itold.c: Add file, required for yesterday's float change.
2753
2754 2011-10-01  Bruno Haible  <bruno@clisp.org>
2755
2756         isinf: Fix for OpenBSD/x86.
2757         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2758         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2759         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2760
2761 2011-10-01  Bruno Haible  <bruno@clisp.org>
2762
2763         isfinite: Fix syntax error in configure test.
2764         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2765
2766         isfinite: Fix typo.
2767         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2768         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2769
2770 2011-10-01  Bruno Haible  <bruno@clisp.org>
2771
2772         nonblocking tests: Fix test failure on Linux/IA-64.
2773         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2774         Set to 270000.
2775
2776 2011-10-01  Bruno Haible  <bruno@clisp.org>
2777
2778         mkfifoat tests: Fix a test failure on mingw.
2779         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2780         with error ENOSYS.
2781
2782 2011-09-30  Bruno Haible  <bruno@clisp.org>
2783
2784         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2785         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2786         'long double'. Set REPLACE_ITOLD.
2787         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2788         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2789         * lib/itold.c: New file.
2790         * modules/float (Files): Add lib/itold.c.
2791         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2792         (Makefile.am): Substitute REPLACE_ITOLD.
2793         * modules/math (Depends-on): Add float.
2794         (Makefile.am): Substitute REPLACE_ITOLD.
2795         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2796         * doc/posix-headers/math.texi: Likewise.
2797         * doc/posix-functions/logl.texi: Likewise.
2798
2799 2011-09-30  Bruno Haible  <bruno@clisp.org>
2800
2801         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2802         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2803         Set to 140000.
2804
2805 2011-09-30  Bruno Haible  <bruno@clisp.org>
2806
2807         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2808         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2809         invocation, say "right after AC_PROG_CC_STDC", not "right after
2810         AC_PROG_CC".
2811         Reported by Gary V. Vaughan <gary@gnu.org>.
2812
2813 2011-09-30  Bruno Haible  <bruno@clisp.org>
2814
2815         Centralize C99 requirement.
2816         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2817         * modules/stdarg (configure.ac-early): Invoke it instead of
2818         AC_PROG_CC_STDC.
2819         Reported by Gary V. Vaughan and Paul Eggert.
2820
2821 2011-09-29  Bruno Haible  <bruno@clisp.org>
2822
2823         float: Fix LDBL_MAX value on Linux/PowerPC.
2824         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2825         on Linux/PowerPC.
2826         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2827         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2828         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2829         platform.
2830         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2831
2832 2011-09-29  Bruno Haible  <bruno@clisp.org>
2833
2834         doc: Improve doc about gl_EARLY.
2835         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2836         AC_PROG_CC_STDC invocation.
2837         Reported by Gary V. Vaughan <gary@gnu.org>.
2838
2839 2011-09-28  Bruno Haible  <bruno@clisp.org>
2840
2841         fgetc, fputc, fread, fwrite tests: Fix link error.
2842         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2843         on non-MSVC platforms.
2844         * tests/test-fputc.c (main): Likewise.
2845         * tests/test-fread.c (main): Likewise.
2846         * tests/test-fwrite.c (main): Likewise.
2847         Reported by Jim Meyering.
2848
2849 2011-09-27  Bruno Haible  <bruno@clisp.org>
2850
2851         fputc, fwrite tests: Avoid test failure on MSVC.
2852         * tests/test-fgetc.c: Include msvc-inval.h.
2853         (main): Invoke gl_msvc_inval_ensure_handler.
2854         * tests/test-fputc.c: Include msvc-inval.h.
2855         (main): Invoke gl_msvc_inval_ensure_handler.
2856         * tests/test-fread.c: Include msvc-inval.h.
2857         (main): Invoke gl_msvc_inval_ensure_handler.
2858         * tests/test-fwrite.c: Include msvc-inval.h.
2859         (main): Invoke gl_msvc_inval_ensure_handler.
2860         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2861         * modules/fputc-tests (Depends-on): Likewise.
2862         * modules/fread-tests (Depends-on): Likewise.
2863         * modules/fwrite-tests (Depends-on): Likewise.
2864
2865 2011-09-27  Bruno Haible  <bruno@clisp.org>
2866
2867         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2868         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2869         (raise): Remove older, duplicated declaration.
2870         (_gl_raise_SIGPIPE): New declaration.
2871         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2872         (rpl_raise): Remove function.
2873         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2874         a gnulib-defined SIGPIPE here.
2875         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2876         'sigprocmask' has detected missing signal-blocking and the module
2877         'sigpipe' is enabled.
2878         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2879
2880 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2881
2882         base64-tests: avoid memory leak
2883         * tests/test-base64.c (main): Plug memory leak.
2884
2885         base32: new module
2886         * modules/base32: New module.
2887         * lib/base32.c: New file.
2888         * lib/base32.h: Likewise.
2889         * m4/base32.m4: Likewise.
2890         * modules/base32-tests: New test.
2891         * tests/test-base32.c: Likewise.
2892         * MODULES.html.sh (Misc): Mention it.
2893
2894 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2895
2896         gnulib: use more-standard license notice wording
2897         * gnulib-tool (func_emit_copyright_notice): When emitting a
2898         license notice into a file, use the standard wording as suggested
2899         by the current information for GNU maintainers, except say "file"
2900         rather than "program".  The new wording gives a license version
2901         number, which addresses an issue raised by Glenn Morris in
2902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2903         * m4/onceonly.m4: Use that same wording here, too.
2904
2905         dup2: minor simplification
2906         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2907         as lib/dup2.c no longer uses 'inline'.
2908
2909 2011-09-25  Bruno Haible  <bruno@clisp.org>
2910
2911         strings: Fix compilation error on MSVC.
2912         * lib/strings.in.h: Include <stddef.h> for size_t.
2913
2914 2011-09-25  Bruno Haible  <bruno@clisp.org>
2915
2916         fflush et al.: Document limitation on MSVC.
2917         * doc/posix-functions/fflush.texi: Document possible crash in handling
2918         mode other than DEFAULT_HANDLING.
2919         * doc/posix-functions/fgetc.texi: Likewise.
2920         * doc/posix-functions/fputc.texi: Likewise.
2921         * doc/posix-functions/fread.texi: Likewise.
2922         * doc/posix-functions/fwrite.texi: Likewise.
2923
2924 2011-09-25  Bruno Haible  <bruno@clisp.org>
2925
2926         msvc-inval: Allow three invalid parameter handling modes.
2927         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2928         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2929         macros.
2930         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2931         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2932         SANE_LIBRARY_HANDLING as a no-op.
2933         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2934         <stdlib.h>.
2935         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2936
2937 2011-09-25  Bruno Haible  <bruno@clisp.org>
2938
2939         msvc-inval: Make handler multithread-safe.
2940         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2941         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2942         declarations.
2943         (gl_msvc_inval_current): New declaration.
2944         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2945         Operate on the structure returned by gl_msvc_inval_current().
2946         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2947         Remove varaiables.
2948         (tls_index, tls_initialized): New variables.
2949         (not_per_thread): New variable.
2950         (gl_msvc_inval_current): New function.
2951         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2952         returned by gl_msvc_inval_current().
2953
2954 2011-09-25  Bruno Haible  <bruno@clisp.org>
2955
2956         msvc-inval: Install handler globally.
2957         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2958         !_MSC_VER.
2959         (gl_msvc_invalid_parameter_handler): Remove declaration.
2960         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2961         declarations.
2962         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2963         Install the handler globally, don't uninstall it.
2964         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2965         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2966         currently valid, call RaiseException instead.
2967         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2968         for !_MSC_VER.
2969
2970 2011-09-25  Bruno Haible  <bruno@clisp.org>
2971
2972         strerror_r-posix: Fix for MSVC 9.
2973         * lib/strerror_r.c (local_snprintf): New function.
2974         (snprintf): Define to local_snprintf, not to _snprintf.
2975
2976 2011-09-25  Bruno Haible  <bruno@clisp.org>
2977
2978         ftruncate: Support for MSVC 9.
2979         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2980         (chsize_nothrow): New function.
2981         (chsize): Redefine as a macro.
2982         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2983         * modules/ftruncate (Depends-on): Add msvc-inval.
2984
2985 2011-09-25  Bruno Haible  <bruno@clisp.org>
2986
2987         New module 'fstat'.
2988         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2989         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2990         * lib/fchdir.c (rpl_fstat): Remove function.
2991         * m4/fstat.m4: New file.
2992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2993         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2994         declared.
2995         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2996         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2997         * modules/fstat: New file.
2998         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2999         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3000         is set.
3001         * doc/posix-functions/fstat.texi: Mention the new module and the
3002         problem on MSVC.
3003         * NEWS: Mention the change.
3004         * modules/acl (Depends-on): Add fstat.
3005         * modules/chdir-safer (Depends-on): Likewise.
3006         * modules/chown (Depends-on): Likewise.
3007         * modules/copy-file (Depends-on): Likewise.
3008         * modules/fchdir (Depends-on): Likewise.
3009         * modules/fdopendir (Depends-on): Likewise.
3010         * modules/fopen (Depends-on): Likewise.
3011         * modules/fts (Depends-on): Likewise.
3012         * modules/getcwd (Depends-on): Likewise.
3013         * modules/isapipe (Depends-on): Likewise.
3014         * modules/linkat (Depends-on): Likewise.
3015         * modules/lseek (Depends-on): Likewise.
3016         * modules/mkdir-p (Depends-on): Likewise.
3017         * modules/open (Depends-on): Likewise.
3018         * modules/openat (Depends-on): Likewise.
3019         * modules/read-file (Depends-on): Likewise.
3020         * modules/renameat (Depends-on): Likewise.
3021         * modules/utimens (Depends-on): Likewise.
3022
3023 2011-09-25  Bruno Haible  <bruno@clisp.org>
3024
3025         linkat: Fix compilation on MSVC 9.
3026         * lib/linkat.c: Don't include <stdint.h>.
3027
3028 2011-09-25  Bruno Haible  <bruno@clisp.org>
3029
3030         fclose: Support for MSVC 9.
3031         * lib/fclose.c: Include msvc-inval.h.
3032         (fclose_nothrow): New function.
3033         (rpl_fclose): Use it.
3034         * modules/fclose (Depends-on): Add msvc-inval.
3035         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3036
3037 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3038
3039         dup2: minor simplifications
3040         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3041         that it's a performance win.
3042         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3043         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3044
3045 2011-09-24  Jim Meyering  <meyering@redhat.com>
3046
3047         test-futimens: avoid a warning from gcc -Wshadow
3048         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3049         to avoid a shadowing warning.
3050
3051 2011-09-24  Bruno Haible  <bruno@clisp.org>
3052
3053         fdopen: Support for MSVC 9.
3054         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3055         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3056         * lib/fdopen.c: Include msvc-inval.h.
3057         (fdopen_nothrow): New function.
3058         (rpl_fdopen): Use it.
3059         * modules/fdopen (Depends-on): Add msvc-inval.
3060         * modules/fclose-tests (Depends-on): Add fdopen.
3061         * modules/fflush-tests (Depends-on): Likewise.
3062         * modules/fgetc-tests (Depends-on): Likewise.
3063         * modules/fputc-tests (Depends-on): Likewise.
3064         * modules/fread-tests (Depends-on): Likewise.
3065         * modules/freopen-tests (Depends-on): Likewise.
3066         * modules/fseeko-tests (Depends-on): Likewise.
3067         * modules/ftello-tests (Depends-on): Likewise.
3068         * modules/fwrite-tests  (Depends-on): Likewise.
3069         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3070
3071 2011-09-24  Bruno Haible  <bruno@clisp.org>
3072
3073         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3074         * modules/fgetc-tests (Depends-on): Add unistd.
3075         * modules/fputc-tests (Depends-on): Likewise.
3076         * modules/fread-tests (Depends-on): Likewise.
3077         * modules/fwrite-tests (Depends-on): Likewise.
3078
3079 2011-09-24  Bruno Haible  <bruno@clisp.org>
3080
3081         dup: Simplify autoconf test.
3082         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3083         on gl_MSVC_INVAL's result.
3084
3085 2011-09-24  Bruno Haible  <bruno@clisp.org>
3086
3087         Tests for function fwrite().
3088         * modules/fwrite-tests: New file.
3089         * tests/test-fwrite.c: New file.
3090         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3091
3092         Tests for function fread().
3093         * modules/fread-tests: New file.
3094         * tests/test-fread.c: New file.
3095         * modules/stdio-tests (Depends-on): Add fread-tests.
3096
3097         Activate fputc tests.
3098         * modules/stdio-tests (Depends-on): Add fputc-tests.
3099
3100         Enhance fgetc, fputc tests.
3101         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3102         * tests/test-fputc.c (main): Likewise.
3103
3104 2011-09-24  Bruno Haible  <bruno@clisp.org>
3105
3106         write: Support for MSVC 9.
3107         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3108         is not 1.
3109         * lib/write.c (write_nothrow): New function.
3110         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3111         not 1. Use write_nothrow.
3112         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3113         invalid parameter handler.
3114         (gl_PREREQ_WRITE): New macro.
3115         * modules/write (Depends-on): Add msvc-inval.
3116         (configure.ac): Invoke gl_PREREQ_WRITE.
3117         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3118
3119 2011-09-24  Bruno Haible  <bruno@clisp.org>
3120
3121         read: Fix last commit.
3122         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3123
3124 2011-09-24  Bruno Haible  <bruno@clisp.org>
3125
3126         dup2: Fix last commit.
3127         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3128         (rpl_dup2): Disable fcntl workaround on native Windows.
3129
3130         sigprocmask: Make code safer.
3131         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3132         section that changes macro definitions for this compilation unit.
3133
3134 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3135
3136         dup2: clarify by coalescing Windows-specific material
3137         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3138         "msvc-nothrow.h"' to the Windows-specific section, so that the
3139         Emacs source need not contain these include files.
3140         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3141         Windows-specific fixes into this function rather than just the
3142         nothrow fix, as this shortens and clarifies the code.  Always
3143         define as a function, as that's a bit cleaner than having it be
3144         sometimes a function and sometimes a macro.
3145         (rpl_dup2): Move the Windows-specific stuff out of here and into
3146         ms_windows_dup2.  Don't protect the Haiku-related fix with
3147         "#if !defined __linux__", as the same code also works around
3148         a Linux kernel bug, and it doesn't add any system calls on any
3149         platform.  Add comment about FreeBSD 6.1.
3150
3151         sigprocmask: move #include directive
3152         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3153         Windows-specific section, so that the Emacs source need not
3154         contain msvc-inval.h.
3155
3156 2011-09-23  Bruno Haible  <bruno@clisp.org>
3157
3158         read: Support for MSVC 9.
3159         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3160         is not 1.
3161         * lib/read.c (read_nothrow): New function.
3162         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3163         read_nothrow.
3164         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3165         invalid parameter handler.
3166         (gl_PREREQ_READ): New macro.
3167         * modules/read (Depends-on): Add msvc-inval.
3168         (configure.ac): Invoke gl_PREREQ_READ.
3169         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3170
3171 2011-09-23  Bruno Haible  <bruno@clisp.org>
3172
3173         close: Support for MSVC 9.
3174         * lib/close.c: Include <errno.h>, msvc-inval.h.
3175         (close_nothrow): New function.
3176         (rpl_close): Use it.
3177         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3178         invalid parameter handler.
3179         * modules/close (Depends-on): Add msvc-inval.
3180         * modules/dup2-tests (Depends-on): Add close.
3181         * modules/dup3-tests (Depends-on): Likewise.
3182         * modules/fcntl-tests (Depends-on): Likewise.
3183         * modules/spawn-pipe-tests (Depends-on): Likewise.
3184         * modules/unistd-safer-tests (Depends-on): Likewise.
3185         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3186
3187 2011-09-23  Bruno Haible  <bruno@clisp.org>
3188
3189         New module 'dup'.
3190         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3191         Allow replacement.
3192         * lib/dup.c: New file.
3193         * lib/fchdir.c (rpl_dup): Remove function.
3194         * m4/dup.m4: New file.
3195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3196         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3197         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3198         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3199         * modules/dup: New file.
3200         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3201         'dup' module is in use.
3202         * modules/fdopendir (Depends-on): Add dup.
3203         * modules/fdutimensat-tests (Depends-on): Likewise.
3204         * modules/fts (Depends-on): Likewise.
3205         * modules/futimens-tests (Depends-on): Likewise.
3206         * modules/posix_spawnp-tests (Depends-on): Likewise.
3207         * modules/unistd-safer-tests (Depends-on): Likewise.
3208         * modules/utimens-tests (Depends-on): Likewise.
3209         * doc/posix-functions/dup.texi: Mention the new module and the problem
3210         on MSVC.
3211
3212 2011-09-23  Bruno Haible  <bruno@clisp.org>
3213
3214         getdtablesize: Support for MSVC 9.
3215         * lib/getdtablesize.c: Include msvc-inval.h.
3216         (_setmaxstdio_nothrow): New function.
3217         (_setmaxstdio): Redefine it.
3218         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3219         * modules/getdtablesize (Depends-on): Add msvc-inval.
3220         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3221
3222 2011-09-23  Bruno Haible  <bruno@clisp.org>
3223
3224         signal-h: Rename from signal.
3225         * modules/signal-h: Renamed from modules/signal.
3226         * modules/pthread_sigmask (Depends-on): Update.
3227         * modules/raise (Depends-on): Likewise.
3228         * modules/sigaction (Depends-on): Likewise.
3229         * modules/sigpipe (Depends-on): Likewise.
3230         * modules/sigprocmask (Depends-on): Likewise.
3231         * modules/sys_select (Depends-on): Likewise.
3232         * modules/signal-h-tests: Renamed from modules/signal-tests.
3233         (Files, Depends-on, Makefile.am): Update.
3234         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3235         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3236         (Files, Makefile.am): Update.
3237         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3238         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3239         * modules/signal: New placeholder file.
3240         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3241         * doc/posix-headers/signal.texi: Update.
3242         * NEWS: Mention the change.
3243
3244 2011-09-23  Bruno Haible  <bruno@clisp.org>
3245
3246         sigprocmask: Avoid crashes through signal() on MSVC 9.
3247         * lib/sigprocmask.c: Include msvc-inval.h.
3248         (signal_nothrow): New function.
3249         (signal): Redefine it.
3250         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3251         * modules/sigprocmask (Depends-on): Add msvc-inval.
3252         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3253
3254 2011-09-23  Bruno Haible  <bruno@clisp.org>
3255
3256         Tests for module 'raise'.
3257         * modules/raise-tests: New file.
3258         * tests/test-raise.c: New file.
3259
3260         raise: Support for MSVC.
3261         * lib/signal.in.h (raise): New declaration.
3262         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3263         for native Windows platforms.
3264         * m4/raise.m4: New file.
3265         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3266         HAVE_RAISE, REPLACE_RAISE.
3267         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3268         REPLACE_RAISE.
3269         * modules/raise (Status, Notice): Remove fields.
3270         (Files): Add m4/raise.m4.
3271         (Depends-on): Add signal, msvc-inval.
3272         (configure.ac): Use the common idioms.
3273         (Maintainer): Add me.
3274         * tests/test-signal-c++.cc: Check the signature of raise.
3275         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3276
3277 2011-09-23  Bruno Haible  <bruno@clisp.org>
3278
3279         pipe2: Fix compilation on pre-C99 compilers.
3280         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3281
3282 2011-09-23  Bruno Haible  <bruno@clisp.org>
3283
3284         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3285         * lib/msvc-nothrow.h: New file.
3286         * lib/msvc-nothrow.c: New file.
3287         * m4/msvc-nothrow.m4: New file.
3288         * modules/msvc-nothrow: New file.
3289         * lib/dup2.c: Include msvc-nothrow.h.
3290         (rpl_dup2): No need to protect _get_osfhandle call here.
3291         * lib/accept4.c: Include msvc-nothrow.h.
3292         * lib/error.c: Likewise.
3293         * lib/fcntl.c: Likewise.
3294         * lib/lseek.c: Likewise.
3295         * lib/nonblocking.c: Likewise.
3296         * lib/poll.c: Likewise.
3297         * lib/read.c: Likewise.
3298         * lib/select.c: Likewise.
3299         * lib/sockets.h: Likewise.
3300         * lib/sockets.c: Likewise.
3301         * lib/stdio-read.c: Likewise.
3302         * lib/stdio-write.c: Likewise.
3303         * lib/write.c: Likewise.
3304         * lib/w32sock.h: Likewise.
3305         * lib/w32spawn.h: Likewise.
3306         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3307         * lib/fsync.c: Likewise.
3308         * lib/isapipe.c: Likewise.
3309         * modules/dup2 (Depends-on): Add msvc-nothrow.
3310         * modules/accept4 (Depends-on): Likewise.
3311         * modules/error (Depends-on): Likewise.
3312         * modules/fcntl (Depends-on): Likewise.
3313         * modules/lseek (Depends-on): Likewise.
3314         * modules/nonblocking (Depends-on): Likewise.
3315         * modules/poll (Depends-on): Likewise.
3316         * modules/read (Depends-on): Likewise.
3317         * modules/select (Depends-on): Likewise.
3318         * modules/sockets (Depends-on): Likewise.
3319         * modules/sigpipe (Depends-on): Likewise.
3320         * modules/write (Depends-on): Likewise.
3321         * modules/accept (Depends-on): Likewise.
3322         * modules/bind (Depends-on): Likewise.
3323         * modules/connect (Depends-on): Likewise.
3324         * modules/gethostname (Depends-on): Likewise.
3325         * modules/getpeername (Depends-on): Likewise.
3326         * modules/getsockname (Depends-on): Likewise.
3327         * modules/getsockopt (Depends-on): Likewise.
3328         * modules/ioctl (Depends-on): Likewise.
3329         * modules/listen (Depends-on): Likewise.
3330         * modules/recv (Depends-on): Likewise.
3331         * modules/recvfrom (Depends-on): Likewise.
3332         * modules/send (Depends-on): Likewise.
3333         * modules/sendto (Depends-on): Likewise.
3334         * modules/setsockopt (Depends-on): Likewise.
3335         * modules/shutdown (Depends-on): Likewise.
3336         * modules/socket (Depends-on): Likewise.
3337         * modules/execute (Depends-on): Likewise.
3338         * modules/spawn-pipe (Depends-on): Likewise.
3339         * modules/flock (Depends-on): Likewise.
3340         * modules/fsync (Depends-on): Likewise.
3341         * modules/isapipe (Depends-on): Likewise.
3342         * tests/test-cloexec.c: Include msvc-nothrow.h.
3343         * tests/test-dup-safer.c: Likewise.
3344         * tests/test-dup2.c: Likewise.
3345         * tests/test-dup3.c: Likewise.
3346         * tests/test-fcntl.c: Likewise.
3347         * tests/test-pipe.c: Likewise.
3348         * tests/test-pipe2.c: Likewise.
3349         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3350         * modules/unistd-safer-tests (Depends-on): Likewise.
3351         * modules/dup2-tests (Depends-on): Likewise.
3352         * modules/dup3-tests (Depends-on): Likewise.
3353         * modules/fcntl-tests (Depends-on): Likewise.
3354         * modules/pipe-posix-tests (Depends-on): Likewise.
3355         * modules/pipe2-tests (Depends-on): Likewise.
3356
3357 2011-09-23  Bruno Haible  <bruno@clisp.org>
3358
3359         dup2: Make code more maintainable.
3360         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3361         (rpl_dup2): Use it.
3362         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3363         * modules/dup2 (configure.ac): Invoke it.
3364         Reported by Paul Eggert.
3365
3366 2011-09-23  Bruno Haible  <bruno@clisp.org>
3367
3368         msvc-inval: Fix compilation error.
3369         * lib/msvc-inval.h: Include <excpt.h>.
3370
3371 2011-09-23  Bruno Haible  <bruno@clisp.org>
3372
3373         mkdir: Tweak for MSVC 9.
3374         * lib/sys_stat.in.h: Update comments.
3375         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3376
3377         Tests for module 'chdir'.
3378         * modules/chdir-tests: New file.
3379         * tests/test-chdir.c: New file.
3380
3381         New module 'chdir'.
3382         * modules/chdir: New file.
3383         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3384         (chdir): New declaration.
3385         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3386         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3387         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3388         * tests/test-unistd-c++.cc: Check signature of chdir.
3389         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3390         * modules/chdir-long (Depends-on): Add chdir.
3391         * modules/fchdir (Depends-on): Likewise.
3392         * modules/rename (Depends-on): Likewise.
3393         * modules/savewd (Depends-on): Likewise.
3394
3395         rmdir: Support for mingw, MSVC 9.
3396         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3397         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3398
3399         getcwd: Tweak for MSVC 9.
3400         * lib/unistd.in.h: Update comments.
3401         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3402
3403 2011-09-22  Bruno Haible  <bruno@clisp.org>
3404
3405         strerror_r-posix: Avoid a link error on MSVC.
3406         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3407         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3408
3409 2011-09-22  Bruno Haible  <bruno@clisp.org>
3410
3411         select: Avoid link errors on MSVC.
3412         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3413         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3414         * modules/pselect (Link): Likewise.
3415         * NEWS: Mention the change.
3416         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3417         test-select-stdin against $(LIB_SELECT).
3418         * modules/pselect-tests (Makefile.am): Link test-pselect against
3419         $(LIB_SELECT).
3420
3421 2011-09-22  Bruno Haible  <bruno@clisp.org>
3422
3423         select: Avoid compilation error on MSVC.
3424         * lib/select.c: Don't include <stdbool.h>.
3425
3426 2011-09-21  Bruno Haible  <bruno@clisp.org>
3427
3428         Consolidate all uses of PATH_MAX in *.m4 files.
3429         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3430         macros.
3431         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3432         and gl_PATHMAX_SNIPPET.
3433         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3434         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3435         * modules/chdir-long (Files): Add m4/pathmax.m4.
3436         * modules/getcwd (Files): Likewise.
3437
3438 2011-09-21  Bruno Haible  <bruno@clisp.org>
3439
3440         ftruncate: Un-deprecate, concentrate on Win32 support.
3441         * modules/ftruncate (Status, Notice): Remove sections.
3442         (Depends-on): Add largefile.
3443         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3444         non-mingw platforms.
3445         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3446         include <io.h>.
3447         * modules/perror-tests (Depends-on): Add ftruncate.
3448         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3449         'ftruncate' module.
3450
3451 2011-09-21  Bruno Haible  <bruno@clisp.org>
3452
3453         Add dependencies to new dirent related modules.
3454         * modules/opendir (Depends-on): Add closedir.
3455         * modules/getcwd (Depends-on): Add opendir, closedir.
3456         * modules/dirent-safer-tests (Depends-on): Likewise.
3457         * modules/fdopendir-tests (Depends-on): Likewise.
3458         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3459         * modules/renameat-tests (Depends-on): Likewise.
3460
3461 2011-09-21  Bruno Haible  <bruno@clisp.org>
3462
3463         opendir: Avoid compilation error on mingw.
3464         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3465         * modules/opendir (Depends-on): Add unistd.
3466
3467 2011-09-21  Bruno Haible  <bruno@clisp.org>
3468
3469         ftruncate tests: Avoid a test failure on mingw.
3470         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3471
3472 2011-09-21  Bruno Haible  <bruno@clisp.org>
3473
3474         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3475         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3476         native Windows.
3477
3478 2011-09-21  Bruno Haible  <bruno@clisp.org>
3479
3480         New module 'fdopen'.
3481         * lib/stdio.in.h (fdopen): New declaration.
3482         * lib/fdopen.c: New file.
3483         * m4/fdopen.m4: New file.
3484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3485         REPLACE_FDOPEN.
3486         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3487         REPLACE_FDOPEN.
3488         * modules/fdopen: New file.
3489         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3490         * tests/test-stdio-c++.cc: Check signature of fdopen.
3491         * doc/posix-functions/fdopen.texi: Mention the new module.
3492
3493 2011-09-21  Bruno Haible  <bruno@clisp.org>
3494
3495         unlockpt tests: Avoid test failure on NetBSD 5.1.
3496         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3497         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3498
3499 2011-09-21  Bruno Haible  <bruno@clisp.org>
3500
3501         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3502         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3503         * tests/test-getlogin_r.c (main): Likewise.
3504
3505 2011-09-20  Bruno Haible  <bruno@clisp.org>
3506
3507         time tests: Don't require pid_t.
3508         * doc/posix-headers/time.texi: Revert last change.
3509         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3510         * tests/test-time.c: Comment out the check for pid_t.
3511
3512 2011-09-20  Bruno Haible  <bruno@clisp.org>
3513
3514         fsync tests: Avoid a test failure on mingw.
3515         * tests/test-fsync.c (main): Allow a failure with EIO.
3516
3517 2011-09-20  Bruno Haible  <bruno@clisp.org>
3518
3519         euidaccess: Update comments.
3520         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3521
3522 2011-09-20  Bruno Haible  <bruno@clisp.org>
3523
3524         Ensure EBADF returns for socket functions on mingw.
3525         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3526         descriptor is invalid.
3527         * lib/bind.c (rpl_bind): Likewise.
3528         * lib/connect.c (rpl_connect): Likewise.
3529         * lib/getpeername.c (rpl_getpeername): Likewise.
3530         * lib/getsockname.c (rpl_getsockname): Likewise.
3531         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3532         * lib/listen.c (rpl_listen): Likewise.
3533         * lib/recv.c (rpl_recv): Likewise.
3534         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3535         * lib/send.c (rpl_send): Likewise.
3536         * lib/sendto.c (rpl_sendto): Likewise.
3537         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3538         * lib/shutdown.c (rpl_shutdown): Likewise.
3539
3540 2011-09-20  Bruno Haible  <bruno@clisp.org>
3541
3542         select tests: EBADF tests.
3543         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3544         test_bad_fd): New functions.
3545         (test_function): Invoke also test_bad_fd.
3546
3547 2011-09-20  Bruno Haible  <bruno@clisp.org>
3548
3549         Tests for module 'posix_spawn_file_actions_addopen.
3550         * modules/posix_spawn_file_actions_addopen-tests: New file.
3551         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3552
3553         Tests for module 'posix_spawn_file_actions_adddup2'.
3554         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3555         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3556
3557         Tests for module 'posix_spawn_file_actions_addclose'.
3558         * modules/posix_spawn_file_actions_addclose-tests: New file.
3559         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3560
3561 2011-09-20  Bruno Haible  <bruno@clisp.org>
3562
3563         Tests for module 'unlockpt'.
3564         * modules/unlockpt-tests: New file.
3565         * tests/test-unlockpt.c: New file.
3566         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3567
3568         Tests for module 'grantpt'.
3569         * modules/grantpt-tests: New file.
3570         * tests/test-grantpt.c: New file.
3571         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3572
3573 2011-09-20  Bruno Haible  <bruno@clisp.org>
3574
3575         freopen tests: EBADF tests.
3576         * tests/test-freopen.c: Include errno.h, unistd.h.
3577         (main): Add tests for EBADF, commented out for the moment.
3578
3579         fclose tests: EBADF tests.
3580         * tests/test-fclose.c (main): Add tests for EBADF.
3581
3582         fflush tests: EBADF tests.
3583         * tests/test-fflush.c: Include errno.h, macros.h.
3584         (main): Add tests for EBADF.
3585
3586         ftello tests: EBADF tests.
3587         * tests/test-ftello4.sh: New file.
3588         * tests/test-ftello4.c: New file.
3589         * modules/ftello-tests (Files): Add them.
3590         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3591
3592         fseeko tests: EBADF tests.
3593         * tests/test-fseeko4.sh: New file.
3594         * tests/test-fseeko4.c: New file.
3595         * modules/fseeko-tests (Files): Add them.
3596         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3597
3598         Tests for function fputc().
3599         * modules/fputc-tests: New file.
3600         * tests/test-fputc.c: New file.
3601         * modules/stdio-tests (Depends-on): Add fputc-tests.
3602
3603         Tests for function fgetc().
3604         * modules/fgetc-tests: New file.
3605         * tests/test-fgetc.c: New file.
3606         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3607
3608         Tests for function fdopen().
3609         * modules/fdopen-tests: New file.
3610         * tests/test-fdopen.c: New file.
3611         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3612
3613         Tests for module 'vdprintf'.
3614         * modules/vdprintf-tests: New file.
3615         * tests/test-vdprintf.c: New file.
3616
3617         Tests for module 'dprintf'.
3618         * modules/dprintf-tests: New file.
3619         * tests/test-dprintf.c: New file.
3620
3621 2011-09-20  Bruno Haible  <bruno@clisp.org>
3622
3623         Tests for module 'ioctl'.
3624         * modules/ioctl-tests: New file.
3625         * tests/test-ioctl.c: New file.
3626
3627 2011-09-20  Bruno Haible  <bruno@clisp.org>
3628
3629         fcntl tests: EBADF tests.
3630         * tests/test-fcntl.c (main): Add more tests for EBADF.
3631
3632 2011-09-20  Bruno Haible  <bruno@clisp.org>
3633
3634         utimensat tests: EBADF tests.
3635         * tests/test-utimensat.c (main): Add tests for EBADF.
3636
3637         renameat tests: EBADF tests.
3638         * tests/test-renameat.c (main): Add tests for EBADF.
3639
3640         mkfifoat tests: EBADF tests.
3641         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3642
3643         readlinkat tests: EBADF tests.
3644         * tests/test-readlinkat.c (main): Add tests for EBADF.
3645
3646         symlinkat tests: EBADF tests.
3647         * tests/test-symlinkat.c (main): Add tests for EBADF.
3648
3649         linkat tests: EBADF tests.
3650         * tests/test-linkat.c (main): Add tests for EBADF.
3651
3652         Tests for module 'faccessat'.
3653         * modules/faccessat-tests: New file.
3654         * tests/test-faccessat.c: New file.
3655
3656         fdopendir tests: EBADF tests.
3657         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3658
3659         openat tests: EBADF tests.
3660         * tests/test-fchownat.c (main): Add tests for EBADF.
3661         * tests/test-fstatat.c (main): Likewise.
3662         * tests/test-mkdirat.c (main): Likewise.
3663         * tests/test-openat.c (main): Likewise.
3664         * tests/test-unlinkat.c (main): Likewise.
3665         * tests/test-fchmodat.c: New file.
3666         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3667         (Makefile.am): Also run 'test-fchmodat'.
3668
3669 2011-09-20  Bruno Haible  <bruno@clisp.org>
3670
3671         utimens, futimens, fdutimensat tests: EBADF tests.
3672         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3673
3674         Tests for function fstat().
3675         * modules/fstat-tests: New file.
3676         * tests/test-fstat.c: New file.
3677         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3678
3679 2011-09-20  Bruno Haible  <bruno@clisp.org>
3680
3681         test-ttyname_r tests: EBADF tests.
3682         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3683
3684         Tests for module 'isatty'.
3685         * modules/isatty-tests: New file.
3686         * tests/test-isatty.c: New file.
3687
3688         Tests for module 'write'.
3689         * modules/write-tests: New file.
3690         * tests/test-write.c: New file.
3691
3692         Tests for module 'read'.
3693         * modules/read-tests: New file.
3694         * tests/test-read.c: New file.
3695
3696         pwrite tests: EBADF tests.
3697         * tests/test-pwrite.c (main): Add tests for EBADF.
3698
3699         pread tests: EBADF tests.
3700         * tests/test-pread.c (main): Add tests for EBADF.
3701
3702         lseek tests: EBADF tests.
3703         * tests/test-lseek.c (main): Add more tests for EBADF.
3704
3705         Tests for module 'ftruncate'.
3706         * modules/ftruncate-tests: New file.
3707         * tests/test-ftruncate.sh: New file.
3708         * tests/test-ftruncate.c: New file.
3709
3710         fsync tests: EBADF tests.
3711         * tests/test-fsync.c (main): Add more tests for EBADF.
3712
3713         fdatasync tests: EBADF tests.
3714         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3715
3716         Tests for module 'fchown'.
3717         * modules/fchown-tests: New file.
3718         * tests/test-fchown.c: New file.
3719
3720         Tests for module 'fchmod'.
3721         * modules/fchmod-tests: New file.
3722         * tests/test-fchmod.c: New file.
3723
3724         fchdir tests: EBADF tests.
3725         * tests/test-fchdir.c (main): Add more tests for EBADF.
3726
3727         dup2 tests: EBADF tests.
3728         * tests/test-dup2.c (main): Add more tests for EBADF.
3729
3730         Tests for module 'dup'.
3731         * modules/dup-tests: New file.
3732         * tests/test-dup.c: New file.
3733
3734         Tests for module 'close'.
3735         * modules/close-tests: New file.
3736         * tests/test-close.c: New file.
3737
3738 2011-09-20  Bruno Haible  <bruno@clisp.org>
3739
3740         Tests for module 'shutdown'.
3741         * modules/shutdown-tests: New file.
3742         * tests/test-shutdown.c: New file.
3743
3744         Tests for module 'setsockopt'.
3745         * modules/setsockopt-tests: New file.
3746         * tests/test-setsockopt.c: New file.
3747
3748         Tests for module 'sendto'.
3749         * modules/sendto-tests: New file.
3750         * tests/test-sendto.c: New file.
3751
3752         Tests for module 'send'.
3753         * modules/send-tests: New file.
3754         * tests/test-send.c: New file.
3755
3756         Tests for module 'recvfrom'.
3757         * modules/recvfrom-tests: New file.
3758         * tests/test-recvfrom.c: New file.
3759
3760         Tests for module 'recv'.
3761         * modules/recv-tests: New file.
3762         * tests/test-recv.c: New file.
3763
3764         Tests for module 'listen'.
3765         * modules/listen-tests: New file.
3766         * tests/test-listen.c: New file.
3767
3768         Tests for module 'getsockopt'.
3769         * modules/getsockopt-tests: New file.
3770         * tests/test-getsockopt.c: New file.
3771
3772         Tests for module 'getsockname'.
3773         * modules/getsockname-tests: New file.
3774         * tests/test-getsockname.c: New file.
3775
3776         Tests for module 'getpeername'.
3777         * modules/getpeername-tests: New file.
3778         * tests/test-getpeername.c: New file.
3779
3780         Tests for module 'connect'.
3781         * modules/connect-tests: New file.
3782         * tests/test-connect.c: New file.
3783
3784         Tests for module 'bind'.
3785         * modules/bind-tests: New file.
3786         * tests/test-bind.c: New file.
3787
3788         accept4 tests: Fix for native Windows.
3789         * tests/test-accept4.c: Include sockets.h.
3790         (main): Invoke gl_sockets_startup.
3791         * modules/accept4-tests (Depends-on): Add sockets.
3792
3793         accept tests: Fix for native Windows.
3794         * tests/test-accept.c: Include sockets.h.
3795         (main): Invoke gl_sockets_startup.
3796         * modules/accept-tests (Depends-on): Add sockets.
3797
3798 2011-09-19  Bruno Haible  <bruno@clisp.org>
3799
3800         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3801         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3802         do...while(0).
3803         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3804         Suggested by Paul Eggert.
3805
3806 2011-09-19  Bruno Haible  <bruno@clisp.org>
3807
3808         sched: Ensure pid_t is defined.
3809         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3810         not define pid_t.
3811         * lib/sched.in.h: Include <sys/types.h>.
3812         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3813         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3814
3815 2011-09-19  Bruno Haible  <bruno@clisp.org>
3816
3817         msvc-inval: Ensure the entire expansion is a single statement.
3818         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3819         of braces.
3820
3821 2011-09-19  Jim Meyering  <meyering@redhat.com>
3822
3823         tests: use printf, not echo in init.sh's warn_ function
3824         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3825         misbehave when given strings containing a backslash or starting
3826         with e.g., -n.  James Youngman suggested setting IFS.
3827
3828 2011-09-19  Eric Blake  <eblake@redhat.com>
3829
3830         futimens: enhance test
3831         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3832         closed non-negative fd.
3833
3834         date: accept 'hence' as opposite of 'ago'
3835         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3836         * tests/test-parse-datetime.c (main): Enhance test.
3837         Suggested by Jesse Wilson.
3838
3839 2011-09-19  Jim Meyering  <meyering@redhat.com>
3840
3841         getcwd: don't fail in a deep directory on a system without openat
3842         Before this change, getcwd would fail when called from a directory
3843         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3844         the non-openat implementation used "..", "../..", "../../..", etc.
3845         to access ancestor directories.  With too many, that string would
3846         be longer than PATH_MAX.
3847         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3848         using gnulib's openat replacement.
3849         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3850         we're using the replacement function.
3851
3852 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3853
3854         maint.mk: avoid warnings from perl about missing files
3855         * top/maint.mk (def_sym_regex): Ignore files listed in
3856         $(gl_other_headers_) that do not exist, say because a project
3857         does not use a corresponding module.
3858
3859 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3860
3861         stat: use pathmax.h only if needed
3862         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3863         This is better for Emacs, which does not have a mingw port and
3864         therefore can avoid the pathmax module.
3865
3866         utimens: remove dependency on dup2
3867         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3868         to work around the Linux kernel bug.
3869         * modules/utimens (Depends-on): Remove dup2.
3870
3871 2011-09-18  Bruno Haible  <bruno@clisp.org>
3872
3873         inet_ntop, inet_pton: Look for it also in libresolv.
3874         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3875         libnsl, search for it in libresolv.
3876         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3877         Needed on Solaris 7.
3878
3879 2011-09-18  Bruno Haible  <bruno@clisp.org>
3880
3881         accept, accept4 tests: Avoid link error on Solaris.
3882         * modules/accept-tests (Makefile.am): Link test-accept against
3883         $(LIBSOCKET).
3884         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3885         $(LIBSOCKET).
3886
3887         accept4: Avoid link error on Solaris.
3888         * modules/accept4 (Link): New section.
3889
3890         socket functions: Avoid link errors on Solaris.
3891         * modules/accept (Depends-on): Add socketlib.
3892         (Link): New section.
3893         * modules/bind (Depends-on): Add socketlib.
3894         (Link): New section.
3895         * modules/connect (Depends-on): Add socketlib.
3896         (Link): New section.
3897         * modules/getpeername (Depends-on): Add socketlib.
3898         (Link): New section.
3899         * modules/getsockname (Depends-on): Add socketlib.
3900         (Link): New section.
3901         * modules/getsockopt (Depends-on): Add socketlib.
3902         (Link): New section.
3903         * modules/listen (Depends-on): Add socketlib.
3904         (Link): New section.
3905         * modules/recv (Depends-on): Add socketlib.
3906         (Link): New section.
3907         * modules/recvfrom (Depends-on): Add socketlib.
3908         (Link): New section.
3909         * modules/send (Depends-on): Add socketlib.
3910         (Link): New section.
3911         * modules/sendto (Depends-on): Add socketlib.
3912         (Link): New section.
3913         * modules/setsockopt (Depends-on): Add socketlib.
3914         (Link): New section.
3915         * modules/shutdown (Depends-on): Add socketlib.
3916         (Link): New section.
3917         * modules/socket (Depends-on): Add socketlib.
3918         (Link): New section.
3919
3920 2011-09-18  Bruno Haible  <bruno@clisp.org>
3921
3922         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3923         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3924         than 5 seconds.
3925         * modules/ptsname-tests (configure.ac): Test for alarm.
3926
3927 2011-09-18  Bruno Haible  <bruno@clisp.org>
3928
3929         posix_spawn_file_actions_add*: Fix module dependencies.
3930         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3931         posix_spawn_file_actions_init.
3932         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3933         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3934
3935 2011-09-18  Bruno Haible  <bruno@clisp.org>
3936
3937         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3938         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3939         * tests/test-renameat.c (main): Likewise.
3940
3941 2011-09-18  Bruno Haible  <bruno@clisp.org>
3942
3943         Tests for module 'accept4'.
3944         * modules/accept4-tests: New file.
3945         * tests/test-accept4.c: New file.
3946
3947 2011-09-18  Bruno Haible  <bruno@clisp.org>
3948
3949         Tests for module 'accept'.
3950         * modules/accept-tests: New file.
3951         * tests/test-accept.c: New file.
3952
3953 2011-09-18  Bruno Haible  <bruno@clisp.org>
3954
3955         dup2: Support for MSVC.
3956         * lib/dup2.c: Include msvc-inval.h.
3957         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3958         _get_osfhandle calls.
3959         * modules/dup2 (Depends-on): Add msvc-inval.
3960         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3961
3962         New module 'msvc-inval'.
3963         * lib/msvc-inval.h: New file.
3964         * lib/msvc-inval.c: New file.
3965         * m4/msvc-inval.m4: New file.
3966         * modules/msvc-inval: New file.
3967
3968 2011-09-17  Bruno Haible  <bruno@clisp.org>
3969
3970         Tests for module 'pclose'.
3971         * modules/pclose-tests: New file.
3972
3973         New module 'pclose'.
3974         * lib/stdio.in.h (pclose): New declaration.
3975         * lib/pclose.c: New file.
3976         * m4/pclose.m4: New file.
3977         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3978         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3979         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3980         * modules/pclose: New file.
3981         * modules/popen-tests (Depends-on): Add pclose.
3982         * modules/popen-safer-tests (Depends-on): Likewise.
3983         * doc/posix-functions/pclose.texi: Mention the new module.
3984
3985 2011-09-17  Bruno Haible  <bruno@clisp.org>
3986
3987         popen: Support for MSVC.
3988         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3989         * lib/popen.c (popen): Provide alternate definition for native Windows.
3990         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3992         * modules/popen (Depends-on, configure.ac): Update condition.
3993         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3994         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3995         fixed.
3996
3997 2011-09-17  Bruno Haible  <bruno@clisp.org>
3998
3999         isnanl, isnand, isnanf: Work around MSVC bug.
4000         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4001
4002 2011-09-17  Bruno Haible  <bruno@clisp.org>
4003
4004         sys_socket tests: Fix recent mistake.
4005         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4006
4007 2011-09-17  Bruno Haible  <bruno@clisp.org>
4008
4009         putenv: Support for MSVC.
4010         * modules/putenv (Depends-on): Add environ.
4011         * lib/putenv.c (environ): Disable declaration.
4012         * lib/unistd.in.h: Update comment.
4013
4014 2011-09-17  Bruno Haible  <bruno@clisp.org>
4015
4016         math: Avoid macro redefinition warnings on MSVC.
4017         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4018         Undefine before redefining.
4019
4020 2011-09-17  Bruno Haible  <bruno@clisp.org>
4021
4022         doc: Mention functions which are declared as macros.
4023         * doc/posix-functions/*[fl].texi: Mention that some functions are
4024         defined as macros with arguments only.
4025
4026 2011-09-17  Bruno Haible  <bruno@clisp.org>
4027
4028         Add dependencies to new dirent related modules.
4029         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4030         * modules/fts (Depends-on): Likewise.
4031         * modules/glob (Depends-on): Likewise.
4032         * modules/savedir (Depends-on): Likewise.
4033         * modules/scandir (Depends-on): Likewise.
4034         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4035         * modules/fdopendir (Depends-on): Add opendir.
4036
4037 2011-09-17  Bruno Haible  <bruno@clisp.org>
4038
4039         inet_pton: Support for MSVC on Windows Vista or newer.
4040         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4041         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4042         HAVE_DECL_INET_PTON is defined.
4043         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4044         On platforms with <winsock2.h>, test whether inet_pton is declared in
4045         <ws2tcpip.h>. If so, arrange to replace it.
4046         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4047         REPLACE_INET_PTON.
4048         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4049         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4050         (Depends-on, configure.ac): Update condition.
4051         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4052
4053 2011-09-17  Bruno Haible  <bruno@clisp.org>
4054
4055         inet_ntop: Support for MSVC on Windows Vista or newer.
4056         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4057         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4058         HAVE_DECL_INET_NTOP is defined.
4059         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4060         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4061         <ws2tcpip.h>. If so, arrange to replace it.
4062         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4063         REPLACE_INET_NTOP.
4064         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4065         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4066         (Depends-on, configure.ac): Update condition.
4067         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4068
4069 2011-09-16  Eric Blake  <eblake@redhat.com>
4070
4071         test-fsync: yet another enhancement
4072         * tests/test-fsync.c (main): Also test behavior on read-only text
4073         file.
4074
4075 2011-09-16  Bruno Haible  <bruno@clisp.org>
4076
4077         Enhance fsync, fdatasync tests.
4078         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4079         * tests/test-fdatasync.c (main): Likewise.
4080
4081 2011-09-16  Bruno Haible  <bruno@clisp.org>
4082
4083         Support for MSVC compiler: Ensure mode_t gets defined.
4084         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4085         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4086         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4087         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4088         * tests/test-fcntl-h.c: Check that mode_t is defined.
4089         * tests/test-sys_stat.c: Likewise.
4090         * tests/test-sys_types.c: Likewise.
4091         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4092         * doc/posix-headers/sys_stat.texi: Likewise.
4093         * doc/posix-headers/sys_types.texi: Likewise.
4094
4095 2011-09-16  Bruno Haible  <bruno@clisp.org>
4096
4097         sys_stat: Support for MSVC.
4098         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4099         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4100         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4101         MSVC.
4102
4103 2011-09-16  Bruno Haible  <bruno@clisp.org>
4104
4105         Support for MSVC compiler: Ensure off_t gets defined.
4106         * lib/unistd.in.h: Include <sys/types.h>.
4107         * tests/test-fcntl-h.c: Check that off_t is defined.
4108         * tests/test-sys_stat.c: Likewise.
4109         * tests/test-sys_types.c: Likewise.
4110
4111 2011-09-16  Eric Blake  <eblake@redhat.com>
4112
4113         fdatasync: port to Solaris
4114         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4115         * modules/fdatasync (Link): Document it.
4116         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4117
4118         fdatasync: port to MacOS X 10.7
4119         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4120         declared.
4121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4122         * modules/unistd (Makefile.am): Substitute it.
4123         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4124         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4125
4126         fdatasync: minor improvements
4127         * modules/fdatasync (Depends-on): Add condition for fsync.
4128         * lib/fdatasync.c (fdatasync): Add comment.
4129         * tests/test-unistd-c++.cc: Test fdatasync.
4130
4131         unistd: update refs to newer POSIX
4132         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4133         Suggested by Bruno Haible.
4134
4135         fdatasync: new module
4136         * modules/fsync (Description): Document difference to fdatasync.
4137         * modules/fdatasync: New module.
4138         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4139         * lib/fdatasync.c (fdatasync): Likewise.
4140         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4141         defaults.
4142         * modules/unistd (Makefile.am): Set witnesses.
4143         * lib/unistd.in.h (fdatasync): Declare.
4144         * MODULES.html.sh: Document it.
4145         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4146         * modules/fdatasync-tests: New test.
4147         * tests/test-fdatasync.c: Likewise.
4148
4149 2011-09-16  Eric Blake  <eblake@redhat.com>
4150
4151         test-fsync: enhance tests
4152         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4153         * tests/test-fsync.c (main): Enhance test.
4154
4155 2011-09-15  Bruno Haible  <bruno@clisp.org>
4156
4157         Support for MSVC compiler: Ensure ssize_t gets defined.
4158         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4159         * doc/posix-headers/stdio.texi: Likewise.
4160         * modules/stdio (Depends-on): Add ssize_t.
4161         * modules/sys_socket (Depends-on): Likewise.
4162         * modules/sys_types (Depends-on): Likewise.
4163         * modules/sys_uio (Depends-on): Likewise.
4164         * modules/unistd (Depends-on): Likewise.
4165         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4166         * tests/test-sys_types.c: Check that ssize_t is defined.
4167
4168 2011-09-14  Bruno Haible  <bruno@clisp.org>
4169
4170         Avoid using #, the m4 comment starter character, near brackets.
4171         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4172         delimiter character in sed expressions.
4173         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4174         Suggested by Eric Blake.
4175
4176         Properly quote AC_CHECK_DECLS' 4th argument.
4177         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4178         argument.
4179         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4180         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4181         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4182         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4183         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4184         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4185         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4186         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4187         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4188         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4189         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4190         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4191         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4192         * m4/isinf.m4 (gl_ISINF): Likewise.
4193         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4194         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4195         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4196         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4197         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4198         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4199         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4200         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4201         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4202         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4203         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4204         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4205         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4206         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4207         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4208         Reported by Eric Blake.
4209
4210         Properly quote AC_CHECK_DECL's 4th argument.
4211         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4212         argument.
4213         * m4/argp.m4 (gl_ARGP): Likewise.
4214         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4215         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4216         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4217         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4218         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4219         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4220         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4221         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4222         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4223         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4224         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4225         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4226         Reported by Eric Blake.
4227
4228 2011-09-14  Eric Blake  <eblake@redhat.com>
4229
4230         opendir: avoid compile warning
4231         * lib/opendir.c (includes): Always include errno.h.
4232         Reported by Tatsuro MATSUOKA.
4233
4234 2011-09-14  Jim Meyering  <meyering@redhat.com>
4235
4236         maint.mk: sc_tight_scope: propagate failure from sub-make
4237         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4238         Reported by Martin von Gagern.
4239
4240 2011-09-13  Bruno Haible  <bruno@clisp.org>
4241
4242         tempname: Support for MSVC.
4243         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4244         MSVC.
4245         * modules/tempname (Depends-on): Add fcntl-h.
4246
4247 2011-09-13  Bruno Haible  <bruno@clisp.org>
4248
4249         sys_time: Support for MSVC.
4250         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4251         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4252         include <winsock2.h>.
4253         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4254         function declarations that collide with POSIX.
4255         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4256         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4257
4258 2011-09-13  Bruno Haible  <bruno@clisp.org>
4259
4260         stat: Support for MSVC.
4261         * lib/stat.c: Include pathmax.h.
4262         * modules/stat (Depends-on): Add pathmax.
4263
4264         pathmax: Support for native Windows.
4265         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4266
4267 2011-09-12  Bruno Haible  <bruno@clisp.org>
4268
4269         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4270         * lib/dirent.in.h (struct dirent): New type.
4271         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4272         DT_WHT): New macros.
4273         (DIR): New type.
4274         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4275         (readdir, rewinddir): New declarations.
4276         * lib/dirent-private.h: New file.
4277         * lib/opendir.c: New file.
4278         * lib/readdir.c: New file.
4279         * lib/rewinddir.c: New file.
4280         * lib/closedir.c: New file.
4281         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4282         * m4/opendir.m4: New file.
4283         * m4/readdir.m4: New file.
4284         * m4/rewinddir.m4: New file.
4285         * m4/closedir.m4: New file.
4286         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4287         REPLACE_CLOSEDIR here.
4288         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4289         readdir, rewinddir are declared.
4290         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4291         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4292         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4293         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4294         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4295         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4296         * modules/opendir: New file.
4297         * modules/readdir: New file.
4298         * modules/rewinddir: New file.
4299         * modules/closedir: New file.
4300         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4301         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4302         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4303         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4304         * NEWS: Mention the 'fchdir' change.
4305
4306 2011-09-11  Bruno Haible  <bruno@clisp.org>
4307
4308         asm-underscore.m4: Support for MSVC.
4309         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4310         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4311
4312 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4313
4314         Doc about crypt functions.
4315         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4316         needing for _GNU_SOURCE to get crypt.
4317         * doc/posix-functions/encrypt.texi: Likewise.
4318         * doc/posix-functions/setkey.texi: Likewise.
4319
4320 2011-09-11  Bruno Haible  <bruno@clisp.org>
4321
4322         doc: Update regarding MSVC 9.
4323         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4324         tested".
4325         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4326         * doc/posix-headers/*.texi: Likewise.
4327         * doc/pastposix-functions/*.texi: Likewise.
4328         * doc/glibc-functions/*.texi: Likewise.
4329         * doc/glibc-headers/*.texi: Likewise.
4330
4331 2011-09-11  Bruno Haible  <bruno@clisp.org>
4332
4333         unistd et al.: Don't assume <unistd.h> exists.
4334         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4335         does not exist.
4336         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4337         exist. But include <stdlib.h>.
4338         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4339         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4340         symlink() does not exist.
4341         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4342         include <io.h> instead.
4343         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4344         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4345         include <direct.h> instead.
4346         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4347         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4348         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4349         <io.h> instead.
4350         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4351         correctly if the system does not have hard links.
4352         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4353         <direct.h> instead.
4354         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4355         it when looking for function declarations.
4356         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4357         <direct.h> and <io.h> instead.
4358         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4359
4360 2011-09-11  Bruno Haible  <bruno@clisp.org>
4361
4362         strcase: Support for MSVC.
4363         * modules/strcase (Status, Notice): Remove obsoletion mark.
4364         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4365         * doc/posix-functions/strncasecmp.texi: Likewise.
4366
4367         strings: Don't assume <strings.h> exists.
4368         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4369         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4370         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4371         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4372
4373 2011-09-11  Bruno Haible  <bruno@clisp.org>
4374
4375         dirent: Don't assume <dirent.h> exists.
4376         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4377         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4378         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4379         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4380
4381 2011-09-11  Bruno Haible  <bruno@clisp.org>
4382
4383         Fix wint_t on MSVC.
4384         * lib/wchar.in.h (wint_t): On MSVC, override it.
4385         * lib/wctype.in.h (wint_t): Likewise.
4386         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4387         MSVC.
4388         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4389         * doc/posix-headers/wctype.texi: Likewise.
4390
4391 2011-09-11  Bruno Haible  <bruno@clisp.org>
4392
4393         sys_types: Fix typo.
4394         * lib/sys_types.in.h: Fix typo in comment.
4395         Reported by Paul Eggert.
4396
4397         Support for MSVC compiler: Ensure size_t gets defined.
4398         * modules/strings (Depends-on): Add 'sys_types'.
4399         * modules/sys_uio (Depends-on): Likewise.
4400         * lib/sys_uio.in.h: Update comment.
4401
4402         C++ tests for module 'sys_types'.
4403         * modules/sys_types-c++-tests: New file.
4404         * tests/test-sys_types-c++.cc: New file.
4405
4406         Tests for module 'sys_types'.
4407         * modules/sys_types-tests: New file.
4408         * tests/test-sys_types.c: New file.
4409
4410         New module 'sys_types'.
4411         * lib/sys_types.in.h: New file.
4412         * m4/sys_types_h.m4: New file.
4413         * modules/sys_types: New file.
4414         * doc/posix-headers/sys_types.texi: Mention the new module and the
4415         size_t problem on MSVC 9.
4416
4417 2011-09-11  Bruno Haible  <bruno@clisp.org>
4418
4419         Support for MSVC compiler: Avoid division by a literal 0.
4420         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4421         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4422         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4423         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4424         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4425         * tests/infinity.h: New file.
4426         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4427         on MSVC.
4428         * tests/test-ceilf1.c: Include infinity.h.
4429         (main): Use Infinityf.
4430         * tests/test-ceil1.c: Include infinity.h.
4431         (main): Use Infinityd.
4432         * tests/test-ceill.c: Include infinity.h.
4433         (main): Use Infinityl.
4434         * tests/test-dprintf-posix.c: Include infinity.h.
4435         (test_function): Use Infinityd.
4436         * tests/test-floorf1.c: Include infinity.h.
4437         (main): Use Infinityf.
4438         * tests/test-floor1.c: Include infinity.h.
4439         (main): Use Infinityd.
4440         * tests/test-floorl.c: Include infinity.h.
4441         (main): Use Infinityl.
4442         * tests/test-fprintf-posix.c: Include infinity.h.
4443         (test_function): Use Infinityd.
4444         * tests/test-frexp.c: Include infinity.h.
4445         (main): Use Infinityd.
4446         * tests/test-frexpl.c: Include infinity.h.
4447         (main): Use Infinityl.
4448         * tests/test-isfinite.c: Include infinity.h.
4449         (test_isfinitef): Use Infinityf.
4450         (test_isfinited): Use Infinityd.
4451         (test_isfinitel): Use Infinityl.
4452         * tests/test-isinf.c: Include infinity.h.
4453         (test_isinff): Use Infinityf.
4454         (test_isinfd): Use Infinityd.
4455         (test_isinfl): Use Infinityl.
4456         * tests/test-isnan.c: Include infinity.h.
4457         (test_float): Use Infinityf.
4458         (test_double): Use Infinityd.
4459         (test_long_double): Use Infinityl.
4460         * tests/test-isnanf.h: Include infinity.h.
4461         (main): Use Infinityf.
4462         * tests/test-isnand.h: Include infinity.h.
4463         (main): Use Infinityd.
4464         * tests/test-isnanl.h: Include infinity.h.
4465         (main): Use Infinityl.
4466         * tests/test-ldexpl.c: Include infinity.h.
4467         (main): Use Infinityl.
4468         * tests/test-printf-posix.h: Include infinity.h.
4469         (test_function): Use Infinityd.
4470         * tests/test-roundf1.c: Include infinity.h.
4471         (main): Use Infinityf.
4472         * tests/test-round1.c: Include infinity.h.
4473         (main): Use Infinityd.
4474         * tests/test-roundl.c: Include infinity.h.
4475         (main): Use Infinityl.
4476         * tests/test-signbit.c: Include infinity.h.
4477         (test_signbitf): Use Infinityf.
4478         (test_signbitd): Use Infinityd.
4479         (test_signbitl): Use Infinityl.
4480         * tests/test-snprintf-posix.h: Include infinity.h.
4481         (test_function): Use Infinityd, Infinityl.
4482         * tests/test-sprintf-posix.h: Include infinity.h.
4483         (test_function): Use Infinityd, Infinityl.
4484         * tests/test-truncf1.c: Include infinity.h.
4485         (main): Use Infinityf.
4486         * tests/test-trunc1.c: Include infinity.h.
4487         (main): Use Infinityd.
4488         * tests/test-truncl.c: Include infinity.h.
4489         (main): Use Infinityl.
4490         * tests/test-vasnprintf-posix.c: Include infinity.h.
4491         (test_function): Use Infinityd, Infinityl.
4492         * tests/test-vasprintf-posix.c: Include infinity.h.
4493         (test_function): Use Infinityd, Infinityl.
4494         * modules/ceilf-tests (Files): Add tests/infinity.h.
4495         * modules/ceil-tests (Files): Likewise.
4496         * modules/ceill-tests (Files): Likewise.
4497         * modules/dprintf-posix-tests (Files): Likewise.
4498         * modules/floorf-tests (Files): Likewise.
4499         * modules/floor-tests (Files): Likewise.
4500         * modules/floorl-tests (Files): Likewise.
4501         * modules/fprintf-posix-tests (Files): Likewise.
4502         * modules/frexp-tests (Files): Likewise.
4503         * modules/frexp-nolibm-tests (Files): Likewise.
4504         * modules/frexpl-tests (Files): Likewise.
4505         * modules/frexpl-nolibm-tests (Files): Likewise.
4506         * modules/isfinite-tests (Files): Likewise.
4507         * modules/isinf-tests (Files): Likewise.
4508         * modules/isnan-tests (Files): Likewise.
4509         * modules/isnanf-tests (Files): Likewise.
4510         * modules/isnanf-nolibm-tests (Files): Likewise.
4511         * modules/isnand-tests (Files): Likewise.
4512         * modules/isnand-nolibm-tests (Files): Likewise.
4513         * modules/isnanl-tests (Files): Likewise.
4514         * modules/isnanl-nolibm-tests (Files): Likewise.
4515         * modules/ldexpl-tests (Files): Likewise.
4516         * modules/printf-posix-tests (Files): Likewise.
4517         * modules/roundf-tests (Files): Likewise.
4518         * modules/round-tests (Files): Likewise.
4519         * modules/roundl-tests (Files): Likewise.
4520         * modules/signbit-tests (Files): Likewise.
4521         * modules/snprintf-posix-tests (Files): Likewise.
4522         * modules/sprintf-posix-tests (Files): Likewise.
4523         * modules/truncf-tests (Files): Likewise.
4524         * modules/trunc-tests (Files): Likewise.
4525         * modules/truncl-tests (Files): Likewise.
4526         * modules/vasnprintf-posix-tests (Files): Likewise.
4527         * modules/vasprintf-posix-tests (Files): Likewise.
4528         * modules/vdprintf-posix-tests (Files): Likewise.
4529         * modules/vfprintf-posix-tests (Files): Likewise.
4530         * modules/vprintf-posix-tests (Files): Likewise.
4531         * modules/vsnprintf-posix-tests (Files): Likewise.
4532         * modules/vsprintf-posix-tests (Files): Likewise.
4533         * modules/xprintf-posix-tests (Files): Likewise.
4534
4535 2011-09-11  Bruno Haible  <bruno@clisp.org>
4536
4537         Ensure pid_t gets defined.
4538         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4539         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4540         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4541         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4542         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4543         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4544         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4545         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4546         * tests/test-fcntl-h.c: Check that pid_t is defined.
4547         * tests/test-sched.c: Likewise.
4548         * tests/test-termios.c: Likewise.
4549         * tests/test-time.c: Likewise.
4550         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4551         * doc/posix-headers/signal.texi: Likewise.
4552         * doc/posix-headers/sys_types.texi: Likewise.
4553         * doc/posix-headers/time.texi: Likewise.
4554
4555 2011-09-11  Bruno Haible  <bruno@clisp.org>
4556
4557         acl: Fix compilation on Solaris 10 (older version).
4558         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4559         of ACE_EVERYONE.
4560         * lib/set-mode-acl.c (qset_acl): Likewise.
4561         Reported by Christian Jullien <eligis@orange.fr>.
4562
4563 2011-09-10  Bruno Haible  <bruno@clisp.org>
4564
4565         iconv, unsetenv: Add support for MSVC compiler.
4566         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4567         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4568
4569 2011-09-10  Bruno Haible  <bruno@clisp.org>
4570
4571         *printf: Add support for MSVC compiler.
4572         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4573         handles the exception caused by the %n directive. When cross-compiling,
4574         guess no on native Windows.
4575         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4576         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4577         emulate it through vsnprintf.
4578         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4579         * doc/posix-functions/dprintf.texi: Update documentation regarding
4580         MSVC 9.
4581         * doc/posix-functions/fprintf.texi: Likewise.
4582         * doc/posix-functions/printf.texi: Likewise.
4583         * doc/posix-functions/snprintf.texi: Likewise.
4584         * doc/posix-functions/sprintf.texi: Likewise.
4585         * doc/posix-functions/swprintf.texi: Likewise.
4586         * doc/posix-functions/vdprintf.texi: Likewise.
4587         * doc/posix-functions/vfprintf.texi: Likewise.
4588         * doc/posix-functions/vprintf.texi: Likewise.
4589         * doc/posix-functions/vsnprintf.texi: Likewise.
4590         * doc/posix-functions/vsprintf.texi: Likewise.
4591         * doc/glibc-functions/asprintf.texi: Likewise.
4592         * doc/glibc-functions/obstack_printf.texi: Likewise.
4593         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4594         * doc/glibc-functions/vasprintf.texi: Likewise.
4595
4596 2011-09-10  Bruno Haible  <bruno@clisp.org>
4597
4598         nocrash: Add support for native Windows.
4599         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4600
4601 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4602             Bruno Haible  <bruno@clisp.org>
4603
4604         absolute-header, include-next: Add support for MSVC compiler.
4605         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4606         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4607         directory separator in #line directives.
4608         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4609         recognize also backslash as directory separator in #line directives.
4610
4611 2011-09-08  Jim Meyering  <meyering@redhat.com>
4612
4613         maint.mk: mark the post-release commit log with "maint: " prefix
4614         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4615         one-line commit-log summary.
4616
4617 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4618             Bruno Haible  <bruno@clisp.org>
4619
4620         Doc about crypt functions.
4621         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4622         systems.
4623         * doc/posix-functions/encrypt.texi: Likewise.
4624         * doc/posix-functions/setkey.texi: Likewise.
4625
4626 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4627
4628         * lib/gc.h: Fix copyright header.
4629
4630 2011-09-07  Bruno Haible  <bruno@clisp.org>
4631
4632         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4633         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4634         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4635
4636 2011-09-07  Bruno Haible  <bruno@clisp.org>
4637
4638         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4639         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4640         * lib/freopen.c: Likewise.
4641         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4642         * lib/lstat.c: Likewise.
4643         * lib/stat.c: Likewise.
4644         * lib/open.c: Use different syntax for include of <fcntl.h>.
4645         * lib/openat.c: Include fcntl.h again, explicitly.
4646
4647 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4648
4649         parse-datetime: document the newly accepted format
4650         * doc/parse-datetime.texi (Combined date and time of day items):
4651         New section.
4652
4653 2011-09-06  Bruno Haible  <bruno@clisp.org>
4654
4655         acl: Fix a test failure on newer Solaris 10 with ZFS.
4656         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4657         ENOSYS as no ACL.
4658         Reported by Jim Meyering.
4659
4660 2011-09-06  Bruno Haible  <bruno@clisp.org>
4661
4662         acl: Update for AIX >= 5.3 with NFS.
4663         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4664         ENOSYS as no ACL.
4665
4666         acl: Fix a test failure on AIX >= 5.3 with NFS.
4667         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4668         as no ACL.
4669
4670 2011-09-06  Bruno Haible  <bruno@clisp.org>
4671
4672         acl: Fix a test failure on IRIX 6.5 with NFS.
4673         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4674         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4675         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4676         * lib/copy-acl.c (qcopy_acl): Likewise.
4677
4678 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4679
4680         openat: port to AIX 7.1 with large files
4681         AIX 7.1 does a "#define openat open64at" if large files are in use,
4682         so we can't simply #undef openat.  Use the orig_openat trick (similar
4683         to orig_open in lib/open.c) to work around the problem.  Problem
4684         reported by Kevin Brott for GNU tar, in the thread containing
4685         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4686         * lib/openat.c (__need_system_fcntl_h): Define first.
4687         Include <fcntl.h> and <sys/types.h> before undefining.
4688         (orig_openat) [HAVE_OPENAT]: New inline function.
4689         (openat) [HAVE_OPENAT]: Do not undef.
4690         (rpl_openat): Use orig_openat, not openat.
4691
4692 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4693             Bruno Haible  <bruno@clisp.org>
4694
4695         acl: Avoid errors on NonStop Kernel.
4696         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4697         ENOTSUP errors.
4698
4699 2011-09-05  Bruno Haible  <bruno@clisp.org>
4700
4701         acl: Clean up Solaris code.
4702         * lib/acl-internal.h: Remove no-op #if.
4703         * lib/file-has-acl.c: Likewise.
4704         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4705         * lib/copy-acl.c (qcopy_acl): Likewise.
4706
4707 2011-09-05  Bruno Haible  <bruno@clisp.org>
4708
4709         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4710         binaries built on the original Solaris 10.
4711         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4712         trivial.
4713
4714 2011-09-05  Bruno Haible  <bruno@clisp.org>
4715
4716         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4717         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4718         10.
4719         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4720         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4721         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4722         instead of acl_get, facl_get, acl_set, facl_set.
4723
4724 2011-09-05  Bruno Haible  <bruno@clisp.org>
4725
4726         copy-file: Try unit tests on more file systems.
4727         * tests/test-copy-file-1.sh: New file.
4728         * tests/test-copy-file-2.sh: New file.
4729         * modules/copy-file-tests (Files): Add them.
4730         (Makefile.am): Add them to TESTS.
4731
4732         acl: Try unit tests on more file systems.
4733         * tests/test-file-has-acl-1.sh: New file.
4734         * tests/test-file-has-acl-2.sh: New file.
4735         * tests/test-set-mode-acl-1.sh: New file.
4736         * tests/test-set-mode-acl-2.sh: New file.
4737         * tests/test-copy-acl-1.sh: New file.
4738         * tests/test-copy-acl-2.sh: New file.
4739         * modules/acl-tests (Files): Add them.
4740         (Makefile.am): Add them to TESTS.
4741
4742 2011-09-04  Bruno Haible  <bruno@clisp.org>
4743
4744         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4745         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4746         10.
4747         (OLD_ALLOW, OLD_DENY): New macros.
4748         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4749         ACE_ACCESS_ALLOWED_ACE_TYPE.
4750         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4751         ACE_ACCESS_DENIED_ACE_TYPE.
4752         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4753         (NEW_ACE_EXECUTE): Fix value.
4754         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4755         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4756         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4757         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4758         NEW_ACE_SYNCHRONIZE): New macros.
4759         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4760         instead of acl_fromtext, acl_set, facl_set.
4761         Fixes a coreutils/tests/cp/perm failure.
4762
4763 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4764
4765         openat: test for fstatat (..., 0) bug
4766         Further testing with tar suggests that fstatat (..., 0)
4767         does not work in general, on AIX 7.1; see
4768         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4769         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4770         replacement fstatat (which is what older AIX releases were using
4771         anyway).
4772         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4773         use is now changed to orig_fstatat.  This was probably the right
4774         thing to do anyway.
4775         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4776         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4777         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4778         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4779         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4780         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4781         if the bug is found.
4782
4783         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4784         This tests for another fstatat bug on AIX 7.1:
4785         fstatat (AT_FDCWD, ..., 0) does not work.  See
4786         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4787         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4788         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4789         (rpl_fstatat): Adjust so that it works around either (or both)
4790         bugs if present.
4791         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4792
4793 2011-09-03  Karl Berry  <karl@gnu.org>
4794
4795         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4796         in index entries.
4797
4798 2011-09-02  Bruno Haible  <bruno@clisp.org>
4799
4800         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4801         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4802         values of AR, ARFLAGS, RANLIB.
4803         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4804
4805 2011-09-02  Bruno Haible  <bruno@clisp.org>
4806
4807         Find 'ar' program that fits with --host argument.
4808         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4809
4810 2011-09-02  Bruno Haible  <bruno@clisp.org>
4811
4812         tests: init.sh: Support any non-GNU diff.
4813         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4814         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4815         Solaris 8.
4816
4817 2011-09-02  Bruno Haible  <bruno@clisp.org>
4818
4819         tests: init.sh: work also with any non-GNU diff that supports -u
4820         * tests/init.sh: Relax check for diff -u support.
4821         Rather than checking for GNU diff via --version, simply check
4822         for support for -u itself.  Useful at least on OpenBSD 4.9,
4823         AIX 7.1, IRIX 6.5, and Solaris 10.
4824
4825 2011-09-01  Bruno Haible  <bruno@clisp.org>
4826
4827         strtoimax, strtoumax: Document problem on HP-UX 11.
4828         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4829         * doc/posix-functions/strtoumax.texi: Likewise.
4830
4831 2011-09-01  Bruno Haible  <bruno@clisp.org>
4832
4833         strtoumax: Avoid link error on OSF/1 with DTK cc.
4834         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4835         defined as a function.
4836         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4837         strtoumax is defined, not whether it is declared.
4838
4839 2011-09-01  Bruno Haible  <bruno@clisp.org>
4840
4841         strtoimax: Avoid link error on OSF/1 with DTK cc.
4842         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4843         defined as a function.
4844         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4845         strtoimax is defined, not whether it is declared.
4846
4847 2011-09-01  Bruno Haible  <bruno@clisp.org>
4848
4849         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4850         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4851         as a function.
4852         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4853         whether it is declared.
4854
4855 2011-09-01  Bruno Haible  <bruno@clisp.org>
4856
4857         imaxabs: Avoid link error on OSF/1 with DTK cc.
4858         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4859         as a function.
4860         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4861         whether it is declared.
4862
4863 2011-09-01  Bruno Haible  <bruno@clisp.org>
4864
4865         Tests for module 'strtoumax'.
4866         * modules/strtoumax-tests: New file.
4867         * tests/test-strtoumax.c: New file.
4868
4869         Tests for module 'strtoimax'.
4870         * modules/strtoimax-tests: New file.
4871         * tests/test-strtoimax.c: New file.
4872
4873         Tests for module 'imaxdiv'.
4874         * modules/imaxdiv-tests: New file.
4875         * tests/test-imaxdiv.c: New file.
4876
4877         Tests for module 'imaxabs'.
4878         * modules/imaxabs-tests: New file.
4879         * tests/test-imaxabs.c: New file.
4880
4881 2011-09-01  Bruno Haible  <bruno@clisp.org>
4882
4883         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4884         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4885         pthread_create.
4886
4887 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4888
4889         openat: work around AIX 7.1 fstatat issue
4890         This should fix the problem that was not properly fixed
4891         in the previous change, dated 2011-08-30.
4892         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4893         __need_system_stat_h defined.
4894         (orig_fstatat) [HAVE_FSTATAT]: New function.
4895         (rpl_fstatat): Go back to the old way of doing things,
4896         except call orig_fstatat instead of fstatat.
4897         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4898         Remove unnecessary check whether fstatat fills in st_size etc.
4899
4900 2011-09-01  Bruno Haible  <bruno@clisp.org>
4901
4902         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4903         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4904         just include the system's header.
4905
4906 2011-08-31  Jim Meyering  <meyering@redhat.com>
4907
4908         tests: avoid spurious assertion failure in test-float.c on ppc64
4909         * tests/test-float.c (test_long_double): Comment out an assertion,
4910         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4911         with gcc-4.4.4.
4912
4913         maint: indent with spaces, not TABs
4914         I need to get in the habit of running gnulib's "make check".
4915         Both of these would have been caught.
4916         * m4/largefile.m4: Indent with spaces, not TABs.
4917         * lib/parse-datetime.y (iso_8601_time): Likewise.
4918         Spotted by Pádraig Brady.
4919
4920         test-parse-datetime.c: accommodate a relatively strict gcc warning
4921         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4922         to avoid a warning from gcc's -Werror=missing-declarations.
4923         Insert a few spaces-before-funcall-parenthesis.
4924
4925 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4926
4927         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4928         The parser now accepts ISO 8601 date-time strings with "T" as the
4929         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4930         with a space between the date and time strings.  Now it also parses
4931         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4932         variants like "2004-02-29T16:21:42.333-07:00"
4933         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4934         of day representation using the 'T' separator character.
4935         * doc/parse-datetime.texi (General date syntax): replace use of
4936         deprecated --iso-8601 option with --rfc-3339 in example of date
4937         command output formats that can be parsed.
4938         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4939         lib/parse-datetime.y.
4940         (gmt_offset): New function.
4941         (main): Add additional test cases to validate ISO8601 extended
4942         date and time of day parsing.
4943
4944 2011-08-31  Bruno Haible  <bruno@clisp.org>
4945
4946         freopen: Documentation.
4947         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4948         name.
4949         Reported by Claudio Bley <claudio.bley@gmail.com>.
4950
4951 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4952
4953         freopen: Don't crash if the filename argument is NULL.
4954         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4955         NULL.
4956
4957 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4958
4959         openat: work around AIX 7.1 fstatat bug
4960         Problem reported by Kevin Brott for GNU tar, in the thread containing
4961         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4962         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4963         FSTATAT_ST_SIZE_ETC_BROKEN.
4964         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4965         rpl_fstatat.
4966         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4967         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4968         AC_CHECK_FUNCS_ONCE for fstatat.
4969         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4970         fchmodat, mkdirat, openat and unlinkat.
4971
4972 2011-08-30  Bruno Haible  <bruno@clisp.org>
4973
4974         Avoid endless recursions if config.h includes some header files.
4975         * lib/fopen.c (__need_FILE): Define already before including config.h.
4976         * lib/freopen.c (__need_FILE): Likewise.
4977         * lib/open.c (__need_system_fcntl_h): Likewise.
4978         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4979         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4980         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4981
4982 2011-08-25  Karl Berry  <karl@gnu.org>
4983
4984         * config/srclist.txt (ylwrap): new try.
4985         * build-aux/ylwrap: new file.
4986
4987 2011-08-23  Bruno Haible  <bruno@clisp.org>
4988
4989         tmpdir: Use a good default directory on native Windows.
4990         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4991         (P_tmpdir): Default to _P_tmpdir on native Windows.
4992         (path_search): On native Windows, try the value returned by GetTempPath
4993         before trying P_tmpdir.
4994         * modules/tmpdir (Depends-on): Add pathmax.
4995         Suggested by John Darrington <john@darrington.wattle.id.au>.
4996
4997 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4998
4999         doc: fix typo in README-release
5000         * top/README-release: Capitalize first word of a sentence.
5001
5002 2011-08-19  Jim Meyering  <meyering@redhat.com>
5003
5004         fts: do not exhaust memory when processing million-entry directories
5005         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5006         directory would require about 256*N bytes of memory.  Thus, it was
5007         easy to construct a directory too large to be processed by any of
5008         those tools.  With this change, fts' maximum memory utilization is
5009         now limited to around 30MB.
5010         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5011         (fts_read): When we've processed the final entry (i.e., when
5012         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5013         using the parent entry to read any remaining entries.  Dispatch
5014         depending on what fts_build returns:
5015         - NULL+stop, aka failure: stop
5016         - NULL otherwise: move up in the dir hierarchy
5017         - non-NULL: handle this new entry
5018         (fts_build): Declare and use new local, continue_readdir.
5019         Prepare to be called from fts_read, when the entries
5020         from a partially-read directory have just been exhausted.
5021         In that case, we'll skip the opendir and instead use the parent's
5022         fts_dirp and derive dir_fd from that.
5023         Finally, in the readdir loop, if we read max_entries entries,
5024         exit the loop ensuring *not* to call closedir.  This is required
5025         so that fts_dirp can be reused on a subsequent call.
5026         Prompted by Ben England's report of memory exhaustion in find
5027         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5028
5029         maint: fts: move decl of `dp' down into while loop; split a long line
5030         * lib/fts.c (fts_build): No semantic change.
5031
5032         fts: add/use new struct member, fts_dirp
5033         We are about to use this to manage any directory with
5034         too many entries to read all of them into memory at once.
5035         To do that, we'll need to save the DIR* pointer in each
5036         affected FTSENT struct.
5037         * lib/fts_.h: Include <dirent.h>.
5038         (struct FTSENT) [fts_dirp]: New member.
5039         * lib/fts.c (closedir_and_clear): Define.
5040         Use it in place of closedir so that we are sure to
5041         clear the new fts_dirp member when done with it.
5042         (fts_alloc): Initialize the new member.
5043         (fts_lfree): Free, if needed.
5044
5045         maint: fts: give __opendir2 a new parameter and rename
5046         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5047         than surreptitiously using sole caller's "dir_fd".
5048         (fts_opendir): Rename from __opendir2.
5049
5050         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5051         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5052
5053         maint: fts.c: correct off-by-one indentation
5054         * lib/fts.c (fts_build): Correct indentation, change style
5055         of a couple of block comments, and bracing style.
5056
5057         maint: fts.c: move __opendir2 #define "up" out of function body
5058         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5059
5060         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5061         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5062         out for a long time and besides was useful only on BSD systems.
5063
5064 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5065
5066         regex: port to Stratus OpenVOS
5067         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5068         define to empty, rather than attempting nonportable optimizations.
5069         Problem reported by Paul Green in:
5070         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5071         and fix suggested by Eric Blake in:
5072         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5073
5074 2011-08-17  Eric Blake  <eblake@redhat.com>
5075
5076         getcwd: fix test failures on mingw
5077         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5078         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5079         test if long directory cannot be created, and allow mingw errno.
5080
5081         getcwd-lgpl: fix m4 to match relaxed test for BSD
5082         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5083         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5084         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5085         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5086         signature problem.
5087
5088         getcwd: fix compilation on mingw64
5089         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5090         getcwd.
5091         Reported by Marc-André Lureau.
5092
5093         pipe2: silence compiler warning
5094         * lib/pipe2.c (pipe2): Hide label if it is not used.
5095
5096 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5097
5098         relocatable-prog: fix link error
5099         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5100         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5101         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5102         into modules/relocatable-lib without noticing that
5103         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5104         also needs to build relocatable.c.
5105
5106 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5107
5108         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5109         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5110         shell code: it contained a 'break' that was not in a loop.
5111         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5112         via a shell-language loop; this may have been true in old Autoconf
5113         versions, but it's not true in Autoconf 2.68.  I found this bug
5114         when testing coreutils git on Solaris 8, whose shell complains
5115         about the syntax error.
5116
5117 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5118
5119         * lib/base64.c: Fix comment to reference RFC 4648.
5120         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5121         <gvtulder@gmail.com>.
5122
5123 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5124
5125         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5126
5127         po/Makefile.in.in: fix make -q problem
5128         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5129         rule, since there's no file named 'check-macro-version' and its
5130         use as a file breaks make -q.
5131         (all): Don't depend on check-macro-version.
5132         (CHECK_MACRO_VERSION): New macro.
5133         (stamp-po): Use it.
5134
5135         configmake: fix make -q problem
5136         * modules/configmake (configmake.h): Update configmake.h's time stamp
5137         even if the file does not change.  Otherwise, 'make -q' fails.
5138         Problem reported by Simon Josefsson in
5139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5140
5141 2011-08-11  Jim Meyering  <meyering@redhat.com>
5142
5143         git-version-gen: correct the advice in a comment
5144         * build-aux/git-version-gen: Correct comment.
5145         Don't recommend to list .tarball-version in .gitignore.
5146
5147 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5148
5149         base64: fix off-by-one buffer size bug
5150         Problem and (trivial) fix reported by Gijs van Tulder in
5151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5152         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5153         * tests/test-base64.c (main): Catch the bug.
5154
5155 2011-08-10  Eric Blake  <eblake@redhat.com>
5156
5157         closein: correct comments
5158         * lib/closein.c (close_stdin): Improve comments.
5159
5160 2011-08-09  Bruno Haible  <bruno@clisp.org>
5161
5162         More tests for 'fseeko'.
5163         * tests/test-fseeko3.c: New file, from Eric Blake.
5164         * tests/test-fseeko3.sh: New file.
5165         * modules/fseeko-tests (Files): Add them.
5166         (TESTS): Add test-fseeko3.sh.
5167         (check_PROGRAMS): Add test-fseeko3.
5168
5169 2011-08-09  Eric Blake  <eblake@redhat.com>
5170
5171         fseeko: remove unneeded hack
5172         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5173
5174         fseeko: fix bug on glibc
5175         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5176         Reported by John W. Eaton.
5177
5178 2011-08-08  Bruno Haible  <bruno@clisp.org>
5179
5180         unictype/base: Fix interoperability with preinstalled libunistring.
5181         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5182         Reported by Simon Josefsson.
5183
5184 2011-08-08  Bruno Haible  <bruno@clisp.org>
5185
5186         iswblank: Detect declaration correctly.
5187         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5188         AC_CHECK_DECLS invocation.
5189
5190 2011-08-08  Bruno Haible  <bruno@clisp.org>
5191
5192         tcgetsid: Detect declaration correctly.
5193         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5194         AC_CHECK_DECLS invocation.
5195         Reported by Simon Josefsson.
5196
5197 2011-08-08  Eric Blake  <eblake@redhat.com>
5198
5199         largefile: fix typo that regressed large file support
5200         * modules/largefile (configure.ac-early): Fix section name.
5201
5202 2011-08-06  Karl Berry  <karl@gnu.org>
5203
5204         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5205         a separate module.
5206
5207 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5208
5209         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5210         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5211         get prototype for free.
5212
5213 2011-08-04  Bruno Haible  <bruno@clisp.org>
5214
5215         Tests for module 'pathmax'.
5216         * modules/pathmax-tests: New file.
5217         * tests/test-pathmax.c: New file.
5218
5219         canonicalize-lgpl: Support larger filenames on the Hurd.
5220         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5221         Reported by Paul Eggert.
5222
5223         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5224         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5225         * lib/chdir-long.h: Include pathmax.h.
5226         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5227         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5228         (PATH_MAX): Remove code that is done by pathmax.h.
5229         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5230         * lib/tmpfile.c: Add a comment.
5231         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5232         * modules/chdir-long (Depends-on): Add pathmax.
5233         * modules/getcwd (Depends-on): Add pathmax.
5234         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5235         is not defined.
5236         * doc/posix-headers/limits.texi: Mention the pathmax module.
5237         * NEWS: Mention the change.
5238
5239 2011-08-02  Bruno Haible  <bruno@clisp.org>
5240
5241         pthread_sigmask: Actually use results of gl_THREADLIB.
5242         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5243         gl_THREADLIB, not gl_[]THREADLIB.
5244         Reported by Eric Blake.
5245
5246 2011-08-02  Jim Meyering  <meyering@redhat.com>
5247
5248         maint.mk: relax the default _gl_TS_function_match regexp
5249         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5250         space between function name and "(" in an "extern" declaration.
5251         That would fail to match a decl with no space there: extern void foo();
5252
5253 2011-07-31  Iain Nicol  <iain@thenicols.net>
5254
5255         git-version-gen: document that EXTRA_DIST must include .version
5256         * build-aux/git-version-gen: In the how-to-use comment, document
5257         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5258         will fail when run from an unpacked distribution tarball.
5259
5260 2011-08-01  Bruno Haible  <bruno@clisp.org>
5261
5262         wctype-h: Fix last change.
5263         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5264         REPLACE_TOWLOWER to 0.
5265         Reported by Sam Steingold <sds@gnu.org>.
5266
5267 2011-07-31  Bruno Haible  <bruno@clisp.org>
5268
5269         frexpl: Update autoconf test.
5270         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5271         according to changes of 2011-06-20.
5272
5273 2011-07-31  Bruno Haible  <bruno@clisp.org>
5274
5275         sys_utsname: Add support for Minix.
5276         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5277         <sys/utsname.h>.
5278         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5279         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5280
5281 2011-07-31  Bruno Haible  <bruno@clisp.org>
5282
5283         strings: Add support for Minix.
5284         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5285         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5286         * doc/posix-headers/strings.texi: Document the Minix problem.
5287
5288 2011-07-31  Bruno Haible  <bruno@clisp.org>
5289
5290         wctype-h: Add support for Minix.
5291         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5292         REPLACE_TOWLOWER.
5293         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5294         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5295         REPLACE_ISWCNTRL.
5296
5297 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5298
5299         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5300         This is a performance improvement for 64-bit hosts: it causes the
5301         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5302
5303 2011-07-31  Bruno Haible  <bruno@clisp.org>
5304
5305         stdioext: Add support for Minix.
5306         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5307         * lib/fpurge.c (fpurge): Likewise.
5308         * lib/freadahead.c (freadahead): Likewise.
5309         * lib/freadable.c (freadable): Likewise.
5310         * lib/freading.c (freading): Likewise.
5311         * lib/freadptr.c (freadptr): Likewise.
5312         * lib/freadseek.c (freadptrinc): Likewise.
5313         * lib/fseeko.c (rpl_fseeko): Likewise.
5314         * lib/fseterr.c (fseterr): Likewise.
5315         * lib/fwritable.c (fwritable): Likewise.
5316         * lib/fwriting.c (fwriting): Likewise.
5317         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5318         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5319
5320 2011-07-31  Bruno Haible  <bruno@clisp.org>
5321
5322         errno: Port to Minix.
5323         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5324         ECONNABORTED are defined.
5325         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5326         GNULIB_defined_ECONNABORTED): New macros.
5327         * lib/strerror-override.h (strerror_override): Test also
5328         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5329         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5330         ECONNABORTED.
5331         * doc/posix-headers/errno.texi: Mention the Minix problem.
5332
5333 2011-07-31  Bruno Haible  <bruno@clisp.org>
5334
5335         Work around declaration collisions on Minix.
5336         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5337         defined, set REPLACE_MBSINIT.
5338         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5339         defined, set REPLACE_MBRTOWC.
5340         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5341         set REPLACE_MBRLEN.
5342         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5343         defined, set REPLACE_MBSRTOWCS.
5344         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5345         defined, set REPLACE_WCRTOMB.
5346         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5347         defined, set REPLACE_WCSRTOMBS.
5348
5349 2011-07-31  Bruno Haible  <bruno@clisp.org>
5350
5351         Add support for Minix with ACK compiler.
5352         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5353         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5354         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5355
5356 2011-07-31  Bruno Haible  <bruno@clisp.org>
5357
5358         Documentation about Minix.
5359         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5360         * doc/glibc-headers/*.texi: Likewise.
5361         * doc/posix-functions/*.texi: Likewise.
5362         * doc/glibc-functions/*.texi: Likewise.
5363
5364 2011-07-31  Bruno Haible  <bruno@clisp.org>
5365
5366         snippet/warn-on-use: Fix indentation.
5367         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5368
5369 2011-07-25  Jim Meyering  <meyering@redhat.com>
5370
5371         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5372         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5373         commands.
5374
5375 2011-07-27  Jim Meyering  <meyering@redhat.com>
5376
5377         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5378         * top/maint.mk (gl_extract_significant_defines_): Now that
5379         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5380         gnulib/lib/signal.in.h, and now that we recommend to
5381         define-if-undefined those two symbols in application code,
5382         we must filter them out of the "significant" list.
5383         This avoids a "make syntax-check" failure in coreutils.
5384
5385 2011-07-26  Eric Blake  <eblake@redhat.com>
5386
5387         warnings: add comments about previous patch
5388         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5389         * m4/include_next.m4: Likewise.
5390         * m4/warn-on-use.m4: Likewise.
5391         * m4/warnings.m4: Likewise, and simplify use.
5392         Suggested by Stefano Lattarini.
5393
5394         include-next, warnings: support older autoconf
5395         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5396         AS_VAR_PUSHDEF in a way that works with older autoconf.
5397         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5398         Reported by Daniel P. Berrange.
5399
5400 2011-07-25  Bruno Haible  <bruno@clisp.org>
5401
5402         fseek, ftell: Fix doc.
5403         * doc/posix-functions/fseek.texi: Reword statement about
5404         AC_SYS_LARGEFILE.
5405         * doc/posix-functions/ftell.texi: Likewise.
5406
5407 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5408             Bruno Haible  <bruno@clisp.org>
5409
5410         Add dependencies to the 'largefile' module.
5411         * modules/fopen (Depends-on): Add 'largefile'.
5412         * modules/freopen (Depends-on): Likewise.
5413         * modules/fseeko (Depends-on): Likewise.
5414         * modules/ftello (Depends-on): Likewise.
5415         * modules/glob (Depends-on): Likewise.
5416         * modules/lseek (Depends-on): Likewise.
5417         * modules/lstat (Depends-on): Likewise.
5418         * modules/mkostemp (Depends-on): Likewise.
5419         * modules/mkostemps (Depends-on): Likewise.
5420         * modules/mkstemp (Depends-on): Likewise.
5421         * modules/mkstemps (Depends-on): Likewise.
5422         * modules/open (Depends-on): Likewise.
5423         * modules/openat (Depends-on): Likewise.
5424         * modules/pread (Depends-on): Likewise.
5425         * modules/pwrite (Depends-on): Likewise.
5426         * modules/scandir (Depends-on): Likewise.
5427         * modules/stat (Depends-on): Likewise.
5428         * modules/tmpfile (Depends-on): Likewise.
5429         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5430         since the containing module now depends on the largefile module.
5431         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5432         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5433         off_t is fixed by gnulib.
5434         * doc/posix-functions/freopen.texi: Likewise.
5435         * doc/posix-functions/fseeko.texi: Likewise.
5436         * doc/posix-functions/fstatat.texi: Likewise.
5437         * doc/posix-functions/ftello.texi: Likewise.
5438         * doc/posix-functions/glob.texi: Likewise.
5439         * doc/posix-functions/lseek.texi: Likewise.
5440         * doc/posix-functions/lstat.texi: Likewise.
5441         * doc/posix-functions/mkstemp.texi: Likewise.
5442         * doc/posix-functions/open.texi: Likewise.
5443         * doc/posix-functions/openat.texi: Likewise.
5444         * doc/posix-functions/pread.texi: Likewise.
5445         * doc/posix-functions/pwrite.texi: Likewise.
5446         * doc/posix-functions/scandir.texi: Likewise.
5447         * doc/posix-functions/stat.texi: Likewise.
5448         * doc/posix-functions/tmpfile.texi: Likewise.
5449         * doc/glibc-functions/mkostemp.texi: Likewise.
5450         * doc/glibc-functions/mkostemps.texi: Likewise.
5451         * doc/glibc-functions/mkstemps.texi: Likewise.
5452
5453 2011-07-25  Bruno Haible  <bruno@clisp.org>
5454
5455         fcntl: Move AC_LIBOBJ invocation to module description.
5456         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5457         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5458
5459         fcntl: Remove call-in from fchdir.m4.
5460         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5461         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5462
5463         dup3: Remove potential call-in from fchdir.m4.
5464         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5465         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5466
5467         dup2: Move AC_LIBOBJ invocation to module description.
5468         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5469         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5470         Don't invoke AC_LIBOBJ.
5471         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5472
5473         dup2: Remove call-in from fchdir.m4.
5474         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5475         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5476
5477         fclose: Move AC_LIBOBJ invocation to module description.
5478         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5479         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5480         to 1.
5481         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5482
5483         fclose: Remove call-in from close.m4.
5484         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5485         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5486
5487         close: Move AC_LIBOBJ invocation to module description.
5488         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5489         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5490         1.
5491         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5492
5493         close: Remove call-in from fchdir.m4.
5494         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5495         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5496
5497         open: Move AC_LIBOBJ invocation to module description.
5498         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5499         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5500         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5501
5502         open: Remove call-in from fchdir.m4.
5503         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5504         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5505
5506         fchdir: Start to remove gl_REPLACE_* idiom.
5507         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5508         (gl_FUNC_FCHDIR): Invoke it.
5509
5510 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5511
5512         * lib/ftell.c (ftell): Comment out cast.
5513
5514         close: use gl_REPLACE_FCLOSE only if defined
5515         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5516         is defined.  The close module doesn't depend on the fclose module
5517         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5519         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5520
5521 2011-07-24  Jim Meyering  <meyering@redhat.com>
5522
5523         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5524         * tests/test-select.h (test_function): Declare as "static".
5525
5526 2011-07-24  Bruno Haible  <bruno@clisp.org>
5527
5528         doc: Mention the effects of AC_SYS_LARGEFILE.
5529         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5530         on this function.
5531         * doc/posix-functions/aio_error.texi: Likewise.
5532         * doc/posix-functions/aio_fsync.texi: Likewise.
5533         * doc/posix-functions/aio_read.texi: Likewise.
5534         * doc/posix-functions/aio_return.texi: Likewise.
5535         * doc/posix-functions/aio_suspend.texi: Likewise.
5536         * doc/posix-functions/aio_write.texi: Likewise.
5537         * doc/posix-functions/fgetpos.texi: Likewise.
5538         * doc/posix-functions/fopen.texi: Likewise.
5539         * doc/posix-functions/freopen.texi: Likewise.
5540         * doc/posix-functions/fsetpos.texi: Likewise.
5541         * doc/posix-functions/fstatvfs.texi: Likewise.
5542         * doc/posix-functions/ftruncate.texi: Likewise.
5543         * doc/posix-functions/ftw.texi: Likewise.
5544         * doc/posix-functions/getrlimit.texi: Likewise.
5545         * doc/posix-functions/glob.texi: Likewise.
5546         * doc/posix-functions/lio_listio.texi: Likewise.
5547         * doc/posix-functions/lockf.texi: Likewise.
5548         * doc/posix-functions/mkstemp.texi: Likewise.
5549         * doc/posix-functions/mmap.texi: Likewise.
5550         * doc/posix-functions/nftw.texi: Likewise.
5551         * doc/posix-functions/openat.texi: Likewise.
5552         * doc/posix-functions/opendir.texi: Likewise.
5553         * doc/posix-functions/posix_fadvise.texi: Likewise.
5554         * doc/posix-functions/posix_fallocate.texi: Likewise.
5555         * doc/posix-functions/pread.texi: Likewise.
5556         * doc/posix-functions/pwrite.texi: Likewise.
5557         * doc/posix-functions/readdir.texi: Likewise.
5558         * doc/posix-functions/readdir_r.texi: Likewise.
5559         * doc/posix-functions/rewinddir.texi: Likewise.
5560         * doc/posix-functions/scandir.texi: Likewise.
5561         * doc/posix-functions/seekdir.texi: Likewise.
5562         * doc/posix-functions/setrlimit.texi: Likewise.
5563         * doc/posix-functions/statvfs.texi: Likewise.
5564         * doc/posix-functions/telldir.texi: Likewise.
5565         * doc/posix-functions/tmpfile.texi: Likewise.
5566         * doc/posix-functions/truncate.texi: Likewise.
5567         * doc/glibc-functions/fallocate.texi: Likewise.
5568         * doc/glibc-functions/fstatfs.texi: Likewise.
5569         * doc/glibc-functions/fts_children.texi: Likewise.
5570         * doc/glibc-functions/fts_read.texi: Likewise.
5571         * doc/glibc-functions/getdirentries.texi: Likewise.
5572         * doc/glibc-functions/mkostemp.texi: Likewise.
5573         * doc/glibc-functions/mkostemps.texi: Likewise.
5574         * doc/glibc-functions/mkstemps.texi: Likewise.
5575         * doc/glibc-functions/preadv.texi: Likewise.
5576         * doc/glibc-functions/pwritev.texi: Likewise.
5577         * doc/glibc-functions/sendfile.texi: Likewise.
5578         * doc/glibc-functions/statfs.texi: Likewise.
5579
5580 2011-07-24  Bruno Haible  <bruno@clisp.org>
5581
5582         doc: Fix typo.
5583         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5584
5585 2011-07-24  Bruno Haible  <bruno@clisp.org>
5586
5587         doc: Mention fsusage.
5588         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5589
5590 2011-07-24  Bruno Haible  <bruno@clisp.org>
5591
5592         doc: Mention new glibc headers and functions.
5593         * doc/glibc-headers/gshadow.texi: New file.
5594         * doc/glibc-functions/endsgent.texi: New file.
5595         * doc/glibc-functions/fgetsgent.texi: New file.
5596         * doc/glibc-functions/fgetsgent_r.texi: New file.
5597         * doc/glibc-functions/getsgent.texi: New file.
5598         * doc/glibc-functions/getsgent_r.texi: New file.
5599         * doc/glibc-functions/getsgnam.texi: New file.
5600         * doc/glibc-functions/getsgnam_r.texi: New file.
5601         * doc/glibc-functions/putsgent.texi: New file.
5602         * doc/glibc-functions/setsgent.texi: New file.
5603         * doc/glibc-functions/sgetsgent.texi: New file.
5604         * doc/glibc-functions/sgetsgent_r.texi: New file.
5605         * doc/glibc-functions/malloc_info.texi: New file.
5606         * doc/glibc-functions/preadv.texi: New file.
5607         * doc/glibc-functions/pwritev.texi: New file.
5608         * doc/glibc-functions/register_printf_modifier.texi: New file.
5609         * doc/glibc-functions/register_printf_specifier.texi: New file.
5610         * doc/glibc-functions/register_printf_type.texi: New file.
5611         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5612         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5613         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5614         * doc/glibc-functions/pthread_getname_np.texi: New file.
5615         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5616         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5617         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5618         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5619         * doc/glibc-functions/pthread_setname_np.texi: New file.
5620         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5621         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5622         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5623         * doc/glibc-functions/qsort_r.texi: New file.
5624         * doc/glibc-functions/quick_exit.texi: New file.
5625         * doc/glibc-functions/syncfs.texi: New file.
5626         * doc/gnulib.texi: Include them.
5627         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5628         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5629         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5630         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5631         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5632         * doc/glibc-functions/execvpe.texi: Likewise.
5633
5634 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5635
5636         ftell: don't include <unistd.h>
5637         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5638         guaranteed to define off_t, and the ftell module depends on the
5639         stdio module.
5640
5641         ftell: do not assume wraparound signed arithmetic
5642         * lib/ftell.c: Include <limits.h>.
5643         (ftell): Don't assume wraparound signed arithmetic.
5644
5645 2011-07-24  Bruno Haible  <bruno@clisp.org>
5646
5647         close: No longer depend on module 'fclose'.
5648         * modules/close (Depends-on): Remove fclose.
5649         * NEWS: Mention the change.
5650         Suggested by Sam Steingold <sds@gnu.org>.
5651
5652 2011-07-24  Bruno Haible  <bruno@clisp.org>
5653
5654         fsusage: Enable large volume support on AIX >= 5.2.
5655         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5656         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5657         instead of STAT_STATVFS.
5658         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5659
5660         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5661         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5662         f_blocks field only on MacOS X.
5663
5664         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5665         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5666         * modules/fsusage (Depends-on): Add largefile.
5667
5668 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5669
5670         * README: Modernize discussion of signed integers.
5671         Assuming overflow wraparound is no longer safe.
5672         Mention ones' complement and signed magnitude.
5673
5674 2011-07-22  Bruno Haible  <bruno@clisp.org>
5675
5676         select tests, pselect tests: Refactor.
5677         * tests/test-select.h: New file, extracted from tests/test-select.c.
5678         (select_fn): New type.
5679         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5680         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5681         test_pipe): Add my_select argument.
5682         (test_function): Renamed from main. Add my_select argument.
5683         * tests/test-select.c: Move most code to tests/test-select.h. Include
5684         test-select.h.
5685         * modules/select-tests (Files): Add tests/test-select.h.
5686         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5687         (my_select, main): New functions.
5688         * modules/pselect-tests (Files): Add tests/test-select.h,
5689         tests/macros.h, tests/signature.h.
5690         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5691         (configure.ac): Check for <sys/wait.h>.
5692
5693 2011-07-22  Bruno Haible  <bruno@clisp.org>
5694
5695         sys_select tests: Check the signature of FD_*.
5696         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5697         signature tests from here...
5698         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5699         here.
5700         * modules/sys_select-tests (Files): Add tests/signature.h.
5701
5702 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5703
5704         largefile: new module, replacing large-inode
5705         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5706         * MODULES.html.sh: Add largefile, remove large-inode.
5707         * modules/largefile, m4/largefile.m4: New files.
5708         * modules/large-inode, m4/large-inode.m4: Remove.
5709
5710         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5711         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5712         implementations that use only 32 bits to count blocks.
5713         On typical hosts with 1024-byte blocks, this fails with file
5714         systems as small as 4 TiB.  Problem reported by Herb Wartens
5715         <http://debbugs.gnu.org/9140> and this should also fix a similar
5716         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5717
5718         large-inode: New module
5719         * MODULES.html.sh: Add it.
5720         * modules/large-inode, m4/large-inode.m4: New files.
5721
5722         extensions: Enable extensions on MacOS X 10.5 and later.
5723         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5724
5725 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5726
5727         file-has-acl: use acl_extended_file_nofollow if available
5728         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5729         (acl_extended_file): New macro.
5730         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5731         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5732
5733 2011-07-21  Bruno Haible  <bruno@clisp.org>
5734
5735         Declare system functions in a way that works with C++.
5736         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5737         declare fdopendir as extern "C".
5738         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5739         declare frexpl as extern "C".
5740         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5741         declare gai_strerror as extern "C".
5742         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5743         programs, declare gai_strerror as extern "C".
5744         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5745         declare getlogin_r as extern "C".
5746         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5747         as extern "C".
5748         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5749         declare ldexpl as extern "C".
5750         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5751         as extern "C".
5752         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5753         program, declare getmntinfo as extern "C".
5754         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5755         stpncpy as extern "C".
5756         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5757         program, declare __xpg_strerror_r as extern "C".
5758         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5759         strndup as extern "C".
5760         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5761         declare memset and bzero as extern "C".
5762         Reported by Sam Steingold <sds@gnu.org>.
5763
5764 2011-07-12  Jim Meyering  <meyering@redhat.com>
5765
5766         maint.mk: prohibit inclusion of "verify.h" without use
5767         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5768
5769 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5770
5771         timer-time: A new module to check for timer_settime()
5772         * m4/timer_time.m4: Check for the posix function.
5773         * modules/timer-time: Add the new module.
5774         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5775         Mention it.
5776
5777 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5778             Bruno Haible  <bruno@clisp.org>
5779
5780         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5781         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5782         not defined, assume POSIX threads and look for pthread_sigmask in
5783         $LIBS, without changing $CPPFLAGS.
5784
5785 2011-07-19  Bruno Haible  <bruno@clisp.org>
5786
5787         strstr: Update cross-compilation guess.
5788         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5789         CPUs, guess no, in view of glibc
5790         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5791         Suggested by Eric Blake. Reported by Reuben Thomas.
5792
5793 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5794
5795         getopt-gnu: suppress core dumps from detection code
5796         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5797         to suppress core dumps that may well occur on glibc systems.
5798         * modules/getopt-gnu: Depend on nocrash.
5799
5800 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5801
5802         pthread_sigmask: ensure usleep is declared
5803         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5804         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5805
5806 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5807
5808         doc: Document NonStop portability issues.
5809         * doc/posix-functions/sigaction.texi (sigaction):
5810         * doc/posix-headers/signal.texi (signal.h):
5811         Document NonStop.  See Joachim Schmitz in
5812         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5813
5814 2011-07-15  Bruno Haible  <bruno@clisp.org>
5815
5816         ffsl, ffsll: Avoid unportable behaviour.
5817         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5818
5819 2011-07-15  Bruno Haible  <bruno@clisp.org>
5820
5821         ffs: More tests.
5822         * tests/test-ffs.c (NBITS): New macro.
5823         (main): Add more tests.
5824         * tests/test-ffsl.c (NBITS): New macro.
5825         (main): Add more tests.
5826         * tests/test-ffsll.c (NBITS): New macro.
5827         (main): Add more tests.
5828
5829 2011-07-15  Eric Blake  <eblake@redhat.com>
5830
5831         ffsl, ffsll: new modules
5832         * modules/ffsl: New file.
5833         * modules/ffsll: Likewise.
5834         * m4/ffsl.m4: Likewise.
5835         * m4/ffsll.m4: Likewise.
5836         * lib/ffsl.c: Likewise.
5837         * lib/ffsl.h: Likewise.
5838         * lib/ffsll.c: Likewise.
5839         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5840         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5841         * modules/string (Makefile.am): Substitute witnesses.
5842         * lib/strings.in.h (ffsl, ffsll): Declare.
5843         * modules/ffsl-tests: New test file.
5844         * modules/ffsll-tests: Likewise.
5845         * tests/test-ffsl.c: Likewise.
5846         * tests/test-ffsll.c: Likewise.
5847         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5848         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5849         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5850
5851         ffs: fix m4 prerequisite
5852         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5853
5854         ffs: avoid undefined behavior
5855         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5856         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5857         Reported by Bruno Haible.
5858
5859 2011-07-12  Bruno Haible  <bruno@clisp.org>
5860
5861         pthread_sigmask: Rely on module 'threadlib'.
5862         * modules/pthread_sigmask (Depends-on): Add threadlib.
5863         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5864         is defined.
5865
5866 2011-07-12  Bruno Haible  <bruno@clisp.org>
5867
5868         regex: Depend on module 'strcase'.
5869         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5870
5871 2011-07-12  Jim Meyering  <meyering@redhat.com>
5872
5873         warn-on-use: fix typo in file name
5874         * modules/snippet/warn-on-use (Files): Correct file name:
5875         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5876
5877 2011-07-12  Bruno Haible  <bruno@clisp.org>
5878
5879         strings: Document module.
5880         * doc/posix-headers/strings.texi: Mention module 'strings'.
5881
5882 2011-07-12  Bruno Haible  <bruno@clisp.org>
5883
5884         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5885         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5886         (Files, Makefile.am): Update.
5887         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5888         * modules/stdlib (Depends-on): Update.
5889
5890 2011-07-12  Bruno Haible  <bruno@clisp.org>
5891
5892         * NEWS: Mention the changes.
5893
5894         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5895         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5896         (Files, Makefile.am): Update.
5897         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5898         * modules/arpa_inet (Depends-on): Update.
5899         * modules/ctype (Depends-on): Update.
5900         * modules/dirent (Depends-on): Update.
5901         * modules/fcntl-h (Depends-on): Update.
5902         * modules/glob (Depends-on): Update.
5903         * modules/iconv-h (Depends-on): Update.
5904         * modules/inttypes-incomplete (Depends-on): Update.
5905         * modules/langinfo (Depends-on): Update.
5906         * modules/locale (Depends-on): Update.
5907         * modules/math (Depends-on): Update.
5908         * modules/netdb (Depends-on): Update.
5909         * modules/poll-h (Depends-on): Update.
5910         * modules/pty (Depends-on): Update.
5911         * modules/search (Depends-on): Update.
5912         * modules/signal (Depends-on): Update.
5913         * modules/spawn (Depends-on): Update.
5914         * modules/stdio (Depends-on): Update.
5915         * modules/stdlib (Depends-on): Update.
5916         * modules/string (Depends-on): Update.
5917         * modules/strings (Depends-on): Update.
5918         * modules/sys_file (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_times (Depends-on): Update.
5925         * modules/sys_utsname (Depends-on): Update.
5926         * modules/sys_wait (Depends-on): Update.
5927         * modules/termios (Depends-on): Update.
5928         * modules/time (Depends-on): Update.
5929         * modules/unistd (Depends-on): Update.
5930         * modules/wchar (Depends-on): Update.
5931         * modules/wctype-h (Depends-on): Update.
5932         * MODULES.html.sh (Support for building libraries and executables):
5933         Update.
5934
5935         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5936         * modules/snippet/unused-parameter: Renamed from
5937         modules/unused-parameter.
5938         (Files, Makefile.am): Update.
5939         * build-aux/snippet/unused-parameter.h: Renamed from
5940         build-aux/unused-parameter.h.
5941         * modules/selinux-h (Depends-on): Update.
5942         * modules/unistr/base (Depends-on): Update.
5943         * MODULES.html.sh (Core language properties): Update.
5944
5945         Rename module 'link-warning' to 'snippet/link-warning'.
5946         * modules/snippet/link-warning: Renamed from modules/link-warning.
5947         (Files, Makefile.am): Update.
5948         * build-aux/snippet/link-warning.h: Renamed from
5949         build-aux/link-warning.h.
5950         * MODULES.html.sh (Support for building libraries and executables):
5951         Update.
5952
5953         Rename module 'c++defs' to 'snippet/c++defs'.
5954         * modules/snippet/c++defs: Renamed from modules/c++defs.
5955         (Files, Makefile.am): Update.
5956         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5957         * modules/arpa_inet (Depends-on): Update.
5958         * modules/ctype (Depends-on): Update.
5959         * modules/dirent (Depends-on): Update.
5960         * modules/fcntl-h (Depends-on): Update.
5961         * modules/glob (Depends-on): Update.
5962         * modules/iconv-h (Depends-on): Update.
5963         * modules/langinfo (Depends-on): Update.
5964         * modules/locale (Depends-on): Update.
5965         * modules/math (Depends-on): Update.
5966         * modules/netdb (Depends-on): Update.
5967         * modules/poll-h (Depends-on): Update.
5968         * modules/pty (Depends-on): Update.
5969         * modules/search (Depends-on): Update.
5970         * modules/signal (Depends-on): Update.
5971         * modules/spawn (Depends-on): Update.
5972         * modules/stdio (Depends-on): Update.
5973         * modules/stdlib (Depends-on): Update.
5974         * modules/string (Depends-on): Update.
5975         * modules/strings (Depends-on): Update.
5976         * modules/sys_ioctl (Depends-on): Update.
5977         * modules/sys_select (Depends-on): Update.
5978         * modules/sys_socket (Depends-on): Update.
5979         * modules/sys_stat (Depends-on): Update.
5980         * modules/sys_time (Depends-on): Update.
5981         * modules/sys_wait (Depends-on): Update.
5982         * modules/termios (Depends-on): Update.
5983         * modules/time (Depends-on): Update.
5984         * modules/unistd (Depends-on): Update.
5985         * modules/wchar (Depends-on): Update.
5986         * modules/wctype-h (Depends-on): Update.
5987
5988         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5989         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5990         (Files, Makefile.am): Update.
5991         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5992         * modules/argv-iter (Depends-on): Update.
5993         * modules/arpa_inet (Depends-on): Update.
5994         * modules/dirent (Depends-on): Update.
5995         * modules/fcntl-h (Depends-on): Update.
5996         * modules/fnmatch (Depends-on): Update.
5997         * modules/getopt-posix (Depends-on): Update.
5998         * modules/glob (Depends-on): Update.
5999         * modules/iconv-h (Depends-on): Update.
6000         * modules/inttypes-incomplete (Depends-on): Update.
6001         * modules/locale (Depends-on): Update.
6002         * modules/math (Depends-on): Update.
6003         * modules/netdb (Depends-on): Update.
6004         * modules/search (Depends-on): Update.
6005         * modules/signal (Depends-on): Update.
6006         * modules/spawn (Depends-on): Update.
6007         * modules/stdio (Depends-on): Update.
6008         * modules/stdlib (Depends-on): Update.
6009         * modules/string (Depends-on): Update.
6010         * modules/strings (Depends-on): Update.
6011         * modules/sys_socket (Depends-on): Update.
6012         * modules/sys_stat (Depends-on): Update.
6013         * modules/sys_time (Depends-on): Update.
6014         * modules/sys_times (Depends-on): Update.
6015         * modules/sys_utsname (Depends-on): Update.
6016         * modules/time (Depends-on): Update.
6017         * modules/unistd (Depends-on): Update.
6018         * modules/wchar (Depends-on): Update.
6019         * MODULES.html.sh (Support for building libraries and executables):
6020         Update.
6021
6022 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6023
6024         Improvements on _Noreturn and related modules.
6025
6026         modules/_Exit-tests: test _Noreturn too
6027         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6028         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6029         (main): Use them.
6030
6031         stdnoreturn, stdnoreturn-tests: remove modules
6032         They're not needed here and a bit premature for use elsewhere.  See
6033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6034         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6035         * tests/test-stdnoreturn.c: Remove files.
6036         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6037         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6038         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6039         and using noreturn.
6040         * modules/openat, modules/sigpipe-die, modules/xalloc:
6041         * modules/xmemdup0, modules/xstrtol:
6042         Remove dependency on stdnoreturn.
6043
6044         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6045         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6046         Reparenthesize to avoid GCC warning.
6047         Support Microsoft's syntax.
6048         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6049
6050         _Noreturn-tests: remove module
6051         * modules/_Noreturn-tests: Remove.
6052         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6053         * tests/test-_Noreturn.c: Remove.
6054         * tests/test-stdnoreturn.c: Merge from the old
6055         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6056
6057 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6058
6059         _Noreturn, stdnoreturn, and related modules.
6060
6061         * top/maint.mk: Adjust to new noreturn support.
6062         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6063         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6064
6065         xalloc: use stdnoreturn.h
6066         * lib/xalloc.h: Include <stdnoreturn.h>.
6067         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6068         * modules/xalloc (Depends-on): Add stdnoreturn.
6069
6070         xstrtol: use stdnoreturn.h
6071         * lib/xstrtol.h: Include <stdnoreturn.h>.
6072         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6073         * modules/xstrtol (Depends-on): Add stdnoreturn.
6074
6075         xmemdup0: use stdnoreturn.h
6076         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6077         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6078         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6079
6080         sigpipe-die: use stdnoreturn.h
6081         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6082         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6083         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6084
6085         openat: use stdnoreturn.h
6086         * lib/openat.h: Include <stdnoreturn.h>.
6087         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6088         * modules/openat (Depends-on): Add stdnoreturn.
6089
6090         * lib/openat-die.c (openat_save_fail): Modernize comment.
6091
6092         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6093
6094         * lib/glthread/thread.h: Modernize comment.
6095
6096         obstack: use _Noreturn
6097         * lib/obstack.c (__attribute__): Remove macro.
6098         (print_and_abort): Use _Noreturn.
6099
6100         c-stack: use _Noreturn
6101         * lib/c-stack.c (die, overflow_handler, segv_handler):
6102         Use _Noreturn rather than __attribute__((noreturn)).
6103
6104         argmatch-tests, exclude_tests: use _Noreturn
6105         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6106         Remove.
6107         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6108
6109         stdlib: use _Noreturn
6110         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6111         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6112         * modules/stdlib (Depends-on): Add _Noreturn.
6113         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6114
6115         stdnoreturn-tests: new module
6116         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6117
6118         stdnoreturn: new module
6119         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6120         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6121
6122         _Noreturn-tests: new module
6123         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6124
6125         _Noreturn: new module
6126         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6127         New section, mentioning it.
6128         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6129
6130         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6131
6132 2011-07-11  Eric Blake  <eblake@redhat.com>
6133
6134         ffs: new module
6135         * modules/ffs: New file.
6136         * m4/ffs.m4: Likewise.
6137         * lib/ffs.c: Likewise.
6138         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6139         * modules/strings (Makefile.am): Substitute witness.
6140         (Depends-on): Add c++defs.
6141         * lib/strings.in.h (ffs): Declare.
6142         * modules/ffs-tests: New test file.
6143         * tests/test-ffs.c: Test new module.
6144         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6145         * doc/posix-functions/ffs.texi (ffs): Likewise.
6146
6147         regex: avoid compiler warning
6148         * lib/regex.c (includes): Include <strings.h>, for use of
6149         strcasecmp in regcomp.c.
6150         Reported by Joachim Schmitz.
6151
6152 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6153
6154         stdint: respect system's intmax_t if INTMAX_MAX
6155         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6156         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6157         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6158         long but int64_t is long long, and where we will clash with the
6159         system intmax_t if we override it.  See
6160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6161         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6162         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6163         similarly for UINTMAX_C.
6164
6165 2011-07-08  Bruno Haible  <bruno@clisp.org>
6166
6167         pthread_sigmask tests: Avoid a compiler warning.
6168         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6169         non-zero.
6170
6171         sigprocmask tests: A better way to avoid a compiler warning.
6172         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6173         (main): Complain if system() returns non-zero.
6174         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6175
6176 2011-07-08  Bruno Haible  <bruno@clisp.org>
6177
6178         pthread_sigmask: Work around IRIX bug.
6179         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6180         bug.
6181         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6182         there may be unblocked pending signals.
6183         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6184
6185 2011-07-08  Bruno Haible  <bruno@clisp.org>
6186
6187         pthread_sigmask: Work around Cygwin bug.
6188         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6189         bug.
6190         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6191         the system's pthread_sigmask function.
6192         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6193
6194 2011-07-08  Bruno Haible  <bruno@clisp.org>
6195
6196         pthread_sigmask: Work around bug in single-threaded implementation.
6197         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6198         FreeBSD, HP-UX, Solaris bug.
6199         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6200         * lib/pthread_sigmask.c: Include <stddef.h>.
6201         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6202         the system's pthread_sigmask function.
6203         * modules/pthread_sigmask (configure.ac): Invoke
6204         gl_PREREQ_PTHREAD_SIGMASK.
6205         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6206         HP-UX, Solaris.
6207
6208 2011-07-08  Eric Blake  <eblake@redhat.com>
6209
6210         test-sigprocmask: avoid compiler warning
6211         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6212         * tests/test-sigprocmask.c (main): Use it to silence warning.
6213         Reported by Jim Meyering.
6214
6215         test-snprintf: avoid compiler warning
6216         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6217         * tests/test-vsnprintf.c (main): Likewise.
6218         Reported by Jim Meyering.
6219
6220 2011-07-08  Bruno Haible  <bruno@clisp.org>
6221
6222         Tests for module 'pthread_sigmask'.
6223         * modules/pthread_sigmask-tests: New file.
6224         * tests/test-pthread_sigmask1.c: New file, based on
6225         tests/test-sigprocmask.c.
6226         * tests/test-pthread_sigmask2.c: New file.
6227
6228 2011-07-08  Jim Meyering  <meyering@redhat.com>
6229
6230         test-getopt.h: avoid warning about an unused variable
6231         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6232
6233 2011-07-07  Jim Meyering  <meyering@redhat.com>
6234
6235         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6236         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6237         now that it no longer contains leading TABs.
6238         Remove unused "url=FIXME" statement.
6239
6240 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6241
6242         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6243         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6244         When gl_THREADLIB is not in use, assume that the POSIX sematics
6245         are desired.  This is better for Emacs, which uses POSIX semantics
6246         on GNUish and/or POSIXish platforms, and does not use threads at
6247         all otherwise.
6248
6249         pthread_sigmask: fix typo when testing for libraries
6250         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6251         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6252
6253 2011-07-08  Eric Blake  <eblake@redhat.com>
6254
6255         fts: introduce FTS_NOATIME
6256         * lib/fts_.h (FTS_NOATIME): New bit flag.
6257         (FTS_OPTIONMASK): Adjust.
6258         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6259         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6260
6261 2011-07-08  Bruno Haible  <bruno@clisp.org>
6262
6263         Tests for module 'thread'.
6264         * modules/thread-tests: New file.
6265         * tests/test-thread_self.c: New file.
6266         * tests/test-thread_create.cc: New file.
6267
6268 2011-07-08  Bruno Haible  <bruno@clisp.org>
6269
6270         thread: Avoid gcc warnings when using gl_thread_self().
6271         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6272         'void *'.
6273         (gl_thread_self_pointer): Update.
6274
6275 2011-07-07  Bruno Haible  <bruno@clisp.org>
6276
6277         signal-c++-tests: Check declaration of pthread_sigmask.
6278         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6279         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6280         $(LIB_PTHREAD_SIGMASK).
6281
6282 2011-07-07  Bruno Haible  <bruno@clisp.org>
6283
6284         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6285         * lib/signal.in.h (pthread_sigmask): Override if
6286         REPLACE_PTHREAD_SIGMASK is 1.
6287         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6288         REPLACE_PTHREAD_SIGMASK.
6289         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6290         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6291         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6292         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6293         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6294
6295 2011-07-07  Bruno Haible  <bruno@clisp.org>
6296
6297         pthread_sigmask: Ensure declaration in <signal.h>.
6298         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6299         include <pthread.h>.
6300         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6301         problem.
6302
6303 2011-07-07  Bruno Haible  <bruno@clisp.org>
6304
6305         pthread_sigmask: Document the module.
6306         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6307
6308 2011-07-07  Bruno Haible  <bruno@clisp.org>
6309
6310         pthread_sigmask: Follow gnulib conventions.
6311         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6312         gl_PTHREAD_SIGMASK.
6313         * modules/pthread_sigmask (configure.ac): Update.
6314
6315 2011-07-07  Bruno Haible  <bruno@clisp.org>
6316
6317         pthread_sigmask: Make declaration C++ safe.
6318         * lib/signal.in.h: In two special conditions, just do an #include_next.
6319         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6320         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6321         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6322         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6323         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6324         not REPLACE_PTHREAD_MASK.
6325         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6326         not REPLACE_PTHREAD_MASK.
6327         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6328
6329 2011-07-07  Bruno Haible  <bruno@clisp.org>
6330
6331         pthread_sigmask: Fix return value.
6332         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6333         * lib/pthread_sigmask.c: New file.
6334         * modules/pthread_sigmask (Files): Add it.
6335         (configure.ac): Invoke AC_LIBOBJ.
6336
6337 2011-07-07  Eric Blake  <eblake@redhat.com>
6338
6339         getopt: more portable argv creation
6340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6341         const, use char arrays rather than strings.
6342         Suggested by Paul Eggert.
6343
6344 2011-07-07  Bruno Haible  <bruno@clisp.org>
6345
6346         Tests for module 'sigprocmask'.
6347         * modules/sigprocmask-tests: New file.
6348         * tests/test-sigprocmask.c: New file.
6349
6350 2011-07-07  Bruno Haible  <bruno@clisp.org>
6351
6352         float tests: Tweak.
6353         * tests/test-float.c (main): Tweak skip message.
6354
6355 2011-07-07  Eric Blake  <eblake@redhat.com>
6356
6357         getopt: avoid compiler warning during configure
6358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6359         assigning string literals to non-const pointer.
6360
6361         getopt-gnu: avoid crash in glibc getopt
6362         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6363         * tests/test-getopt.h (test_getopt): Enhance test.
6364         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6365         * doc/posix-functions/getopt.texi (getopt): Document it.
6366         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6367         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6368         Likewise.
6369
6370 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6371
6372         getopt: handle W; without long options in getopt [BZ #12922]
6373         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6374         but no long options are defined, just return 'W'.
6375
6376 2011-07-07  Bruno Haible  <bruno@clisp.org>
6377
6378         Avoid literal tabs.
6379         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6380         variable containing a tab instead of a literal tab.
6381         Reported by Jim Meyering.
6382
6383 2011-07-07  Bruno Haible  <bruno@clisp.org>
6384
6385         Comments.
6386         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6387
6388 2011-07-06  Bruno Haible  <bruno@clisp.org>
6389
6390         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6391         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6392         <winsock2.h>.
6393         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6394         lib/sys_socket.in.h.
6395         (close, gethostname): Hide declarations from <winsock2.h>.
6396         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6397         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6398         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6399         (select): Don't override if gnulib's <sys/select.h> was already
6400         included.
6401         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6402         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6403         setsockopt, shutdown, select): Tweak indentation.
6404
6405 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6406
6407         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6408         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6409         in an application that does not use the sys_select module.
6410
6411 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6412
6413         poll: do not return 0 on timeout=-1
6414         * lib/poll.c: Loop with yield if no events occured
6415
6416 2011-07-06  Eric Blake  <eblake@redhat.com>
6417
6418         pthread_sigmask: always replace when not using pthread
6419         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6420         replacement when using some threading other than pthread.  Fix
6421         logic bug.
6422
6423 2011-07-06  Bruno Haible  <bruno@clisp.org>
6424
6425         Comments.
6426         * m4/printf.m4: Update comments about mingw.
6427
6428 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6429
6430         sys_select: define sigset_t more portably
6431         * lib/sys_select.in.h: Always include <sys/types.h>, since
6432         we now need sigset_t and mingw defines it there.
6433         Include <signal.h> before split inclusion guard, to avoid
6434         mishaps on Solaris, whose <signal.h> eventually includes us.
6435         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6436         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6437         which come from ...
6438         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6439         gl_CHECK_TYPE_SIGSET_T.
6440         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6441         does the real work.
6442         * modules/sys_select (Depends-on): Add 'signal'.
6443
6444         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6445         Suggested by Bruno Haible.
6446
6447         pselect: Use pthread_sigmask, not sigprocmask.
6448         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6449         multithreaded apps better than sigprocmask does.
6450         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6451         sigprocmask directly.
6452
6453 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6454
6455         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6456         Don't #undef,  since we don't need any underlying pselect.
6457         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6458         (Depends-on): Add select.
6459         (Link): Add $(LIBSOCKET).
6460         These changes suggested by Bruno Haible.
6461
6462         pselect: document better
6463         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6464         * doc/posix-functions/pselect.texi (pselect): Document new module.
6465
6466         pthread_sigmask: new module
6467         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6468         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6469         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6470         This is done only as a macro; I don't know how well that'll
6471         work for C++.  Move <sys/types.h> include before the include_next,
6472         to avoid mishap on Solaris.
6473         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6474         * modules/signal (Makefile.am): Substitute the check's results.
6475         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6476
6477         test-pselect: new module
6478         * modules/pselect-tests, tests/test-pselect.c: New files.
6479         * tests/test-select.c, tests/test-sys_select-c++.cc:
6480         If TEST_PSELECT is defined, test pselect instead of testing select.
6481
6482         * tests/test-sys_select.c (sigset_t): Test for it, too.
6483         Suggested by Bruno Haible.
6484
6485 2011-07-05  Eric Blake  <eblake@redhat.com>
6486
6487         snprintf: guarantee %1$d, for libintl
6488         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6489         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6490         * doc/posix-functions/snprintf.texi (snprintf): Update.
6491         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6492         * tests/test-snprintf.c (main): Enhance test.
6493         * tests/test-vsnprintf.c (main): Likewise.
6494
6495 2011-07-05  Jim Meyering  <meyering@redhat.com>
6496
6497         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6498         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6499         per Bruno's request, to accommodate this idiom (no space after "#")
6500         even when the function is inside an #if block:
6501         char *
6502         gets (char *s)
6503         #undef gets
6504         {
6505           ...
6506         }
6507
6508 2011-07-04  Jim Meyering  <meyering@redhat.com>
6509
6510         maint: indent with spaces, not TABs, and add a rule to check this
6511         * tests/test-userspec.c: Indent with spaces, not TABs.
6512         * tests/test-argp.c: Likewise.
6513         * tests/test-c-stack2.sh: Likewise.
6514         * tests/test-parse-duration.sh: Likewise
6515         * m4/strtod.m4: Likewise.
6516         * m4/alloca.m4: Likewise.
6517         * m4/pselect.m4: Likewise.
6518         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6519
6520 2011-07-03  Jim Meyering  <meyering@redhat.com>
6521
6522         maint.mk: correct omissions in prohibit_argmatch_without_use check
6523         This rule would mistakenly report that argmatch.h is included without
6524         use even when both the argmatch and invalid_arg macro were used.
6525         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6526         of argmatch and invalid_arg.
6527
6528 2011-07-03  Bruno Haible  <bruno@clisp.org>
6529
6530         Comments about EINTR.
6531         * lib/safe-read.h: Explain the purpose of this module.
6532         * lib/safe-write.h: Likewise.
6533         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6534         module.
6535         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6536         module.
6537         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6538
6539 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6540
6541         xnanosleep: Rewrite to use new dtotimespec module.
6542         It has the conversion code that used to be in xnanosleep.
6543         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6544         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6545         (TIME_T_MAX): Remove.
6546         (xnanosleep): Rewrite in terms of dtotimespec.
6547         * modules/xnanosleep (Depends-on): Add dtotimespec.
6548         Remove intprops, stdbool.
6549
6550         timespec-add, timespec-sub: new modules
6551         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6552         * lib/timespec-add.c, lib/timespec-sub.c:
6553         * modules/timespec-add, modules/timespec-sub: New files.
6554
6555         dtotimespec: new module
6556         * lib/timespec.h (dtotimespec): New decl.
6557         * lib/dtotimespec.c, modules/dtotimespec: New files.
6558
6559         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6560
6561         pselect: new module
6562         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6563         (pselect): New decls.
6564         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6565         since the standard pselect decl uses 'restrict'.
6566         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6567         HAVE_PSELECT, REPLACE_PSELECT.
6568         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6569         HAVE_PSELECT, REPLACE_PSELECT.
6570         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6571
6572         sys_select: don't depend on sys_socket
6573         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6574         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6575         This fix works on GNU and GNU-like platforms, but has not been tested
6576         on native Windows.
6577         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6578         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6579         gl_HEADER_SYS_SOCKET.
6580         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6581         gl_PREREQ_SYS_H_WINSOCK2.
6582
6583 2011-06-29  Eric Blake  <eblake@redhat.com>
6584
6585         pipe2: fix C89 compile problem
6586         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6587         Reported by Bruno Haible.
6588
6589         pipe, pipe2: don't corrupt fd on error
6590         * lib/pipe.c (pipe): Leave fd unchanged on error.
6591         * lib/pipe2.c (pipe2): Likewise.
6592         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6593         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6594
6595 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6596
6597         mmap-anon: do not use regular expressions inadvertently
6598         * m4/mmap-anon.m4: Remove trailing period from strings sought
6599         in the output.
6600
6601 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6602
6603         nanosleep: fix integer overflow problem
6604         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6605         arithmetic wraps around on overflow.
6606
6607         nanosleep: simplify carrying
6608         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6609         first call to the underyling nanosleep, not for the last one.
6610         This doesn't fix any bugs, but it simplifies the computation of
6611         the remaining delay.  Found while auditing integer overflow issues.
6612
6613         dup2: remove test for existence of fcntl
6614         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6615         "#if HAVE_FCNTL", in the configure-time test program.
6616         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6617         and therefore speeds up "configure" a bit.  Found while
6618         adding the dup2 module to Emacs.
6619
6620 2011-06-24  Eric Blake  <eblake@redhat.com>
6621
6622         maint.mk: enhance useless header checks
6623         * top/maint.mk (_sc_header_without_use): Check both include
6624         styles.
6625         (sc_prohibit_assert_without_use)
6626         (sc_prohibit_close_stream_without_use)
6627         (sc_prohibit_getopt_without_use)
6628         (sc_prohibit_quotearg_without_use)
6629         (sc_prohibit_quote_without_use)
6630         (sc_prohibit_long_options_without_use)
6631         (sc_prohibit_inttostr_without_use)
6632         (sc_prohibit_ignore_value_without_use)
6633         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6634         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6635         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6636         (sc_prohibit_hash_pjw_without_use)
6637         (sc_prohibit_safe_read_without_use)
6638         (sc_prohibit_argmatch_without_use)
6639         (sc_prohibit_canonicalize_without_use)
6640         (sc_prohibit_root_dev_ino_without_use)
6641         (sc_prohibit_openat_without_use)
6642         (sc_prohibit_c_ctype_without_use)
6643         (sc_prohibit_signal_without_use)
6644         (sc_prohibit_stdio--_without_use)
6645         (sc_prohibit_stdio-safer_without_use)
6646         (sc_prohibit_strings_without_use)
6647         (sc_prohibit_intprops_without_use)
6648         (sc_prohibit_stddef_without_use)
6649         (sc_prohibit_xfreopen_without_use): Update clients.
6650
6651 2011-06-24  Jim Meyering  <meyering@redhat.com>
6652
6653         syntax-check: keep one maint.mk rule in sync with its header
6654         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6655         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6656         I prefer to avoid temporary files here, so use <(...), but that
6657         is not supported by /bin/sh, so...
6658         (SHELL): Define to /bin/bash.
6659
6660 2011-06-24  Eric Blake  <eblake@redhat.com>
6661
6662         maint.mk: update sc_prohibit_intprops_without_use
6663         * top/maint.mk (_intprops_names): Match recent changes.
6664
6665 2011-06-24  Bruno Haible  <bruno@clisp.org>
6666
6667         strerror-override: No-op tweak.
6668         * lib/strerror-override.h (strerror_override): Reorder conditions,
6669         for consistency with lib/strerror-override.c.
6670
6671 2011-06-23  Eric Blake  <eblake@redhat.com>
6672
6673         maint.mk: test further PATH_MAX issues
6674         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6675         (sc_prohibit_path_max_allocation): ...and also test alloca.
6676         Suggested by Jim Meyering.
6677
6678 2011-06-22  Eric Blake  <eblake@redhat.com>
6679
6680         maint.mk: add syntax-check to avoid char[PATH_MAX]
6681         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6682
6683         stat: be robust to PATH_MAX definition
6684         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6685         * modules/stat (Depends-on): Add verify.
6686
6687         link: work around IRIX bug
6688         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6689         * lib/link.c (rpl_link): Work around it.
6690         * tests/test-link.h (test_link): Enhance test.
6691         * doc/posix-functions/link.texi (link): Document the bug.
6692
6693         getopt: silence clang warning
6694         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6695         dereference.
6696         Reported by Gustavo Martin Domato.
6697
6698 2011-06-22  Jim Meyering  <meyering@redhat.com>
6699
6700         bootstrap: do not insert a blank line into each .gitignore file
6701         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6702
6703 2011-06-21  Eric Blake  <eblake@redhat.com>
6704
6705         perror: test for output mismatch
6706         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6707         perror on IRIX.
6708
6709         strerror_r: fix OpenBSD behavior on out-of-range
6710         * lib/strerror_r.c (strerror_r): Always use maximal string.
6711         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6712
6713         strerror_r: fix OpenBSD behavior on 0
6714         * lib/strerror-override.c (strerror_override): Also override 0
6715         when needed.
6716         * lib/strerror-override.h (strerror_override): Likewise.
6717         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6718         earlier.
6719         * lib/strerror_r.c (strerror_r): Likewise.
6720         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6721         behavior...
6722         (gl_FUNC_STRERROR_0): ...into new macro.
6723         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6724         is overridden.
6725         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6726         * modules/strerror-override (Files): Add strerror.m4.
6727         (configure.ac): Also provide override for 0 when needed.
6728         * doc/posix-functions/strerror.texi (strerror): Document this.
6729         * doc/posix-functions/perror.texi (perror): Likewise.
6730
6731         perror: adjust array size
6732         * modules/perror (Depends-on): Add strerror-override.
6733         * lib/perror.c (perror): Use it to avoid magic number.
6734
6735         strerror-override: reduce size
6736         * lib/strerror-override.c (strerror_override): Use fewer lines.
6737
6738 2011-06-20  Bruno Haible  <bruno@clisp.org>
6739
6740         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6741         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6742
6743 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6744
6745         alloca: port to compilers that can optimize like GCC 4.6.0
6746         * lib/alloca.c (find_stack_direction): New signature, taken from
6747         Autoconf git.  This works with GCC 4.6.0.  This code should never
6748         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6749         be used with other compilers that optimize as well as GCC 4.6.0 does.
6750         (alloca): Adjust to new signature.
6751         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6752         New macro, which patches Autoconf in a similar way.
6753
6754         c-stack: stop worrying about stack direction
6755         * lib/c-stack.c (find_stack_direction): Remove.
6756         (segv_handler): Don't worry about stack direction growth, as it's
6757         too much of a pain to configure this correctly, given how compilers
6758         are optimizing-away our stack-growth detection code.  Instead, assume
6759         that any access to just before or just after the stack is OK.
6760         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6761         Don't require AC_FUNC_ALLOCA; no longer needed.
6762
6763 2011-06-20  Eric Blake  <eblake@redhat.com>
6764
6765         test-stat: don't allocate PATH_MAX bytes
6766         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6767         PATH_MAX-sized buffer.
6768         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6769         * modules/stat-tests (Depends-on): Likewise.
6770         * tests/test-fstatat.c (includes): Drop pathmax.h.
6771         * tests/test-stat.c (includes): Likewise.
6772         Reported by Bruno Haible.
6773
6774 2011-06-20  Bruno Haible  <bruno@clisp.org>
6775
6776         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6777         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6778         * lib/float.c: New file.
6779         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6780         REPLACE_FLOAT_LDBL.
6781         * modules/float (Files): Add lib/float.c.
6782         (configure.ac): Invoke AC_LIBOBJ.
6783         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6784
6785 2011-06-20  Bruno Haible  <bruno@clisp.org>
6786
6787         Tests for module 'float'.
6788         * modules/float-tests: New file.
6789         * tests/test-float.c: New file.
6790
6791 2011-06-19  Bruno Haible  <bruno@clisp.org>
6792
6793         isinf: Coding style.
6794         * lib/isinf.c: Use GNU coding style.
6795
6796 2011-06-19  Bruno Haible  <bruno@clisp.org>
6797
6798         linkat test: Avoid test failure on AIX 7.1.
6799         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6800         * tests/test-link.h (test_link): Likewise.
6801
6802 2011-06-19  Bruno Haible  <bruno@clisp.org>
6803
6804         pread test: Avoid test failure on OpenBSD 4.9.
6805         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6806
6807 2011-06-19  Bruno Haible  <bruno@clisp.org>
6808
6809         sprintf-posix: Fix test failure on AIX 7.1.
6810         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6811         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6812         on AIX.
6813         * doc/posix-functions/fprintf.texi: Likewise.
6814         * doc/posix-functions/printf.texi: Likewise.
6815         * doc/posix-functions/snprintf.texi: Likewise.
6816         * doc/posix-functions/sprintf.texi: Likewise.
6817         * doc/posix-functions/vdprintf.texi: Likewise.
6818         * doc/posix-functions/vfprintf.texi: Likewise.
6819         * doc/posix-functions/vprintf.texi: Likewise.
6820         * doc/posix-functions/vsnprintf.texi: Likewise.
6821         * doc/posix-functions/vsprintf.texi: Likewise.
6822
6823 2011-06-19  Bruno Haible  <bruno@clisp.org>
6824
6825         roundl-ieee: Fix test failure on AIX 7.1.
6826         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6827         * doc/posix-functions/roundl.texi: Mention problem with negative
6828         arguments.
6829
6830 2011-06-19  Bruno Haible  <bruno@clisp.org>
6831
6832         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6833         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6834         * doc/posix-functions/round.texi: Mention problem with negative
6835         arguments.
6836         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6837
6838 2011-06-19  Bruno Haible  <bruno@clisp.org>
6839
6840         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6841         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6842         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6843         * doc/posix-functions/roundf.texi: Mention problem with negative
6844         arguments.
6845         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6846
6847 2011-06-19  Bruno Haible  <bruno@clisp.org>
6848
6849         ceilf-ieee: Work around bug on MacOS X 10.5.
6850         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6851
6852         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6853         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6854         IEEE compliant, avoid compiler optimizations.
6855         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6856         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6857         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6858         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6859         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6860         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6861         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6862         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6863         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6864         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6865
6866 2011-06-19  Bruno Haible  <bruno@clisp.org>
6867
6868         ceilf-ieee: Work around bug on AIX 7.1.
6869         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6870         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6871
6872 2011-06-19  Bruno Haible  <bruno@clisp.org>
6873
6874         ceil-ieee: Work around bug on AIX 7.1.
6875         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6876         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6877
6878 2011-06-18  Bruno Haible  <bruno@clisp.org>
6879
6880         fsync test: Avoid test failure on MacOS X and AIX.
6881         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6882         EINVAL.
6883
6884 2011-06-18  Bruno Haible  <bruno@clisp.org>
6885
6886         openat, fdopendir tests: Fix link errors.
6887         * modules/openat-tests (Depends-on): Add progname.
6888         * modules/fdopendir-tests (Depends-on): Likewise.
6889         * tests/test-fchownat.c: Include progname.h.
6890         (main): Call set_program_name.
6891         * tests/test-fstatat.c: Include progname.h.
6892         (main): Call set_program_name.
6893         * tests/test-mkdirat.c: Include progname.h.
6894         (main): Call set_program_name.
6895         * tests/test-openat.c: Include progname.h.
6896         (main): Call set_program_name.
6897         * tests/test-unlinkat.c: Include progname.h.
6898         (main): Call set_program_name.
6899         * tests/test-fdopendir.c: Include progname.h.
6900         (main): Call set_program_name.
6901
6902 2011-06-18  Bruno Haible  <bruno@clisp.org>
6903
6904         Doc update.
6905         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6906         HP-UX.
6907         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6908
6909 2011-06-18  Bruno Haible  <bruno@clisp.org>
6910
6911         getcwd tests: Avoid compilation error on HP-UX 11.31.
6912         * modules/getcwd-tests (Depends-on): Add pathmax.
6913         * tests/test-getcwd.c: Include pathmax.h.
6914
6915 2011-06-18  Bruno Haible  <bruno@clisp.org>
6916
6917         isfinite, isinf: Fix link error on AIX 6 and 7.
6918         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6919         needed, also test the macro with a 'float' argument.
6920         * m4/isinf.m4 (gl_ISINF): Likewise.
6921
6922 2011-06-18  Bruno Haible  <bruno@clisp.org>
6923
6924         getloadavg: Don't clobber LIBS. Regression from previous commit.
6925         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6926         AC_CHECK_LIB from here...
6927         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6928         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6929         gl_func_getloadavg_done.
6930         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6931
6932 2011-06-18  Bruno Haible  <bruno@clisp.org>
6933
6934         clean-temp: Improve documentation.
6935         * lib/clean-temp.h: Explain better how to use this module.
6936         Reported by John Darrington <john@darrington.wattle.id.au>.
6937
6938 2011-06-17  Bruno Haible  <bruno@clisp.org>
6939
6940         pread, pwrite: Avoid cc warning on AIX.
6941         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6942         (pwrite): Likewise.
6943
6944 2011-06-17  Bruno Haible  <bruno@clisp.org>
6945
6946         spawn-pipe tests: Fix link error.
6947         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6948         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6949
6950 2011-06-17  Bruno Haible  <bruno@clisp.org>
6951
6952         Tests: Remove unnecessary dependency.
6953         * modules/canonicalize-tests (Depends-on): Remove progname.
6954         * modules/chown-tests (Depends-on): Likewise.
6955         * modules/dirname-tests (Depends-on): Likewise.
6956         * modules/fdopendir-tests (Depends-on): Likewise.
6957         * modules/fdutimensat-tests (Depends-on): Likewise.
6958         * modules/hash-tests (Depends-on): Likewise.
6959         * modules/lchown-tests (Depends-on): Likewise.
6960         * modules/linkat-tests (Depends-on): Likewise.
6961         * modules/renameat-tests (Depends-on): Likewise.
6962         * modules/spawn-pipe-tests (Depends-on): Likewise.
6963         * modules/utimensat-tests (Depends-on): Likewise.
6964
6965 2011-06-17  Bruno Haible  <bruno@clisp.org>
6966
6967         spawn-pipe tests: Fix link error.
6968         * tests/test-spawn-pipe-child.c: Undefine fflush.
6969
6970 2011-06-17  Bruno Haible  <bruno@clisp.org>
6971
6972         Fix tests link errors.
6973         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6974         * modules/chown-tests (Makefile.am): Don't link test-chown with
6975         LIBINTL.
6976         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6977         LIBINTL.
6978         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6979         LIBINTL.
6980         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6981         LIBINTL.
6982
6983 2011-06-16  Bruno Haible  <bruno@clisp.org>
6984
6985         crypto/gc-sha1: Fix recent regression.
6986         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6987         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6988
6989         crypto/gc-md5: Fix recent regression.
6990         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6991
6992         crypto/gc-md4: Fix recent regression.
6993         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6994         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6995
6996         crypto/gc-arctwo: Fix recent regression.
6997         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6998         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6999
7000         crypto/gc-rijndael: Fix recent regression.
7001         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7002         (configure.ac): Invoke AC_LIBOBJ here.
7003         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7005
7006         crypto/gc-hmac-sha1: Fix recent regression.
7007         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7008         (configure.ac): Invoke AC_LIBOBJ here.
7009         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7010         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7011
7012         crypto/gc-hmac-md5: Fix recent regression.
7013         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7014         (configure.ac): Invoke AC_LIBOBJ here.
7015         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7016         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7017
7018         crypto/gc-des: Fix recent regression.
7019         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7020         (configure.ac): Invoke AC_LIBOBJ here.
7021         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7022         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7023
7024         crypto/gc-arcfour: Fix recent regression.
7025         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7026         (configure.ac): Invoke AC_LIBOBJ here.
7027         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7028         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7029
7030 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7031
7032         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7033         After the 2011-05-21 change, this macro requires
7034         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7035         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7036
7037 2011-06-16  Bruno Haible  <bruno@clisp.org>
7038
7039         fprintftime: Move AC_LIBOBJ invocations to module description.
7040         * m4/fprintftime.m4: Remove file.
7041         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7042         (configure.ac): Remove gl_FPRINTFTIME call.
7043         (Makefile.am): Augment lib_SOURCES.
7044         Reported by Jim Meyering.
7045
7046 2011-06-16  Bruno Haible  <bruno@clisp.org>
7047
7048         tmpfile-safer: Finish 2011-05-23 commit.
7049         * m4/stdio-safer.m4: Really remove file.
7050         Reported by Jim Meyering.
7051
7052 2011-06-16  Bruno Haible  <bruno@clisp.org>
7053
7054         syntax-check: Fix typo.
7055         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7056         printf-posix.m4.
7057         Reported by Jim Meyering.
7058
7059 2011-06-13  Jim Meyering  <meyering@redhat.com>
7060
7061         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7062         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7063
7064 2011-05-23  Bruno Haible  <bruno@clisp.org>
7065
7066         yesno: Move AC_LIBOBJ invocations to module description.
7067         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7068         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7069
7070 2011-05-23  Bruno Haible  <bruno@clisp.org>
7071
7072         xstrtol: Move AC_LIBOBJ invocations to module description.
7073         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7074         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7075
7076 2011-05-23  Bruno Haible  <bruno@clisp.org>
7077
7078         xstrtold: Move AC_LIBOBJ invocations to module description.
7079         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7080         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7081
7082 2011-05-23  Bruno Haible  <bruno@clisp.org>
7083
7084         xstrtod: Move AC_LIBOBJ invocations to module description.
7085         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7086         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7087
7088 2011-05-23  Bruno Haible  <bruno@clisp.org>
7089
7090         xnanosleep: Move AC_LIBOBJ invocations to module description.
7091         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7092         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7093
7094 2011-05-23  Bruno Haible  <bruno@clisp.org>
7095
7096         xgetcwd: Move AC_LIBOBJ invocations to module description.
7097         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7098         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7099
7100 2011-05-23  Bruno Haible  <bruno@clisp.org>
7101
7102         xalloc: Move AC_LIBOBJ invocations to module description.
7103         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7104         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7105
7106 2011-05-23  Bruno Haible  <bruno@clisp.org>
7107
7108         write-any-file: Move AC_LIBOBJ invocations to module description.
7109         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7110         invocation.
7111         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7112
7113 2011-05-23  Bruno Haible  <bruno@clisp.org>
7114
7115         utimens: Move AC_LIBOBJ invocations to module description.
7116         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7117         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7118
7119 2011-05-23  Bruno Haible  <bruno@clisp.org>
7120
7121         utimecmp: Move AC_LIBOBJ invocations to module description.
7122         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7123         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7124
7125 2011-05-23  Bruno Haible  <bruno@clisp.org>
7126
7127         userspec: Move AC_LIBOBJ invocations to module description.
7128         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7129         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7130
7131 2011-05-23  Bruno Haible  <bruno@clisp.org>
7132
7133         unlinkdir: Move AC_LIBOBJ invocations to module description.
7134         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7135         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7136
7137 2011-05-23  Bruno Haible  <bruno@clisp.org>
7138
7139         unistd-safer: Move AC_LIBOBJ invocations to module description.
7140         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7141         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7142
7143 2011-05-23  Bruno Haible  <bruno@clisp.org>
7144
7145         tempname: Move AC_LIBOBJ invocations to module description.
7146         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7147         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7148
7149 2011-05-23  Bruno Haible  <bruno@clisp.org>
7150
7151         strftime: Move AC_LIBOBJ invocations to module description.
7152         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7153         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7154
7155 2011-05-23  Bruno Haible  <bruno@clisp.org>
7156
7157         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7158         * m4/stdlib-safer.m4: Remove file.
7159         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7160         (configure.ac): Remove gl_STDLIB_SAFER call.
7161         (Makefile.am): Augment lib_SOURCES.
7162
7163 2011-05-23  Bruno Haible  <bruno@clisp.org>
7164
7165         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7166         * m4/stdio-safer.m4: Remove file.
7167         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7168         (configure.ac): Remove gl_TMPFILE_SAFER call.
7169         (Makefile.am): Augment lib_SOURCES.
7170
7171 2011-05-23  Bruno Haible  <bruno@clisp.org>
7172
7173         popen-safer: Move AC_LIBOBJ invocations to module description.
7174         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7175         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7176         (configure.ac): Remove gl_POPEN_SAFER call.
7177         (Makefile.am): Augment lib_SOURCES.
7178
7179 2011-05-23  Bruno Haible  <bruno@clisp.org>
7180
7181         freopen-safer: Move AC_LIBOBJ invocations to module description.
7182         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7183         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7184         (configure.ac): Remove gl_FREOPEN_SAFER call.
7185         (Makefile.am): Augment lib_SOURCES.
7186
7187 2011-05-23  Bruno Haible  <bruno@clisp.org>
7188
7189         fopen-safer: Move AC_LIBOBJ invocations to module description.
7190         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7191         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7192         (configure.ac): Remove gl_FOPEN_SAFER call.
7193         (Makefile.am): Augment lib_SOURCES.
7194
7195 2011-05-23  Bruno Haible  <bruno@clisp.org>
7196
7197         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7198         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7199         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7200
7201 2011-05-23  Bruno Haible  <bruno@clisp.org>
7202
7203         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7204         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7205         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7206
7207 2011-05-23  Bruno Haible  <bruno@clisp.org>
7208
7209         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7210         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7211         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7212
7213 2011-05-23  Bruno Haible  <bruno@clisp.org>
7214
7215         settime: Move AC_LIBOBJ invocations to module description.
7216         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7217         * modules/settime (Makefile.am): Augment lib_SOURCES.
7218
7219 2011-05-23  Bruno Haible  <bruno@clisp.org>
7220
7221         savedir: Move AC_LIBOBJ invocations to module description.
7222         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7223         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7224
7225 2011-05-23  Bruno Haible  <bruno@clisp.org>
7226
7227         save-cwd: Move AC_LIBOBJ invocations to module description.
7228         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7229         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7230
7231 2011-05-23  Bruno Haible  <bruno@clisp.org>
7232
7233         same: Move AC_LIBOBJ invocations to module description.
7234         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7235         * modules/same (Makefile.am): Augment lib_SOURCES.
7236
7237 2011-05-23  Bruno Haible  <bruno@clisp.org>
7238
7239         safe-write: Move AC_LIBOBJ invocations to module description.
7240         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7241         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7242         instead of gl_SAFE_WRITE.
7243         (Makefile.am): Augment lib_SOURCES.
7244
7245 2011-05-23  Bruno Haible  <bruno@clisp.org>
7246
7247         safe-read: Move AC_LIBOBJ invocations to module description.
7248         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7249         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7250         of gl_SAFE_READ.
7251         (Makefile.am): Augment lib_SOURCES.
7252
7253 2011-05-23  Bruno Haible  <bruno@clisp.org>
7254
7255         safe-alloc: Move AC_LIBOBJ invocations to module description.
7256         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7257         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7258
7259 2011-05-23  Bruno Haible  <bruno@clisp.org>
7260
7261         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7262         * m4/rijndael.m4: Remove file.
7263         * modules/crypto/rijndael (Files): Remove it.
7264         (configure.ac): Remove gl_RIJNDAEL call.
7265         (Makefile.am): Augment lib_SOURCES.
7266
7267 2011-05-23  Bruno Haible  <bruno@clisp.org>
7268
7269         readtokens: Move AC_LIBOBJ invocations to module description.
7270         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7271         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7272
7273 2011-05-23  Bruno Haible  <bruno@clisp.org>
7274
7275         read-file: Move AC_LIBOBJ invocations to module description.
7276         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7277         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7278         of gl_FUNC_READ_FILE.
7279         (Makefile.am): Augment lib_SOURCES.
7280
7281 2011-05-23  Bruno Haible  <bruno@clisp.org>
7282
7283         quotearg: Move AC_LIBOBJ invocations to module description.
7284         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7285         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7286
7287 2011-05-23  Bruno Haible  <bruno@clisp.org>
7288
7289         quote: Move AC_LIBOBJ invocations to module description.
7290         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7291         * modules/quote (Makefile.am): Augment lib_SOURCES.
7292
7293 2011-05-23  Bruno Haible  <bruno@clisp.org>
7294
7295         posixver: Move AC_LIBOBJ invocations to module description.
7296         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7297         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7298
7299 2011-05-23  Bruno Haible  <bruno@clisp.org>
7300
7301         posixtm: Move AC_LIBOBJ invocations to module description.
7302         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7303         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7304
7305 2011-05-23  Bruno Haible  <bruno@clisp.org>
7306
7307         physmem: Move AC_LIBOBJ invocations to module description.
7308         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7309         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7310
7311 2011-05-23  Bruno Haible  <bruno@clisp.org>
7312
7313         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7314         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7315         invocation.
7316         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7317
7318 2011-05-23  Bruno Haible  <bruno@clisp.org>
7319
7320         mpsort: Move AC_LIBOBJ invocations to module description.
7321         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7322         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7323
7324 2011-05-23  Bruno Haible  <bruno@clisp.org>
7325
7326         modechange: Move AC_LIBOBJ invocations to module description.
7327         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7328         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7329
7330 2011-05-23  Bruno Haible  <bruno@clisp.org>
7331
7332         mkdir-p: Move AC_LIBOBJ invocations to module description.
7333         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7334         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7335
7336 2011-05-23  Bruno Haible  <bruno@clisp.org>
7337
7338         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7339         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7340         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7341
7342 2011-05-23  Bruno Haible  <bruno@clisp.org>
7343
7344         mgetgroups: Move AC_LIBOBJ invocations to module description.
7345         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7346         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7347
7348 2011-05-23  Bruno Haible  <bruno@clisp.org>
7349
7350         memxor: Move AC_LIBOBJ invocations to module description.
7351         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7352         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7353
7354 2011-05-23  Bruno Haible  <bruno@clisp.org>
7355
7356         memcoll: Move AC_LIBOBJ invocations to module description.
7357         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7358         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7359
7360 2011-05-23  Bruno Haible  <bruno@clisp.org>
7361
7362         memcasecmp: Move AC_LIBOBJ invocations to module description.
7363         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7364         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7365
7366 2011-05-23  Bruno Haible  <bruno@clisp.org>
7367
7368         crypto/md5: Move AC_LIBOBJ invocations to module description.
7369         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7370         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7371
7372 2011-05-23  Bruno Haible  <bruno@clisp.org>
7373
7374         crypto/md4: Move AC_LIBOBJ invocations to module description.
7375         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7376         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7377
7378 2011-05-23  Bruno Haible  <bruno@clisp.org>
7379
7380         crypto/md2: Move AC_LIBOBJ invocations to module description.
7381         * m4/md2.m4: Remove file.
7382         * modules/crypto/md2 (Files): Remove it.
7383         (configure.ac): Remove gl_MD2 call.
7384         (Makefile.am): Augment lib_SOURCES.
7385
7386 2011-05-23  Bruno Haible  <bruno@clisp.org>
7387
7388         long-options: Move AC_LIBOBJ invocations to module description.
7389         * m4/long-options.m4: Remove file.
7390         * modules/long-options (Files): Remove it.
7391         (configure.ac): Remove gl_LONG_OPTIONS call.
7392         (Makefile.am): Augment lib_SOURCES.
7393
7394 2011-05-23  Bruno Haible  <bruno@clisp.org>
7395
7396         i-ring: Move AC_LIBOBJ invocations to module description.
7397         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7398         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7399
7400 2011-05-23  Bruno Haible  <bruno@clisp.org>
7401
7402         idcache: Move AC_LIBOBJ invocations to module description.
7403         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7404         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7405
7406 2011-05-23  Bruno Haible  <bruno@clisp.org>
7407
7408         human: Move AC_LIBOBJ invocations to module description.
7409         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7410         * modules/human (Makefile.am): Augment lib_SOURCES.
7411
7412 2011-05-23  Bruno Haible  <bruno@clisp.org>
7413
7414         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7415         * m4/hmac-sha1.m4: Remove file.
7416         * modules/crypto/hmac-sha1 (Files): Remove it.
7417         (configure.ac): Remove gl_HMAC_SHA1 call.
7418         (Makefile.am): Augment lib_SOURCES.
7419
7420 2011-05-23  Bruno Haible  <bruno@clisp.org>
7421
7422         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7423         * m4/hmac-md5.m4: Remove file.
7424         * modules/crypto/hmac-md5 (Files): Remove it.
7425         (configure.ac): Remove gl_HMAC_MD5 call.
7426         (Makefile.am): Augment lib_SOURCES.
7427
7428 2011-05-23  Bruno Haible  <bruno@clisp.org>
7429
7430         hash: Move AC_LIBOBJ invocations to module description.
7431         * m4/hash.m4: Remove file.
7432         * modules/hash (Files): Remove it.
7433         (configure.ac): Remove gl_HASH call.
7434         (Makefile.am): Augment lib_SOURCES.
7435
7436 2011-05-23  Bruno Haible  <bruno@clisp.org>
7437
7438         hard-locale: Move AC_LIBOBJ invocations to module description.
7439         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7440         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7441
7442 2011-05-23  Bruno Haible  <bruno@clisp.org>
7443
7444         getugroups: Move AC_LIBOBJ invocations to module description.
7445         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7446         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7447
7448 2011-05-23  Bruno Haible  <bruno@clisp.org>
7449
7450         gettime: Move AC_LIBOBJ invocations to module description.
7451         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7452         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7453
7454 2011-05-23  Bruno Haible  <bruno@clisp.org>
7455
7456         getndelim2: Move AC_LIBOBJ invocations to module description.
7457         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7458         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7459
7460 2011-05-23  Bruno Haible  <bruno@clisp.org>
7461
7462         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7463         * m4/gc-pbkdf2-sha1.m4: Remove file.
7464         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7465         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7466         (Makefile.am): Augment lib_SOURCES.
7467
7468 2011-05-23  Bruno Haible  <bruno@clisp.org>
7469
7470         fts: Move AC_LIBOBJ invocations to module description.
7471         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7472         * modules/fts (configure.ac): ... to here.
7473
7474 2011-05-23  Bruno Haible  <bruno@clisp.org>
7475
7476         file-type: Move AC_LIBOBJ invocations to module description.
7477         * m4/file-type.m4: Remove file.
7478         * modules/file-type (Files): Remove it.
7479         (configure.ac): Remove gl_FILE_TYPE call.
7480         (Makefile.am): Augment lib_SOURCES.
7481
7482 2011-05-23  Bruno Haible  <bruno@clisp.org>
7483
7484         filenamecat*: Respect rules for use of AC_LIBOBJ.
7485         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7486         Remove AC_LIBOBJ invocation.
7487         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7488         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7489
7490 2011-05-23  Bruno Haible  <bruno@clisp.org>
7491
7492         filemode: Move AC_LIBOBJ invocations to module description.
7493         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7494         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7495
7496 2011-05-23  Bruno Haible  <bruno@clisp.org>
7497
7498         openat-safer: Move AC_LIBOBJ invocations to module description.
7499         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7500         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7501
7502 2011-05-23  Bruno Haible  <bruno@clisp.org>
7503
7504         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7505         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7506         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7507
7508 2011-05-23  Bruno Haible  <bruno@clisp.org>
7509
7510         exclude: Move AC_LIBOBJ invocations to module description.
7511         * m4/exclude.m4: Remove file.
7512         * modules/exclude (Files): Remove it.
7513         (configure.ac): Remove gl_EXCLUDE call.
7514         (Makefile.am): Augment lib_SOURCES.
7515
7516 2011-05-23  Bruno Haible  <bruno@clisp.org>
7517
7518         dirname*: Respect rules for use of AC_LIBOBJ.
7519         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7520         invocations.
7521         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7522         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7523
7524 2011-05-23  Bruno Haible  <bruno@clisp.org>
7525
7526         dirent-safer: Move AC_LIBOBJ invocations to module description.
7527         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7528         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7529
7530 2011-05-23  Bruno Haible  <bruno@clisp.org>
7531
7532         crypto/des: Move AC_LIBOBJ invocations to module description.
7533         * m4/des.m4: Remove file.
7534         * modules/crypto/des (Files): Remove it.
7535         (configure.ac): Remove gl_DES call.
7536         (Makefile.am): Augment lib_SOURCES.
7537
7538 2011-05-23  Bruno Haible  <bruno@clisp.org>
7539
7540         cycle-check: Move AC_LIBOBJ invocations to module description.
7541         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7542         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7543
7544 2011-05-23  Bruno Haible  <bruno@clisp.org>
7545
7546         c-strtold: Move AC_LIBOBJ invocations to module description.
7547         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7548         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7549
7550 2011-05-23  Bruno Haible  <bruno@clisp.org>
7551
7552         c-strtod: Move AC_LIBOBJ invocations to module description.
7553         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7554         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7555
7556 2011-05-23  Bruno Haible  <bruno@clisp.org>
7557
7558         crc: Move AC_LIBOBJ invocations to module description.
7559         * m4/crc.m4: Remove file.
7560         * modules/crc (Files): Remove it.
7561         (configure.ac): Remove gl_CRC call.
7562         (Makefile.am): Augment lib_SOURCES.
7563
7564 2011-05-23  Bruno Haible  <bruno@clisp.org>
7565
7566         close-stream: Move AC_LIBOBJ invocations to module description.
7567         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7568         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7569
7570 2011-05-23  Bruno Haible  <bruno@clisp.org>
7571
7572         closeout: Move AC_LIBOBJ invocations to module description.
7573         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7574         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7575
7576 2011-05-23  Bruno Haible  <bruno@clisp.org>
7577
7578         closein: Move AC_LIBOBJ invocations to module description.
7579         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7580         * modules/closein (Makefile.am): Augment lib_SOURCES.
7581
7582 2011-05-23  Bruno Haible  <bruno@clisp.org>
7583
7584         cloexec: Move AC_LIBOBJ invocations to module description.
7585         * m4/cloexec.m4: Remove file.
7586         * modules/cloexec (Files): Remove it.
7587         (configure.ac): Remove gl_CLOEXEC call.
7588         (Makefile.am): Augment lib_SOURCES.
7589
7590 2011-05-23  Bruno Haible  <bruno@clisp.org>
7591
7592         check-version: Move AC_LIBOBJ invocations to module description.
7593         * m4/check-version.m4: Remove file.
7594         * modules/check-version (Files): Remove it.
7595         (configure.ac): Remove gl_CHECK_VERSION call.
7596         (Makefile.am): Augment lib_SOURCES.
7597
7598 2011-05-23  Bruno Haible  <bruno@clisp.org>
7599
7600         chdir-safer: Move AC_LIBOBJ invocations to module description.
7601         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7602         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7603
7604 2011-05-23  Bruno Haible  <bruno@clisp.org>
7605
7606         canonicalize: Move AC_LIBOBJ invocations to module description.
7607         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7608         AC_LIBOBJ invocation.
7609         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7610
7611 2011-05-23  Bruno Haible  <bruno@clisp.org>
7612
7613         canon-host: Move AC_LIBOBJ invocations to module description.
7614         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7615         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7616         instead of gl_CANON_HOST.
7617         (Makefile.am): Augment lib_SOURCES.
7618
7619 2011-05-23  Bruno Haible  <bruno@clisp.org>
7620
7621         backupfile: Move AC_LIBOBJ invocations to module description.
7622         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7623         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7624
7625 2011-05-23  Bruno Haible  <bruno@clisp.org>
7626
7627         argmatch: Move AC_LIBOBJ invocations to module description.
7628         * m4/argmatch.m4: Remove file.
7629         * modules/argmatch (Files): Remove it.
7630         (configure.ac): Remove gl_ARGMATCH call.
7631         (Makefile.am): Augment lib_SOURCES.
7632
7633 2011-05-23  Bruno Haible  <bruno@clisp.org>
7634
7635         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7636         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7637         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7638
7639 2011-05-23  Bruno Haible  <bruno@clisp.org>
7640
7641         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7642         * m4/arcfour.m4: Remove file.
7643         * modules/crypto/arcfour (Files): Remove it.
7644         (configure.ac): Remove gl_ARCFOUR call.
7645         (Makefile.am): Augment lib_SOURCES.
7646
7647 2011-05-22  Bruno Haible  <bruno@clisp.org>
7648
7649         write: Move AC_LIBOBJ invocations to module description.
7650         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7651         * modules/write (configure.ac): ... to here.
7652
7653 2011-05-22  Bruno Haible  <bruno@clisp.org>
7654
7655         wmemset: Move AC_LIBOBJ invocations to module description.
7656         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7657         here...
7658         * modules/wmemset (configure.ac): ... to here.
7659
7660 2011-05-22  Bruno Haible  <bruno@clisp.org>
7661
7662         wmemmove: Move AC_LIBOBJ invocations to module description.
7663         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7664         here...
7665         * modules/wmemmove (configure.ac): ... to here.
7666
7667 2011-05-22  Bruno Haible  <bruno@clisp.org>
7668
7669         wmemcpy: Move AC_LIBOBJ invocations to module description.
7670         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7671         here...
7672         * modules/wmemcpy (configure.ac): ... to here.
7673
7674 2011-05-22  Bruno Haible  <bruno@clisp.org>
7675
7676         wmemcmp: Move AC_LIBOBJ invocations to module description.
7677         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7678         here...
7679         * modules/wmemcmp (configure.ac): ... to here.
7680
7681 2011-05-22  Bruno Haible  <bruno@clisp.org>
7682
7683         wmemchr: Move AC_LIBOBJ invocations to module description.
7684         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7685         here...
7686         * modules/wmemchr (configure.ac): ... to here.
7687
7688 2011-05-22  Bruno Haible  <bruno@clisp.org>
7689
7690         wcswidth: Move AC_LIBOBJ invocations to module description.
7691         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7692         here...
7693         * modules/wcswidth (configure.ac): ... to here.
7694
7695 2011-05-22  Bruno Haible  <bruno@clisp.org>
7696
7697         wcwidth: Respect rules for use of AC_LIBOBJ.
7698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7699         invocation from here...
7700         * modules/wcwidth (configure.ac): ... to here.
7701         (Depends-on): Update conditions.
7702
7703 2011-05-22  Bruno Haible  <bruno@clisp.org>
7704
7705         wctype: Move AC_LIBOBJ invocations to module description.
7706         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7707         invocation from here...
7708         * modules/wctype (configure.ac): ... to here.
7709         (Depends-on): Update conditions.
7710
7711 2011-05-22  Bruno Haible  <bruno@clisp.org>
7712
7713         wctrans: Move AC_LIBOBJ invocations to module description.
7714         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7715         invocation from here...
7716         * modules/wctrans (configure.ac): ... to here.
7717
7718 2011-05-22  Bruno Haible  <bruno@clisp.org>
7719
7720         wctomb: Move AC_LIBOBJ invocations to module description.
7721         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7722         invocations from here...
7723         * modules/wctomb (configure.ac): ... to here.
7724
7725 2011-05-22  Bruno Haible  <bruno@clisp.org>
7726
7727         wctob: Move AC_LIBOBJ invocations to module description.
7728         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7729         gl_PREREQ_WCTOB invocations from here...
7730         * modules/wctob (configure.ac): ... to here.
7731         (Depends-on): Update conditions.
7732
7733 2011-05-22  Bruno Haible  <bruno@clisp.org>
7734
7735         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7736         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7737         here...
7738         * modules/wcsxfrm (configure.ac): ... to here.
7739
7740 2011-05-22  Bruno Haible  <bruno@clisp.org>
7741
7742         wcstok: Move AC_LIBOBJ invocations to module description.
7743         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7744         * modules/wcstok (configure.ac): ... to here.
7745
7746 2011-05-22  Bruno Haible  <bruno@clisp.org>
7747
7748         wcsstr: Move AC_LIBOBJ invocations to module description.
7749         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7750         * modules/wcsstr (configure.ac): ... to here.
7751
7752 2011-05-22  Bruno Haible  <bruno@clisp.org>
7753
7754         wcsspn: Move AC_LIBOBJ invocations to module description.
7755         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7756         * modules/wcsspn (configure.ac): ... to here.
7757
7758 2011-05-22  Bruno Haible  <bruno@clisp.org>
7759
7760         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7761         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7762         gl_PREREQ_WCSRTOMBS invocations from here...
7763         * modules/wcsrtombs (configure.ac): ... to here.
7764
7765 2011-05-22  Bruno Haible  <bruno@clisp.org>
7766
7767         wcsrchr: Move AC_LIBOBJ invocations to module description.
7768         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7769         here...
7770         * modules/wcsrchr (configure.ac): ... to here.
7771
7772 2011-05-22  Bruno Haible  <bruno@clisp.org>
7773
7774         wcspbrk: Move AC_LIBOBJ invocations to module description.
7775         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7776         here...
7777         * modules/wcspbrk (configure.ac): ... to here.
7778
7779 2011-05-22  Bruno Haible  <bruno@clisp.org>
7780
7781         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7782         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7783         gl_PREREQ_WCSNRTOMBS invocations from here...
7784         * modules/wcsnrtombs (configure.ac): ... to here.
7785
7786 2011-05-22  Bruno Haible  <bruno@clisp.org>
7787
7788         wcsnlen: Move AC_LIBOBJ invocations to module description.
7789         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7790         here...
7791         * modules/wcsnlen (configure.ac): ... to here.
7792
7793 2011-05-22  Bruno Haible  <bruno@clisp.org>
7794
7795         wcsncpy: Move AC_LIBOBJ invocations to module description.
7796         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7797         here...
7798         * modules/wcsncpy (configure.ac): ... to here.
7799
7800 2011-05-22  Bruno Haible  <bruno@clisp.org>
7801
7802         wcsncmp: Move AC_LIBOBJ invocations to module description.
7803         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7804         here...
7805         * modules/wcsncmp (configure.ac): ... to here.
7806
7807 2011-05-22  Bruno Haible  <bruno@clisp.org>
7808
7809         wcsncat: Move AC_LIBOBJ invocations to module description.
7810         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7811         here...
7812         * modules/wcsncat (configure.ac): ... to here.
7813
7814 2011-05-22  Bruno Haible  <bruno@clisp.org>
7815
7816         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7817         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7818         from here...
7819         * modules/wcsncasecmp (configure.ac): ... to here.
7820
7821 2011-05-22  Bruno Haible  <bruno@clisp.org>
7822
7823         wcslen: Move AC_LIBOBJ invocations to module description.
7824         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7825         * modules/wcslen (configure.ac): ... to here.
7826
7827 2011-05-22  Bruno Haible  <bruno@clisp.org>
7828
7829         wcsdup: Move AC_LIBOBJ invocations to module description.
7830         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7831         * modules/wcsdup (configure.ac): ... to here.
7832
7833 2011-05-22  Bruno Haible  <bruno@clisp.org>
7834
7835         wcscspn: Move AC_LIBOBJ invocations to module description.
7836         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7837         here...
7838         * modules/wcscspn (configure.ac): ... to here.
7839
7840 2011-05-22  Bruno Haible  <bruno@clisp.org>
7841
7842         wcscpy: Move AC_LIBOBJ invocations to module description.
7843         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7844         * modules/wcscpy (configure.ac): ... to here.
7845
7846 2011-05-22  Bruno Haible  <bruno@clisp.org>
7847
7848         wcscoll: Move AC_LIBOBJ invocations to module description.
7849         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7850         here...
7851         * modules/wcscoll (configure.ac): ... to here.
7852
7853 2011-05-22  Bruno Haible  <bruno@clisp.org>
7854
7855         wcscmp: Move AC_LIBOBJ invocations to module description.
7856         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7857         * modules/wcscmp (configure.ac): ... to here.
7858
7859 2011-05-22  Bruno Haible  <bruno@clisp.org>
7860
7861         wcschr: Move AC_LIBOBJ invocations to module description.
7862         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7863         * modules/wcschr (configure.ac): ... to here.
7864
7865 2011-05-22  Bruno Haible  <bruno@clisp.org>
7866
7867         wcscat: Move AC_LIBOBJ invocations to module description.
7868         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7869         * modules/wcscat (configure.ac): ... to here.
7870
7871 2011-05-22  Bruno Haible  <bruno@clisp.org>
7872
7873         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7874         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7875         here...
7876         * modules/wcscasecmp (configure.ac): ... to here.
7877
7878 2011-05-22  Bruno Haible  <bruno@clisp.org>
7879
7880         wcrtomb: Move AC_LIBOBJ invocations to module description.
7881         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7882         invocations from here...
7883         * modules/wcrtomb (configure.ac): ... to here.
7884
7885 2011-05-22  Bruno Haible  <bruno@clisp.org>
7886
7887         wcpncpy: Move AC_LIBOBJ invocations to module description.
7888         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7889         here...
7890         * modules/wcpncpy (configure.ac): ... to here.
7891
7892 2011-05-22  Bruno Haible  <bruno@clisp.org>
7893
7894         wcpcpy: Move AC_LIBOBJ invocations to module description.
7895         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7896         * modules/wcpcpy (configure.ac): ... to here.
7897
7898 2011-05-22  Bruno Haible  <bruno@clisp.org>
7899
7900         waitpid: Move AC_LIBOBJ invocations to module description.
7901         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7902         invocation from here...
7903         * modules/waitpid (configure.ac): ... to here.
7904
7905 2011-05-22  Bruno Haible  <bruno@clisp.org>
7906
7907         utimensat: Move AC_LIBOBJ invocations to module description.
7908         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7909         here...
7910         * modules/utimensat (configure.ac): ... to here.
7911
7912 2011-05-22  Bruno Haible  <bruno@clisp.org>
7913
7914         usleep: Move AC_LIBOBJ invocations to module description.
7915         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7916         here...
7917         * modules/usleep (configure.ac): ... to here.
7918
7919 2011-05-22  Bruno Haible  <bruno@clisp.org>
7920
7921         unlockpt: Move AC_LIBOBJ invocations to module description.
7922         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7923         gl_PREREQ_UNLOCKPT invocations from here...
7924         * modules/unlockpt (configure.ac): ... to here.
7925
7926 2011-05-22  Bruno Haible  <bruno@clisp.org>
7927
7928         unlink: Respect rules for use of AC_LIBOBJ.
7929         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7930         * modules/unlink (configure.ac): ... to here.
7931
7932 2011-05-22  Bruno Haible  <bruno@clisp.org>
7933
7934         uname: Move AC_LIBOBJ invocations to module description.
7935         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7936         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7937         here...
7938         * modules/uname (configure.ac): ... to here.
7939
7940 2011-05-22  Bruno Haible  <bruno@clisp.org>
7941
7942         ttyname_r: Move AC_LIBOBJ invocations to module description.
7943         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7944         gl_PREREQ_TTYNAME_R invocations from here...
7945         * modules/ttyname_r (configure.ac): ... to here.
7946
7947 2011-05-22  Bruno Haible  <bruno@clisp.org>
7948
7949         tsearch: Move AC_LIBOBJ invocations to module description.
7950         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7951         invocations from here...
7952         * modules/tsearch (configure.ac): ... to here.
7953
7954 2011-05-22  Bruno Haible  <bruno@clisp.org>
7955
7956         towctrans: Move AC_LIBOBJ invocations to module description.
7957         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7958         AC_LIBOBJ invocation from here...
7959         * modules/towctrans (configure.ac): ... to here.
7960
7961 2011-05-22  Bruno Haible  <bruno@clisp.org>
7962
7963         tmpfile: Move AC_LIBOBJ invocations to module description.
7964         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7965         invocations from here...
7966         * modules/tmpfile (configure.ac): ... to here.
7967
7968 2011-05-22  Bruno Haible  <bruno@clisp.org>
7969
7970         times: Move AC_LIBOBJ invocations to module description.
7971         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7972         * modules/times (configure.ac): ... to here.
7973
7974 2011-05-22  Bruno Haible  <bruno@clisp.org>
7975
7976         time_r: Move AC_LIBOBJ invocations to module description.
7977         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7978         invocations from here...
7979         * modules/time_r (configure.ac): ... to here.
7980
7981 2011-05-22  Bruno Haible  <bruno@clisp.org>
7982
7983         timegm: Move AC_LIBOBJ invocations to module description.
7984         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7985         invocations from here...
7986         * modules/timegm (configure.ac): ... to here.
7987
7988 2011-05-22  Bruno Haible  <bruno@clisp.org>
7989
7990         tcgetsid: Move AC_LIBOBJ invocations to module description.
7991         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7992         and gl_PREREQ_TCGETSID invocations from here...
7993         * modules/tcgetsid (configure.ac): ... to here.
7994         (Depends-on): Update conditions.
7995
7996 2011-05-22  Bruno Haible  <bruno@clisp.org>
7997
7998         symlinkat: Move AC_LIBOBJ invocations to module description.
7999         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8000         here...
8001         * modules/symlinkat (configure.ac): ... to here.
8002
8003 2011-05-22  Bruno Haible  <bruno@clisp.org>
8004
8005         symlink: Move AC_LIBOBJ invocations to module description.
8006         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8007         here...
8008         * modules/symlink (configure.ac): ... to here.
8009
8010 2011-05-22  Bruno Haible  <bruno@clisp.org>
8011
8012         strverscmp: Move AC_LIBOBJ invocations to module description.
8013         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8014         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8015         from here...
8016         * modules/strverscmp (configure.ac): ... to here.
8017
8018 2011-05-22  Bruno Haible  <bruno@clisp.org>
8019
8020         strtok_r: Move AC_LIBOBJ invocations to module description.
8021         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8022         and gl_PREREQ_STRTOK_R invocations from here...
8023         * modules/strtok_r (configure.ac): ... to here.
8024         (Depends-on): Update conditions.
8025
8026 2011-05-22  Bruno Haible  <bruno@clisp.org>
8027
8028         strtoumax: Move AC_LIBOBJ invocations to module description.
8029         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8030         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8031         from here...
8032         * modules/strtoumax (configure.ac): ... to here.
8033
8034 2011-05-22  Bruno Haible  <bruno@clisp.org>
8035
8036         strtoimax: Move AC_LIBOBJ invocations to module description.
8037         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8038         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8039         from here...
8040         * modules/strtoimax (configure.ac): ... to here.
8041
8042 2011-05-22  Bruno Haible  <bruno@clisp.org>
8043
8044         strtoull: Move AC_LIBOBJ invocations to module description.
8045         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8046         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8047         from here...
8048         * modules/strtoull (configure.ac): ... to here.
8049
8050 2011-05-22  Bruno Haible  <bruno@clisp.org>
8051
8052         strtoll: Move AC_LIBOBJ invocations to module description.
8053         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8054         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8055         here...
8056         * modules/strtoll (configure.ac): ... to here.
8057
8058 2011-05-22  Bruno Haible  <bruno@clisp.org>
8059
8060         strtoul: Move AC_LIBOBJ invocations to module description.
8061         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8062         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8063         * modules/strtoul (configure.ac): ... to here.
8064
8065 2011-05-22  Bruno Haible  <bruno@clisp.org>
8066
8067         strtol: Move AC_LIBOBJ invocations to module description.
8068         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8069         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8070         * modules/strtol (configure.ac): ... to here.
8071
8072 2011-05-22  Bruno Haible  <bruno@clisp.org>
8073
8074         strtod: Move AC_LIBOBJ invocations to module description.
8075         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8076         invocations from here...
8077         * modules/strtod (configure.ac): ... to here.
8078
8079 2011-05-22  Bruno Haible  <bruno@clisp.org>
8080
8081         strstr*: Move AC_LIBOBJ invocations to module description.
8082         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8083         invocations from here...
8084         * modules/strstr-simple (configure.ac): ... to here.
8085         * modules/strstr (configure.ac): ... and here.
8086
8087 2011-05-22  Bruno Haible  <bruno@clisp.org>
8088
8089         strsignal: Move AC_LIBOBJ invocations to module description.
8090         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8091         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8092         * modules/strsignal (configure.ac): ... to here.
8093         (Depends-on): Update conditions.
8094
8095 2011-05-22  Bruno Haible  <bruno@clisp.org>
8096
8097         strsep: Move AC_LIBOBJ invocations to module description.
8098         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8099         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8100         here...
8101         * modules/strsep (configure.ac): ... to here.
8102
8103 2011-05-22  Bruno Haible  <bruno@clisp.org>
8104
8105         strptime: Move AC_LIBOBJ invocations to module description.
8106         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8107         gl_PREREQ_STRPTIME invocations from here...
8108         * modules/strptime (configure.ac): ... to here.
8109
8110 2011-05-22  Bruno Haible  <bruno@clisp.org>
8111
8112         strpbrk: Move AC_LIBOBJ invocations to module description.
8113         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8114         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8115         here...
8116         * modules/strpbrk (configure.ac): ... to here.
8117
8118 2011-05-22  Bruno Haible  <bruno@clisp.org>
8119
8120         strnlen: Move AC_LIBOBJ invocations to module description.
8121         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8122         invocations from here...
8123         * modules/strnlen (configure.ac): ... to here.
8124
8125 2011-05-22  Bruno Haible  <bruno@clisp.org>
8126
8127         strndup: Move AC_LIBOBJ invocations to module description.
8128         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8129         invocations from here...
8130         * modules/strndup (configure.ac): ... to here.
8131         (Depends-on): Update conditions.
8132
8133 2011-05-22  Bruno Haible  <bruno@clisp.org>
8134
8135         strncat: Move AC_LIBOBJ invocations to module description.
8136         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8137         invocations from here...
8138         * modules/strncat (configure.ac): ... to here.
8139
8140 2011-05-22  Bruno Haible  <bruno@clisp.org>
8141
8142         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8143         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8144         invocations from here...
8145         * modules/strdup (configure.ac): ... to here.
8146         * modules/strdup-posix (configure.ac): ... and here.
8147
8148 2011-05-22  Bruno Haible  <bruno@clisp.org>
8149
8150         strcspn: Move AC_LIBOBJ invocations to module description.
8151         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8152         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8153         here...
8154         * modules/strcspn (configure.ac): ... to here.
8155
8156 2011-05-22  Bruno Haible  <bruno@clisp.org>
8157
8158         strchrnul: Move AC_LIBOBJ invocations to module description.
8159         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8160         gl_PREREQ_STRCHRNUL invocations from here...
8161         * modules/strchrnul (configure.ac): ... to here.
8162
8163 2011-05-22  Bruno Haible  <bruno@clisp.org>
8164
8165         strcasestr*: Move AC_LIBOBJ invocations to module description.
8166         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8167         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8168         * modules/strcasestr-simple (configure.ac): ... to here.
8169         * modules/strcasestr (configure.ac): ... and here.
8170
8171 2011-05-22  Bruno Haible  <bruno@clisp.org>
8172
8173         strcase: Move AC_LIBOBJ invocations to module description.
8174         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8175         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8176         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8177         gl_PREREQ_STRNCASECMP invocations from here...
8178         * modules/strcase (configure.ac): ... to here.
8179
8180 2011-05-22  Bruno Haible  <bruno@clisp.org>
8181
8182         stpncpy: Move AC_LIBOBJ invocations to module description.
8183         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8184         here...
8185         * modules/stpncpy (configure.ac): ... to here.
8186
8187 2011-05-22  Bruno Haible  <bruno@clisp.org>
8188
8189         stpcpy: Move AC_LIBOBJ invocations to module description.
8190         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8191         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8192         here...
8193         * modules/stpcpy (configure.ac): ... to here.
8194
8195 2011-05-21  Bruno Haible  <bruno@clisp.org>
8196
8197         stat: Move AC_LIBOBJ invocations to module description.
8198         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8199         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8200         here...
8201         * modules/stat (configure.ac): ... to here.
8202
8203 2011-05-21  Bruno Haible  <bruno@clisp.org>
8204
8205         sleep: Move AC_LIBOBJ invocations to module description.
8206         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8207         * modules/sleep (configure.ac): ... to here.
8208
8209 2011-05-21  Bruno Haible  <bruno@clisp.org>
8210
8211         signbit: Move AC_LIBOBJ invocations to module description.
8212         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8213         * modules/signbit (configure.ac): ... to here.
8214
8215 2011-05-21  Bruno Haible  <bruno@clisp.org>
8216
8217         sigprocmask: Move AC_LIBOBJ invocations to module description.
8218         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8219         gl_PREREQ_SIGPROMASK invocations from here...
8220         * modules/sigprocmask (configure.ac): ... to here.
8221
8222 2011-05-21  Bruno Haible  <bruno@clisp.org>
8223
8224         sigaction: Move AC_LIBOBJ invocations to module description.
8225         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8226         gl_PREREQ_SIGACTION invocations from here...
8227         * modules/sigaction (configure.ac): ... to here.
8228
8229 2011-05-21  Bruno Haible  <bruno@clisp.org>
8230
8231         sig2str: Move AC_LIBOBJ invocations to module description.
8232         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8233         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8234         here...
8235         * modules/sig2str (configure.ac): ... to here.
8236
8237 2011-05-21  Bruno Haible  <bruno@clisp.org>
8238
8239         setlocale: Move AC_LIBOBJ invocations to module description.
8240         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8241         gl_PREREQ_SETLOCALE invocations from here...
8242         * modules/setlocale (configure.ac): ... to here.
8243
8244 2011-05-21  Bruno Haible  <bruno@clisp.org>
8245
8246         unsetenv: Move AC_LIBOBJ invocations to module description.
8247         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8248         and gl_PREREQ_UNSETENV invocations from here...
8249         * modules/unsetenv (configure.ac): ... to here.
8250         (Depends-on): Update.
8251
8252 2011-05-21  Bruno Haible  <bruno@clisp.org>
8253
8254         setenv: Move AC_LIBOBJ invocations to module description.
8255         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8256         here...
8257         * modules/setenv (configure.ac): ... to here.
8258
8259 2011-05-21  Bruno Haible  <bruno@clisp.org>
8260
8261         selinux-h: Move AC_LIBOBJ invocations to module description.
8262         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8263         AC_LIBOBJ invocation from here...
8264         * modules/selinux-h (configure.ac): ... to here.
8265
8266 2011-05-21  Bruno Haible  <bruno@clisp.org>
8267
8268         select: Respect rules for use of AC_LIBOBJ.
8269         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8270         here...
8271         * modules/select (configure.ac): ... to here.
8272
8273 2011-05-21  Bruno Haible  <bruno@clisp.org>
8274
8275         scandir: Move AC_LIBOBJ invocations to module description.
8276         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8277         invocations from here...
8278         * modules/scandir (configure.ac): ... to here.
8279
8280 2011-05-21  Bruno Haible  <bruno@clisp.org>
8281
8282         rpmatch: Move AC_LIBOBJ invocations to module description.
8283         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8284         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8285         here...
8286         * modules/rpmatch (configure.ac): ... to here.
8287
8288 2011-05-21  Bruno Haible  <bruno@clisp.org>
8289
8290         rmdir: Respect rules for use of AC_LIBOBJ.
8291         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8292         * modules/rmdir (configure.ac): ... to here.
8293
8294 2011-05-21  Bruno Haible  <bruno@clisp.org>
8295
8296         renameat: Move AC_LIBOBJ invocations to module description.
8297         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8298         here...
8299         * modules/renameat (configure.ac): ... to here.
8300
8301 2011-05-21  Bruno Haible  <bruno@clisp.org>
8302
8303         rename: Respect rules for use of AC_LIBOBJ.
8304         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8305         here...
8306         * modules/rename (configure.ac): ... to here.
8307
8308 2011-05-21  Bruno Haible  <bruno@clisp.org>
8309
8310         remove: Move AC_LIBOBJ invocations to module description.
8311         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8312         here...
8313         * modules/remove (configure.ac): ... to here.
8314
8315 2011-05-21  Bruno Haible  <bruno@clisp.org>
8316
8317         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8318         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8319         macro.
8320         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8321         * modules/relocatable-lib (configure.ac): ... to here.
8322         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8323         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8324
8325 2011-05-21  Bruno Haible  <bruno@clisp.org>
8326
8327         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8328         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8329         here...
8330         * modules/relocatable-prog (configure.ac): ... to here.
8331
8332 2011-05-21  Bruno Haible  <bruno@clisp.org>
8333
8334         regex: Move AC_LIBOBJ invocations to module description.
8335         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8336         invocations from here...
8337         * modules/regex (configure.ac): ... to here.
8338
8339 2011-05-21  Bruno Haible  <bruno@clisp.org>
8340
8341         realloc-*: Move AC_LIBOBJ invocations to module description.
8342         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8343         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8344         AC_LIBOBJ invocations from here...
8345         * modules/realloc-gnu (configure.ac): ... to here.
8346         * modules/realloc-posix (configure.ac): ... and here.
8347
8348 2011-05-21  Bruno Haible  <bruno@clisp.org>
8349
8350         readutmp: Move AC_LIBOBJ invocations to module description.
8351         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8352         * modules/readutmp (configure.ac): ... to here.
8353
8354 2011-05-21  Bruno Haible  <bruno@clisp.org>
8355
8356         readlinkat: Move AC_LIBOBJ invocations to module description.
8357         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8358         here...
8359         * modules/readlinkat (configure.ac): ... to here.
8360
8361 2011-05-21  Bruno Haible  <bruno@clisp.org>
8362
8363         readlink: Move AC_LIBOBJ invocations to module description.
8364         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8365         gl_PREREQ_READLINK invocations from here...
8366         * modules/readlink (configure.ac): ... to here.
8367
8368 2011-05-21  Bruno Haible  <bruno@clisp.org>
8369
8370         readline: Move AC_LIBOBJ invocations to module description.
8371         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8372         gl_PREREQ_READLINE invocations from here...
8373         * modules/readline (configure.ac): ... to here.
8374
8375 2011-05-21  Bruno Haible  <bruno@clisp.org>
8376
8377         read: Move AC_LIBOBJ invocations to module description.
8378         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8379         * modules/read (configure.ac): ... to here.
8380
8381 2011-05-21  Bruno Haible  <bruno@clisp.org>
8382
8383         rawmemchr: Move AC_LIBOBJ invocations to module description.
8384         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8385         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8386         from here...
8387         * modules/rawmemchr (configure.ac): ... to here.
8388
8389 2011-05-21  Bruno Haible  <bruno@clisp.org>
8390
8391         random_r: Move AC_LIBOBJ invocations to module description.
8392         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8393         gl_PREREQ_RANDOM_R invocations from here...
8394         * modules/random_r (configure.ac): ... to here.
8395
8396 2011-05-21  Bruno Haible  <bruno@clisp.org>
8397
8398         pwrite: Move AC_LIBOBJ invocations to module description.
8399         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8400         * modules/pwrite (configure.ac): ... to here.
8401
8402 2011-05-21  Bruno Haible  <bruno@clisp.org>
8403
8404         putenv: Move AC_LIBOBJ invocations to module description.
8405         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8406         * modules/putenv (configure.ac): ... to here.
8407
8408 2011-05-21  Bruno Haible  <bruno@clisp.org>
8409
8410         login_tty: Move AC_LIBOBJ invocations to module description.
8411         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8412         * modules/login_tty (configure.ac): ... to here.
8413
8414 2011-05-21  Bruno Haible  <bruno@clisp.org>
8415
8416         openpty: Move AC_LIBOBJ invocations to module description.
8417         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8418         * modules/openpty (configure.ac): ... to here.
8419
8420 2011-05-21  Bruno Haible  <bruno@clisp.org>
8421
8422         forkpty: Move AC_LIBOBJ invocations to module description.
8423         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8424         * modules/forkpty (configure.ac): ... to here.
8425
8426 2011-05-21  Bruno Haible  <bruno@clisp.org>
8427
8428         ptsname: Move AC_LIBOBJ invocations to module description.
8429         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8430         invocations from here...
8431         * modules/ptsname (configure.ac): ... to here.
8432
8433 2011-05-21  Bruno Haible  <bruno@clisp.org>
8434
8435         pread: Move AC_LIBOBJ invocations to module description.
8436         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8437         * modules/pread (configure.ac): ... to here.
8438
8439 2011-05-21  Bruno Haible  <bruno@clisp.org>
8440
8441         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8442         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8443         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8444         * modules/posix_spawn (configure.ac): ... to here.
8445         * modules/posix_spawnp (configure.ac): ... and here.
8446
8447 2011-05-21  Bruno Haible  <bruno@clisp.org>
8448
8449         popen: Move AC_LIBOBJ invocations to module description.
8450         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8451         invocations from here...
8452         * modules/popen (configure.ac): ... to here.
8453
8454 2011-05-21  Bruno Haible  <bruno@clisp.org>
8455
8456         poll: Move AC_LIBOBJ invocations to module description.
8457         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8458         invocations from here...
8459         * modules/poll (configure.ac): ... to here.
8460
8461 2011-05-21  Bruno Haible  <bruno@clisp.org>
8462
8463         pipe-posix: Move AC_LIBOBJ invocations to module description.
8464         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8465         * modules/pipe-posix (configure.ac): ... to here.
8466
8467 2011-05-21  Bruno Haible  <bruno@clisp.org>
8468
8469         openat: Respect rules for use of AC_LIBOBJ.
8470         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8471         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8472         * modules/openat (configure.ac): ... to here.
8473
8474 2011-05-21  Bruno Haible  <bruno@clisp.org>
8475
8476         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8477         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8478         invocation from here...
8479         * modules/obstack-printf (configure.ac): ... to here.
8480         * modules/obstack-printf-posix (configure.ac): ... and here.
8481
8482 2011-05-21  Bruno Haible  <bruno@clisp.org>
8483
8484         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8485         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8486         from here...
8487         * modules/nl_langinfo (configure.ac): ... to here.
8488
8489 2011-05-21  Bruno Haible  <bruno@clisp.org>
8490
8491         nanosleep: Move AC_LIBOBJ invocations to module description.
8492         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8493         gl_PREREQ_NANOSLEEP invocations from here...
8494         * modules/nanosleep (configure.ac): ... to here.
8495
8496 2011-05-21  Bruno Haible  <bruno@clisp.org>
8497
8498         mountlist: Move AC_LIBOBJ invocations to module description.
8499         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8500         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8501         * modules/mountlist (configure.ac): ... to here.
8502
8503 2011-05-21  Bruno Haible  <bruno@clisp.org>
8504
8505         mktime: Respect rules for use of AC_LIBOBJ.
8506         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8507         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8508         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8509         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8510         * modules/mktime (configure.ac): ... to here.
8511         * modules/mktime-internal (configure.ac): ... and here.
8512         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8513
8514 2011-05-21  Bruno Haible  <bruno@clisp.org>
8515
8516         mkstemps: Move AC_LIBOBJ invocations to module description.
8517         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8518         here...
8519         * modules/mkstemps (configure.ac): ... to here.
8520
8521 2011-05-21  Bruno Haible  <bruno@clisp.org>
8522
8523         mkstemp: Move AC_LIBOBJ invocations to module description.
8524         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8525         gl_PREREQ_MKSTEMP invocations from here...
8526         * modules/mkstemp (configure.ac): ... to here.
8527
8528 2011-05-21  Bruno Haible  <bruno@clisp.org>
8529
8530         mkostemps: Move AC_LIBOBJ invocations to module description.
8531         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8532         here...
8533         * modules/mkostemps (configure.ac): ... to here.
8534
8535 2011-05-21  Bruno Haible  <bruno@clisp.org>
8536
8537         mkostemp: Move AC_LIBOBJ invocations to module description.
8538         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8539         gl_PREREQ_MKOSTEMP invocations from here...
8540         * modules/mkostemp (configure.ac): ... to here.
8541
8542 2011-05-21  Bruno Haible  <bruno@clisp.org>
8543
8544         mknod: Move AC_LIBOBJ invocations to module description.
8545         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8546         * modules/mknod (configure.ac): ... to here.
8547
8548 2011-05-21  Bruno Haible  <bruno@clisp.org>
8549
8550         mkfifoat: Move AC_LIBOBJ invocations to module description.
8551         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8552         here...
8553         * modules/mkfifoat (configure.ac): ... to here.
8554
8555 2011-05-21  Bruno Haible  <bruno@clisp.org>
8556
8557         mkfifo: Respect rules for use of AC_LIBOBJ.
8558         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8559         here...
8560         * modules/mkfifo (configure.ac): ... to here.
8561
8562 2011-05-21  Bruno Haible  <bruno@clisp.org>
8563
8564         mkdtemp: Move AC_LIBOBJ invocations to module description.
8565         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8566         invocations from here...
8567         * modules/mkdtemp (configure.ac): ... to here.
8568
8569 2011-05-21  Bruno Haible  <bruno@clisp.org>
8570
8571         mkdir: Move AC_LIBOBJ invocations to module description.
8572         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8573         * modules/mkdir (configure.ac): ... to here.
8574
8575 2011-05-21  Bruno Haible  <bruno@clisp.org>
8576
8577         memset: Move AC_LIBOBJ invocations to module description.
8578         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8579         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8580         here...
8581         * modules/memset (configure.ac): ... to here.
8582
8583 2011-05-21  Bruno Haible  <bruno@clisp.org>
8584
8585         memrchr: Move AC_LIBOBJ invocations to module description.
8586         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8587         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8588         here...
8589         * modules/memrchr (configure.ac): ... to here.
8590
8591 2011-05-21  Bruno Haible  <bruno@clisp.org>
8592
8593         mempcpy: Move AC_LIBOBJ invocations to module description.
8594         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8595         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8596         here...
8597         * modules/mempcpy (configure.ac): ... to here.
8598
8599 2011-05-21  Bruno Haible  <bruno@clisp.org>
8600
8601         memmove: Move AC_LIBOBJ invocations to module description.
8602         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8603         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8604         here...
8605         * modules/memmove (configure.ac): ... to here.
8606
8607 2011-05-21  Bruno Haible  <bruno@clisp.org>
8608
8609         memmem*: Move AC_LIBOBJ invocations to module description.
8610         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8611         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8612         here...
8613         (gl_FUNC_MEMMEM): ... and here...
8614         * modules/memmem-simple (configure.ac): ... to here.
8615         * modules/memmem (configure.ac): ... and here.
8616
8617 2011-05-21  Bruno Haible  <bruno@clisp.org>
8618
8619         memcpy: Move AC_LIBOBJ invocations to module description.
8620         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8621         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8622         here...
8623         * modules/memcpy (configure.ac): ... to here.
8624
8625 2011-05-21  Bruno Haible  <bruno@clisp.org>
8626
8627         memcmp: Simplify autoconf macro.
8628         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8629         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8630         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8631
8632 2011-05-21  Bruno Haible  <bruno@clisp.org>
8633
8634         memcmp: Move AC_LIBOBJ invocations to module description.
8635         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8636         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8637         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8638         * modules/memcmp (configure.ac): ... to here.
8639         (Depends-on): Update conditions.
8640
8641 2011-05-21  Bruno Haible  <bruno@clisp.org>
8642
8643         memchr: Respect rules for use of AC_LIBOBJ.
8644         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8645         invocations from here...
8646         * modules/memchr (configure.ac): ... to here.
8647
8648 2011-05-21  Bruno Haible  <bruno@clisp.org>
8649
8650         mbtowc: Move AC_LIBOBJ invocations to module description.
8651         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8652         invocations from here...
8653         * modules/mbtowc (configure.ac): ... to here.
8654
8655 2011-05-21  Bruno Haible  <bruno@clisp.org>
8656
8657         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8658         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8659         gl_PREREQ_MBSRTOWCS invocations from here...
8660         * modules/mbsrtowcs (configure.ac): ... to here.
8661
8662 2011-05-21  Bruno Haible  <bruno@clisp.org>
8663
8664         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8665         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8666         gl_PREREQ_MBSNRTOWCS invocations from here...
8667         * modules/mbsnrtowcs (configure.ac): ... to here.
8668
8669 2011-05-21  Bruno Haible  <bruno@clisp.org>
8670
8671         mbsinit: Move AC_LIBOBJ invocations to module description.
8672         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8673         invocations from here...
8674         * modules/mbsinit (configure.ac): ... to here.
8675
8676 2011-05-21  Bruno Haible  <bruno@clisp.org>
8677
8678         mbrlen: Move AC_LIBOBJ invocations to module description.
8679         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8680         invocations from here...
8681         * modules/mbrlen (configure.ac): ... to here.
8682
8683 2011-05-21  Bruno Haible  <bruno@clisp.org>
8684
8685         mbrtowc: Respect rules for use of AC_LIBOBJ.
8686         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8687         invocations from here...
8688         * modules/mbrtowc (configure.ac): ... to here.
8689
8690 2011-05-21  Bruno Haible  <bruno@clisp.org>
8691
8692         malloc-*: Move AC_LIBOBJ invocations to module description.
8693         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8694         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8695         AC_LIBOBJ invocations from here...
8696         * modules/malloc-gnu (configure.ac): ... to here.
8697         * modules/malloc-posix (configure.ac): ... and here.
8698
8699 2011-05-21  Bruno Haible  <bruno@clisp.org>
8700
8701         lstat, openat: Respect rules for use of AC_LIBOBJ.
8702         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8703         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8704         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8705         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8706         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8707         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8708         here.
8709         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8710
8711 2011-05-21  Bruno Haible  <bruno@clisp.org>
8712
8713         lseek: Move AC_LIBOBJ invocations to module description.
8714         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8715         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8716         * modules/lseek (configure.ac): ... to here.
8717
8718 2011-05-21  Bruno Haible  <bruno@clisp.org>
8719
8720         linkat: Move AC_LIBOBJ invocations to module description.
8721         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8722         here...
8723         * modules/linkat (configure.ac): ... to here.
8724
8725 2011-05-21  Bruno Haible  <bruno@clisp.org>
8726
8727         link: Respect rules for use of AC_LIBOBJ.
8728         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8729         * modules/link (configure.ac): ... to here.
8730
8731 2011-05-21  Bruno Haible  <bruno@clisp.org>
8732
8733         lchown: Move AC_LIBOBJ invocations to module description.
8734         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8735         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8736         * modules/lchown (configure.ac): ... to here.
8737
8738 2011-05-21  Bruno Haible  <bruno@clisp.org>
8739
8740         iswctype: Move AC_LIBOBJ invocations to module description.
8741         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8742         here...
8743         * modules/iswctype (configure.ac): ... to here.
8744
8745 2011-05-21  Bruno Haible  <bruno@clisp.org>
8746
8747         iswblank: Move AC_LIBOBJ invocations to module description.
8748         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8749         here...
8750         * modules/iswblank (configure.ac): ... to here.
8751
8752 2011-05-21  Bruno Haible  <bruno@clisp.org>
8753
8754         atanl: Move AC_LIBOBJ invocations to module description.
8755         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8756         * modules/atanl (configure.ac): ... to here.
8757
8758 2011-05-21  Bruno Haible  <bruno@clisp.org>
8759
8760         acosl: Move AC_LIBOBJ invocations to module description.
8761         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8762         * modules/acosl (configure.ac): ... to here.
8763
8764 2011-05-21  Bruno Haible  <bruno@clisp.org>
8765
8766         asinl: Respect rules for use of AC_LIBOBJ.
8767         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8768         * modules/asinl (configure.ac): ... to here.
8769
8770 2011-05-21  Bruno Haible  <bruno@clisp.org>
8771
8772         tanl: Move AC_LIBOBJ invocations to module description.
8773         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8774         * modules/tanl (configure.ac): ... to here.
8775
8776 2011-05-21  Bruno Haible  <bruno@clisp.org>
8777
8778         cosl: Move AC_LIBOBJ invocations to module description.
8779         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8780         * modules/cosl (configure.ac): ... to here.
8781
8782 2011-05-21  Bruno Haible  <bruno@clisp.org>
8783
8784         sinl: Move AC_LIBOBJ invocations to module description.
8785         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8786         * modules/sinl (configure.ac): ... to here.
8787
8788 2011-05-21  Bruno Haible  <bruno@clisp.org>
8789
8790         logl: Move AC_LIBOBJ invocations to module description.
8791         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8792         * modules/logl (configure.ac): ... to here.
8793
8794 2011-05-21  Bruno Haible  <bruno@clisp.org>
8795
8796         expl: Move AC_LIBOBJ invocations to module description.
8797         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8798         * modules/expl (configure.ac): ... to here.
8799
8800 2011-05-21  Bruno Haible  <bruno@clisp.org>
8801
8802         roundl: Move AC_LIBOBJ invocations to module description.
8803         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8804         * modules/roundl (configure.ac): ... to here.
8805
8806 2011-05-21  Bruno Haible  <bruno@clisp.org>
8807
8808         round: Move AC_LIBOBJ invocations to module description.
8809         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8810         * modules/round (configure.ac): ... to here.
8811
8812 2011-05-21  Bruno Haible  <bruno@clisp.org>
8813
8814         roundf: Move AC_LIBOBJ invocations to module description.
8815         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8816         * modules/roundf (configure.ac): ... to here.
8817
8818 2011-05-21  Bruno Haible  <bruno@clisp.org>
8819
8820         truncl: Move AC_LIBOBJ invocations to module description.
8821         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8822         * modules/truncl (configure.ac): ... to here.
8823
8824 2011-05-21  Bruno Haible  <bruno@clisp.org>
8825
8826         trunc: Move AC_LIBOBJ invocations to module description.
8827         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8828         * modules/trunc (configure.ac): ... to here.
8829
8830 2011-05-21  Bruno Haible  <bruno@clisp.org>
8831
8832         truncf: Move AC_LIBOBJ invocations to module description.
8833         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8834         * modules/truncf (configure.ac): ... to here.
8835
8836 2011-05-21  Bruno Haible  <bruno@clisp.org>
8837
8838         ceill: Move AC_LIBOBJ invocations to module description.
8839         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8840         * modules/ceill (configure.ac): ... to here.
8841
8842 2011-05-21  Bruno Haible  <bruno@clisp.org>
8843
8844         ceil: Move AC_LIBOBJ invocations to module description.
8845         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8846         * modules/ceil (configure.ac): ... to here.
8847
8848 2011-05-21  Bruno Haible  <bruno@clisp.org>
8849
8850         ceilf: Move AC_LIBOBJ invocations to module description.
8851         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8852         * modules/ceilf (configure.ac): ... to here.
8853
8854 2011-05-21  Bruno Haible  <bruno@clisp.org>
8855
8856         floorl: Respect rules for use of AC_LIBOBJ.
8857         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8858         * modules/floorl (configure.ac): ... to here.
8859
8860 2011-05-21  Bruno Haible  <bruno@clisp.org>
8861
8862         floor: Respect rules for use of AC_LIBOBJ.
8863         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8864         * modules/floor (configure.ac): ... to here.
8865
8866 2011-05-21  Bruno Haible  <bruno@clisp.org>
8867
8868         floorf: Move AC_LIBOBJ invocations to module description.
8869         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8870         * modules/floorf (configure.ac): ... to here.
8871
8872 2011-05-20  Bruno Haible  <bruno@clisp.org>
8873
8874         sqrtl: Respect rules for use of AC_LIBOBJ.
8875         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8876         * modules/sqrtl (configure.ac): ... to here.
8877
8878 2011-05-20  Bruno Haible  <bruno@clisp.org>
8879
8880         ldexpl: Respect rules for use of AC_LIBOBJ.
8881         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8882         * modules/ldexpl (configure.ac): ... to here.
8883
8884 2011-05-20  Bruno Haible  <bruno@clisp.org>
8885
8886         frexpl*: Respect rules for use of AC_LIBOBJ.
8887         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8888         invocation from here...
8889         * modules/frexpl (configure.ac): ... to here.
8890         * modules/frexpl-nolibm (configure.ac): ... and here.
8891
8892 2011-05-20  Bruno Haible  <bruno@clisp.org>
8893
8894         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8895         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8896         invocation from here...
8897         * modules/frexp (configure.ac): ... to here.
8898         * modules/frexp-nolibm (configure.ac): ... and here.
8899
8900 2011-05-20  Bruno Haible  <bruno@clisp.org>
8901
8902         isnan: Respect rules for use of AC_LIBOBJ.
8903         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8904         invocations here.
8905         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8906         REPLACE_ISNAN.
8907         * modules/isnand (configure.ac): Likewise.
8908         * modules/isnanl (configure.ac): Likewise.
8909
8910 2011-05-20  Bruno Haible  <bruno@clisp.org>
8911
8912         isnanl*: Respect rules for use of AC_LIBOBJ.
8913         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8914         invocation from here...
8915         * modules/isnanl (configure.ac): ... to here.
8916         * modules/isnanl-nolibm (configure.ac): ... and here.
8917
8918 2011-05-20  Bruno Haible  <bruno@clisp.org>
8919
8920         isnand*: Move AC_LIBOBJ invocations to module description.
8921         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8922         invocation from here...
8923         * modules/isnand (configure.ac): ... to here.
8924         * modules/isnand-nolibm (configure.ac): ... and here.
8925
8926 2011-05-20  Bruno Haible  <bruno@clisp.org>
8927
8928         isnanf*: Move AC_LIBOBJ invocations to module description.
8929         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8930         invocation from here...
8931         * modules/isnanf (configure.ac): ... to here.
8932         * modules/isnanf-nolibm (configure.ac): ... and here.
8933
8934 2011-05-20  Bruno Haible  <bruno@clisp.org>
8935
8936         isnan*: Separate the AC_LIBOBJ invocations.
8937         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8938         AC_LIBOBJ invocation.
8939         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8940         here.
8941         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8942         AC_LIBOBJ invocation.
8943         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8944         here.
8945         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8946         AC_LIBOBJ invocation.
8947         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8948         here.
8949         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8950
8951 2011-05-08  Bruno Haible  <bruno@clisp.org>
8952
8953         isinf: Move AC_LIBOBJ invocations to module description.
8954         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8955         * modules/isinf (configure.ac): ... to here.
8956
8957 2011-05-08  Bruno Haible  <bruno@clisp.org>
8958
8959         isfinite: Move AC_LIBOBJ invocations to module description.
8960         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8961         * modules/isfinite (configure.ac): ... to here.
8962
8963 2011-05-08  Bruno Haible  <bruno@clisp.org>
8964
8965         isblank: Move AC_LIBOBJ invocations to module description.
8966         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8967         here...
8968         * modules/isblank (configure.ac): ... to here.
8969
8970 2011-05-08  Bruno Haible  <bruno@clisp.org>
8971
8972         isapipe: Move AC_LIBOBJ invocations to module description.
8973         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8974         gl_PREREQ_ISAPIPE invocations from here...
8975         * modules/isapipe (configure.ac): ... to here.
8976         (Depends-on): Update condition.
8977
8978 2011-05-08  Bruno Haible  <bruno@clisp.org>
8979
8980         ioctl: Move AC_LIBOBJ invocations to module description.
8981         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8982         invocations from here...
8983         * modules/ioctl (configure.ac): ... to here.
8984         (Depends-on): Update condition.
8985
8986 2011-05-08  Bruno Haible  <bruno@clisp.org>
8987
8988         imaxdiv: Move AC_LIBOBJ invocations to module description.
8989         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8990         invocations from here...
8991         * modules/imaxdiv (configure.ac): ... to here.
8992
8993 2011-05-08  Bruno Haible  <bruno@clisp.org>
8994
8995         imaxabs: Move AC_LIBOBJ invocations to module description.
8996         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8997         invocations from here...
8998         * modules/imaxabs (configure.ac): ... to here.
8999
9000 2011-05-08  Bruno Haible  <bruno@clisp.org>
9001
9002         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9003         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9004         AC_LIBOBJ invocations from here...
9005         * modules/getaddrinfo (configure.ac): ... to here.
9006         (Depends-on): Add conditions.
9007
9008 2011-05-08  Bruno Haible  <bruno@clisp.org>
9009
9010         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9011         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9012         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9013         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9014         (gl_PREREQ_INET_PTON): ... from here.
9015         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9016         gl_PREREQ_INET_PTON here.
9017         (Depends-on): Update condition.
9018
9019 2011-05-08  Bruno Haible  <bruno@clisp.org>
9020
9021         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9022         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9023         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9024         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9025         (gl_PREREQ_INET_NTOP): ... from here.
9026         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9027         gl_PREREQ_INET_NTOP here.
9028         (Depends-on): Update condition.
9029
9030 2011-05-08  Bruno Haible  <bruno@clisp.org>
9031
9032         iconv_open: Move AC_LIBOBJ invocations to module description.
9033         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9034         AC_LIBOBJ invocations from here...
9035         * modules/iconv_open (configure.ac): ... to here.
9036
9037 2011-05-08  Bruno Haible  <bruno@clisp.org>
9038
9039         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9040         If module 'iconv_open' is among the main modules and module
9041         'iconv_open-utf' is among the tests dependencies, then
9042         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9043         return the special iconv_t values. Therefore iconv() and iconv_close()
9044         must support these special iconv_t values, already in lib, not only in
9045         tests.
9046         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9047         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9048         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9049         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9050         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9051         (Depends-on): Add the dependencies of iconv_open-utf.
9052         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9053         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9054         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9055
9056 2011-05-08  Bruno Haible  <bruno@clisp.org>
9057
9058         group-member: Move AC_LIBOBJ invocations to module description.
9059         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9060         gl_PREREQ_GROUP_MEMBER invocations from here...
9061         * modules/group-member (configure.ac): ... to here.
9062
9063 2011-05-08  Bruno Haible  <bruno@clisp.org>
9064
9065         grantpt: Move AC_LIBOBJ invocations to module description.
9066         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9067         invocations from here...
9068         * modules/grantpt (configure.ac): ... to here.
9069
9070 2011-05-08  Bruno Haible  <bruno@clisp.org>
9071
9072         glob: Move AC_LIBOBJ invocations to module description.
9073         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9074         from here...
9075         * modules/glob (configure.ac): ... to here.
9076
9077 2011-05-08  Bruno Haible  <bruno@clisp.org>
9078
9079         getusershell: Move AC_LIBOBJ invocations to module description.
9080         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9081         Move AC_LIBOBJ invocation from here...
9082         * modules/getusershell (configure.ac): ... to here.
9083         (Depends-on): Update condition.
9084
9085 2011-05-08  Bruno Haible  <bruno@clisp.org>
9086
9087         gettimeofday: Move AC_LIBOBJ invocations to module description.
9088         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9089         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9090         gl_PREREQ_GETTIMEOFDAY invocations from here...
9091         * modules/gettimeofday (configure.ac): ... to here.
9092
9093 2011-05-08  Bruno Haible  <bruno@clisp.org>
9094
9095         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9096         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9097         just gl_FUNC_TZSET.
9098         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9099         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9100         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9101         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9102
9103 2011-05-08  Bruno Haible  <bruno@clisp.org>
9104
9105         getsubopt: Move AC_LIBOBJ invocations to module description.
9106         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9107         gl_PREREQ_GETSUBOPT invocations from here...
9108         * modules/getsubopt (configure.ac): ... to here.
9109
9110 2011-05-08  Bruno Haible  <bruno@clisp.org>
9111
9112         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9113         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9114         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9115         * modules/getpass-gnu (configure.ac): ... to here.
9116
9117 2011-05-08  Bruno Haible  <bruno@clisp.org>
9118
9119         getpass: Move AC_LIBOBJ invocations to module description.
9120         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9121         gl_PREREQ_GETPASS invocations from here...
9122         * modules/getpass (configure.ac): ... to here.
9123
9124 2011-05-08  Bruno Haible  <bruno@clisp.org>
9125
9126         getpagesize: Move AC_LIBOBJ invocations to module description.
9127         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9128         from here...
9129         * modules/getpagesize (configure.ac): ... to here.
9130
9131 2011-05-08  Bruno Haible  <bruno@clisp.org>
9132
9133         getopt: Move AC_LIBOBJ invocations to module description.
9134         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9135         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9136         invocations from here...
9137         * modules/getopt-gnu (configure.ac): ... to here.
9138         * modules/getopt-posix (configure.ac): ... and here.
9139         (Depends-on): Update condition.
9140
9141 2011-05-08  Bruno Haible  <bruno@clisp.org>
9142
9143         getopt, argp: Respect rules for use of AC_LIBOBJ.
9144         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9145         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9146         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9147         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9148
9149 2011-05-08  Bruno Haible  <bruno@clisp.org>
9150
9151         getlogin_r: Move AC_LIBOBJ invocations to module description.
9152         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9153         gl_PREREQ_GETLOGIN_R invocations from here...
9154         * modules/getlogin_r (configure.ac): ... to here.
9155
9156 2011-05-08  Bruno Haible  <bruno@clisp.org>
9157
9158         getlogin: Move AC_LIBOBJ invocations to module description.
9159         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9160         here...
9161         * modules/getlogin (configure.ac): ... to here.
9162
9163 2011-05-08  Bruno Haible  <bruno@clisp.org>
9164
9165         getloadavg: Move AC_LIBOBJ invocations to module description.
9166         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9167         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9168         * modules/getloadavg (configure.ac): ... to here.
9169
9170 2011-05-08  Bruno Haible  <bruno@clisp.org>
9171
9172         gethrxtime: Move AC_LIBOBJ invocations to module description.
9173         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9174         LIB_GETHRXTIME from here...
9175         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9176         invocations from here...
9177         * modules/gethrxtime (configure.ac): ... to here.
9178
9179 2011-05-08  Bruno Haible  <bruno@clisp.org>
9180
9181         gethostname: Move AC_LIBOBJ invocations to module description.
9182         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9183         gl_PREREQ_GETHOSTNAME invocations from here...
9184         * modules/gethostname (configure.ac): ... to here.
9185
9186 2011-05-08  Bruno Haible  <bruno@clisp.org>
9187
9188         getgroups: Move AC_LIBOBJ invocations to module description.
9189         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9190         here...
9191         * modules/getgroups (configure.ac): ... to here.
9192
9193 2011-05-08  Bruno Haible  <bruno@clisp.org>
9194
9195         getdtablesize: Move AC_LIBOBJ invocations to module description.
9196         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9197         invocation from here...
9198         * modules/getdtablesize (configure.ac): ... to here.
9199
9200 2011-05-08  Bruno Haible  <bruno@clisp.org>
9201
9202         getdomainname: Move AC_LIBOBJ invocations to module description.
9203         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9204         gl_PREREQ_GETDOMAINNAME invocations from here...
9205         * modules/getdomainname (configure.ac): ... to here.
9206
9207 2011-05-08  Bruno Haible  <bruno@clisp.org>
9208
9209         getline: Move AC_LIBOBJ invocations to module description.
9210         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9211         invocations from here...
9212         * modules/getline (configure.ac): ... to here.
9213
9214 2011-05-08  Bruno Haible  <bruno@clisp.org>
9215
9216         getline: Simplify.
9217         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9218         It's already handled through the module dependency.
9219
9220 2011-05-08  Bruno Haible  <bruno@clisp.org>
9221
9222         getdelim: Move AC_LIBOBJ invocations to module description.
9223         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9224         and gl_PREREQ_GETDELIM invocations from here...
9225         * modules/getdelim (configure.ac): ... to here.
9226         (Depends-on): Fix condition.
9227
9228 2011-05-08  Bruno Haible  <bruno@clisp.org>
9229
9230         getcwd: Move AC_LIBOBJ invocations to module description.
9231         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9232         invocations from here...
9233         * modules/getcwd (configure.ac): ... to here.
9234
9235 2011-05-08  Bruno Haible  <bruno@clisp.org>
9236
9237         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9238         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9239         here...
9240         * modules/getcwd-lgpl (configure.ac): ... to here.
9241
9242 2011-05-07  Bruno Haible  <bruno@clisp.org>
9243
9244         crypto/gc: Move AC_LIBOBJ invocations to module description.
9245         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9246         * modules/crypto/gc (configure.ac): ... to here.
9247
9248 2011-05-07  Bruno Haible  <bruno@clisp.org>
9249
9250         fwriting: Move AC_LIBOBJ invocations to module description.
9251         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9252         here...
9253         * modules/fwriting (configure.ac): ... to here.
9254
9255 2011-05-07  Bruno Haible  <bruno@clisp.org>
9256
9257         fwritable: Move AC_LIBOBJ invocations to module description.
9258         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9259         here...
9260         * modules/fwritable (configure.ac): ... to here.
9261
9262 2011-05-07  Bruno Haible  <bruno@clisp.org>
9263
9264         futimens: Move AC_LIBOBJ invocations to module description.
9265         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9266         here...
9267         * modules/futimens (configure.ac): ... to here.
9268
9269 2011-05-07  Bruno Haible  <bruno@clisp.org>
9270
9271         ftruncate: Move AC_LIBOBJ invocations to module description.
9272         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9273         gl_PREREQ_FTRUNCATE invocations from here...
9274         * modules/ftruncate (configure.ac): ... to here.
9275
9276 2011-05-07  Bruno Haible  <bruno@clisp.org>
9277
9278         fsync: Move AC_LIBOBJ invocations to module description.
9279         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9280         invocations from here...
9281         * modules/fsync (configure.ac): ... to here.
9282
9283 2011-05-07  Bruno Haible  <bruno@clisp.org>
9284
9285         fsusage: Move AC_LIBOBJ invocations to module description.
9286         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9287         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9288         * modules/fsusage (configure.ac): ... to here.
9289
9290 2011-05-07  Bruno Haible  <bruno@clisp.org>
9291
9292         freopen: Move AC_LIBOBJ invocations to module description.
9293         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9294         invocations from here...
9295         * modules/freopen (configure.ac): ... to here.
9296
9297 2011-05-07  Bruno Haible  <bruno@clisp.org>
9298
9299         free: Move AC_LIBOBJ invocations to module description.
9300         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9301         invocations from here...
9302         * modules/free (configure.ac): ... to here.
9303
9304 2011-05-07  Bruno Haible  <bruno@clisp.org>
9305
9306         freadable: Move AC_LIBOBJ invocations to module description.
9307         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9308         here...
9309         * modules/freadable (configure.ac): ... to here.
9310
9311 2011-05-07  Bruno Haible  <bruno@clisp.org>
9312
9313         fpurge: Move AC_LIBOBJ invocations to module description.
9314         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9315         invocations from here...
9316         * modules/fpurge (configure.ac): ... to here.
9317
9318 2011-05-07  Bruno Haible  <bruno@clisp.org>
9319
9320         fpending: Move AC_LIBOBJ invocations to module description.
9321         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9322         gl_FUNC_FPENDING.
9323         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9324         invocations from here...
9325         * modules/fpending (configure.ac): ... to here.
9326
9327 2011-05-07  Bruno Haible  <bruno@clisp.org>
9328
9329         fopen: Move AC_LIBOBJ invocations to module description.
9330         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9331         invocations from here...
9332         * modules/fopen (configure.ac): ... to here.
9333
9334 2011-05-07  Bruno Haible  <bruno@clisp.org>
9335
9336         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9337         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9338         gl_FUNC_FNMATCH_POSIX.
9339         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9340         invocations from here...
9341         * modules/fnmatch (configure.ac): ... to here.
9342         * modules/fnmatch-gnu (configure.ac): ... and here.
9343
9344 2011-05-07  Bruno Haible  <bruno@clisp.org>
9345
9346         flock: Move AC_LIBOBJ invocations to module description.
9347         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9348         invocations from here...
9349         * modules/flock (configure.ac): ... to here.
9350
9351 2011-05-07  Bruno Haible  <bruno@clisp.org>
9352
9353         fileblocks: Move AC_LIBOBJ invocations to module description.
9354         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9355         gl_PREREQ_FILEBLOCKS invocations from here...
9356         * modules/fileblocks (configure.ac): ... to here.
9357
9358 2011-05-06  Bruno Haible  <bruno@clisp.org>
9359
9360         fflush: Move AC_LIBOBJ invocations to module description.
9361         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9362         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9363         invocations from here...
9364         * modules/fflush (configure.ac): ... to here.
9365
9366 2011-05-06  Bruno Haible  <bruno@clisp.org>
9367
9368         fdopendir: Move AC_LIBOBJ invocations to module description.
9369         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9370         here...
9371         * modules/fdopendir (configure.ac): ... to here.
9372         (Depends-on): Improve conditions.
9373
9374 2011-05-06  Bruno Haible  <bruno@clisp.org>
9375
9376         _Exit: Move AC_LIBOBJ invocations to module description.
9377         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9378         invocations from here...
9379         * modules/_Exit (configure.ac): ... to here.
9380
9381 2011-05-21  Bruno Haible  <bruno@clisp.org>
9382
9383         euidaccess: Respect rules for use of AC_LIBOBJ.
9384         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9385         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9386         from here...
9387         * modules/euidaccess (configure.ac): ... to here.
9388
9389 2011-05-06  Bruno Haible  <bruno@clisp.org>
9390
9391         error: Move AC_LIBOBJ invocations to module description.
9392         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9393         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9394         invocations from here...
9395         * modules/error (configure.ac): ... to here.
9396
9397 2011-05-06  Bruno Haible  <bruno@clisp.org>
9398
9399         duplocale: Move AC_LIBOBJ invocations to module description.
9400         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9401         gl_PREREQ_DUPLOCALE invocations from here...
9402         * modules/duplocale (configure.ac): ... to here.
9403
9404 2011-05-05  Bruno Haible  <bruno@clisp.org>
9405
9406         dirfd: Move AC_LIBOBJ invocations to module description.
9407         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9408         gl_FUNC_DIRFD.
9409         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9410         here...
9411         * modules/dirfd (configure.ac): ... to here.
9412         (Depends-on): Fix condition.
9413
9414 2011-05-05  Bruno Haible  <bruno@clisp.org>
9415
9416         chown: Respect rules for use of AC_LIBOBJ.
9417         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9418         * modules/chown (configure.ac): ... to here.
9419
9420 2011-05-05  Bruno Haible  <bruno@clisp.org>
9421
9422         chdir-long: Move AC_LIBOBJ invocations to module description.
9423         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9424         gl_PREREQ_CHDIR_LONG invocations from here...
9425         * modules/chdir-long (configure.ac): ... to here.
9426
9427 2011-05-05  Bruno Haible  <bruno@clisp.org>
9428
9429         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9430         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9431         from here...
9432         * modules/canonicalize-lgpl (configure.ac): ... to here.
9433
9434 2011-05-05  Bruno Haible  <bruno@clisp.org>
9435
9436         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9437         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9438         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9439         REPLACE_CALLOC.
9440         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9441         * modules/calloc-gnu (configure.ac): Likewise.
9442
9443 2011-05-05  Bruno Haible  <bruno@clisp.org>
9444
9445         btowc: Move AC_LIBOBJ invocations to module description.
9446         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9447         invocations from here...
9448         * modules/btowc (configure.ac): ... to here.
9449
9450 2011-05-21  Bruno Haible  <bruno@clisp.org>
9451
9452         atexit: Move AC_LIBOBJ invocations to module description.
9453         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9454         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9455         here...
9456         * modules/atexit (configure.ac): ... to here.
9457
9458 2011-05-05  Bruno Haible  <bruno@clisp.org>
9459
9460         atoll: Move AC_LIBOBJ invocations to module description.
9461         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9462         invocations from here...
9463         * modules/atoll (configure.ac): ... to here.
9464
9465 2011-05-05  Bruno Haible  <bruno@clisp.org>
9466
9467         argz: Move AC_LIBOBJ invocations to module description.
9468         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9469         * modules/argz (configure.ac): ... to here.
9470
9471 2011-05-05  Bruno Haible  <bruno@clisp.org>
9472
9473         alphasort: Move AC_LIBOBJ invocations to module description.
9474         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9475         gl_PREREQ_ALPHASORT invocations from here...
9476         * modules/alphasort (configure.ac): ... to here.
9477
9478 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9479
9480         verify: new macro verify_expr; verify_true deprecated
9481         * NEWS: Mention this.
9482         * doc/verify.texi (Compile-time Assertions): Document this.
9483         * lib/verify.h (verify_true): Deprecate.
9484         (verify_expr): New macro.
9485         * tests/test-verify.c (function): Test verify_expr.
9486
9487 2011-06-14  Jim Meyering  <meyering@redhat.com>
9488
9489         init.sh: give more portable redirection-related advice in a comment
9490         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9491         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9492         for lots of discussion.  Stefano Lattarini suggested the solution
9493         of putting "9>&2" after the command.  Reported by Bruno Haible.
9494
9495 2011-06-13  Bruno Haible  <bruno@clisp.org>
9496
9497         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9498         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9499         'none'.
9500
9501 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9502
9503         ftoastr: use strtof only if HAVE_STRTOF
9504         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9506         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9507         * modules/ftoastr (configure.ac): Check for strtof.
9508
9509 2011-06-13  Bruno Haible  <bruno@clisp.org>
9510
9511         gnulib-tool: Addendum to 2011-06-08 commit.
9512         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9513         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9514
9515 2011-06-13  Bruno Haible  <bruno@clisp.org>
9516
9517         fseeko: Provide a non-inline replacement of fseek().
9518         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9519         * modules/fseeko (Depends-on): Add fseek.
9520         * modules/fseek (License): Change to LGPLv2+.
9521
9522 2011-06-13  Bruno Haible  <bruno@clisp.org>
9523
9524         ftello: Provide a non-inline replacement of ftell().
9525         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9526         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9527         not have ftello() (such as on mingw).
9528         * modules/ftello (Depends-on): Add ftell.
9529         * modules/ftell (License): Change to LGPLv2+.
9530
9531 2011-05-07  Bruno Haible  <bruno@clisp.org>
9532
9533         ftell: Move AC_LIBOBJ invocations to module description.
9534         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9535         * modules/ftell (configure.ac): ... to here.
9536
9537 2011-05-07  Bruno Haible  <bruno@clisp.org>
9538
9539         ftello: Respect rules for use of AC_LIBOBJ.
9540         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9541         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9542         here...
9543         * modules/ftello (configure.ac): ... to here.
9544
9545 2011-05-07  Bruno Haible  <bruno@clisp.org>
9546
9547         fseeko: Simplify.
9548         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9549         (gl_FUNC_FSEEKO): Inline it here.
9550
9551 2011-05-07  Bruno Haible  <bruno@clisp.org>
9552
9553         fseek: Move AC_LIBOBJ invocations to module description.
9554         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9555         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9556         * modules/fseek (configure.ac): ... to here.
9557
9558 2011-05-07  Bruno Haible  <bruno@clisp.org>
9559
9560         fseek: Respect rules for use of AC_LIBOBJ.
9561         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9562         here...
9563         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9564
9565 2011-05-07  Bruno Haible  <bruno@clisp.org>
9566
9567         fseeko: Respect rules for use of AC_LIBOBJ.
9568         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9569         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9570         here...
9571         * modules/fseeko (configure.ac): ... to here.
9572
9573 2011-06-13  Bruno Haible  <bruno@clisp.org>
9574
9575         gnulib-tool: Allow comments in the 'Depends-on' section.
9576         * doc/gnulib.texi (Module description): Mention comment syntax in the
9577         Depends-on section.
9578         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9579
9580 2011-06-13  Bruno Haible  <bruno@clisp.org>
9581
9582         file-set.h: guard __attibute__ use, now that it's not always defined
9583         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9584         versions that support it.  This fixes a coreutils build failure with
9585         the vendor cc on HP-UX 11.31.
9586
9587 2011-06-12  Bruno Haible  <bruno@clisp.org>
9588
9589         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9590         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9591         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9592         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9593         (acl, aclsort): New declarations.
9594         (aclv_nontrivial): New declaration.
9595         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9596         (file_has_acl): Read also the second kind of HP-UX ACLs.
9597         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9598         kind of HP-UX ACLs if the first kind fails.
9599         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9600         second kind of HP-UX ACLs.
9601         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9602         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9603         agree.
9604         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9605         hpuxjfs.
9606         Handle hpuxjfs.
9607         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9608         hpuxjfs.
9609         Handle hpuxjfs.
9610         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9611         (func_test_same_acls): Use both lsacl and getacl.
9612         Handle hpuxjfs.
9613         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9614         (func_test_same_acls): Use both lsacl and getacl.
9615         Handle hpuxjfs.
9616
9617 2011-06-12  Bruno Haible  <bruno@clisp.org>
9618
9619         acl: Complete the 2010-08-10 fix.
9620         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9621         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9622         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9623         explicitly.
9624         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9625         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9626
9627 2011-06-12  Bruno Haible  <bruno@clisp.org>
9628
9629         spawn-pipe tests: Comments.
9630         * tests/test-spawn-pipe-child.c (main): Update comment.
9631         Reported by James Youngman <jay@gnu.org>.
9632
9633 2011-06-11  James Youngman  <jay@gnu.org>
9634
9635         New module 'stat-size'.
9636         * modules/stat-size: New module.  Provides macros for accessing
9637         file size information in instances of struct stat.  Depends on the
9638         fileblocks module because it calls st_blocks.
9639         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9640         * doc/gnulib.texi: Include stat-size.texi.
9641         * doc/stat-size.texi: Documentation for this module.
9642         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9643         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9644         AC_STRUCT_ST_BLOCKS.
9645
9646 2011-06-09  Bruno Haible  <bruno@clisp.org>
9647
9648         thread: Support pthreads-win32.
9649         * lib/glthread/thread.h (gl_thread_self): Define differently on
9650         pthreads-win32.
9651         (gl_null_thread): New declaration.
9652         (gl_thread_self_pointer): New macro.
9653         * lib/glthread/thread.c (gl_null_thread): New constant.
9654         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9655         gl_thread_self.
9656         * tests/test-tls.c: Likewise.
9657         Suggested by Paul Eggert. Reported by Eric Blake.
9658
9659 2011-06-09  Bruno Haible  <bruno@clisp.org>
9660
9661         thread: Fix confusion between NULL and 0.
9662         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9663         Reported by Paul Eggert.
9664
9665 2011-06-09  Bruno Haible  <bruno@clisp.org>
9666
9667         spawn-pipe tests: Avoid test failure on HP-UX 11.
9668         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9669         is closed.
9670
9671 2011-06-09  Bruno Haible  <bruno@clisp.org>
9672
9673         acl tests: Fix compilation error on HP-UX 11.
9674         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9675
9676 2011-06-09  Bruno Haible  <bruno@clisp.org>
9677
9678         rmdir: Avoid test failure on HP-UX 10.20.
9679         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9680         EEXIST.
9681
9682 2011-06-08  Eric Blake  <eblake@redhat.com>
9683
9684         perror: fix test on mingw
9685         * modules/perror-tests (Depends-on): Add dup2.
9686
9687         strerror_r-posix: fix on MacOS
9688         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9689         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9690         logic bug.
9691         * lib/strerror_r.c (strerror_r): Fix the bug.
9692         * lib/strerror.c (strerror): Likewise.
9693         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9694         problem.
9695         * doc/posix-functions/strerror.texi (strerror): Likewise.
9696         * doc/posix-functions/perror.texi (perror): Likewise.
9697         * tests/test-strerror.c (main): Enhance test.
9698         * tests/test-strerror_r.c (main): Likewise.
9699
9700 2011-06-08  Bruno Haible  <bruno@clisp.org>
9701
9702         gnulib-tool: Better isolation between different gnulib-tool invocations.
9703         * gnulib-tool: New option --witness-c-macro.
9704         (witness_c_macro): New variable.
9705         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9706         AM_CPPFLAGS define it as a C macro.
9707         (func_emit_tests_Makefile_am): Likewise.
9708         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9709         read it from there.
9710         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9711         m4_define, not AC_DEFUN.
9712         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9713         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9714         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9715         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9716         s|...|...|, to substitute the values of the GNULIB_* module indicator
9717         variables.
9718         * modules/dirent (Makefile.am): Likewise.
9719         * modules/fcntl-h (Makefile.am): Likewise.
9720         * modules/iconv-h (Makefile.am): Likewise.
9721         * modules/langinfo (Makefile.am): Likewise.
9722         * modules/locale (Makefile.am): Likewise.
9723         * modules/math (Makefile.am): Likewise.
9724         * modules/netdb (Makefile.am): Likewise.
9725         * modules/poll-h (Makefile.am): Likewise.
9726         * modules/pty (Makefile.am): Likewise.
9727         * modules/search (Makefile.am): Likewise.
9728         * modules/signal (Makefile.am): Likewise.
9729         * modules/spawn (Makefile.am): Likewise.
9730         * modules/stdio (Makefile.am): Likewise.
9731         * modules/stdlib (Makefile.am): Likewise.
9732         * modules/string (Makefile.am): Likewise.
9733         * modules/sys_ioctl (Makefile.am): Likewise.
9734         * modules/sys_select (Makefile.am): Likewise.
9735         * modules/sys_socket (Makefile.am): Likewise.
9736         * modules/sys_stat (Makefile.am): Likewise.
9737         * modules/sys_times (Makefile.am): Likewise.
9738         * modules/sys_utsname (Makefile.am): Likewise.
9739         * modules/sys_wait (Makefile.am): Likewise.
9740         * modules/termios (Makefile.am): Likewise.
9741         * modules/time (Makefile.am): Likewise.
9742         * modules/unistd (Makefile.am): Likewise.
9743         * modules/wchar (Makefile.am): Likewise.
9744
9745 2011-06-08  Eric Blake  <eblake@redhat.com>
9746
9747         strerror: simplify replacement
9748         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9749         * modules/strerror (configure.ac): No prereqs needed here...
9750         * modules/strerror-override (configure.ac): ...but this needs it.
9751         (Files): Add file for needed prereq macro.
9752
9753 2011-06-08  Bruno Haible  <bruno@clisp.org>
9754
9755         strerror_r-posix: Tweaks.
9756         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9757         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9758         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9759         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9760         (gl_FUNC_STRERROR_R): ... to here.
9761         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9762
9763 2011-06-07  Eric Blake  <eblake@redhat.com>
9764
9765         perror: document fixed bugs
9766         * doc/posix-functions/perror.texi (perror): Document recent
9767         patches.
9768
9769 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9770
9771         stat-time: get_stat_birthtime failure is better-defined
9772         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9773         return a timestamp whose tv_sec and tv_nsec values are both -1.
9774         Previously, the spec said only that the tv_nsec value was negative.
9775         This upward-compatible change simplifies GNU tar a bit.
9776
9777 2011-06-07  Eric Blake  <eblake@redhat.com>
9778
9779         strerror_r-posix: work around cygwin 1.7.9
9780         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9781         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9782         bug without replacing strerror_r.
9783         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9784         strerror_r is buggy, but without requiring strerror_r compilation.
9785         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9786
9787         test-perror: relax test to ignore cygwin bug
9788         * tests/test-perror2.c (main): Relax test on requiring detection
9789         of stream errors, and use unbuffered stream.
9790         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9791         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9792         * doc/posix-functions/fputc.texi (fputc): Likewise.
9793         * doc/posix-functions/fputs.texi (fputs): Likewise.
9794         * doc/posix-functions/fputws.texi (fputws): Likewise.
9795         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9796         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9797         * doc/posix-functions/getopt.texi (getopt): Likewise.
9798         * doc/posix-functions/perror.texi (perror): Likewise.
9799         * doc/posix-functions/printf.texi (printf): Likewise.
9800         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9801         * doc/posix-functions/psignal.texi (psignal): Likewise.
9802         * doc/posix-functions/putc.texi (putc): Likewise.
9803         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9804         Likewise.
9805         * doc/posix-functions/putchar.texi (putchar): Likewise.
9806         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9807         Likewise.
9808         * doc/posix-functions/puts.texi (puts): Likewise.
9809         * doc/posix-functions/putwc.texi (putwc): Likewise.
9810         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9811         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9812         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9813         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9814         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9815         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9816         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9817         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9818
9819 2011-05-22  Bruno Haible  <bruno@clisp.org>
9820
9821         strerror: Move AC_LIBOBJ invocations to module description.
9822         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9823         gl_PREREQ_STRERROR invocations from here...
9824         * modules/strerror (configure.ac): ... to here.
9825
9826 2011-05-21  Bruno Haible  <bruno@clisp.org>
9827
9828         perror: Use common idiom.
9829         * modules/perror (configure.ac): Reorder statements.
9830
9831 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9832
9833         tests: fix usage message in 'mktempd_'
9834         * tests/init.sh (mktempd_): In the usage message, use literal
9835         'mktempd_', not '$ME' (which is even undefined), as the name of
9836         the subroutine.
9837
9838 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9839
9840         tests init: new function 'fatal_', for hard errors
9841         Before this patch, the only way offered by tests/init.sh to
9842         properly signal a hard error was the `framework_failure_'
9843         function.  But the error message issued by that function,
9844         as its name would suggest, refers to a set-up failure in the
9845         testsuite, while hard errors can obviously also be due to
9846         other reasons.  The best way to fix this inconsistency is to
9847         introduce a new function with a more general error message.
9848         * tests/init.sh (fatal_): New function.
9849
9850 2011-06-06  Eric Blake  <eblake@redhat.com>
9851
9852         canonicalize-lgpl: use common idiom
9853         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9854         over newer POSIX -Rf.
9855         Reported by Bruno Haible.
9856
9857         canonicalize-lgpl: work around AIX realpath bug
9858         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9859         * doc/posix-functions/realpath.texi (realpath): Document it.
9860         Reported by Bruno Haible.
9861
9862         strerror: work around FreeBSD bug
9863         * lib/strerror.c (strerror): Special case 0.
9864         Reported by Bruno Haible.
9865
9866         strerror-override: avoid bloating errno module
9867         * modules/errno (Files, configure.ac): Move replacement strings...
9868         * modules/strerror-override: ...to new module.
9869         * modules/strerror (Depends-on): Add strerror-override.
9870         * modules/strerror_r-posix (Depends-on): Likewise.
9871         * MODULES.html.sh: Document new module.
9872         Reported by Bruno Haible.
9873
9874 2011-06-06  Bruno Haible  <bruno@clisp.org>
9875
9876         spawn-pipe tests: Rename program.
9877         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9878         * tests/test-spawn-pipe-child.c: Update comment.
9879         * tests/test-spawn-pipe.sh: Update.
9880         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9881
9882         spawn-pipe tests: Link the child program only against libc.
9883         * tests/test-spawn-pipe-child.c: New file, extracted from
9884         tests/test-spawn-pipe.c.
9885         (main): Expect only one argument.
9886         (is_open): New function, copied from tests/test-pipe.c.
9887         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9888         (child_main): Remove function.
9889         (test_pipe): Pass only one argument to the child program.
9890         (main): Remove child process code. Expect the child program's name as
9891         first argument.
9892         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9893         argument.
9894         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9895         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9896         test-spawn-pipe-child against no libraries.
9897
9898 2011-06-06  Bruno Haible  <bruno@clisp.org>
9899
9900         careadlinkat: Avoid mismatch between ssize_t and int.
9901         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9902         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9903
9904 2011-06-06  Jim Meyering  <meyering@redhat.com>
9905
9906         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9907         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9908         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9909
9910 2011-06-05  Bruno Haible  <bruno@clisp.org>
9911
9912         ansi-c++-opt: Interoperability with libtool.
9913         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9914         set the variable to "no", not to ":".
9915         * NEWS: Mention the change.
9916
9917 2011-06-05  Bruno Haible  <bruno@clisp.org>
9918
9919         acl: Fix test failure on AIX 7.
9920         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9921         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9922
9923 2011-06-05  Bruno Haible  <bruno@clisp.org>
9924
9925         pipe-filter-ii: Fix test failure on AIX and IRIX.
9926         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9927         with EAGAIN, retry with a smaller buffer size.
9928
9929 2011-06-05  Bruno Haible  <bruno@clisp.org>
9930
9931         localename: Fix link dependencies.
9932         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9933         * modules/localename-tests (Makefile.am): Link test-localename with
9934         $(LIBTHREAD).
9935
9936 2011-06-05  Bruno Haible  <bruno@clisp.org>
9937
9938         error: Avoid gcc warning.
9939         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9940
9941 2011-06-05  Bruno Haible  <bruno@clisp.org>
9942
9943         unsetenv: Avoid gcc warning.
9944         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9945
9946 2011-06-05  Bruno Haible  <bruno@clisp.org>
9947
9948         setenv: Avoid gcc warning.
9949         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9950
9951 2011-06-05  Bruno Haible  <bruno@clisp.org>
9952
9953         sys_select: Ensure memset is declared also on AIX 7.
9954         * lib/sys_select.in.h: Include <string.h> also on AIX.
9955         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9956         self-contained also on AIX 7.1.
9957
9958 2011-06-04  Jim Meyering  <meyering@redhat.com>
9959
9960         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9961         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9962         function name, "error".
9963         (_gl_translatable_diag_func_re): New configurable variable.
9964
9965 2011-06-04  Bruno Haible  <bruno@clisp.org>
9966
9967         getopt: Avoid gcc warning.
9968         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9969
9970 2011-06-04  Bruno Haible  <bruno@clisp.org>
9971
9972         strerror_r: Fix comments.
9973         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9974         commit.
9975
9976 2011-06-04  Bruno Haible  <bruno@clisp.org>
9977
9978         perror: Fix compilation error.
9979         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9980         Undefine fprintf, not sprintf.
9981         * modules/perror (Depends-on): Remove intprops, verify.
9982
9983 2011-06-04  Bruno Haible  <bruno@clisp.org>
9984
9985         setlocale: Enable replacement on Cygwin 1.5.
9986         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9987         Cygwin 1.5.x.
9988         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9989         LC_CTYPE category also exists on Cygwin 1.5.x.
9990
9991 2011-06-04  Bruno Haible  <bruno@clisp.org>
9992
9993         strerror-override: Don't disable symbol renamings.
9994         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9995         * lib/strerror-override.c: Include config.h.
9996         (strerror_override): Don't undefine.
9997
9998 2011-06-03  Bruno Haible  <bruno@clisp.org>
9999
10000         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10001         * lib/localename.h: Update copyright header.
10002         * lib/localename.c: Likewise.
10003         * lib/relocatable.h: Likewise.
10004         * lib/relocatable.c: Likewise.
10005
10006 2011-06-02  Bruno Haible  <bruno@clisp.org>
10007
10008         doc: Fix a module name.
10009         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10010
10011 2011-06-02  Bruno Haible  <bruno@clisp.org>
10012
10013         pipe2: Remove dependency on 'nonblocking' module.
10014         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10015         O_NONBLOCK is defined by gnulib.
10016         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10017         is zero.
10018         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10019         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10020         defined by gnulib.
10021         (get_nonblocking_flag): New function.
10022         (main): Test O_NONBLOCK flag only if it is nonzero.
10023         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10024
10025 2011-06-03  Jim Meyering  <meyering@redhat.com>
10026
10027         maint: three new prohibit-header-without-use rules
10028         Prohibit use of cloexec.h, posixver.h, same.h without use.
10029         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10030         (sc_prohibit_posixver_without_use): Likewise.
10031         (sc_prohibit_same_without_use): Likewise.
10032
10033 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10034
10035         allocator: 'die' routine is now given requested size
10036         * lib/allocator.h (struct allocator.die): New size arg.
10037         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10038         If the actual problem is an ssize_t limitation, not a size_t or
10039         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10040
10041 2011-06-01  Eric Blake  <eblake@redhat.com>
10042
10043         strerror: drop strerror_r dependency
10044         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10045         * lib/strerror-override.c (strerror_override): ...to new file.
10046         * lib/strerror-override.h: Add prototype.
10047         * lib/strerror-impl.h: Delete.
10048         * lib/strerror.c (strerror): New implementation.
10049         * modules/errno (Files): Add new files.
10050         (configure.ac): Compile new file as appropriate.
10051         * modules/strerror (Files): Drop unused file.
10052         (Depends-on): Drop strerror_r-posix.
10053         * MODULES.html.sh: Document strerror_r-posix.
10054         Requested by Sam Steingold.
10055
10056         perror: call strerror_r directly
10057         * modules/perror (Files): Drop strerror-impl.h.
10058         * lib/perror.c (perror): Use our own stack buffer, rather than
10059         calling a wrapper that uses static storage.
10060         * doc/posix-functions/perror.texi (perror): Document a limitation
10061         of our replacement.
10062
10063         strerror_r: fix includes for FreeBSD
10064         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10065         since we use abort on some platforms.
10066         Reported by Matthias Bolte.
10067
10068 2011-05-31  Bruno Haible  <bruno@clisp.org>
10069
10070         Fix link errors in tests: openat-die uses gettext-h.
10071         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10072         against $(LIBINTL).
10073         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10074         against $(LIBINTL).
10075         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10076         $(LIBINTL).
10077         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10078         against $(LIBINTL).
10079         * modules/linkat-tests (Makefile.am): Link test-linkat against
10080         $(LIBINTL).
10081         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10082         $(LIBINTL).
10083         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10084         against $(LIBINTL).
10085         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10086         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10087         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10088         $(LIBINTL).
10089         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10090         $(LIBINTL).
10091         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10092         $(LIBINTL).
10093         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10094
10095 2011-05-31  Bruno Haible  <bruno@clisp.org>
10096
10097         Fix link errors in tests: wait-process uses gettext-h.
10098         * modules/nonblocking-pipe-tests (Makefile.am): Set
10099         test_nonblocking_pipe_main_LDADD.
10100         * modules/nonblocking-socket-tests (Makefile.am): Link
10101         test-nonblocking-socket-main against $(LIBINTL).
10102         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10103
10104 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10105
10106         assert-h: work around 'verify' incompatibility
10107         * lib/verify.h: Use @...@ directives, not ifdef.
10108         * modules/assert-h (assert.h): Implement the directives.
10109         (assert.h): Substitute the symbol-prefix more consistently.
10110
10111 2011-05-29  Jim Meyering  <meyering@redhat.com>
10112
10113         trim: remove three superfluous assignments
10114         * lib/trim.c (trim2): Remove three superfluous assignments
10115         and correct brace positioning.
10116
10117 2011-05-29  Bruno Haible  <bruno@clisp.org>
10118
10119         wctype-h: Avoid namespace pollution on Solaris 2.6.
10120         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10121         identifiers.
10122         * doc/posix-headers/wctype.texi: Mention the problem.
10123         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10124
10125 2011-05-28  Jim Meyering  <meyering@redhat.com>
10126
10127         parse-datetime.y: accommodate -Wstrict-overflow
10128         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10129         placate -Wstrict-overflow.
10130
10131         trim: avoid a warning from -O2 -Wstrict-overflow
10132         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10133
10134 2011-05-29  Bruno Haible  <bruno@clisp.org>
10135
10136         gnulib-tool: Fix bug in yesterday's commit.
10137         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10138         twice.
10139
10140 2011-05-29  Bruno Haible  <bruno@clisp.org>
10141
10142         Allow multiple gnulib generated include files to be combined.
10143         * gnulib-tool (func_compute_include_guard_prefix): New function.
10144         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10145         ${gl_include_guard_prefix} references.
10146         (func_import, func_create_testdir): Invoke
10147         func_compute_include_guard_prefix.
10148         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10149         * lib/ctype.in.h: Likewise.
10150         * lib/dirent.in.h: Likewise.
10151         * lib/errno.in.h: Likewise.
10152         * lib/fcntl.in.h: Likewise.
10153         * lib/float.in.h: Likewise.
10154         * lib/getopt.in.h: Likewise.
10155         * lib/iconv.in.h: Likewise.
10156         * lib/langinfo.in.h: Likewise.
10157         * lib/locale.in.h: Likewise.
10158         * lib/math.in.h: Likewise.
10159         * lib/netdb.in.h: Likewise.
10160         * lib/netinet_in.in.h: Likewise.
10161         * lib/poll.in.h: Likewise.
10162         * lib/pthread.in.h: Likewise.
10163         * lib/pty.in.h: Likewise.
10164         * lib/sched.in.h: Likewise.
10165         * lib/se-selinux.in.h: Likewise.
10166         * lib/search.in.h: Likewise.
10167         * lib/signal.in.h: Likewise.
10168         * lib/spawn.in.h: Likewise.
10169         * lib/stdarg.in.h: Likewise.
10170         * lib/stddef.in.h: Likewise.
10171         * lib/stdint.in.h: Likewise.
10172         * lib/stdio.in.h: Likewise.
10173         * lib/stdlib.in.h: Likewise.
10174         * lib/string.in.h: Likewise.
10175         * lib/strings.in.h: Likewise.
10176         * lib/sys_file.in.h: Likewise.
10177         * lib/sys_ioctl.in.h: Likewise.
10178         * lib/sys_select.in.h: Likewise.
10179         * lib/sys_socket.in.h: Likewise.
10180         * lib/sys_stat.in.h: Likewise.
10181         * lib/sys_time.in.h: Likewise.
10182         * lib/sys_times.in.h: Likewise.
10183         * lib/sys_uio.in.h: Likewise.
10184         * lib/sys_utsname.in.h: Likewise.
10185         * lib/sys_wait.in.h: Likewise.
10186         * lib/sysexits.in.h: Likewise.
10187         * lib/termios.in.h: Likewise.
10188         * lib/time.in.h: Likewise.
10189         * lib/unistd.in.h: Likewise.
10190         * lib/wchar.in.h: Likewise.
10191         * lib/wctype.in.h: Likewise.
10192         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10193         * modules/ctype (Makefile.am): Likewise.
10194         * modules/dirent (Makefile.am): Likewise.
10195         * modules/errno (Makefile.am): Likewise.
10196         * modules/fcntl-h (Makefile.am): Likewise.
10197         * modules/float (Makefile.am): Likewise.
10198         * modules/getopt-posix (Makefile.am): Likewise.
10199         * modules/iconv-h (Makefile.am): Likewise.
10200         * modules/langinfo (Makefile.am): Likewise.
10201         * modules/locale (Makefile.am): Likewise.
10202         * modules/math (Makefile.am): Likewise.
10203         * modules/netdb (Makefile.am): Likewise.
10204         * modules/netinet_in (Makefile.am): Likewise.
10205         * modules/poll-h (Makefile.am): Likewise.
10206         * modules/pthread (Makefile.am): Likewise.
10207         * modules/pty (Makefile.am): Likewise.
10208         * modules/sched (Makefile.am): Likewise.
10209         * modules/search (Makefile.am): Likewise.
10210         * modules/selinux-h (Makefile.am): Likewise.
10211         * modules/signal (Makefile.am): Likewise.
10212         * modules/spawn (Makefile.am): Likewise.
10213         * modules/stdarg (Makefile.am): Likewise.
10214         * modules/stddef (Makefile.am): Likewise.
10215         * modules/stdint (Makefile.am): Likewise.
10216         * modules/stdio (Makefile.am): Likewise.
10217         * modules/stdlib (Makefile.am): Likewise.
10218         * modules/string (Makefile.am): Likewise.
10219         * modules/strings (Makefile.am): Likewise.
10220         * modules/sys_file (Makefile.am): Likewise.
10221         * modules/sys_ioctl (Makefile.am): Likewise.
10222         * modules/sys_select (Makefile.am): Likewise.
10223         * modules/sys_socket (Makefile.am): Likewise.
10224         * modules/sys_stat (Makefile.am): Likewise.
10225         * modules/sys_time (Makefile.am): Likewise.
10226         * modules/sys_times (Makefile.am): Likewise.
10227         * modules/sys_uio (Makefile.am): Likewise.
10228         * modules/sys_utsname (Makefile.am): Likewise.
10229         * modules/sys_wait (Makefile.am): Likewise.
10230         * modules/sysexits (Makefile.am): Likewise.
10231         * modules/termios (Makefile.am): Likewise.
10232         * modules/time (Makefile.am): Likewise.
10233         * modules/unistd (Makefile.am): Likewise.
10234         * modules/wchar (Makefile.am): Likewise.
10235         * modules/wctype-h (Makefile.am): Likewise.
10236         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10237
10238 2011-05-29  Bruno Haible  <bruno@clisp.org>
10239
10240         assert-h: Allow multiple gnulib generated replacements to coexist.
10241         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10242
10243 2011-05-29  Bruno Haible  <bruno@clisp.org>
10244
10245         argp: Allow coexistence with strerror_r-posix module.
10246         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10247         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10248         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10249         not the glibc signature.
10250
10251 2011-05-28  Bruno Haible  <bruno@clisp.org>
10252
10253         gnulib-tool: Alternative structure of testdirs, similar to --import.
10254         * gnulib-tool: New option --single-configure.
10255         (func_usage): Document it.
10256         (single_configure): New variable.
10257         (func_modules_transitive_closure_separately,
10258         func_modules_transitive_closure_separately,
10259         func_determine_use_libtests, func_modules_add_dummy_separately,
10260         func_modules_to_filelist_separately): New functions, extracted from
10261         func_import.
10262         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10263         (func_import): Use the new functions.
10264         (func_create_testdir): Set final_modules. Handle $single_configure =
10265         true case.
10266
10267 2011-05-28  Bruno Haible  <bruno@clisp.org>
10268
10269         getloadavg: Remove an unreliable safety check.
10270         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10271         getloadavg.c is in place.
10272         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10273         Reported by Sam Steingold <sds@gnu.org>.
10274
10275 2011-05-28  Bruno Haible  <bruno@clisp.org>
10276
10277         doc: Cleanup yet another file produced by texinfo.tex.
10278         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10279
10280 2011-05-28  Bruno Haible  <bruno@clisp.org>
10281
10282         Finish the conditional dependencies mechanism.
10283         * gnulib-tool: New option --no-conditional-dependencies.
10284         (func_usage): Document it. Don't mark --conditional-dependencies as
10285         experimental.
10286         (cond_dependencies): The possible values can now be true, false, empty.
10287         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10288         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10289         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10290
10291 2011-05-28  Bruno Haible  <bruno@clisp.org>
10292
10293         doc: Use a recent texinfo.tex.
10294         * doc/Makefile (tex_opts): New variable.
10295         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10296
10297 2011-05-28  Jim Meyering  <meyering@redhat.com>
10298
10299         intprops.h: adjust comment to match code change
10300         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10301         only once, it *may* have side effects.  Also fix an unrelated typo.
10302         (_GL_INT_SIGNED): Likewise.
10303
10304 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10305
10306         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10307
10308 2011-05-26  Bruno Haible  <bruno@clisp.org>
10309
10310         mbsrchr: Avoid collision with system function on Interix.
10311         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10312         Reported by Markus Duft <mduft@gentoo.org>.
10313
10314 2011-05-15  James Youngman  <jay@gnu.org>
10315
10316         getopt: for ambiguous options, enumerate the possibilities.
10317         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10318         the ambiguous options when an ambiguous prefix is given. This was
10319         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10320         glibc change was
10321         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10322
10323 2011-05-25  Eric Blake  <eblake@redhat.com>
10324
10325         getcwd: work around mingw bug
10326         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10327         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10328         Reported by Matthias Bolte.
10329
10330 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10331
10332         test-intprops: disable -Wtype-limits diagnostics
10333         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10334         diagnostics.  Otherwise, the integer overflow macros generate many
10335         diagnostics.  Reported by Jim Meyering in
10336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10337
10338         intprops: shorten, to pacify gcc -Woverlength-strings
10339         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10340         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10341         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10342         likely to run afoul of C compiler limits for string constant lengths.
10343         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10344
10345 2011-05-24  Eric Blake  <eblake@redhat.com>
10346
10347         docs: document recently fixed glibc printf bug
10348         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10349         * doc/posix-functions/printf.texi (printf): Likewise.
10350         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10351         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10352
10353         closein-tests: convert to init.sh
10354         * modules/closein-tests (Files): Add init.sh
10355         * tests/test-closein.sh Use it.
10356
10357         yesno-tests: convert to init.sh
10358         * modules/yesno-tests (Files): Add init.sh.
10359         * tests/test-yesno.sh: Use it.
10360
10361         atexit-tests: ensure reliable exit status
10362         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10363         Reported by Bruno Haible.
10364
10365 2011-05-24  Bruno Haible  <bruno@clisp.org>
10366
10367         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10368         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10369         gl_PREREQ_STRERROR_R invocations from here...
10370         * modules/strerror_r-posix (configure.ac): ... to here.
10371
10372 2011-05-24  Eric Blake  <eblake@redhat.com>
10373
10374         strerror_r: fix missing header
10375         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10376
10377         strerror_r: fix AIX test failures
10378         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10379         ERANGE failure.
10380
10381         strerror_r: fix Solaris test failures
10382         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10383         failures.
10384         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10385
10386         strerror_r: enforce POSIX recommendations
10387         * lib/strerror_r.c (safe_copy): New helper method.
10388         (strerror_r): Guarantee a non-empty string.
10389         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10390         recent POSIX rulings and to match our strerror guarantees.
10391         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10392
10393 2011-05-24  Jim Meyering  <meyering@redhat.com>
10394
10395         test-perror2.c: avoid warning about unused variable
10396         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10397
10398 2011-05-24  Eric Blake  <eblake@redhat.com>
10399
10400         perror: avoid spurious test failure on HP-UX
10401         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10402
10403         tests: fix logic bug in init.sh
10404         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10405         shell.
10406
10407 2011-05-24  Jim Meyering  <meyering@redhat.com>
10408
10409         utimensat: do not reference an out-of-scope buffer
10410         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10411         declared in an inner scope, yet "times" would be dereferenced outside
10412         the scope in which "ts" was valid.
10413         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10414         of ts[2] "out/up", so that the use of aliased "times" (via
10415         "times = ts;") does not end up referencing an out-of-scope "ts"
10416
10417         opendir-safer.c: don't clobber errno; don't close negative FD
10418         * lib/opendir-safer.c (opendir_safer):
10419         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10420         file descriptor, and more importantly, don't clobber the
10421         offending errno value with EINVAL.  Before, upon failure
10422         of dup_safer, we would pass the negative file descriptor to
10423         fdopendir, which would clobber errno.
10424
10425 2011-05-23  Bruno Haible  <bruno@clisp.org>
10426
10427         idcache: Fix module description.
10428         * modules/idcache (Include): Set to "idcache.h".
10429
10430 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10431
10432         gnulib-tool: fix portability problem with MacOS sed
10433         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10434         before the "}".  Problem reported by Leo in
10435         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10436         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10437         sed_extract_condition1, sed_extract_condition2.
10438
10439 2011-05-23  Bruno Haible  <bruno@clisp.org>
10440
10441         hash: Simplify autoconf macro.
10442         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10443
10444 2011-05-23  Bruno Haible  <bruno@clisp.org>
10445
10446         getugroups: Fix module description.
10447         * modules/getugroups (Include): Set to "getugroups.h".
10448
10449 2011-05-23  Bruno Haible  <bruno@clisp.org>
10450
10451         linkat: Simplify autoconf macro.
10452         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10453
10454 2011-05-23  Bruno Haible  <bruno@clisp.org>
10455             Eric Blake  <eblake@redhat.com>
10456
10457         linkat, renameat: Update dependencies.
10458         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10459         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10460         symlinkat.
10461
10462 2011-05-23  Jim Meyering  <meyering@redhat.com>
10463
10464         maint.mk: more tight_scope improvements
10465         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10466         (_gl_TS_headers): Define only in if-0'd block.
10467         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10468         sometimes we must *not* use it.  Adjust uses accordingly.
10469         (sc_tight_scope): Use much simpler grep-based test to determine
10470         whether we skip this rule.
10471
10472         maint.mk: generalize/improve the tight-scope rule
10473         * top/maint.mk: Emit a warning when the test is skipped.
10474         (_gl_TS_dir): Add $(srcdir)/ prefix.
10475         (_gl_TS_function_match): Simplify, rather than trying
10476         to enumerate common types.  Otherwise, it would fail to match an
10477         "extern unsigned char const *" declaration in idutils.
10478         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10479         a way to support use of that type of macro.
10480         (_gl_TS_var_match): Simplify regexp.
10481         (_gl_TS_obj_files): New configurable variable.
10482         (_gl_TS_headers): Likewise.
10483
10484 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10485
10486         verify: fix bug when gnulib <assert.h> is also included
10487         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10488         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10489         Perhaps there's a better way, but this fixes the immediate problem.
10490         Problem reported by Bruno Haible in
10491         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10492
10493 2011-05-22  Bruno Haible  <bruno@clisp.org>
10494
10495         xgetcwd: Simplify autoconf macro.
10496         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10497
10498 2011-05-22  Bruno Haible  <bruno@clisp.org>
10499
10500         New module 'mktime-internal'.
10501         * modules/mktime-internal: New file.
10502         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10503         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10504         mktime_internal as a C macro if libc has __mktime_internal.
10505         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10506         conditions.
10507         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10508
10509 2011-05-22  Bruno Haible  <bruno@clisp.org>
10510
10511         timegm: Correct mktime replacement statements.
10512         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10513         defining mktime as a C macro. This completes a 2009-07-28 commit.
10514
10515 2011-05-22  Bruno Haible  <bruno@clisp.org>
10516
10517         timegm: Simplify autoconf macro.
10518         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10519
10520 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10521
10522         clock-time: change to LGPLv2+.
10523         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10524         BSD-like but we have no mark for that; this is good enough for now.
10525
10526 2011-05-21  Bruno Haible  <bruno@clisp.org>
10527
10528         strerror_r: Fix comments.
10529         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10530
10531 2011-05-21  Bruno Haible  <bruno@clisp.org>
10532
10533         relocatable-prog-wrapper: Fix possible link error.
10534         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10535         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10536         (gl_FUNC_SETENV): ... to here.
10537         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10538         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10539
10540 2011-05-21  Bruno Haible  <bruno@clisp.org>
10541
10542         relocatable-prog-wrapper: Assume strerror() exists.
10543         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10544         m4/strerror.m4.
10545         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10546         * lib/relocwrapper.c: Remove mention of strerror module.
10547         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10548         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10549         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10550         C macro.
10551
10552 2011-05-21  Bruno Haible  <bruno@clisp.org>
10553
10554         select: Simplify replacement idiom.
10555         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10556         Win32 platforms.
10557         * lib/sys_select.in.h (select): Simplify accordingly.
10558         * modules/select (Depends-on): Likewise.
10559
10560 2011-05-21  Bruno Haible  <bruno@clisp.org>
10561
10562         mkdir-p: Simplify autoconf macro.
10563         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10564         gl_FUNC_LCHOWN.
10565
10566 2011-05-21  Eric Blake  <eblake@redhat.com>
10567
10568         strerror_r: avoid clobbering strerror on cygwin
10569         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10570         fall back instead to sys_errlist.
10571         * modules/strerror (configure.ac): Add witness.
10572         * tests/test-strerror_r.c (main): Enhance test.
10573         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10574         * tests/test-perror2.c (main): Free memory before exit.
10575
10576 2011-05-21  Bruno Haible  <bruno@clisp.org>
10577
10578         mkdtemp: Use gnulib naming conventions.
10579         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10580         * modules/mkdtemp (configure.ac): Update.
10581
10582 2011-05-20  Eric Blake  <eblake@redhat.com>
10583
10584         strerror_r: avoid corrupting errno on Solaris
10585         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10586         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10587
10588         strerror_r: avoid compiler warning
10589         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10590
10591         strerror_r: simplify AIX code
10592         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10593
10594         test-perror: avoid spurious failure on FreeBSD
10595         * modules/perror-tests (Depends-on): Add strerror, now that
10596         strerror_r no longer pulls it in.
10597
10598 2011-05-20  Bruno Haible  <bruno@clisp.org>
10599
10600         strerror_r-posix: Remove unused dependencies.
10601         * modules/strerror_r-posix (Depends-on): Remove strerror.
10602         Reported by Eric Blake.
10603
10604 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10605
10606         intprops: remove assumption about A|B representation
10607         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10608         is a valid integer if both A and B are.  Although this is true for
10609         all known practical hosts, the C standard doesn't guarantee it,
10610         and the code need not assume it.  Also, this change may work around
10611         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10613
10614 2011-05-20  Eric Blake  <eblake@redhat.com>
10615
10616         perror: work around FreeBSD bug
10617         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10618         is broken.  Move AC_LIBOBJ...
10619         * modules/perror (configure.ac): Here.
10620         * doc/posix-functions/perror.texi (perror): Document this.
10621         * tests/test-perror2.c (main): Enhance test.
10622
10623         test-perror: check for strerror interactions
10624         * tests/macros.h (STREQ): Add macro.
10625         * modules/perror-tests (Files): Add second test.
10626         * tests/test-perror2.c (main): New file.
10627         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10628
10629         test-perror: rewrite to use init script
10630         * modules/perror-tests (Files): Add init.sh.
10631         * tests/test-perror.sh: Use temporary directory.
10632
10633 2011-05-20  Jim Meyering  <meyering@redhat.com>
10634
10635         maint: replace misused "a" with "an"
10636         * doc/intprops.texi: "a integer"
10637         * doc/regex.texi: "a explanation"
10638         * lib/alignof.h: "a object"
10639         * lib/argmatch.h: "a explanation"
10640         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10641         * lib/stdint.in.h: "a integer"
10642         * lib/userspec.c: "a owner"
10643         * doc/gnulib.texi: Fix "a idea", and reword.
10644
10645 2011-05-19  Jim Meyering  <meyering@redhat.com>
10646
10647         maint: correct misuse of "a" and "an"
10648         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10649         * lib/argp-help.c: "an docum...": s/an/a/
10650         * lib/argp-parse.c: "An vector": s/An/A/
10651         * lib/execute.c: "an native": s/an/a/
10652         * lib/spawn-pipe.c: Likewise.
10653         * lib/gc.h: "an Gc_rc": s/an/a/
10654         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10655         * lib/fts.c: "an stat.st_dev": s/an/a/
10656
10657 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10658
10659         intprops-tests: work around HP-UX 11.23 cc bug with constants
10660         * tests/test-intprops.c (VERIFY): New macro.
10661         (main): Use it, instead of verify, to work around the compiler bug; see
10662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10663
10664         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10665         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10666         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10667         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10668         (_GL_REMAINDER_OVERFLOW): Use it.
10669
10670         intprops-tests: revert unsigned part of previous change
10671         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10672         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10673         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10675
10676 2011-05-19  Bruno Haible  <bruno@clisp.org>
10677
10678         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10679         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10680         strerror_r() returned without filling the buffer.
10681         Reported by Eric Blake.
10682
10683 2011-05-19  Eric Blake  <eblake@redhat.com>
10684
10685         strerror_r: guarantee unchanged errno
10686         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10687         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10688         failure.
10689         * tests/test-strerror_r.c (main): Enhance test.
10690
10691 2011-05-19  Bruno Haible  <bruno@clisp.org>
10692
10693         strerror_r: Reorder #if blocks.
10694         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10695         for consistency with the previous commit.
10696
10697 2011-05-19  Bruno Haible  <bruno@clisp.org>
10698
10699         perror: Avoid clobbering the strerror buffer when possible.
10700         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10701         * lib/strerror.c: Include it.
10702         * modules/strerror (Files): Add lib/strerror-impl.h.
10703         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10704         (my_strerror): New function, defined through lib/strerror-impl.h.
10705         (perror): Use it instead of strerror.
10706         * modules/perror (Files): Add lib/strerror-impl.h.
10707         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10708
10709 2011-05-19  Eric Blake  <eblake@redhat.com>
10710
10711         strerror_r: fix on newer cygwin
10712         * lib/strerror_r.c (strerror_r): Cygwin now has
10713         __xpg_strerror_r, use it.
10714
10715 2011-05-19  Bruno Haible  <bruno@clisp.org>
10716
10717         strerror_r: Avoid clobbering the strerror buffer when possible.
10718         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10719         (sys_nerr, sys_errlist): New declarations.
10720         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10721         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10722         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10723
10724 2011-05-19  Bruno Haible  <bruno@clisp.org>
10725
10726         strerror_r: Fix test failure on mingw.
10727         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10728         EXTEND_STRERROR_R.
10729         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10730         macros from errno.in.h instead.
10731
10732 2011-05-19  Eric Blake  <eblake@redhat.com>
10733
10734         strerror: relax test for Solaris
10735         * tests/test-strerror.c (main): Permit Solaris behavior.
10736         * tests/test-strerror_r.c (main): Likewise.
10737
10738         strerror: enforce POSIX ruling on strerror(0)
10739         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10740         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10741         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10742         * doc/posix-functions/strerror.texi (strerror): Document it.
10743         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10744         * tests/test-strerror.c (main): Strengthen test.
10745         * tests/test-strerror_r.c (main): Likewise.
10746
10747 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10748
10749         intprop-tests: port to older and more-pedantic compilers
10750         * modules/intprops-tests (Files): Add tests/macros.h.
10751         * tests/test-intprops.c: Include macros.h.
10752         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10753         it's no longer documented to expand to an integer constant expression.
10754         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10755         argument is floating point, as it's no longer documented to expand
10756         to an integer constant expression in that case.
10757         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10758         compiler bugs reported by Bruno Haible.  See
10759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10760         (U0, U1): New constants, to work around the same bugs.  Also,
10761         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10762
10763         intprops: work around C compiler bugs
10764         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10765         bug in Sun C 5.11 2010/08/13 and other compilers; see
10766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10767
10768         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10769         * doc/intprops.texi (Integer Type Determination): Fix
10770         documentation for TYPE_IS_INTEGER: it returns an constant
10771         expression, not an integer constant expression.  Fix doc for
10772         TYPE_SIGNED: it returns an integer constant expression only if its
10773         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10774         hardly worth documented that way....)
10775
10776 2011-05-18  Bruno Haible  <bruno@clisp.org>
10777
10778         strerror_r: Avoid clobbering the strerror buffer when possible.
10779         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10780         Handle gnulib defined errno values here. When strerror() returns NULL
10781         or an empty string, return EINVAL.
10782         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10783         gnulib defined errno values here.
10784         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10785
10786 2011-05-18  Eric Blake  <eblake@redhat.com>
10787
10788         fnmatch: avoid compiler warning
10789         * lib/fnmatch_loop.c (FCT): Use correct type.
10790         Reported by Matthias Bolte.
10791
10792 2011-05-13  Jim Meyering  <meyering@redhat.com>
10793
10794         maint.mk: three new prohibit_<HDR>_without_use rules
10795         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10796         (sc_prohibit_stdio-safer_without_use): Likewise.
10797         (sc_prohibit_xfreopen_without_use): Likewise.
10798
10799 2011-05-17  Jim Meyering  <meyering@redhat.com>
10800
10801         announce-gen: fail if the NEWS delta is empty
10802         If there's nothing noteworthy in NEWS, then either you forgot
10803         or you shouldn't be releasing.
10804         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10805
10806 2011-05-17  Pádraig Brady <P@draigBrady.com>
10807
10808         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10809         reserved symbols starting with double underscore from the check.
10810
10811 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10812
10813         intprops: add doc
10814         * doc/intprops.texi: New file, documenting intprops.
10815         * doc/gnulib.texi (Particular Modules): Include it.
10816
10817         verify: add doc to gnulib manual and fix example
10818         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10819         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10820         (Compile-time Assertions): Fix example so it can't overflow.
10821
10822 2011-05-17  Jim Meyering  <meyering@redhat.com>
10823
10824         warnings.m4: don't usurp save_CPPFLAGS variable name
10825         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10826
10827         doc: fix typo
10828         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10829
10830 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10831             Bruno Haible  <bruno@clisp.org>
10832
10833         doc: Tweak recent change.
10834         * README (Portability guidelines): Tweak new text.
10835         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10836         Interix 6.1.
10837
10838 2011-05-16  Eric Blake  <eblake@redhat.com>
10839
10840         inttypes: avoid autoconf warning
10841         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10842         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10843
10844 2011-05-16  Sam Steingold <sds@gnu.org>
10845         and Eric Blake  <eblake@redhat.com>
10846
10847         vc-list-files: accept multiple directory operands
10848         * build-aux/vc-list-files: Iterate over all remaining operands.
10849
10850 2011-05-16  Bruno Haible  <bruno@clisp.org>
10851
10852         Fix confusion regarding deprecated modules.
10853         * modules/calloc (Status, Notice): Mark module as deprecated, not
10854         obsolete.
10855         * modules/fnmatch-posix (Status, Notice): Likewise.
10856         * modules/getdate (Status, Notice): Likewise.
10857         * modules/getopt (Status, Notice): Likewise.
10858         * modules/malloc (Status, Notice): Likewise.
10859         * modules/pipe (Status, Notice): Likewise.
10860         * modules/realloc (Status, Notice): Likewise.
10861         * modules/rename-dest-slash (Status, Notice): Likewise.
10862         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10863         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10864         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10865         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10866         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10867
10868 2011-05-16  Bruno Haible  <bruno@clisp.org>
10869
10870         doc: List the target platforms.
10871         * doc/gnulib-intro.texi (Target Platforms): New section.
10872         * doc/gnulib.texi (Introduction): Update menu.
10873         * README (Portability guidelines): Refer to the new section. Update
10874         statement about oldest supported environment. Remove rationale why
10875         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10876         unportable C89 function.
10877         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10878         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10879
10880 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10881
10882         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10883
10884 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10885
10886         intprops-tests: new module
10887         * modules/intprops-tests, tests/test-intprops.c: New files.
10888
10889         intprops: add safe, portable integer overflow checking
10890         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10891         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10892         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10893         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10894         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10895         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10896         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10897         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10898         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10899         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10900         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10901
10902 2011-05-12  James Youngman  <jay@gnu.org>
10903
10904         Add a test for glibc's Bugzilla bug #12378.
10905         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10906         doesn't allow the literal matching of a lone "[" (which is
10907         required by POSIX).
10908         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10909
10910 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10911
10912         Sync glibc change fixing Bugzilla bug #12378.
10913         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10914         beginning and fall back to matching as normal character if the
10915         string ends before the matching ']' is found.  This is what POSIX
10916         requires.
10917
10918 2011-05-13  Eric Blake  <eblake@redhat.com>
10919
10920         getcwd-lgpl: relax test for FreeBSD
10921         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10922         issue.
10923         * tests/test-getcwd-lgpl.c (main): Relax test.
10924         Reported by Matthias Bolte.
10925
10926 2011-05-11  Eric Blake  <eblake@redhat.com>
10927
10928         test-fflush: silence compiler warning
10929         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10930
10931 2011-05-11  Bruno Haible  <bruno@clisp.org>
10932
10933         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10934         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10935         * modules/canonicalize (Depends-on): Add 'nocrash'.
10936         * modules/canonicalize-lgpl (Depends-on): Likewise.
10937         * doc/posix-functions/realpath.texi: Update platforms list.
10938         Reported by Ryan Schmidt <ryandesign@macports.org>.
10939
10940 2011-05-11  Bruno Haible  <bruno@clisp.org>
10941
10942         group-member: Declare function in <unistd.h>.
10943         * lib/unistd.in.h (group_member): New declaration.
10944         * lib/group-member.h: Remove file.
10945         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10946         * tests/test-unistd-c++.cc: Check signature of group_member.
10947         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10948         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10949         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10950         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10951         HAVE_GROUP_MEMBER.
10952         * modules/group-member (Files): Remove lib/group-member.h.
10953         (Depends-on): Add unistd. Specify conditions.
10954         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10955         (Include): Change to <unistd.h>.
10956         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10957         HAVE_GROUP_MEMBER.
10958         * NEWS: Mention the change.
10959         * lib/euidaccess.c: Don't include group-member.h.
10960
10961 2011-05-11  Bruno Haible  <bruno@clisp.org>
10962
10963         group-member: Document module.
10964         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10965         module.
10966
10967 2011-05-11  Bruno Haible  <bruno@clisp.org>
10968
10969         fclose: Fix mistake earlier today.
10970         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10971
10972 2011-05-11  Eric Blake  <eblake@redhat.com>
10973
10974         fclose: preserve fflush errors
10975         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10976         Reported by Jim Meyering.
10977
10978         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10979         * build-aux/bootstrap (check_versions): When no specific version
10980         is required, merely check that the app produces an exit status
10981         that indicates its existence.
10982
10983         maint.mk: drop redundant check
10984         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10985         the same but better.
10986
10987 2011-05-11  Bruno Haible  <bruno@clisp.org>
10988
10989         fclose: Fix possible link error.
10990         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10991         unregister_shadow_fd. Improve comments.
10992         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10993         Eric Blake.
10994
10995 2011-05-11  Jim Meyering  <meyering@redhat.com>
10996
10997         maint.mk: improve "can not" detection and generalize rule name
10998         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10999         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11000         Use the same technique as in sc_prohibit_doubled_word, so that
11001         we recognize "can not" also when the words are separated by a newline.
11002         Suggested by Eric Blake.
11003         (perl_filename_lineno_text_): Define.  Factored out of...
11004         (prohibit_doubled_word_): ...here.  Use the new definition.
11005         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11006         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11007         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11008
11009 2011-05-10  Eric Blake  <eblake@redhat.com>
11010
11011         fclose: avoid double close race when possible
11012         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11013         all but WINDOWS_SOCKETS.
11014
11015 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11016
11017         openat: correct new comment
11018         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11019
11020 2011-05-10  Jim Meyering  <meyering@redhat.com>
11021
11022         openat: add comments
11023         * lib/openat-proc.c (openat_proc_name): Add comments,
11024         mostly from Eric Blake.
11025
11026 2011-05-09  Eric Blake  <eblake@redhat.com>
11027
11028         openat: reduce syscalls in first probe of /proc
11029         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11030         be a directory.  Simplify the probe for .. bugs.
11031         * modules/openat (Depends-on): Drop same-inode.
11032         Reported by Bastien ROUCARIES.
11033
11034 2011-05-09  Jim Meyering  <meyering@redhat.com>
11035
11036         maint.mk: change semantics/name of tight_scope variables
11037         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11038         Rename variables to align with semantics that make them more useful.
11039
11040         maint.mk: tweak new rule's name not to impinge
11041         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11042         (sc_tight_scope): Use new rule name rather than $@-0.
11043
11044         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11045         * top/maint.mk (sc_tight_scope): New rule.
11046         (sc_tight_scope-0): New rule, ifdef'd out.
11047         (_gl_TS_dir): Default.
11048         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11049         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11050
11051 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11052
11053         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11054         Haible <bruno@clisp.org>.
11055
11056 2011-05-08  Bruno Haible  <bruno@clisp.org>
11057
11058         Comments.
11059         * m4/isnanf.m4: Add comment.
11060         * m4/isnanl.m4: Likewise.
11061
11062 2011-05-08  Bruno Haible  <bruno@clisp.org>
11063
11064         glob: Remove obsolete macro.
11065         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11066
11067 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11068
11069         intprops: Sun C 5.11 supports __typeof__
11070         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11071         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11072         which is new.
11073         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11074
11075         intprops: switch to usual gnulib indenting and naming
11076         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11077         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11078
11079         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11080
11081 2011-05-08  Jim Meyering  <meyering@redhat.com>
11082
11083         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11084         * top/maint.mk (release-prep): Use make's --no-print-directory
11085         option when generating the announcement.  This eliminates the
11086         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11087         generated announcement template.
11088
11089 2011-05-08  Bruno Haible  <bruno@clisp.org>
11090
11091         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11092         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11093         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11094
11095 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11096
11097         ignore-value, verify: Omit include files from lib_SOURCES.
11098         * modules/ignore-value, modules/verify (Makefile.am):
11099         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11100         that leads Automake to duplicate use of am__objects_... variables
11101         in Makefile.in.  See
11102         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11103
11104 2011-05-07  Bruno Haible  <bruno@clisp.org>
11105
11106         fclose: Simplify autoconf macro.
11107         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11108         defined.
11109
11110 2011-05-07  Bruno Haible  <bruno@clisp.org>
11111
11112         canonicalize-lgpl: Fix autoconf macro ordering bug.
11113         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11114         gl_STDLIB_H_DEFAULTS.
11115
11116 2011-05-06  Eric Blake  <eblake@redhat.com>
11117
11118         maintainer-makefile: make sc_po_check easier to tune
11119         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11120         to probe for strings, such as an alternate location for gnulib.
11121
11122         fclose: guarantee behavior on seekable stdin
11123         * modules/fclose (Depends-on): Add fflush.
11124         * doc/posix-functions/fclose.texi (fclose): Document this.
11125         * tests/test-fclose.c (main): Make test for this unconditional.
11126
11127 2011-05-06  Bruno Haible  <bruno@clisp.org>
11128
11129         fflush, fpurge: Relicense under LGPLv2+.
11130         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11131         * modules/fpurge (License): Likewise.
11132         With permission from Eric Blake and Jim Meyering.
11133         Suggested by Eric Blake.
11134
11135 2011-05-06  Karl Berry  <karl@gnu.org>
11136
11137         * MODULES.html.sh (func_all_modules): remove exit.
11138
11139 2011-05-06  Jim Meyering  <meyering@redhat.com>
11140
11141         maint.mk: use info-gnu@ as the default only for a stable release
11142         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11143         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11144         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11145         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11146
11147 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11148
11149         assert-h: new module, which supports C1X-style static_assert
11150         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11151         * lib/verify.h: Revamp so that this can be copied into assert.h,
11152         while retaining the ability to use it standalone as before.
11153         Rename private identifiers so as not to encroach on the
11154         standard C namespace, since this is now used by assert.h.
11155         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11156         the old verify_true.
11157         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11158         the old verify_true.  Use _GL_VERIFY_TYPE.
11159         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11160         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11161         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11162         defined when this file is copied into the replacement assert.h.
11163         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11164         and _Static_assert is not built in.
11165         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11166         defined, and use the new macros mentioned above.
11167         * doc/posix-headers/assert.texi: Document this.
11168
11169 2011-05-05  Bruno Haible  <bruno@clisp.org>
11170
11171         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11172         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11173         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11174         gl_REPLACE_FCLOSE here.
11175         * modules/fflush (Depends-on): Remove fclose.
11176         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11177         combination with module 'fclose'.
11178
11179 2011-05-05  Bruno Haible  <bruno@clisp.org>
11180
11181         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11182         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11183         gl_FUNC_FFLUSH.
11184         (gl_FUNC_FFLUSH): Use it.
11185         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11186         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11187         gl_REPLACE_FSEEKO here.
11188
11189 2011-05-05  Bruno Haible  <bruno@clisp.org>
11190
11191         tzset: Relicense under LGPL.
11192         * modules/tzset (License): Change to LGPL.
11193         No agreement needed; it's a no-op.
11194
11195         strtoimax, strtoumax: Relicense under LGPL.
11196         * modules/strtoimax (License): Change to LGPL.
11197         * modules/strtoumax (License): Likewise.
11198         With permission from Jim Meyering, Paul Eggert:
11199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11201
11202         getgroups: Relicense under LGPL.
11203         * modules/getgroups (License): Change to LGPL.
11204         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11208
11209         nanosleep: Relicense under LGPL.
11210         * modules/nanosleep (License): Change to LGPL.
11211         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11212         Haible:
11213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11214         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11217
11218         futimens: Relicense under LGPL.
11219         * modules/futimens (License): Change to LGPL.
11220         With permission from Eric Blake:
11221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11222
11223         fflush: Relicense under LGPL.
11224         * modules/fflush (License): Change to LGPL.
11225         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11229
11230         tmpfile: Relicense under LGPL.
11231         * modules/tmpfile (License): Change to LGPL.
11232         With permission from Ben Pfaff:
11233         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11234
11235         isfinite: Relicense under LGPL.
11236         * modules/isfinite (License): Change to LGPL.
11237         With permission from Ben Pfaff, Bruno Haible:
11238         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11240
11241         acosl..tanl: Relicense under LGPL.
11242         * modules/acosl (License): Change to LGPL.
11243         * modules/asinl (License): Likewise.
11244         * modules/atanl (License): Likewise.
11245         * modules/cosl (License): Likewise.
11246         * modules/expl (License): Likewise.
11247         * modules/logl (License): Likewise.
11248         * modules/sinl (License): Likewise.
11249         * modules/sqrtl (License): Likewise.
11250         * modules/tanl (License): Likewise.
11251         Source code originally from glibc and Paolo Bonzini. Agreements:
11252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11254
11255 2011-05-05  Bruno Haible  <bruno@clisp.org>
11256
11257         signal: Define sighandler_t.
11258         * lib/signal.in.h (sighandler_t): New type.
11259         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11260         whether sighandler_t is defined.
11261         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11262         * modules/signal (Depends-on): Add extensions.
11263         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11264         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11265         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11266
11267 2011-05-05  Eric Blake  <eblake@redhat.com>
11268
11269         maint: remove useless REPLACE_*_H macros
11270         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11271         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11272         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11273         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11274         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11275         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11276         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11277         * m4/btowc.m4: Update callers.
11278         * m4/dirfd.m4: Likewise.
11279         * m4/duplocale.m4: Likewise.
11280         * m4/fchdir.m4: Likewise.
11281         * m4/fdopendir.m4: Likewise.
11282         * m4/inet_ntop.m4: Likewise.
11283         * m4/inet_pton.m4: Likewise.
11284         * m4/ioctl.m4: Likewise.
11285         * m4/mbrlen.m4: Likewise.
11286         * m4/mbrtowc.m4: Likewise.
11287         * m4/mbsinit.m4: Likewise.
11288         * m4/mbsnrtowcs.m4: Likewise.
11289         * m4/mbsrtowcs.m4: Likewise.
11290         * m4/poll.m4: Likewise.
11291         * m4/setlocale.m4: Likewise.
11292         * m4/wcrtomb.m4: Likewise.
11293         * m4/wcsnrtombs.m4: Likewise.
11294         * m4/wcsrtombs.m4: Likewise.
11295         * m4/wctob.m4: Likewise.
11296         * m4/wcwidth.m4: Likewise.
11297         * modules/posix_spawn: Likewise.
11298         * modules/posix_spawn_file_actions_addclose: Likewise.
11299         * modules/posix_spawn_file_actions_adddup2: Likewise.
11300         * modules/posix_spawn_file_actions_addopen: Likewise.
11301         * modules/posix_spawn_file_actions_destroy: Likewise.
11302         * modules/posix_spawn_file_actions_init: Likewise.
11303         * modules/posix_spawnattr_destroy: Likewise.
11304         * modules/posix_spawnattr_getflags: Likewise.
11305         * modules/posix_spawnattr_getpgroup: Likewise.
11306         * modules/posix_spawnattr_getschedparam: Likewise.
11307         * modules/posix_spawnattr_getschedpolicy: Likewise.
11308         * modules/posix_spawnattr_getsigdefault: Likewise.
11309         * modules/posix_spawnattr_getsigmask: Likewise.
11310         * modules/posix_spawnattr_init: Likewise.
11311         * modules/posix_spawnattr_setflags: Likewise.
11312         * modules/posix_spawnattr_setpgroup: Likewise.
11313         * modules/posix_spawnattr_setschedparam: Likewise.
11314         * modules/posix_spawnattr_setschedpolicy: Likewise.
11315         * modules/posix_spawnattr_setsigdefault: Likewise.
11316         * modules/posix_spawnattr_setsigmask: Likewise.
11317         * modules/posix_spawnp: Likewise.
11318
11319 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11320
11321         Add option to do-release-commit-and-tag to specify branch.
11322         * build-aux/do-release-commit-and-tag: Add --branch.
11323
11324 2011-05-03  Bruno Haible  <bruno@clisp.org>
11325
11326         Avoid unnecessary compilation units, through conditional dependencies.
11327         * modules/accept (Depends-on): Add conditions to the dependencies.
11328         * modules/acosl (Depends-on): Likewise.
11329         * modules/argz (Depends-on): Likewise.
11330         * modules/asinl (Depends-on): Likewise.
11331         * modules/atanl (Depends-on): Likewise.
11332         * modules/atoll (Depends-on): Likewise.
11333         * modules/bind (Depends-on): Likewise.
11334         * modules/btowc (Depends-on): Likewise.
11335         * modules/canonicalize-lgpl (Depends-on): Likewise.
11336         * modules/ceil (Depends-on): Likewise.
11337         * modules/ceilf (Depends-on): Likewise.
11338         * modules/ceill (Depends-on): Likewise.
11339         * modules/chdir-long (Depends-on): Likewise.
11340         * modules/chown (Depends-on): Likewise.
11341         * modules/close (Depends-on): Likewise.
11342         * modules/connect (Depends-on): Likewise.
11343         * modules/cosl (Depends-on): Likewise.
11344         * modules/dirfd (Depends-on): Likewise.
11345         * modules/dprintf (Depends-on): Likewise.
11346         * modules/dprintf-posix (Depends-on): Likewise.
11347         * modules/error (Depends-on): Likewise.
11348         * modules/euidaccess (Depends-on): Likewise.
11349         * modules/expl (Depends-on): Likewise.
11350         * modules/faccessat (Depends-on): Likewise.
11351         * modules/fchdir (Depends-on): Likewise.
11352         * modules/fclose (Depends-on): Likewise.
11353         * modules/fcntl (Depends-on): Likewise.
11354         * modules/fdopendir (Depends-on): Likewise.
11355         * modules/fflush (Depends-on): Likewise.
11356         * modules/floor (Depends-on): Likewise.
11357         * modules/floorf (Depends-on): Likewise.
11358         * modules/floorl (Depends-on): Likewise.
11359         * modules/fnmatch (Depends-on): Likewise.
11360         * modules/fopen (Depends-on): Likewise.
11361         * modules/fprintf-posix (Depends-on): Likewise.
11362         * modules/frexp (Depends-on): Likewise.
11363         * modules/frexp-nolibm (Depends-on): Likewise.
11364         * modules/frexpl (Depends-on): Likewise.
11365         * modules/frexpl-nolibm (Depends-on): Likewise.
11366         * modules/fseek (Depends-on): Likewise.
11367         * modules/fsusage (Depends-on): Likewise.
11368         * modules/ftell (Depends-on): Likewise.
11369         * modules/ftello (Depends-on): Likewise.
11370         * modules/futimens (Depends-on): Likewise.
11371         * modules/getcwd (Depends-on): Likewise.
11372         * modules/getcwd-lgpl (Depends-on): Likewise.
11373         * modules/getdelim (Depends-on): Likewise.
11374         * modules/getdomainname (Depends-on): Likewise.
11375         * modules/getgroups (Depends-on): Likewise.
11376         * modules/gethostname (Depends-on): Likewise.
11377         * modules/getline (Depends-on): Likewise.
11378         * modules/getlogin_r (Depends-on): Likewise.
11379         * modules/getopt-posix (Depends-on): Likewise.
11380         * modules/getpeername (Depends-on): Likewise.
11381         * modules/getsockname (Depends-on): Likewise.
11382         * modules/getsockopt (Depends-on): Likewise.
11383         * modules/getsubopt (Depends-on): Likewise.
11384         * modules/getusershell (Depends-on): Likewise.
11385         * modules/glob (Depends-on): Likewise.
11386         * modules/grantpt (Depends-on): Likewise.
11387         * modules/iconv_open (Depends-on): Likewise.
11388         * modules/iconv_open-utf (Depends-on): Likewise.
11389         * modules/inet_ntop (Depends-on): Likewise.
11390         * modules/inet_pton (Depends-on): Likewise.
11391         * modules/ioctl (Depends-on): Likewise.
11392         * modules/isapipe (Depends-on): Likewise.
11393         * modules/isfinite (Depends-on): Likewise.
11394         * modules/isinf (Depends-on): Likewise.
11395         * modules/lchown (Depends-on): Likewise.
11396         * modules/ldexpl (Depends-on): Likewise.
11397         * modules/link (Depends-on): Likewise.
11398         * modules/linkat (Depends-on): Likewise.
11399         * modules/listen (Depends-on): Likewise.
11400         * modules/logl (Depends-on): Likewise.
11401         * modules/lstat (Depends-on): Likewise.
11402         * modules/mbrlen (Depends-on): Likewise.
11403         * modules/mbrtowc (Depends-on): Likewise.
11404         * modules/mbsinit (Depends-on): Likewise.
11405         * modules/mbsnrtowcs (Depends-on): Likewise.
11406         * modules/mbsrtowcs (Depends-on): Likewise.
11407         * modules/mbtowc (Depends-on): Likewise.
11408         * modules/memcmp (Depends-on): Likewise.
11409         * modules/mkdir (Depends-on): Likewise.
11410         * modules/mkdtemp (Depends-on): Likewise.
11411         * modules/mkfifo (Depends-on): Likewise.
11412         * modules/mkfifoat (Depends-on): Likewise.
11413         * modules/mknod (Depends-on): Likewise.
11414         * modules/mkostemp (Depends-on): Likewise.
11415         * modules/mkostemps (Depends-on): Likewise.
11416         * modules/mkstemp (Depends-on): Likewise.
11417         * modules/mkstemps (Depends-on): Likewise.
11418         * modules/mktime (Depends-on): Likewise.
11419         * modules/nanosleep (Depends-on): Likewise.
11420         * modules/open (Depends-on): Likewise.
11421         * modules/openat (Depends-on): Likewise.
11422         * modules/perror (Depends-on): Likewise.
11423         * modules/poll (Depends-on): Likewise.
11424         * modules/popen (Depends-on): Likewise.
11425         * modules/posix_spawn (Depends-on): Likewise.
11426         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11427         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11428         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11429         * modules/posix_spawnp (Depends-on): Likewise.
11430         * modules/pread (Depends-on): Likewise.
11431         * modules/printf-posix (Depends-on): Likewise.
11432         * modules/ptsname (Depends-on): Likewise.
11433         * modules/putenv (Depends-on): Likewise.
11434         * modules/pwrite (Depends-on): Likewise.
11435         * modules/readline (Depends-on): Likewise.
11436         * modules/readlink (Depends-on): Likewise.
11437         * modules/readlinkat (Depends-on): Likewise.
11438         * modules/recv (Depends-on): Likewise.
11439         * modules/recvfrom (Depends-on): Likewise.
11440         * modules/regex (Depends-on): Likewise.
11441         * modules/remove (Depends-on): Likewise.
11442         * modules/rename (Depends-on): Likewise.
11443         * modules/renameat (Depends-on): Likewise.
11444         * modules/rmdir (Depends-on): Likewise.
11445         * modules/round (Depends-on): Likewise.
11446         * modules/roundf (Depends-on): Likewise.
11447         * modules/roundl (Depends-on): Likewise.
11448         * modules/rpmatch (Depends-on): Likewise.
11449         * modules/select (Depends-on): Likewise.
11450         * modules/send (Depends-on): Likewise.
11451         * modules/sendto (Depends-on): Likewise.
11452         * modules/setenv (Depends-on): Likewise.
11453         * modules/setlocale (Depends-on): Likewise.
11454         * modules/setsockopt (Depends-on): Likewise.
11455         * modules/shutdown (Depends-on): Likewise.
11456         * modules/sigaction (Depends-on): Likewise.
11457         * modules/signbit (Depends-on): Likewise.
11458         * modules/sigprocmask (Depends-on): Likewise.
11459         * modules/sinl (Depends-on): Likewise.
11460         * modules/sleep (Depends-on): Likewise.
11461         * modules/snprintf (Depends-on): Likewise.
11462         * modules/snprintf-posix (Depends-on): Likewise.
11463         * modules/socket (Depends-on): Likewise.
11464         * modules/sprintf-posix (Depends-on): Likewise.
11465         * modules/sqrtl (Depends-on): Likewise.
11466         * modules/stat (Depends-on): Likewise.
11467         * modules/strchrnul (Depends-on): Likewise.
11468         * modules/strdup-posix (Depends-on): Likewise.
11469         * modules/strerror (Depends-on): Likewise.
11470         * modules/strerror_r-posix (Depends-on): Likewise.
11471         * modules/strndup (Depends-on): Likewise.
11472         * modules/strnlen (Depends-on): Likewise.
11473         * modules/strptime (Depends-on): Likewise.
11474         * modules/strsep (Depends-on): Likewise.
11475         * modules/strsignal (Depends-on): Likewise.
11476         * modules/strstr-simple (Depends-on): Likewise.
11477         * modules/strtod (Depends-on): Likewise.
11478         * modules/strtoimax (Depends-on): Likewise.
11479         * modules/strtok_r (Depends-on): Likewise.
11480         * modules/strtoumax (Depends-on): Likewise.
11481         * modules/symlink (Depends-on): Likewise.
11482         * modules/symlinkat (Depends-on): Likewise.
11483         * modules/tanl (Depends-on): Likewise.
11484         * modules/tcgetsid (Depends-on): Likewise.
11485         * modules/tmpfile (Depends-on): Likewise.
11486         * modules/trunc (Depends-on): Likewise.
11487         * modules/truncf (Depends-on): Likewise.
11488         * modules/truncl (Depends-on): Likewise.
11489         * modules/uname (Depends-on): Likewise.
11490         * modules/unlink (Depends-on): Likewise.
11491         * modules/unlockpt (Depends-on): Likewise.
11492         * modules/unsetenv (Depends-on): Likewise.
11493         * modules/usleep (Depends-on): Likewise.
11494         * modules/utimensat (Depends-on): Likewise.
11495         * modules/vasprintf (Depends-on): Likewise.
11496         * modules/vdprintf (Depends-on): Likewise.
11497         * modules/vdprintf-posix (Depends-on): Likewise.
11498         * modules/vfprintf-posix (Depends-on): Likewise.
11499         * modules/vprintf-posix (Depends-on): Likewise.
11500         * modules/vsnprintf (Depends-on): Likewise.
11501         * modules/vsnprintf-posix (Depends-on): Likewise.
11502         * modules/vsprintf-posix (Depends-on): Likewise.
11503         * modules/wcrtomb (Depends-on): Likewise.
11504         * modules/wcscasecmp (Depends-on): Likewise.
11505         * modules/wcscspn (Depends-on): Likewise.
11506         * modules/wcsdup (Depends-on): Likewise.
11507         * modules/wcsncasecmp (Depends-on): Likewise.
11508         * modules/wcsnrtombs (Depends-on): Likewise.
11509         * modules/wcspbrk (Depends-on): Likewise.
11510         * modules/wcsrtombs (Depends-on): Likewise.
11511         * modules/wcsspn (Depends-on): Likewise.
11512         * modules/wcsstr (Depends-on): Likewise.
11513         * modules/wcstok (Depends-on): Likewise.
11514         * modules/wcswidth (Depends-on): Likewise.
11515         * modules/wctob (Depends-on): Likewise.
11516         * modules/wctomb (Depends-on): Likewise.
11517         * modules/wctype (Depends-on): Likewise.
11518         * modules/wcwidth (Depends-on): Likewise.
11519         * modules/write (Depends-on): Likewise.
11520
11521 2011-05-03  Bruno Haible  <bruno@clisp.org>
11522
11523         Support for conditional dependencies.
11524         * doc/gnulib.texi (Module description): Document the syntax of
11525         conditional dependencies.
11526         * gnulib-tool: New option --conditional-dependencies.
11527         (func_usage): Document it.
11528         (cond_dependencies): New variable.
11529         (func_get_automake_snippet_conditional,
11530         func_get_automake_snippet_unconditional): New functions, extracted from
11531         func_get_automake_snippet.
11532         (func_get_automake_snippet): Use them.
11533         (sed_first_32_chars): New variable.
11534         (func_module_shellfunc_name): New function.
11535         (func_module_shellvar_name): New function.
11536         (func_module_conditional_name): New function.
11537         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11538         func_cond_module_condition): New functions.
11539         (func_modules_transitive_closure): Add support for conditional
11540         dependencies.
11541         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11542         conditional automake snippet in an automake conditional.
11543         (func_emit_autoconf_snippets): Emit shell functions that contain the
11544         code for conditional modules.
11545         (func_import, func_create_testdir): Update specification.
11546
11547 2011-05-03  Eric Blake  <eblake@redhat.com>
11548
11549         test-getaddrinfo: report error information
11550         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11551
11552 2011-05-03  Jim Meyering  <meyering@redhat.com>
11553
11554         bootstrap: avoid build failure when $GZIP is set
11555         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11556         program name.  If defined at all, it is supposed to list gzip options.
11557         Reported by Alan Curry in http://debbugs.gnu.org/8609
11558
11559 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11560
11561         readme-release: new module with release instructions
11562         * modules/readme-release: New module.
11563         * top/README-release: New file, from coreutils, grep, diffutils.
11564         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11565
11566 2011-05-02  Eric Blake  <eblake@redhat.com>
11567
11568         fflush: also replace fclose when fixing fflush
11569         * modules/fflush (Depends-on): Add fclose.
11570         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11571         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11572         memstreams with no backing fd.
11573         * doc/posix-functions/fclose.texi (fclose): Document the use of
11574         fflush module to fix the bug.
11575         * tests/test-fclose.c (main): Relax test when fclose is used in
11576         isolation.
11577
11578         fclose: add some tests
11579         * modules/fclose-tests: New test module.
11580         * tests/test-fclose.c: New file.
11581         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11582
11583         fclose: reduced dependencies
11584         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11585         simpler lseek.
11586         * lib/fclose.c (rpl_fclose): Likewise.
11587         Reported by Simon Josefsson.
11588
11589         exit: drop remaining clients
11590         * modules/argmatch (Depends-on): Replace exit with stdlib.
11591         * modules/copy-file (Depends-on): Likewise.
11592         * modules/execute (Depends-on): Likewise.
11593         * modules/exitfail (Depends-on): Likewise.
11594         * modules/obstack (Depends-on): Likewise.
11595         * modules/pagealign_alloc (Depends-on): Likewise.
11596         * modules/pipe-filter-gi (Depends-on): Likewise.
11597         * modules/pipe-filter-ii (Depends-on): Likewise.
11598         * modules/savewd (Depends-on): Likewise.
11599         * modules/spawn-pipe (Depends-on): Likewise.
11600         * modules/wait-process (Depends-on): Likewise.
11601         * modules/xsetenv (Depends-on): Likewise.
11602         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11603         * modules/git-merge-changelog (Depends-on): Likewise.
11604         * modules/long-options (Depends-on): Likewise.
11605         * modules/pt_chown (Depends-on): Likewise.
11606         * modules/sysexits (Depends-on): Likewise.
11607
11608         freading: relax license from LGPLv3+ to LGPLv2+
11609         * modules/freading (License): Relax LGPL version.
11610
11611 2011-05-02  Bruno Haible  <bruno@clisp.org>
11612
11613         fchdir: Remove unused dependencies.
11614         * modules/fchdir (Depends-on): Remove include_next.
11615
11616 2011-05-02  Bruno Haible  <bruno@clisp.org>
11617
11618         gnulib-tool: Refactor.
11619         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11620         from func_emit_autoconf_snippets.
11621         (func_emit_autoconf_snippets): Use it.
11622
11623 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11624
11625         * NEWS: Document removal of 'exit'.
11626         * modules/exit: Remove file.
11627
11628 2011-05-01  Bruno Haible  <bruno@clisp.org>
11629
11630         Update DEPENDENCIES.
11631         * DEPENDENCIES (gettext): Recommend the newest release.
11632         Reported by Simon Josefsson.
11633
11634 2011-05-01  Bruno Haible  <bruno@clisp.org>
11635
11636         gnulib-tool: Reduce code duplication.
11637         * gnulib-tool (func_emit_autoconf_snippets): New function.
11638         (func_import, func_create_testdir): Use it.
11639
11640 2011-04-30  Eric Blake  <eblake@redhat.com>
11641
11642         fclose: don't fail on non-seekable input stream
11643         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11644         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11645         since fflush is allowed to fail in that case.
11646
11647 2011-04-30  Bruno Haible  <bruno@clisp.org>
11648
11649         dup3: cleanup
11650         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11651
11652 2011-04-30  Bruno Haible  <bruno@clisp.org>
11653
11654         netdb: Make it work in C++ mode.
11655         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11656         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11657         module.
11658         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11659         gl_MODULE_INDICATOR_FOR_TESTS.
11660         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11661         * modules/netdb-c++-tests: New file.
11662         * tests/test-netdb-c++.cc: New file.
11663
11664 2011-04-30  Bruno Haible  <bruno@clisp.org>
11665
11666         New modules 'vfscanf', 'vscanf'.
11667         * modules/vfscanf: New file.
11668         * modules/vscanf: New file.
11669         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11670         here.
11671         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11672         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11673
11674 2011-04-30  Bruno Haible  <bruno@clisp.org>
11675
11676         passfd: Add comments.
11677         * lib/passfd.c: Add comments about platforms.
11678
11679 2011-04-30  Bruno Haible  <bruno@clisp.org>
11680
11681         sys_uio: Make <sys/uio.h> self-contained.
11682         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11683         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11684
11685 2011-04-30  Bruno Haible  <bruno@clisp.org>
11686
11687         sys_socket: Ensure 'struct iovec' definition.
11688         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11689         <sys/socket.h>.
11690         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11691
11692 2011-04-30  Bruno Haible  <bruno@clisp.org>
11693
11694         sys_uio: Protect definition of 'struct iovec'.
11695         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11696         it as a C struct.
11697
11698 2011-04-30  Bruno Haible  <bruno@clisp.org>
11699
11700         manywarnings: fix indentation
11701         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11702
11703 2011-04-30  Pádraig Brady <P@draigBrady.com>
11704
11705         manywarnings: add -Wno-missing-field-initializers if needed.
11706         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11707         option if it's needed to allow initialization with { 0, }
11708
11709 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11710
11711         announce-gen: cosmetic improvement
11712         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11713
11714 2011-04-29  Jim Meyering  <meyering@redhat.com>
11715
11716         vc-list-files: indent with spaces, not TABs
11717         * build-aux/vc-list-files: Convert leading TABs to spaces,
11718         to match the style of most other files in gnulib.
11719
11720         announce-gen: indent with spaces, not TABs
11721         * build-aux/announce-gen: Convert all TABs to spaces, to match
11722         the style of most other files in gnulib.
11723
11724 2011-04-29  Eric Blake  <eblake@redhat.com>
11725
11726         quotearg: avoid uninitialized variable use
11727         * lib/quotearg.c (quoting_options_from_style): Initialize
11728         remaining fields, and ensure that custom styles are only used via
11729         quoting_options rather than quoting_style.
11730
11731 2011-04-29  Jim Meyering  <meyering@redhat.com>
11732
11733         maint.mk: remove unused VC-tag variable
11734         * top/maint.mk (VC-tag): Remove unused variable.
11735
11736 2011-04-29  Bruno Haible  <bruno@clisp.org>
11737
11738         netdb: fix gai_strerror replacements
11739         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11740         * modules/netdb: Substitute it.
11741
11742 2011-04-29  Jim Meyering  <meyering@redhat.com>
11743
11744         test-getcwd.c: avoid new set-but-not-used warning
11745         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11746         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11747         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11748         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11749
11750         test-hash.c: avoid a new shadowing warning
11751         * tests/test-hash.c (main): Don't shadow "dup".
11752
11753 2011-04-28  Eric Blake  <eblake@redhat.com>
11754
11755         getaddrinfo: fix gai_strerror signature
11756         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11757         and work around mingw with UNICODE defined.
11758         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11759         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11760         * modules/netdb (Makefile.am): Substitute it.
11761         * lib/netdb.in.h (gai_strerror): Declare replacement.
11762         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11763         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11764         the fix.
11765
11766         getsockopt: avoid compiler warning
11767         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11768         Reported by Matthias Bolte.
11769
11770         tests: drop unused link dependency
11771         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11772         * modules/dirent-safer-tests (Makefile.am): Likewise.
11773         * modules/fdopendir-tests (Makefile.am): Likewise.
11774         * modules/mkfifoat-tests (Makefile.am): Likewise.
11775         * modules/openat-safer-tests (Makefile.am): Likewise.
11776         * modules/openat-tests (Makefile.am): Likewise.
11777         * modules/readlinkat-tests (Makefile.am): Likewise.
11778         * modules/symlinkat-tests (Makefile.am): Likewise.
11779         * modules/linkat-tests (Makefile.am): Likewise.
11780         (Depends-on): Switch to filenamecat-lgpl.
11781         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11782         LIBINTL.
11783         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11784         * tests/test-linkat.c (main): Don't require xalloc.
11785
11786         hash, mgetgroups: drop xalloc dependency
11787         * lib/hash.c (includes): Adjust includes.
11788         * lib/mgetgroups.c (includes): Likewise.
11789         (xgetgroups): Move...
11790         * lib/xgetgroups.c: ...to new file.
11791         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11792         * modules/xgetgroups: New file, split from...
11793         * modules/mgetgroups: ...here.
11794         (Depends-on): Add xalloc-oversized.
11795         * modules/hash (Depends-on): Likewise.
11796         * modules/hash-tests (Depends-on): Drop xalloc.
11797         (test_hash_LDADD): Drop unused library.
11798         * tests/test-hash.c (main): Break xalloc dependency.
11799         (includes): Drop unused include.
11800
11801         xalloc-oversized: new module
11802         * modules/xalloc-oversized: New module.
11803         * modules/xalloc (Depends-on): Add it.
11804         * lib/xalloc.h (xalloc_oversized): Move...
11805         * lib/xalloc-oversized.h: ...into new file.
11806
11807         utimecmp: drop dependency on xmalloc
11808         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11809         due to memory pressure.
11810         * modules/utimecmp (Depends-on): Drop xalloc.
11811
11812 2011-04-27  Eric Blake  <eblake@redhat.com>
11813
11814         getcwd: fix mingw bugs
11815         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11816         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11817         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11818
11819 2011-04-27  Bruno Haible  <bruno@clisp.org>
11820
11821         mkstemps: Ensure declaration on MacOS X 10.5.
11822         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11823         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11824         MacOS X.
11825
11826 2011-04-27  Bruno Haible  <bruno@clisp.org>
11827
11828         mkstemp: More documentation.
11829         * doc/posix-functions/mkstemp.texi: Document header file problem on
11830         MacOS X.
11831
11832 2011-04-27  Bruno Haible  <bruno@clisp.org>
11833
11834         mkstemp: Tweak configure message when cross-compiling.
11835         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11836         result as a guess.
11837
11838 2011-04-27  Bruno Haible  <bruno@clisp.org>
11839
11840         clean-temp: Clarify what it does.
11841         * lib/clean-temp.h: Add more comments.
11842         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11843         module.
11844         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11845         * doc/glibc-functions/mkstemps.texi: Likewise.
11846         * doc/glibc-functions/mkostemps.texi: Likewise.
11847
11848 2011-04-27  Eric Blake  <eblake@redhat.com>
11849
11850         fchdir: avoid extra chdir and fix test
11851         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11852         getcwd-lgpl.
11853         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11854         have to be canonical.
11855         (canonicalize_file_name): Drop unused macro.
11856         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11857
11858         filenamecat-lgpl: fix licence
11859         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11860         when it was first created.
11861
11862         linkat, renameat: add missing dependency
11863         * modules/linkat (Depends-on): Require getcwd-lgpl.
11864         * modules/renameat (Depends-on): Likewise.
11865
11866         tests: reduce dependencies
11867         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11868         * tests/test-renameat.c (main): Likewise.
11869         * modules/linkat-tests (Depends-on): Relax dependency.
11870         * modules/renameat-tests (Depends-on): Likewise.
11871         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11872         dependency explicit.
11873
11874         save-cwd: reduce default dependency
11875         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11876         * lib/save-cwd.c: Update comments.
11877         * NEWS: Document the semantic change.
11878
11879         getcwd: enhance tests
11880         * tests/test-getcwd-lgpl.c: New file, taken from...
11881         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11882         repeat long path stress tests from m4 probe.
11883         * modules/getcwd-lgpl-tests: New module.
11884         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11885         * m4/getcwd-abort-bug.m4: Update comment.
11886         * m4/getcwd-path-max.m4: Likewise.
11887
11888         getcwd-lgpl: new module
11889         * modules/getcwd-lgpl: New module.
11890         * lib/getcwd-lgpl.c: New file.
11891         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11892         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11893         * modules/getcwd (configure.ac): Set C witness.
11894         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11895
11896         getcwd: tweak comments
11897         * m4/getcwd-abort-bug.m4: Fix comments.
11898         * m4/getcwd-path-max.m4: Likewise.
11899         * m4/getcwd.m4: Likewise.
11900
11901 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11902         and Eric Blake  <eblake@redhat.com>
11903
11904         mkstemp: replace if system version uses wrong permissions
11905         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11906         read/write mode bits set in file created by mkstemp.
11907         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11908
11909 2011-04-27  Eric Blake  <eblake@redhat.com>
11910
11911         passfd: avoid compiler warning
11912         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11913         Reported by Laine Stump.
11914
11915 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11916
11917         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11918         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11919
11920 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11921         and Eric Blake  <eblake@redhat.com>
11922
11923         mkstemp: mention clean-temp module
11924         * lib/mkstemp.c: Add comment.
11925         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11926
11927 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11928
11929         inttypes: also provide default values for 32-bit tests
11930         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11931         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11932
11933 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11934
11935         strtoumax: remove dependency on strtoimax
11936         This is like the strtoull change of yesterday.
11937         * modules/strtoumax (Files): Add lib/strtoimax.c.
11938         (Depends-on): Remove strtoimax and add verify.
11939
11940         inttypes-incomplete: new module
11941         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11942         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11943         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11944         of gl_INTTYPES_H.
11945         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11946         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11947         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11948         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11949         * modules/strtoumax, modules/xstrtol (Depends-on):
11950         Depend on inttypes-incomplete, not inttypes.
11951         * modules/inttypes-incomplete: New module, containing the contents
11952         of the old modules/inttypes module, except that the Files: section
11953         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11954         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11955         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11956         (Depends-on): Depend only on inttypes-incomplete.
11957         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11958
11959         inttypes: omit now-redundant strtoimax and strtoumax work
11960         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11961         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11962
11963         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11964         This supports apps that need pointers to strtoimax and strtoumax,
11965         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11966         nonexistent functions.  See
11967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11968         et seq.
11969         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11970         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11971         a macro.
11972         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11973
11974 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11975
11976         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11977
11978 2011-04-25  Bruno Haible  <bruno@clisp.org>
11979
11980         strtol, strtoul: Mark modules as obsolete.
11981         * modules/strtol (Status, Notice): New sections.
11982         * modules/strtoul (Status, Notice): New sections.
11983
11984 2011-04-25  Bruno Haible  <bruno@clisp.org>
11985
11986         strtod: Remove check for strtod, unless supporting old platforms.
11987         * modules/strtod-obsolete: New file.
11988         * m4/strtod-obsolete.m4: New file.
11989         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11990         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11991         * modules/strtod (Depends-on): Add strtod-obsolete.
11992         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11993
11994 2011-04-25  Bruno Haible  <bruno@clisp.org>
11995
11996         strcase: Make module obsolete.
11997         * modules/strcase (Status, Notice): New sections.
11998
11999 2011-04-25  Bruno Haible  <bruno@clisp.org>
12000
12001         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12002         * modules/dup2-obsolete: New file.
12003         * m4/dup2-obsolete.m4: New file.
12004         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12005         gl_FUNC_DUP2_OBSOLETE is not also defined.
12006         * modules/dup2 (Depends-on): Add dup2-obsolete.
12007         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12008
12009 2011-04-25  Bruno Haible  <bruno@clisp.org>
12010
12011         strnlen: Avoid memchr related link error on old obsolete platforms.
12012         * modules/memchr-obsolete: New file.
12013         * m4/memchr-obsolete.m4: New file.
12014         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12015         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12016         * modules/memchr (Depends-on): Add memchr-obsolete.
12017         * modules/strnlen (Depends-on): Likewise.
12018         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12019
12020 2011-04-25  Jim Meyering  <meyering@redhat.com>
12021
12022         maint.mk: makefile_at_at_check extend and clean up
12023         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12024         in addition to */Makefile.am.
12025         Exempt legitimate uses of @VAR@ notation, e.g.,
12026         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12027         Remove obsolete coreutils-specific comment.
12028         Prompted by discussion here:
12029         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12030
12031 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12032
12033         strtoul: remove dependency on strtol
12034         This is so that 'configure' need not check for strtol merely because
12035         the application needs strtoul.
12036         * modules/strtoul (Files): Add lib/strtol.c.
12037         (Depends-on): Remove strtol.
12038
12039         strtoull: remove dependency on strtoul
12040         This is like the strtoll change.
12041         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12042         (Depends-on): Remove strtoul.
12043
12044         strtoll: remove dependency on strtol
12045         This is so that 'configure' need not check for strtol merely because
12046         the application needs strtoll.
12047         * modules/strtoll (Files): Add lib/strtol.c.
12048         (Depends-on): Remove strtol.
12049
12050 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12051
12052         inttypes: Move some configure check to module 'imaxdiv'.
12053         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12054         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12055         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12056
12057 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12058
12059         inttypes: Move some configure check to module 'imaxabs'.
12060         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12061         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12062         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12063
12064 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12065
12066         inttypes: Remove configure tests that are not needed since 2009-12-31.
12067         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12068         gl_cv_header_working_inttypes_h.
12069
12070 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12071
12072         * modules/strnlen (Depends-on): Remove memchr.
12073         The strnlen implementation doesn't need the memchr module's fixes; see
12074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12075
12076         strtol: remove dependency on wchar
12077         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12078         * modules/strtol (Depends-on): Remove wchar.
12079
12080 2011-04-21  Eric Blake  <eblake@redhat.com>
12081
12082         passfd: fix test regression on Linux
12083         * modules/passfd-tests (configure.ac): Correct socketpair check.
12084
12085         passfd: speed up configure and drop unused code
12086         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12087         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12088         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12089         Instead of probing at configure for unix_scm_rights_bsd44_way,
12090         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12091         check to a struct member probe.
12092         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12093         (sendfd, recvfd): Update preprocessor checks.
12094         * modules/passfd (Files): Reflect rename, and drop unused file.
12095         (Depends-on): Drop unused dependency.
12096
12097         passfd: allow compilation on mingw
12098         * modules/sys_socket (Depends-on): Add sys_uio.
12099         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12100         iovec and a minimal struct msghdr.
12101         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12102         * tests/test-sys_socket.c (main): Enhance test.
12103         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12104         guaranteed to provide what we need.
12105         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12106         * modules/passfd-tests (Depends-on): Add sys_wait.
12107         * tests/test-passfd.c (main): Skip test on mingw, for now.
12108         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12109         partial 'struct msghdr' implementation.
12110
12111         sys_uio: new module
12112         * modules/sys_uio: New module.
12113         * modules/sys_uio-tests: Likewise.
12114         * lib/sys_uio.in.h: New file.
12115         * m4/sys_uio_h.m4: Likewise.
12116         * tests/test-sys_uio.c: Likewise.
12117         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12118         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12119
12120 2011-04-20  Jim Meyering  <meyering@redhat.com>
12121
12122         useless-if-before-free: avoid false-positive
12123         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12124         disjunct so that it too requires a terminating ";".  Without that,
12125         this script would identify as useless one statement from gcc that
12126         was not:
12127           if (aligned_ptr)
12128             free (((void **) aligned_ptr) [-1]);
12129
12130 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12131
12132         doc: update users.txt.
12133         * users.txt: Add barcode.
12134
12135 2011-04-19  Bruno Haible  <bruno@clisp.org>
12136
12137         ioctl: Remove link dependency on native Windows.
12138         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12139         (gl_close_fn, gl_ioctl_fn): New types.
12140         (struct fd_hook): Renamed from struct close_hook. Change type of
12141         private_close_fn field. Add private_ioctl_fn field.
12142         (close_hook_fn): Add parameter for primary close method.
12143         (execute_close_hooks, execute_all_close_hooks): Likewise.
12144         (ioctl_hook_fn): New type.
12145         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12146         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12147         argument.
12148         (unregister_fd_hook): Renamed from unregister_close_hook.
12149         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12150         Don't include <unistd.h>.
12151         (close): Remove undef.
12152         (anchor): Update.
12153         (execute_close_hooks): Add argument for primary close method.
12154         (execute_all_close_hooks): Likewise.
12155         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12156         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12157         argument. Allow each argument to be NULL.
12158         (unregister_fd_hook): Renamed from unregister_close_hook.
12159         * lib/close.c (rpl_close): Pass 'close' function pointer to
12160         execute_all_close_hooks.
12161         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12162         (primary_ioctl): New function.
12163         (ioctl): Don't call ioctlsocket here. Instead, call
12164         execute_all_ioctl_hooks.
12165         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12166         close method.
12167         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12168         (fd_sockets_hook): Renamed from close_sockets_hook.
12169         (gl_sockets_startup, gl_sockets_cleanup): Update.
12170         * modules/fd-hook: Renamed from modules/close-hook. Update.
12171         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12172         * modules/sockets (Depends-on): Likewise.
12173         * modules/ioctl (Depends-on): Add fd-hook.
12174         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12175         GNULIB_SOCKET.
12176
12177 2011-04-19  Bruno Haible  <bruno@clisp.org>
12178
12179         Move the support of O_NONBLOCK in open() to the 'open' module.
12180         * modules/nonblocking (Depends-on): Remove 'open'.
12181         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12182         gl_cv_have_open_O_NONBLOCK.
12183         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12184         O_NONBLOCK support.
12185         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12186
12187 2011-04-17  Bruno Haible  <bruno@clisp.org>
12188
12189         pipe2: Simplify code.
12190         * lib/pipe2.c (pipe2): Reduce code duplication.
12191
12192 2011-04-17  Bruno Haible  <bruno@clisp.org>
12193
12194         nonblocking: Add comment.
12195         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12196
12197 2011-04-17  Bruno Haible  <bruno@clisp.org>
12198
12199         nonblocking: Add tests for sockets.
12200         * tests/test-nonblocking-socket.sh: New file.
12201         * tests/test-nonblocking-socket-main.c: New file.
12202         * tests/test-nonblocking-socket-child.c: New file.
12203         * tests/test-nonblocking-socket.h: New file.
12204         * tests/socket-server.h: New file.
12205         * tests/socket-client.h: New file.
12206         * modules/nonblocking-socket-tests: New file.
12207         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12208
12209 2011-04-17  Bruno Haible  <bruno@clisp.org>
12210
12211         nonblocking: Add tests for pipes.
12212         * tests/test-nonblocking-pipe.sh: New file.
12213         * tests/test-nonblocking-pipe-main.c: New file.
12214         * tests/test-nonblocking-pipe-child.c: New file.
12215         * tests/test-nonblocking-pipe.h: New file.
12216         * tests/test-nonblocking-writer.h: New file.
12217         * tests/test-nonblocking-reader.h: New file.
12218         * tests/test-nonblocking-misc.h: New file.
12219         * modules/nonblocking-pipe-tests: New file.
12220         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12221
12222 2011-04-16  Bruno Haible  <bruno@clisp.org>
12223
12224         gettext: Clarify the needed programmer actions.
12225         * modules/gettext (Notice): New field.
12226         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12227
12228 2011-04-16  Bruno Haible  <bruno@clisp.org>
12229
12230         strchrnul: Tweak last commit.
12231         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12232         bug.
12233         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12234         as in _GL_FUNCDECL_SYS.
12235         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12236         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12237
12238 2011-04-15  Eric Blake  <eblake@redhat.com>
12239
12240         strchrnul: work around cygwin bug
12241         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12242         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12244         * modules/string (Makefile.am): Substitute it.
12245         * lib/string.in.h (strchrnul): Use it.
12246
12247 2011-04-15  Bruno Haible  <bruno@clisp.org>
12248
12249         Don't require lib/stdio-write.c when only module 'stdio' is used.
12250         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12251         invocation.
12252         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12253
12254 2011-04-14  Bruno Haible  <bruno@clisp.org>
12255
12256         Support non-blocking pipe I/O in read() on native Windows.
12257         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12258         (read): New declaration.
12259         * lib/read.c: New file.
12260         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12261         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12262         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12263         vscanf): New declarations.
12264         * lib/stdio-read.c: New file.
12265         * m4/read.m4: New file.
12266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12267         REPLACE_READ.
12268         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12269         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12270         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12271         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12272         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12273         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12274         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12275         * modules/read: New file.
12276         * modules/nonblocking (Files): Add lib/stdio-read.c.
12277         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12278         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12279         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12280         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12281         * modules/pread (Depends-on): Add read.
12282         * modules/safe-read (Depends-on): Likewise.
12283         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12284         gets, scanf, vfscanf, vscanf): Verify signatures.
12285         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12286         problem with non-blocking pipes.
12287         * doc/posix-functions/fgetc.texi: Likewise.
12288         * doc/posix-functions/fgets.texi: Likewise.
12289         * doc/posix-functions/fread.texi: Likewise.
12290         * doc/posix-functions/fscanf.texi: Likewise.
12291         * doc/posix-functions/getc.texi: Likewise.
12292         * doc/posix-functions/getchar.texi: Likewise.
12293         * doc/posix-functions/gets.texi: Likewise.
12294         * doc/posix-functions/scanf.texi: Likewise.
12295         * doc/posix-functions/vfscanf.texi: Likewise.
12296         * doc/posix-functions/vscanf.texi: Likewise.
12297
12298 2011-04-14  Bruno Haible  <bruno@clisp.org>
12299
12300         Support non-blocking pipe I/O in write() on native Windows.
12301         * lib/write.c (rpl_write): Split a write request that failed merely
12302         because the byte count was larger than the pipe buffer's size.
12303         * doc/posix-functions/write.texi: Mention the problem with large byte
12304         counts.
12305
12306 2011-04-14  Bruno Haible  <bruno@clisp.org>
12307
12308         wchar: Ensure that wchar_t gets defined on uClibc.
12309         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12310         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12311
12312 2011-04-13  Bruno Haible  <bruno@clisp.org>
12313
12314         safe-write, full-read: Avoid unnecessary compilation units.
12315         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12316         (Depends-on): Remove safe-read. Add ssize_t.
12317         * modules/full-read (Files): Add lib/full-write.c.
12318         (Depends-on): Add full-write.
12319
12320 2011-04-13  Bruno Haible  <bruno@clisp.org>
12321
12322         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12323         * modules/pwrite (Depends-on): Add 'write'.
12324
12325 2011-04-13  Bruno Haible  <bruno@clisp.org>
12326
12327         Support non-blocking pipe I/O in write() on native Windows.
12328         * lib/unistd.in.h (write): Enable replacement also if
12329         GNULIB_UNISTD_H_NONBLOCKING is 1.
12330         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12331         (rpl_write): When failing to write on a non-blocking pipe, change
12332         errno from ENOSPC to EAGAIN.
12333         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12334         putchar, puts, vfprintf, vprintf): Enable replacement also if
12335         GNULIB_STDIO_H_NONBLOCKING is 1.
12336         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12337         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12338         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12339         CALL_WITH_SIGPIPE_EMULATION.
12340         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12341         * m4/nonblocking.m4: New file.
12342         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12343         for non-blocking I/O support.
12344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12345         GNULIB_UNISTD_H_NONBLOCKING.
12346         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12347         required for non-blocking I/O support.
12348         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12349         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12350         lib/stdio-write.c, m4/asm-underscore.m4.
12351         (Depends-on): Add stdio, unistd.
12352         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12353         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12354         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12355         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12356         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12357         problem with non-blocking pipes.
12358         * doc/posix-functions/fputc.texi: Likewise.
12359         * doc/posix-functions/fputs.texi: Likewise.
12360         * doc/posix-functions/fwrite.texi: Likewise.
12361         * doc/posix-functions/printf.texi: Likewise.
12362         * doc/posix-functions/putc.texi: Likewise.
12363         * doc/posix-functions/putchar.texi: Likewise.
12364         * doc/posix-functions/puts.texi: Likewise.
12365         * doc/posix-functions/vfprintf.texi: Likewise.
12366         * doc/posix-functions/vprintf.texi: Likewise.
12367         * doc/posix-functions/write.texi: Likewise.
12368
12369 2011-04-10  Jim Meyering  <meyering@redhat.com>
12370
12371         maint.mk: prohibit doubled words
12372         Detect them also when they're separated by a newline.
12373         There are 3 ways to customize it:
12374           - disable the test on a per file basis, as usual with rules using
12375             $(VC_LIST_EXCEPT)
12376           - replace the default doubled-word-selecting regexp (affects all files)
12377           - ignore a particular file-vs-doubled-word match
12378         I nearly used that last one to ignore the "is is" match in
12379         coreutils' NEWS file, since the text was "ls -is is ..."
12380         To do that, I would have added this line to cfg.mk:
12381           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12382         but it would have ignored any "is is" match in NEWS.
12383         Low probability, but still...
12384         Instead, I changed the text, slightly:
12385           -  ls -is is now consistent with ls -lis in ignoring values returned
12386           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12387         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12388         (prohibit_doubled_word_): Define.
12389         (sc_prohibit_doubled_word): New rule.
12390         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12391
12392 2011-04-10  Jim Meyering  <meyering@redhat.com>
12393
12394         maint: fix doubled-word typo in comment
12395         * m4/gethostname.m4: s/is is/it is/
12396         * m4/getdomainname.m4: Likewise.
12397
12398 2011-04-10  Jim Meyering  <meyering@redhat.com>
12399
12400         maint: remove doubled word: s/it it/it/
12401         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12402
12403 2011-04-10  Jim Meyering  <meyering@redhat.com>
12404
12405         maint.mk: remove useless semicolon and backslash
12406         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12407         semicolon and backslash.
12408
12409 2011-04-10  Bruno Haible  <bruno@clisp.org>
12410
12411         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12412         * modules/stdint-tests (Depends-on): Add wchar.
12413
12414 2011-04-10  Jim Meyering  <meyering@redhat.com>
12415
12416         maint: remove doubled words in comments, e.g., s/a a/a/
12417         * lib/strptime.c (day_of_the_week): s/the the/the/
12418         * tests/test-chown.h (test_chown): s/a a/a/
12419
12420         test-chown.h: correct a cast
12421         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12422         when the destination is a stat.st_gid.
12423
12424 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12425
12426         getaddrinfo: Fix test for sa_len member.
12427         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12428         include <sys/types.h> before <sys/socket.h>.
12429
12430 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12431
12432         maint: change "can not" to "cannot"
12433         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12434         boundaries.
12435
12436 2011-04-09  Jim Meyering  <meyering@redhat.com>
12437
12438         maint: change "a a" to "a"
12439         * tests/test-lchown.h (test_lchown): s/a a/a/
12440
12441         maint.mk: prohibit \<the the\>
12442         * top/maint.mk (sc_prohibit_the_the): New rule.
12443
12444         maint: fix "the the" in comment
12445         * lib/count-one-bits.h: s/the the/the/
12446
12447         maint: change "can not" to "cannot"
12448         But do not change the occurrences in maintain.texi or in
12449         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12450         * doc/gnulib-tool.texi: s/can not/cannot/
12451         * doc/posix-functions/accept.texi (accept): Likewise.
12452         * doc/posix-functions/socket.texi (socket): Likewise.
12453         * lib/mbrtowc.c: Likewise.
12454
12455         maint.mk: prohibit use of "can not"
12456         * top/maint.mk (sc_prohibit_can_not): New rule.
12457         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12458
12459 2011-04-09  Bruno Haible  <bruno@clisp.org>
12460
12461         careadlinkat: Guard against misuse of careadlinkatcwd.
12462         * lib/careadlinkat.c: Include <stdlib.h>.
12463         (careadlinkatcwd): Check that the fd argument is as expected.
12464
12465 2011-04-09  Bruno Haible  <bruno@clisp.org>
12466
12467         careadlinkat: Use common coding style.
12468         * lib/careadlinkat.c: Move gnulib includes after system includes.
12469
12470 2011-04-09  Bruno Haible  <bruno@clisp.org>
12471
12472         careadlinkat: Clarify specification.
12473         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12474         (careadlinkatcwd): Add comment.
12475         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12476
12477 2011-04-09  Bruno Haible  <bruno@clisp.org>
12478
12479         areadlinkat: Avoid link error on many platforms.
12480         * modules/areadlinkat (Depends-on): Add areadlink.
12481
12482 2011-04-09  Bruno Haible  <bruno@clisp.org>
12483
12484         allocator, careadlinkat: Fix double-inclusion guard.
12485         * lib/allocator.h: Fix double-inclusion guard.
12486         * lib/careadlinkat.h: Likewise.
12487
12488 2011-04-09  Bruno Haible  <bruno@clisp.org>
12489
12490         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12491         * lib/relocwrapper.c: Update dependencies hierarchy.
12492         * build-aux/install-reloc: Update list of files to be compiled.
12493         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12494         lib/allocator.[hc].
12495
12496 2011-04-08  Eric Blake  <eblake@redhat.com>
12497
12498         strftime: silence gnulib-tool warning
12499         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12500
12501 2011-04-08  Bruno Haible  <bruno@clisp.org>
12502
12503         verify: Fix syntax error with GCC 4.6 in C++ mode.
12504         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12505         (HAVE_STATIC_ASSERT): New macro.
12506         (verify_true, verify): Use 'static_assert' if it is supported and
12507         '_Static_assert' is not supported.
12508
12509 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12510
12511         allocator: New module.
12512         * modules/allocator, lib/allocator.c: New files.
12513         * lib/allocator.h (stdlib_allocator): New decl.
12514         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12515         Remove.  Do not include <stdlib.h>.
12516         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12517         * modules/careadlinkat (Files): Remove lib/allocator.h.
12518         (Depends-on): Add allocator.
12519
12520         stdlib: let modules use system malloc, realloc
12521         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12522         if !_GL_USE_STDLIB_ALLOC.
12523         (malloc, realloc): Limit this change to a smaller scope.
12524
12525         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12526         (malloc, realloc): Don't #undef; no longer needed.
12527         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12528         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12529         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12530         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12531         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12532         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12533         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12534         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12535
12536         careadlinkat: rename members to avoid problem
12537         * lib/allocator.h (struct allocator): Rename members from
12538         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12539         and realloc are #define'd.  Reported by Eric Blake in
12540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12541         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12542
12543 2011-04-08  Eric Blake  <eblake@redhat.com>
12544
12545         nonblocking: reduce dependency
12546         * tests/test-nonblocking.c: Only test sockets when in use.
12547         * modules/nonblocking-tests (Depends-on): Drop socket.
12548         (Makefile.am): Link even if sockets are not present.
12549         * modules/pipe2-tests (Makefile.am): Likewise.
12550         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12551
12552         pipe2: fix O_NONBLOCK support on mingw
12553         * modules/pipe2 (Depends-on): Add nonblocking.
12554         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12555         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12556         * tests/test-nonblocking.c (main): Likewise.
12557         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12558
12559         fcntl-h: fix O_ACCMODE on cygwin
12560         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12561         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12562
12563         pipe-filter: drop O_NONBLOCK workarounds
12564         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12565         * modules/pipe-filter-ii (Depends-on): Likewise.
12566         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12567
12568         nonblocking: provide O_NONBLOCK for mingw
12569         * modules/nonblocking (Depends-on): Add open.
12570         (configure.ac): Set new witness macro.
12571         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12572         * modules/fcntl-h (Makefile.am): Substitute it.
12573         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12574         nonblocking module is in use.
12575         * lib/nonblocking.c: Adjust portability test.
12576         * lib/open.c (open): Don't let native open see gnulib flag.
12577         * tests/test-fcntl-h.c (main): Enhance test.
12578         * tests/test-open.h (test_open): Likewise.
12579         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12580
12581         careadlinkat: fix compilation error on mingw
12582         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12583         within struct allocator.
12584
12585 2011-04-06  Eric Blake  <eblake@redhat.com>
12586
12587         binary-io: relicense under LGPLv2+
12588         * modules/binary-io (License): Relax to LGPLv2+.
12589         Requested for libvirt, and required by pipe2.
12590
12591 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12592
12593         verify: use _Static_assert if available
12594         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12595         (verify_true, verify): Use it if available.  This generates better
12596         diagnostics with GCC 4.6.0 and later.
12597
12598 2011-04-05  Bruno Haible  <bruno@clisp.org>
12599
12600         Remove leftover generated .h files after config.status changed.
12601
12602         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12603         GL_GENERATE_ALLOCA_H.
12604         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12605         GL_GENERATE_ALLOCA_H evaluates to false.
12606
12607         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12608         GL_GENERATE_ARGZ_H.
12609         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12610         evaluates to false.
12611
12612         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12613         GL_GENERATE_BYTESWAP_H.
12614         * modules/byteswap (Makefile.am): Remove byteswap.h if
12615         GL_GENERATE_BYTESWAP_H evaluates to false.
12616
12617         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12618         GL_GENERATE_ERRNO_H.
12619         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12620         evaluates to false.
12621
12622         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12623         GL_GENERATE_FLOAT_H.
12624         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12625         evaluates to false.
12626
12627         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12628         GL_GENERATE_FNMATCH_H.
12629         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12630         GL_GENERATE_FNMATCH_H evaluates to false.
12631
12632         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12633         GL_GENERATE_GLOB_H.
12634         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12635         evaluates to false.
12636
12637         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12638         automake conditional GL_GENERATE_ICONV_H.
12639         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12640         evaluates to false.
12641
12642         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12643         GL_GENERATE_NETINET_IN_H.
12644         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12645         GL_GENERATE_NETINET_IN_H evaluates to false.
12646
12647         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12648         conditional GL_GENERATE_PTHREAD_H.
12649         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12650         * modules/pthread (Makefile.am): Remove pthread.h if
12651         GL_GENERATE_PTHREAD_H evaluates to false.
12652
12653         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12654         GL_GENERATE_SCHED_H.
12655         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12656         evaluates to false.
12657
12658         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12659         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12660         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12661         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12662
12663         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12664         GL_GENERATE_STDARG_H.
12665         * modules/stdarg (Makefile.am): Remove stdarg.h if
12666         GL_GENERATE_STDARG_H evaluates to false.
12667
12668         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12669         GL_GENERATE_STDBOOL_H.
12670         * modules/stdbool (Makefile.am): Remove stdbool.h if
12671         GL_GENERATE_STDBOOL_H evaluates to false.
12672
12673         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12674         conditional GL_GENERATE_STDDEF_H.
12675         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12676         * modules/stddef (Makefile.am): Remove stddef.h if
12677         GL_GENERATE_STDDEF_H evaluates to false.
12678
12679         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12680         GL_GENERATE_STDINT_H.
12681         * modules/stdint (Makefile.am): Remove stdint.h if
12682         GL_GENERATE_STDINT_H evaluates to false.
12683
12684         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12685         GL_GENERATE_SYSEXITS_H.
12686         * modules/sysexits (Makefile.am): Remove sysexits.h if
12687         GL_GENERATE_SYSEXITS_H evaluates to false.
12688
12689         Reported by Karl Berry and Ralf Wildenhues.
12690
12691 2011-04-05  Bruno Haible  <bruno@clisp.org>
12692
12693         Ensure to rebuild generated .h files when config.status has changed.
12694         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12695         config.status.
12696         * modules/ctype (Makefile.am): Likewise.
12697         * modules/dirent (Makefile.am): Likewise.
12698         * modules/errno (Makefile.am): Likewise.
12699         * modules/fcntl-h (Makefile.am): Likewise.
12700         * modules/float (Makefile.am): Likewise.
12701         * modules/getopt-posix (Makefile.am): Likewise.
12702         * modules/glob (Makefile.am): Likewise.
12703         * modules/iconv-h (Makefile.am): Likewise.
12704         * modules/inttypes (Makefile.am): Likewise.
12705         * modules/langinfo (Makefile.am): Likewise.
12706         * modules/locale (Makefile.am): Likewise.
12707         * modules/math (Makefile.am): Likewise.
12708         * modules/netdb (Makefile.am): Likewise.
12709         * modules/netinet_in (Makefile.am): Likewise.
12710         * modules/poll-h (Makefile.am): Likewise.
12711         * modules/pthread (Makefile.am): Likewise.
12712         * modules/pty (Makefile.am): Likewise.
12713         * modules/sched (Makefile.am): Likewise.
12714         * modules/search (Makefile.am): Likewise.
12715         * modules/selinux-h (Makefile.am): Likewise.
12716         * modules/signal (Makefile.am): Likewise.
12717         * modules/spawn (Makefile.am): Likewise.
12718         * modules/stdarg (Makefile.am): Likewise.
12719         * modules/stdbool (Makefile.am): Likewise.
12720         * modules/stddef (Makefile.am): Likewise.
12721         * modules/stdint (Makefile.am): Likewise.
12722         * modules/stdio (Makefile.am): Likewise.
12723         * modules/stdlib (Makefile.am): Likewise.
12724         * modules/string (Makefile.am): Likewise.
12725         * modules/strings (Makefile.am): Likewise.
12726         * modules/sys_file (Makefile.am): Likewise.
12727         * modules/sys_ioctl (Makefile.am): Likewise.
12728         * modules/sys_select (Makefile.am): Likewise.
12729         * modules/sys_socket (Makefile.am): Likewise.
12730         * modules/sys_stat (Makefile.am): Likewise.
12731         * modules/sys_time (Makefile.am): Likewise.
12732         * modules/sys_times (Makefile.am): Likewise.
12733         * modules/sys_utsname (Makefile.am): Likewise.
12734         * modules/sys_wait (Makefile.am): Likewise.
12735         * modules/sysexits (Makefile.am): Likewise.
12736         * modules/termios (Makefile.am): Likewise.
12737         * modules/time (Makefile.am): Likewise.
12738         * modules/unistd (Makefile.am): Likewise.
12739         * modules/wchar (Makefile.am): Likewise.
12740         * modules/wctype-h (Makefile.am): Likewise.
12741         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12742
12743 2011-04-05  Bruno Haible  <bruno@clisp.org>
12744
12745         pipe2: Relicense under LGPLv2+.
12746         * modules/pipe2 (License): Change to LGPLv2+.
12747         Requested by Eric Blake, for libvirt.
12748
12749 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12750
12751         bootstrap: compute gnulib_extra_files after updating build_aux
12752         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12753         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12754
12755 2011-04-05  Eric Blake  <eblake@redhat.com>
12756
12757         bootstrap: preserve git whitelist item sorting
12758         * build-aux/bootstrap (sort_patterns): New function.
12759         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12760
12761 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12762
12763         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12764         sc_space_tab check.
12765
12766 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12767
12768         areadlink, areadlinkat: rewrite in terms of careadlinkat
12769         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12770         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12771         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12772         (malloc, realloc): Remove #undefs.
12773         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12774         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12775         readlink, ssize_t, stdint, unistd.
12776         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12777         areadlink, stdint.
12778
12779         careadlinkat: new module
12780         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12781         * modules/careadlinkat: New files, written by me with
12782         a review and feedback from Ben Pfaff in
12783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12784
12785 2011-04-01  Bruno Haible  <bruno@clisp.org>
12786
12787         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12788         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12789         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12790         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12791         Reported by Bruce Korb <bruce.korb@gmail.com>.
12792
12793 2011-04-01  Bruno Haible  <bruno@clisp.org>
12794
12795         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12796         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12797         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12798         * modules/wcpcpy (Depends-on): Add extensions.
12799         * modules/wcpncpy (Depends-on): Likewise.
12800         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12801         systems.
12802         * doc/posix-functions/wcpncpy.texi: Likewise.
12803         * doc/posix-functions/wcwidth.texi: Likewise.
12804
12805 2011-03-31  Eric Blake  <eblake@redhat.com>
12806
12807         nonblocking: fix mingw test failures
12808         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12809         non-blocking flag on regular file.
12810         (get_nonblocking_flag): Set errno on invalid fd.
12811         * tests/test-nonblocking.c (main): Avoid test failure on
12812         directories if fchdir is not active.
12813         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12814
12815 2011-03-31  Bruno Haible  <bruno@clisp.org>
12816
12817         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12818         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12819         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12820         Reported by Simon Josefsson <simon@josefsson.org>.
12821
12822 2011-03-31  Bruno Haible  <bruno@clisp.org>
12823         and Eric Blake  <eblake@redhat.com>
12824
12825         nonblocking: new module
12826         * modules/nonblocking: New module.
12827         * modules/nonblocking-tests: Likewise.
12828         * lib/nonblocking.h: New file.
12829         * lib/nonblocking.c: Likewise.
12830         * tests/test-nonblocking.c: New test.
12831         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12832
12833 2011-03-30  Bruno Haible  <bruno@clisp.org>
12834
12835         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12836         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12837         instead of 'printf' format for GCC >= 4.4.
12838         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12839         (fprintf, printf, vfprintf, vprintf): Declare with
12840         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12841         the system's vfprintf() function.
12842         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12843
12844 2011-03-30  Eric Blake  <eblake@redhat.com>
12845
12846         passfd: fix scoping bug
12847         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12848         before sendmsg/recvmsg.
12849
12850         passfd: standardize coding conventions
12851         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12852         can be learned at compile time.
12853         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12854         ifdefs.
12855         (sendfd, recvfd): Follow gnulib code conventions.
12856
12857         passfd: fix incorrect sendmsg arguments
12858         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12859         incorrect msg_controllen value.
12860         * modules/passfd-tests (Depends-on): Check for alarm.
12861         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12862         Reported by Bastien ROUCARIES.
12863
12864 2011-03-30  Bruno Haible  <bruno@clisp.org>
12865
12866         c-strcasestr: Relicense under LGPLv2+.
12867         * modules/c-strcasestr (License): Change to LGPLv2+.
12868         Requested by Eric Blake, for libvirt.
12869
12870 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12871
12872         * users.txt: Add libidn2.  Fix libtasn1 link.
12873
12874 2011-03-30  Jim Meyering  <meyering@redhat.com>
12875
12876         tests: readlink* ("",... fails with EINVAL on newer kernels
12877         readlink and readlinkat have typically failed with ENOENT for
12878         the invalid, empty file name,  "".  However, with the advent
12879         of linux-2.6.39, they fail with EINVAL.
12880         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12881         when operating on the empty file name.
12882         * tests/test-readlink.h (test_readlink): Likewise.
12883
12884 2011-03-29  Bruno Haible  <bruno@clisp.org>
12885
12886         Relicense some modules under LGPLv2+, for libidn2.
12887         * modules/array-mergesort (License): Change to LGPLv2+.
12888         * modules/c-strcaseeq (License): Likewise.
12889         * modules/striconveh (License): Likewise.
12890         * modules/striconveha (License): Likewise.
12891         * modules/uniconv/base (License): Likewise.
12892         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12893         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12894         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12895         * modules/unictype/base (License): Likewise.
12896         * modules/unictype/bidiclass-of (License): Likewise.
12897         * modules/unictype/category-M (License): Likewise.
12898         * modules/unictype/category-none (License): Likewise.
12899         * modules/unictype/category-of (License): Likewise.
12900         * modules/unictype/category-test (License): Likewise.
12901         * modules/unictype/category-test-withtable (License): Likewise.
12902         * modules/unictype/combining-class (License): Likewise.
12903         * modules/unictype/joiningtype-of (License): Likewise.
12904         * modules/unictype/scripts (License): Likewise.
12905         * modules/uninorm/base (License): Likewise.
12906         * modules/uninorm/canonical-decomposition (License): Likewise.
12907         * modules/uninorm/composition (License): Likewise.
12908         * modules/uninorm/decompose-internal (License): Likewise.
12909         * modules/uninorm/decomposition-table (License): Likewise.
12910         * modules/uninorm/nfc (License): Likewise.
12911         * modules/uninorm/nfd (License): Likewise.
12912         * modules/uninorm/u32-normalize (License): Likewise.
12913         * modules/unistr/base (License): Likewise.
12914         * modules/unistr/u32-cpy (License): Likewise.
12915         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12916         * modules/unistr/u32-to-u8 (License): Likewise.
12917         * modules/unistr/u32-uctomb (License): Likewise.
12918         * modules/unistr/u8-check (License): Likewise.
12919         * modules/unistr/u8-mblen (License): Likewise.
12920         * modules/unistr/u8-mbtouc (License): Likewise.
12921         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12922         * modules/unistr/u8-mbtoucr (License): Likewise.
12923         * modules/unistr/u8-prev (License): Likewise.
12924         * modules/unistr/u8-strlen (License): Likewise.
12925         * modules/unistr/u8-to-u32 (License): Likewise.
12926         * modules/unistr/u8-uctomb (License): Likewise.
12927         * modules/unitypes (License): Likewise.
12928         Requested by Simon Josefsson.
12929
12930 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12931
12932         lib-symbol-visibility: Add a notice.
12933         * modules/lib-symbol-visibility (Notice): New field.
12934
12935 2011-03-29  Bruno Haible  <bruno@clisp.org>
12936
12937         getaddrinfo: Doc fix.
12938         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12939         section "fixed in Gnulib".
12940
12941 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12942
12943         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12944         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12945
12946 2011-03-26  Bruno Haible  <bruno@clisp.org>
12947
12948         unictype/property-byname: Reduce the number of load-time relocations.
12949         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12950         (UC_PROPERTY_INDEX_*): New enumeration values.
12951         (uc_property_byname): Convert an index from the lookup table to an
12952         uc_property_t.
12953         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12954         values.
12955
12956 2011-03-26  Bruno Haible  <bruno@clisp.org>
12957
12958         unictype/property-byname: Allow omitted word separators and aliases.
12959         * lib/unictype/pr_byname.gperf: Add property names without word
12960         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12961         for 'space'.
12962
12963 2011-03-26  Bruno Haible  <bruno@clisp.org>
12964
12965         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12966         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12967         also hyphens to space.
12968         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12969         without spaces.
12970         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12971
12972 2011-03-26  Bruno Haible  <bruno@clisp.org>
12973
12974         unictype/joiningtype-byname: Recognize long names as well.
12975         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12976         a long name.
12977         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12978         unictype/joiningtype_byname.h.
12979         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12980         * lib/unictype/joiningtype_byname.gperf: New file.
12981         * modules/unictype/joiningtype-byname (Files): Add
12982         lib/unictype/joiningtype_byname.gperf.
12983         (Depends-on): Add gperf.
12984         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12985         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12986         long names.
12987
12988         Tests for module 'unictype/joiningtype-longname'.
12989         * modules/unictype/joiningtype-longname-tests: New file.
12990         * tests/unictype/test-joiningtype_longname.c: New file.
12991
12992         New module 'unictype/joiningtype-longname'.
12993         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12994         * lib/unictype/joiningtype_longname.c: New file.
12995         * modules/unictype/joiningtype-longname: New file.
12996         * modules/unictype/joiningtype-all (Depends-on): Add
12997         unictype/joiningtype-longname.
12998
12999 2011-03-26  Bruno Haible  <bruno@clisp.org>
13000
13001         unictype/bidiclass-byname: Recognize long names as well.
13002         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13003         name.
13004         * lib/unictype/bidi_byname.c: Include <string.h>,
13005         unictype/bidi_byname.h.
13006         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13007         * lib/unictype/bidi_byname.gperf: New file.
13008         * modules/unictype/bidiclass-byname (Files): Add
13009         lib/unictype/bidi_byname.gperf.
13010         (Depends-on): Add gperf.
13011         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13012         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13013         long names.
13014
13015         Tests for module 'unictype/bidiclass-longname'.
13016         * modules/unictype/bidiclass-longname-tests: New file.
13017         * tests/unictype/test-bidi_longname.c: New file.
13018
13019         New module 'unictype/bidiclass-longname'.
13020         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13021         * lib/unictype/bidi_longname.c: New file.
13022         * modules/unictype/bidiclass-longname: New file.
13023         * modules/unictype/bidiclass-all (Depends-on): Add
13024         unictype/bidiclass-longname.
13025
13026 2011-03-26  Bruno Haible  <bruno@clisp.org>
13027
13028         unictype/bidi*: Rename modules.
13029         * modules/unictype/bidiclass-all: Renamed from
13030         modules/unictype/bidicategory-all.
13031         * modules/unictype/bidiclass-name: Renamed from
13032         modules/unictype/bidiclass-name.
13033         (Description): Update.
13034         * modules/unictype/bidiclass-name-tests: Renamed from
13035         modules/unictype/bidicategory-name-tests.
13036         * modules/unictype/bidiclass-byname: Renamed from
13037         modules/unictype/bidicategory-byname.
13038         (Description): Update.
13039         * modules/unictype/bidiclass-byname-tests: Renamed from
13040         modules/unictype/bidicategory-byname-tests.
13041         * modules/unictype/bidiclass-of: Renamed from
13042         modules/unictype/bidicategory-of.
13043         (Description): Update.
13044         * modules/unictype/bidiclass-of-tests: Renamed from
13045         modules/unictype/bidicategory-of-tests.
13046         * modules/unictype/bidiclass-test: Renamed from
13047         modules/unictype/bidicategory-test.
13048         (Description): Update.
13049         * modules/unictype/bidiclass-test-tests: Renamed from
13050         modules/unictype/bidicategory-test-tests.
13051         * modules/unictype/bidicategory-all: New file, a simple redirection.
13052         * modules/unictype/bidicategory-name: Likewise.
13053         * modules/unictype/bidicategory-byname: Likewise.
13054         * modules/unictype/bidicategory-of: Likewise.
13055         * modules/unictype/bidicategory-test: Likewise.
13056         * modules/unictype/property-bidi-* (Dependencies): Update.
13057         * lib/unictype/bidi_*.c: Update comment.
13058
13059 2011-03-26  Bruno Haible  <bruno@clisp.org>
13060
13061         unictype/bidi*: Rename functions, part 2.
13062         * modules/unictype/bidicategory-name (configure.ac): Update required
13063         libunistring version.
13064         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13065
13066 2011-03-25  Bruno Haible  <bruno@clisp.org>
13067
13068         New module 'unictype/combining-class-all'.
13069         * modules/unictype/combining-class-all: New file.
13070
13071         Tests for module 'unictype/combining-class-byname'.
13072         * modules/unictype/combining-class-byname-tests: New file.
13073         * tests/unictype/test-combiningclass_byname.c: New file.
13074
13075         New module 'unictype/combining-class-byname'.
13076         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13077         * lib/unictype/combiningclass_byname.c: New file.
13078         * lib/unictype/combiningclass_byname.gperf: New file.
13079         * modules/unictype/combining-class-byname: New file.
13080
13081         Tests for module 'unictype/combining-class-longname'.
13082         * modules/unictype/combining-class-longname-tests: New file.
13083         * tests/unictype/test-combiningclass_longname.c: New file.
13084
13085         New module 'unictype/combining-class-longname'.
13086         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13087         * lib/unictype/combiningclass_longname.c: New file.
13088         * modules/unictype/combining-class-longname: New file.
13089
13090         Tests for module 'unictype/combining-class-name'.
13091         * modules/unictype/combining-class-name-tests: New file.
13092         * tests/unictype/test-combiningclass_name.c: New file.
13093
13094         New module 'unictype/combining-class-name'.
13095         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13096         * lib/unictype/combiningclass_name.c: New file.
13097         * modules/unictype/combining-class-name: New file.
13098
13099 2011-03-25  Bruno Haible  <bruno@clisp.org>
13100
13101         unictype/combining-class: Rename source files.
13102         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13103         of unictype/combining.h.
13104         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13105         Update.
13106         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13107         * modules/unictype/combining-class (Description): Fix.
13108         (Files, Makefile.am): Update.
13109         * tests/unictype/test-combiningclass.c: Renamed from
13110         tests/unictype/test-combining.c.
13111         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13112
13113 2011-03-25  Bruno Haible  <bruno@clisp.org>
13114
13115         unictype: Update list of canonical combining classes.
13116         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13117
13118 2011-03-25  Bruno Haible  <bruno@clisp.org>
13119
13120         unictype/category-byname: Recognize long names as well.
13121         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13122         a long name.
13123         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13124         unictype/categ_byname.h.
13125         (UC_CATEGORY_INDEX_*): New enumeration values.
13126         (uc_general_category_byname): Use uc_general_category_lookup and
13127         convert from index to value.
13128         * lib/unictype/categ_byname.gperf: New file.
13129         * modules/unictype/category-byname (Files): Add
13130         lib/unictype/categ_byname.gperf.
13131         (Depends-on): Add gperf.
13132         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13133         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13134         long names.
13135
13136         Tests for module 'unictype/category-longname'.
13137         * modules/unictype/category-longname-tests: New file.
13138         * tests/unictype/test-categ_longname.c: New file.
13139
13140         New module 'unictype/category-longname'.
13141         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13142         * lib/unictype/categ_longname.c: New file.
13143         * modules/unictype/category-longname: New file.
13144         * modules/unictype/category-all (Depends-on): Add it.
13145
13146 2011-03-25  Bruno Haible  <bruno@clisp.org>
13147
13148         Tests for module 'unictype/category-LC'.
13149         * modules/unictype/category-LC-tests: New file.
13150         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13151
13152         New module 'unictype/category-LC'.
13153         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13154         (UC_CATEGORY_LC): New declaration.
13155         (UC_CASED_LETTER): New macro.
13156         * lib/gen-uni-tables.c (is_category_LC): New function.
13157         (output_categories): Also handle category LC.
13158         (UC_CATEGORY_MASK_LC): New enumeration value.
13159         (general_category_byname): Also handle category LC.
13160         * lib/unictype/categ_LC.c: New file.
13161         * lib/unictype/categ_LC.h: New file, automatically generated.
13162         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13163         category LC.
13164         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13165         * modules/unictype/category-LC: New file.
13166         * modules/unictype/category-byname (Depends-on): Add
13167         unictype/category-LC.
13168         * modules/unictype/category-all (Depends-on): Likewise.
13169
13170 2011-03-25  Eric Blake  <eblake@redhat.com>
13171
13172         xmalloc: revert yesterday's regression
13173         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13174         realloc's underlying behavior (allowing allocation of zero-size
13175         objects, especially if malloc-gnu is also in use).
13176
13177 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13178
13179         maint.mk: add missing version to VC-tag
13180         * top/maint.mk: git tag was missing actual tag name; add it.
13181
13182         valgrind: do leak checking, and exit with code 1 on error (not 0)
13183         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13184         to VALGRIND.
13185
13186 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13187
13188         posix-modules: say what it does.
13189         * posix-modules: Add a line to the --help output saying what it does.
13190
13191 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13192
13193         xmalloc: Do not leak if underlying realloc is C99 compatible.
13194         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13195         This avoids a leak on C99-based systems.  See
13196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13197
13198 2011-03-24  Eric Blake  <eblake@redhat.com>
13199
13200         realloc: document portability problem
13201         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13202         passing 0 size to realloc.
13203
13204 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13205
13206         doc: update users.txt
13207         * users.txt: Add cvsps, tmpwatch
13208
13209 2011-03-23  Matt Rice  <ratmice@gmail.com>
13210
13211         doc: update users.txt
13212         * users.txt: Add gdb.
13213
13214 2011-03-23  Jim Meyering  <meyering@redhat.com>
13215
13216         doc: update users.txt
13217         Looking through matches up to the following URL (there are still
13218         several more pages), I found several projects that use gnulib:
13219         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13220         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13221         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13222
13223 2011-03-22  Bruno Haible  <bruno@clisp.org>
13224
13225         unictype/bidi*: Rename functions.
13226         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13227         uc_bidi_class, uc_is_bidi_class): New declarations.
13228         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13229         uc_bidi_category_byname.
13230         (uc_bidi_category_byname): New function.
13231         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13232         u_bidi_category_name.
13233         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13234         (uc_bidi_category_name): New function.
13235         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13236         uc_bidi_category.
13237         (uc_bidi_category): New function.
13238         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13239         uc_is_bidi_category. Invoke uc_bidi_class.
13240         (uc_is_bidi_category): New function.
13241         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13242         instead of uc_bidi_category_byname.
13243         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13244         instead of uc_bidi_category_name.
13245         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13246         uc_bidi_category.
13247         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13248         instead of uc_is_bidi_category.
13249
13250 2011-03-21  Bruno Haible  <bruno@clisp.org>
13251
13252         New module 'unictype/joininggroup-all'.
13253         * modules/unictype/joininggroup-all: New file.
13254
13255         Tests for module 'unictype/joininggroup-of'.
13256         * modules/unictype/joininggroup-of-tests: New file.
13257         * tests/unictype/test-joininggroup_of.c: New file.
13258         * tests/unictype/test-joininggroup_of.h: New file, automatically
13259         generated by gen-uni-tables.
13260
13261         New module 'unictype/joininggroup-of'.
13262         * modules/unictype/joininggroup-of: New file.
13263         * lib/unictype/joininggroup_of.c: New file.
13264         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13265         gen-uni-tables.
13266
13267         Tests for module 'unictype/joininggroup-byname'.
13268         * modules/unictype/joininggroup-byname-tests: New file.
13269         * tests/unictype/test-joininggroup_byname.c: New file.
13270
13271         New module 'unictype/joininggroup-byname'.
13272         * modules/unictype/joininggroup-byname: New file.
13273         * lib/unictype/joininggroup_byname.c: New file.
13274         * lib/unictype/joininggroup_byname.gperf: New file.
13275
13276         Tests for module 'unictype/joininggroup-name'.
13277         * modules/unictype/joininggroup-name-tests: New file.
13278         * tests/unictype/test-joininggroup_name.c: New file.
13279
13280         New module 'unictype/joininggroup-name'.
13281         * modules/unictype/joininggroup-name: New file.
13282         * lib/unictype/joininggroup_name.c: New file.
13283         * lib/unictype/joininggroup_name.h: New file.
13284
13285         New module 'unictype/joiningtype-all'.
13286         * modules/unictype/joiningtype-all: New file.
13287
13288         Tests for module 'unictype/joiningtype-of'.
13289         * modules/unictype/joiningtype-of-tests: New file.
13290         * tests/unictype/test-joiningtype_of.c: New file.
13291         * tests/unictype/test-joiningtype_of.h: New file, automatically
13292         generated by gen-uni-tables.
13293
13294         New module 'unictype/joiningtype-of'.
13295         * modules/unictype/joiningtype-of: New file.
13296         * lib/unictype/joiningtype_of.c: New file.
13297         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13298         gen-uni-tables.
13299
13300         Tests for module 'unictype/joiningtype-byname'.
13301         * modules/unictype/joiningtype-byname-tests: New file.
13302         * tests/unictype/test-joiningtype_byname.c: New file.
13303
13304         New module 'unictype/joiningtype-byname'.
13305         * modules/unictype/joiningtype-byname: New file.
13306         * lib/unictype/joiningtype_byname.c: New file.
13307
13308         Tests for module 'unictype/joiningtype-name'.
13309         * modules/unictype/joiningtype-name-tests: New file.
13310         * tests/unictype/test-joiningtype_name.c: New file.
13311
13312         New module 'unictype/joiningtype-name'.
13313         * modules/unictype/joiningtype-name: New file.
13314         * lib/unictype/joiningtype_name.c: New file.
13315
13316         unictype: Add support for Arabic shaping properties.
13317         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13318         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13319         declarations.
13320         (UC_JOINING_GROUP_*): New enumeration values.
13321         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13322         declarations.
13323         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13324         (unicode_joining_type): New variable.
13325         (UC_JOINING_GROUP_*): New enumeration values.
13326         (unicode_joining_group): New variable.
13327         (fill_arabicshaping, joining_type_as_c_identifier,
13328         output_joining_type_test, output_joining_type,
13329         joining_group_as_c_identifier, output_joining_group_test,
13330         output_joining_group): New functions.
13331         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13332         fill_arabicshaping and output_joining_type_test, output_joining_type,
13333         output_joining_group_test, output_joining_group.
13334         Reported by Simon Josefsson.
13335
13336 2011-03-21  Jim Meyering  <meyering@redhat.com>
13337
13338         strftime: fix a bug in yesterday's change
13339         * lib/strftime.c (add): Accommodate width's initial value of -1.
13340         Otherwise, nstrftime would copy uninitialized data into
13341         the result buffer.
13342
13343 2011-03-21  Jim Meyering  <meyering@redhat.com>
13344
13345         tests: add strftime-tests module
13346         * tests/test-strftime.c: New file.
13347         * modules/strftime-tests: New module.
13348
13349 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13350
13351         strftime: don't assume a byte count fits in 'int'
13352         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13353         found this problem by static analysis, using gcc -Wstrict-overflow
13354         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13355         on an integer overflow having undefined behavior, but it turns out
13356         that the argument is a size, which might not fit in 'int' anyway,
13357
13358 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13359
13360         stdio: don't require ignore_value around fwrite
13361
13362         This patch works around libc bug 11959
13363         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13364         Without this patch, applications must often write
13365         ignore_value (fwrite (...)) even though the ignore_value is
13366         not helpful here.  It's common to write many objects, using
13367         fwrite/printf/etc., and then use ferror to detect output error.
13368
13369         I considered making this patch optional, but decided against it,
13370         because libc is obviously being inconsistent here: there is no
13371         reason libc should insist that user code must inspect fwrite
13372         return's value without also insisting that it inspect printf's,
13373         putchar's, etc.  If user code wants to have a strict style where
13374         all these functions' values are checked (so that ferror need not
13375         be checked), we could add support for that style in a new gnulib
13376         module, but in the meantime it's better to be consistent and to
13377         support common usage.
13378
13379         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13380         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13381         that we are compiling in checking mode, and if not C++, and
13382         if not already wrapping fwrite for some other reason.
13383         (fwrite): #define to rpl_fwrite if the latter is defined.
13384
13385 2011-03-20  Bruno Haible  <bruno@clisp.org>
13386
13387         verror: Fix compilation error introduced on 2011-02-13.
13388         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13389         instead of __attribute__.
13390         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13391
13392 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13393             Bruno Haible  <bruno@clisp.org>
13394
13395         socklen: do not depend on sys_socket
13396         While trying to modify Emacs to use gnulib's socklen module,
13397         I discovered a circular dependency: socklen depends on sys_socket
13398         and vice versa.  Emacs can use socklen, but it does not need
13399         sys_socket because it has its own substitute for sys/socket.h.
13400         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13401         gl_TYPE_SOCKLEN_T.
13402         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13403         gl_PREREQ_SYS_H_SOCKET.
13404         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13405         gl_PREREQ_SYS_H_SOCKET.
13406         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13407         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13408         * modules/socklen (Depends-on): Do not depend on sys_socket.
13409         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13410
13411 2011-03-20  Jim Meyering  <meyering@redhat.com>
13412
13413         maint.mk: sort file names *after* new transformation
13414         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13415         prefix would have led to an unwarranted failure in GNU parted.
13416         Sort after that transformation.
13417
13418 2011-03-19  Jim Meyering  <meyering@redhat.com>
13419
13420         maint.mk: fix po-file syntax-check rule
13421         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13422         Patch by Bruno Haible.
13423
13424 2011-03-19  Bruno Haible  <bruno@clisp.org>
13425
13426         socklen: Update comment.
13427         * m4/socklen.m4: Update comment about platforms.
13428
13429 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13430             Bruno Haible  <bruno@clisp.org>
13431
13432         inet_ntop, inet_pton: Simplify.
13433         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13434         documented to provide socklen_t and we already depend on sys_socket.
13435         * modules/inet_pton (Depends-on): Likewise.
13436         * lib/arpa_inet.in.h: Adjust comment.
13437
13438 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13439             Bruno Haible  <bruno@clisp.org>
13440
13441         netdb: Simplify.
13442         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13443         documented to provide socklen_t and we already depend on sys_socket.
13444         * lib/netdb.in.h: Adjust comment.
13445
13446 2011-03-19  Bruno Haible  <bruno@clisp.org>
13447
13448         sys_socket, netdb: Document problem with socklen_t.
13449         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13450         platforms.
13451         * doc/posix-headers/netdb.texi: Likewise.
13452
13453 2011-03-18  Eric Blake  <eblake@redhat.com>
13454
13455         maint.mk: let po check work in VPATH build
13456         * top/maint.mk (po_file): Allow cfg.mk override.
13457         (sc_po_check): Allow VPATH use.
13458         Reported by Jiri Denemark.
13459
13460 2011-03-16  Jim Meyering  <meyering@redhat.com>
13461
13462         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13463         Before, you would have had to create one .x-sc_ file per rule in order
13464         to exempt offending files.  Now, you may instead use a Make variable --
13465         usually defined in cfg.mk -- whose name identifies the affected rule.
13466         * top/maint.mk (_sc_excl): Define.
13467         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13468         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13469
13470 2011-03-13  Bruno Haible  <bruno@clisp.org>
13471
13472         ignore-value tests: Avoid warnings.
13473         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13474         empty for gcc < 3.4.
13475
13476 2011-03-13  Bruno Haible  <bruno@clisp.org>
13477
13478         passfd: Fix link error on Solaris.
13479         * modules/passfd (Description): Correct.
13480         (Depends-on): Add socketlib.
13481         (Link): New section.
13482         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13483
13484 2011-03-13  Bruno Haible  <bruno@clisp.org>
13485
13486         passfd: Fix link error on AIX 5.2.
13487         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13488
13489 2011-03-13  Bruno Haible  <bruno@clisp.org>
13490
13491         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13492         * lib/sys_socket.in.h: Include <stddef.h>.
13493         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13494         CMSG_FIRSTHDR. Remove unused variable.
13495
13496 2011-03-13  Bruno Haible  <bruno@clisp.org>
13497
13498         passfd: Fix compilation error on OpenBSD.
13499         * lib/passfd.c: Include <sys/uio.h>.
13500
13501 2011-03-13  Bruno Haible  <bruno@clisp.org>
13502
13503         passfd test: Fix warnings.
13504         * tests/test-passfd.c: Include <sys/wait.h>.
13505         (main): Fix typo.
13506
13507 2011-03-13  Bruno Haible  <bruno@clisp.org>
13508
13509         passfd module, part 4, tweaks.
13510         * tests/test-passfd.c: Reorder includes.
13511         (main): Fix perror and printf calls.
13512
13513 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13514
13515         passfd module, part 4.
13516         * modules/passfd-tests: New file.
13517         * tests/test-passfd.c: New file.
13518
13519 2011-03-13  Jim Meyering  <meyering@redhat.com>
13520
13521         Makefile: rely on GNU make; derive syntax-check rule names
13522         Rather than requiring that each sc_ rule be listed as a dependent
13523         of "check", use features of GNU make to derive the list.
13524         * Makefile (syntax-check-rules): Define.
13525         (check): Depend on the new variable, not the hard-coded list.
13526
13527 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13528             Bruno Haible  <bruno@clisp.org>
13529
13530         passfd module, part 3.
13531         * lib/passfd.h (recvfd): Add a flags argument.
13532         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13533         (recvfd): Add a flags argument.
13534         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13535         exists.
13536         * modules/passfd (Depends-on): Add cloexec.
13537         Suggested by Eric Blake.
13538
13539 2011-03-13  Bruno Haible  <bruno@clisp.org>
13540
13541         passfd module, part 2, tweaks.
13542         * modules/passfd (Files): Reorder.
13543         (Depends-on): Remove errno.
13544         (Include): Remove <sys/socket.h>, <sys/un.h>.
13545         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13546         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13547         specification header. Include <sys/socket.h> always. Don't include
13548         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13549         (sendfd): Clarify that it sets errno when it fails.
13550         (recvfd): Fix specification.
13551
13552 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13553
13554         passfd module, part 2.
13555         * modules/passfd: New file.
13556         * lib/passfd.h: New file.
13557         * lib/passfd.c: New file.
13558
13559 2011-03-12  Bruno Haible  <bruno@clisp.org>
13560
13561         wcswidth, mbswidth: Avoid integer overflow.
13562         * lib/wcswidth.c: Include <limits.h>.
13563         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13564         * lib/mbswidth.c: Include <limits.h>.
13565         (mbsnwidth): Avoid 'int' overflow.
13566         Reported by Jim Meyering.
13567
13568 2011-03-12  Bruno Haible  <bruno@clisp.org>
13569
13570         futimens, utimensat: Avoid endless recursion on Solaris 10.
13571         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13572         Solaris.
13573         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13574         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13575
13576 2011-03-11  Jim Meyering  <meyering@redhat.com>
13577
13578         maint.mk: relax a regexp to accommodate other formatting styles
13579         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13580         between "ngettext" and the following "(".
13581
13582 2011-03-11  Pádraig Brady <P@draigBrady.com>
13583
13584         maint.mk: suppress a false positive warning
13585         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13586         diagnostics are marked with ngettext.
13587
13588 2011-03-10  Eric Blake  <eblake@redhat.com>
13589
13590         wchar: add explicit dependencies, for Tru64
13591         * modules/mbmemcasecoll (Depends-on): Add wchar.
13592         * modules/mbtowc (Depends-on): Likewise.
13593         * modules/vasnprintf (Depends-on): Likewise.
13594         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13595         * modules/wctomb (Depends-on): Likewise.
13596         Reported by Peter O'Gorman.
13597
13598 2011-03-08  Bruno Haible  <bruno@clisp.org>
13599
13600         passfd module, part 1, tweaks.
13601         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13602         Improve indentation. Improve AC_MSG_CHECKING messages.
13603         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13604         gl_SOCKET_FAMILIES.
13605
13606 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13607
13608         passfd module, part 1.
13609         * m4/afunix.m4: New file.
13610         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13611         sockets.
13612
13613 2011-03-08  Bruno Haible  <bruno@clisp.org>
13614
13615         regex-quote: New API.
13616         * lib/regex-quote.h: Include <stdbool.h>.
13617         (struct regex_quote_spec): New type.
13618         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13619         New declarations.
13620         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13621         'const struct regex_quote_spec *' argument.
13622         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13623         (pcre_special): New constant.
13624         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13625         New functions.
13626         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13627         'const struct regex_quote_spec *' argument.
13628         * modules/regex-quote (Depends-on): Add stdbool.
13629         * tests/test-regex-quote.c (check): Update for new API. Add test for
13630         anchored results.
13631         * NEWS: Mention the API change.
13632         Reported by Reuben Thomas and Eric Blake.
13633
13634 2011-03-06  Bruno Haible  <bruno@clisp.org>
13635
13636         regex-quote: Fix creation of POSIX extended regular expressions.
13637         * lib/regex-quote.c (ere_special): Add grouping and alternation
13638         operators.
13639
13640 2011-03-05  Bruno Haible  <bruno@clisp.org>
13641
13642         doc: Improve doc regarding autopoint vs. gnulib.
13643         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13644         disable autopoint while running autoreconf.
13645         Suggested by Ralf Wildenhues.
13646
13647 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13648
13649         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13650         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13651
13652 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13653
13654         parse-duration: remove xalloc.h dependency
13655         * lib/parse-duration.c (parse_period): handle NULL return from
13656         strdup instead of calling xstrdup().
13657         * modules/parse-duration: remove "xalloc" dependency
13658
13659 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13660
13661         bootstrap: honor m4_base when running aclocal
13662         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13663
13664 2011-03-02  Jim Meyering  <meyering@redhat.com>
13665
13666         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13667         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13668         on request from Matt Booth.
13669
13670 2011-03-01  Eric Blake  <eblake@redhat.com>
13671
13672         test-link: work on Hurd
13673         * tests/test-link.h (test_link): Hurd rejects linking directories
13674         with EISDIR instead of the POSIX-mandated EPERM.
13675
13676 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13677
13678         stdio: simplify by moving files to printf-posix, sigpipe
13679         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13680         since this symbol is needed only if printf is replaced.
13681         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13682         Require gl_ASM_SYMBOL_PREFIX.
13683         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13684         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13685         (Depends-on): Add 'raise'.
13686         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13687         * modules/stdio (Files): Remove lib/stdio-write.c,
13688         m4/asm-underscore.m4.
13689         (Depends-on): Remove 'raise'.
13690
13691         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13692         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13693         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13694         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13695
13696 2011-02-28  Bruno Haible  <bruno@clisp.org>
13697
13698         localcharset: Assume ANSI C behaviour of free().
13699         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13700         calling free().
13701         Suggested by Simon Josefsson <simon@josefsson.org>.
13702
13703 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13704             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13705             Bruno Haible  <bruno@clisp.org>  (tiny change)
13706
13707         On Cygwin, use /proc file system instead of win32 API.
13708         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13709         Win32 file names.
13710         (DllMain): Simplify by removing Cygwin specific code.
13711         (find_shared_library_fullname): Use Linux specific implementation also
13712         for Cygwin.
13713         (get_shared_library_fullname): Update accordingly.
13714         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13715         Win32 file names.
13716         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13717         Cygwin specific code.
13718
13719 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13720             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13721
13722         Fix OpenMP flag detection for various Fortran compilers.
13723         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13724         OpenMP-conditional compilation construct, to force compile
13725         failure with missing OpenMP flag.
13726         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13727
13728 2011-02-25  Eric Blake  <eblake@redhat.com>
13729
13730         strstr: expand test coverage
13731         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13732         compilation.
13733         * tests/test-memmem.c (main): Duplicate tests.
13734         * tests/test-strcasestr.c (main): Likewise.
13735         * tests/test-c-strcasestr.c (main): Likewise.
13736
13737 2011-02-25  Jim Meyering  <meyering@redhat.com>
13738
13739         maint.mk: detect missing-NL-at-EOF, too
13740         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13741         it also detects when a file lacks a newline at EOF.
13742         (require_exactly_one_NL_at_EOF_): Renamed from
13743         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13744         since people may well have .x-sc_... file names tied to the
13745         existing name.  Suggested by Eric Blake.
13746
13747 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13748
13749         dirname: move m4/dos.m4 functionality into lib/dosname.h
13750
13751         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13752         extracts symbols from it, puts them into config.h; but it's much
13753         easier to use the symbols directly.  filename.h already does this,
13754         but it disagrees with dos.m4 in some respects.  This patch
13755         introduces a different include file dosname.h that packages up
13756         dos.m4, and then later we can work on merging filename.h and
13757         dosname.h.  Applications that need only the easy-to-configure
13758         symbols should consider including dosname.h rather than dirname.h.
13759         * NEWS: Mention incompatible changes.
13760         * m4/dos.m4: Remove.
13761         * lib/dosname.h, modules/dosname: New files.
13762         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13763         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13764         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13765         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13766         Include dosname.h, not dirname.h.
13767         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13768         Include dosname.h, for definitions of symbols like ISSLASH
13769         that used to be in config.h.
13770         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13771         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13772         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13773         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13774         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13775         * modules/rmdir (Files): Likewise.
13776         * modules/stat (Files): Likewise.
13777         * modules/unlink (Files): Likewise.
13778         * modules/dirname-lgpl (Depends-on): Add dosname.
13779         * modules/lstat (Depends-on): Likewise.
13780         * modules/openat (Depends-on): Likewise.
13781         * modules/rmdir (Depends-on): Likewise.
13782         * modules/savewd (Depends-on): Likewise.
13783         * modules/stat (Depends-on): Likewise.
13784         * modules/unlink (Depends-on): Likewise.
13785         * modules/openat (Depends-on): Remove dirname-lgpl.
13786         * modules/savewd (Depends-on): Likewise.
13787         * tests/test-dirname.c: Do not use removed symbols like
13788         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13789         the remaining symbols, e.g., ISSLASH ('\\').
13790
13791 2011-02-25  Eric Blake  <eblake@redhat.com>
13792
13793         strstr: revert patches that introduced bug and pessimization
13794         * lib/str-two-way.h: Add another reference.
13795         (two_way_short_needle, two_way_long_needle): Revert changes from
13796         2011-02-24; they pessimize search speed.
13797         (critical_factorization): Partially revert changes from
13798         2010-06-22; they violate the requirement that the left half of the
13799         needle be smaller than the period of the needle.
13800
13801 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13802
13803         filenamecat: remove unnecessary dependency on dirname-lgpl
13804         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13805         is no direct dependency, just an indirect one via filenamecat-lgpl.
13806
13807         remove: remove unnecessary use of m4/dos.m4
13808         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13809         * modules/remove (FILES): Remove m4/dos.m4.
13810
13811         * lib/openat-proc.c: Don't include dirname.h; not needed.
13812
13813         backupfile: remove unnecessary use of m4/dos.m4
13814         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13815         of its symbols are used by the backupfile code.  backupfile.c does
13816         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13817         for the rare case of programs that want all their backup file
13818         names to live within 8+3 limits, and dos.m4 doesn't address that.
13819         * modules/backupfile (Files): Remove m4/dos.m4.
13820
13821 2011-02-24  Jim Meyering  <meyering@redhat.com>
13822
13823         strstr: fix a bug whereby strstr would mistakenly return NULL
13824         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13825         in period calculation.
13826         (two_way_long_needle): Likewise.
13827         The original problem was reported by Mike Stump in
13828         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13829         Ralf Wildenhues provided the short needle and haystack.
13830         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13831         Add a more involved test to trigger the bug in two_way_long_needle.
13832
13833 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13834
13835         gnulib-tool: remove use of bold display in help screen
13836         * gnulib-tool (func_usage): Do not use bold display anymore in the
13837         help screen.  That was just meant to be a temporary emphasis for a
13838         backward-incompatible change.
13839
13840 2011-02-23  Bruno Haible  <bruno@clisp.org>
13841
13842         Fix misindentation of preprocessor directives.
13843         * lib/argp-namefrob.h: Reindent preprocessor directives.
13844         * lib/getopt_int.h (struct _getopt_data): Likewise.
13845         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13846         * lib/vasnprintf.c (decode_long_double): Likewise.
13847         * tests/test-argmatch.c: Insert blank lines, for clarity.
13848         * tests/test-exclude.c: Likewise.
13849
13850 2011-02-22  Bruno Haible  <bruno@clisp.org>
13851
13852         ioctl: Fix for MacOS X in 64-bit mode.
13853         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13854         value.
13855         Suggested by Eric Blake.
13856         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13857
13858 2011-02-22  Jim Meyering  <meyering@redhat.com>
13859
13860         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13861         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13862         in lib/.
13863
13864 2011-02-22  Eric Blake  <eblake@redhat.com>
13865
13866         maint: avoid any CDPATH issue
13867         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13868
13869         maint: adjust cpp indentation for my modules, as well
13870         * Makefile (sc_cpp_indent_check): Add my name.
13871         * lib/fbufmode.c: Filter through cppi.
13872         * lib/fpurge.c: Likewise.
13873         * lib/freadable.c: Likewise.
13874         * lib/freading.c: Likewise.
13875         * lib/fwritable.c: Likewise.
13876         * lib/fwriting.c: Likewise.
13877         * lib/sigaction.c: Likewise.
13878
13879 2011-02-22  Jim Meyering  <meyering@redhat.com>
13880
13881         maint: adjust cpp indentation to reflect nesting depth
13882         I.e., in a block of code that begins with an unnested "#if",
13883         put one space between the "#" in column 1 and following token.
13884         For example,
13885         -#include <sys/vfs.h>
13886         +# include <sys/vfs.h>
13887         Do this only in .c files that are part of a module I maintain.
13888         * lib/linkat.c: Filter through cppi.
13889         * lib/nanosleep.c: Likewise.
13890         * lib/openat.c: Likewise.
13891         * lib/openat-die.c: Likewise.
13892         * lib/dup3.c: Likewise.
13893         * lib/fchownat.c: Likewise.
13894         * lib/flock.c: Likewise.
13895         * lib/fsync.c: Likewise.
13896         * lib/fts.c: Likewise.
13897         * lib/getpass.c: Likewise.
13898         * lib/gettimeofday.c: Likewise.
13899         * lib/userspec.c: Likewise.
13900         * Makefile (sc_cpp_indent_check): New rule, to check this.
13901
13902 2011-02-22  Bruno Haible  <bruno@clisp.org>
13903
13904         New module 'wctomb'.
13905         * lib/stdlib.in.h (wctomb): New declaration.
13906         * lib/wctomb.c: New file.
13907         * lib/wctomb-impl.h: New file.
13908         * m4/wctomb.m4: New file.
13909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13910         REPLACE_WCTOMB.
13911         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13912         REPLACE_WCTOMB.
13913         * modules/wctomb: New file.
13914         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13915         * doc/posix-functions/wctomb.texi: Mention the new module.
13916         * modules/wctob (Depends-on): Add wctomb.
13917
13918 2011-02-22  Bruno Haible  <bruno@clisp.org>
13919
13920         New module 'mbtowc'.
13921         * lib/stdlib.in.h (mbtowc): New declaration.
13922         * lib/mbtowc.c: New file.
13923         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13924         * m4/mbtowc.m4: New file.
13925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13926         REPLACE_MBTOWC.
13927         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13928         REPLACE_MBTOWC.
13929         * modules/mbtowc: New file.
13930         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13931         * doc/posix-functions/mbtowc.texi: Mention the new module.
13932         * modules/btowc (Depends-on): Add mbtowc.
13933
13934 2011-02-22  Bruno Haible  <bruno@clisp.org>
13935
13936         wcrtomb: Add more tests for native Windows platforms.
13937         * tests/test-wcrtomb-w32-1.sh: New file.
13938         * tests/test-wcrtomb-w32-2.sh: New file.
13939         * tests/test-wcrtomb-w32-3.sh: New file.
13940         * tests/test-wcrtomb-w32-4.sh: New file.
13941         * tests/test-wcrtomb-w32-5.sh: New file.
13942         * tests/test-wcrtomb-w32.c: New file.
13943         * modules/wcrtomb-tests (Files): Add them.
13944         (Makefile.am): Arrange to run these tests.
13945         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13946         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13947
13948 2011-02-20  Bruno Haible  <bruno@clisp.org>
13949
13950         wcrtomb: Enhance test.
13951         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13952
13953 2011-02-20  Bruno Haible  <bruno@clisp.org>
13954
13955         mbrtowc: Tiny optimization.
13956         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13957
13958 2011-02-20  Jim Meyering  <meyering@redhat.com>
13959
13960         test-exclude.c: remove unmatched #endif
13961         * tests/test-exclude.c: Remove stray #endif, left over from
13962         the change of a week ago.
13963
13964 2011-02-19  Jim Meyering  <meyering@redhat.com>
13965
13966         git-version-gen: skip "-dirty" check when appropriate
13967         * build-aux/git-version-gen: Don't run any git commands when the
13968         version string comes from .tarball-version.  Prior to this, we
13969         would run git update-index --refresh even from a just-unpacked
13970         tarball directory, and that could affect a .git/ directory in a
13971         parent of the build directory.  Reported by Mike Frysinger.
13972
13973 2011-02-19  Bruno Haible  <bruno@clisp.org>
13974
13975         unictype/property-byname: Reduce the size of the 'data' segment.
13976         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13977
13978 2011-02-19  Bruno Haible  <bruno@clisp.org>
13979
13980         unictype/scripts: Reduce the size of the 'data' segment.
13981         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13982         '%pic'.
13983         * lib/unictype/scripts_byname.gperf: Regenerated.
13984
13985 2011-02-19  Bruno Haible  <bruno@clisp.org>
13986
13987         stdint: Update documentation.
13988         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13989
13990 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13991
13992         stdint: omit redundant check for wchar.h
13993         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13994         always tests whether wchar.h exists, so remove the now-redundant test.
13995
13996 2011-02-18  Bruno Haible  <bruno@clisp.org>
13997
13998         stdint: Cut dependency to module 'wchar'.
13999         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14000         include the necessary prerequisites.
14001         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14002         * modules/stdint (Depends-on): Remove wchar.
14003         (Makefile.am): Substitute HAVE_WCHAR_H.
14004         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14005
14006 2011-02-18  Eric Blake  <eblake@redhat.com>
14007
14008         longlong: skip, rather than fail, on cross-compilation
14009         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14010         when cross-compiling; regression from 2011-02-16.
14011
14012 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14013
14014         * NEWS: Mention 2011-02-08 change to stdlib.
14015
14016 2011-02-17  Bruno Haible  <bruno@clisp.org>
14017
14018         getloadavg: Add comments about platforms.
14019         * m4/getloadavg.m4: Add comment.
14020         * lib/getloadavg.c: Likewise.
14021
14022 2011-02-17  Bruno Haible  <bruno@clisp.org>
14023
14024         getloadavg: Fix link error on Solaris 2.6.
14025         * modules/getloadavg (Link): New section.
14026         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14027         linking test-getloadavg.
14028         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14029         getloadavg.
14030
14031 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14032
14033         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14034         It was 'int', but this doesn't match the IRIX 6.5 manual.
14035         Suggested by Bruno Haible in
14036         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14037
14038 2011-02-17  Bruno Haible  <bruno@clisp.org>
14039
14040         havelib: Fix comments.
14041         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14042         change.
14043
14044 2011-02-17  Bruno Haible  <bruno@clisp.org>
14045
14046         havelib: Update config.rpath.
14047         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14048
14049 2011-02-17  Bruno Haible  <bruno@clisp.org>
14050
14051         getloadavg test: Add some plausibility checks.
14052         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14053         is improbable.
14054
14055 2011-02-16  Eric Blake  <eblake@redhat.com>
14056
14057         maintainer-makefile: make syntax-check a no-op from tarballs
14058         * top/maint.mk (no-vc-detected): New rule.
14059         (local-checks-available): Use it to avoid hanging if someone tries
14060         'make syntax-check' from a tarball.  Also append to any non-syntax
14061         checks already defined in cfg.mk.
14062
14063 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14064
14065         longlong: tune, particularly for common case of c99
14066
14067         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14068         or running anything if c99, or if unsigned long long int does not
14069         work.  In either case, we know the answer without further tests.
14070         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14071         it at most once, and use its results for both long long int and
14072         unsigned long long int.  This is more likely to be efficient in
14073         the common case where the program wants to check for both long
14074         long int and unsigned long long int.
14075         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14076         since the answer is already known.
14077
14078 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14079
14080         getloadavg: set errno
14081         * lib/getloadavg.c: Set errno when returning -1.  If no other
14082         error number looks appropriate, set it to ENOSYS if the getloadavg
14083         looks like it can't possibly ever work, ENOTSUP otherwise.
14084         Suggested by Bruno Haible in
14085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14086
14087         getloadavg: trim unused parts and speed up 'configure'
14088         * NEWS: Document this.
14089         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14090         always compiled if getloadavg is absent.
14091         Move test code to ...
14092         * tests/test-getloadavg.c: New file, containing previous
14093         contents of test from lib/getloadavg.c.  It also contains
14094         suggestions by Bruno Haible in
14095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14096         * modules/getloadavg-tests: New file.
14097         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14098         Do tests in the same order as they're needed for getloadavg.c.
14099         Omit setgid-related tests that generate symbols KMEM_GROUP,
14100         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14101         Do only the tests that are needed to see whether the system has
14102         getloadavg, moving the other tests into ...
14103         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14104         NLIST_NAME_UNION; nobody should be using it.  Do not define
14105         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14106         relevant, as the user of this module shouldn't care how getloadavg
14107         is implemented.
14108
14109         getloadavg: omit unused var
14110         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14111
14112 2011-02-15  Jim Meyering  <meyering@redhat.com>
14113
14114         doc: update users.txt
14115         * users.txt: Update iwhd's URL.
14116
14117 2011-02-13  Bruno Haible  <bruno@clisp.org>
14118
14119         Consistent macro naming for macros that use GCC __attribute__.
14120         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14121         _ATTRIBUTE_NONNULL_.
14122         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14123         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14124         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14125         ATTRIBUTE_DEPRECATED.
14126         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14127         ATTRIBUTE_NORETURN.
14128         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14129         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14130         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14131         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14132         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14133         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14134         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14135         ATTRIBUTE_SENTINEL.
14136         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14137         ATTRIBUTE_RETURN_CHECK.
14138         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14139         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14140         ATTRIBUTE_NORETURN.
14141         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14142         Reported by Paul Eggert.
14143
14144 2011-02-13  Bruno Haible  <bruno@clisp.org>
14145
14146         Don't interfere with a program's definition of __attribute__.
14147         * lib/argp.h (__attribute__): Remove definition.
14148         (_GL_ATTRIBUTE_FORMAT): New macro.
14149         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14150         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14151         (_GL_ATTRIBUTE_FORMAT): New macro.
14152         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14153         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14154         GCC 3 or newer.
14155         * lib/error.h (__attribute__): Remove definition.
14156         (_GL_ATTRIBUTE_FORMAT): New macro.
14157         (error, error_at_line): Use it.
14158         * lib/hash.h (__attribute__): Remove definition.
14159         (ATTRIBUTE_WUR): Update definition. Define always.
14160         * lib/openat.h (__attribute__): Remove definition.
14161         (ATTRIBUTE_NORETURN): Update definition. Define always.
14162         * lib/sigpipe-die.h (__attribute__): Remove definition.
14163         (ATTRIBUTE_NORETURN): Update definition. Define always.
14164         * lib/vasnprintf.h (__attribute__): Remove definition.
14165         (_GL_ATTRIBUTE_FORMAT): New macro.
14166         (asnprintf, vasnprintf): Use it.
14167         * lib/xalloc.h (__attribute__): Remove definition.
14168         (ATTRIBUTE_NORETURN): Update definition. Define always.
14169         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14170         * lib/xmemdup0.h (__attribute__): Remove definition.
14171         (ATTRIBUTE_NORETURN): Update definition. Define always.
14172         * lib/xprintf.h (__attribute__): Remove definition.
14173         (_GL_ATTRIBUTE_FORMAT): New macro.
14174         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14175         * lib/xstrtol.h (__attribute__): Remove definition.
14176         (ATTRIBUTE_NORETURN): Update definition. Define always.
14177         * lib/xvasprintf.h (__attribute__): Remove definition.
14178         (_GL_ATTRIBUTE_FORMAT): New macro.
14179         (xasprintf, xvasprintf): Use it.
14180         * tests/test-argmatch.c (__attribute__): Remove definition.
14181         (ATTRIBUTE_NORETURN): Update definition. Define always.
14182         * tests/test-exclude.c (__attribute__): Remove definition.
14183         (ATTRIBUTE_NORETURN): Update definition. Define always.
14184         Reported by Paul Eggert.
14185
14186 2011-02-13  Bruno Haible  <bruno@clisp.org>
14187
14188         mbrtowc: Add more tests for native Windows platforms.
14189         * tests/test-mbrtowc-w32-1.sh: New file.
14190         * tests/test-mbrtowc-w32-2.sh: New file.
14191         * tests/test-mbrtowc-w32-3.sh: New file.
14192         * tests/test-mbrtowc-w32-4.sh: New file.
14193         * tests/test-mbrtowc-w32-5.sh: New file.
14194         * tests/test-mbrtowc-w32.c: New file.
14195         * modules/mbrtowc-tests (Files): Add them.
14196         (Makefile.am): Arrange to run these tests.
14197         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14198         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14199
14200 2011-02-13  Bruno Haible  <bruno@clisp.org>
14201
14202         mbrtowc: Work around native Windows bug.
14203         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14204         guess when no suitable locale for testing was found.
14205         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14206
14207 2011-02-13  Bruno Haible  <bruno@clisp.org>
14208
14209         mbsinit: Work around mingw bug.
14210         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14211         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14212         Windows.
14213         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14214
14215 2011-02-13  Bruno Haible  <bruno@clisp.org>
14216
14217         mbsinit: Don't crash for a NULL argument.
14218         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14219         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14220
14221 2011-02-13  Bruno Haible  <bruno@clisp.org>
14222
14223         Don't interfere with a program's definition of __attribute__.
14224         * lib/stdio.in.h (__attribute__): Remove definition.
14225         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14226         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14227         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14228         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14229         * lib/string.in.h (__attribute__): Remove definition.
14230         Reported by Paul Eggert.
14231
14232 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14233
14234         stdlib: don't get in the way of non-GCC __attribute__
14235         See thread starting at
14236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14237         Revert previous stdlib change, installing the following instead:
14238         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14239         to get in the way of a non-GCC compiler that supports __attribute__.
14240         (_GL_ATTRIBUTE_RETURN): New macro.
14241         (_Exit): Use it instead of __attribute__.
14242
14243 2011-02-12  Bruno Haible  <bruno@clisp.org>
14244
14245         quotearg test: Avoid test failure on mingw.
14246         * tests/test-quotearg.sh: Convert the locale identifier from native
14247         Windows syntax to Unix syntax.
14248
14249 2011-02-12  Bruno Haible  <bruno@clisp.org>
14250
14251         setlocale: Prefer gnulib's override over libintl's override.
14252         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14253         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14254         GNULIB_defined_setlocale is set.
14255
14256 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14257
14258         stdlib: support non-GCC __attribute__
14259
14260         Fix a serious and tricky problem encountered when attempting to
14261         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14262         5.5, but it crashed due to memory corruption on Solaris 10 with
14263         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14264         bits that are otherwise zero.  This tagging is optional inside
14265         Emacs but is preferred and is used when __attribute__ ((__aligned
14266         (8))) works, as it does with both recent-enough GCC and with Sun C
14267         5.11.  However, Sun C 5.11 is not GCC and does not #define
14268         __GNUC__ and __GNUC_MINOR__.
14269
14270         When I added the getloadavg module to Emacs, it brought in
14271         stdlib.in.h, which contained this fragment:
14272
14273            #ifndef __attribute__
14274            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14275            #  define __attribute__(Spec)   /* empty */
14276            # endif
14277            #endif
14278
14279         When files that include <stdlib.h> were compiled with Sun C 5.11,
14280         the above code disabled __attribute__ ((__aligned (8))), which
14281         caused variables to not be properly aligned, which eventually led
14282         to the pointer corruption mentioned above.  (This was a bit hard
14283         to diagnose, unfortunately.)
14284
14285         Several "#define __attribute__(X) /* empty */" code snippets need
14286         to be eradicated from Gnulib to work with non-GCC compilers that
14287         support __attribute__.  The Autoconf way to do this is to test for
14288         each kind of attribute that we want support for, and selectively
14289         enable that in source code.
14290
14291         Fix this problem just for stdlib.h, by adding a test for the
14292         __noreturn__ attribute, and change stdlib.in.h to use that test
14293         when needed.  This technique can be easily generalized to the
14294         other *.in.h files and attributes, and a similar technique can be
14295         used for *.h and *.c files.  This patch is enough to solve the
14296         problem for Emacs + getloadavg, and I thought I'd publish it for
14297         feedback before undertaking further, similar fixes in other
14298         modules.
14299
14300         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14301         because it's not needed for stdlib.h.  It merely substitutes the
14302         value directly into stdlib.h.  We may well need to #define it, or
14303         similar symbols, for other modules, but it's nice to also have an
14304         option to not #define it for applications like Emacs that do not
14305         need it.
14306
14307         * lib/stdlib.in.h (__attribute__): Do not #define.
14308         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14309         be defined only if the _Exit module is also used.
14310         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14311         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14312         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14313         platforms.
14314         * modules/_Exit (Files): Add m4/attribute.m4.
14315         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14316         * m4/attribute.m4: New file.
14317
14318 2011-02-12  Bruno Haible  <bruno@clisp.org>
14319
14320         wcsrtombs: Work around bug on native Windows.
14321         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14322         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14323         instead of len.
14324         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14325
14326 2011-02-12  Bruno Haible  <bruno@clisp.org>
14327
14328         mbsrtowcs: Work around bug on native Windows.
14329         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14330         against mingw bug.
14331         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14332
14333 2011-02-12  Bruno Haible  <bruno@clisp.org>
14334
14335         Avoid setlocale bugs in tests.
14336         * modules/btowc (Dependencies): Add setlocale.
14337         * modules/c-strcase (Dependencies): Likewise.
14338         * modules/mbmemcasecmp (Dependencies): Likewise.
14339         * modules/mbmemcasecoll (Dependencies): Likewise.
14340         * modules/mbrtowc (Dependencies): Likewise.
14341         * modules/mbscasecmp (Dependencies): Likewise.
14342         * modules/mbscasestr (Dependencies): Likewise.
14343         * modules/mbschr (Dependencies): Likewise.
14344         * modules/mbscspn (Dependencies): Likewise.
14345         * modules/mbsinit (Dependencies): Likewise.
14346         * modules/mbsncasecmp (Dependencies): Likewise.
14347         * modules/mbsnrtowcs (Dependencies): Likewise.
14348         * modules/mbspbrk (Dependencies): Likewise.
14349         * modules/mbspcasecmp (Dependencies): Likewise.
14350         * modules/mbsrchr (Dependencies): Likewise.
14351         * modules/mbsrtowcs (Dependencies): Likewise.
14352         * modules/mbsspn (Dependencies): Likewise.
14353         * modules/mbsstr (Dependencies): Likewise.
14354         * modules/nl_langinfo (Dependencies): Likewise.
14355         * modules/quotearg (Dependencies): Likewise.
14356         * modules/unicase/locale-language (Dependencies): Likewise.
14357         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14358         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14359         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14360         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14361         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14362         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14363         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14364         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14365         * modules/vasnprintf-posix (Dependencies): Likewise.
14366         * modules/wcrtomb (Dependencies): Likewise.
14367         * modules/wcsnrtombs (Dependencies): Likewise.
14368         * modules/wcsrtombs (Dependencies): Likewise.
14369
14370 2011-02-12  Bruno Haible  <bruno@clisp.org>
14371
14372         setlocale: Workaround native Windows bug.
14373         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14374         succeeds but sets LC_CTYPE to "C", report a failure.
14375         * tests/test-setlocale2.sh: New file.
14376         * tests/test-setlocale2.c: New file.
14377         * modules/setlocale-tests (Files): Add the new files.
14378         (Makefile.am): Enable test-setlocale2.sh test.
14379         * doc/posix-functions/setlocale.texi: Mention workaround.
14380
14381 2011-02-11  Bruno Haible  <bruno@clisp.org>
14382
14383         Tests for module 'setlocale'.
14384         * modules/setlocale-tests: New file.
14385         * tests/test-setlocale1.sh: New file.
14386         * tests/test-setlocale1.c: New file.
14387
14388         New module 'setlocale'.
14389         * lib/locale.in.h (setlocale): New declaration.
14390         * lib/setlocale.c: New file, based on
14391         gettext/gettext-runtime/intl/setlocale.c.
14392         * m4/setlocale.m4: New file.
14393         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14394         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14395         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14396         REPLACE_SETLOCALE.
14397         * modules/setlocale: New file.
14398         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14399         * doc/posix-functions/setlocale.texi: Mention the new module.
14400
14401 2011-02-11  Bruno Haible  <bruno@clisp.org>
14402
14403         Prepare for locale dependent tests on mingw.
14404         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14405         because it has the wrong locale encoding.
14406         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14407         French_France.1252 instead of "fr".
14408         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14409         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14410         because it has the wrong locale encoding.
14411         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14412         native Windows, try Turkish_Turkey.65001.
14413         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14414         Chinese_China.54936.
14415
14416         Prepare for locale dependent tests on mingw.
14417         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14418         differently.
14419         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14420         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14421         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14422         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14423
14424 2011-02-11  Eric Blake  <eblake@redhat.com>
14425
14426         strptime: avoid compiler warnings
14427         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14428         compiler warnings about dead code.
14429         Reported by Daniel P. Berrange.
14430
14431 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14432
14433         doc: update users.txt
14434         * users.txt: Add rcs.
14435
14436 2011-02-10  John W. Eaton  <jwe@gnu.org>
14437
14438         doc: update users.txt
14439         * users.txt: Add octave.
14440
14441 2011-02-10  Jim Meyering  <meyering@redhat.com>
14442
14443         doc: update users.txt
14444         * users.txt: Add iwhd.
14445
14446 2011-02-09  Bruno Haible  <bruno@clisp.org>
14447
14448         gnulib-tool: Make copyright notice adjustment more robust.
14449         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14450         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14451         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14452         License".
14453         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14454
14455 2011-02-06  Bruno Haible  <bruno@clisp.org>
14456
14457         New module 'towctrans'.
14458         * modules/towctrans: New file.
14459         * lib/wctype.in.h (towctrans): New declaration.
14460         * lib/towctrans.c: New file.
14461         * lib/towctrans-impl.h: New file.
14462         * m4/towctrans.m4: New file.
14463         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14464         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14465         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14466         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14467         * doc/posix-functions/towctrans.texi: Mention the new module.
14468
14469 2011-02-06  Bruno Haible  <bruno@clisp.org>
14470
14471         New module 'wctrans'.
14472         * modules/wctrans: New file.
14473         * lib/wctype.in.h (wctrans): New declaration.
14474         * lib/wctrans.c: New file.
14475         * lib/wctrans-impl.h: New file.
14476         * m4/wctrans.m4: New file.
14477         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14478         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14479         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14480         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14481         * doc/posix-functions/wctrans.texi: Mention the new module.
14482
14483 2011-02-06  Bruno Haible  <bruno@clisp.org>
14484
14485         New module 'iswctype'.
14486         * modules/iswctype: New file.
14487         * lib/wctype.in.h (iswctype): New declaration.
14488         * lib/iswctype.c: New file.
14489         * lib/iswctype-impl.h: New file.
14490         * m4/iswctype.m4: New file.
14491         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14492         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14493         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14494         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14495         * doc/posix-functions/iswctype.texi: Mention the new module and the
14496         HP-UX 11.00 problem.
14497
14498 2011-02-06  Bruno Haible  <bruno@clisp.org>
14499
14500         New module 'wctype'.
14501         * modules/wctype: Change to represent the wctype() substitute.
14502         * lib/wctype.in.h (wctype): New declaration.
14503         * lib/wctype.c: New file.
14504         * lib/wctype-impl.h: New file.
14505         * m4/wctype.m4: New file.
14506         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14507         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14508         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14509         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14510         * doc/posix-functions/wctype.texi: Mention the new module and the
14511         HP-UX 11.00 problem.
14512
14513 2011-02-06  Bruno Haible  <bruno@clisp.org>
14514
14515         wctype-h: Ensure wctype_t and wctrans_t are defined.
14516         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14517         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14518         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14519         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14520         HAVE_WCTRANS_T.
14521         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14522
14523 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14524
14525         flock: fix license typo
14526
14527         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14528         omitted.
14529
14530 2011-02-08  Bruno Haible  <bruno@clisp.org>
14531
14532         Split large sed scripts, for HP-UX sed.
14533         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14534         to avoid HP-UX limit of 99 commands, in the near future.
14535         * modules/stdlib (Makefile.am): Likewise.
14536         * modules/unistd (Makefile.am): Likewise.
14537         * modules/wchar (Makefile.am): Likewise.
14538         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14539         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14540         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14541
14542 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14543             Bruno Haible  <bruno@clisp.org>
14544
14545         stdlib: improve random_r modularization
14546         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14547         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14548         you also need the random_r module to get this material right.
14549         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14550         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14551         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14552
14553 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14554
14555         stdlib: don't depend on stdint
14556         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14557         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14558         be independent of whether stdint.h is needed.
14559         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14560         here, instead of ...
14561         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14562         struct random_data should be using the random_r module, not just
14563         the stdlib module (which wouldn't make sense: what package needs
14564         just struct random_data without also needing random_r?).
14565         * modules/stdlib (Depends-on): Remove stdint.
14566
14567         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14568         See the thread rooted at
14569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14570         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14571         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14572         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14573         __VMS)); previously it was always included (via fcntl--.h).
14574         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14575         hand; this is good enough for load averages.  Also, do not use
14576         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14577         flags directly if available and don't bother otherwise.  (Packages
14578         that need the extra reliability should use the modules that define
14579         these flags on older platforms that lack them.)
14580         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14581         fcntl-safer.
14582
14583 2011-02-08  Jim Meyering  <meyering@redhat.com>
14584
14585         di-set.h, ino-map.h: add multiple-inclusion guard
14586         Technically, the guard is required only for ino-map.h, due to its
14587         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14588         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14589         * lib/ino-map.h: Likewise.
14590
14591 2011-02-06  Bruno Haible  <bruno@clisp.org>
14592
14593         iswblank: Ensure declaration on glibc systems.
14594         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14595         * modules/iswblank (Dependencies): Add 'extensions'.
14596         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14597
14598 2011-02-06  Bruno Haible  <bruno@clisp.org>
14599
14600         New module 'iswblank'.
14601         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14602         * modules/iswblank: New file.
14603         * modules/wctype-h (Files): Remove lib/iswblank.c.
14604         (Makefile.am): Substitute GNULIB_ISWBLANK.
14605         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14606         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14607         (gl_WCTYPE_H_DEFAULTS): New macro.
14608         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14609         * modules/iswblank-tests: New file.
14610         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14611         * tests/test-wctype-h.c (main): Remove iswblank tests.
14612         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14613         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14614         of 'wctype-h'.
14615         * NEWS: Mention the change.
14616         * modules/mbchar (Depends-on): Add iswblank.
14617
14618 2011-02-08  Bruno Haible  <bruno@clisp.org>
14619
14620         di-set tests: Refactor.
14621         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14622         unnecessary includes.
14623         (ASSERT): Remove macro.
14624         (main): Make C90 compliant by avoiding variable declaration after
14625         statement.
14626         * modules/di-set-tests (Files): Add tests/macros.h.
14627
14628 2011-02-08  Bruno Haible  <bruno@clisp.org>
14629
14630         ino-map tests: Refactor.
14631         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14632         unnecessary includes.
14633         (ASSERT): Remove macro.
14634         (main): Make C90 compliant by avoiding variable declaration after
14635         statement.
14636         * modules/ino-map-tests (Files): Add tests/macros.h.
14637
14638 2011-02-08  Jim Meyering  <meyering@redhat.com>
14639
14640         di-set: add "const" to a cast
14641         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14642         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14643
14644 2011-02-06  Bruno Haible  <bruno@clisp.org>
14645
14646         Rename module 'wctype' to 'wctype-h'.
14647         * modules/wctype-h: Renamed from modules/wctype.
14648         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14649         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14650         (Files, Depends-on, Makefile.am): Update.
14651         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14652         (Files, Makefile.am): Update.
14653         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14654         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14655         * doc/posix-headers/wctype.texi: Update.
14656         * doc/posix-functions/iswalnum.texi: Update.
14657         * doc/posix-functions/iswalpha.texi: Update.
14658         * doc/posix-functions/iswblank.texi: Update.
14659         * doc/posix-functions/iswcntrl.texi: Update.
14660         * doc/posix-functions/iswdigit.texi: Update.
14661         * doc/posix-functions/iswgraph.texi: Update.
14662         * doc/posix-functions/iswlower.texi: Update.
14663         * doc/posix-functions/iswprint.texi: Update.
14664         * doc/posix-functions/iswpunct.texi: Update.
14665         * doc/posix-functions/iswspace.texi: Update.
14666         * doc/posix-functions/iswupper.texi: Update.
14667         * doc/posix-functions/iswxdigit.texi: Update.
14668         * doc/posix-functions/towlower.texi: Update.
14669         * doc/posix-functions/towupper.texi: Update.
14670         * NEWS: Mention the change.
14671         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14672         * modules/mbchar (Dependencies): Likewise.
14673         * modules/mbswidth (Dependencies): Likewise.
14674         * modules/quotearg (Dependencies): Likewise.
14675         * modules/regex (Dependencies): Likewise.
14676         * modules/wcscasecmp (Dependencies): Likewise.
14677         * modules/wcsncasecmp (Dependencies): Likewise.
14678         * modules/wcwidth (Dependencies): Likewise.
14679
14680 2011-02-06  Bruno Haible  <bruno@clisp.org>
14681
14682         New module 'wcswidth'.
14683         * modules/wcswidth: New file.
14684         * lib/wchar.in.h (wcswidth): New declaration.
14685         * lib/wcswidth.c: New file.
14686         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14687         * m4/wcswidth.m4: New file.
14688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14690         REPLACE_WCSWIDTH.
14691         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14692         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14693         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14694         * doc/posix-functions/wcswidth.texi: Mention the new module.
14695
14696 2011-02-06  Bruno Haible  <bruno@clisp.org>
14697
14698         New module 'wcstok'.
14699         * modules/wcstok: New file.
14700         * lib/wchar.in.h (wcstok): New declaration.
14701         * lib/wcstok.c: New file.
14702         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14703         * m4/wcstok.m4: New file.
14704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14707         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14708         * doc/posix-functions/wcstok.texi: Mention the new module.
14709
14710 2011-02-06  Bruno Haible  <bruno@clisp.org>
14711
14712         New module 'wcsstr'.
14713         * modules/wcsstr: New file.
14714         * lib/wchar.in.h (wcsstr): New declaration.
14715         * lib/wcsstr.c: New file.
14716         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14717         * m4/wcsstr.m4: New file.
14718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14721         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14722         * doc/posix-functions/wcsstr.texi: Mention the new module.
14723
14724 2011-02-06  Bruno Haible  <bruno@clisp.org>
14725
14726         New module 'wcspbrk'.
14727         * modules/wcspbrk: New file.
14728         * lib/wchar.in.h (wcspbrk): New declaration.
14729         * lib/wcspbrk.c: New file.
14730         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14731         * m4/wcspbrk.m4: New file.
14732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14735         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14736         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14737
14738 2011-02-06  Bruno Haible  <bruno@clisp.org>
14739
14740         New module 'wcsspn'.
14741         * modules/wcsspn: New file.
14742         * lib/wchar.in.h (wcsspn): New declaration.
14743         * lib/wcsspn.c: New file.
14744         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14745         * m4/wcsspn.m4: New file.
14746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14749         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14750         * doc/posix-functions/wcsspn.texi: Mention the new module.
14751
14752 2011-02-06  Bruno Haible  <bruno@clisp.org>
14753
14754         New module 'wcscspn'.
14755         * modules/wcscspn: New file.
14756         * lib/wchar.in.h (wcscspn): New declaration.
14757         * lib/wcscspn.c: New file.
14758         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14759         * m4/wcscspn.m4: New file.
14760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14762         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14763         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14764         * doc/posix-functions/wcscspn.texi: Mention the new module.
14765
14766 2011-02-06  Bruno Haible  <bruno@clisp.org>
14767
14768         New module 'wcsrchr'.
14769         * modules/wcsrchr: New file.
14770         * lib/wchar.in.h (wcsrchr): New declaration.
14771         * lib/wcsrchr.c: New file.
14772         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14773         * m4/wcsrchr.m4: New file.
14774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14777         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14778         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14779
14780 2011-02-06  Bruno Haible  <bruno@clisp.org>
14781
14782         New module 'wcschr'.
14783         * modules/wcschr: New file.
14784         * lib/wchar.in.h (wcschr): New declaration.
14785         * lib/wcschr.c: New file.
14786         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14787         * m4/wcschr.m4: New file.
14788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14790         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14791         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14792         * doc/posix-functions/wcschr.texi: Mention the new module.
14793
14794 2011-02-06  Bruno Haible  <bruno@clisp.org>
14795
14796         New module 'wcsdup'.
14797         * modules/wcsdup: New file.
14798         * lib/wchar.in.h (wcsdup): New declaration.
14799         * lib/wcsdup.c: New file.
14800         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14801         * m4/wcsdup.m4: New file.
14802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14805         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14806         * doc/posix-functions/wcsdup.texi: Mention the new module.
14807
14808 2011-02-06  Bruno Haible  <bruno@clisp.org>
14809
14810         New module 'wcsxfrm'.
14811         * modules/wcsxfrm: New file.
14812         * lib/wchar.in.h (wcsxfrm): New declaration.
14813         * lib/wcsxfrm.c: New file.
14814         * lib/wcsxfrm-impl.h: New file.
14815         * m4/wcsxfrm.m4: New file.
14816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14819         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14820         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14821
14822 2011-02-06  Bruno Haible  <bruno@clisp.org>
14823
14824         New module 'wcscoll'.
14825         * modules/wcscoll: New file.
14826         * lib/wchar.in.h (wcscoll): New declaration.
14827         * lib/wcscoll.c: New file.
14828         * lib/wcscoll-impl.h: New file.
14829         * m4/wcscoll.m4: New file.
14830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14833         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14834         * doc/posix-functions/wcscoll.texi: Mention the new module.
14835
14836 2011-02-06  Bruno Haible  <bruno@clisp.org>
14837
14838         New module 'wcsncasecmp'.
14839         * modules/wcsncasecmp: New file.
14840         * lib/wchar.in.h (wcsncasecmp): New declaration.
14841         * lib/wcsncasecmp.c: New file.
14842         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14843         * m4/wcsncasecmp.m4: New file.
14844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14847         HAVE_WCSNCASECMP.
14848         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14849         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14850
14851 2011-02-06  Bruno Haible  <bruno@clisp.org>
14852
14853         New module 'wcscasecmp'.
14854         * modules/wcscasecmp: New file.
14855         * lib/wchar.in.h (wcscasecmp): New declaration.
14856         * lib/wcscasecmp.c: New file.
14857         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14858         * m4/wcscasecmp.m4: New file.
14859         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14860         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14861         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14862         HAVE_WCSCASECMP.
14863         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14864         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14865
14866 2011-02-05  Bruno Haible  <bruno@clisp.org>
14867
14868         New module 'wcsncmp'.
14869         * modules/wcsncmp: New file.
14870         * lib/wchar.in.h (wcsncmp): New declaration.
14871         * lib/wcsncmp.c: New file.
14872         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14873         * m4/wcsncmp.m4: New file.
14874         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14875         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14876         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14877         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14878         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14879
14880 2011-02-05  Bruno Haible  <bruno@clisp.org>
14881
14882         New module 'wcscmp'.
14883         * modules/wcscmp: New file.
14884         * lib/wchar.in.h (wcscmp): New declaration.
14885         * lib/wcscmp.c: New file.
14886         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14887         * m4/wcscmp.m4: New file.
14888         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14889         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14890         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14891         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14892         * doc/posix-functions/wcscmp.texi: Mention the new module.
14893
14894 2011-02-05  Bruno Haible  <bruno@clisp.org>
14895
14896         New module 'wcsncat'.
14897         * modules/wcsncat: New file.
14898         * lib/wchar.in.h (wcsncat): New declaration.
14899         * lib/wcsncat.c: New file.
14900         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14901         * m4/wcsncat.m4: New file.
14902         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14903         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14904         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14905         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14906         * doc/posix-functions/wcsncat.texi: Mention the new module.
14907
14908 2011-02-05  Bruno Haible  <bruno@clisp.org>
14909
14910         New module 'wcscat'.
14911         * modules/wcscat: New file.
14912         * lib/wchar.in.h (wcscat): New declaration.
14913         * lib/wcscat.c: New file.
14914         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14915         * m4/wcscat.m4: New file.
14916         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14917         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14918         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14919         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14920         * doc/posix-functions/wcscat.texi: Mention the new module.
14921
14922 2011-02-05  Bruno Haible  <bruno@clisp.org>
14923
14924         New module 'wcpncpy'.
14925         * modules/wcpncpy: New file.
14926         * lib/wchar.in.h (wcpncpy): New declaration.
14927         * lib/wcpncpy.c: New file.
14928         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14929         * m4/wcpncpy.m4: New file.
14930         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14931         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14932         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14933         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14934         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14935
14936 2011-02-05  Bruno Haible  <bruno@clisp.org>
14937
14938         New module 'wcsncpy'.
14939         * modules/wcsncpy: New file.
14940         * lib/wchar.in.h (wcsncpy): New declaration.
14941         * lib/wcsncpy.c: New file.
14942         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14943         * m4/wcsncpy.m4: New file.
14944         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14945         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14946         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14947         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14948         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14949
14950 2011-02-05  Bruno Haible  <bruno@clisp.org>
14951
14952         New module 'wcpcpy'.
14953         * modules/wcpcpy: New file.
14954         * lib/wchar.in.h (wcpcpy): New declaration.
14955         * lib/wcpcpy.c: New file.
14956         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14957         * m4/wcpcpy.m4: New file.
14958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14960         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14961         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14962         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14963
14964 2011-02-05  Bruno Haible  <bruno@clisp.org>
14965
14966         New module 'wcscpy'.
14967         * modules/wcscpy: New file.
14968         * lib/wchar.in.h (wcscpy): New declaration.
14969         * lib/wcscpy.c: New file.
14970         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14971         * m4/wcscpy.m4: New file.
14972         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14973         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14974         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14975         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14976         * doc/posix-functions/wcscpy.texi: Mention the new module.
14977
14978 2011-02-05  Bruno Haible  <bruno@clisp.org>
14979
14980         New module 'wcsnlen'.
14981         * modules/wcsnlen: New file.
14982         * lib/wchar.in.h (wcsnlen): New declaration.
14983         * lib/wcsnlen.c: New file.
14984         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14985         * m4/wcsnlen.m4: New file.
14986         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14987         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14988         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14989         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14990         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14991
14992 2011-02-05  Bruno Haible  <bruno@clisp.org>
14993
14994         New module 'wcslen'.
14995         * modules/wcslen: New file.
14996         * lib/wchar.in.h (wcslen): New declaration.
14997         * lib/wcslen.c: New file.
14998         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14999         * m4/wcslen.m4: New file.
15000         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15001         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15002         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15003         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15004         * doc/posix-functions/wcslen.texi: Mention the new module.
15005
15006 2011-02-05  Bruno Haible  <bruno@clisp.org>
15007
15008         New module 'wmemset'.
15009         * modules/wmemset: New file.
15010         * lib/wchar.in.h (wmemset): New declaration.
15011         * lib/wmemset.c: New file.
15012         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15013         * m4/wmemset.m4: New file.
15014         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15015         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15016         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15017         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15018         * doc/posix-functions/wmemset.texi: Mention the new module.
15019
15020 2011-02-05  Bruno Haible  <bruno@clisp.org>
15021
15022         New module 'wmemmove'.
15023         * modules/wmemmove: New file.
15024         * lib/wchar.in.h (wmemmove): New declaration.
15025         * lib/wmemmove.c: New file.
15026         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15027         * m4/wmemmove.m4: New file.
15028         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15029         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15030         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15031         HAVE_WMEMMOVE.
15032         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15033         * doc/posix-functions/wmemmove.texi: Mention the new module.
15034
15035 2011-02-05  Bruno Haible  <bruno@clisp.org>
15036
15037         New module 'wmemcpy'.
15038         * modules/wmemcpy: New file.
15039         * lib/wchar.in.h (wmemcpy): New declaration.
15040         * lib/wmemcpy.c: New file.
15041         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15042         * m4/wmemcpy.m4: New file.
15043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15045         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15046         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15047         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15048
15049 2011-02-05  Bruno Haible  <bruno@clisp.org>
15050
15051         New module 'wmemcmp'.
15052         * modules/wmemcmp: New file.
15053         * lib/wchar.in.h (wmemcmp): New declaration.
15054         * lib/wmemcmp.c: New file.
15055         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15056         * m4/wmemcmp.m4: New file.
15057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15059         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15060         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15061         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15062
15063 2011-02-07  Jim Meyering  <meyering@redhat.com>
15064
15065         di-set, ino-map: new modules, from coreutils
15066         * lib/di-set.c: New file.
15067         * lib/di-set.h: Likewise.
15068         * lib/ino-map.c: Likewise.
15069         * lib/ino-map.h: Likewise.
15070         * modules/di-set: Likewise.
15071         * modules/di-set-tests: Likewise.
15072         * modules/ino-map: Likewise.
15073         * modules/ino-map-tests: Likewise.
15074         * tests/test-di-set.c: Likewise.
15075         * tests/test-ino-map.c: Likewise.
15076
15077 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15078
15079         getloadavg: merge minor changes from Emacs
15080
15081         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15082         (getloadavg): Use memset, not bzero.
15083
15084         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15085         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15086         clash (bug#86).
15087
15088 2010-11-14  Bruno Haible  <bruno@clisp.org>
15089
15090         Allow multiple gnulib generated replacements to coexist.
15091         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15092         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15093         * lib/langinfo.in.h (nl_item): Likewise.
15094         * lib/math.in.h (_NaN, NAN): Likewise.
15095         * lib/netdb.in.h (struct addrinfo): Likewise.
15096         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15097         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15098         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15099         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15100         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15101         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15102         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15103         pthread_mutexattr_init, pthread_mutexattr_settype,
15104         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15105         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15106         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15107         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15108         * lib/sched.in.h (struct sched_param): Likewise.
15109         * lib/se-selinux.in.h (security_class_t, security_context_t,
15110         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15111         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15112         lsetfilecon, fsetfilecon, security_check_context,
15113         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15114         Likewise.
15115         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15116         Likewise.
15117         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15118         _gl_function_taking_int_returning_void_t, union sigval,
15119         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15120         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15121         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15122         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15123         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15124         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15125         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15126         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15127         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15128         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15129         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15130         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15131         socklen_t, rpl_fd_isset): Likewise.
15132         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15133         * lib/sys_time.in.h (struct timeval): Likewise.
15134         * lib/sys_times.in.h (struct tms): Likewise.
15135         * lib/sys_utsname.in.h (struct utsname):
15136         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15137         * lib/unistd.in.h (getpagesize): Likewise.
15138         * lib/wchar.in.h (mbstate_t): Likewise.
15139         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15140         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15141         towlower, towupper): Likewise.
15142         Reported by Sam Steingold <sds@gnu.org>.
15143
15144 2011-02-05  Eric Blake  <eblake@redhat.com>
15145
15146         unsetenv: work around Haiku issues
15147         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15148         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15149
15150 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15151
15152         libposix: avoid calling error() within libposix
15153         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15154         is defined.
15155
15156 2011-02-05  Eric Blake  <eblake@redhat.com>
15157
15158         strerror_r-posix: port to cygwin
15159         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15160         implementation.
15161         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15162         * tests/test-strerror_r.c (main): Fix test.
15163         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15164         issue.
15165
15166 2011-02-05  Bruno Haible  <bruno@clisp.org>
15167
15168         New module 'wmemchr'.
15169         * modules/wmemchr: New file.
15170         * lib/wchar.in.h (wmemchr): New declaration.
15171         * lib/wmemchr.c: New file.
15172         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15173         * m4/wmemchr.m4: New file.
15174         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15175         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15176         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15177         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15178         * doc/posix-functions/wmemchr.texi: Mention the new module.
15179
15180 2011-02-04  Eric Blake  <eblake@redhat.com>
15181
15182         fdopendir: detect FreeBSD bug
15183         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15184         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15185
15186 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15187
15188         stdbool: do not define HAVE_STDBOOL_H
15189         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15190         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15191         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15192         imported from the latest Autoconf git.  It was motivated by Emacs,
15193         which uses gnulib but does not need HAVE_STDBOOL_H.
15194
15195 2011-02-04  Bruno Haible  <bruno@clisp.org>
15196
15197         wcsnrtombs: Prepare for new module wwcsnrtombs.
15198         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15199         * lib/wcsnrtombs.c: Include it.
15200         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15201
15202         wcsrtombs: Prepare for new module wwcsrtombs.
15203         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15204         * lib/wcsrtombs.c: Include it.
15205         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15206
15207         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15208         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15209         * lib/mbsnrtowcs.c: Include it.
15210         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15211
15212         mbsrtowcs: Prepare for new module mbsrtowwcs.
15213         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15214         * lib/mbsrtowcs.c: Include it.
15215         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15216
15217 2011-02-04  Bruno Haible  <bruno@clisp.org>
15218
15219         vasnprintf: Reduce use of malloc for small format strings.
15220         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15221         (arguments): Add room for the first 7 arguments.
15222         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15223         (char_directives, u8_directives, u16_directives, u32_directives): Add
15224         room for the first 7 directives.
15225         * lib/printf-parse.c: Include <string.h>.
15226         (PRINTF_PARSE): Change memory handling code so that it uses the first
15227         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15228         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15229         Reported by Pádraig Brady <P@draigbrady.com>.
15230
15231 2011-01-31  Eric Blake  <eblake@redhat.com>
15232
15233         dup2: work around Haiku bug
15234         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15235         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15236         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15237         * tests/test-dup2.c (main): Enhance test.
15238
15239 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15240
15241         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15242         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15243         declared by eglibc 2.11.2.
15244         * lib/stdio.in.h: Likewise.
15245
15246 2011-01-31  Eric Blake  <eblake@redhat.com>
15247
15248         ignore-value: add missing test dependency
15249         * tests/test-ignore-value.c: Revert previous change; stdio.h
15250         provides off_t.
15251         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15252
15253 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15254
15255         mktime: clarify long_int width checking
15256         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15257         the top level, to make it clearer that the assumption about
15258         long_int width is being checked.  See
15259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15260
15261 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15262
15263         ignore-value: Fix self-test.
15264         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15265
15266 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15267
15268         TYPE_MAXIMUM: avoid theoretically undefined behavior
15269         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15270         negative number, which the C Standard says has undefined behavior.
15271         In practice this is not a problem, but might as well do it by the book.
15272         Reported by Rich Felker and Eric Blake; see
15273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15274         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15275         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15277         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15278         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15279         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15280
15281         mktime: #undef mktime before #defining it
15282         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15283
15284         mktime: systematically normalize tm_isdst comparisons
15285         * lib/mktime.c (isdst_differ): New function.
15286         (__mktime_internal): Use it systematically for all isdst comparisons.
15287         This completes the fix for libc BZ #6723, and removes the need for
15288         normalizing tm_isdst.  See
15289         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15290         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15291
15292         mktime: fix some integer overflow issues and sidestep the rest
15293
15294         This was prompted by a bug report by Benjamin Lindner for MinGW
15295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15296         His bug is due to signed integer overflow (0 - INT_MIN), and I
15297         I scanned through mktime.c looking for other integer overflow
15298         problems, fixing all the bugs I found.
15299
15300         Although the C Standard says the resulting code is still not safe
15301         in the presence of integer overflow, in practice it should be good
15302         enough for all real-world two's-complement implementations, except
15303         for debugging environments that deliberately trap on integer
15304         overflow (e.g., gcc -ftrapv).
15305
15306         * lib/mktime.c (WRAPV): New macro.
15307         (SHR): Also check that long_int and time_t shift right in the
15308         usual way, before using the fast-but-unportable method.
15309         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15310         used.  The code already assumed two's complement, so there's
15311         no need to test for alternatives.  All uses removed.
15312         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15313         the C standard.  Problem reported by Rich Felker in
15314         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15315         (twos_complement_arithmetic): Also check long_int and time_t.
15316         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15317         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15318         (__mktime_internal): Avoid integer overflow with unary subtraction
15319         in two instances where -1 - X is an adequate replacement for -X,
15320         since the calculations are approximate.
15321
15322 2011-01-29  Eric Blake  <eblake@redhat.com>
15323
15324         mktime: avoid infinite loop
15325         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15326         type; behavior is still undefined but portable to all known targets.
15327         Reported by Rich Felker.
15328
15329 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15330
15331         rename, unlink, same-inode: Relicense.
15332         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15333         * modules/unlink (License): Likewise.
15334         * modules/same-inode (License): Likewise.
15335
15336 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15337
15338         mktime: avoid problems on NetBSD 5 / i386
15339         * lib/mktime.c (long_int): New type.  This works around a problem
15340         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15341         but time_t is 64 bits, and where I expect the existing code is
15342         wrong in some cases.
15343         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15344         (ydhms_diff): Bring back the compile-time check for wide-enough
15345         year and yday.
15346
15347         mktime: fix misspelling in comment
15348         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15349         This merges all recent glibc changes of importance.
15350
15351 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15352
15353         move-if-change: cope with concurrent mv of identical file.
15354         * build-aux/move-if-change (CMPPROG): Accept environment
15355         variable as an override for `cmp'.
15356         (usage): Document CMPPROG.
15357         Adjust comparison to drop stdout.  Cope with failure of mv if
15358         the target file exists and is identical to the source, for
15359         parallel builds.
15360         Report from H.J. Lu against binutils in PR binutils/12283.
15361
15362 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15363
15364         * users.txt: Mention sharutils.
15365
15366 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15367
15368         * users.txt: Mention OATH Toolkit.
15369
15370 2011-01-27  Bruno Haible  <bruno@clisp.org>
15371
15372         Prepare for supporting FreeBSD 10.
15373         * build-aux/config.libpath: Remove handling of freebsd1*.
15374
15375 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15376
15377         Prepare for supporting FreeBSD 10.
15378         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15379         match FreeBSD 10.0.
15380
15381 2011-01-27  Bruno Haible  <bruno@clisp.org>
15382
15383         vma-iter, get-rusage-as: Add OpenBSD support.
15384         * modules/vma-iter (configure.ac): Test for mquery.
15385         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15386         * lib/vma-iter.c: Include <sys/mman.h>.
15387         (vma_iterate): Add an implementation based on mquery().
15388         * lib/resource-ext.h (get_rusage_as): Update comments.
15389         * lib/get-rusage-as.c: Likewise.
15390         * lib/get-rusage-data.c: Likewise.
15391
15392 2011-01-26  Karl Berry  <karl@gnu.org>
15393
15394         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15395         variables to make it easier to override the makeinfo program used.
15396
15397 2011-01-26  Eric Blake  <eblake@redhat.com>
15398
15399         fcntl: work around Haiku F_DUPFD bugs
15400         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15401         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15402         cloexec bit on duplication.
15403         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15404
15405 2011-01-26  Bruno Haible  <bruno@clisp.org>
15406
15407         Enable memory leak tests on AIX.
15408         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15409         * tests/test-fprintf-posix3.c (main): Likewise.
15410
15411 2011-01-26  Bruno Haible  <bruno@clisp.org>
15412
15413         Tests for module 'get-rusage-data'.
15414         * modules/get-rusage-data-tests: New file.
15415         * tests/test-get-rusage-data.c: New file.
15416
15417         New module 'get-rusage-data'.
15418         * lib/resource-ext.h (get_rusage_data): New declaration.
15419         * lib/get-rusage-data.c: New file.
15420         * modules/get-rusage-data: New file.
15421
15422 2011-01-25  Bruno Haible  <bruno@clisp.org>
15423
15424         get-rusage-as: Allow for easier testing.
15425         * lib/resource-ext.h (get_rusage_as): Add comment.
15426         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15427         (main): New function for interactive testing.
15428
15429 2011-01-25  Bruno Haible  <bruno@clisp.org>
15430
15431         vma-iter: Treat Haiku like BeOS.
15432         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15433         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15434
15435 2011-01-25  Eric Blake  <eblake@redhat.com>
15436
15437         c-stack: fix regression on cygwin when libsigsegv is present
15438         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15439
15440 2011-01-24  Bruno Haible  <bruno@clisp.org>
15441
15442         vma-iter: Avoid empty intervals.
15443         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15444         on an empty interval.
15445
15446 2011-01-24  Jim Meyering  <meyering@redhat.com>
15447
15448         u64: remove unnecessary #include
15449         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15450
15451 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15452
15453         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15454         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15455
15456 2011-01-23  Bruno Haible  <bruno@clisp.org>
15457
15458         New module 'vma-iter'.
15459         * lib/vma-iter.h: New file.
15460         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15461         * modules/vma-iter: New file.
15462         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15463         for get_rusage_as_via_iterator.
15464         (vma_iterate_callback): New function.
15465         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15466         * modules/get-rusage-as (Depends-on): Add vma-iter.
15467
15468 2011-01-23  Bruno Haible  <bruno@clisp.org>
15469
15470         uninorm: Tweak includes.
15471         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15472         Reported by Jim Meyering.
15473
15474 2011-01-23  Bruno Haible  <bruno@clisp.org>
15475
15476         get-rusage-as: Improve on NetBSD.
15477         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15478         /proc, like on FreeBSD.
15479
15480 2011-01-23  Jim Meyering  <meyering@redhat.com>
15481
15482         xreadlink.h: remove unnecessary #include
15483         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15484
15485         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15486         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15487
15488 2011-01-23  Bruno Haible  <bruno@clisp.org>
15489
15490         get-rusage-as: Fix bug.
15491         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15492         original limit when aborting the first loop.
15493
15494 2011-01-23  Bruno Haible  <bruno@clisp.org>
15495
15496         wctype: Ensure valid C syntax.
15497         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15498         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15499
15500 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15501
15502         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15503         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15504         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15505         as they are needed only for configure's test case.
15506         This removes two unnecessary symbols from config.h.
15507
15508         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15509         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15510         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15511         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15512         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15513         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15514         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15515         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15516         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15517         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15518         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15519         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15520         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15521         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15522         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15523         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15524         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15525         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15526
15527 2011-01-21  Eric Blake  <eblake@redhat.com>
15528
15529         maintainer-makefile: work with older git for submodule check
15530         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15531         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15532         Reported by Matthias Bolte.
15533
15534         bootstrap: minor portability fixes
15535         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15536         (usage): Omit leading capital and trailing . on help phrases, per
15537         GNU Coding Standards.
15538         (check_versions, top level): Prefix messages with script name.
15539
15540 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15541
15542         bootstrap: support --no-git option
15543         * build-aux/bootstrap: Add --no-git option, to be used when
15544         --gnulib-srcdir points to the exact desired checkout.
15545
15546 2011-01-21  Eric Blake  <eblake@redhat.com>
15547
15548         strerror_r-posix: work with glibc 2.13
15549         * lib/strerror_r.c (strerror_r): Fix return type.
15550
15551 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15552             Bruno Haible  <bruno@clisp.org>
15553
15554         uN_strstr: New unit tests.
15555         * modules/unistr/u8-strstr-tests: New file.
15556         * modules/unistr/u16-strstr-tests: New file.
15557         * modules/unistr/u32-strstr-tests: New file.
15558         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15559         * tests/unistr/test-u8-strstr.c: New file.
15560         * tests/unistr/test-u16-strstr.c: New file.
15561         * tests/unistr/test-u32-strstr.c: New file.
15562
15563 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15564             Bruno Haible  <bruno@clisp.org>
15565
15566         Make uN_strstr functions O(n) worst-case.
15567         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15568         16-bit and 32-bit unit cases, use the unibyte algorithm from
15569         lib/mbsstr.c.
15570         * lib/unistr/u8-strstr.c: Include <string.h>.
15571         (UNIT_IS_UINT8_T): New macro.
15572         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15573         (U_STRLEN, U_STRNLEN): New macros.
15574         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15575         (U_STRLEN, U_STRNLEN): New macros.
15576         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15577         (configure.ac): Update required libunistring version.
15578         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15579         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15580         malloca.
15581         (configure.ac): Update required libunistring version.
15582         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15583         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15584         malloca.
15585         (configure.ac): Update required libunistring version.
15586
15587 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15588             Bruno Haible  <bruno@clisp.org>
15589
15590         Prepare for faster uN_strstr functions.
15591         * lib/str-kmp.h: Support definable UNITs.
15592         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15593         needle_len argument.
15594         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15595         * lib/mbscasestr.c (mbscasestr): Likewise.
15596
15597 2011-01-21  Pádraig Brady <P@draigBrady.com>
15598
15599         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15600         * tests/test-malloca.c (main): Unset the environment variable
15601         to greatly speed up the test.
15602         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15603         * modules/malloca-tests: Depend on unsetenv.
15604
15605 2011-01-21  Pádraig Brady <P@draigBrady.com>
15606
15607         ignore-value: remove stdint dependency
15608         * lib/ignore-value.h: Remove <stdint.h>
15609         * modules/ignore-value: Remove stdint dependency.
15610
15611 2011-01-21  Jim Meyering  <meyering@redhat.com>
15612
15613         maint.mk: adjust variable name to be consistent with other gl_ vars
15614         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15615         to be lower case.
15616
15617 2011-01-20  Jim Meyering  <meyering@redhat.com>
15618
15619         maint.mk: make "check" depend on public-submodule-commit by default
15620         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15621
15622 2011-01-20  Bruno Haible  <bruno@clisp.org>
15623
15624         mbfile, mbiter: Complete change from 2008-12-21.
15625         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15626         * m4/mbiter.m4 (gl_MBITER): Likewise.
15627
15628 2011-01-20  Jim Meyering  <meyering@redhat.com>
15629
15630         init.sh: insert space between each function name and "()"
15631         * tests/init.sh: Make it a little easier to see that a function's
15632         name is "warn_", and not "warn" when looking at the first part of
15633         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15634
15635 2011-01-20  Jim Meyering  <meyering@redhat.com>
15636
15637         mountlist: clean up code formatting
15638         * lib/mountlist.c (read_file_system_list): Split a long line,
15639         correct bracing style, use NULL in place of "(struct statfs *)0",
15640         don't parenthesize return value, add spaces around "=" and after
15641         ";-in-for-stmt".
15642
15643 2011-01-14  Markus Duft <mduft@gentoo.org>
15644
15645         mountlist: add support for Interix
15646         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15647         Apply statvfs to all entries of /dev/fs.
15648         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15649         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15650
15651 2011-01-20  Jim Meyering  <meyering@redhat.com>
15652
15653         maint.mk: improve the public-submodule-commit rule
15654         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15655         to suppress printing of its commands... unless V=1.
15656         Add git submodule's --quiet option to suppress printing of e.g.,
15657         "Entering gnulib" output.
15658         "cd" into $(srcdir) before running git submodule.
15659
15660 2011-01-20  Bruno Haible  <bruno@clisp.org>
15661
15662         include_next: Fix bug introduced on 2011-01-18.
15663         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15664         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15665         ac_cv_header_... variable if the second argument is not 'check'.
15666         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15667         gl_NEXT_HEADERS_INTERNAL.
15668
15669 2011-01-20  Bruno Haible  <bruno@clisp.org>
15670
15671         Allow the user to avoid the GNULIB_TEST_* macros.
15672         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15673         Suggested by Paul Eggert.
15674
15675 2011-01-14  Jim Meyering  <meyering@redhat.com>
15676
15677         bootstrap: avoid failure when there is no .gitmodules file
15678         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15679         has been assigned to, even when its value is the empty string.
15680         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15681         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15682         Reported by John W. Eaton <jwe@gnu.org>.
15683
15684 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15685
15686         assume <ctype.h>, ..., <time.h> exist
15687         For years gnulib has been assuming the existence of the headers
15688         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15689         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15690         them, since they don't appear to be needed.
15691         * README (Portability guidelines): Document this.
15692         * lib/flock.c: Assume <fcntl.h> exists.
15693         * lib/regex_internal.h: Assume <locale.h> exists.
15694         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15695         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15696         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15697         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15698         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15699         * m4/regex.m4 (gl_REGEX): Likewise.
15700         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15701         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15702         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15703         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15704         * tests/test-argp.c: Likewise.
15705         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15706
15707         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15708         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15709         AA_APPLE_UNIVERSAL_BUILD.  See
15710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15711         * NEWS: Document this.
15712
15713 2011-01-19  Eric Blake  <eblake@redhat.com>
15714
15715         c-stack: assume stack overflow if SA_SIGINFO unsupported
15716         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15717         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15718         sigaction will work.
15719         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15720         behavior match Linux.
15721         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15722
15723         stdbool-tests: accomodate Haiku
15724         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15725
15726         binary-io: fix O_TEXT on Haiku
15727         * modules/binary-io (Depends-on): Add fcntl-h.
15728         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15729         than blindly undefining O_TEXT.
15730         Reported by Scott McCreary.
15731
15732 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15733
15734         include_next: do not check for standard headers like stddef.h
15735
15736         I found this problem when modifying Emacs to use gnulib.
15737         I noticed that it added HAVE_STDDEF_H to config.h, even though
15738         gnulib always assumes <stddef.h> exists as per README and this
15739         symbol is unnecessary.
15740         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15741         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15742         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15743         faster for headers like stddef.h that are known to exist.
15744         (gl_CHECK_NEXT_HEADERS): Use it.
15745         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15746         rather than gl_CHECK_NEXT_HEADERS.
15747         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15748         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15749
15750 2011-01-18  Eric Blake  <eblake@redhat.com>
15751
15752         ansi-c++-opt: skip C++ dependency style if C++ is unused
15753         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15754         tests when we know C++ compilation is not desired.
15755         Reported by Scott McCreary.
15756
15757 2011-01-18  Bruno Haible  <bruno@clisp.org>
15758
15759         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15760         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15761         (main): Perform test also when getrlimit and setrlimit don't exist or
15762         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15763         limiting the address space size using setrlimit, compare the address
15764         space size before and after the the test.
15765         * tests/test-dprintf-posix2.c: Likewise.
15766         * tests/test-fprintf-posix3.sh: Update skip messages.
15767         * tests/test-dprintf-posix2.sh: Likewise.
15768         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15769         * modules/dprintf-posix-tests (Depends-on): Likewise.
15770         Reported by Bruce Korb <bkorb@gnu.org> and
15771         Gary V. Vaughan <gary@gnu.org>.
15772
15773 2011-01-18  Bruno Haible  <bruno@clisp.org>
15774
15775         get-rusage-as: Improvement for Cygwin.
15776         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15777         areas that are merely reserved.
15778
15779 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15780
15781         strftime: remove dependencies on multibyte modules
15782
15783         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15784         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15785         only if __osf__ is defined, and I suspect OSF doesn't need these
15786         other modules.  If my guess is wrong, we'll need to come up with a
15787         variant of strftime that doesn't need the multibyte modules.
15788
15789         I discovered this problem when attempting modify Emacs to use the
15790         strftime module.  With the previous gnulib, this caused Emacs to
15791         need 31 new files, ranging from lib/config.charset to
15792         m4/wint_t.m4.  This was overkill and I expect would be offputting
15793         to the Emacs maintainers.  After this change, only 6 new files are
15794         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15795         stdbool.m4, and tm_gmtoff.m4.
15796
15797         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15798         Suggested by Bruno Haible in
15799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15800         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15801         and do not check for wchar.h.
15802         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15803         (Depends-on): Remove mbrlen, mbsinit, wchar.
15804
15805 2011-01-18  Bruno Haible  <bruno@clisp.org>
15806
15807         Tests for module 'get-rusage-as'.
15808         * modules/get-rusage-as-tests: New file.
15809         * tests/test-get-rusage-as.c: New file.
15810
15811         New module 'get-rusage-as'.
15812         * modules/get-rusage-as: New file.
15813         * lib/resource-ext.h: New file.
15814         * lib/get-rusage-as.c: New file.
15815
15816 2011-01-17  Eric Blake  <eblake@redhat.com>
15817
15818         sigaction: relax license from LGPLv3+ to LGPLv2+
15819         * modules/sigaction (License): Relax to LGPLv2+.
15820
15821 2011-01-14  Bruno Haible  <bruno@clisp.org>
15822
15823         filemode: Make function declarations usable in C++ mode.
15824         * lib/filemode.h: Enclose function declarations in extern "C" block.
15825         Reported by John W. Eaton <jwe@gnu.org>.
15826
15827 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15828
15829         save-cwd: no longer include "xgetcwd.h"
15830         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15831         This avoids a compilation failure in projects that use save-cwd
15832         without also using the xgetcwd module.
15833
15834 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15835
15836         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15837         This is so that a program like Emacs, which needs only dtoastr,
15838         does not have to bother with distributing and compiling ftoastr
15839         and ldtoastr.
15840         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15841         * modules/dtoastr, modules/ldtoastr: New files.
15842         * modules/ftoastr: Now works just for 'float'.
15843         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15844         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15845         dtoastr.c, ldtoastr.c.
15846
15847 2011-01-11  Jim Meyering  <meyering@redhat.com>
15848
15849         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15850         There is no need to work around the lack of the fchdir function,
15851         since gnulib can now provide a replacement when required.
15852         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15853         * modules/save-cwd (Depends-on): Add fchdir.
15854
15855 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15856
15857         openat, save-cwd: avoid xmalloc
15858
15859         This removes a direct (but undocumented) dependency of openat on
15860         xalloc, along with an indirect dependency via save-cwd.  It also
15861         removes a dependency of save-cwd on xgetcwd, and thereby
15862         indirectly on xalloc.  This change causes the openat substitute
15863         to fall back on save_cwd when memory is tight, and for save_cwd to
15864         fail instead of dying when memory is tight, but that's good enough.
15865         Problem and initial idea for fix reported by Bastien Roucaries in
15866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15867
15868         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15869         xalloc.h (for xmalloc).
15870         (openat_proc_name): Use malloc, not xmalloc.
15871         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15872         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15873
15874         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15875         This avoids heap allocation for file names whose lengths are in
15876         the range 512..1023, with the upper bound increasing to at most
15877         4031 depending on the platform's PATH_MAX.  (We do not want
15878         pathmax.h here as it might supply a non-constant PATH_MAX.)
15879         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15880         Perhaps they should be moved to malloca.h?
15881         (OPENAT_BUFFER_SIZE): Use them.
15882
15883 2011-01-10  Bruno Haible  <bruno@clisp.org>
15884
15885         doc: Update users.txt.
15886         * users.txt: Add recutils.
15887
15888 2011-01-09  Karl Berry  <karl@gnu.org>
15889
15890         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15891
15892         * doc/configmake.texi: New file.
15893         * doc/gnulib.texi: Include it.
15894         * modules/configmake: Move documentation from here.
15895
15896 2011-01-09  Bruno Haible  <bruno@clisp.org>
15897
15898         Update to Unicode 6.0.0.
15899         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15900         (get_lbp): Update for Unicode 6.0.0.
15901         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15902         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15903         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15904         U+11001, U+11038..U+11046. Remove U+06DE.
15905         (uc_width): Fix bounds of planes.
15906         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15907         lib/uniwidth/width.c.
15908         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15909         trailing whitespace removed.
15910         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15911         without comments, but with the original copyright notice.
15912         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15913         * lib/unicase/ignorable.h: Likewise.
15914         * lib/unicase/tocasefold.h: Likewise.
15915         * lib/unicase/tolower.h: Likewise.
15916         * lib/unicase/totitle.h: Likewise.
15917         * lib/unicase/toupper.h: Likewise.
15918         * lib/unictype/bidi_of.h: Likewise.
15919         * lib/unictype/blocks.h: Likewise.
15920         * lib/unictype/categ_C.h: Likewise.
15921         * lib/unictype/categ_Cn.h: Likewise.
15922         * lib/unictype/categ_L.h: Likewise.
15923         * lib/unictype/categ_Ll.h: Likewise.
15924         * lib/unictype/categ_Lm.h: Likewise.
15925         * lib/unictype/categ_Lo.h: Likewise.
15926         * lib/unictype/categ_Lu.h: Likewise.
15927         * lib/unictype/categ_M.h: Likewise.
15928         * lib/unictype/categ_Mc.h: Likewise.
15929         * lib/unictype/categ_Me.h: Likewise.
15930         * lib/unictype/categ_Mn.h: Likewise.
15931         * lib/unictype/categ_N.h: Likewise.
15932         * lib/unictype/categ_Nd.h: Likewise.
15933         * lib/unictype/categ_No.h: Likewise.
15934         * lib/unictype/categ_P.h: Likewise.
15935         * lib/unictype/categ_Po.h: Likewise.
15936         * lib/unictype/categ_S.h: Likewise.
15937         * lib/unictype/categ_Sc.h: Likewise.
15938         * lib/unictype/categ_Sk.h: Likewise.
15939         * lib/unictype/categ_Sm.h: Likewise.
15940         * lib/unictype/categ_So.h: Likewise.
15941         * lib/unictype/categ_of.h: Likewise.
15942         * lib/unictype/combining.h: Likewise.
15943         * lib/unictype/ctype_alnum.h: Likewise.
15944         * lib/unictype/ctype_alpha.h: Likewise.
15945         * lib/unictype/ctype_graph.h: Likewise.
15946         * lib/unictype/ctype_lower.h: Likewise.
15947         * lib/unictype/ctype_print.h: Likewise.
15948         * lib/unictype/ctype_punct.h: Likewise.
15949         * lib/unictype/ctype_upper.h: Likewise.
15950         * lib/unictype/decdigit.h: Likewise.
15951         * lib/unictype/digit.h: Likewise.
15952         * lib/unictype/numeric.h: Likewise.
15953         * lib/unictype/pr_alphabetic.h: Likewise.
15954         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15955         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15956         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15957         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15958         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15959         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15960         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15961         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15962         * lib/unictype/pr_case_ignorable.h: Likewise.
15963         * lib/unictype/pr_cased.h: Likewise.
15964         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15965         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15966         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15967         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15968         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15969         * lib/unictype/pr_combining.h: Likewise.
15970         * lib/unictype/pr_composite.h: Likewise.
15971         * lib/unictype/pr_currency_symbol.h: Likewise.
15972         * lib/unictype/pr_decimal_digit.h: Likewise.
15973         * lib/unictype/pr_deprecated.h: Likewise.
15974         * lib/unictype/pr_format_control.h: Likewise.
15975         * lib/unictype/pr_grapheme_base.h: Likewise.
15976         * lib/unictype/pr_grapheme_extend.h: Likewise.
15977         * lib/unictype/pr_grapheme_link.h: Likewise.
15978         * lib/unictype/pr_id_continue.h: Likewise.
15979         * lib/unictype/pr_id_start.h: Likewise.
15980         * lib/unictype/pr_ideographic.h: Likewise.
15981         * lib/unictype/pr_lowercase.h: Likewise.
15982         * lib/unictype/pr_math.h: Likewise.
15983         * lib/unictype/pr_numeric.h: Likewise.
15984         * lib/unictype/pr_other_alphabetic.h: Likewise.
15985         * lib/unictype/pr_other_id_continue.h: Likewise.
15986         * lib/unictype/pr_other_math.h: Likewise.
15987         * lib/unictype/pr_punctuation.h: Likewise.
15988         * lib/unictype/pr_sentence_terminal.h: Likewise.
15989         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15990         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15991         * lib/unictype/pr_unified_ideograph.h: Likewise.
15992         * lib/unictype/pr_uppercase.h: Likewise.
15993         * lib/unictype/pr_xid_continue.h: Likewise.
15994         * lib/unictype/pr_xid_start.h: Likewise.
15995         * lib/unictype/scripts.h: Likewise.
15996         * lib/unictype/scripts_byname.gperf: Likewise.
15997         * lib/unictype/sy_java_ident.h: Likewise.
15998         * lib/unigbrk/gbrkprop.h: Likewise.
15999         * lib/unilbrk/lbrkprop1.h: Likewise.
16000         * lib/unilbrk/lbrkprop2.h: Likewise.
16001         * lib/uninorm/decomposition-table2.h: Likewise.
16002         * lib/uniwbrk/wbrkprop.h: Likewise.
16003         * tests/unicase/test-cased.c: Likewise.
16004         * tests/unicase/test-ignorable.c: Likewise.
16005         * tests/unicase/test-uc_tolower.c: Likewise.
16006         * tests/unicase/test-uc_totitle.c: Likewise.
16007         * tests/unicase/test-uc_toupper.c: Likewise.
16008         * tests/unictype/test-categ_C.c: Likewise.
16009         * tests/unictype/test-categ_Cn.c: Likewise.
16010         * tests/unictype/test-categ_L.c: Likewise.
16011         * tests/unictype/test-categ_Ll.c: Likewise.
16012         * tests/unictype/test-categ_Lm.c: Likewise.
16013         * tests/unictype/test-categ_Lo.c: Likewise.
16014         * tests/unictype/test-categ_Lu.c: Likewise.
16015         * tests/unictype/test-categ_M.c: Likewise.
16016         * tests/unictype/test-categ_Mc.c: Likewise.
16017         * tests/unictype/test-categ_Me.c: Likewise.
16018         * tests/unictype/test-categ_Mn.c: Likewise.
16019         * tests/unictype/test-categ_N.c: Likewise.
16020         * tests/unictype/test-categ_Nd.c: Likewise.
16021         * tests/unictype/test-categ_No.c: Likewise.
16022         * tests/unictype/test-categ_P.c: Likewise.
16023         * tests/unictype/test-categ_Po.c: Likewise.
16024         * tests/unictype/test-categ_S.c: Likewise.
16025         * tests/unictype/test-categ_Sc.c: Likewise.
16026         * tests/unictype/test-categ_Sk.c: Likewise.
16027         * tests/unictype/test-categ_Sm.c: Likewise.
16028         * tests/unictype/test-categ_So.c: Likewise.
16029         * tests/unictype/test-ctype_alnum.c: Likewise.
16030         * tests/unictype/test-ctype_alpha.c: Likewise.
16031         * tests/unictype/test-ctype_graph.c: Likewise.
16032         * tests/unictype/test-ctype_lower.c: Likewise.
16033         * tests/unictype/test-ctype_print.c: Likewise.
16034         * tests/unictype/test-ctype_punct.c: Likewise.
16035         * tests/unictype/test-ctype_upper.c: Likewise.
16036         * tests/unictype/test-decdigit.h: Likewise.
16037         * tests/unictype/test-digit.h: Likewise.
16038         * tests/unictype/test-numeric.h: Likewise.
16039         * tests/unictype/test-pr_alphabetic.c: Likewise.
16040         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16041         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16042         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16043         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16044         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16045         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16046         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16047         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16048         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16049         * tests/unictype/test-pr_cased.c: Likewise.
16050         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16051         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16052         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16053         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16054         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16055         * tests/unictype/test-pr_combining.c: Likewise.
16056         * tests/unictype/test-pr_composite.c: Likewise.
16057         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16058         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16059         * tests/unictype/test-pr_deprecated.c: Likewise.
16060         * tests/unictype/test-pr_format_control.c: Likewise.
16061         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16062         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16063         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16064         * tests/unictype/test-pr_id_continue.c: Likewise.
16065         * tests/unictype/test-pr_id_start.c: Likewise.
16066         * tests/unictype/test-pr_ideographic.c: Likewise.
16067         * tests/unictype/test-pr_lowercase.c: Likewise.
16068         * tests/unictype/test-pr_math.c: Likewise.
16069         * tests/unictype/test-pr_numeric.c: Likewise.
16070         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16071         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16072         * tests/unictype/test-pr_other_math.c: Likewise.
16073         * tests/unictype/test-pr_punctuation.c: Likewise.
16074         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16075         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16076         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16077         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16078         * tests/unictype/test-pr_uppercase.c: Likewise.
16079         * tests/unictype/test-pr_xid_continue.c: Likewise.
16080         * tests/unictype/test-pr_xid_start.c: Likewise.
16081         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16082         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16083         changes.
16084         * lib/unictype/categ_Cc.h: Likewise.
16085         * lib/unictype/categ_Cf.h: Likewise.
16086         * lib/unictype/categ_Co.h: Likewise.
16087         * lib/unictype/categ_Cs.h: Likewise.
16088         * lib/unictype/categ_Lt.h: Likewise.
16089         * lib/unictype/categ_Nl.h: Likewise.
16090         * lib/unictype/categ_Pc.h: Likewise.
16091         * lib/unictype/categ_Pd.h: Likewise.
16092         * lib/unictype/categ_Pe.h: Likewise.
16093         * lib/unictype/categ_Pf.h: Likewise.
16094         * lib/unictype/categ_Pi.h: Likewise.
16095         * lib/unictype/categ_Ps.h: Likewise.
16096         * lib/unictype/categ_Z.h: Likewise.
16097         * lib/unictype/categ_Zl.h: Likewise.
16098         * lib/unictype/categ_Zp.h: Likewise.
16099         * lib/unictype/categ_Zs.h: Likewise.
16100         * lib/unictype/ctype_blank.h: Likewise.
16101         * lib/unictype/ctype_cntrl.h: Likewise.
16102         * lib/unictype/ctype_digit.h: Likewise.
16103         * lib/unictype/ctype_space.h: Likewise.
16104         * lib/unictype/ctype_xdigit.h: Likewise.
16105         * lib/unictype/mirror.h: Likewise.
16106         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16107         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16108         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16109         * lib/unictype/pr_bidi_control.h: Likewise.
16110         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16111         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16112         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16113         * lib/unictype/pr_bidi_pdf.h: Likewise.
16114         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16115         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16116         * lib/unictype/pr_dash.h: Likewise.
16117         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16118         * lib/unictype/pr_diacritic.h: Likewise.
16119         * lib/unictype/pr_extender.h: Likewise.
16120         * lib/unictype/pr_hex_digit.h: Likewise.
16121         * lib/unictype/pr_hyphen.h: Likewise.
16122         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16123         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16124         * lib/unictype/pr_ignorable_control.h: Likewise.
16125         * lib/unictype/pr_iso_control.h: Likewise.
16126         * lib/unictype/pr_join_control.h: Likewise.
16127         * lib/unictype/pr_left_of_pair.h: Likewise.
16128         * lib/unictype/pr_line_separator.h: Likewise.
16129         * lib/unictype/pr_logical_order_exception.h: Likewise.
16130         * lib/unictype/pr_non_break.h: Likewise.
16131         * lib/unictype/pr_not_a_character.h: Likewise.
16132         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16133         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16134         * lib/unictype/pr_other_id_start.h: Likewise.
16135         * lib/unictype/pr_other_lowercase.h: Likewise.
16136         * lib/unictype/pr_other_uppercase.h: Likewise.
16137         * lib/unictype/pr_paired_punctuation.h: Likewise.
16138         * lib/unictype/pr_paragraph_separator.h: Likewise.
16139         * lib/unictype/pr_pattern_syntax.h: Likewise.
16140         * lib/unictype/pr_pattern_white_space.h: Likewise.
16141         * lib/unictype/pr_private_use.h: Likewise.
16142         * lib/unictype/pr_quotation_mark.h: Likewise.
16143         * lib/unictype/pr_radical.h: Likewise.
16144         * lib/unictype/pr_soft_dotted.h: Likewise.
16145         * lib/unictype/pr_space.h: Likewise.
16146         * lib/unictype/pr_titlecase.h: Likewise.
16147         * lib/unictype/pr_variation_selector.h: Likewise.
16148         * lib/unictype/pr_white_space.h: Likewise.
16149         * lib/unictype/pr_zero_width.h: Likewise.
16150         * lib/unictype/sy_c_ident.h: Likewise.
16151         * lib/unictype/sy_c_whitespace.h: Likewise.
16152         * lib/unictype/sy_java_whitespace.h: Likewise.
16153         * lib/uninorm/composition-table.gperf: Likewise.
16154         * lib/uninorm/decomposition-table1.h: Likewise.
16155         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16156         LB8.
16157         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16158         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16159         * modules/unictype/*: Bump version number of expected libunistring
16160         version.
16161
16162 2011-01-09  Bruno Haible  <bruno@clisp.org>
16163
16164         Update to Unicode 5.2.0.
16165         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16166         trailing whitespace removed.
16167
16168 2011-01-09  Bruno Haible  <bruno@clisp.org>
16169
16170         New Unicode character properties, from Unicode 5.2.0.
16171         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16172         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16173         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16174         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16175         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16176         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16177         uc_is_property_cased, uc_is_property_case_ignorable,
16178         uc_is_property_changes_when_lowercased,
16179         uc_is_property_changes_when_uppercased,
16180         uc_is_property_changes_when_titlecased,
16181         uc_is_property_changes_when_casefolded,
16182         uc_is_property_changes_when_casemapped): New declarations.
16183         * lib/unictype/pr_byname.gperf: Add the new properties.
16184         * modules/unictype/property-byname (Depends-on): Depend on the new
16185         properties modules.
16186         * modules/unictype/property-all (Depends-on): Likewise.
16187         * MODULES.html.sh (Unicode string functions): Add
16188         unictype/property-case-ignorable, unictype/property-cased,
16189         unictype/property-changes-when-casefolded,
16190         unictype/property-changes-when-casemapped,
16191         unictype/property-changes-when-lowercased,
16192         unictype/property-changes-when-titlecased,
16193         unictype/property-changes-when-uppercased.
16194
16195         New module 'unictype/property-changes-when-casemapped'.
16196         * modules/unictype/property-changes-when-casemapped: New file.
16197         * lib/unictype/pr_changes_when_casemapped.c: New file.
16198         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16199         generated by gen-uni-tables.
16200         * modules/unictype/property-changes-when-casemapped-tests: New file.
16201         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16202         automatically generated by gen-uni-tables.
16203
16204         New module 'unictype/property-changes-when-casefolded'.
16205         * modules/unictype/property-changes-when-casefolded: New file.
16206         * lib/unictype/pr_changes_when_casefolded.c: New file.
16207         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16208         generated by gen-uni-tables.
16209         * modules/unictype/property-changes-when-casefolded-tests: New file.
16210         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16211         automatically generated by gen-uni-tables.
16212
16213         New module 'unictype/property-changes-when-titlecased'.
16214         * modules/unictype/property-changes-when-titlecased: New file.
16215         * lib/unictype/pr_changes_when_titlecased.c: New file.
16216         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16217         generated by gen-uni-tables.
16218         * modules/unictype/property-changes-when-titlecased-tests: New file.
16219         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16220         automatically generated by gen-uni-tables.
16221
16222         New module 'unictype/property-changes-when-uppercased'.
16223         * modules/unictype/property-changes-when-uppercased: New file.
16224         * lib/unictype/pr_changes_when_uppercased.c: New file.
16225         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16226         generated by gen-uni-tables.
16227         * modules/unictype/property-changes-when-uppercased-tests: New file.
16228         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16229         automatically generated by gen-uni-tables.
16230
16231         New module 'unictype/property-changes-when-lowercased'.
16232         * modules/unictype/property-changes-when-lowercased: New file.
16233         * lib/unictype/pr_changes_when_lowercased.c: New file.
16234         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16235         generated by gen-uni-tables.
16236         * modules/unictype/property-changes-when-lowercased-tests: New file.
16237         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16238         automatically generated by gen-uni-tables.
16239
16240         New module 'unictype/property-case-ignorable'.
16241         * modules/unictype/property-case-ignorable: New file.
16242         * lib/unictype/pr_case_ignorable.c: New file.
16243         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16244         by gen-uni-tables.
16245         * modules/unictype/property-case-ignorable-tests: New file.
16246         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16247         generated by gen-uni-tables.
16248
16249         New module 'unictype/property-cased'.
16250         * modules/unictype/property-cased: New file.
16251         * lib/unictype/pr_cased.c: New file.
16252         * lib/unictype/pr_cased.h: New file, automatically generated by
16253         gen-uni-tables.
16254         * modules/unictype/property-cased-tests: New file.
16255         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16256         gen-uni-tables.
16257
16258 2011-01-09  Bruno Haible  <bruno@clisp.org>
16259
16260         Update to Unicode 5.2.0.
16261         * lib/gen-uni-tables.c (output_predicate, output_category,
16262         output_combclass, output_bidi_category, output_decimal_digit_test,
16263         output_decimal_digit, output_digit_test, output_digit,
16264         output_numeric_test, output_numeric, output_mirror, output_scripts,
16265         output_scripts_byname, output_blocks, output_ident_category): Fix
16266         comment header.
16267         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16268         get_wbp.
16269         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16270         items.
16271         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16272         Changes_When_Lowercased, Changes_When_Uppercased,
16273         Changes_When_Titlecased, Changes_When_Casefolded,
16274         Changes_When_Casemapped.
16275         (is_property_alphabetic, is_property_default_ignorable_code_point):
16276         Update for Unicode 5.2.0.
16277         (is_property_cased, is_property_case_ignorable,
16278         is_property_changes_when_lowercased,
16279         is_property_changes_when_uppercased,
16280         is_property_changes_when_titlecased,
16281         is_property_changes_when_casefolded,
16282         is_property_changes_when_casemapped): New functions.
16283         (output_properties): Output also the properties cased, case_ignorable,
16284         changes_when_lowercased, changes_when_uppercased,
16285         changes_when_titlecased, changes_when_casefolded,
16286         changes_when_casemapped.
16287         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16288         Unicode TR#11 revision 17 -> 19.
16289         (LBP_CP): New enumeration value.
16290         (LBP_*): Adjust values accordingly.
16291         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16292         TR#14 revision 22 -> 24.
16293         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16294         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16295         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16296         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16297         is_WBP_MIDLETTER.
16298         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16299         the code1 and code2 of each composition rule.
16300         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16301         * lib/unicase/ignorable.h: Likewise.
16302         * lib/unicase/tocasefold.h: Likewise.
16303         * lib/unicase/tolower.h: Likewise.
16304         * lib/unicase/totitle.h: Likewise.
16305         * lib/unicase/toupper.h: Likewise.
16306         * lib/unictype/bidi_of.h: Likewise.
16307         * lib/unictype/blocks.h: Likewise.
16308         * lib/unictype/categ_C.h: Likewise.
16309         * lib/unictype/categ_Cf.h: Likewise.
16310         * lib/unictype/categ_Cn.h: Likewise.
16311         * lib/unictype/categ_L.h: Likewise.
16312         * lib/unictype/categ_Ll.h: Likewise.
16313         * lib/unictype/categ_Lm.h: Likewise.
16314         * lib/unictype/categ_Lo.h: Likewise.
16315         * lib/unictype/categ_Lu.h: Likewise.
16316         * lib/unictype/categ_M.h: Likewise.
16317         * lib/unictype/categ_Mc.h: Likewise.
16318         * lib/unictype/categ_Mn.h: Likewise.
16319         * lib/unictype/categ_N.h: Likewise.
16320         * lib/unictype/categ_Nd.h: Likewise.
16321         * lib/unictype/categ_Nl.h: Likewise.
16322         * lib/unictype/categ_No.h: Likewise.
16323         * lib/unictype/categ_P.h: Likewise.
16324         * lib/unictype/categ_Pd.h: Likewise.
16325         * lib/unictype/categ_Po.h: Likewise.
16326         * lib/unictype/categ_S.h: Likewise.
16327         * lib/unictype/categ_Sc.h: Likewise.
16328         * lib/unictype/categ_So.h: Likewise.
16329         * lib/unictype/categ_of.h: Likewise.
16330         * lib/unictype/combining.h: Likewise.
16331         * lib/unictype/ctype_alnum.h: Likewise.
16332         * lib/unictype/ctype_alpha.h: Likewise.
16333         * lib/unictype/ctype_graph.h: Likewise.
16334         * lib/unictype/ctype_lower.h: Likewise.
16335         * lib/unictype/ctype_print.h: Likewise.
16336         * lib/unictype/ctype_punct.h: Likewise.
16337         * lib/unictype/ctype_upper.h: Likewise.
16338         * lib/unictype/decdigit.h: Likewise.
16339         * lib/unictype/digit.h: Likewise.
16340         * lib/unictype/numeric.h: Likewise.
16341         * lib/unictype/pr_alphabetic.h: Likewise.
16342         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16343         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16344         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16345         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16346         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16347         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16348         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16349         * lib/unictype/pr_combining.h: Likewise.
16350         * lib/unictype/pr_composite.h: Likewise.
16351         * lib/unictype/pr_currency_symbol.h: Likewise.
16352         * lib/unictype/pr_dash.h: Likewise.
16353         * lib/unictype/pr_decimal_digit.h: Likewise.
16354         * lib/unictype/pr_deprecated.h: Likewise.
16355         * lib/unictype/pr_diacritic.h: Likewise.
16356         * lib/unictype/pr_extender.h: Likewise.
16357         * lib/unictype/pr_grapheme_base.h: Likewise.
16358         * lib/unictype/pr_grapheme_extend.h: Likewise.
16359         * lib/unictype/pr_grapheme_link.h: Likewise.
16360         * lib/unictype/pr_id_continue.h: Likewise.
16361         * lib/unictype/pr_id_start.h: Likewise.
16362         * lib/unictype/pr_ideographic.h: Likewise.
16363         * lib/unictype/pr_ignorable_control.h: Likewise.
16364         * lib/unictype/pr_logical_order_exception.h: Likewise.
16365         * lib/unictype/pr_lowercase.h: Likewise.
16366         * lib/unictype/pr_numeric.h: Likewise.
16367         * lib/unictype/pr_other_alphabetic.h: Likewise.
16368         * lib/unictype/pr_punctuation.h: Likewise.
16369         * lib/unictype/pr_sentence_terminal.h: Likewise.
16370         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16371         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16372         * lib/unictype/pr_unified_ideograph.h: Likewise.
16373         * lib/unictype/pr_uppercase.h: Likewise.
16374         * lib/unictype/pr_xid_continue.h: Likewise.
16375         * lib/unictype/pr_xid_start.h: Likewise.
16376         * lib/unictype/pr_zero_width.h: Likewise.
16377         * lib/unictype/scripts.h: Likewise.
16378         * lib/unictype/scripts_byname.gperf: Likewise.
16379         * lib/unictype/sy_java_ident.h: Likewise.
16380         * lib/unigbrk/gbrkprop.h: Likewise.
16381         * lib/unilbrk/lbrkprop1.h: Likewise.
16382         * lib/unilbrk/lbrkprop2.h: Likewise.
16383         * lib/unilbrk/lbrktables.h: Likewise.
16384         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16385         LBP_CP. Implement rule LB30.
16386         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16387         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16388         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16389         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16390         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16391         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16392         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16393         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16394         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16395         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16396         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16397         bits instead of 16 bits in the code1 and code2 of each composition
16398         rule.
16399         (uc_composition): Update for Unicode 5.2.0.
16400         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16401         * lib/uninorm/decomposition-table2.h: Likewise.
16402         * lib/uniwbrk/wbrkprop.h: Likewise.
16403         * tests/unicase/test-cased.c: Likewise.
16404         * tests/unicase/test-ignorable.c: Likewise.
16405         * tests/unicase/test-uc_tolower.c: Likewise.
16406         * tests/unicase/test-uc_totitle.c: Likewise.
16407         * tests/unicase/test-uc_toupper.c: Likewise.
16408         * tests/unictype/test-categ_C.c: Likewise.
16409         * tests/unictype/test-categ_Cf.c: Likewise.
16410         * tests/unictype/test-categ_Cn.c: Likewise.
16411         * tests/unictype/test-categ_L.c: Likewise.
16412         * tests/unictype/test-categ_Ll.c: Likewise.
16413         * tests/unictype/test-categ_Lm.c: Likewise.
16414         * tests/unictype/test-categ_Lo.c: Likewise.
16415         * tests/unictype/test-categ_Lu.c: Likewise.
16416         * tests/unictype/test-categ_M.c: Likewise.
16417         * tests/unictype/test-categ_Mc.c: Likewise.
16418         * tests/unictype/test-categ_Mn.c: Likewise.
16419         * tests/unictype/test-categ_N.c: Likewise.
16420         * tests/unictype/test-categ_Nd.c: Likewise.
16421         * tests/unictype/test-categ_Nl.c: Likewise.
16422         * tests/unictype/test-categ_No.c: Likewise.
16423         * tests/unictype/test-categ_P.c: Likewise.
16424         * tests/unictype/test-categ_Pd.c: Likewise.
16425         * tests/unictype/test-categ_Po.c: Likewise.
16426         * tests/unictype/test-categ_S.c: Likewise.
16427         * tests/unictype/test-categ_Sc.c: Likewise.
16428         * tests/unictype/test-categ_So.c: Likewise.
16429         * tests/unictype/test-ctype_alnum.c: Likewise.
16430         * tests/unictype/test-ctype_alpha.c: Likewise.
16431         * tests/unictype/test-ctype_graph.c: Likewise.
16432         * tests/unictype/test-ctype_lower.c: Likewise.
16433         * tests/unictype/test-ctype_print.c: Likewise.
16434         * tests/unictype/test-ctype_punct.c: Likewise.
16435         * tests/unictype/test-ctype_upper.c: Likewise.
16436         * tests/unictype/test-decdigit.h: Likewise.
16437         * tests/unictype/test-digit.h: Likewise.
16438         * tests/unictype/test-numeric.h: Likewise.
16439         * tests/unictype/test-pr_alphabetic.c: Likewise.
16440         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16441         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16442         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16443         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16444         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16445         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16446         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16447         * tests/unictype/test-pr_combining.c: Likewise.
16448         * tests/unictype/test-pr_composite.c: Likewise.
16449         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16450         * tests/unictype/test-pr_dash.c: Likewise.
16451         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16452         * tests/unictype/test-pr_deprecated.c: Likewise.
16453         * tests/unictype/test-pr_diacritic.c: Likewise.
16454         * tests/unictype/test-pr_extender.c: Likewise.
16455         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16456         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16457         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16458         * tests/unictype/test-pr_id_continue.c: Likewise.
16459         * tests/unictype/test-pr_id_start.c: Likewise.
16460         * tests/unictype/test-pr_ideographic.c: Likewise.
16461         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16462         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16463         * tests/unictype/test-pr_lowercase.c: Likewise.
16464         * tests/unictype/test-pr_numeric.c: Likewise.
16465         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16466         * tests/unictype/test-pr_punctuation.c: Likewise.
16467         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16468         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16469         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16470         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16471         * tests/unictype/test-pr_uppercase.c: Likewise.
16472         * tests/unictype/test-pr_xid_continue.c: Likewise.
16473         * tests/unictype/test-pr_xid_start.c: Likewise.
16474         * tests/unictype/test-pr_zero_width.c: Likewise.
16475         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16476         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16477         changed behaviour: line breaking is now disallowed between a letter
16478         or '=' and '('.
16479         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16480         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16481         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16482         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16483         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16484         lib/uniwidth/width.c.
16485         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16486         without comments, but with the original copyright notice.
16487         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16488         changes.
16489         * lib/unictype/categ_Cc.h: Likewise.
16490         * lib/unictype/categ_Co.h: Likewise.
16491         * lib/unictype/categ_Cs.h: Likewise.
16492         * lib/unictype/categ_Lt.h: Likewise.
16493         * lib/unictype/categ_Me.h: Likewise.
16494         * lib/unictype/categ_Pc.h: Likewise.
16495         * lib/unictype/categ_Pe.h: Likewise.
16496         * lib/unictype/categ_Pf.h: Likewise.
16497         * lib/unictype/categ_Pi.h: Likewise.
16498         * lib/unictype/categ_Ps.h: Likewise.
16499         * lib/unictype/categ_Sk.h: Likewise.
16500         * lib/unictype/categ_Sm.h: Likewise.
16501         * lib/unictype/categ_Z.h: Likewise.
16502         * lib/unictype/categ_Zl.h: Likewise.
16503         * lib/unictype/categ_Zp.h: Likewise.
16504         * lib/unictype/categ_Zs.h: Likewise.
16505         * lib/unictype/ctype_blank.h: Likewise.
16506         * lib/unictype/ctype_cntrl.h: Likewise.
16507         * lib/unictype/ctype_digit.h: Likewise.
16508         * lib/unictype/ctype_space.h: Likewise.
16509         * lib/unictype/ctype_xdigit.h: Likewise.
16510         * lib/unictype/mirror.h: Likewise.
16511         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16512         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16513         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16514         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16515         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16516         * lib/unictype/pr_bidi_control.h: Likewise.
16517         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16518         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16519         * lib/unictype/pr_bidi_pdf.h: Likewise.
16520         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16521         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16522         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16523         * lib/unictype/pr_format_control.h: Likewise.
16524         * lib/unictype/pr_hex_digit.h: Likewise.
16525         * lib/unictype/pr_hyphen.h: Likewise.
16526         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16527         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16528         * lib/unictype/pr_iso_control.h: Likewise.
16529         * lib/unictype/pr_join_control.h: Likewise.
16530         * lib/unictype/pr_left_of_pair.h: Likewise.
16531         * lib/unictype/pr_line_separator.h: Likewise.
16532         * lib/unictype/pr_math.h: Likewise.
16533         * lib/unictype/pr_non_break.h: Likewise.
16534         * lib/unictype/pr_not_a_character.h: Likewise.
16535         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16536         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16537         * lib/unictype/pr_other_id_continue.h: Likewise.
16538         * lib/unictype/pr_other_id_start.h: Likewise.
16539         * lib/unictype/pr_other_lowercase.h: Likewise.
16540         * lib/unictype/pr_other_math.h: Likewise.
16541         * lib/unictype/pr_other_uppercase.h: Likewise.
16542         * lib/unictype/pr_paired_punctuation.h: Likewise.
16543         * lib/unictype/pr_paragraph_separator.h: Likewise.
16544         * lib/unictype/pr_pattern_syntax.h: Likewise.
16545         * lib/unictype/pr_pattern_white_space.h: Likewise.
16546         * lib/unictype/pr_private_use.h: Likewise.
16547         * lib/unictype/pr_quotation_mark.h: Likewise.
16548         * lib/unictype/pr_radical.h: Likewise.
16549         * lib/unictype/pr_soft_dotted.h: Likewise.
16550         * lib/unictype/pr_space.h: Likewise.
16551         * lib/unictype/pr_titlecase.h: Likewise.
16552         * lib/unictype/pr_variation_selector.h: Likewise.
16553         * lib/unictype/pr_white_space.h: Likewise.
16554         * lib/unictype/sy_c_ident.h: Likewise.
16555         * lib/unictype/sy_c_whitespace.h: Likewise.
16556         * lib/unictype/sy_java_whitespace.h: Likewise.
16557         * modules/uni*/*: Bump version number of expected libunistring version.
16558         Reported by Simon Josefsson.
16559
16560 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16561
16562         useless-if-before-free: fix typo in --help and make the internal,
16563         automatic version date update process work once again.
16564         --help output contained a NUL character instead of the
16565         backslash-zero that was intended.  Also, the "must lie within
16566         the first 8 lines" line is on line 9, and hence not getting
16567         automatically updated.
16568         * build-aux/useless-if-before-free: Fix the former by adding a
16569         backslash, and the latter by condensing the three lines of what-it-does
16570         to a single line, leaving one line of slack for the future.
16571
16572 2011-01-09  Bruno Haible  <bruno@clisp.org>
16573
16574         uniwidth/width: Fix width of U+1D173..U+1D17A.
16575         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16576         symbolic_width, output_width_property_test): New functions.
16577         (main): Invoke output_nonspacing_property, output_width_property_test.
16578         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16579         U+1D173..U+1D17A.
16580         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16581         1.
16582         * modules/uniwidth/*: Bump version number of expected libunistring
16583         version.
16584         * modules/unilbrk/*: Likewise.
16585
16586 2011-01-08  Bruno Haible  <bruno@clisp.org>
16587
16588         uninorm tests: Preserve copyright of Unicode data file.
16589         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16590         Mention modifications.
16591
16592 2011-01-08  Bruno Haible  <bruno@clisp.org>
16593
16594         gen-uni-tables: Prepare for Unicode 5.2.0.
16595         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16596         (debug_output_lbp, output_lbp): Update.
16597
16598 2011-01-08  Bruno Haible  <bruno@clisp.org>
16599
16600         unilbrk: Clarify gen-uni-tables.c code.
16601         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16602         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16603         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16604
16605 2011-01-07  Bruno Haible  <bruno@clisp.org>
16606
16607         strtod: Restore errno when successfully parsing Infinity or NaN.
16608         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16609         restore the original errno.
16610
16611 2011-01-07  Bruno Haible  <bruno@clisp.org>
16612
16613         remove test: Avoid failure on HP-UX 11.
16614         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16615
16616 2011-01-07  Bruno Haible  <bruno@clisp.org>
16617
16618         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16619         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16620         error code.
16621
16622 2011-01-07  Pádraig Brady <P@draigBrady.com>
16623
16624         ignore-value: fixup comments, and add Eric Blake
16625         as an author since he rewrote the macros.
16626         * lib/ignore-value.h (ignore_value):  State that
16627         we now support aggregates.  Also specify exactly
16628         when the GCC warn_unused_result feature was added.
16629
16630 2011-01-06  Eric Blake  <eblake@redhat.com>
16631
16632         ignore-value: support aggregate types
16633         * lib/ignore-value.h (ignore_value): Provide separate gcc
16634         definition.
16635         * modules/ignore-value-tests: New test module.
16636         * tests/test-ignore-value.c: New test.
16637
16638         maint.mk: improve sc_prohibit_strcmp regex
16639         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16640         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16641         definition of STRNEQ.
16642
16643         signal: work around Haiku issue with SIGBUS
16644         * lib/siglist.h: Add comment.
16645         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16646         strsignal's favoring of SIGSEGV.
16647         * tests/test-signal.c (main): Avoid test failure.
16648         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16649         Reported by Scott McCreary.
16650
16651         maint.mk: add pre-release check to ensure submodule commits are public
16652         * top/maint.mk (public-submodule-commit): New rule.
16653         (submodule-checks): New variable.
16654         (alpha beta stable): Depend on the variable.
16655
16656 2011-01-05  Pádraig Brady <P@draigBrady.com>
16657         and Jim Meyering  <meyering@redhat.com>
16658
16659         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16660         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16661         (ATTRIBUTE_DEPRECATED): Define.
16662         (_ignore_case): New function.
16663         (ignore_value): New macro, to replace the old function.
16664         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16665         * modules/ignore-value (Depends-on): Add stdint.
16666
16667 2011-01-04  Eric Blake  <eblake@redhat.com>
16668
16669         doc: regenerate INSTALL
16670         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16671         @firstparagraphindent support, now that autoconf dropped it.
16672         (INSTALL_PRELUDE): Reinstate old macro.
16673         * doc/install.texi: Resync from autoconf.
16674         * doc/INSTALL: Reflect recent autoconf update.
16675         * doc/INSTALL.ISO: Likewise.
16676         * doc/INSTALL.UTF-8: Likewise.
16677         Reported by Karl Berry.
16678
16679 2011-01-04  Bruce Korb  <address@hidden>
16680
16681         git-version-gen: avoid a sub-shell
16682         * build-aux/git-version-gen: Redirect stderr in `...` via
16683         "exec 2>...", rather than via an added sub-shell.
16684
16685 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16686
16687         git-version-gen: use (...) rather than sh -c '...'
16688         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16689         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16690
16691 2011-01-03  Jim Meyering  <meyering@redhat.com>
16692
16693         git-version-gen: convert leading TABs to spaces
16694         * build-aux/git-version-gen: Expand leading TABs.
16695
16696         git-version-gen: handle failed "git rev-list"
16697         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16698         from git and proceeding as if it had succeeded but printed no SHA1
16699         checksums, suppress the diagnostic and handle the failure.
16700         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16701
16702         git-version-gen: include command name in one more diagnostic
16703         * build-aux/git-version-gen: When the required .tarball-version file
16704         was missing or unreadable, you might see the diagnostic from "cat",
16705         but no trace of the name of the invoking script.  Now, you still see
16706         the diagnostic from cat, but also get one from "git-version-gen: ".
16707         Inspired by a patch from Bruce Korb.
16708
16709         update-copyright: adjust test to match changed code
16710         * tests/test-update-copyright.sh: Change test's expected output
16711         to match new actual output.
16712
16713 2011-01-02  Bruno Haible  <bruno@clisp.org>
16714
16715         getlogin_r: Avoid test failure on HP-UX 11.
16716         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16717         ERANGE when the second argument is zero.
16718         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16719         portability problem.
16720
16721 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16722
16723         * build-aux/update-copyright: doc Simon's changes
16724
16725 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16726
16727         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16728         environment variable.
16729
16730 2011-01-02  Bruno Haible  <bruno@clisp.org>
16731
16732         unigbrk: Avoid gcc warnings.
16733         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16734         unused variable.
16735         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16736         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16737         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16738         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16739         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16740         Change type of first argument to 'const char *'.
16741         (main): Remove unused variable.
16742         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16743         type of first argument to 'const char *'.
16744         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16745         Likewise.
16746         (main): Change type of variable 's'.
16747         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16748         to 'int'.
16749
16750 2011-01-02  Bruno Haible  <bruno@clisp.org>
16751
16752         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16753         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16754         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16755         bug.
16756         * lib/pwrite.c: Undo 2010-12-31 patch.
16757         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16758
16759 2011-01-02  Bruno Haible  <bruno@clisp.org>
16760
16761         pread: Fix test whether it works.
16762         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16763
16764 2011-01-02  Bruno Haible  <bruno@clisp.org>
16765
16766         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16767         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16768         ends in "6". Don't require a specific month name. Try also the locale
16769         names found on HP-UX 11 and Solaris 7.
16770
16771 2011-01-02  Bruno Haible  <bruno@clisp.org>
16772
16773         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16774         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16775         C linkage.
16776         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16777
16778 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16779
16780         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16781         for consistency, since the "cluster" term is not used elsewhere.
16782         * lib/unigbrk.in.h: Update name.
16783         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16784         * lib/unigbrk/u16-grapheme-next.c: Update name.
16785         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16786         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16787         * lib/unigbrk/u32-grapheme-next.c: Update name.
16788         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16789         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16790         * lib/unigbrk/u8-grapheme-next.c: Update name.
16791         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16792         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16793         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16794         Suggested by Bruno Haible.
16795
16796 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16797
16798         Remove module 'u8-grapheme-len' as too redundant with
16799         'u8-grapheme-next'.
16800         * modules/unigbrk/u8-grapheme-len: Delete file.
16801         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16802         * lib/unigbrk.in.h: Remove prototype for deleted function.
16803         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16804         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16805
16806         Remove module 'u16-grapheme-len' as too redundant with
16807         'u16-grapheme-next'.
16808         * modules/unigbrk/u16-grapheme-len: Delete file.
16809         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16810         * lib/unigbrk.in.h: Remove prototype for deleted function.
16811         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16812         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16813
16814         Remove module 'u32-grapheme-len' as too redundant with
16815         'u32-grapheme-next'.
16816         * modules/unigbrk/u32-grapheme-len: Delete file.
16817         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16818         * lib/unigbrk.in.h: Remove prototype for deleted function.
16819         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16820         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16821
16822         Suggested by Bruno Haible.
16823
16824 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16825
16826         * unigbrk.in.h: Fix typo: "ben" => "been".
16827         Reported by Bruno Haible.
16828
16829 2011-01-01  Jim Meyering  <meyering@redhat.com>
16830
16831         maint: update almost all copyright ranges to include 2011
16832         Run the new "make update-copyright" rule.
16833
16834 2011-01-01  Jim Meyering  <meyering@redhat.com>
16835
16836         maint: update-copyright: exempt doc/INSTALL*
16837         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16838         since they are generated.  Suggested by Bruno Haible.
16839
16840 2011-01-01  Jim Meyering  <meyering@redhat.com>
16841
16842         maint: refine the update-copyright rule
16843         * Makefile (update-copyright): Also exclude any file that includes
16844         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16845         code that merely generates the comment.
16846
16847 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16848
16849         New module 'u8-grapheme-len'.
16850         * modules/unigbrk/u8-grapheme-len: New file.
16851         * modules/unigbrk/u8-grapheme-len-tests: New file.
16852         * lib/unigbrk.in.h: Add prototype for new function.
16853         * lib/unigbrk/u8-grapheme-len.c: New file.
16854         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16855
16856         New module 'u16-grapheme-len'.
16857         * modules/unigbrk/u16-grapheme-len: New file.
16858         * modules/unigbrk/u16-grapheme-len-tests: New file.
16859         * lib/unigbrk.in.h: Add prototype for new function.
16860         * lib/unigbrk/u16-grapheme-len.c: New file.
16861         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16862
16863         New module 'u32-grapheme-len'.
16864         * modules/unigbrk/u32-grapheme-len: New file.
16865         * modules/unigbrk/u32-grapheme-len-tests: New file.
16866         * lib/unigbrk.in.h: Add prototype for new function.
16867         * lib/unigbrk/u32-grapheme-len.c: New file.
16868         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16869
16870         New module 'u8-grapheme-next'.
16871         * modules/unigbrk/u8-grapheme-next: New file.
16872         * modules/unigbrk/u8-grapheme-next-tests: New file.
16873         * lib/unigbrk.in.h: Add prototype for new function.
16874         * lib/unigbrk/u8-grapheme-next.c: New file.
16875         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16876
16877         New module 'u16-grapheme-next'.
16878         * modules/unigbrk/u16-grapheme-next: New file.
16879         * modules/unigbrk/u16-grapheme-next-tests: New file.
16880         * lib/unigbrk.in.h: Add prototype for new function.
16881         * lib/unigbrk/u16-grapheme-next.c: New file.
16882         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16883
16884         New module 'u32-grapheme-next'.
16885         * modules/unigbrk/u32-grapheme-next: New file.
16886         * modules/unigbrk/u32-grapheme-next-tests: New file.
16887         * lib/unigbrk.in.h: Add prototype for new function.
16888         * lib/unigbrk/u32-grapheme-next.c: New file.
16889         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16890
16891         New module 'u8-grapheme-prev'.
16892         * modules/unigbrk/u8-grapheme-prev: New file.
16893         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16894         * lib/unigbrk.in.h: Add prototype for new function.
16895         * lib/unigbrk/u8-grapheme-prev.c: New file.
16896         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16897
16898         New module 'u16-grapheme-prev'.
16899         * modules/unigbrk/u16-grapheme-prev: New file.
16900         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16901         * lib/unigbrk.in.h: Add prototype for new function.
16902         * lib/unigbrk/u16-grapheme-prev.c: New file.
16903         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16904
16905         New module 'u32-grapheme-prev'.
16906         * modules/unigbrk/u32-grapheme-prev: New file.
16907         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16908         * lib/unigbrk.in.h: Add prototype for new function.
16909         * lib/unigbrk/u32-grapheme-prev.c: New file.
16910         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16911
16912         New module 'u8-grapheme-breaks'.
16913         * modules/unigbrk/u8-grapheme-breaks: New file.
16914         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16915         * lib/unigbrk.in.h: Add prototype for new function.
16916         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16917         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16918
16919         New module 'u16-grapheme-breaks'.
16920         * modules/unigbrk/u16-grapheme-breaks: New file.
16921         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16922         * lib/unigbrk.in.h: Add prototype for new function.
16923         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16924         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16925
16926         New module 'u32-grapheme-breaks'.
16927         * modules/unigbrk/u32-grapheme-breaks: New file.
16928         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16929         * lib/unigbrk.in.h: Add prototype for new function.
16930         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16931         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16932
16933         New module 'ulc-grapheme-breaks'.
16934         * modules/unigbrk/ulc-grapheme-breaks: New file.
16935         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16936         * m4/locale-ar.m4: New file.
16937         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16938         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16939         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16940
16941 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16942
16943         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16944         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16945         modified how this file was generated before I initially submitted
16946         the module, but failed to regenerate it.  This meant that several
16947         of the level2 entries were wrong.
16948         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16949         Remove the division-by-2 that is folded into the table now that
16950         gbrkprop.h has been regenerated properly.  Now -1 entries are
16951         handled correctly.
16952
16953         New module 'unigbrk/uc-gbrk-prop-tests'.
16954         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16955         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16956         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16957         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16958
16959 2011-01-01  Bruno Haible  <bruno@clisp.org>
16960
16961         Avoid use of hexadecimal escapes.
16962         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16963         instead of hexadecimal escapes.
16964
16965 2011-01-01  Jim Meyering  <meyering@redhat.com>
16966
16967         maint: new rule to update copyright year ranges
16968         * Makefile (update-copyright): New rule.
16969
16970         maint: indent with TABs in Makefile
16971         * Makefile: Expand leading sequences of spaces to TABs
16972
16973         version-etc: update the copyright year it reports
16974         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16975
16976 2010-12-31  Bruno Haible  <bruno@clisp.org>
16977
16978         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16979         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16980         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16981         zero.
16982
16983 2010-12-31  Bruno Haible  <bruno@clisp.org>
16984
16985         pwrite: Work around HP-UX 11.11 bug.
16986         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16987         works and set REPLACE_PWRITE if not.
16988         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16989         function.
16990         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16991
16992 2010-12-31  Bruno Haible  <bruno@clisp.org>
16993
16994         pread: Work around HP-UX 11 bugs.
16995         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16996         and set REPLACE_PREAD if not.
16997         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16998
16999 2010-12-31  Eric Blake  <eblake@redhat.com>
17000
17001         nl_langinfo: fix YESEXPR on Irix 6.5
17002         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17003         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17004         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17005         it.
17006
17007 2010-12-31  Bruno Haible  <bruno@clisp.org>
17008
17009         iconv: Document HP-UX 11 bug.
17010         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17011
17012 2010-12-31  Bruno Haible  <bruno@clisp.org>
17013
17014         ldexpl: Fix link error on HP-UX 11.
17015         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17016         LDEXPL_LIBM, using $ISNANL_LIBM.
17017
17018 2010-12-31  Eric Blake  <eblake@redhat.com>
17019
17020         ftello: avoid compilation failure with SunStudio c89
17021         * lib/ftello.c (ftello): Use lseek, not llseek.
17022
17023         tests: avoid failing coreutils tests on cygwin
17024         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17025         (create_exe_shims_): Return 0 when skipping.
17026
17027 2010-12-31  Bruno Haible  <bruno@clisp.org>
17028
17029         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17030         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17031
17032 2010-12-31  Bruno Haible  <bruno@clisp.org>
17033
17034         waitpid: Fix link error in C++ mode.
17035         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17036
17037 2010-12-31  Bruno Haible  <bruno@clisp.org>
17038
17039         isnan: Use GCC built-ins when possible.
17040         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17041         __builtin_isnan.
17042         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17043         (isnan): Define using GCC built-ins for GCC >= 4.0.
17044
17045 2010-12-31  Bruno Haible  <bruno@clisp.org>
17046
17047         isnand: Fix mistake.
17048         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17049         __builtin_isnand.
17050
17051 2010-12-31  Bruno Haible  <bruno@clisp.org>
17052
17053         open: Avoid C++ error on HP-UX 11.
17054         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17055
17056 2010-12-31  Bruno Haible  <bruno@clisp.org>
17057
17058         time_r: Add missing declarations on HP-UX 11.
17059         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17060         instead of HAVE_LOCALTIME_R.
17061         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17062         HAVE_LOCALTIME_R always.
17063         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17064         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17065         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17066         HAVE_LOCALTIME_R.
17067         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17068         * doc/posix-functions/localtime_r.texi: Likewise.
17069
17070 2010-12-29  Eric Blake  <eblake@redhat.com>
17071
17072         mountlist: tweak previous commit
17073         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17074         Reported by Paul Eggert.
17075
17076         mountlist: fix local drive detection on cygwin
17077         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17078         that works for cygwin.
17079
17080 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17081
17082         ftoastr, snprintf: ftoastr + snprintf module
17083         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17084         since the snprintf module now should be good enough here.
17085         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17086         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17087         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17088         GNULIB_SNPRINTF only for the test directory, and the latter
17089         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17090         seems to suffice by itself.
17091
17092 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17093
17094         alloca: one step towards thread-safety
17095         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17096         need for a static variable.  All callers changed.  This does not
17097         make the alloca replacement thread-safe, but it's one step.
17098
17099         tests: minor indenting change
17100         * tests/init.sh: Sync from coreutils housekeeping patch
17101         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17102         to keep lines within 80 columns.
17103
17104 2010-12-28  Jim Meyering  <meyering@redhat.com>
17105
17106         regex: don't infloop on persistent failing calloc
17107         * lib/regexec.c (build_trtable): Return failure indication upon
17108         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17109         In glibc, this was fixed for version 2.13:
17110         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17111
17112 2010-12-28  Bruno Haible  <bruno@clisp.org>
17113             Paul Eggert <eggert@cs.ucla.edu>
17114
17115         linkat: Make implementation robust against system behaviour variations.
17116         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17117         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17118         way, and to -2 if it needs a generic runtime test.
17119         * lib/linkat.c (solaris_optimized_link_immediate,
17120         solaris_optimized_link_follow): New functions.
17121         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17122         (check_same_link): Use it.
17123
17124 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17125
17126         New module 'unigbrk/base'.
17127         * modules/unigbrk/base: New file.
17128         * lib/unigbrk.in.h: New file.
17129
17130         New module 'unigbrk/uc-gbrk-prop'.
17131         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17132         * modules/unigbrk/uc-gbrk-prop: New file.
17133         * lib/unigbrk/gbrkprop.h: New file.
17134         * lib/unigbrk/uc-gbrk-prop.c: New file.
17135
17136         New module 'unigbrk/uc-is-grapheme-break'.
17137         * modules/unigbrk/uc-is-grapheme-break: New file.
17138         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17139         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17140         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17141         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17142         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17143
17144         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17145
17146 2010-12-27  Bruno Haible  <bruno@clisp.org>
17147
17148         linkat test: Avoid failure on Solaris 11 2010-11.
17149         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17150
17151 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17152
17153         utimens: work around glibc rounding bug on more platforms
17154         * lib/utimens.c (fdutimens): Work around rounding bug even if
17155         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17157
17158 2010-12-27  Bruno Haible  <bruno@clisp.org>
17159
17160         select tests: Improve comments.
17161         * tests/test-select.c (do_select): Add comments.
17162
17163 2010-12-27  Bruno Haible  <bruno@clisp.org>
17164
17165         select tests: Safer way of handling timeout.
17166         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17167         at every invocation.
17168
17169 2010-12-27  Bruno Haible  <bruno@clisp.org>
17170
17171         select tests: Use 'bool' where appropriate.
17172         * tests/test-select.c (connect_to_socket): Change argument type to
17173         'bool'.
17174
17175 2010-12-27  Bruno Haible  <bruno@clisp.org>
17176
17177         select tests: Use existing modules.
17178         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17179         (configure.ac): Don't test for unistd.h.
17180         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17181         declared in <unistd.h>.
17182
17183 2010-12-27  Bruno Haible  <bruno@clisp.org>
17184
17185         mbrtowc: Work around a Solaris 7 bug.
17186         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17187         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17188         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17189         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17190         MBRTOWC_NULL_ARG1_BUG.
17191         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17192         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17193         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17194         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17195
17196 2010-12-27  Jim Meyering  <meyering@redhat.com>
17197
17198         read-file.c: tweak syntax
17199         * lib/read-file.c (fread_file): Remove space after "*" in function
17200         definitions.
17201
17202 2010-12-27  Bruno Haible  <bruno@clisp.org>
17203
17204         times test: Avoid gcc warnings on OSF/1.
17205         * tests/test-times.c (main): Cast printf arguments from clock_t to
17206         'long int'.
17207
17208 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17209
17210         utimens: work around glibc rounding bug on older Linux kernels
17211         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17212         on Linux with a glibc whose utimes might not work, then work
17213         around a longstanding glibc bug involving rounding rather than
17214         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17215         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17216
17217 2010-12-26  Bruno Haible  <bruno@clisp.org>
17218
17219         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17220         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17221         _GL_CXXALIAS_SYS.
17222         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17223
17224 2010-12-26  Bruno Haible  <bruno@clisp.org>
17225
17226         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17227         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17228         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17229         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17230         looking for the declaration.
17231         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17232         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17233         problem.
17234         * doc/posix-functions/inet_pton.texi: Likewise.
17235
17236 2010-12-26  Bruno Haible  <bruno@clisp.org>
17237
17238         arpa_inet: Use the common idioms with C++ support.
17239         * lib/arpa_inet.in.h: Include c++defs.h.
17240         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17241         support.
17242         * modules/arpa_inet (Depends-on): Add c++defs.
17243         (Makefile.am): Substitute the contents of c++defs.h.
17244         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17245         * modules/arpa_inet-c++-tests: New file.
17246         * tests/test-arpa_inet-c++.cc: New file.
17247
17248 2010-12-25  Bruno Haible  <bruno@clisp.org>
17249
17250         Fix more C++ link errors on Solaris 8.
17251         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17252         $(LIB_EACCESS).
17253         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17254         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17255         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17256         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17257         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17258
17259 2010-12-25  Bruno Haible  <bruno@clisp.org>
17260
17261         printf-posix: Fix link error when a non-GCC compiler is used.
17262         * lib/stdio.in.h (printf): When not using GCC, override printf
17263         correctly.
17264         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17265
17266 2010-12-25  Bruno Haible  <bruno@clisp.org>
17267
17268         strerror_r-posix: Update doc.
17269         * doc/posix-functions/strerror_r.texi: Update doc about the return
17270         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17271
17272 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17273
17274         utimens: simplify the logic of the previous change
17275         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17276         This should not affect whether the test succeeds or fails.
17277
17278         utimens: configure better on hosts with NFS clock skew
17279         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17280         uses the clock of the local host.  It might use the clock of the
17281         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17282         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17283
17284 2010-12-25  Bruno Haible  <bruno@clisp.org>
17285
17286         ptsname test: Avoid failure on Solaris.
17287         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17288         open a pseudo-terminal; don't use BSD-style ptys.
17289         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17290
17291 2010-12-25  Bruno Haible  <bruno@clisp.org>
17292
17293         ptsname: Avoid ERANGE failure on some systems.
17294         * lib/ptsname.c (buffer): Increase size.
17295
17296 2010-12-25  Bruno Haible  <bruno@clisp.org>
17297
17298         rename, renameat: Avoid test failures at NFS mounted locations.
17299         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17300         so that subsequent mkdir calls succeed.
17301
17302 2010-12-25  Bruno Haible  <bruno@clisp.org>
17303
17304         iswblank: Fix C++ link error on Solaris 8.
17305         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17306         _GL_FUNCDECL_SYS.
17307
17308 2010-12-25  Bruno Haible  <bruno@clisp.org>
17309
17310         unistd: Fix C++ link error on Solaris 8.
17311         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17312
17313 2010-12-25  Bruno Haible  <bruno@clisp.org>
17314
17315         readlink doc: Mention an old glibc bug.
17316         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17317
17318 2010-12-25  Bruno Haible  <bruno@clisp.org>
17319
17320         fcntl-h: Fix for use of C++ on glibc systems.
17321         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17322         also on glibc systems in C++ mode.
17323         Reported by Gary V. Vaughan <gary@gnu.org>.
17324
17325 2010-12-25  Bruno Haible  <bruno@clisp.org>
17326
17327         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17328         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17329
17330 2010-12-25  Bruno Haible  <bruno@clisp.org>
17331
17332         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17333         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17334         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17335         test whether truncl works according to ISO C 99 with IEC 60559.
17336         * m4/truncl-ieee.m4: New file.
17337         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17338         m4/signbit.m4.
17339         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17340
17341 2010-12-25  Bruno Haible  <bruno@clisp.org>
17342
17343         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17344         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17345         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17346         test whether ceill works according to ISO C 99 with IEC 60559.
17347         * m4/ceill-ieee.m4: New file.
17348         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17349         m4/signbit.m4.
17350         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17351
17352 2010-12-25  Bruno Haible  <bruno@clisp.org>
17353
17354         Ensure all prerequisites of <wchar.h> are included.
17355         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17356         before <wchar.h>.
17357         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17358         gl_MBRLEN_NUL_RETVAL): Likewise.
17359         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17360         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17361         AC_FUNC_MBRTOWC): Likewise.
17362         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17363         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17364         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17365         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17366         Likewise.
17367         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17368         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17369         (gl_WCHAR_H): Improve comments.
17370         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17371
17372 2010-12-25  Bruno Haible  <bruno@clisp.org>
17373
17374         strtok_r: Fix C syntax error in autoconf macro.
17375         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17376         characters in test program.
17377
17378 2010-12-24  Bruno Haible  <bruno@clisp.org>
17379
17380         ceil, trunc, round: Fix gcc warnings.
17381         * lib/ceil.c (MIN): Undefine before redefining.
17382         * lib/trunc.c (MIN): Likewise.
17383         * lib/round.c (MIN): Likewise.
17384         Include <math.h> first.
17385
17386 2010-12-24  Bruno Haible  <bruno@clisp.org>
17387
17388         select tests: Avoid failures on OSF/1 5.1.
17389         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17390         failure of closing the last socket; it may fail with ECONNRESET.
17391
17392 2010-12-24  Eric Blake  <eblake@redhat.com>
17393
17394         stdint: avoid HP-UX 10.20 preprocessor bug
17395         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17396         than #if.
17397         * tests/test-floor2.c (main): Likewise.
17398         Reported by Peter O'Gorman.
17399
17400         pipe: make obsoletion transition easier
17401         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17402         * modules/pipe (Files): Include revived file.
17403         (Include): Drop reference, to mirror getdate's behavior.
17404
17405 2010-12-24  Bruno Haible  <bruno@clisp.org>
17406
17407         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17408         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17409         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17410         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17411
17412 2010-12-24  Bruno Haible  <bruno@clisp.org>
17413
17414         gethostname: Ensure declaration on NonStop Kernel.
17415         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17416         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17417
17418 2010-12-24  Bruno Haible  <bruno@clisp.org>
17419
17420         sys_select: Ensure all necessary types on NonStop Kernel.
17421         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17422         include <sys/time.h>.
17423         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17424         NonStop Kernel.
17425         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17426
17427 2010-12-24  Bruno Haible  <bruno@clisp.org>
17428
17429         sys_select: Remove unneeded include.
17430         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17431         have <sys/select.h>.
17432
17433 2010-12-24  Bruno Haible  <bruno@clisp.org>
17434
17435         gethostname: Provide a fallback for HOST_NAME_MAX.
17436         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17437         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17438         instead.
17439         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17440
17441 2010-12-24  Bruno Haible  <bruno@clisp.org>
17442
17443         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17444         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17445         (SA_RESTART): Likewise.
17446         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17447
17448 2010-12-24  Bruno Haible  <bruno@clisp.org>
17449
17450         signal: Define NSIG.
17451         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17452         * tests/test-signal.c (nsig): New variable.
17453         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17454
17455 2010-12-24  Bruno Haible  <bruno@clisp.org>
17456
17457         rename, renameat: Avoid test failures on OSF/1 5.1.
17458         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17459         alternative error codes.
17460         * tests/test-renameat.c (main): Likewise.
17461
17462 2010-12-24  Bruno Haible  <bruno@clisp.org>
17463
17464         *printf: Detect large precisions bug on Solaris 10/SPARC.
17465         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17466         by Paul Eggert.
17467         * tests/test-snprintf-posix.h (test_function): Add this test code here
17468         too.
17469         * tests/test-sprintf-posix.h (test_function): Likewise.
17470         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17471         * tests/test-vasprintf-posix.c (test_function): Likewise.
17472         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17473         around by gnulib.
17474         * doc/posix-functions/printf.texi: Likewise.
17475         * doc/posix-functions/snprintf.texi: Likewise.
17476         * doc/posix-functions/sprintf.texi: Likewise.
17477         * doc/posix-functions/vfprintf.texi: Likewise.
17478         * doc/posix-functions/vprintf.texi: Likewise.
17479         * doc/posix-functions/vsnprintf.texi: Likewise.
17480         * doc/posix-functions/vsprintf.texi: Likewise.
17481         * doc/posix-functions/dprintf.texi: Undo last commit.
17482         * doc/posix-functions/vdprintf.texi: Likewise.
17483
17484 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17485
17486         tests: port test-fdutimensat.c to Solaris 8
17487         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17488         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17489         On Solaris 8, it fails with errno == ENOSYS, because there is no
17490         futimens (so it can't use the fd), and there is no lutimens (so it
17491         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17492
17493         vsnprintf: make more consistent with snprintf; doc fixes
17494
17495         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17496         the byte count return problem was promoted from the snprintf-posix
17497         to the snprintf module.
17498         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17499         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17500         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17501         * tests/test-snprintf.c (main): Check the byte count returned.
17502         * tests/test-vsnprintf.c (main): Likewise.
17503
17504 2010-12-23  Eric Blake  <eblake@redhat.com>
17505
17506         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17507         * modules/sigpipe (License): Relax license.
17508
17509 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17510
17511         doc: document Solaris printf bug with large float precisions
17512         * doc/posix-functions/dprintf.texi (dprintf):
17513         * doc/posix-functions/fprintf.texi (fprintf):
17514         * doc/posix-functions/printf.texi (printf):
17515         * doc/posix-functions/snprintf.texi (snprintf):
17516         * doc/posix-functions/sprintf.texi (sprintf):
17517         * doc/posix-functions/vdprintf.texi (vdprintf):
17518         * doc/posix-functions/vfprintf.texi (vfprintf):
17519         * doc/posix-functions/vprintf.texi (vprintf):
17520         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17521         * doc/posix-functions/vsprintf.texi (vsprintf):
17522         Mention that these functions mishandle large floating point
17523         precisions on Solaris 10.  The same bug is also present in Solaris
17524         8, and I assume earlier.  This causes "cd gnulib-tests; make
17525         check" to fail on Solaris 8 (and I assume, later) when building
17526         the latest coreutils, in test-vasprintf-posix's call to
17527         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17528         the wide flavors (e.g., wprintf) so this patch just updates the
17529         documentation for the narrow ones.
17530
17531         test-posixtm.c: add two tests
17532         * tests/test-posixtm.c: Add two tests, to highlight the
17533         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17534         around this bug; this is merely to document it.
17535
17536 2010-12-22  Bruno Haible  <bruno@clisp.org>
17537
17538         getlogin_r: Work around portability problem on OSF/1.
17539         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17540         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17541         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17542         test for a truncated result.
17543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17544         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17545         * modules/getlogin_r (Depends-on): Add memchr.
17546         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17547
17548 2010-12-22  Bruno Haible  <bruno@clisp.org>
17549
17550         ptsname: Avoid test failure on OSF/1 5.1.
17551         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17552         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17553         (same_slave): New function.
17554         (main): Use it to compare ptsname's result with the expected file name.
17555
17556 2010-12-22  Bruno Haible  <bruno@clisp.org>
17557
17558         Port extended stdio modules to HP NonStop Kernel.
17559         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17560         macros.
17561         * lib/fbufmode.c: Update comments.
17562         * lib/fflush.c: Likewise.
17563         * lib/fpurge.c: Likewise.
17564         * lib/freadable.c: Likewise.
17565         * lib/freadahead.c: Likewise.
17566         * lib/freading.c: Likewise.
17567         * lib/freadptr.c: Likewise.
17568         * lib/freadseek.c: Likewise.
17569         * lib/fseeko.c: Likewise.
17570         * lib/fseterr.c: Likewise.
17571         * lib/fwritable.c: Likewise.
17572         * lib/fwriting.c: Likewise.
17573         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17574
17575 2010-12-22  Bruno Haible  <bruno@clisp.org>
17576
17577         ttyname_r: Work around bug on OSF/1 5.1.
17578         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17579         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17580         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17581         present.
17582         * lib/ttyname_r.c (ttyname_r): Update comments.
17583
17584 2010-12-22  Bruno Haible  <bruno@clisp.org>
17585
17586         round: Implement result sign according to IEEE 754.
17587         * lib/round.c (MIN, MINUS_ZERO): New macros.
17588         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17589         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17590         * tests/test-round-ieee.c (main): Likewise.
17591         * tests/test-roundl-ieee.c (main): Likewise.
17592
17593         trunc: Implement result sign according to IEEE 754.
17594         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17595         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17596         * tests/test-trunc2.c: Include minus-zero.h.
17597         (MINUS_ZERO): New macro.
17598         (trunc_reference): Keep in sync with lib/trunc.c.
17599         * tests/test-truncf2.c: Include minus-zero.h.
17600         (MINUS_ZERO): New macro.
17601         (truncf_reference): Keep in sync with lib/trunc.c.
17602         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17603         * tests/test-trunc-ieee.c (main): Likewise.
17604         * tests/test-truncl-ieee.c (main): Likewise.
17605
17606         ceil: Implement result sign according to IEEE 754.
17607         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17608         (FUNC): Return -0.0 for -1 < x < 0.
17609         * tests/test-ceil2.c: Include minus-zero.h.
17610         (MINUS_ZERO): New macro.
17611         (ceil_reference): Keep in sync with lib/ceil.c.
17612         * tests/test-ceilf2.c: Include minus-zero.h.
17613         (MINUS_ZERO): New macro.
17614         (ceilf_reference): Keep in sync with lib/ceil.c.
17615         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17616         * tests/test-ceil-ieee.c (main): Likewise.
17617         * tests/test-ceill-ieee.c (main): Likewise.
17618
17619         floor: Implement result sign according to IEEE 754.
17620         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17621         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17622         * tests/test-floorf2.c (floorf_reference): Likewise.
17623         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17624         * tests/test-floor-ieee.c (main): Likewise.
17625         * tests/test-floorl-ieee.c (main): Likewise.
17626
17627 2010-12-22  Bruno Haible  <bruno@clisp.org>
17628
17629         getaddrinfo: Update doc.
17630         * doc/posix-functions/gai_strerror.texi: Return type is also different
17631         on AIX and HP-UX.
17632
17633 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17634
17635         getaddrinfo, inet_ntop: Update doc for Solaris.
17636         * doc/posix-functions/gai_strerror.texi: Return type is also an
17637         issue on Solaris 9 and earlier.
17638         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17639         on Solaris 10 and earlier.
17640
17641 2010-12-21  Bruno Haible  <bruno@clisp.org>
17642
17643         New module 'roundl-ieee'.
17644         * modules/roundl-ieee: New file.
17645         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17646         test whether roundl works according to ISO C 99 with IEC 60559.
17647         * m4/roundl-ieee.m4: New file.
17648         * modules/roundl-ieee-tests: New file.
17649         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17650         * tests/test-roundl.c (main): Remove signbit tests.
17651         * modules/roundl-tests (Depends-on): Remove signbit.
17652         * doc/posix-functions/roundl.texi: Mention the new module.
17653
17654 2010-12-21  Bruno Haible  <bruno@clisp.org>
17655
17656         New module 'truncl-ieee'.
17657         * modules/truncl-ieee: New file.
17658         * modules/truncl-ieee-tests: New file.
17659         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17660         * tests/test-truncl.c (main): Remove signbit tests.
17661         * modules/truncl-tests (Depends-on): Remove signbit.
17662         * doc/posix-functions/truncl.texi: Mention the new module.
17663
17664 2010-12-21  Bruno Haible  <bruno@clisp.org>
17665
17666         New module 'ceill-ieee'.
17667         * modules/ceill-ieee: New file.
17668         * modules/ceill-ieee-tests: New file.
17669         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17670         * tests/test-ceill.c (main): Remove signbit tests.
17671         * modules/ceill-tests (Depends-on): Remove signbit.
17672         * doc/posix-functions/ceill.texi: Mention the new module.
17673
17674 2010-12-21  Bruno Haible  <bruno@clisp.org>
17675
17676         New module 'floorl-ieee'.
17677         * modules/floorl-ieee: New file.
17678         * modules/floorl-ieee-tests: New file.
17679         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17680         * tests/test-floorl.c (main): Remove signbit tests.
17681         * modules/floorl-tests (Depends-on): Remove signbit.
17682         * doc/posix-functions/floorl.texi: Mention the new module.
17683
17684 2010-12-21  Bruno Haible  <bruno@clisp.org>
17685
17686         New module 'round-ieee'.
17687         * modules/round-ieee: New file.
17688         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17689         whether round works according to ISO C 99 with IEC 60559.
17690         * m4/round-ieee.m4: New file.
17691         * modules/round-ieee-tests: New file.
17692         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17693         * tests/test-round1.c (main): Remove signbit tests.
17694         * modules/round-tests (Depends-on): Remove 'signbit'.
17695         * doc/posix-functions/round.texi: Mention the new module.
17696
17697 2010-12-21  Bruno Haible  <bruno@clisp.org>
17698
17699         New module 'trunc-ieee'.
17700         * modules/trunc-ieee: New file.
17701         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17702         whether trunc works according to ISO C 99 with IEC 60559.
17703         * m4/trunc-ieee.m4: New file.
17704         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17706         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17707         * modules/trunc-ieee-tests: New file.
17708         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17709         * tests/test-trunc1.c (main): Remove signbit tests.
17710         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17711         * doc/posix-functions/trunc.texi: Mention the new module.
17712
17713 2010-12-21  Bruno Haible  <bruno@clisp.org>
17714
17715         New module 'ceil-ieee'.
17716         * modules/ceil-ieee: New file.
17717         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17718         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17719         ISO C 99 with IEC 60559.
17720         * m4/ceil-ieee.m4: New file.
17721         * modules/ceil (Files): Add lib/ceil.c.
17722         (Depends-on): Add 'float'.
17723         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17724         * lib/math.in.h (ceil): New declaration.
17725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17726         REPLACE_CEIL.
17727         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17728         * modules/ceil-ieee-tests: New file.
17729         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17730         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17731         * doc/posix-functions/ceil.texi: Mention the new module.
17732
17733 2010-12-21  Bruno Haible  <bruno@clisp.org>
17734
17735         New module 'floor-ieee'.
17736         * modules/floor-ieee: New file.
17737         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17738         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17739         ISO C 99 with IEC 60559.
17740         * m4/floor-ieee.m4: New file.
17741         * modules/floor (Files): Add lib/floor.c.
17742         (Depends-on): Add 'float'.
17743         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17744         * lib/math.in.h (floor): New declaration.
17745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17746         REPLACE_FLOOR.
17747         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17748         * modules/floor-ieee-tests: New file.
17749         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17750         * tests/test-math-c++.cc: Check the signature of 'floor'.
17751         * doc/posix-functions/floor.texi: Mention the new module.
17752
17753 2010-12-21  Bruno Haible  <bruno@clisp.org>
17754
17755         New module 'roundf-ieee'.
17756         * modules/roundf-ieee: New file.
17757         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17758         test whether roundf works according to ISO C 99 with IEC 60559.
17759         * m4/roundf-ieee.m4: New file.
17760         * modules/roundf-ieee-tests: New file.
17761         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17762         * tests/test-roundf1.c (main): Remove signbit tests.
17763         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17764         * doc/posix-functions/roundf.texi: Mention the new module.
17765
17766 2010-12-21  Bruno Haible  <bruno@clisp.org>
17767
17768         New module 'truncf-ieee'.
17769         * modules/truncf-ieee: New file.
17770         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17771         test whether truncf works according to ISO C 99 with IEC 60559.
17772         * m4/truncf-ieee.m4: New file.
17773         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17775         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17776         * modules/truncf-ieee-tests: New file.
17777         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17778         * tests/test-truncf1.c (main): Remove signbit tests.
17779         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17780         * doc/posix-functions/truncf.texi: Mention the new module.
17781
17782 2010-12-21  Bruno Haible  <bruno@clisp.org>
17783
17784         New module 'ceilf-ieee'.
17785         * modules/ceilf-ieee: New file.
17786         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17787         test whether ceilf works according to ISO C 99 with IEC 60559.
17788         * m4/ceilf-ieee.m4: New file.
17789         * modules/ceilf-ieee-tests: New file.
17790         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17791         * tests/test-ceilf1.c (main): Remove signbit tests.
17792         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17793         * doc/posix-functions/ceilf.texi: Mention the new module.
17794
17795 2010-12-21  Bruno Haible  <bruno@clisp.org>
17796
17797         New module 'floorf-ieee'.
17798         * modules/floorf-ieee: New file.
17799         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17800         test whether floorf works according to ISO C 99 with IEC 60559.
17801         * m4/floorf-ieee.m4: New file.
17802         * modules/floorf-ieee-tests: New file.
17803         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17804         * tests/test-floorf1.c (main): Remove signbit tests.
17805         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17806         * doc/posix-functions/floorf.texi: Mention the new module.
17807
17808 2010-12-21  Bruno Haible  <bruno@clisp.org>
17809
17810         Support for minus zero in autoconf macros.
17811         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17812         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17813         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17814         * tests/minus-zero.h: Update comments.
17815
17816 2010-12-21  Bruno Haible  <bruno@clisp.org>
17817
17818         Tests for module 'ceil'.
17819         * modules/ceil-tests: New file.
17820         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17821         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17822
17823 2010-12-21  Bruno Haible  <bruno@clisp.org>
17824
17825         Tests for module 'floor'.
17826         * modules/floor-tests: New file.
17827         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17828         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17829
17830 2010-12-21  Bruno Haible  <bruno@clisp.org>
17831
17832         math: Fix indentation.
17833         * lib/math.in.h (floorf): Fix indentation.
17834
17835 2010-12-21  Bruno Haible  <bruno@clisp.org>
17836
17837         Fix cross-compilation guesses on Solaris.
17838         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17839         not match "solaris2.10".
17840         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17841         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17842         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17843
17844 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17845
17846         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17847         This fixes a problem observed with the latest coreutils snapshot
17848         that caused a test to fail on Solaris 8.  src/csplit.c's call
17849         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17850         earlier, instead of returning the number of bytes that would have
17851         been generated; this causes csplit to incorrectly report memory
17852         exhaustion.
17853         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17854         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17855         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17856         comments to match.
17857         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17858         Fix typo in matching older versions of Solaris: "solaris2.10"
17859         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17860         only for guessing while cross-compiling.
17861         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17862
17863 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17864
17865         ftoastr: fix comment again
17866         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17867         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17868         Also, simplify example a bit by using flags = 0.
17869
17870 2010-12-20  Bruno Haible  <bruno@clisp.org>
17871
17872         round*, trunc*: Update documentation regarding glibc.
17873         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17874         * doc/posix-functions/round.texi: Likewise.
17875         * doc/posix-functions/roundl.texi: Likewise.
17876         * doc/posix-functions/truncf.texi: Likewise.
17877         * doc/posix-functions/trunc.texi: Likewise.
17878         * doc/posix-functions/truncl.texi: Likewise.
17879
17880 2010-12-20  Bruno Haible  <bruno@clisp.org>
17881
17882         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17883         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17884         * doc/posix-functions/round.texi: Likewise.
17885         * doc/posix-functions/roundl.texi: Likewise.
17886
17887 2010-12-20  Bruno Haible  <bruno@clisp.org>
17888
17889         ttyname_r: Add missing declaration on HP-UX 11.
17890         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17891         HAVE_TTYNAME_R.
17892         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17893         declared. Set HAVE_TTYNAME_R always.
17894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17895         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17896         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17897         HAVE_TTYNAME_R.
17898         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17899
17900 2010-12-20  Bruno Haible  <bruno@clisp.org>
17901
17902         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17903         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17904         * doc/posix-functions/getlogin_r.texi: Likewise.
17905         * tests/test-getlogin.c: Include <errno.h>.
17906         (main): Avoid test failure on HP-UX 11.11.
17907         * tests/test-getlogin_r.c (main): Likewise.
17908
17909 2010-12-20  Bruno Haible  <bruno@clisp.org>
17910
17911         getlogin_r: Add missing declaration on HP-UX 11.
17912         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17913         declared also when it exists as a function.
17914         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17915
17916 2010-12-20  Bruno Haible  <bruno@clisp.org>
17917
17918         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17919         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17920         through wcrtomb.
17921
17922 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17923
17924         ftoastr: fix comment
17925         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17926         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17927
17928 2010-12-19  Bruno Haible  <bruno@clisp.org>
17929
17930         isnan: Ensure it is a macro.
17931         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17932         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17933         Solaris.
17934
17935 2010-12-19  Bruno Haible  <bruno@clisp.org>
17936
17937         ldexpl test: Fix link error on OSF/1 5.1.
17938         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17939
17940 2010-12-19  Bruno Haible  <bruno@clisp.org>
17941
17942         wctype: Make it work in C++ mode on OSF/1 5.1.
17943         * lib/wctype.in.h (iswblank): Declare but not define here.
17944         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17945         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17946         * modules/wctype (Files): Add lib/iswblank.c.
17947
17948 2010-12-19  Bruno Haible  <bruno@clisp.org>
17949
17950         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17951         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17952         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17953
17954 2010-12-19  Bruno Haible  <bruno@clisp.org>
17955
17956         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17957         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17958         _POSIX_PII_SOCKET.
17959         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17960         * doc/posix-functions/recvfrom.texi: Likewise.
17961         * doc/posix-functions/send.texi: Likewise.
17962         * doc/posix-functions/sendto.texi: Likewise.
17963
17964 2010-12-19  Bruno Haible  <bruno@clisp.org>
17965
17966         tcgetsid: Add missing declaration on OSF/1 5.1.
17967         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17968         HAVE_TCGETSID.
17969         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17970         Don't set HAVE_TCGETSID.
17971         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17972         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17973         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17974         HAVE_TCGETSID.
17975         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17976
17977 2010-12-19  Bruno Haible  <bruno@clisp.org>
17978
17979         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17980         * lib/stdio.in.h: During the include_next statement, let recursive
17981         includes of this file include only the system header file.
17982
17983 2010-12-19  Bruno Haible  <bruno@clisp.org>
17984
17985         iconv_open: Fix regression from 2010-12-04.
17986         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17987         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17988
17989 2010-12-19  Bruno Haible  <bruno@clisp.org>
17990
17991         stdbool test: Avoid a gcc warning.
17992         * tests/test-stdbool.c (main): Fail if e1 is false.
17993         Reported by Jim Meyering.
17994
17995 2010-12-19  Jim Meyering  <meyering@redhat.com>
17996
17997         setenv: restore to working order
17998         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17999         mistakenly removed.
18000         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18001         HAVE_SETENV.
18002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18003         HAVE_SETENV.
18004
18005 2010-12-19  Bruno Haible  <bruno@clisp.org>
18006
18007         Document some different function declarations on OSF/1 5.1.
18008         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18009         * doc/posix-functions/inet_ntop.texi: Likewise.
18010         * doc/posix-functions/gethostname.texi: Likewise.
18011         * lib/unistd.in.h (gethostname): Update comment.
18012
18013 2010-12-19  Bruno Haible  <bruno@clisp.org>
18014
18015         doc: Mention vasprintf-posix module.
18016         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18017         the 'vasprintf-posix' module.
18018         * doc/glibc-functions/vasprintf.texi: Likewise.
18019
18020 2010-12-19  Bruno Haible  <bruno@clisp.org>
18021
18022         unsetenv: Add missing declaration on OSF/1 5.1.
18023         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18024         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18025         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18027         not HAVE_UNSETENV.
18028         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18029         HAVE_UNSETENV.
18030         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18031
18032 2010-12-19  Bruno Haible  <bruno@clisp.org>
18033
18034         setenv: Add missing declaration on OSF/1 5.1.
18035         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18036         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18037         declared. Don't set HAVE_SETENV.
18038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18039         not HAVE_SETENV.
18040         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18041         HAVE_SETENV.
18042         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18043
18044 2010-12-19  Bruno Haible  <bruno@clisp.org>
18045
18046         nl_langinfo tests: Avoid gcc warning.
18047         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18048
18049 2010-12-19  Bruno Haible  <bruno@clisp.org>
18050
18051         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18052         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18053         _GL_CXXALIAS_SYS.
18054
18055 2010-12-19  Bruno Haible  <bruno@clisp.org>
18056
18057         stdbool: Relax test.
18058         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18059         address to 'bool' work in static initializer, for compilers other than
18060         GCC.
18061
18062 2010-12-19  Bruno Haible  <bruno@clisp.org>
18063
18064         ftello: Add missing declaration on OSF/1 5.1.
18065         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18066         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18068         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18069         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18070
18071 2010-12-19  Bruno Haible  <bruno@clisp.org>
18072
18073         fseeko: Add missing declaration on OSF/1 5.1.
18074         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18075         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18077         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18078         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18079
18080 2010-12-19  Bruno Haible  <bruno@clisp.org>
18081
18082         fchdir: Add missing declaration on OSF/1 5.1.
18083         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18084         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18086         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18087         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18088
18089 2010-12-19  Bruno Haible  <bruno@clisp.org>
18090
18091         relocatable-prog-wrapper: Separate from relocatable-prog.
18092         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18093         uninstall-relocwrapper rule here.
18094         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18095         Reported by Ian Beckwith <ianb@erislabs.net>.
18096
18097 2010-12-19  Bruno Haible  <bruno@clisp.org>
18098
18099         unistr/u8-mbsnlen: Add missing dependency.
18100         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18101         Reported by Ian Beckwith <ianb@erislabs.net>.
18102
18103 2010-12-19  Bruno Haible  <bruno@clisp.org>
18104
18105         iconv: Make it possible again to use this module without 'iconv-h'.
18106         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18107         if it is not defined.
18108         Reported by Ian Beckwith <ianb@erislabs.net>.
18109
18110 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18111
18112         acl: port to Solaris 8 when copying from tmpfs to ufs
18113         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18114         error number.  Problem observed on Solaris 8 with latest
18115         coreutils, with "mv A B", where A is on a tmpfs file system and B
18116         is on a ufs file system.  This caused coreutils' mv/part-symlink
18117         test to fail.
18118
18119         tests: set fail=0 at start
18120         * tests/init.sh (setup_): Move fail=0 initialization here ...
18121         (mktempd_): ... from here, so that tests can rely on fail being
18122         set to 0 initially.  This fixes a problem in coreutils; see:
18123         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18124
18125 2010-12-18  Bruno Haible  <bruno@clisp.org>
18126
18127         memmem-simple: Stylistic changes.
18128         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18129         Fix preprocessor directive indentation.
18130
18131 2010-12-15  Pádraig Brady <P@draigBrady.com>
18132
18133         memmem, memmem-simple: reorganize and expand empty needle check
18134         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18135         functional checks to memmem-simple so that one has a fully functional
18136         memmem by using just this module.
18137         Restrict the performance only check to the memmem module.
18138         Also expand the empty needle check to ensure the correct
18139         pointer is returned, not just a non NULL pointer.
18140         * doc/glibc-functions/memmem.texi: Rearrange the portability
18141         documentation to correlate with the rearranged checks.
18142         Clarify exactly how the memmem and memmem-simple modules
18143         relate to each other.
18144
18145 2010-12-15  Pádraig Brady <P@draigBrady.com>
18146             Bruno Haible  <bruno@clisp.org>
18147
18148         Improve cross-compilation guesses for uClibc.
18149         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18150         that uClibc does not have the glibc bug.
18151         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18152         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18153
18154 2010-12-14  Eric Blake  <eblake@redhat.com>
18155
18156         configmake: provide fallbacks for oldest supported autotools
18157         * m4/configmake.m4: New file.
18158         * modules/configmake (Files): Ship it.
18159         (configure.ac): Use it to guarantee fallbacks.
18160
18161 2010-12-13  Pádraig Brady <P@draigBrady.com>
18162
18163         read-file: Improve handling of large files
18164         * lib/read-file.c (fread_file): Minimize realloc()s
18165         for regular files, and better manage sizes around SIZE_MAX.
18166
18167 2010-12-13  Eric Blake  <eblake@redhat.com>
18168
18169         cloexec, fcntl: relax license
18170         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18171         consent from all contributors.
18172         * modules/fcntl (License): Likewise.
18173
18174 2010-12-10  Bruno Haible  <bruno@clisp.org>
18175
18176         Tests for module 'pipe-posix'.
18177         * modules/pipe-posix-tests: New file.
18178         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18179
18180 2010-12-10  Bruno Haible  <bruno@clisp.org>
18181
18182         pipe-posix: Make it work in C++ mode.
18183         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18184         (pipe): Use common idiom, not a macro definition.
18185         * lib/pipe.c: New file.
18186         * m4/pipe.m4: New file.
18187         * modules/pipe-posix (Description): Enhance.
18188         (Files): Add lib/pipe.c, m4/pipe.m4.
18189         (configure.ac): Invoke gl_FUNC_PIPE.
18190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18191         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18192         * tests/test-unistd-c++.cc: Check the signature of pipe.
18193
18194 2010-12-10  Bruno Haible  <bruno@clisp.org>
18195
18196         Rename module 'pipe' to 'spawn-pipe'.
18197         * modules/spawn-pipe: New file, renamed from modules/pipe.
18198         (Files, configure.ac, Makefile.am): Update.
18199         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18200         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18201         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18202         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18203         "spawn-pipe.h" instead of "pipe.h".
18204         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18205         to gl_SPAWN_PIPE.
18206         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18207         (Files, Makefile.am): Update.
18208         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18209         Update.
18210         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18211         Include "spawn-pipe.h" instead of "pipe.h".
18212         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18213         * lib/javacomp.c: Likewise.
18214         * lib/javaversion.c: Likewise.
18215         * lib/pipe-filter-gi.c: Likewise.
18216         * lib/pipe-filter-ii.c: Likewise.
18217         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18218         * modules/javacomp (Depends-on): Likewise.
18219         * modules/javaversion (Depends-on): Likewise.
18220         * modules/pipe-filter-gi (Depends-on): Likewise.
18221         * modules/pipe-filter-ii (Depends-on): Likewise.
18222         * MODULES.html.sh (Executing programs): Update.
18223         * NEWS: Mention the change.
18224
18225 2010-12-10  Eric Blake  <eblake@redhat.com>
18226
18227         pipe-posix: new module
18228         * modules/pipe-posix: New file.
18229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18230         (gl_UNISTD_H): Check for declaration.
18231         * modules/unistd (Makefile.am): Substitute it.
18232         * lib/unistd.in.h (pipe): Provide it for mingw.
18233         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18234         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18235
18236 2010-12-07  Bruno Haible  <bruno@clisp.org>
18237
18238         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18239         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18240         u8_strcmp_gnu.
18241         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18242
18243 2010-12-06  Bruno Haible  <bruno@clisp.org>
18244
18245         Update internal documentation.
18246         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18247
18248 2010-12-04  Bruno Haible  <bruno@clisp.org>
18249
18250         Put more information about failed tests into the test return codes.
18251         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18252         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18253         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18254         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18255         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18256         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18257         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18258         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18259         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18260         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18261         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18262         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18263         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18264         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18265         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18266         returns a bit mask.
18267         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18268         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18269         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18270         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18271         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18272         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18273         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18274         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18275         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18276         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18277         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18278         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18279         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18280         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18281         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18282         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18283         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18284         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18285         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18286         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18287         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18288         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18289         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18290         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18291         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18292         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18293         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18294         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18295         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18296         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18297         gl_PRINTF_PRECISION): Likewise.
18298         * m4/regex.m4 (gl_REGEX): Likewise.
18299         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18300         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18301         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18302         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18303         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18304         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18305         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18306         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18307         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18308         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18309         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18310         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18311         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18312         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18313         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18314         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18315         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18316         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18318         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18319         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18320         enumerated value.
18321         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18322
18323 2010-12-04  Bruno Haible  <bruno@clisp.org>
18324
18325         Update for Solaris 11 2010-11.
18326         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18327         Express, released in November 2010.
18328
18329 2010-12-04  Bruno Haible  <bruno@clisp.org>
18330
18331         nproc: Relax license.
18332         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18333         and Paul Eggert.
18334         Requested by Ludovic Courtès <ludo@gnu.org>.
18335
18336 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18337
18338         utimecmp: fine-grained src to nearby coarse-grained dest
18339
18340         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18341         and the source is on a file system with higher-resolution time
18342         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18343         not work, and the time stamps are close together, the algorithm to
18344         determine the exact resolution from the read-back mtime was buggy:
18345         it had a "!=" where it should have had an "==".  This bug has been
18346         in the code ever since it was introduced to gnulib.
18347         Problem reported by Dan Jacobson in
18348         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18349
18350 2010-11-30  Bruno Haible  <bruno@clisp.org>
18351
18352         strerror_r-posix: Fix autoconf test.
18353         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18354
18355 2010-11-28  Bruno Haible  <bruno@clisp.org>
18356             Paul Eggert  <eggert@cs.ucla.edu>
18357
18358         Tests for module 'getdomainname'.
18359         * modules/getdomainname-tests: New file.
18360         * tests/test-getdomainname.c: New file, based on
18361         tests/test-gethostname.c.
18362
18363 2010-11-28  Bruno Haible  <bruno@clisp.org>
18364             Paul Eggert  <eggert@cs.ucla.edu>
18365
18366         getdomainname: Use the system function when possible.
18367         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18368         (getdomainname): Replace if needed. Provide the declaration if it is
18369         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18370         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18371         (getdomainname): When the system has getdomainname, call the system
18372         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18373         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18374         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18375         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18376         the function if its second argument is of type 'int' or if it is found
18377         in libnsl.
18378         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18379         <sys/systeminfo.h> and sysinfo().
18380         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18382         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18383         HAVE_GETDOMAINNAME.
18384         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18385         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18386         * doc/glibc-functions/getdomainname.texi: Document the problems with
18387         the getdomainname declaration.
18388
18389 2010-11-28  Bruno Haible  <bruno@clisp.org>
18390
18391         sys_socket: Ensure ss_family field on AIX.
18392         * lib/sys_socket.in.h (ss_family): New macro definition.
18393         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18394         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18395         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18396         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18397         * modules/sys_socket (Makefile.am): Substitute
18398         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18399         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18400
18401 2010-11-27  Bruno Haible  <bruno@clisp.org>
18402
18403         readline: Improve configure output.
18404         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18405         "checking for readline..." result understandable.
18406
18407 2010-11-27  Bruno Haible  <bruno@clisp.org>
18408
18409         *printf-posix: Detect a bug on Solaris 10/x86.
18410         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18411         for floating-point output.
18412         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18413         directive.
18414         * tests/test-snprintf-posix.h (test_function): Likewise.
18415         * tests/test-sprintf-posix.h (test_function): Likewise.
18416         * tests/test-vasprintf-posix.c (test_function): Likewise.
18417         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18418         * doc/posix-functions/printf.texi: Likewise.
18419         * doc/posix-functions/snprintf.texi: Likewise.
18420         * doc/posix-functions/sprintf.texi: Likewise.
18421         * doc/posix-functions/vfprintf.texi: Likewise.
18422         * doc/posix-functions/vprintf.texi: Likewise.
18423         * doc/posix-functions/vsnprintf.texi: Likewise.
18424         * doc/posix-functions/vsprintf.texi: Likewise.
18425         * doc/glibc-functions/obstack_printf.texi: Likewise.
18426         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18427
18428 2010-11-27  Bruno Haible  <bruno@clisp.org>
18429
18430         Fix link error when module libunistring-optional is in use.
18431         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18432         * modules/striconveha-tests (Makefile.am): Likewise.
18433
18434 2010-11-27  Bruno Haible  <bruno@clisp.org>
18435
18436         regex: Mention link dependencies.
18437         * modules/regex (Link): New section.
18438         * modules/rpmatch (Link): Likewise.
18439         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18440
18441 2010-11-27  Bruno Haible  <bruno@clisp.org>
18442
18443         ftoastr: Fix compilation error on Solaris.
18444         * lib/ftoastr.c: Include <config.h>.
18445
18446 2010-11-27  Bruno Haible  <bruno@clisp.org>
18447
18448         getloadavg: Update documentation.
18449         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18450
18451 2010-11-27  Bruno Haible  <bruno@clisp.org>
18452
18453         sys_socket: Fix test whether the functions are declared.
18454         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18455         not <sys/select.h>.
18456
18457 2010-11-27  Bruno Haible  <bruno@clisp.org>
18458
18459         getpass: Make sure to get system declaration on some platforms.
18460         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18461         gl_USE_SYSTEM_EXTENSIONS.
18462         * modules/getpass (Depends-on): Add extensions.
18463
18464 2010-11-26  Bruno Haible  <bruno@clisp.org>
18465
18466         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18467         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18468         'iconv' module is present.
18469         (ICONV_CONST): New macro.
18470         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18471         ICONV_CONST.
18472         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18473         set ICONV_CONST.
18474         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18475         here.
18476         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18477         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18478         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18479         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18480         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18481         present.
18482
18483 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18484
18485         ftoastr: comment fix
18486         * lib/ftoastr.c: "little" -> "little or no" in comment
18487
18488 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18489
18490         stdint: port to GCC 4.3 + OSX + Octave
18491         On this platform, stdint.h is buggy and defines int64_t to long
18492         long int.  The replacement defined it to long int, causing
18493         problems with C++ style name mangling.  Instead, trust the system
18494         definition if INT64_MAX is defined, and likewise for the unsigned
18495         variant.   Problem reported by Jarno Rajahalme in
18496         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18497         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18498         and don't mess with int64_t and INT64_MAX in this case.
18499         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18500
18501 2010-11-24  Bruno Haible  <bruno@clisp.org>
18502
18503         doc: Corrections regarding MacOS X 10.4 and 10.5.
18504         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18505         MacOS X.
18506         Reported by Simon Josefsson.
18507
18508 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18509
18510         Uninstall ".bin" files installed by relocwrapper.
18511         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18512         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18513         unless it is already there.
18514
18515 2010-11-21  Bruno Haible  <bruno@clisp.org>
18516
18517         Update for NetBSD 5.0.
18518         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18519         NetBSD; the test fails on NetBSD 5.0.
18520         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18521         about NetBSD.
18522
18523 2010-11-21  Bruno Haible  <bruno@clisp.org>
18524
18525         Update for HP-UX 11.23 and HP-UX 11.31.
18526         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18527         HP-UX.
18528
18529 2010-11-21  Bruno Haible  <bruno@clisp.org>
18530
18531         Update for MacOS X 10.5.
18532         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18533         MacOS X; the test fails on MacOS X 10.5.8.
18534         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18535         about MacOS X.
18536
18537 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18538
18539         bootstrap: add bootstrap_sync option.
18540         See discussion at
18541         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18542         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18543         * build-aux/bootstrap: Accept --bootstrap-sync to update
18544         bootstrap if it is not identical to the local gnulib's
18545         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18546         enable this by default.  Accept --no-bootstrap-sync to disable
18547         it.
18548
18549 2010-11-20  Bruno Haible  <bruno@clisp.org>
18550
18551         Ensure that <features.h> is included before __GLIBC__ is tested.
18552         * lib/printf-parse.h: Include <features.h>.
18553         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18554         Reported by Mike Frysinger <vapier@gentoo.org>.
18555
18556         Ensure that <features.h> is included before __GLIBC__ is tested.
18557         * lib/wchar.in.h: Include <features.h>.
18558         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18559         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18560         Reported by Mike Frysinger <vapier@gentoo.org>.
18561
18562         Ensure that <features.h> is included before __GLIBC__ is tested.
18563         * lib/arpa_inet.in.h: Include <features.h>.
18564         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18565         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18566         Reported by Mike Frysinger <vapier@gentoo.org>.
18567
18568         Ensure that <features.h> is included before __GLIBC__ is tested.
18569         * build-aux/link-warning.h: Include <features.h>.
18570         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18571         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18572         Reported by Mike Frysinger <vapier@gentoo.org>.
18573
18574         Ensure that <features.h> is included before __GLIBC__ is tested.
18575         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18576         Reported by Mike Frysinger <vapier@gentoo.org>.
18577
18578 2010-11-20  Bruno Haible  <bruno@clisp.org>
18579
18580         memmem: Fix autoconf test.
18581         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18582
18583 2010-11-20  Bruno Haible  <bruno@clisp.org>
18584
18585         Port to uClibc.
18586         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18587         * lib/fcntl.in.h: Likewise.
18588         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18589         * lib/mbrtowc.c (mbrtowc): Likewise.
18590         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18591         * lib/strerror_r.c: Likewise.
18592         * lib/unistr/u8-strnlen.c: Likewise.
18593         * lib/vasnprintf.c (decimal_point_char): Likewise.
18594         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18595         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18596         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18597         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18598         * tests/test-sigaction.c (handler, main): Likewise.
18599         * lib/freading.h: Treat uClibc like a non-glibc platform.
18600         * lib/freading.c: Likewise.
18601         * lib/gettext.h: Likewise.
18602         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18603         Likewise.
18604         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18605         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18606         * lib/propername.c (proper_name_utf8): Likewise.
18607         * lib/spawn.in.h: Likewise.
18608         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18609         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18610         mem_cd_iconveh_internal): Likewise.
18611         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18612         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18613         strstr, strcasestr): Likewise.
18614         * lib/unicodeio.c (unicode_to_mb): Likewise.
18615         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18616         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18617         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18618         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18619         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18620         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18621         * lib/unistr/u8-stpncpy.c: Likewise.
18622         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18623         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18624         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18625         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18626         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18627         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18628         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18630         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18631         Likewise.
18632         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18633         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18634         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18635         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18636         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18637         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18638         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18639         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18640         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18641         * tests/test-striconveha.c (main): Likewise.
18642         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18643         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18644         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18645         * doc/posix-functions/getline.texi: Likewise.
18646         Reported by Mike Frysinger <vapier@gentoo.org>.
18647
18648 2010-11-20  Bruno Haible  <bruno@clisp.org>
18649
18650         nproc: Fix condition.
18651         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18652         HAVE_PTHREAD_AFFINITY_NP.
18653
18654 2010-11-20  Bruno Haible  <bruno@clisp.org>
18655
18656         Fix a comment.
18657         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18658
18659 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18660
18661         ftoastr: don't assume snprintf
18662         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18663         Implement a subset of snprintf here, by using sprintf safely.
18664         * modules/ftoastr (Depends-on): Remove snprintf.
18665
18666 2010-11-19  Jim Meyering  <meyering@redhat.com>
18667
18668         test-rename.h: fix compilation failure
18669         * tests/test-rename.h (test_rename): Add omitted "}".
18670
18671 2010-11-17  Jim Meyering  <meyering@redhat.com>
18672
18673         maint.mk: add a URL discussing the no-@acronym policy
18674         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18675
18676 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18677
18678         ftoastr: depend on snprintf, improve comments
18679         * lib/ftoastr.c: Also mention Loitsch's draft.
18680         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18681         needed in the current implementation, but it might simplify
18682         speeding up the code later.
18683         * modules/ftoastr: Depend on snprintf; this improves portability.
18684         Suggested by Bruno Haible in the same email.
18685
18686         ftoastr: port to hosts lacking strtof and strtold
18687         Problem reported by Bruno Haible in
18688         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18689         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18690         environment and strtold (and presumably strtof) are not available.
18691         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18692         (configure.ac): Require gl_C99_STRTOLD.
18693
18694 2010-11-18  Bruno Haible  <bruno@clisp.org>
18695
18696         c-strtold: Avoid link error on AIX 7.
18697         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18698         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18699         (gl_C_STRTOLD): Test whether strtold_l exists.
18700         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18701
18702 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18703
18704         intprops: new macro INT_BITS_STRLEN_BOUND
18705         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18706         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18707         not exposed.  Also, it uses a slightly tighter bound than before;
18708         though this makes no practical difference, we might as well be as
18709         tight as we easily can.
18710
18711         ftoastr: new module, for lossless conversion of floats to short strings
18712         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18713         * modules/ftoastr: New files.
18714
18715 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18716
18717         bootstrap: port to Solaris sed
18718         * build-aux/bootstrap (get_version): Port to Solaris sed.
18719         See Ralf Wildenhues's note in
18720         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18721
18722 2010-11-14  Jim Meyering  <meyering@redhat.com>
18723
18724         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18725         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18726         and move definition closer to sole use.
18727
18728 2010-11-13  Jim Meyering  <meyering@redhat.com>
18729
18730         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18731         Now we require at least autoconf-2.59, which means the work-around
18732         is no longer needed.
18733         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18734         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18735         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18736         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18737         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18738
18739 2010-11-13  Bruno Haible  <bruno@clisp.org>
18740
18741         rename, renameat: Avoid test failures at NFS mounted locations.
18742         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18743         functions.
18744         (test_rename): Use assert_nonexistent.
18745         * tests/test-rename.c: Include <dirent.h>.
18746         * tests/test-renameat.c: Likewise.
18747         Reported by Gary V. Vaughan <gary@gnu.org>.
18748
18749         rename, renameat: Document Linux bug with NFS
18750         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18751         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18752         * doc/posix-functions/renameat.texi: Likewise.
18753         Suggested by Eric Blake.
18754
18755 2010-11-13  Bruno Haible  <bruno@clisp.org>
18756
18757         rename test: Add comments.
18758         * tests/test-rename.h (test_rename): Add structure and comments.
18759
18760 2010-11-13  Eric Blake  <eblake@redhat.com>
18761
18762         maintainer-makefile: cover a few more files
18763         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18764         scripts generated within C files, for libvirt.
18765
18766 2010-11-13  Bruno Haible  <bruno@clisp.org>
18767
18768         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18769         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18770         character, return the number of bytes that belong together, not always
18771         1.
18772         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18773         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18774         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18775         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18776         number of bytes of an invalid character.
18777         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18778         (main): Invoke it.
18779         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18780         results.
18781         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18782         malformed byte sequences.
18783         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18784         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18785         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18786         Reported by Ben Pfaff and Paolo Bonzini.
18787
18788 2010-11-13  Bruno Haible  <bruno@clisp.org>
18789
18790         openat: Work around glibc bug with fchownat() and empty file names.
18791         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18792         (gl_FUNC_FCHOWNAT): Invoke it.
18793         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18794         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18795         Reported by Gary V. Vaughan <gary@gnu.org>.
18796
18797 2010-11-13  Bruno Haible  <bruno@clisp.org>
18798
18799         openat: Ensure autoconf macro ordering.
18800         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18801         gl_USE_SYSTEM_EXTENSIONS.
18802         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18803
18804 2010-11-13  Bruno Haible  <bruno@clisp.org>
18805
18806         Update comments.
18807         * lib/unistr/u8-check.c: Update file name in comments.
18808         * lib/unistr/u8-mblen.c: Likewise.
18809         * lib/unistr/u8-prev.c: Likewise.
18810         * lib/unistr/u8-strmblen.c: Likewise.
18811         * lib/unistr/u8-strmbtouc.c: Likewise.
18812
18813 2010-11-13  Jim Meyering  <meyering@redhat.com>
18814
18815         tests: avoid test failure on Solaris 10 due to lack of PATH export
18816         * tests/test-update-copyright.sh: Don't forget to export PATH.
18817
18818         init.sh: ensure that IFS is defined, just in case...
18819         * tests/init.sh (setup_): Ensure that IFS is defined,
18820         so that saving and restoring it works as expected.  This
18821         appears to be useful at least for an old version of dash
18822         from a long time ago (RH 6).  See here for details:
18823         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18824
18825         maint.mk: tighten "test a == b" check
18826         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18827         test to files that contain something like #!/bin/sh.
18828         Without this, coreutils would get two false positives in
18829         the comments of C source files.
18830
18831 2010-11-12  Eric Blake  <eblake@redhat.com>
18832
18833         bootstrap: fix typo in previous attempt
18834         * build-aux/bootstrap (buildreq): Correct the grouping.
18835         Reported by Paul Eggert.
18836
18837         maintainer-makefile: prohibit test x == x
18838         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18839         Based on a report by Matthias Bolte.
18840
18841         bootstrap: allow FreeBSD gzip
18842         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18843         which has no '.' and goes to stderr.
18844         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18845         Reported by Matthias Bolte.
18846
18847         maintainer-makefile: check for i18n setup
18848         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18849         will likely work.
18850
18851 2010-11-12  Bruno Haible  <bruno@clisp.org>
18852
18853         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18854         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18855         * lib/nanosleep.c (nanosleep): Likewise.
18856
18857 2010-11-11  Bruno Haible  <bruno@clisp.org>
18858
18859         fcntl-h: Fix for use of C++ on glibc systems.
18860         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18861         also on glibc systems in C++ mode.
18862         Reported by Gary V. Vaughan <gary@gnu.org>.
18863
18864 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18865
18866         mknod: avoid false failure with dash
18867         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18868
18869 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18870
18871         unlink: Fix "is it should" typo in diagnostic.
18872         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18873         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18874
18875 2010-11-11  Bruno Haible  <bruno@clisp.org>
18876
18877         Tests for module 'strerror_r-posix'.
18878         * modules/strerror_r-posix-tests: New file.
18879         * tests/test-strerror_r.c: New file.
18880         * tests/test-string-c++.cc: Check the signature of strerror_r.
18881
18882         New module 'strerror_r-posix'.
18883         * lib/string.in.h (strerror_r): New declaration.
18884         * lib/strerror_r.c: New file.
18885         * m4/strerror_r.m4: New file.
18886         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18887         of strerror_r.
18888         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18889         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18890         * modules/strerror_r-posix: New file.
18891         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18892         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18893         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18894         portability problems.
18895
18896 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18897
18898         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18899         line is also considered for output. Quoted function name in shell
18900         command, so temporary files for functions like MyClass::operator()
18901         are removed correctly without errors.
18902
18903 2010-11-09  Bruno Haible  <bruno@clisp.org>
18904
18905         * doc/posix-functions/strerror.texi: List more failing platforms.
18906
18907         * doc/posix-functions/strerror.texi: Add a comment.
18908
18909 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18910
18911         fdopendir: fix bug on MacOS X when low on file descriptors
18912
18913         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18914         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18915         All callers changed.
18916         (fdopendir): Invoke save_cwd at the top level, not after using
18917         multiple dup() calls to use up file descriptors.  Then retry
18918         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18919         less than the maximum number of open file descriptors, because
18920         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18921         on Mac OS X 10.6.4 for tar 1.24
18922         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18923         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18924         and for tar 1.25
18925         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18926
18927 2010-11-07  Bruno Haible  <bruno@clisp.org>
18928
18929         vasnprintf: Support I flag on glibc systems.
18930         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18931         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18932         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18933         snprintf function.
18934         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18935         glibc systems.
18936         * tests/test-vasnprintf-posix3.c: New file.
18937         * modules/vasnprintf-posix-tests (Files): Add it.
18938         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18939
18940 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18941
18942         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18943         * MODULES.html.sh: For compiler warnings, use name
18944         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18945
18946 2010-11-05  Eric Blake  <eblake@redhat.com>
18947
18948         ceil, floor: avoid spurious failure with icc
18949         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18950         [denormals-as-zero] when optimizing without -mieee-fp option.
18951         * tests/test-floorf2.c (floorf_reference): Likewise.
18952         * tests/test-ceilf1.c (dummy): New function.
18953         (main): Use it to outsmart icc's optimization.
18954         * tests/test-floorf1.c (dummy, main): Likewise.
18955
18956         tests: require working signbit
18957         * modules/ceilf-tests (Depends-on): Add signbit.
18958         * modules/ceill-tests (Depends-on): Likewise.
18959         * modules/floorf-tests (Depends-on): Likewise.
18960         * modules/floorl-tests (Depends-on): Likewise.
18961         * modules/round-tests (Depends-on): Likewise.
18962         * modules/roundf-tests (Depends-on): Likewise.
18963         * modules/roundl-tests (Depends-on): Likewise.
18964         * modules/trunc-tests (Depends-on): Likewise.
18965         * modules/truncf-tests (Depends-on): Likewise.
18966         * modules/truncl-tests (Depends-on): Likewise.
18967
18968         strtod: work around icc bug
18969         * lib/strtod.c (minus_zero): Define to working value.
18970         (strtod): Use it to avoid icc bug.
18971
18972         copysign: enhance tests
18973         * modules/copysign-tests (Files): Add minus-zero.h.
18974         * tests/test-copysign.c (main): Also test zeros.
18975
18976 2010-11-04  Eric Blake  <eblake@redhat.com>
18977
18978         ceil, floor, round, trunc: enhance tests of -0
18979         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18980         * tests/test-ceill.c (main): Likewise.
18981         * tests/test-floorf1.c (main): Likewise.
18982         * tests/test-floorl.c (main): Likewise.
18983         * tests/test-round1.c (main): Likewise.
18984         * tests/test-roundf1.c (main): Likewise.
18985         * tests/test-roundl.c (main): Likewise.
18986         * tests/test-trunc1.c (main): Likewise.
18987         * tests/test-truncf1.c (main): Likewise.
18988         * tests/test-truncl.c (main): Likewise.
18989
18990 2010-11-04  Eric Blake  <eblake@redhat.com>
18991
18992         frexp, tests: work around ICC bug with -zero
18993         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18994         works with more compilers.
18995         * tests/minus-zero.h: New file.
18996         * modules/ceilf-tests (Files): Include it.
18997         * modules/ceill-tests (Files): Likewise.
18998         * modules/floorf-tests (Files): Likewise.
18999         * modules/floorl-tests (Files): Likewise.
19000         * modules/frexp-nolibm-tests (Files): Likewise.
19001         * modules/frexp-tests (Files): Likewise.
19002         * modules/frexpl-nolibm-tests (Files): Likewise.
19003         * modules/frexpl-tests (Files): Likewise.
19004         * modules/isnan-tests (Files): Likewise.
19005         * modules/isnand-nolibm-tests (Files): Likewise.
19006         * modules/isnand-tests (Files): Likewise.
19007         * modules/isnanf-nolibm-tests (Files): Likewise.
19008         * modules/isnanf-tests (Files): Likewise.
19009         * modules/isnanl-nolibm-tests (Files): Likewise.
19010         * modules/isnanl-tests (Files): Likewise.
19011         * modules/round-tests (Files): Likewise.
19012         * modules/roundf-tests (Files): Likewise.
19013         * modules/roundl-tests (Files): Likewise.
19014         * modules/ldexpl-tests (Files): Likewise.
19015         * modules/signbit-tests (Files): Likewise.
19016         * modules/snprintf-posix-tests (Files): Likewise.
19017         * modules/sprintf-posix-tests (Files): Likewise.
19018         * modules/strtod-tests (Files): Likewise.
19019         * modules/trunc-tests (Files): Likewise.
19020         * modules/truncf-tests (Files): Likewise.
19021         * modules/truncl-tests (Files): Likewise.
19022         * modules/vsnprintf-posix-tests (Files): Likewise.
19023         * modules/vsprintf-posix-tests (Files): Likewise.
19024         * modules/vasnprintf-posix-tests (Files): Likewise.
19025         * modules/vasprintf-posix-tests (Files): Likewise.
19026         * tests/test-ceilf1.c (main): Use it.
19027         * tests/test-ceill.c (main): Likewise.
19028         * tests/test-floorf1.c (main): Likewise.
19029         * tests/test-floorl.c (main): Likewise.
19030         * tests/test-frexp.c (main): Likewise.
19031         * tests/test-frexpl.c (main): Likewise.
19032         * tests/test-isnan.c (main): Likewise.
19033         * tests/test-isnand.h (main): Likewise.
19034         * tests/test-isnanf.h (main): Likewise.
19035         * tests/test-isnanl.h (main): Likewise.
19036         * tests/test-ldexpl.c (main): Likewise.
19037         * tests/test-round.c (main): Likewise.
19038         * tests/test-roundf.c (main): Likewise.
19039         * tests/test-roundl.c (main): Likewise.
19040         * tests/test-signbit.c (test_signbitf, test_signbitd)
19041         (test_signbitl): Likewise.
19042         * tests/test-snprintf-posix.h (test_function): Likewise.
19043         * tests/test-sprintf-posix.h (test_function): Likewise.
19044         * tests/test-strtod.c (main): Likewise.
19045         * tests/test-trunc1.c (main): Likewise.
19046         * tests/test-truncf1.c (main): Likewise.
19047         * tests/test-truncl.c (main): Likewise.
19048
19049         isnanl: work around icc bug
19050         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19051
19052 2010-11-03  Eric Blake  <eblake@redhat.com>
19053
19054         tests: fix compiler warnings
19055         * tests/test-getopt.h (test_getopt): Fix condition.
19056         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19057         * tests/test-pipe2.c (main): Likewise.
19058         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19059
19060         utimens: fix broken m4 test
19061         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19062
19063 2010-10-28  Bruno Haible  <bruno@clisp.org>
19064
19065         posix_spawn*, getdtablesize: Relax license.
19066         * modules/posix_spawn (License): Change to LGPLv2+.
19067         * modules/posix_spawnp (License): Likewise.
19068         * modules/posix_spawn-internal (License): Likewise.
19069         * modules/posix_spawnattr_init (License): Likewise.
19070         * modules/posix_spawnattr_getflags (License): Likewise.
19071         * modules/posix_spawnattr_setflags (License): Likewise.
19072         * modules/posix_spawnattr_getpgroup (License): Likewise.
19073         * modules/posix_spawnattr_setpgroup (License): Likewise.
19074         * modules/posix_spawnattr_getschedparam (License): Likewise.
19075         * modules/posix_spawnattr_setschedparam (License): Likewise.
19076         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19077         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19078         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19079         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19080         * modules/posix_spawnattr_getsigmask (License): Likewise.
19081         * modules/posix_spawnattr_setsigmask (License): Likewise.
19082         * modules/posix_spawnattr_destroy (License): Likewise.
19083         * modules/posix_spawn_file_actions_init (License): Likewise.
19084         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19085         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19086         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19087         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19088         * modules/getdtablesize (License): Likewise.
19089         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19090
19091 2010-10-26  Bruno Haible  <bruno@clisp.org>
19092
19093         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19094         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19095         Cygwin and mingw.
19096         Suggested by Eric Blake.
19097
19098 2010-10-26  Bruno Haible  <bruno@clisp.org>
19099
19100         stdio: Work around compilation error due to renameat() on Solaris 10.
19101         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19102         * lib/renameat.c: Don't include <unistd.h> here.
19103         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19104         Reported by Paul Eggert and Eric Blake.
19105
19106 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19107
19108         renameat: port to Solaris 10, which declares renameat in unistd.h
19109
19110         * lib/renameat.c: Include unistd.h before stdio.h, because
19111         Solaris 10 declares renameat in unistd.h.  Problem encountered
19112         when building GNU tar 1.24 on Solaris 10.
19113
19114 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19115
19116         fdopendir: fix C89 compilation
19117         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19118         compilers.
19119
19120 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19121
19122         inttostr: simplify by removing unnecessary redundancy
19123         * lib/anytostr.c: Don't include verify.h.
19124         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19125         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19126         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19127         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19128         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19129         Likewise.
19130         * modules/inttostr (Depends-on): Remove 'verify'.
19131
19132 2010-10-23  Bruno Haible  <bruno@clisp.org>
19133
19134         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19135         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19136         Reported by Eric Blake.
19137
19138 2010-10-23  Bruno Haible  <bruno@clisp.org>
19139
19140         Tests: Fix LOCALE_JA on MirBSD 10.
19141         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19142         to an UTF-8 locale.
19143         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19144         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19145         Reported by Eric Blake.
19146
19147 2010-10-21  Bruno Haible  <bruno@clisp.org>
19148
19149         nl_langinfo test: Avoid test failure on NetBSD 5.
19150         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19151         Reported by Eric Blake.
19152
19153 2010-10-21  Eric Blake  <eblake@redhat.com>
19154
19155         c-stack: work around libsigsegv 2.8 bug
19156         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19157         overflow on at least PowerPC64.
19158
19159 2010-10-17  Bruno Haible  <bruno@clisp.org>
19160
19161         userspec: Drop redundant file.
19162         * modules/userspec (Files): Remove lib/inttostr.h.
19163
19164 2010-10-17  Bruno Haible  <bruno@clisp.org>
19165
19166         nl_langinfo tests: Silence some warnings.
19167         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19168         Reported by Jim Meyering.
19169
19170 2010-10-17  Bruno Haible  <bruno@clisp.org>
19171
19172         Make use of GCC's attribute __alloc_size__.
19173         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19174         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19175         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19176         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19177         __alloc_size__.
19178         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19179         Suggested by Jim Meyering.
19180
19181 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19182
19183         bootstrap: anchor .gitignore entries.
19184         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19185         with...
19186         (insert_vc_ignore): ... this new function, which prepends `/' to
19187         all .gitignore entries before passing them to
19188         insert_sorted_if_absent.
19189
19190 2010-10-16  Bruno Haible  <bruno@clisp.org>
19191
19192         nextafter: Fix configure check.
19193         * modules/nextafter (configure.ac): Correct expected prototype.
19194
19195 2010-10-16  Bruno Haible  <bruno@clisp.org>
19196
19197         termios: Update documentation.
19198         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19199
19200 2010-10-16  Bruno Haible  <bruno@clisp.org>
19201
19202         tests: Make them compile with TinyCC.
19203         * tests/test-strstr.c (main): Remove parentheses around array
19204         initializer.
19205
19206 2010-10-15  Eric Blake  <eblake@redhat.com>
19207
19208         ignore-value: make header idempotent
19209         * lib/ignore-value.h: Add double-inclusion guards.
19210         Reported by Stefan Berger.
19211
19212 2010-10-15  Jim Meyering  <meyering@redhat.com>
19213
19214         GNUmakefile: handle "stable" target, not "major"
19215         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19216         lists in maint.mk and announce-gen.  Without this, "make stable"
19217         would fail to ensure that $(VERSION) is up to date.
19218
19219 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19220
19221         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19222         & co.
19223
19224 2010-10-14  Bruno Haible  <bruno@clisp.org>
19225
19226         vasnprintf: Don't set errno to 0.
19227         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19228         block that sets it to 0.
19229         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19230
19231 2010-10-14  Bruno Haible  <bruno@clisp.org>
19232
19233         socketlib: Fix.
19234         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19235         gl_PREREQ_SYS_H_WINSOCK2.
19236         Reported by Ian Beckwith <ianb@erislabs.net>.
19237
19238 2010-10-13  Jim Meyering  <meyering@redhat.com>
19239
19240         test-select-stdin.c: avoid warn_unused_result warnings
19241         * tests/test-select-stdin.c: Include "macros.h".
19242         ASSERT that read and fflush succeed.
19243
19244 2010-10-13  Jim Meyering  <meyering@redhat.com>
19245
19246         git-version-gen: do require git-VC'd files in cwd
19247         * build-aux/git-version-gen: Reject a git version string
19248         if there are no commits associated with the current directory.
19249         This avoids an unlikely false-positive (unrelated dir whose parent
19250         repository also contains a tag matching v*), as pointed out
19251         by Giuseppe Scrivano in
19252         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19253
19254 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19255
19256         argv-iter: omit nonconforming declaration
19257         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19258         enum arg_iter_err declaration, which doesn't conform to C99.
19259         Solaris 10 cc warns about this.
19260
19261 2010-10-13  Eric Blake  <eblake@redhat.com>
19262
19263         termios: fix compilation on mingw
19264         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19265         (gl_TERMIOS_H): Adjust it on mingw.
19266         * modules/termios (Makefile.am): Substitute new key.
19267         * lib/termios.in.h (includes): Make include_next conditional.
19268         * doc/posix-headers/termios.texi (termios.h): Update
19269         documentation.
19270         Reported by Daniel P. Berrange.
19271
19272 2010-10-13  Jim Meyering  <meyering@redhat.com>
19273
19274         git-version-gen: don't require that .git/ be in the current dir
19275         * build-aux/git-version-gen: Adjust this script so that it works
19276         when run from any working directory beneath the top-level .git/-
19277         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19278         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19279
19280         test-select: avoid warn_unused_result warnings
19281         * tests/test-select.c: Include "macros.h".
19282         ASSERT that each call to read, write, and pipe succeeds.
19283         While not technically required, also check each "close".
19284         * modules/select-tests (Files): Add tests/macros.h.
19285
19286         test-symlinkat: remove declaration of unused local
19287         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19288
19289         test-inttostr: avoid shadowing warnings
19290         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19291         and use malloc rather than the stack for the same reason as
19292         mentioned in the comment justifying the other allocation.
19293
19294 2010-10-11  Bruno Haible  <bruno@clisp.org>
19295
19296         stdlib: Allow multiple gnulib generated replacements to coexist.
19297         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19298         Reported by Sam Steingold <sds@gnu.org>.
19299
19300 2010-10-11  Jim Meyering  <meyering@redhat.com>
19301
19302         fix a documentation typo
19303         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19304
19305 2010-10-11  Eric Blake  <eblake@redhat.com>
19306
19307         futimens: work around Solaris 11 bug
19308         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19309         * tests/test-futimens.h (test_futimens): Enhance, rather than
19310         weaken test.
19311         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19312
19313 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19314
19315         Indentation.
19316         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19317         higher-level operators more to the left.
19318
19319 2010-10-11  Jim Meyering  <meyering@redhat.com>
19320
19321         test-futimens: avoid unwarranted test failure on Solaris 5.11
19322         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19323         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19324         because it tries to dereference the NULL name argument.
19325
19326 2010-10-11  Bruno Haible  <bruno@clisp.org>
19327
19328         Indentation.
19329         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19330         indentation.
19331
19332 2010-10-11  Jim Meyering  <meyering@redhat.com>
19333
19334         spawn.in.h: make indentation consistent with parentheses
19335         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19336         Make indentation consistent with parentheses.
19337
19338 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19339
19340         Fix mismatched parens in previous commit
19341         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19342         parens.
19343
19344 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19345
19346         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19347
19348         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19349         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19350         * lib/malloca.c: Include "verify.h".
19351         (verify1): Remove, replacing with a verify call.
19352         * lib/relocwrapper.c (verify1): Likewise.
19353         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19354         Likewise.
19355         * modules/malloca (Depends-on): Add 'verify'.
19356         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19357         * modules/vasnprintf (Depends-on): Add 'verify'.
19358         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19359         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19360         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19361         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19362         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19363         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19364         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19365
19366         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19367
19368         Formerly the style was sometimes 2*X - 1, because the C standard
19369         was wrongly thought to disallow ?: in integral constant expressions.
19370         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19371         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19372         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19373         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19374         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19375         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19376         verify that time_t cannot be floating.
19377
19378 2010-10-08  Eric Blake  <eblake@redhat.com>
19379
19380         time: enforce recent POSIX ruling that time_t is integral
19381         * lib/time.in.h (__time_t_must_be_integral): Detect any
19382         problematic systems, allowing the rest of gnulib to assume POSIX.
19383
19384 2010-10-08  Jim Meyering  <meyering@redhat.com>
19385
19386         fdopendir: fix a bug on systems lacking openat and /proc support
19387         OpenBSD 4.7 is one such system.  The most noticeable effect was
19388         failure of any application making nontrivial use of fts: rm, du,
19389         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19390           ./rm: traversal failed: `a': Bad file descriptor
19391         Debugging that, you see that even though FD 6 was closed just
19392         prior to the opendir call in fd_clone_opendir, its resulting
19393         dir->dd_fd was 8, rather than the expected value of 6:
19394
19395         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19396         93                close (fd);
19397         (gdb) n
19398         94                dir = fd_clone_opendir (dupfd);
19399         (gdb) n
19400         95                saved_errno = errno;
19401         (gdb) p dir->dd_fd
19402         $11 = 8
19403
19404         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19405         The problem is that on OpenBSD, fd_clone_opendir has to resort
19406         to using the old-style save/restore CWD mechanism, due to its
19407         lack of openat/proc support, and *that* would steal the FD (6)
19408         that opendir was supposed to use.
19409
19410         The fix is to squirrel away the desired FD so that save_cwd uses a
19411         different one, and then free the dest FD right before calling opendir.
19412         That guarantees opendir will use the required file descriptor.
19413
19414         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19415
19416 2010-10-08  Bruno Haible  <bruno@clisp.org>
19417
19418         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19419         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19420
19421 2010-10-08  Bruno Haible  <bruno@clisp.org>
19422
19423         nanosleep: Make replacement POSIX compliant.
19424         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19425         is out of range.
19426         Reported by Jim Meyering.
19427
19428 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19429
19430         bootstrap: add hook for altering gnulib.mk, for Bison
19431         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19432         the Bison bootstrapping process can rewrite file names and variables
19433         in this file before later parts of 'bootstrap' use the file.
19434         Bison wants to include lib/gnulib.mk from the top-level makefile,
19435         so it needs the file names in this file to be relative to the top
19436         level, not relative to lib; plus it needs variable names to be
19437         rewritten.
19438         (slurp): Use the new function.
19439
19440         bootstrap: reformat for readability
19441         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19442
19443 2010-10-08  Eric Blake  <eblake@redhat.com>
19444
19445         docs: update cygwin progress
19446         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19447         1.7.7.
19448         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19449         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19450         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19451         * doc/posix-functions/carg.texi (carg): Likewise.
19452         * doc/posix-functions/cargf.texi (cargf): Likewise.
19453         * doc/posix-functions/casin.texi (casin): Likewise.
19454         * doc/posix-functions/casinf.texi (casinf): Likewise.
19455         * doc/posix-functions/casinh.texi (casinh): Likewise.
19456         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19457         * doc/posix-functions/catan.texi (catan): Likewise.
19458         * doc/posix-functions/catanf.texi (catanf): Likewise.
19459         * doc/posix-functions/catanh.texi (catanh): Likewise.
19460         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19461         * doc/posix-functions/ccos.texi (ccos): Likewise.
19462         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19463         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19464         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19465         * doc/posix-functions/cexp.texi (cexp): Likewise.
19466         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19467         * doc/posix-functions/cimag.texi (cimag): Likewise.
19468         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19469         * doc/posix-functions/clog.texi (clog): Likewise.
19470         * doc/posix-functions/clogf.texi (clogf): Likewise.
19471         * doc/posix-functions/conj.texi (conj): Likewise.
19472         * doc/posix-functions/conjf.texi (conjf): Likewise.
19473         * doc/posix-functions/cpow.texi (cpow): Likewise.
19474         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19475         * doc/posix-functions/cproj.texi (cproj): Likewise.
19476         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19477         * doc/posix-functions/creal.texi (creal): Likewise.
19478         * doc/posix-functions/crealf.texi (crealf): Likewise.
19479         * doc/posix-functions/csin.texi (csin): Likewise.
19480         * doc/posix-functions/csinf.texi (csinf): Likewise.
19481         * doc/posix-functions/csinh.texi (csinh): Likewise.
19482         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19483         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19484         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19485         * doc/posix-functions/ctan.texi (ctan): Likewise.
19486         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19487         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19488         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19489         * doc/posix-headers/complex.texi (complex.h): Likewise.
19490
19491 2010-10-07  Jim Meyering  <meyering@redhat.com>
19492
19493         parse-datetime: avoid compilation failure on OpenBSD 4.7
19494         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19495         This works around a compilation failure on OpenBSD 4.7:
19496         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19497
19498 2010-10-07  Eric Blake  <eblake@redhat.com>
19499
19500         docs: update cygwin progress
19501         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19502         1.7.6.
19503         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19504         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19505         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19506         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19507         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19508         Likewise.
19509         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19510         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19511         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19512         Likewise.
19513         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19514         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19515         Likewise.
19516         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19517         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19518         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19519         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19520         Likewise.
19521         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19522         Likewise.
19523         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19524
19525         docs: update parse-datetime history
19526         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19527         documentation of this function's history and alternatives.
19528
19529         cygwin: use more robust version check
19530         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19531         exclude an eventual cygwin 1.9.1.
19532         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19533         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19534         (gl_FUNC_STRCASESTR): Likewise.
19535         Reported by Bruno Haible.
19536
19537 2010-10-06  Bruno Haible  <bruno@clisp.org>
19538
19539         string, sys_select: Avoid #including large headers unless necessary.
19540         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19541         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19542         OSF/1, BeOS, Haiku.
19543         Reported by Jim Meyering.
19544
19545 2010-10-05  Eric Blake  <eblake@redhat.com>
19546
19547         memmem, strstr, strcasestr: fix bug with long periodic needle
19548         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19549         periodic needle having false positive.
19550         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19551         and cygwin 1.7.7.
19552         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19554         (gl_FUNC_STRCASESTR): Likewise.
19555         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19556         * tests/test-memmem.c (main): Expose the bug.
19557         * tests/test-strcasestr.c (main): Likewise.
19558         * tests/test-strstr.c (main): Likewise.
19559         * tests/test-c-strcasestr.c (main): Likewise.
19560         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19561         * doc/posix-functions/strstr.texi (strstr): Likewise.
19562         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19563         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19564
19565 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19566
19567         parse-datetime: do some more renaming
19568         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19569         parse_datetime, not get_date.  Mention the renaming.
19570         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19571         in comments.
19572         * m4/bison.m4: Likewise.
19573
19574 2010-10-05  Eric Blake  <eblake@redhat.com>
19575
19576         parse-datetime: better name than get_date
19577         * NEWS: Reword the deprecation notice.
19578         * modules/get_date: Rename to modules/parse-datetime.
19579         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19580         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19581         * lib/get_date.y: Rename to lib/parse-datetime.y.
19582         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19583         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19584         * doc/getdate.texi: Provide fallback wrapper.
19585         * lib/getdate.h: Move guts, and wrap...
19586         * lib/parse-datetime.h: ...new file.
19587         * lib/parse-datetime.y (get_date): Rename...
19588         (parse_datetime): ...to this.
19589         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19590         (gl_PARSE_DATETIME): ...to this.
19591         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19592         documentation.
19593         * modules/getdate (Files): Provide fallback docs and header.
19594         (Notice, Depends-on): Update references.
19595         * tests/test-parse-datetime.c: Likewise.
19596         * DEPENDENCIES: Likewise.
19597         * MODULES.html.sh (Date and time <time.h>): Likewise.
19598         * doc/parse-datetime.texi (Date input formats)
19599         (Authors of parse_datetime): Likewise.
19600         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19601         (Include): Likewise.
19602         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19603         * gnulib-tool: Likewise.
19604         * m4/bison.m4 (gl_BISON): Likewise.
19605         Suggested by Bruno Haible.
19606
19607 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19608
19609         more ports to Solaris tr, which needs [] around ranges
19610         * gnulib-tool: Solaris tr needs [] around ranges.
19611         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19612         * tests/test-pipe-filter-gi1.c (main): Likewise.
19613         * tests/test-pipe-filter-ii1.c (main): Likewise.
19614
19615 2010-10-05  Eric Blake  <eblake@redhat.com>
19616
19617         bootstrap: fix Solaris regression
19618         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19619         around ranges.
19620         Reported by Pádraig Brady.
19621
19622         bootstrap: work with pkg-config
19623         * build-aux/bootstrap (check_versions): Also transliterate - in
19624         prerequisite name.
19625         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19626         prerequisites that were already found, to avoid confusion.
19627         Reported by Justin Clift.
19628
19629         faccessat: remove unused wrappers
19630         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19631         presence of these wrappers dragged in -lgen on Solaris.
19632         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19633
19634 2010-10-05  Jim Meyering  <meyering@redhat.com>
19635
19636         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19637         * Makefile (sc_pragma_columns): New syntax-check rule.
19638
19639 2010-10-04  Bruno Haible  <bruno@clisp.org>
19640
19641         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19642         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19643         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19644         Reported by Bruce Korb and Eric Blake.
19645
19646 2010-10-04  Bruno Haible  <bruno@clisp.org>
19647
19648         threadlib: Make option --with-libpth-prefix work.
19649         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19650         use $LIBPTH, not just -lpth.
19651
19652 2010-10-04  Bruno Haible  <bruno@clisp.org>
19653
19654         Avoid line length limitation from HP NonStop system header files.
19655         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19656         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19657         * lib/ctype.in.h: Likewise.
19658         * lib/dirent.in.h: Likewise.
19659         * lib/errno.in.h: Likewise.
19660         * lib/fcntl.in.h: Likewise.
19661         * lib/float.in.h: Likewise.
19662         * lib/getopt.in.h: Likewise.
19663         * lib/iconv.in.h: Likewise.
19664         * lib/inttypes.in.h: Likewise.
19665         * lib/langinfo.in.h: Likewise.
19666         * lib/locale.in.h: Likewise.
19667         * lib/math.in.h: Likewise.
19668         * lib/netdb.in.h: Likewise.
19669         * lib/netinet_in.in.h: Likewise.
19670         * lib/poll.in.h: Likewise.
19671         * lib/pthread.in.h: Likewise.
19672         * lib/pty.in.h: Likewise.
19673         * lib/sched.in.h: Likewise.
19674         * lib/se-selinux.in.h: Likewise.
19675         * lib/search.in.h: Likewise.
19676         * lib/signal.in.h: Likewise.
19677         * lib/spawn.in.h: Likewise.
19678         * lib/stdarg.in.h: Likewise.
19679         * lib/stddef.in.h: Likewise.
19680         * lib/stdint.in.h: Likewise.
19681         * lib/stdio.in.h: Likewise.
19682         * lib/stdlib.in.h: Likewise.
19683         * lib/string.in.h: Likewise.
19684         * lib/strings.in.h: Likewise.
19685         * lib/sys_file.in.h: Likewise.
19686         * lib/sys_ioctl.in.h: Likewise.
19687         * lib/sys_select.in.h: Likewise.
19688         * lib/sys_socket.in.h: Likewise.
19689         * lib/sys_stat.in.h: Likewise.
19690         * lib/sys_time.in.h: Likewise.
19691         * lib/sys_times.in.h: Likewise.
19692         * lib/sys_utsname.in.h: Likewise.
19693         * lib/sys_wait.in.h: Likewise.
19694         * lib/sysexits.in.h: Likewise.
19695         * lib/termios.in.h: Likewise.
19696         * lib/time.in.h: Likewise.
19697         * lib/unistd.in.h: Likewise.
19698         * lib/wchar.in.h: Likewise.
19699         * lib/wctype.in.h: Likewise.
19700         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19701         * modules/ctype (Makefile.am): Likewise.
19702         * modules/dirent (Makefile.am): Likewise.
19703         * modules/errno (Makefile.am): Likewise.
19704         * modules/fcntl-h (Makefile.am): Likewise.
19705         * modules/float (Makefile.am): Likewise.
19706         * modules/getopt-posix (Makefile.am): Likewise.
19707         * modules/iconv-h (Makefile.am): Likewise.
19708         * modules/inttypes (Makefile.am): Likewise.
19709         * modules/langinfo (Makefile.am): Likewise.
19710         * modules/locale (Makefile.am): Likewise.
19711         * modules/math (Makefile.am): Likewise.
19712         * modules/netdb (Makefile.am): Likewise.
19713         * modules/netinet_in (Makefile.am): Likewise.
19714         * modules/poll-h (Makefile.am): Likewise.
19715         * modules/pthread (Makefile.am): Likewise.
19716         * modules/pty (Makefile.am): Likewise.
19717         * modules/sched (Makefile.am): Likewise.
19718         * modules/search (Makefile.am): Likewise.
19719         * modules/selinux-h (Makefile.am): Likewise.
19720         * modules/signal (Makefile.am): Likewise.
19721         * modules/spawn (Makefile.am): Likewise.
19722         * modules/stdarg (Makefile.am): Likewise.
19723         * modules/stddef (Makefile.am): Likewise.
19724         * modules/stdint (Makefile.am): Likewise.
19725         * modules/stdio (Makefile.am): Likewise.
19726         * modules/stdlib (Makefile.am): Likewise.
19727         * modules/string (Makefile.am): Likewise.
19728         * modules/strings (Makefile.am): Likewise.
19729         * modules/sys_file (Makefile.am): Likewise.
19730         * modules/sys_ioctl (Makefile.am): Likewise.
19731         * modules/sys_select (Makefile.am): Likewise.
19732         * modules/sys_socket (Makefile.am): Likewise.
19733         * modules/sys_stat (Makefile.am): Likewise.
19734         * modules/sys_time (Makefile.am): Likewise.
19735         * modules/sys_times (Makefile.am): Likewise.
19736         * modules/sys_utsname (Makefile.am): Likewise.
19737         * modules/sys_wait (Makefile.am): Likewise.
19738         * modules/sysexits (Makefile.am): Likewise.
19739         * modules/termios (Makefile.am): Likewise.
19740         * modules/time (Makefile.am): Likewise.
19741         * modules/unistd (Makefile.am): Likewise.
19742         * modules/wchar (Makefile.am): Likewise.
19743         * modules/wctype (Makefile.am): Likewise.
19744
19745 2010-10-04  Bruno Haible  <bruno@clisp.org>
19746
19747         read-file tests: Avoid a test failure on NonStop Kernel.
19748         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19749         a regular file.
19750         Reported by Joachim Schmitz <schmitz@hp.com>.
19751
19752 2010-10-03  Bruno Haible  <bruno@clisp.org>
19753
19754         gnulib-tool: Fixes for --create-testdir with --libtool.
19755         * gnulib-tool (func_get_automake_snippet): Don't augment
19756         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19757         an executable.
19758         (func_create_testdir): Handle module 'alloca' like func_import.
19759         Reported by Bruce Korb <bruce.korb@gmail.com>.
19760
19761 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19762
19763         Avoid some lines longer than 80 characters.
19764         * lib/stdint.in.h: Break long comment lines.
19765         * lib/math.in.h: Likewise.
19766         (_GL_NUM_UINT_WORDS): New macro, for readability.
19767         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19768         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19769         * lib/stdlib.in.h: Likewise.
19770         * lib/spawn.in.h: Likewise.
19771         * lib/sys_socket.in.h: Update an URL.
19772         * lib/sys_stat.in.h: Break long line.
19773
19774 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19775
19776         Improve pmccabe2html.
19777         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19778         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19779         when the sources change. Remove the line in the HTML about "Used
19780         ranges" (which implied that there might be other unused ranges),
19781         rename "Resume" to "Summary" (easier to understand for more users).
19782         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19783         styles, and some unnecessary blank lines.
19784
19785 2010-10-03  Bruno Haible  <bruno@clisp.org>
19786             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19787
19788         acl: Add support for ACLs on NonStop Kernel.
19789         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19790         Check whether the function aclsort() exists.
19791         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19792         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19793         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19794         (acl_nontrivial [HAVE_ACLSORT]: New function.
19795         (file_has_acl): Implement for NonStop Kernel.
19796         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19797         (qset_acl): Implement for NonStop Kernel.
19798         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19799         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19800         (main): Implement for NonStop Kernel.
19801         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19802         Kernel. Handle this flavor.
19803         * tests/test-set-mode-acl.sh: Likewise.
19804         * tests/test-copy-acl.sh: Likewise.
19805         * tests/test-copy-file.sh: Likewise.
19806
19807 2010-10-03  Bruno Haible  <bruno@clisp.org>
19808
19809         Info about ACLs on NonStop Kernel.
19810         * doc/acl-resources.txt: Add info about NonStop Kernel.
19811         References by Joachim Schmitz <schmitz@hp.com>.
19812
19813 2010-10-02  Bruno Haible  <bruno@clisp.org>
19814
19815         Define missing EDQUOT on NonStop Kernel.
19816         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19817         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19818         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19819         missing.
19820         * doc/posix-headers/errno.texi: Mention the NSK bug.
19821         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19822         Reported by Joachim Schmitz <schmitz@hp.com>.
19823
19824 2010-10-02  Bruno Haible  <bruno@clisp.org>
19825
19826         Update doc for POSIX:2008.
19827         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19828         Update URL of POSIX specification.
19829
19830 2010-10-02  Bruno Haible  <bruno@clisp.org>
19831
19832         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19833         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19834         from gnulib, not from Automake.
19835
19836 2010-10-02  Bruno Haible  <bruno@clisp.org>
19837
19838         New module 'system-posix'.
19839         * modules/system-posix: New file.
19840         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19841         module is present.
19842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19843         GNULIB_SYSTEM_POSIX.
19844         * modules/stdlib (Depends-on): Remove sys_wait.
19845         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19846         * doc/posix-functions/system.texi: Mention the new module.
19847         * doc/posix-headers/stdlib.texi: Likewise.
19848         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19849         define test_sys_wait_macros to a no-op.
19850         Reported by Sam Steingold <sds@gnu.org>.
19851
19852 2010-09-30  Bruno Haible  <bruno@clisp.org>
19853
19854         More renaming from 'getdate' to 'get_date'.
19855         * doc/get_date.texi: Renamed from doc/getdate.texi.
19856         * modules/get_date (Files): Update.
19857         * MODULES.html.sh (Date and time <time.h>): Update.
19858         * DEPENDENCIES: Update.
19859         * gnulib-tool: Update comment.
19860         * m4/bison.m4 (gl_BISON): Likewise.
19861         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19862
19863 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19864
19865         bootstrap: support ACLOCAL_FLAGS during aclocal
19866         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19867         can add additional -I dir for third-party .m4 files.
19868
19869 2010-09-30  Eric Blake  <eblake@redhat.com>
19870
19871         bootstrap: use glibtoolize on MacOS
19872         * build-aux/bootstrap (check_versions): Convert libtool into
19873         libtoolize.
19874         (tool search): Move libtool check earlier, and look for
19875         glibtoolize for MacOS.
19876         (gnulib_tool_options): Auto-add --libtool when appropriate.
19877         Reported by Justin Clift.
19878
19879         poll: fix typo that broke test on MacOS
19880         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19881         Reported by Justin Clift.
19882
19883         getdate: rename to get_date
19884         Note: getdate.h is not renamed, to minimize client impact.
19885         * modules/getdate: Mark obsolete.  Move old contents...
19886         * modules/get_date: ...to new module name.
19887         * modules/getdate-tests: Move...
19888         * modules/get_date-tests: ...here.
19889         * m4/getdate.m4: Move...
19890         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19891         * lib/getdate.y: Move...
19892         * lib/get_date.y: ...here.
19893         * tests/test-getdate.c: Move...
19894         * tests/test-get_date.c: ...here.
19895         * doc/posix-functions/getdate.texi (getdate): Update name.
19896         * NEWS: Mention the change.
19897
19898 2010-09-29  Bruno Haible  <bruno@clisp.org>
19899
19900         Separate the module 'waitpid' from the module 'sys_wait'.
19901         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19902         present.
19903         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19904         gl_MODULE_INDICATOR_FOR_TESTS.
19905         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19906         * modules/sys_wait (Depends-on): Remove waitpid.
19907         (Makefile.am): Substitute GNULIB_WAITPID.
19908         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19909         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19910         signature only if the 'waitpid' module is present.
19911         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19912         * NEWS: Mention the change.
19913         * modules/grantpt (Depends-on): Add waitpid.
19914         * modules/wait-process (Depends-on): Likewise.
19915
19916 2010-09-29  Bruno Haible  <bruno@clisp.org>
19917
19918         More tests for module 'sys_wait'.
19919         * modules/sys_wait-c++-tests: New file.
19920         * tests/test-sys_wait-c++.cc: New file.
19921         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19922         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19923
19924 2010-09-29  Bruno Haible  <bruno@clisp.org>
19925
19926         New module 'waitpid'.
19927         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19928         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19929         Don't include <process.h>.
19930         (waitpid): Declare only, using modern idiom.
19931         * m4/waitpid.m4: New file.
19932         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19933         * modules/waitpid: New file.
19934         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19935         (Makefile.am): Update.
19936         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19937
19938 2010-09-28  Bruno Haible  <bruno@clisp.org>
19939
19940         poll: Assume ANSI C.
19941         * lib/poll.c (poll): Use an ANSI C declaration.
19942
19943 2010-09-28  Bruno Haible  <bruno@clisp.org>
19944
19945         poll-h: Create poll.h on all platforms.
19946         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19947         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19948         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19949         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19950         (gl_REPLACE_POLL_H): Don't set POLL_H.
19951         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19952         * modules/poll-h (Depends-on): Add include_next.
19953         (Makefile.am): Create poll.h unconditionally. Substitute also
19954         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19955
19956 2010-09-28  Bruno Haible  <bruno@clisp.org>
19957
19958         Tests for module 'poll-h'.
19959         * modules/poll-h-c++-tests: New file.
19960         * tests/test-poll-h-c++.cc: New file.
19961
19962         Tests for module 'poll-h'.
19963         * modules/poll-h-tests: New file.
19964         * tests/test-poll-h.c: New file.
19965
19966 2010-09-28  Bruno Haible  <bruno@clisp.org>
19967
19968         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19969         * modules/poll-h (Depends-on): Add 'extensions'.
19970
19971 2010-09-28  Bruno Haible  <bruno@clisp.org>
19972
19973         New module 'poll-h'.
19974         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19975         (poll): Use modern idiom.
19976         * modules/poll-h: New file.
19977         * modules/poll (Files): Remove lib/poll.in.h.
19978         (Depends-on): Add poll-h.
19979         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19980         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19981         * m4/poll_h.m4: New file.
19982         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19983         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19984         and invoke gl_REPLACE_POLL_H.
19985         * lib/poll.c: Use common idiom.
19986         * tests/test-poll.c: Likewise.
19987         * doc/posix-headers/poll.texi: Mention the poll-h module.
19988         Suggested by Eric Blake.
19989
19990 2010-09-26  Bruno Haible  <bruno@clisp.org>
19991
19992         sys_wait: Implement WSTOPSIG.
19993         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19994         Reported by Simon Josefsson.
19995
19996 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19997
19998         stdlib, sys_wait: Avoid compilation error on mingw.
19999         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20000
20001 2010-09-26  Bruno Haible  <bruno@clisp.org>
20002
20003         stdlib tests: Avoid code duplication.
20004         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20005         * modules/sys_wait-tests (Files): Likewise.
20006         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20007         * tests/test-stdlib.c: Include test-sys_wait.h.
20008         (main): Invoke test_sys_wait_macros.
20009         * tests/test-sys_wait.c: Include test-sys_wait.h.
20010         (main): Invoke test_sys_wait_macros.
20011
20012 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20013
20014         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20015         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20016         sure Windows sockets are working before calling getaddrinfo.
20017         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20018         * doc/gnulib.texi (Windows sockets): Fix typo.
20019
20020 2010-09-25  Bruno Haible  <bruno@clisp.org>
20021
20022         Tests for module 'regex-quote'.
20023         * modules/regex-quote-tests: New file.
20024         * tests/test-regex-quote.c: New file.
20025
20026         New module 'regex-quote'.
20027         * lib/regex-quote.h: New file.
20028         * lib/regex-quote.c: New file.
20029         * modules/regex-quote: New file.
20030         Suggested by Reuben Thomas <rrt@sc3d.org>.
20031
20032 2010-09-24  Bruno Haible  <bruno@clisp.org>
20033
20034         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20035         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20036
20037 2010-09-23  Bruno Haible  <bruno@clisp.org>
20038
20039         setenv: Relax license.
20040         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20041         Blake.
20042         Requested by Eric Blake.
20043
20044 2010-09-22  Bruno Haible  <bruno@clisp.org>
20045
20046         termios: Relax license.
20047         * modules/termios (License): Change to LGPLv2+.
20048         Requested by Eric Blake.
20049
20050 2010-09-22  Bruno Haible  <bruno@clisp.org>
20051
20052         threadlib: Allow the package to change the default to 'no'.
20053         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20054         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20055         Reported by Paul Eggert.
20056
20057 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20058             Bruno Haible  <bruno@clisp.org>
20059
20060         Fix endless loop in mbmemcasecoll.
20061         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20062         byte.
20063         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20064
20065 2010-09-22  Bruno Haible  <bruno@clisp.org>
20066
20067         Tests for module 'memcoll'.
20068         * modules/memcoll-tests: New file.
20069         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20070
20071         memcoll, xmemcoll: Clarify size vs. length.
20072         * modules/memcoll.c (memcoll0): Clarify specification.
20073         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20074         passed to collate_error.
20075
20076 2010-09-22  Bruno Haible  <bruno@clisp.org>
20077
20078         Tests for module 'memcasecmp'.
20079         * modules/memcasecmp-tests: New file.
20080         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20081
20082 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20083
20084         * lib/pthread.in.h: Add split double-inclusion guard, and include
20085         system <pthread.h> if there is one.  Use @@-style as in other
20086         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20087         pthread.h doesn't.
20088         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20089         (pthread_mutexattr_settype, pthread_mutex_trylock):
20090         New static inline functions, if there's no system <pthread.h>.
20091         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20092         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20093         Approximate with mutexes if the system lacks spinlocks, as in
20094         MacOS.
20095         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20096         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20097         @@-style.  Check for spinlocks separately.
20098         (gl_PTHREAD_DEFAULTS): New macro.
20099         * modules/pthread: Redo to use a more typical style for in.h files.
20100
20101 2010-09-21  Eric Blake  <eblake@redhat.com>
20102
20103         net_if: enhance tests
20104         * tests/test-net_if.c (main): Move signature checks earlier.
20105         Print failures to stderr.
20106         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20107         Document the bug that we do not yet fix.
20108
20109 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20110
20111         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20112         about gnulib, not GSS.
20113
20114 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20115
20116         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20117         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20118         for Emacs.
20119         * build-aux/pmccabe2html: Make Makefile.am example code more
20120         cut-and-paste friendly.
20121
20122 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20123
20124         * tests/test-net_if.c: New file.
20125         * modules/net_if-tests: New file.
20126
20127 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20128
20129         pthread: add pthread_spin_destroy
20130         * lib/pthread.in.h (pthread_spin_destroy): New function.
20131
20132 2010-09-19  Bruno Haible  <bruno@clisp.org>
20133
20134         gnulib-tool: Fix --help output.
20135         * gnulib-tool (func_usage): Fix help message.
20136         Reported by Reuben Thomas <rrt@sc3d.org>.
20137
20138 2010-09-18  Jim Meyering  <meyering@redhat.com>
20139
20140         maint.mk: avoid unexpanded \n in two diagnostics
20141         * top/maint.mk (sc_prohibit_always_true_header_tests):
20142         Don't use a literal \n in a halt=... assignment.  It would not be
20143         expanded, and the two \n bytes would appear in the diagnostic output
20144         rather than the desired newline.  Use halt=$$(printf ... instead.
20145         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20146
20147 2010-09-18  Bruno Haible  <bruno@clisp.org>
20148
20149         netinet_in: Doc tweak.
20150         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20151         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20152
20153 2010-09-18  Jim Meyering  <meyering@redhat.com>
20154
20155         init.sh: correct an outdated comment
20156         * tests/init.sh (create_exe_shims_):  s/function/alias/
20157
20158         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20159         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20160         a file named "*.exe" is removed between the glob expansion and the
20161         processing of that oddly named file.
20162
20163 2010-09-17  Eric Blake  <eblake@redhat.com>
20164
20165         mirbsd: add some more support
20166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20167         in BSD family.
20168         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20169         devices as OpenBSD.
20170         * m4/host-os.m4 (mirbsd): Add MirBSD.
20171
20172         tests: fix unportable assumption on sys/wait.h
20173         * tests/test-sys_wait.c (main): Relax test.
20174         * tests/test-stdlib.c (main): Likewise.
20175
20176         init.sh: accomodate directory with no .exes
20177         * tests/init.sh: Accomodate directory containing only scripts.
20178
20179         tests: avoid compiler warning
20180         * tests/test-stdlib.c (main): Use the variable.
20181
20182         fdutimens, fdutimensat: update signature, again
20183         * lib/utimens.h (gl_futimens): Delete, and move signature...
20184         (fdutimens): ...here.
20185         (fdutimensat): Rearrange signature.
20186         (lutimensat): Rename variable for clarity.
20187         * lib/fdutimensat.c (fdutimensat): Update signature.
20188         * lib/utimens.c (fdutimens): Likewise.
20189         (gl_futimens): Delete.
20190         (utimens, lutimens): Update callers.
20191         * lib/futimens.c (futimens): Likewise.
20192         * tests/test-fdutimensat.c: Likewise.
20193         * tests/test-utimens.c: Likewise.
20194         * tests/test-futimens.h: Update comment.
20195         * NEWS: Mention this.
20196         Suggested by Paul Eggert.
20197
20198 2010-09-17  Bruno Haible  <bruno@clisp.org>
20199
20200         Take over the maintenance of some older macros from Autoconf.
20201         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20202         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20203         GNU Autoconf.
20204         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20205         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20206
20207 2010-09-17  Eric Blake  <eblake@redhat.com>
20208
20209         fdutimensat: drop atflag validation
20210         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20211         with valid fd, to close a race scenario where futimens is
20212         unsupported and FILE was replaced by a symlink.
20213         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20214         accordingly.
20215         Suggested by Paul Eggert.
20216
20217 2010-09-16  Bruno Haible  <bruno@clisp.org>
20218
20219         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20220         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20221
20222 2010-09-16  Bruno Haible  <bruno@clisp.org>
20223
20224         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20225         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20226         login_tty exists.
20227         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20228
20229 2010-09-16  Bruno Haible  <bruno@clisp.org>
20230
20231         login_tty: Make the replacement code work on BSD systems.
20232         * lib/login_tty.c: Include <sys/ioctl.h>.
20233         (login_tty): Use ioctl TIOCSCTTY when available.
20234         * modules/login_tty (Depends-on): Add sys_ioctl.
20235         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20236
20237 2010-09-16  Bruno Haible  <bruno@clisp.org>
20238
20239         login_tty: Stricter unit test.
20240         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20241         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20242         and tcgetsid() after login_tty.
20243         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20244
20245 2010-09-16  Bruno Haible  <bruno@clisp.org>
20246
20247         New module 'tcgetsid'.
20248         * lib/tcgetsid.c: New file.
20249         * m4/tcgetsid.m4: New file.
20250         * modules/tcgetsid: New file.
20251         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20252         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20253         GNULIB_TCGETSID, HAVE_TCGETSID.
20254         * lib/termios.in.h: Include <sys/types.h>.
20255         (tcgetsid): New declaration.
20256         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20257         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20258         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20259         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20260
20261 2010-09-16  Bruno Haible  <bruno@clisp.org>
20262
20263         Tests for module 'termios'.
20264         * modules/termios-c++-tests: New file.
20265         * modules/termios-tests: New file.
20266         * tests/test-termios-c++.cc: New file.
20267         * tests/test-termios.c: New file.
20268
20269         New module 'termios'.
20270         * modules/termios: New file.
20271         * lib/termios.in.h: New file.
20272         * m4/termios_h.m4: New file.
20273         * doc/posix-headers/termios.texi: Mention the new module.
20274
20275 2010-09-16  Eric Blake  <eblake@redhat.com>
20276
20277         fdutimensat: add an atflag parameter
20278         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20279         * lib/utimens.h (fdutimensat): Update prototype.
20280         * tests/test-fdutimensat.c: Adjust test to match.
20281         * NEWS: Document the change.
20282         Suggested by Paul Eggert.
20283
20284 2010-09-16  Bruno Haible  <bruno@clisp.org>
20285
20286         Fix typos in comments.
20287         * lib/striconveh.h: Fix typo in comment.
20288         * lib/login_tty.c (login_tty): Likewise.
20289
20290 2010-09-15  Bruno Haible  <bruno@clisp.org>
20291
20292         stdlib: clarify MirBSD WEXITSTATUS bug
20293         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20294         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20295
20296 2010-09-15  Eric Blake  <eblake@redhat.com>
20297
20298         stdlib: work around MirBSD WEXITSTATUS bug
20299         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20300         * modules/stdlib (Depends-on): Add sys_wait.
20301         * tests/test-sys_wait.c (main): Enhance test.
20302         * tests/test-stdlib.c (main): Likewise.
20303         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20304
20305         docs: mention MacOS issue with WEXITSTATUS(constant)
20306         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20307         issue.
20308         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20309
20310         strnlen: add tests
20311         * modules/strnlen-tests: New file.
20312         * tests/test-strnlen.c: Likewise.
20313
20314 2010-09-14  Bruno Haible  <bruno@clisp.org>
20315
20316         unistr/base: Avoid link errors when module 'libunistring' is also used.
20317         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20318         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20319         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20320         Declare also when HAVE_LIBUNISTRING is set.
20321         Reported by Pádraig Brady <P@draigbrady.com>.
20322
20323 2010-09-14  Eric Blake  <eblake@redhat.com>
20324
20325         test-rawmemchr: make more robust
20326         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20327         (Depends-on, configure.ac): Add needed prerequisites to use it.
20328         * modules/memchr-tests (Files, Depends-on, configure.ac):
20329         Likewise, to avoid implicit reliance on memchr module prereqs.
20330         * tests/test-memchr.c (main): Ensure proper masking.
20331         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20332         reads.
20333
20334         memchr: detect glibc Alpha bug
20335         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20336         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20337         Alpha.
20338         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20339         * tests/test-memchr.c (main): Enhance test.
20340         Reported by Nelson H. F. Beebe.
20341
20342 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20343
20344         fts, getcwd, glob: audit for dirfd returning -1
20345         * lib/fts.c (opendir): Remove #define; no longer used.
20346         (opendirat): New arg PDIR_FD.  All callers changed.
20347         (fts_build, _opendir2): Use new opendirat to avoid the need for
20348         dirfd, or for checking whether dirfd returns a negative value.
20349         Don't use opendir; always use openat followed by fdopendir.
20350         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20351         it.
20352         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20353         returns -1 here.
20354         * modules/fts (Depends-on): Remove dirfd.
20355         * modules/getcwd (Depends-on): Likewise.
20356
20357 2010-09-13  Eric Blake  <eblake@redhat.com>
20358
20359         float: fix broken MirBSD header
20360         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20361         * doc/posix-headers/float.texi (float.h): Document it.
20362
20363 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20364
20365         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20366         * lib/fts.c (opendirat): New arg extra_flags.
20367         (__opendir2): Use it to avoid following symlinks when opening
20368         a directory, if symlinks are not supposed to be followed.  See
20369         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20370
20371         fdopendir: preserve argument fd before returning
20372         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20373         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20374         (fdopendir): Use them, arranging for FD to be open to the same
20375         directory that it was when it started.  (It might be temporarily
20376         closed while fdopendir is running, so this not thread- or
20377         signal-safe.)  Be careful to do the right thing even when file
20378         descriptors are scarce and dup fails with errno == EMFILE.  See
20379         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20380
20381 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20382
20383         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20384         * NEWS: Document change.
20385         * m4/regex.m4: Disable test for regoff_t size.
20386
20387 2010-09-13  Jim Meyering  <meyering@redhat.com>
20388
20389         fts: don't operate on an invalid file descriptor after failed dup
20390         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20391         negative file descriptor.
20392
20393 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20394
20395         savedir: add streamsavedir, deprecate fdsavedir
20396         * NEWS: Mention deprecation of fdsavedir.
20397         * lib/savedir.c (streamsavedir): New extern function, whose name
20398         ends in "savedir" to be consistent with the others.  This differs
20399         from savedirstream in that it doesn't close its argument.  The
20400         next version of GNU tar will use this instead of fdsavedir, to
20401         avoid some race conditions and conserve file descriptors.
20402         (savedirstream): Reimplement as a wrapper around streamsavedir.
20403         (fdsavedir): Add a comment deprecating this function.  As far as
20404         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20405         * lib/savedir.h (streamsavedir): New decl.
20406         (fdsavedir): Add a comment deprecating this.
20407
20408 2010-09-10  Bruno Haible  <bruno@clisp.org>
20409
20410         langinfo: Fix last commit.
20411         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20412         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20413         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20414
20415 2010-09-10  Bruno Haible  <bruno@clisp.org>
20416
20417         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20418         * lib/progreloc.c (O_EXEC): Define fallback.
20419
20420 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20421
20422         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20423         * NEWS: Document recent changes to fcntl-h.
20424         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20425         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20426         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20427         Similarly for O_SEARCH; this last was already true, but not documented.
20428         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20429         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20430         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20431         Likewise.
20432         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20433         is zero, not whether it is defined.
20434         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20435         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20436         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20437
20438 2010-09-10  Bruno Haible  <bruno@clisp.org>
20439
20440         langinfo, nl_langinfo: Fix for IRIX 5.3.
20441         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20442         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20443         HAVE_LANGINFO_YESEXPR.
20444         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20445         HAVE_LANGINFO_YESEXPR.
20446         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20447         HAVE_LANGINFO_T_FMT_AMPM is 0.
20448         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20449         HAVE_LANGINFO_YESEXPR is 0.
20450         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20451         NOEXPR.
20452         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20453         * doc/posix-functions/nl_langinfo.texi: Likewise.
20454         Reported by Eric Blake.
20455
20456 2010-09-10  Bruno Haible  <bruno@clisp.org>
20457
20458         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20459         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20460         on FreeBSD 8.0 and OpenBSD 4.6.
20461         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20462         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20463         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20464         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20465         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20466         ac_includes_default.
20467         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20468
20469 2010-09-09  Eric Blake  <eblake@redhat.com>
20470
20471         strsignal: work around NetBSD bug
20472         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20473         * lib/string.in.h (includes): Likewise.
20474         * doc/posix-functions/strsignal.texi (strsignal): Document the
20475         bug.
20476         Reported by Nelson H. F. Beebe.
20477
20478         gnulib-tool: work with NetBSD /bin/sh
20479         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20480         (func_get_description, func_get_comment, func_get_status)
20481         (func_get_notice, func_get_applicability, func_get_filelist)
20482         (func_get_dependencies, func_get_autoconf_early_snippet)
20483         (func_get_autoconf_snippet, func_get_automake_snippet)
20484         (func_get_include_directive, func_get_link_directive)
20485         (func_get_license, func_get_maintainer, func_import): Avoid
20486         shell syntax errors from parsing syntax extensions.
20487
20488 2010-09-09  Bruno Haible  <bruno@clisp.org>
20489
20490         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20491         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20492         a reliable way to determine whether the 'alias' command works.
20493
20494 2010-09-08  Jim Meyering  <meyering@redhat.com>
20495
20496         init.sh: penalize a set-x-impaired shell; don't disqualify it
20497         * tests/init.sh: Too many shells corrupt application stderr when
20498         you set -x, so we can't afford to disqualify them, since at least
20499         on Irix-6.5, that would disqualify all bourne shells.
20500         Instead, use a two-pass approach.
20501         On the first pass, try to find a shell that meets the stricter
20502         condition that set -x does not corrupt stderr.
20503         If no shell meets the stricter condition, retest each candidate
20504         shell, but without that extra condition.  Finally, when
20505         VERBOSE=yes is requested and set -x might cause trouble, simply
20506         issue a warning and refrain from enabling debug output.
20507
20508 2010-09-08  Eric Blake  <eblake@redhat.com>
20509
20510         unsetenv: fix OpenBSD bug
20511         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20512         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20513         documentation.
20514         Reported by Jim Meyering.
20515
20516         strtod: work around IRIX 6.5 bug
20517         * lib/strtod.c (strtod): Reparse number on shorter string if
20518         exponent parse was invalid.
20519         * tests/test-strtod.c (main): Add check for "0x1p 2".
20520         Reported by Tom G. Christensen.
20521
20522         getopt: optimize previous patch
20523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20524         empty variable.  Speed up awk script.
20525         Reported by Paolo Bonzini.
20526
20527 2010-09-08  Jim Meyering  <meyering@redhat.com>
20528
20529         test.sh: disqualify shells for which set -x corrupts stderr
20530         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20531         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20532         appear in stderr output.  For example, this command:
20533             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20534         prints "P=1" on those two systems:
20535
20536 2010-09-08  Bruno Haible  <bruno@clisp.org>
20537
20538         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20539         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20540         commands, because some shells ignore redirections when there is an
20541         error in the command lookup.
20542         Reported by Eric Blake.
20543
20544 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20545
20546         * lib/regex.h: Fix a mention of `regex_compile' (should be
20547         `re_compile_pattern').
20548         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20549         (re_set_registers): Correct name of parameter in comment.
20550
20551         * doc/regex.texi: Add documentation for missing syntax flags.
20552         Remove commented-out documentation of defunct syntax option
20553         RE_NO_EMPTY_ALTS.
20554         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20555         Add documentation of re_set_registers.
20556         Document trick to re-use a pattern buffer by setting fastmap manually.
20557         Update documentation of struct re_pattern_buffer per public members.
20558         Uncomment documentation of equivalence class operators and
20559         collating symbol operators, since they are now implemented,
20560         Explain leftmost-longest matching in relation to alternatives.
20561         Tidy documentation of substring matching.
20562         Remove POSIX documentation, which is done better in
20563         glibc, and refer the reader there. Keep BSD API documentation, as
20564         that is not readily available elsewhere.
20565
20566 2010-09-07  Eric Blake  <eblake@redhat.com>
20567
20568         getopt: handle POSIXLY_CORRECT set but not exported
20569         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20570         export state of POSIXLY_CORRECT, due to bash set -o posix.
20571         Reported by Dustin J. Mitchell.
20572
20573 2010-09-05  Bruno Haible  <bruno@clisp.org>
20574
20575         gnulib-tool: Highlight the changed options.
20576         * gnulib-tool (func_usage): Display the --import, --add-import,
20577         --remove-import explanations in bold font.
20578
20579 2010-09-06  Karl Berry  <karl@gnu.org>
20580
20581         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20582
20583 2010-09-05  Bruno Haible  <bruno@clisp.org>
20584
20585         uniwidth/width: Update comment.
20586         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20587         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20588
20589 2010-09-05  Bruno Haible  <bruno@clisp.org>
20590
20591         isinf, isnan: Relax license.
20592         * modules/isinf (License): Change from GPL to LGPL, with consent from
20593         Ben Pfaff.
20594         * modules/isnan (License): Likewise.
20595         Requested by Ludovic Courtès.
20596
20597 2010-09-04  Bruno Haible  <bruno@clisp.org>
20598
20599         gnulib-tool: Help migration from --import to --add-import or --update.
20600         * gnulib-tool: Emit a verbose error message when --import is used
20601         without any module name.
20602
20603 2010-09-04  Bruno Haible  <bruno@clisp.org>
20604
20605         Update doc about gnulib-tool.
20606         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20607         'gnulib-tool --update' in more detail.
20608         Reported by Eric Blake.
20609
20610 2010-09-04  Bruno Haible  <bruno@clisp.org>
20611
20612         gnulib-tool: Change --import. New options --add/remove-import.
20613         * gnulib-tool: New options --add-import, --remove-import.
20614         (func_usage): Document them.
20615         (have_associative): Define always.
20616         (func_import): In import mode, don't merge the specified settings with
20617         the cached settings. Implement remove-import mode.
20618         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20619         Explain when to use them versus --import.
20620         (Simple update): Use --add-import instead of --import.
20621         * NEWS: Mention the change.
20622
20623 2010-09-04  Bruno Haible  <bruno@clisp.org>
20624
20625         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20626         separate gnulib.mk.
20627
20628 2010-09-04  Bruno Haible  <bruno@clisp.org>
20629
20630         gnulib-tool: Don't talk about CVS any more.
20631         * gnulib-tool (func_usage, func_import): Write "version control"
20632         instead of CVS.
20633
20634 2010-09-04  Jim Meyering  <meyering@redhat.com>
20635
20636         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20637         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20638         false positives (whose names may be ill-chosen) when searching
20639         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20640         would cause a false-positive.
20641
20642         avoid coreutils "make distcheck" failure
20643         Coreutils tests with an absolute build directory name that contains
20644         a space.  Not quoting this directory name caused a failure.
20645         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20646         * tests/test-vc-list-files-cvs.sh: Likewise.
20647
20648 2010-09-04  Bruno Haible  <bruno@clisp.org>
20649
20650         gnulib-tool: Avoid error when run in a package without Makefile.am.
20651         * gnulib-tool: When collecting the m4dirs in a package that does not
20652         have a Makefile.am, eliminate those directories that contain no
20653         gnulib-cache.m4. Fix expression that counts these directories.
20654
20655 2010-09-04  Bruno Haible  <bruno@clisp.org>
20656
20657         update-copyright test: Improve output when perl is missing or too old.
20658         * tests/test-update-copyright.sh: Move test of Perl version down after
20659         the test whether Perl exists. Provide an explanation relating Perl's
20660         error message to Automake's SKIP: message.
20661
20662 2010-09-04  Bruno Haible  <bruno@clisp.org>
20663
20664         Don't augment PATH in TESTS_ENVIRONMENT.
20665         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20666         set abs_aux_dir instead of augmenting PATH.
20667         * modules/vc-list-files-tests (Makefile.am): Likewise.
20668         * tests/test-update-copyright.sh: Augment PATH here.
20669         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20670         path_prepend_.
20671         * tests/test-vc-list-files-git.sh: Likewise.
20672
20673 2010-09-04  Jim Meyering  <meyering@redhat.com>
20674
20675         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20676         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20677
20678 2010-09-04  Bruno Haible  <bruno@clisp.org>
20679
20680         strdup: Fix compilation error in C++ mode.
20681         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20682         the macro.
20683
20684 2010-09-04  Bruno Haible  <bruno@clisp.org>
20685
20686         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20687         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20688         macro into a function.
20689         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20690
20691 2010-09-04  Bruno Haible  <bruno@clisp.org>
20692
20693         Set PATH_SEPARATOR the same way autoconf does.
20694         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20695         the value of PATH_SEPARATOR the same way autoconf-generated configure
20696         scripts do.
20697         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20698         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20699
20700 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20701
20702         Set PATH_SEPARATOR the same way autoconf does.
20703         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20704         the same way autoconf-generated configure scripts do.
20705         * posix-modules: Likewise.
20706
20707 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20708
20709         hash: fix safe_hasher const typo
20710         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20711         const; otherwise, there is a type error later.
20712
20713 2010-09-02  Jim Meyering  <meyering@redhat.com>
20714
20715         test-update-copyright.sh: require perl 5.8.0
20716         * tests/test-update-copyright.sh: Require 5.8.0,
20717         which Tom G. Christensen has confirmed is adequate,
20718         while 5.6.1 is not.
20719
20720 2010-09-02  Eric Blake  <eblake@redhat.com>
20721
20722         tests: init.sh improvements for re-exec'ing with zsh
20723         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20724         -vx through shell re-exec.
20725         Reported by Tom G. Christensen.
20726
20727         wctype: fix typo in previous commit
20728         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20729         Reported by Ludovic Courtès.
20730
20731 2010-09-02  Jim Meyering  <meyering@redhat.com>
20732
20733         test-update-copyright.sh: skip test if Perl is too old
20734         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20735         Reported by Tom G. Christensen.
20736
20737 2010-09-02  Bruno Haible  <bruno@clisp.org>
20738
20739         wctype: Avoid compilation error on IRIX 6.5.30.
20740         * lib/wctype.in.h (iswblank): Declare with a replacement if
20741         REPLACE_ISWBLANK is set.
20742         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20743         declared. Set REPLACE_ISWBLANK.
20744         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20745         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20746         * doc/posix-headers/wctype.texi: Likewise.
20747         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20748
20749 2010-09-01  Bruno Haible  <bruno@clisp.org>
20750
20751         New module 'socketlib'.
20752         * modules/socketlib: New file.
20753         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20754         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20755         * modules/sockets (Depends-on): Add socketlib.
20756         Suggested by Sam Steingold <sds@gnu.org>.
20757
20758 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20759
20760         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20761
20762         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20763         when one needs search access to a directory but not read access.
20764         On systems where it is available, it works in some cases where
20765         O_RDONLY does not, namely on directories that are searchable but
20766         not readable, and which need only to be searchable.  If O_SEARCH
20767         is not available, fall back to the traditional method of using
20768         O_RDONLY.
20769
20770         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20771         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20772         when opening a directory that needs only to be searchable.
20773         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20774         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20775         * lib/openat-proc.c (openat_proc_name): Likewise.
20776         * lib/openat.c (openat_needs_fchdir): Likewise.
20777         * lib/save-cwd.c (save_cwd): Likewise.
20778         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20779
20780 2010-08-28  Bruno Haible  <bruno@clisp.org>
20781
20782         New module 'host-cpu-c-abi'.
20783         * modules/host-cpu-c-abi: New file.
20784         * m4/host-cpu-c-abi.m4: New file, based on part of
20785         clisp/src/m4/general.m4.
20786         Requested by Sam Steingold <sds@gnu.org>.
20787
20788 2010-08-31  Eric Blake  <eblake@redhat.com>
20789         and Jim Meyering  <meyering@redhat.com>
20790
20791         hash: factor, and guard against misbehaving hasher function
20792         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20793         of table->hasher's return value.  Also protect against a hash value
20794         so large that adding it to table->bucket results in a NULL pointer.
20795         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20796         Use it in place of open-coded check-and-abort.
20797
20798 2010-08-30  Bruno Haible  <bruno@clisp.org>
20799
20800         hash: silence spurious clang warning
20801         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20802         Reported by Eric Blake.
20803
20804 2010-08-30  Eric Blake  <eblake@redhat.com>
20805
20806         strstr, memmem, strcasestr: avoid leaked shell message
20807         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20808         FreeBSD.
20809         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20810         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20811
20812         tests: silence clang warning
20813         * tests/test-malloca.c (do_allocation): Avoid dead store.
20814
20815 2010-08-29  Bruno Haible  <bruno@clisp.org>
20816
20817         gettext: Fix recent mistake.
20818         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20819
20820 2010-08-29  Bruno Haible  <bruno@clisp.org>
20821
20822         selinux-h: Offer a --without-selinux option.
20823         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20824         --without-selinux was specified, skip all tests and define
20825         HAVE_SELINUX_SELINUX_H to 0.
20826         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20827         set LIB_SELINUX to empty.
20828         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20829         gl_LIBSELINUX. If --without-selinux was specified, replace
20830         selinux/context.h.
20831         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20832
20833 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20834             Bruno Haible  <bruno@clisp.org>
20835
20836         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20837         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20838         of HAVE_REALLOC.
20839         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20840         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20841         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20842         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20843
20844 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20845             Bruno Haible  <bruno@clisp.org>
20846
20847         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20848         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20849         HAVE_CALLOC.
20850         * lib/xmalloc.c: Update accordingly.
20851         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20852         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20853         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20854
20855 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20856             Bruno Haible  <bruno@clisp.org>
20857
20858         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20859         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20860         HAVE_MALLOC.
20861         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20862         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20863         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20864
20865 2010-08-29  Bruno Haible  <bruno@clisp.org>
20866
20867         Update modules list.
20868         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20869         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20870         (String handling <string.h>): Add astrxfrm.
20871         (File system functions): Add readlinkat.
20872
20873 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20874
20875         Tests for module 'realloc-gnu'.
20876         * modules/realloc-gnu-tests: New file.
20877         * tests/test-realloc-gnu.c: New file.
20878
20879         Tests for module 'calloc-gnu'.
20880         * modules/calloc-gnu-tests: New file.
20881         * tests/test-calloc-gnu.c: New file.
20882
20883         Tests for module 'malloc-gnu'.
20884         * modules/malloc-gnu-tests: New file.
20885         * tests/test-malloc-gnu.c: New file.
20886
20887 2010-08-28  Bruno Haible  <bruno@clisp.org>
20888
20889         Rename module 'realloc' -> 'realloc-gnu'.
20890         * modules/realloc-gnu: New file, copied from modules/realloc.
20891         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20892         obsolete.
20893         * modules/mgetgroups (Depends-on): Update.
20894         * doc/posix-functions/realloc.texi: Update.
20895         * NEWS: Mention the change.
20896
20897         Rename module 'calloc' -> 'calloc-gnu'.
20898         * modules/calloc-gnu: New file, copied from modules/calloc.
20899         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20900         obsolete.
20901         * doc/posix-functions/calloc.texi: Update.
20902         * NEWS: Mention the change.
20903
20904         Rename module 'malloc' -> 'malloc-gnu'.
20905         * modules/malloc-gnu: New file, copied from modules/malloc.
20906         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20907         obsolete.
20908         * modules/argp (Depends-on): Update.
20909         * modules/regex (Depends-on): Update.
20910         * doc/posix-functions/malloc.texi: Update.
20911         * NEWS: Mention the change.
20912
20913 2010-08-28  Eric Blake  <eblake@redhat.com>
20914
20915         pread, pwrite: add missing dependency
20916         * modules/pread (Depends-on): Add extensions.
20917         * modules/pwrite (Depends-on): Likewise.
20918
20919 2010-08-28  Bruno Haible  <bruno@clisp.org>
20920
20921         unistr/u*-strchr: Fix tests dependencies.
20922         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20923         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20924         Reported by Ian Beckwith <ianb@erislabs.net>.
20925
20926 2010-08-28  Bruno Haible  <bruno@clisp.org>
20927
20928         read-file: Don't occupy too much unused memory.
20929         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20930
20931 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20932             Eric Blake  <eblake@redhat.com>
20933             Bruno Haible  <bruno@clisp.org>
20934
20935         read-file: Avoid memory reallocations with regular files.
20936         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20937         (fread_file): With regular files, use the remaining length as the
20938         initial buffer size.  Check against overflow.
20939         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20940         sys_stat.
20941
20942 2010-08-28  Bruno Haible  <bruno@clisp.org>
20943
20944         ftello: Relax license.
20945         * modules/ftello (License): Relax to LGPLv2+.
20946         Reported by Eric Blake.
20947
20948 2010-08-28  Bruno Haible  <bruno@clisp.org>
20949
20950         Avoid relocwrapper link errors due to gnulib replacement functions.
20951         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20952         function.
20953         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20954
20955 2010-08-28  Bruno Haible  <bruno@clisp.org>
20956
20957         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20958         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20959         defined.
20960         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20961         Suggested by Eric Blake.
20962
20963 2010-08-28  Bruno Haible  <bruno@clisp.org>
20964
20965         sys_socket, netdb: Ensure socklen_t gets defined.
20966         * modules/sys_socket (Depends-on): Add socklen.
20967         * modules/netdb (Depends-on): Likewise.
20968         * modules/getaddrinfo (Depends-on): Remove socklen.
20969         * modules/getsockopt (Depends-on): Likewise.
20970         * modules/setsockopt (Depends-on): Likewise.
20971         * tests/test-sys_socket.c: Check that socklen_t is defined.
20972         * tests/test-netdb.c: Likewise.
20973         * m4/socklen.m4: Update comments.
20974         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20975
20976 2010-08-27  Eric Blake  <eblake@redhat.com>
20977
20978         login_tty: add missing dependency
20979         * modules/login_tty (Depends-on): Add pty.
20980
20981 2010-08-26  Eric Blake  <eblake@redhat.com>
20982
20983         lib-symbol-versions: fix m4 quoting
20984         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20985         format for AC_LINK_IFELSE.
20986
20987         glob: fix compile test
20988         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20989
20990         btowc: fix missing file
20991         * modules/btowc (Files): Also ship locale-fr.m4.
20992
20993         lseek: fix link test
20994         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20995         AC_LINK_IFELSE.
20996
20997         include_next: silence autoconf 2.68 warning
20998         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20999         AC_COMPILE_IFELSE as special.
21000         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21001         autoconf < 2.68.
21002
21003         acl: fix compilation test
21004         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21005         AC_COMPILE_IFELSE.
21006
21007 2010-08-26  Bruno Haible  <bruno@clisp.org>
21008
21009         Modernize AC_TRY_RUN invocations.
21010         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21011         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21012         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21013         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21014         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21015         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21016         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21017         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21018         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21019         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21020         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21021         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21022         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21023         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21024         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21025         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21026         gl_MBRLEN_NUL_RETVAL): Likewise.
21027         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21028         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21029         Likewise.
21030         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21031         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21032         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21033         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21034         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21035         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21036         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21037         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21038         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21039         Likewise.
21040         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21041         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21042         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21043         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21044         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21045         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21046         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21047         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21048         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21050
21051 2010-08-26  Bruno Haible  <bruno@clisp.org>
21052
21053         Modernize AC_TRY_LINK invocations.
21054         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21055         AC_TRY_LINK.
21056         * m4/argp.m4 (gl_ARGP): Likewise.
21057         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21058         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21059         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21060         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21061         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21062         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21063         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21064         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21065         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21066         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21067         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21068         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21069         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21070         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21071         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21072         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21073         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21074         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21075         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21076         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21077         Likewise.
21078         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21079         Likewise.
21080         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21081         Likewise.
21082         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21083         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21084         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21085         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21086         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21087         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21088         * m4/servent.m4 (gl_SERVENT): Likewise.
21089         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21090         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21091         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21092         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21093         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21094         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21095         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21096         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21097         * modules/tsearch-tests (configure.ac): Likewise.
21098
21099 2010-08-26  Bruno Haible  <bruno@clisp.org>
21100
21101         Modernize AC_TRY_COMPILE invocations.
21102         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21103         AC_TRY_COMPILE.
21104         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21105         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21106         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21107         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21108         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21109         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21110         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21111         * m4/lock.m4 (gl_LOCK): Likewise.
21112         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21113         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21114         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21115         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21116         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21117         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21118         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21119         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21120         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21121         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21122         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21123         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21124         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21125         extraneous semicolon.
21126
21127 2010-08-26  Jim Meyering  <meyering@redhat.com>
21128
21129         stat-time: relax license LGPL
21130         * modules/stat-time (License): Change from GPL to LGPL,
21131         with consent from all contributors, for use in libguile.
21132         Requested by Ludovic Courtès.
21133
21134 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21135
21136         poll: return immediately on POLLHUP.
21137         * lib/poll.c (poll): Always set timeout before wait_timeout is
21138         computed.
21139
21140 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21141
21142         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21143         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21144         rmdir ("dir/.//"), unlinkat.
21145
21146 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21147
21148         stdbool: avoid spurious failure with modern xlc
21149         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21150
21151 2010-08-24  Bruno Haible  <bruno@clisp.org>
21152
21153         getloadavg: simplify code
21154         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21155         gl_have_func. Update comments.
21156
21157 2010-08-24  Eric Blake  <eblake@redhat.com>
21158
21159         getloadavg: don't define SVR4 on cygwin
21160         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21161         only define SVR4 when -lkvm is required.
21162         Reported by Yaakov Selkowitz.
21163
21164 2010-08-24  Bruno Haible  <bruno@clisp.org>
21165
21166         priv-set: fix comment
21167         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21168
21169 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21170
21171         priv-set: fix comments
21172         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21173         to match code, as suggested by David Bartley in:
21174         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21175
21176 2010-08-23  Eric Blake  <eblake@redhat.com>
21177
21178         stdbool: avoid rejecting clang
21179         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21180         * tests/test-stdbool.c: Enable more tests if using the system
21181         <stdbool.h> instead of the gnulib replacement.
21182         (main): Move xlc bug test to a runtime test for all compilers.
21183         Reported by Anders Kaseorg.
21184
21185         argz: fix shell quoting issue
21186         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21187         Reported by Charles Wilson.
21188
21189 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21190             Erik Faye-Lund <kusmabite@gmail.com>
21191
21192         poll, select: handle ERROR_BROKEN_PIPE.
21193         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21194         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21195         * lib/select.c (win32_compute_revents): Do not mark a pipe
21196         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21197
21198 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21199
21200         fts: allow compilation with C++
21201         * lib/fts_.h: Specify extern "C" linkage with C++.
21202
21203 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21204
21205         Fix gnulib-tool sed script de-commentation for AIX sed.
21206         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21207         sed.
21208
21209 2010-08-17  Eric Blake  <eblake@redhat.com>
21210
21211         test-stddef: test for (some) offsetof bugs
21212         * tests/test-stddef.c: Enhance test to ensure correct type of
21213         offsetof.
21214         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21215         that we are not fixing at this time.
21216
21217 2010-08-15  Bruno Haible  <bruno@clisp.org>
21218
21219         stpncpy: Allow stpncpy to be defined as a macro.
21220         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21221         if it's already correctly declared.
21222         * lib/string.in.h (stpncpy): Undefine before redefining.
21223         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21224
21225 2010-08-14  Bruno Haible  <bruno@clisp.org>
21226
21227         Rename module 'memxfrm' to 'amemxfrm'.
21228         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21229         (amemxfrm): Renamed from memxfrm.
21230         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21231         (amemxfrm): Renamed from memxfrm.
21232         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21233         * NEWS: Mention the change.
21234         * MODULES.html.sh (String handling <string.h>): Update.
21235         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21236         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21237         * lib/unicase/u16-casexfrm.c: Likewise.
21238         * lib/unicase/u32-casexfrm.c: Likewise.
21239         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21240         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21241         * lib/uninorm/u16-normxfrm.c: Likewise.
21242         * lib/uninorm/u32-normxfrm.c: Likewise.
21243         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21244         memxfrm.
21245         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21246         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21247         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21248         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21249         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21250         Suggested by Paul Eggert.
21251
21252 2010-08-14  Bruno Haible  <bruno@clisp.org>
21253
21254         Tests for module 'astrxfrm'.
21255         * modules/astrxfrm-tests: New file.
21256         * tests/test-astrxfrm.c: New file.
21257
21258         New module 'astrxfrm'.
21259         * lib/astrxfrm.h: New file.
21260         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21261         * modules/astrxfrm: New file.
21262
21263 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21264
21265         regex: Tweak doc.
21266         * doc/regex.texi (Overview): Don't mention regex.c.
21267         (GNU Regular Expression Compiling): Likewise.
21268         (Match-end-of-line Operator): Mention 'not_eol'.
21269
21270 2010-08-14  Brian Gough  <bjg@gnu.org>
21271             Bruno Haible  <bruno@clisp.org>
21272
21273         git-merge-changelog: add doc relating to use with bzr and hg.
21274         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21275
21276 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21277
21278         pthread: fix pthread.h creation for srcdir != builddir
21279         * modules/pthread (Makefile.am): Fix the rule to work also in a
21280         non-srcdir build.
21281
21282 2010-08-13  Karl Berry  <karl@gnu.org>
21283
21284         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21285         * doc/posix-*/*: force line break before @url of POSIX
21286         specifications.
21287         Suggested by Werner Lemberg.
21288
21289 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21290
21291         strtod: fix const diagnostic
21292         * lib/strtod.c (strtod): Don't assign const char * to char *,
21293         as this elicits a warning from GCC when warnings are enabled.
21294
21295 2010-08-10  Pádraig Brady <P@draigbrady.com>
21296         and Eric Blake  <eblake@redhat.com>
21297
21298         copy-acl: ignore ENOTSUP on HP-UX
21299         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21300         so that it is available for HP-UX.
21301         * lib/copy-acl.c (qcopy_acl): Use it.
21302         Reported by Patrick M. Callahan.
21303
21304 2010-08-10  Eric Blake  <eblake@redhat.com>
21305
21306         open, chown: relax license
21307         * modules/open (License): Change to LGPLv2+, with consent by all
21308         authors, for use in augeas.
21309         * modules/chown (License): Likewise.
21310         * modules/lchown (Likewise): Likewise.
21311         Requested by Adam Stokes.
21312
21313 2010-08-09  Karl Berry  <karl@gnu.org>
21314
21315         * build-aux/ar-lib: new file, import from Automake.
21316         * config/srclist.txt: autocheck for updates.
21317
21318 2010-08-09  Eric Blake  <eblake@redhat.com>
21319
21320         readlinkat: adjust client modules
21321         * modules/areadlinkat (Depends-on): Use readlinkat, not
21322         symlinkat.
21323         * modules/areadlinkat-with-size (Depends-on): Likewise.
21324
21325         mknod: be more vocal about danger of running tests as root
21326         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21327         root, since that is just asking for problems.
21328         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21329
21330         readlinkat: split into its own module
21331         * modules/symlinkat: Split readlinkat...
21332         * modules/readlinkat: ...into separate module.
21333         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21334         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21335         * lib/symlinkat.c (readlinkat): Move...
21336         * lib/readlinkat.c: ...into new file.
21337         * modules/symlinkat-tests: Split readlinkat test...
21338         * modules/readlinkat-tests: ...into separate module.
21339         * tests/test-symlinkat.c: Split...
21340         * tests/test-readlinkat.c: ...into new file.
21341         * NEWS: Document the split.
21342         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21343         * lib/unistd.in.h (readlinkat): Likewise.
21344         Suggested by Bruno Haible.
21345
21346 2010-08-08  Bruno Haible  <bruno@clisp.org>
21347
21348         memxfrm: Speed up.
21349         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21350         that usually only one call to strxfrm is necessary for each string
21351         part.
21352         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21353
21354 2010-08-07  Karl Berry  <karl@gnu.org>
21355
21356         * doc/posix-headers/limits.texi,
21357         * doc/posix-functions/malloc.texi,
21358         * doc/posix-functions/strsignal.texi: missing @item.
21359         * doc/ld-version-script.texi: spurious leading i.
21360         * doc/regex.texi (Interval Operators): no commas inside @var.
21361
21362 2010-08-01  Bruno Haible  <bruno@clisp.org>
21363
21364         Integrate the regex documentation.
21365         * doc/gnulib.texi: Define 'cn' index.
21366         (Regular expressions): New a chapter that includes regex.texi and
21367         regexprops-generic.texi.
21368         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21369         syntax.
21370
21371         Whitespace cleanup.
21372         * doc/regex.texi: Remove trailing spaces.
21373
21374         Add regex documentation.
21375         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21376         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21377         Written by Kathy A. Hargreaves and Karl Berry.
21378
21379 2010-08-01  Bruno Haible  <bruno@clisp.org>
21380
21381         link: Update documentation.
21382         * doc/posix-functions/link.texi: Update regarding Solaris.
21383
21384 2010-07-31  Bruno Haible  <bruno@clisp.org>
21385
21386         Update modules list.
21387         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21388         (String handling <string.h>): Add memcmp2, memxfrm.
21389         (Container data structures): Add xlist, xsublist, xoset.
21390         (Core language properties): Add alignof, unused-parameter.
21391         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21392         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21393         (Unibyte characters <ctype.h>): New section.
21394         (String handling <string.h>): New section.
21395         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21396         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21397         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21398         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21399         tan, tanh, tanl, y0, y1, yn.
21400         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21401         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21402         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21403         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21404         unlockpt, vdprintf, vdprintf-posix.
21405         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21406         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21407         xconcat-filename.
21408         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21409         getdtablesize, pipe2, pipe2-safer.
21410         (Security): New section.
21411         (Networking functions): Add accept4.
21412         (Signal handling): Add sigpipe.
21413         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21414         mbmemcasecoll.
21415         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21416         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21417         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21418         pipe-filter-ii.
21419         (Misc): Add argp-version-etc, login_tty, parse-duration.
21420
21421 2010-07-31  Bruno Haible  <bruno@clisp.org>
21422
21423         Improve doc in MODULES.html.
21424         * modules/linkat (Description): Add the word "function".
21425         * modules/mkfifo (Description): Likewise.
21426         * modules/mknod (Description): Likewise.
21427         * modules/remove (Description): Likewise.
21428         * modules/renameat (Description): Likewise.
21429         * modules/stat (Description): Likewise.
21430         * modules/symlink (Description): Likewise.
21431         * modules/unlink (Description): Likewise.
21432
21433 2010-07-31  Bruno Haible  <bruno@clisp.org>
21434
21435         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21436         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21437         option --enable/disable-c++ instead of --enable/disable-cxx.
21438         * NEWS: Mention the change.
21439
21440 2010-07-31  Bruno Haible  <bruno@clisp.org>
21441
21442         readlink, areadlink: Relax test a bit.
21443         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21444         alternative to ENOTDIR.
21445         * tests/test-areadlink.h (test_areadlink): Likewise.
21446         Reported by Rainer Tammer.
21447
21448 2010-07-31  Bruno Haible  <bruno@clisp.org>
21449
21450         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21451         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21452         character, perform the search using U_STRCHR.
21453         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21454         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21455         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21456         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21457         Suggested by Paolo Bonzini.
21458
21459 2010-07-31  Bruno Haible  <bruno@clisp.org>
21460
21461         unistr/u*-strstr: Fix dependencies.
21462         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21463         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21464         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21465
21466 2010-07-31  Bruno Haible  <bruno@clisp.org>
21467
21468         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21469         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21470         the beginning of the loop.
21471         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21472         cases in 'switch' statement.
21473
21474         unistr/u8-strchr: Fix several bugs.
21475         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21476         the string. When not found, return NULL, not a pointer near the end.
21477
21478         More tests for unistr/u8-strchr.
21479         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21480         that the function does not read past the first occurrence of the byte
21481         being searched.
21482         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21483         * tests/unistr/test-u16-strchr.c (main): New function.
21484         * tests/unistr/test-u32-strchr.c (main): New function.
21485
21486 2010-07-31  Bruno Haible  <bruno@clisp.org>
21487
21488         posix-modules: Ignore backup files of documentation files.
21489         * posix-modules: grep only through files named *.texi.
21490
21491 2010-07-31  Bruno Haible  <bruno@clisp.org>
21492
21493         symlinkat: Fix documentation.
21494         * doc/posix-functions/readlinkat.texi: Fix module name.
21495
21496 2010-07-31  Bruno Haible  <bruno@clisp.org>
21497
21498         fchownat: Replace also when chown has the trailing slash bug.
21499         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21500         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21501         introduced on 2010-04-10.
21502         Reported by Rainer Tammer.
21503
21504 2010-07-31  Bruno Haible  <bruno@clisp.org>
21505
21506         linkat: Work around AIX 7.1 bug.
21507         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21508         whether linkat handles trailing slash correctly. If not, replace linkat
21509         and define LINKAT_TRAILING_SLASH_BUG.
21510         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21511         check whether (fd1,file1) points to a directory if file1 or file2 ends
21512         in a slash. Code taken from lib/link.c.
21513         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21514         Reported by Rainer Tammer.
21515
21516 2010-07-31  Bruno Haible  <bruno@clisp.org>
21517
21518         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21519         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21520         This disables an xlc optimization that was causing wrong test results.
21521         Reported by Rainer Tammer.
21522
21523 2010-07-31  Bruno Haible  <bruno@clisp.org>
21524
21525         iconv: Work around AIX 6.1..7.1 bug.
21526         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21527         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21528         cross-compiling, guess no on all versions of AIX.
21529         Reported by Rainer Tammer.
21530
21531 2010-07-31  Bruno Haible  <bruno@clisp.org>
21532
21533         readlink: Relax test a bit.
21534         * tests/test-readlink.h (test_readlink): Allow different errno value
21535         when readlink is called with a file name that ends in / and refers to
21536         a file.
21537         Suggested by Eric Blake.
21538         Reported by Rainer Tammer.
21539
21540 2010-07-31  Bruno Haible  <bruno@clisp.org>
21541
21542         copysign: Does not require -lm on glibc systems.
21543         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21544         gl_COMMON_DOUBLE_MATHFUNC.
21545         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21546
21547 2010-07-31  Bruno Haible  <bruno@clisp.org>
21548
21549         duplocale: Work around AIX 7.1 bug.
21550         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21551         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21552         * lib/duplocale.c (rpl_duplocale): Update comment.
21553         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21554         Reported by Rainer Tammer.
21555
21556 2010-07-30  Bruno Haible  <bruno@clisp.org>
21557
21558         dirfd: Avoid link error on AIX 7.1.
21559         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21560         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21561         exist, set REPLACE_DIRFD.
21562         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21563         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21564         * doc/posix-functions/dirfd.texi: Update.
21565         Reported by Rainer Tammer.
21566
21567 2010-07-30  Eric Blake  <eblake@redhat.com>
21568
21569         strtod: next round of AIX fixes
21570         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21571         exponent.
21572         * tests/test-strtod.c (main): Enhance tests.
21573         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21574         Reported by Rainer Tammer.
21575
21576         futimens: fix configure check
21577         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21578         Reported by Bruno Haible.
21579
21580 2010-07-30  Bruno Haible  <bruno@clisp.org>
21581
21582         getline: Update regarding AIX.
21583         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21584         Reported by Rainer Tammer.
21585
21586 2010-07-30  Bruno Haible  <bruno@clisp.org>
21587
21588         wcwidth: Drop replacement on AIX 7.
21589         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21590         AIX 7.
21591         Reported by Rainer Tammer.
21592
21593 2010-07-30  Bruno Haible  <bruno@clisp.org>
21594
21595         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21596         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21597         a 'char *'.
21598         Reported by Rainer Tammer.
21599
21600 2010-07-30  Bruno Haible  <bruno@clisp.org>
21601
21602         unlink: Update regarding AIX.
21603         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21604         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21605         Reported by Rainer Tammer.
21606
21607 2010-07-30  Bruno Haible  <bruno@clisp.org>
21608
21609         symlink: Update regarding AIX.
21610         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21611         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21612         Reported by Rainer Tammer.
21613
21614 2010-07-30  Bruno Haible  <bruno@clisp.org>
21615
21616         strndup: Update regarding AIX.
21617         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21618         AIX 7.
21619         Reported by Rainer Tammer.
21620
21621 2010-07-30  Bruno Haible  <bruno@clisp.org>
21622
21623         stat: Update regarding AIX.
21624         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21625         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21626         Reported by Rainer Tammer.
21627
21628 2010-07-30  Bruno Haible  <bruno@clisp.org>
21629
21630         truncl: Fix autoconf test.
21631         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21632         whether truncl works.
21633         Reported by Rainer Tammer.
21634
21635 2010-07-30  Bruno Haible  <bruno@clisp.org>
21636
21637         round: Update regarding AIX.
21638         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21639         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21640         Reported by Rainer Tammer.
21641
21642 2010-07-30  Bruno Haible  <bruno@clisp.org>
21643
21644         rename: Update regarding AIX.
21645         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21646         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21647         Reported by Rainer Tammer.
21648
21649 2010-07-30  Bruno Haible  <bruno@clisp.org>
21650
21651         printf.m4: Update regarding AIX.
21652         * m4/printf.m4: Update comments regarding AIX.
21653         Reported by Rainer Tammer.
21654
21655 2010-07-30  Bruno Haible  <bruno@clisp.org>
21656
21657         iconv: Update regarding AIX.
21658         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21659         AIX 7.
21660         Reported by Rainer Tammer.
21661
21662 2010-07-30  Bruno Haible  <bruno@clisp.org>
21663
21664         getopt: Update regarding AIX.
21665         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21666         no on AIX.
21667         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21668         Reported by Rainer Tammer.
21669
21670 2010-07-30  Bruno Haible  <bruno@clisp.org>
21671
21672         ldexpl; Update regarding AIX.
21673         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21674         on AIX 7.
21675         Reported by Rainer Tammer.
21676
21677 2010-07-30  Bruno Haible  <bruno@clisp.org>
21678
21679         frexpl: Update regarding AIX.
21680         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21681         on AIX 7.
21682         Reported by Rainer Tammer.
21683
21684 2010-07-30  Bruno Haible  <bruno@clisp.org>
21685
21686         open, fopen: Update regarding AIX.
21687         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21688         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21689         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21690         * doc/posix-functions/fopen.texi: Likewise.
21691         Reported by Rainer Tammer.
21692
21693 2010-07-30  Bruno Haible  <bruno@clisp.org>
21694
21695         chown: Update doc regarding AIX.
21696         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21697         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21698         Reported by Rainer Tammer.
21699
21700 2010-07-30  Eric Blake  <eblake@redhat.com>
21701
21702         strtod: fix bug in replacement function on AIX
21703         * lib/strtod.c (strtod): Special case broken "0x" parse in
21704         underlying strtod.
21705         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21706         * doc/posix-functions/strtod.texi (strtod): Likewise.
21707         Reported by Rainer Tammer.
21708
21709 2010-07-30  Bruno Haible  <bruno@clisp.org>
21710
21711         mbrlen: Fix cross-compilation guess for AIX.
21712         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21713         guess. Leftover from 2008-12-22.
21714
21715 2010-07-30  Bruno Haible  <bruno@clisp.org>
21716
21717         mbrtowc: Fix cross-compilation guess for AIX.
21718         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21719         guess. Leftover from 2008-12-21.
21720
21721 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21722
21723         init.sh: work around trap limitation of some shells
21724         * tests/init.sh (setup_): Move exit trap outside of shell function.
21725
21726 2010-07-29  Eric Blake  <eblake@redhat.com>
21727
21728         strtod: aid debugging
21729         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21730         understanding why strtod is rejected.
21731
21732 2010-07-28  Bruno Haible  <bruno@clisp.org>
21733
21734         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21735         * lib/unistr/u8-chr.c: Include <string.h>.
21736         * tests/unistr/test-u8-chr.c: Likewise.
21737         * tests/unistr/test-u16-chr.c: Likewise.
21738         * tests/unistr/test-u32-chr.c: Likewise.
21739         * tests/unistr/test-u8-strchr.c: Likewise.
21740         * tests/unistr/test-u16-strchr.c: Likewise.
21741         * tests/unistr/test-u32-strchr.c: Likewise.
21742         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21743         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21744         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21745         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21746
21747 2010-07-28  Bruno Haible  <bruno@clisp.org>
21748
21749         Use spaces for indentation, not tabs.
21750         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21751
21752 2010-07-27  Bruno Haible  <bruno@clisp.org>
21753
21754         mbspcasecmp: Fix function specification.
21755         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21756         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21757         Reported by Eric Blake <eblake@redhat.com>.
21758
21759 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21760
21761         timespec: use cast and not conditional, as truncation isn't possible
21762         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21763         instead of a conditional.  Comment about the situation in more detail.
21764         This undoes most of the 2009-10-29 patch.
21765
21766 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21767
21768         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21769         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21770         * lib/unistr/u8-strchr.c: Likewise.
21771         * modules/unistr/u8-chr: Depend on memchr.
21772
21773         unistr/u*-strchr: add tests
21774         * modules/unistr/u8-strchr-tests: New file.
21775         * modules/unistr/u16-strchr-tests: New file.
21776         * modules/unistr/u32-strchr-tests: New file.
21777         * tests/unistr/test-strchr.h: New file.
21778         * tests/unistr/test-u8-strchr.c: New file.
21779         * tests/unistr/test-u16-strchr.c: New file.
21780         * tests/unistr/test-u32-strchr.c: New file.
21781
21782         unistr/u*-chr: test multibyte sequences more
21783         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21784         test vector.
21785         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21786         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21787         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21788
21789         unistr/u*-chr: test multibyte sequences
21790         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21791
21792         unistr/u*-chr: prepare for multibyte tests
21793         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21794         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21795         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21796         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21797         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21798         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21799
21800 2010-07-18  Bruno Haible  <bruno@clisp.org>
21801
21802         unistr/u8-strchr: Optimize non-ASCII argument case.
21803         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21804         because the first byte often matches anyway.
21805         Reported by Pádraig Brady <P@draigbrady.com>.
21806
21807 2010-07-15  Karl Berry  <karl@gnu.org>
21808
21809         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21810
21811 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21812
21813         getcwd: on Solaris, work better if ancestors are inaccessible
21814         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21815         buffer and size, try again with a large buffer.  This works better
21816         on Solaris, since its getcwd succeeds even if the path to the root
21817         is inaccessible, and this is helpful in common cases such as .zfs
21818         hidden directories.  Problem reported by J Chapman Flack in
21819         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21820         Use system getcwd if it's declared, not merely if it's partly
21821         working; use the partly-working test only to avoid needless effort
21822         if the system getcwd fails.
21823         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21824         comment that was already obsolete and is now even more obsolete.
21825         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21826         now might call strdup.
21827
21828 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21829
21830         pthread: Add enough so that coreutils/src/sort.c compiles.
21831         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21832         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21833         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21834         Include <sys/types.h>, in case it defines pthread_t.
21835         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21836         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21837         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21838         (pthread_rwlockattr_t, pthread_spinlock_t):
21839         New typedefs, if HAVE_PTHREAD_T is not defined.
21840         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21841         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21842         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21843         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21844         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21845         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21846         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21847         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21848         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21849         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21850         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21851         New macros.
21852         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21853         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21854         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21855         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21856         (pthread_spin_unlock): New dummy functions.
21857         (pthread_create): Return EAGAIN; don't set errno.
21858         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21859         require AC_C_INLINE.
21860         * modules/pthread (Depends-on): Add sched, time.
21861         (pthread.h): Use AM_V_GEN.
21862
21863 2010-07-13  Bruno Haible  <bruno@clisp.org>
21864
21865         striconveh: Don't malloc memory if the result buffer is sufficient.
21866         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21867         buffer if its size is sufficient.
21868         Reported by Ludovic Courtès <ludo@gnu.org>.
21869
21870 2010-07-13  Bruno Haible  <bruno@clisp.org>
21871
21872         strtod: Add safety check.
21873         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21874
21875 2010-07-12  Bruno Haible  <bruno@clisp.org>
21876
21877         Unify tests that set gl_cv_func_ldexpl_no_libm.
21878         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21879         gl_FUNC_LDEXPL.
21880         (gl_FUNC_LDEXPL): Invoke it.
21881         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21882
21883 2010-07-12  Bruno Haible  <bruno@clisp.org>
21884
21885         Unify tests that set gl_cv_func_ldexp_no_libm.
21886         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21887         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21888         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21889         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21890         * modules/strtod (Files): Add m4/ldexp.m4.
21891
21892 2010-07-12  Bruno Haible  <bruno@clisp.org>
21893
21894         Unify tests that set gl_cv_func_frexpl_no_libm.
21895         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21896         gl_FUNC_FREXPL_NO_LIBM.
21897         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21898         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21899
21900 2010-07-12  Bruno Haible  <bruno@clisp.org>
21901
21902         Unify tests that set gl_cv_func_frexp_no_libm.
21903         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21904         gl_FUNC_FREXP_NO_LIBM.
21905         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21906         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21907
21908 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21909
21910         memcoll: clarify sizes versus lengths, document better, and tweak perf
21911         * lib/memcoll.c (strcoll_loop, memcoll0):
21912         Improve quality of descriptive comments.  Name variables
21913         consistently as to whether they are lengths (which do not include
21914         terminating null) versus sizes (which do).
21915         * lib/xmemcoll.c (xmemcoll0): Likewise.
21916         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21917         returned when s1size == 0; this is easier to compile and saves
21918         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21919
21920 2010-07-12  Bruno Haible  <bruno@clisp.org>
21921
21922         Tests for module '_Exit'.
21923         * modules/_Exit-tests: New file.
21924         * tests/test-_Exit.sh: New file.
21925         * tests/test-_Exit.c: New file.
21926
21927         New module '_Exit'.
21928         * lib/stdlib.in.h (__attribute__): New macro.
21929         (_Exit): New declaration.
21930         * lib/_Exit.c: New file.
21931         * m4/_Exit.m4: New file.
21932         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21933         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21934         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21935         * modules/_Exit: New file.
21936         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21937         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21938
21939 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21940
21941         strtod: make it more-accurate typically, and don't require libm
21942         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21943         Include limits.h.  Don't include string.h.
21944         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21945         (locale_isspace): New function, so that no casts are needed to
21946         check whether *s is a space.
21947         (ldexp): Provide an unused dummy if not available.
21948         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21949         (strtod): Use them.  This implementation prefers to use the
21950         underlying strtod if available, falling back on our own code
21951         only to fix known bugs.  This is more likely to produce an
21952         accurate result.  Also, it avoids the use of libm functions.
21953         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21954         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21955         was absent, but it caused a test failure with coreutils.
21956         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21957         with libm.
21958         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21959         * modules/strtod-tests (Makefile.am): Likewise.
21960
21961 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21962             Bruno Haible  <bruno@clisp.org>
21963
21964         unistr/u8-strchr: Optimize ASCII argument case.
21965         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21966
21967 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21968
21969         (x)memcoll: minor tweaks
21970         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21971         is after the type that it qualifies.
21972         (memcoll0): Likewise.
21973         * lib/memcoll.h (memcoll0): Likewise.
21974         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21975         * lib/xmemcoll.h (xmemcoll0): Likewise.
21976         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21977         differs from memcoll in that the NUL byte is part of the argument.
21978         Omit the abort-checks, as performance is a real issue here.  Plus,
21979         the checks were wrong anyway (an off-by-one error).  Omit local
21980         variable 'diff', as it's a bit clearer that way.
21981         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21982         no longer needed.
21983
21984 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21985
21986         (x)memcoll: speedup when input is known to be NUL delimited
21987         * lib/memcoll.c: Include stdlib.
21988         (memcoll0): New function.
21989         (strcoll_loop): New function, refactored for use in both memcoll
21990         and memcoll0.
21991         * lib/memcoll.h (memcoll0): Add prototype.
21992         * lib/xmemcoll.c (xmemcoll0): New function.
21993         (collate_error): New function, refactored for use in both xmemcoll
21994         and xmemcoll0.
21995         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21996         * m4/memcoll.m4: add inline invocation.
21997
21998 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21999
22000         * build-aux/bootstrap: Remove any local translations
22001         from the translation project synchronization directory,
22002         so that local only translations are not distributed.
22003
22004 2010-07-04  Bruno Haible  <bruno@clisp.org>
22005
22006         fsusage: Clarify which code applies to which platforms.
22007         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22008         platform.
22009         * lib/fsusage.c (get_fs_usage): Likewise.
22010
22011 2010-07-04  Bruno Haible  <bruno@clisp.org>
22012
22013         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22014         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22015         Reported by Martin Lambers <marlam@marlam.de>.
22016
22017 2010-07-04  Jim Meyering  <meyering@redhat.com>
22018
22019         hash: once again explicitly disallow insertion of NULL
22020         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22021         inserting a NULL pointer cannot work with these functions.
22022         Add a comment with details.
22023         This reverts part of the 2010-07-01 commit, 5bef1a35
22024         "hash: extend module to deal with non-pointer keys".
22025
22026 2010-07-01  Bruno Haible  <bruno@clisp.org>
22027
22028         stdbool: Update doc.
22029         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22030         Info from Christian Weisgerber <naddy@mips.inka.de>.
22031
22032 2010-07-01  Jim Meyering  <meyering@redhat.com>
22033
22034         hash: extend module to deal with non-pointer keys
22035         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22036         but that allows insertion of non-pointer entries.
22037         Do not disallow an ENTRY value of NULL.
22038         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22039         * lib/hash.h (hash_insert0): Declare.
22040
22041 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22042
22043         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22044         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22045         not present (i.e. with autoconf 2.59 and when using gettextize, not
22046         gnulib), require AC_GNU_SOURCE instead.
22047
22048 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22049
22050         idpriv-drop: Fix tests.
22051         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22052         not to the test-idpriv-droptemp program.
22053
22054 2010-06-29  Bruno Haible  <bruno@clisp.org>
22055
22056         string: Fix syntax error with g++ 2.96.
22057         * lib/string.in.h (__pure__): Remove definition.
22058         (_GL_ATTRIBUTE_PURE): New macro.
22059         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22060         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22061         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22062
22063 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22064
22065         unitypes: Fix bug introduced on 2010-05-18.
22066         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22067
22068 2010-06-22  Eric Blake  <eblake@redhat.com>
22069
22070         memmem: slight optimization
22071         * lib/str-two-way.h (critical_factorization): Update comments.
22072         Reduce work during factorization phase.
22073         Reported by Carlos Bueno <carlos@bueno.org>.
22074
22075 2010-06-21  Bruno Haible  <bruno@clisp.org>
22076
22077         Fix HAVE_CALLOC_POSIX misnomer.
22078         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22079         !HAVE_CALLOC_POSIX.
22080         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22081         HAVE_CALLOC_POSIX.
22082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22083         instead of HAVE_CALLOC_POSIX.
22084         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22085         HAVE_CALLOC_POSIX.
22086
22087         Use modern idiom for calloc() replacement.
22088         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22089         AC_FUNC_CALLOC.
22090         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22091         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22092         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22093         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22094         (gl_REPLACE_CALLOC): New macro.
22095
22096 2010-06-21  Bruno Haible  <bruno@clisp.org>
22097
22098         Fix HAVE_REALLOC_POSIX misnomer.
22099         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22100         !HAVE_REALLOC_POSIX.
22101         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22102         HAVE_REALLOC_POSIX.
22103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22104         instead of HAVE_REALLOC_POSIX.
22105         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22106         HAVE_REALLOC_POSIX.
22107
22108         Use modern idiom for realloc() replacement.
22109         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22110         AC_FUNC_REALLOC.
22111         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22112         Autoconf's AC_FUNC_REALLOC.
22113         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22114         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22115         (gl_REPLACE_REALLOC): New macro.
22116         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22117
22118 2010-06-21  Bruno Haible  <bruno@clisp.org>
22119
22120         Fix HAVE_MALLOC_POSIX misnomer.
22121         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22122         !HAVE_MALLOC_POSIX.
22123         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22124         HAVE_MALLOC_POSIX.
22125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22126         instead of HAVE_MALLOC_POSIX.
22127         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22128         HAVE_MALLOC_POSIX.
22129
22130         Use modern idiom for malloc() replacement.
22131         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22132         AC_FUNC_MALLOC.
22133         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22134         Autoconf's AC_FUNC_MALLOC.
22135         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22136         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22137         (gl_REPLACE_MALLOC): New macro.
22138         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22139
22140 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22141
22142         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22143         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22144         This macro takes 3 arguments, not 4.
22145
22146 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22147
22148         ipv6: fix detection under mingw
22149         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22150         in6_addr.
22151
22152 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22153
22154         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22155         that strtod() works when cross-compiling to a glibc version known
22156         to work.
22157
22158 2010-06-15  Bruno Haible  <bruno@clisp.org>
22159
22160         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22161
22162 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22163
22164         select: Correct timeout.
22165         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22166
22167 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22168
22169         git-version-gen: init shell var to avoid env var influence
22170         * build-aux/git-version-gen (v): Init shell var to empty.
22171
22172 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22173
22174         priv-set: Don't assume that priv.h exists merely because getppriv does.
22175         See Jan Andersen's bug report about AIX 5L in
22176         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22177         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22178         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22179         * lib/priv-set.h: Likewise.
22180         * tests/test-priv-set.c: Likewise.
22181
22182 2010-06-13  Bruno Haible  <bruno@clisp.org>
22183
22184         relocatable: Make it easier to test whether to install wrappers.
22185         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22186         RELOCATABLE_VIA_WRAPPER.
22187
22188 2010-06-13  Bruno Haible  <bruno@clisp.org>
22189
22190         gnulib-tool: Display specified modules and dependencies differently.
22191         * gnulib-tool (func_show_module_list): New function.
22192         (func_import, func_create_testdir): Invoke it.
22193         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22194
22195 2010-06-13  Bruno Haible  <bruno@clisp.org>
22196
22197         gnulib-tool: Align code of func_import and func_create_testdir.
22198         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22199         specified_modules.
22200
22201 2010-06-12  Jim Meyering  <meyering@redhat.com>
22202
22203         test-inttostr: avoid spurious failure on Solaris 9
22204         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22205         to accept "%ju".  Reported by Bruno Haible.
22206
22207 2010-06-11  Jim Meyering  <meyering@redhat.com>
22208
22209         test-sys_socket: mark variables as used more readably
22210         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22211         as "used" explicitly via (void) statement casts.  This is more
22212         readable than using them in an artificial return expression.
22213         Suggestion from Bruno Haible.
22214
22215 2010-06-11  Bruno Haible  <bruno@clisp.org>
22216
22217         Avoid some more warnings from "gcc -Wwrite-strings".
22218         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22219         to 'const char *'.
22220         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22221         * tests/test-c-strcasestr.c (main): Likewise.
22222         * tests/test-mbscasestr1.c (main): Likewise.
22223         * tests/test-mbscasestr2.c (main): Likewise.
22224         * tests/test-memmem.c (main): Likewise.
22225         * tests/test-strstr.c (main): Likewise.
22226         * tests/test-strcasestr.c (main): Likewise.
22227
22228 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22229
22230         init.sh: change framework_failure_ to fail with status 99, not 1
22231         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22232         automake's parallel-tests rule that this is an unexpected failure,
22233         even if the test is listed in XFAIL_TESTS.
22234
22235 2010-06-11  Jim Meyering  <meyering@redhat.com>
22236
22237         test-inttostr: avoid warnings about 4-6KB literal strings
22238         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22239         Include "macros.h", for its definition of ASSERT.
22240         (CK): s/assert/ASSERT/
22241         * modules/inttostr-tests (Files): Add macros.h.
22242
22243         init.sh: don't use $ME_ or skip_ before they are defined
22244         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22245         their first uses.  Also hoist their companions: warn_, fail_,
22246         framework_failure_, $stderr_fileno.  Prompted by a patch from
22247         Stefano Lattarini.
22248
22249         test-sys_socket: avoid set-but-not-used warnings from gcc
22250         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22251         avoid warning about set-but-not-used variables.
22252
22253         test-xvasprintf: avoid 'const' discard warnings
22254         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22255         "const" when assigning from literal strings.
22256         (test_xasprintf): Add "void" in function argument list to placate
22257         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22258
22259         tests: avoid compilation warnings in argmatch and exclude tests...
22260         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22261         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22262         Since it always exits, declare with the "noreturn" attribute.
22263         * tests/test-argmatch.c: Likewise.
22264
22265         tests: avoid 'const' discard warnings in mbsstr tests
22266         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22267         * tests/test-mbsstr2.c (main): Likewise.
22268
22269         test-verify: avoid warning from gcc's -Wmissing-declarations
22270         * tests/test-verify.c (function): Declare to be static.
22271
22272         test-inttostr.c: include <string.h> for use of strcmp
22273         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22274
22275         test-linkat: avoid failed assertion on "other" architectures
22276         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22277         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22278         sparc: https://bugs.launchpad.net/bugs/591968
22279
22280 2010-06-11  Jim Meyering  <meyering@redhat.com>
22281
22282         printf.m4: avoid autoconf's "Expanded Before Required" warning
22283         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22284         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22285         autoconf warning.
22286
22287 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22288
22289         Replacement header templates are now named with ".in", not "_".
22290         * doc/gnulib-intro.texi: Correct.
22291
22292 2010-06-10  Jim Meyering  <meyering@redhat.com>
22293
22294         inttostr-tests: depend on snprintf, not snprintf-posix
22295         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22296         snprintf-posix, to avoid this aclocal failure:
22297           missing file gnulib-tests/vasnprintf.c
22298           configure.ac:45: error: expected source file, required through \
22299           AC_LIBSOURCES, not found
22300
22301 2010-06-10  Jim Meyering  <meyering@redhat.com>
22302
22303         inttostr: add a new function, inttostr, and tests
22304         The namesake function was not available.  The existence of the
22305         template file, inttostr.c makes its addition nontrivial.
22306         * lib/anytostr.c: Rename from inttostr.c.
22307         (anytostr): Rename from inttostr.
22308         * lib/inttostr.c: New file.
22309         * modules/inttostr (Files): Add anytostr.c.
22310         (Makefile.am): Set lib_SOURCES instead of ...
22311         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22312         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22313         * lib/offtostr.c: Likewise.
22314         * lib/uinttostr.c: Likewise.
22315         * lib/umaxtostr.c: Likewise.
22316         * modules/inttostr-tests: New file.
22317         * tests/test-inttostr.c: New file.  Test these functions.
22318
22319 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22320             Bruno Haible  <bruno@clisp.org>
22321
22322         Add "Extending Gnulib" chapter to manual.
22323         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22324         chapter.
22325         (Extending Gnulib): New chapter.
22326         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22327         chapter.
22328
22329 2010-06-09  Bruno Haible  <bruno@clisp.org>
22330
22331         Avoid relocwrapper link errors due to gnulib replacement functions.
22332         * lib/areadlink.c: Use the system's malloc, realloc functions.
22333         (areadlink): Set errno to ENOMEM explicitly.
22334         * modules/areadlink (Depends-on): Remove malloc-posix.
22335         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22336
22337 2010-06-09  Bruno Haible  <bruno@clisp.org>
22338
22339         Avoid relocwrapper link errors due to gnulib replacement functions.
22340         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22341         * lib/malloca.c: Likewise.
22342         * lib/relocatable.c: Likewise.
22343         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22344         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22345         * lib/setenv.c: Use the system's malloc, realloc functions.
22346         * lib/strerror.c: Use the system's sprintf function.
22347         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22348
22349 2010-06-04  Bruno Haible  <bruno@clisp.org>
22350
22351         Prefer documented low-level autoconf macro names.
22352         * m4/lib-link.m4: Use m4_translit instead of translit.
22353         * m4/environ.m4: Likewise.
22354         * m4/mathfunc.m4: Likewise.
22355         * m4/onceonly.m4: Likewise.
22356         * m4/stdint.m4: Likewise.
22357         Suggested by Eric Blake.
22358
22359 2010-06-04  Martin Lambers  <marlam@marlam.de>
22360             Bruno Haible  <bruno@clisp.org>
22361
22362         havelib: Allow library names with '+' characters.
22363         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22364         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22365
22366 2010-06-09  Bruno Haible  <bruno@clisp.org>
22367
22368         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22369         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22370         realloc failed.
22371
22372 2010-06-08  Peter Simons  <simons@cryp.to>
22373
22374         maint.mk: make the news-check rule more configurable
22375         * top/maint.mk (news-check-lines-spec): New variable.
22376         (news-check): Use "sed -n 1,10p" in place of "head".
22377
22378 2010-06-07  Jim Meyering  <meyering@redhat.com>
22379
22380         do-release-commit-and-tag: fix typo in --help
22381         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22382
22383         regex: avoid new dead-code warning with gcc-4.6.0
22384         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22385         if-block containing a while-loop.  It's been unused for at least
22386         5 years.
22387
22388 2010-06-05  Bruno Haible  <bruno@clisp.org>
22389
22390         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22391         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22392
22393 2010-06-04  Bruno Haible  <bruno@clisp.org>
22394
22395         Update to GNU gettext 0.18.1.
22396         * modules/gettext (configure.ac): Require gettext infrastructure from
22397         version 0.18.1.
22398
22399 2010-06-03  Bruno Haible  <bruno@clisp.org>
22400
22401         Don't use AC_LIBOBJ with file names in subdirectories.
22402         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22403         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22404         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22405         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22406         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22407         gl_LIBUNISTRING_LIBSOURCE.
22408         (Makefile.am): Augment lib_SOURCES here, conditionally.
22409         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22410
22411 2010-06-03  Bruno Haible  <bruno@clisp.org>
22412
22413         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22414         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22415         expansion does not end with a newline.
22416         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22417         unnecessary newline.
22418
22419 2010-06-03  Bruno Haible  <bruno@clisp.org>
22420
22421         Reduce dependencies.
22422         * tests/test-quotearg.h: New file, extracted from
22423         tests/test-quotearg.c.
22424         * tests/test-quotearg-simple.c: New file, extracted from
22425         tests/test-quotearg.c.
22426         * tests/test-quotearg.c: Don't include <ctype.h>.
22427         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22428         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22429         use_quote_double_quotes, use_quotearg_colon): Moved to
22430         tests/test-quotearg.h.
22431         (results_g, flag_results, custom_quotes, custom_results): Moved
22432         to tests/test-quotearg-simple.c.
22433         (main): Moved the part that does not depend on gettext to
22434         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22435         performed.
22436         * modules/quotearg-simple: New file.
22437         * modules/quotearg-simple-tests: New file.
22438         * modules/quotearg (Depends-on): Add quotearg-simple.
22439         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22440         (Files): Add tests/test-quotearg.h.
22441         Reported by Paolo Bonzini.
22442
22443 2010-06-03  Bruno Haible  <bruno@clisp.org>
22444
22445         Reduce dependencies.
22446         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22447
22448 2010-06-03  Bruno Haible  <bruno@clisp.org>
22449
22450         time: Undefine more broken macros.
22451         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22452         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22453         Reported by Eric Blake.
22454
22455 2010-06-03  Bruno Haible  <bruno@clisp.org>
22456
22457         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22458         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22459         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22460         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22461         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22462         Reported by Ludovic Courtès <ludo@gnu.org>.
22463
22464 2010-06-02  Eric Blake  <eblake@redhat.com>
22465
22466         time: work with mingw + pthreads-win32 library
22467         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22468         if timespec is defined only in pthread.h.
22469         * modules/time (Makefile.am): Substitute it.
22470         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22471         <pthread.h>, when needed.
22472         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22473         from the library.
22474
22475 2010-05-31  Bruno Haible  <bruno@clisp.org>
22476
22477         Avoid expanding two macros in the wrong order.
22478         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22479         gl_LIBUNISTRING if it is defined.
22480         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22481         autoconf >= 2.64.
22482         Reported by Ludovic Courtès <ludo@gnu.org>.
22483
22484 2010-05-27  Jim Meyering  <meyering@redhat.com>
22485
22486         maint.mk: also prohibit "#undef" of always-defined symbols
22487         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22488         Allow more than one space before the symbol name.
22489         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22490         the regexp uses alternation.
22491
22492 2010-05-26  Eric Blake  <eblake@redhat.com>
22493
22494         maint.mk: avoid echo -e
22495         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22496         Convert all uses of echo -* to printf.
22497         Reported by Matthias Bolte.
22498
22499 2010-05-25  Bruno Haible  <bruno@clisp.org>
22500
22501         Update to GNU gettext 0.18, part 2.
22502         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22503         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22504
22505 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22506
22507         Add missing include in test-pwrite.c.
22508         * tests/test-pwrite.c: Include string.h, for strcmp.
22509
22510 2010-05-24  Bruno Haible  <bruno@clisp.org>
22511
22512         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22513
22514 2010-05-24  Bruno Haible  <bruno@clisp.org>
22515
22516         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22517         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22518         iconveh_error argument.
22519         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22520         U_STRCONV_TO_LOCALE.
22521         * lib/unistr/u16-strcoll.c: Likewise.
22522         * lib/unistr/u32-strcoll.c: Likewise.
22523         * modules/unistr/u8-strcoll (Depends-on): Add
22524         uniconv/u8-strconv-to-enc, localcharset. Remove
22525         uniconv/u8-strconv-to-locale.
22526         (configure.ac): Bump version number.
22527         * modules/unistr/u16-strcoll (Depends-on): Add
22528         uniconv/u16-strconv-to-enc, localcharset. Remove
22529         uniconv/u16-strconv-to-locale.
22530         (configure.ac): Bump version number.
22531         * modules/unistr/u32-strcoll (Depends-on): Add
22532         uniconv/u32-strconv-to-enc, localcharset. Remove
22533         uniconv/u32-strconv-to-locale.
22534         (configure.ac): Bump version number.
22535
22536 2010-05-24  Bruno Haible  <bruno@clisp.org>
22537
22538         Avoid a test failure on NetBSD 5.0.
22539         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22540         an iconv() bug.
22541
22542 2010-05-24  Bruno Haible  <bruno@clisp.org>
22543
22544         Adjust #include directive style.
22545         * modules/regex (Includes): Recommend to write <regex.h>.
22546
22547 2010-05-24  Bruno Haible  <bruno@clisp.org>
22548
22549         regex: Don't require alloca.
22550         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22551         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22552         only inside if (0).
22553
22554 2010-05-23  Jim Meyering  <meyering@redhat.com>
22555
22556         test-renameat.c: include <sys/stat.h>
22557         * tests/test-renameat.c: Include <sys/stat.h>; required for
22558         definition of S_IS* macros.
22559
22560 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22561
22562         Update maintainer documentation for 'relocatable-prog' module.
22563         * doc/relocatable-maint.texi: Update.
22564         Comments by Bruno Haible.
22565
22566 2010-05-23  Bruno Haible  <bruno@clisp.org>
22567
22568         git-merge-changelog: Enable --split-merged-entry by default.
22569         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22570         (usage): Don't mention this option any more.
22571         Reported by Ralf Wildenhues.
22572
22573 2010-05-23  Jim Meyering  <meyering@redhat.com>
22574
22575         test-pwrite: do not leave behind a test file named "out"
22576         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22577         The trivial-looking use of init.sh is really necessary.
22578         It ensures that the temporary file, "out", is created in
22579         a temporary directory, and removed upon termination.
22580         * tests/test-pwrite.sh: Re-add file.
22581         * modules/pwrite-tests: Reference it.
22582
22583 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22584
22585         Fix output redirection buglet in init.sh.
22586         * tests/init.sh: Fix redirection of stderr.
22587
22588 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22589
22590         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22591
22592 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22593
22594         * modules/valgrind-tests: New file.
22595         * m4/valgrind-tests.m4: New file.
22596         * doc/valgrind-tests.texi: New file.
22597         * doc/gnulib.texi (Running self-tests under valgrind): New
22598         section.
22599
22600 2010-05-19  Bruno Haible  <bruno@clisp.org>
22601
22602         Clean up dead code in recent commit.
22603         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22604         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22605         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22606         Suggested by Paolo Bonzini.
22607
22608 2010-05-19  Bruno Haible  <bruno@clisp.org>
22609
22610         Avoid valgrind error reports from libunistring.
22611         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22612         * modules/libunistring (Files): Add it.
22613         * modules/libunistring-optional (Files): Likewise.
22614
22615 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22616             Bruno Haible  <bruno@clisp.org>
22617
22618         New module 'libunistring-optional'.
22619         * modules/libunistring-optional: New file.
22620         * m4/libunistring-base.m4: New file.
22621         * m4/libunistring-optional.m4: New file.
22622         * lib/unicase.in.h: Renamed from lib/unicase.h.
22623         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22624         * lib/unictype.in.h: Renamed from lib/unictype.h.
22625         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22626         * lib/uniname.in.h: Renamed from lib/uniname.h.
22627         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22628         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22629         * lib/unistr.in.h: Renamed from lib/unistr.h.
22630         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22631         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22632         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22633         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22634         gl_LIBUNISTRING. If the library was found, determine the installed
22635         version and set LIBUNISTRING_VERSION.
22636         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22637         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22638         handle a configuration option --with-included-libunistring.
22639         * modules/libunistring (Files): Add m4/absolute-header.m4.
22640         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22641         Add m4/libunistring-base.m4.
22642         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22643         (Makefile.am): Build unicase.h from unicase.in.h.
22644         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22645         Add m4/libunistring-base.m4.
22646         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22647         (Makefile.am): Build uniconv.h from uniconv.in.h.
22648         * modules/unictype/base (Files): Use unictype.in.h instead of
22649         unictype.h. Add m4/libunistring-base.m4.
22650         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22651         (Makefile.am): Build unictype.h from unictype.in.h.
22652         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22653         Add m4/libunistring-base.m4.
22654         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22655         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22656         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22657         Add m4/libunistring-base.m4.
22658         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22659         (Makefile.am): Build uniname.h from uniname.in.h.
22660         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22661         Add m4/libunistring-base.m4.
22662         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22663         (Makefile.am): Build uninorm.h from uninorm.in.h.
22664         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22665         unistdio.h. Add m4/libunistring-base.m4.
22666         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22667         (Makefile.am): Build unistdio.h from unistdio.in.h.
22668         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22669         Add m4/libunistring-base.m4.
22670         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22671         (Makefile.am): Build unistr.h from unistr.in.h.
22672         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22673         Add m4/libunistring-base.m4.
22674         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22675         (Makefile.am): Build unitypes.h from unitypes.in.h.
22676         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22677         Add m4/libunistring-base.m4.
22678         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22679         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22680         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22681         uniwidth.h. Add m4/libunistring-base.m4.
22682         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22683         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22684         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22685         instead of augmenting lib_SOURCES.
22686         * modules/unicase/empty-suffix-context: Likewise.
22687         * modules/unicase/locale-language: Likewise.
22688         * modules/unicase/tolower: Likewise.
22689         * modules/unicase/totitle: Likewise.
22690         * modules/unicase/toupper: Likewise.
22691         * modules/unicase/u8-casecmp: Likewise.
22692         * modules/unicase/u8-casecoll: Likewise.
22693         * modules/unicase/u8-casefold: Likewise.
22694         * modules/unicase/u8-casexfrm: Likewise.
22695         * modules/unicase/u8-ct-casefold: Likewise.
22696         * modules/unicase/u8-ct-tolower: Likewise.
22697         * modules/unicase/u8-ct-totitle: Likewise.
22698         * modules/unicase/u8-ct-toupper: Likewise.
22699         * modules/unicase/u8-is-cased: Likewise.
22700         * modules/unicase/u8-is-casefolded: Likewise.
22701         * modules/unicase/u8-is-lowercase: Likewise.
22702         * modules/unicase/u8-is-titlecase: Likewise.
22703         * modules/unicase/u8-is-uppercase: Likewise.
22704         * modules/unicase/u8-prefix-context: Likewise.
22705         * modules/unicase/u8-suffix-context: Likewise.
22706         * modules/unicase/u8-tolower: Likewise.
22707         * modules/unicase/u8-totitle: Likewise.
22708         * modules/unicase/u8-toupper: Likewise.
22709         * modules/unicase/u16-casecmp: Likewise.
22710         * modules/unicase/u16-casecoll: Likewise.
22711         * modules/unicase/u16-casefold: Likewise.
22712         * modules/unicase/u16-casexfrm: Likewise.
22713         * modules/unicase/u16-ct-casefold: Likewise.
22714         * modules/unicase/u16-ct-tolower: Likewise.
22715         * modules/unicase/u16-ct-totitle: Likewise.
22716         * modules/unicase/u16-ct-toupper: Likewise.
22717         * modules/unicase/u16-is-cased: Likewise.
22718         * modules/unicase/u16-is-casefolded: Likewise.
22719         * modules/unicase/u16-is-lowercase: Likewise.
22720         * modules/unicase/u16-is-titlecase: Likewise.
22721         * modules/unicase/u16-is-uppercase: Likewise.
22722         * modules/unicase/u16-prefix-context: Likewise.
22723         * modules/unicase/u16-suffix-context: Likewise.
22724         * modules/unicase/u16-tolower: Likewise.
22725         * modules/unicase/u16-totitle: Likewise.
22726         * modules/unicase/u16-toupper: Likewise.
22727         * modules/unicase/u32-casecmp: Likewise.
22728         * modules/unicase/u32-casecoll: Likewise.
22729         * modules/unicase/u32-casefold: Likewise.
22730         * modules/unicase/u32-casexfrm: Likewise.
22731         * modules/unicase/u32-ct-casefold: Likewise.
22732         * modules/unicase/u32-ct-tolower: Likewise.
22733         * modules/unicase/u32-ct-totitle: Likewise.
22734         * modules/unicase/u32-ct-toupper: Likewise.
22735         * modules/unicase/u32-is-cased: Likewise.
22736         * modules/unicase/u32-is-casefolded: Likewise.
22737         * modules/unicase/u32-is-lowercase: Likewise.
22738         * modules/unicase/u32-is-titlecase: Likewise.
22739         * modules/unicase/u32-is-uppercase: Likewise.
22740         * modules/unicase/u32-prefix-context: Likewise.
22741         * modules/unicase/u32-suffix-context: Likewise.
22742         * modules/unicase/u32-tolower: Likewise.
22743         * modules/unicase/u32-totitle: Likewise.
22744         * modules/unicase/u32-toupper: Likewise.
22745         * modules/unicase/ulc-casecmp: Likewise.
22746         * modules/unicase/ulc-casecoll: Likewise.
22747         * modules/unicase/ulc-casexfrm: Likewise.
22748         * modules/uniconv/u8-conv-from-enc: Likewise.
22749         * modules/uniconv/u8-conv-to-enc: Likewise.
22750         * modules/uniconv/u8-strconv-from-enc: Likewise.
22751         * modules/uniconv/u8-strconv-from-locale: Likewise.
22752         * modules/uniconv/u8-strconv-to-enc: Likewise.
22753         * modules/uniconv/u8-strconv-to-locale: Likewise.
22754         * modules/uniconv/u16-conv-from-enc: Likewise.
22755         * modules/uniconv/u16-conv-to-enc: Likewise.
22756         * modules/uniconv/u16-strconv-from-enc: Likewise.
22757         * modules/uniconv/u16-strconv-from-locale: Likewise.
22758         * modules/uniconv/u16-strconv-to-enc: Likewise.
22759         * modules/uniconv/u16-strconv-to-locale: Likewise.
22760         * modules/uniconv/u32-conv-from-enc: Likewise.
22761         * modules/uniconv/u32-conv-to-enc: Likewise.
22762         * modules/uniconv/u32-strconv-from-enc: Likewise.
22763         * modules/uniconv/u32-strconv-from-locale: Likewise.
22764         * modules/uniconv/u32-strconv-to-enc: Likewise.
22765         * modules/uniconv/u32-strconv-to-locale: Likewise.
22766         * modules/unictype/bidicategory-byname: Likewise.
22767         * modules/unictype/bidicategory-name: Likewise.
22768         * modules/unictype/bidicategory-of: Likewise.
22769         * modules/unictype/bidicategory-test: Likewise.
22770         * modules/unictype/block-list: Likewise.
22771         * modules/unictype/block-test: Likewise.
22772         * modules/unictype/category-C: Likewise.
22773         * modules/unictype/category-Cc: Likewise.
22774         * modules/unictype/category-Cf: Likewise.
22775         * modules/unictype/category-Cn: Likewise.
22776         * modules/unictype/category-Co: Likewise.
22777         * modules/unictype/category-Cs: Likewise.
22778         * modules/unictype/category-L: Likewise.
22779         * modules/unictype/category-Ll: Likewise.
22780         * modules/unictype/category-Lm: Likewise.
22781         * modules/unictype/category-Lo: Likewise.
22782         * modules/unictype/category-Lt: Likewise.
22783         * modules/unictype/category-Lu: Likewise.
22784         * modules/unictype/category-M: Likewise.
22785         * modules/unictype/category-Mc: Likewise.
22786         * modules/unictype/category-Me: Likewise.
22787         * modules/unictype/category-Mn: Likewise.
22788         * modules/unictype/category-N: Likewise.
22789         * modules/unictype/category-Nd: Likewise.
22790         * modules/unictype/category-Nl: Likewise.
22791         * modules/unictype/category-No: Likewise.
22792         * modules/unictype/category-P: Likewise.
22793         * modules/unictype/category-Pc: Likewise.
22794         * modules/unictype/category-Pd: Likewise.
22795         * modules/unictype/category-Pe: Likewise.
22796         * modules/unictype/category-Pf: Likewise.
22797         * modules/unictype/category-Pi: Likewise.
22798         * modules/unictype/category-Po: Likewise.
22799         * modules/unictype/category-Ps: Likewise.
22800         * modules/unictype/category-S: Likewise.
22801         * modules/unictype/category-Sc: Likewise.
22802         * modules/unictype/category-Sk: Likewise.
22803         * modules/unictype/category-Sm: Likewise.
22804         * modules/unictype/category-So: Likewise.
22805         * modules/unictype/category-Z: Likewise.
22806         * modules/unictype/category-Zl: Likewise.
22807         * modules/unictype/category-Zp: Likewise.
22808         * modules/unictype/category-Zs: Likewise.
22809         * modules/unictype/category-and: Likewise.
22810         * modules/unictype/category-and-not: Likewise.
22811         * modules/unictype/category-byname: Likewise.
22812         * modules/unictype/category-name: Likewise.
22813         * modules/unictype/category-none: Likewise.
22814         * modules/unictype/category-of: Likewise.
22815         * modules/unictype/category-or: Likewise.
22816         * modules/unictype/category-test: Likewise.
22817         * modules/unictype/combining-class: Likewise.
22818         * modules/unictype/ctype-alnum: Likewise.
22819         * modules/unictype/ctype-alpha: Likewise.
22820         * modules/unictype/ctype-blank: Likewise.
22821         * modules/unictype/ctype-cntrl: Likewise.
22822         * modules/unictype/ctype-digit: Likewise.
22823         * modules/unictype/ctype-graph: Likewise.
22824         * modules/unictype/ctype-lower: Likewise.
22825         * modules/unictype/ctype-print: Likewise.
22826         * modules/unictype/ctype-punct: Likewise.
22827         * modules/unictype/ctype-space: Likewise.
22828         * modules/unictype/ctype-upper: Likewise.
22829         * modules/unictype/ctype-xdigit: Likewise.
22830         * modules/unictype/decimal-digit: Likewise.
22831         * modules/unictype/digit: Likewise.
22832         * modules/unictype/mirror: Likewise.
22833         * modules/unictype/numeric: Likewise.
22834         * modules/unictype/property-alphabetic: Likewise.
22835         * modules/unictype/property-ascii-hex-digit: Likewise.
22836         * modules/unictype/property-bidi-arabic-digit: Likewise.
22837         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22838         * modules/unictype/property-bidi-block-separator: Likewise.
22839         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22840         * modules/unictype/property-bidi-common-separator: Likewise.
22841         * modules/unictype/property-bidi-control: Likewise.
22842         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22843         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22844         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22845         * modules/unictype/property-bidi-european-digit: Likewise.
22846         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22847         * modules/unictype/property-bidi-left-to-right: Likewise.
22848         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22849         * modules/unictype/property-bidi-other-neutral: Likewise.
22850         * modules/unictype/property-bidi-pdf: Likewise.
22851         * modules/unictype/property-bidi-segment-separator: Likewise.
22852         * modules/unictype/property-bidi-whitespace: Likewise.
22853         * modules/unictype/property-byname: Likewise.
22854         * modules/unictype/property-combining: Likewise.
22855         * modules/unictype/property-composite: Likewise.
22856         * modules/unictype/property-currency-symbol: Likewise.
22857         * modules/unictype/property-dash: Likewise.
22858         * modules/unictype/property-decimal-digit: Likewise.
22859         * modules/unictype/property-default-ignorable-code-point: Likewise.
22860         * modules/unictype/property-deprecated: Likewise.
22861         * modules/unictype/property-diacritic: Likewise.
22862         * modules/unictype/property-extender: Likewise.
22863         * modules/unictype/property-format-control: Likewise.
22864         * modules/unictype/property-grapheme-base: Likewise.
22865         * modules/unictype/property-grapheme-extend: Likewise.
22866         * modules/unictype/property-grapheme-link: Likewise.
22867         * modules/unictype/property-hex-digit: Likewise.
22868         * modules/unictype/property-hyphen: Likewise.
22869         * modules/unictype/property-id-continue: Likewise.
22870         * modules/unictype/property-id-start: Likewise.
22871         * modules/unictype/property-ideographic: Likewise.
22872         * modules/unictype/property-ids-binary-operator: Likewise.
22873         * modules/unictype/property-ids-trinary-operator: Likewise.
22874         * modules/unictype/property-ignorable-control: Likewise.
22875         * modules/unictype/property-iso-control: Likewise.
22876         * modules/unictype/property-join-control: Likewise.
22877         * modules/unictype/property-left-of-pair: Likewise.
22878         * modules/unictype/property-line-separator: Likewise.
22879         * modules/unictype/property-logical-order-exception: Likewise.
22880         * modules/unictype/property-lowercase: Likewise.
22881         * modules/unictype/property-math: Likewise.
22882         * modules/unictype/property-non-break: Likewise.
22883         * modules/unictype/property-not-a-character: Likewise.
22884         * modules/unictype/property-numeric: Likewise.
22885         * modules/unictype/property-other-alphabetic: Likewise.
22886         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22887         * modules/unictype/property-other-grapheme-extend: Likewise.
22888         * modules/unictype/property-other-id-continue: Likewise.
22889         * modules/unictype/property-other-id-start: Likewise.
22890         * modules/unictype/property-other-lowercase: Likewise.
22891         * modules/unictype/property-other-math: Likewise.
22892         * modules/unictype/property-other-uppercase: Likewise.
22893         * modules/unictype/property-paired-punctuation: Likewise.
22894         * modules/unictype/property-paragraph-separator: Likewise.
22895         * modules/unictype/property-pattern-syntax: Likewise.
22896         * modules/unictype/property-pattern-white-space: Likewise.
22897         * modules/unictype/property-private-use: Likewise.
22898         * modules/unictype/property-punctuation: Likewise.
22899         * modules/unictype/property-quotation-mark: Likewise.
22900         * modules/unictype/property-radical: Likewise.
22901         * modules/unictype/property-sentence-terminal: Likewise.
22902         * modules/unictype/property-soft-dotted: Likewise.
22903         * modules/unictype/property-space: Likewise.
22904         * modules/unictype/property-terminal-punctuation: Likewise.
22905         * modules/unictype/property-test: Likewise.
22906         * modules/unictype/property-titlecase: Likewise.
22907         * modules/unictype/property-unassigned-code-value: Likewise.
22908         * modules/unictype/property-unified-ideograph: Likewise.
22909         * modules/unictype/property-uppercase: Likewise.
22910         * modules/unictype/property-variation-selector: Likewise.
22911         * modules/unictype/property-white-space: Likewise.
22912         * modules/unictype/property-xid-continue: Likewise.
22913         * modules/unictype/property-xid-start: Likewise.
22914         * modules/unictype/property-zero-width: Likewise.
22915         * modules/unictype/scripts: Likewise.
22916         * modules/unictype/syntax-c-ident: Likewise.
22917         * modules/unictype/syntax-c-whitespace: Likewise.
22918         * modules/unictype/syntax-java-ident: Likewise.
22919         * modules/unictype/syntax-java-whitespace: Likewise.
22920         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22921         * modules/unilbrk/u8-width-linebreaks: Likewise.
22922         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22923         * modules/unilbrk/u16-width-linebreaks: Likewise.
22924         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22925         * modules/unilbrk/u32-width-linebreaks: Likewise.
22926         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22927         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22928         * modules/uniname/uniname: Likewise.
22929         * modules/uninorm/canonical-decomposition: Likewise.
22930         * modules/uninorm/composition: Likewise.
22931         * modules/uninorm/decomposing-form: Likewise.
22932         * modules/uninorm/decomposition: Likewise.
22933         * modules/uninorm/filter: Likewise.
22934         * modules/uninorm/nfc: Likewise.
22935         * modules/uninorm/nfd: Likewise.
22936         * modules/uninorm/nfkc: Likewise.
22937         * modules/uninorm/nfkd: Likewise.
22938         * modules/uninorm/u8-normalize: Likewise.
22939         * modules/uninorm/u8-normcmp: Likewise.
22940         * modules/uninorm/u8-normcoll: Likewise.
22941         * modules/uninorm/u8-normxfrm: Likewise.
22942         * modules/uninorm/u16-normalize: Likewise.
22943         * modules/uninorm/u16-normcmp: Likewise.
22944         * modules/uninorm/u16-normcoll: Likewise.
22945         * modules/uninorm/u16-normxfrm: Likewise.
22946         * modules/uninorm/u32-normalize: Likewise.
22947         * modules/uninorm/u32-normcmp: Likewise.
22948         * modules/uninorm/u32-normcoll: Likewise.
22949         * modules/uninorm/u32-normxfrm: Likewise.
22950         * modules/unistdio/u8-asnprintf: Likewise.
22951         * modules/unistdio/u8-asprintf: Likewise.
22952         * modules/unistdio/u8-snprintf: Likewise.
22953         * modules/unistdio/u8-sprintf: Likewise.
22954         * modules/unistdio/u8-u8-asnprintf: Likewise.
22955         * modules/unistdio/u8-u8-asprintf: Likewise.
22956         * modules/unistdio/u8-u8-snprintf: Likewise.
22957         * modules/unistdio/u8-u8-sprintf: Likewise.
22958         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22959         * modules/unistdio/u8-u8-vasprintf: Likewise.
22960         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22961         * modules/unistdio/u8-u8-vsprintf: Likewise.
22962         * modules/unistdio/u8-vasnprintf: Likewise.
22963         * modules/unistdio/u8-vasprintf: Likewise.
22964         * modules/unistdio/u8-vsnprintf: Likewise.
22965         * modules/unistdio/u8-vsprintf: Likewise.
22966         * modules/unistdio/u16-asnprintf: Likewise.
22967         * modules/unistdio/u16-asprintf: Likewise.
22968         * modules/unistdio/u16-snprintf: Likewise.
22969         * modules/unistdio/u16-sprintf: Likewise.
22970         * modules/unistdio/u16-u16-asnprintf: Likewise.
22971         * modules/unistdio/u16-u16-asprintf: Likewise.
22972         * modules/unistdio/u16-u16-snprintf: Likewise.
22973         * modules/unistdio/u16-u16-sprintf: Likewise.
22974         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22975         * modules/unistdio/u16-u16-vasprintf: Likewise.
22976         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22977         * modules/unistdio/u16-u16-vsprintf: Likewise.
22978         * modules/unistdio/u16-vasnprintf: Likewise.
22979         * modules/unistdio/u16-vasprintf: Likewise.
22980         * modules/unistdio/u16-vsnprintf: Likewise.
22981         * modules/unistdio/u16-vsprintf: Likewise.
22982         * modules/unistdio/u32-asnprintf: Likewise.
22983         * modules/unistdio/u32-asprintf: Likewise.
22984         * modules/unistdio/u32-snprintf: Likewise.
22985         * modules/unistdio/u32-sprintf: Likewise.
22986         * modules/unistdio/u32-u32-asnprintf: Likewise.
22987         * modules/unistdio/u32-u32-asprintf: Likewise.
22988         * modules/unistdio/u32-u32-snprintf: Likewise.
22989         * modules/unistdio/u32-u32-sprintf: Likewise.
22990         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22991         * modules/unistdio/u32-u32-vasprintf: Likewise.
22992         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22993         * modules/unistdio/u32-u32-vsprintf: Likewise.
22994         * modules/unistdio/u32-vasnprintf: Likewise.
22995         * modules/unistdio/u32-vasprintf: Likewise.
22996         * modules/unistdio/u32-vsnprintf: Likewise.
22997         * modules/unistdio/u32-vsprintf: Likewise.
22998         * modules/unistdio/ulc-asnprintf: Likewise.
22999         * modules/unistdio/ulc-asprintf: Likewise.
23000         * modules/unistdio/ulc-fprintf: Likewise.
23001         * modules/unistdio/ulc-snprintf: Likewise.
23002         * modules/unistdio/ulc-sprintf: Likewise.
23003         * modules/unistdio/ulc-vasnprintf: Likewise.
23004         * modules/unistdio/ulc-vasprintf: Likewise.
23005         * modules/unistdio/ulc-vfprintf: Likewise.
23006         * modules/unistdio/ulc-vsnprintf: Likewise.
23007         * modules/unistdio/ulc-vsprintf: Likewise.
23008         * modules/unistr/u8-check: Likewise.
23009         * modules/unistr/u8-chr: Likewise.
23010         * modules/unistr/u8-cmp: Likewise.
23011         * modules/unistr/u8-cmp2: Likewise.
23012         * modules/unistr/u8-cpy: Likewise.
23013         * modules/unistr/u8-cpy-alloc: Likewise.
23014         * modules/unistr/u8-endswith: Likewise.
23015         * modules/unistr/u8-mblen: Likewise.
23016         * modules/unistr/u8-mbsnlen: Likewise.
23017         * modules/unistr/u8-mbtouc: Likewise.
23018         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23019         * modules/unistr/u8-mbtoucr: Likewise.
23020         * modules/unistr/u8-move: Likewise.
23021         * modules/unistr/u8-next: Likewise.
23022         * modules/unistr/u8-prev: Likewise.
23023         * modules/unistr/u8-set: Likewise.
23024         * modules/unistr/u8-startswith: Likewise.
23025         * modules/unistr/u8-stpcpy: Likewise.
23026         * modules/unistr/u8-stpncpy: Likewise.
23027         * modules/unistr/u8-strcat: Likewise.
23028         * modules/unistr/u8-strchr: Likewise.
23029         * modules/unistr/u8-strcmp: Likewise.
23030         * modules/unistr/u8-strcoll: Likewise.
23031         * modules/unistr/u8-strcpy: Likewise.
23032         * modules/unistr/u8-strcspn: Likewise.
23033         * modules/unistr/u8-strdup: Likewise.
23034         * modules/unistr/u8-strlen: Likewise.
23035         * modules/unistr/u8-strmblen: Likewise.
23036         * modules/unistr/u8-strmbtouc: Likewise.
23037         * modules/unistr/u8-strncat: Likewise.
23038         * modules/unistr/u8-strncmp: Likewise.
23039         * modules/unistr/u8-strncpy: Likewise.
23040         * modules/unistr/u8-strnlen: Likewise.
23041         * modules/unistr/u8-strpbrk: Likewise.
23042         * modules/unistr/u8-strrchr: Likewise.
23043         * modules/unistr/u8-strspn: Likewise.
23044         * modules/unistr/u8-strstr: Likewise.
23045         * modules/unistr/u8-strtok: Likewise.
23046         * modules/unistr/u8-to-u16: Likewise.
23047         * modules/unistr/u8-to-u32: Likewise.
23048         * modules/unistr/u8-uctomb: Likewise.
23049         * modules/unistr/u16-check: Likewise.
23050         * modules/unistr/u16-chr: Likewise.
23051         * modules/unistr/u16-cmp: Likewise.
23052         * modules/unistr/u16-cmp2: Likewise.
23053         * modules/unistr/u16-cpy: Likewise.
23054         * modules/unistr/u16-cpy-alloc: Likewise.
23055         * modules/unistr/u16-endswith: Likewise.
23056         * modules/unistr/u16-mblen: Likewise.
23057         * modules/unistr/u16-mbsnlen: Likewise.
23058         * modules/unistr/u16-mbtouc: Likewise.
23059         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23060         * modules/unistr/u16-mbtoucr: Likewise.
23061         * modules/unistr/u16-move: Likewise.
23062         * modules/unistr/u16-next: Likewise.
23063         * modules/unistr/u16-prev: Likewise.
23064         * modules/unistr/u16-set: Likewise.
23065         * modules/unistr/u16-startswith: Likewise.
23066         * modules/unistr/u16-stpcpy: Likewise.
23067         * modules/unistr/u16-stpncpy: Likewise.
23068         * modules/unistr/u16-strcat: Likewise.
23069         * modules/unistr/u16-strchr: Likewise.
23070         * modules/unistr/u16-strcmp: Likewise.
23071         * modules/unistr/u16-strcoll: Likewise.
23072         * modules/unistr/u16-strcpy: Likewise.
23073         * modules/unistr/u16-strcspn: Likewise.
23074         * modules/unistr/u16-strdup: Likewise.
23075         * modules/unistr/u16-strlen: Likewise.
23076         * modules/unistr/u16-strmblen: Likewise.
23077         * modules/unistr/u16-strmbtouc: Likewise.
23078         * modules/unistr/u16-strncat: Likewise.
23079         * modules/unistr/u16-strncmp: Likewise.
23080         * modules/unistr/u16-strncpy: Likewise.
23081         * modules/unistr/u16-strnlen: Likewise.
23082         * modules/unistr/u16-strpbrk: Likewise.
23083         * modules/unistr/u16-strrchr: Likewise.
23084         * modules/unistr/u16-strspn: Likewise.
23085         * modules/unistr/u16-strstr: Likewise.
23086         * modules/unistr/u16-strtok: Likewise.
23087         * modules/unistr/u16-to-u32: Likewise.
23088         * modules/unistr/u16-to-u8: Likewise.
23089         * modules/unistr/u16-uctomb: Likewise.
23090         * modules/unistr/u32-check: Likewise.
23091         * modules/unistr/u32-chr: Likewise.
23092         * modules/unistr/u32-cmp: Likewise.
23093         * modules/unistr/u32-cmp2: Likewise.
23094         * modules/unistr/u32-cpy: Likewise.
23095         * modules/unistr/u32-cpy-alloc: Likewise.
23096         * modules/unistr/u32-endswith: Likewise.
23097         * modules/unistr/u32-mblen: Likewise.
23098         * modules/unistr/u32-mbsnlen: Likewise.
23099         * modules/unistr/u32-mbtouc: Likewise.
23100         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23101         * modules/unistr/u32-mbtoucr: Likewise.
23102         * modules/unistr/u32-move: Likewise.
23103         * modules/unistr/u32-next: Likewise.
23104         * modules/unistr/u32-prev: Likewise.
23105         * modules/unistr/u32-set: Likewise.
23106         * modules/unistr/u32-startswith: Likewise.
23107         * modules/unistr/u32-stpcpy: Likewise.
23108         * modules/unistr/u32-stpncpy: Likewise.
23109         * modules/unistr/u32-strcat: Likewise.
23110         * modules/unistr/u32-strchr: Likewise.
23111         * modules/unistr/u32-strcmp: Likewise.
23112         * modules/unistr/u32-strcoll: Likewise.
23113         * modules/unistr/u32-strcpy: Likewise.
23114         * modules/unistr/u32-strcspn: Likewise.
23115         * modules/unistr/u32-strdup: Likewise.
23116         * modules/unistr/u32-strlen: Likewise.
23117         * modules/unistr/u32-strmblen: Likewise.
23118         * modules/unistr/u32-strmbtouc: Likewise.
23119         * modules/unistr/u32-strncat: Likewise.
23120         * modules/unistr/u32-strncmp: Likewise.
23121         * modules/unistr/u32-strncpy: Likewise.
23122         * modules/unistr/u32-strnlen: Likewise.
23123         * modules/unistr/u32-strpbrk: Likewise.
23124         * modules/unistr/u32-strrchr: Likewise.
23125         * modules/unistr/u32-strspn: Likewise.
23126         * modules/unistr/u32-strstr: Likewise.
23127         * modules/unistr/u32-strtok: Likewise.
23128         * modules/unistr/u32-to-u16: Likewise.
23129         * modules/unistr/u32-to-u8: Likewise.
23130         * modules/unistr/u32-uctomb: Likewise.
23131         * modules/uniwbrk/u8-wordbreaks: Likewise.
23132         * modules/uniwbrk/u16-wordbreaks: Likewise.
23133         * modules/uniwbrk/u32-wordbreaks: Likewise.
23134         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23135         * modules/uniwbrk/wordbreak-property: Likewise.
23136         * modules/uniwidth/u8-strwidth: Likewise.
23137         * modules/uniwidth/u8-width: Likewise.
23138         * modules/uniwidth/u16-strwidth: Likewise.
23139         * modules/uniwidth/u16-width: Likewise.
23140         * modules/uniwidth/u32-strwidth: Likewise.
23141         * modules/uniwidth/u32-width: Likewise.
23142         * modules/uniwidth/width: Likewise.
23143         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23144         with $(LIBUNISTRING).
23145         * modules/unicase/ignorable-tests: Likewise.
23146         * modules/unicase/locale-language-tests: Likewise.
23147         * modules/unicase/tolower-tests: Likewise.
23148         * modules/unicase/totitle-tests: Likewise.
23149         * modules/unicase/toupper-tests: Likewise.
23150         * modules/unicase/u8-casecmp-tests: Likewise.
23151         * modules/unicase/u8-casecoll-tests: Likewise.
23152         * modules/unicase/u8-casefold-tests: Likewise.
23153         * modules/unicase/u8-is-cased-tests: Likewise.
23154         * modules/unicase/u8-is-casefolded-tests: Likewise.
23155         * modules/unicase/u8-is-lowercase-tests: Likewise.
23156         * modules/unicase/u8-is-titlecase-tests: Likewise.
23157         * modules/unicase/u8-is-uppercase-tests: Likewise.
23158         * modules/unicase/u8-tolower-tests: Likewise.
23159         * modules/unicase/u8-totitle-tests: Likewise.
23160         * modules/unicase/u8-toupper-tests: Likewise.
23161         * modules/unicase/u16-casecmp-tests: Likewise.
23162         * modules/unicase/u16-casecoll-tests: Likewise.
23163         * modules/unicase/u16-casefold-tests: Likewise.
23164         * modules/unicase/u16-is-cased-tests: Likewise.
23165         * modules/unicase/u16-is-casefolded-tests: Likewise.
23166         * modules/unicase/u16-is-lowercase-tests: Likewise.
23167         * modules/unicase/u16-is-titlecase-tests: Likewise.
23168         * modules/unicase/u16-is-uppercase-tests: Likewise.
23169         * modules/unicase/u16-tolower-tests: Likewise.
23170         * modules/unicase/u16-totitle-tests: Likewise.
23171         * modules/unicase/u16-toupper-tests: Likewise.
23172         * modules/unicase/u32-casecmp-tests: Likewise.
23173         * modules/unicase/u32-casecoll-tests: Likewise.
23174         * modules/unicase/u32-casefold-tests: Likewise.
23175         * modules/unicase/u32-is-cased-tests: Likewise.
23176         * modules/unicase/u32-is-casefolded-tests: Likewise.
23177         * modules/unicase/u32-is-lowercase-tests: Likewise.
23178         * modules/unicase/u32-is-titlecase-tests: Likewise.
23179         * modules/unicase/u32-is-uppercase-tests: Likewise.
23180         * modules/unicase/u32-tolower-tests: Likewise.
23181         * modules/unicase/u32-totitle-tests: Likewise.
23182         * modules/unicase/u32-toupper-tests: Likewise.
23183         * modules/unicase/ulc-casecmp-tests: Likewise.
23184         * modules/unicase/ulc-casecoll-tests: Likewise.
23185         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23186         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23187         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23188         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23189         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23190         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23191         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23192         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23193         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23194         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23195         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23196         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23197         * modules/unictype/bidicategory-byname-tests: Likewise.
23198         * modules/unictype/bidicategory-name-tests: Likewise.
23199         * modules/unictype/bidicategory-of-tests: Likewise.
23200         * modules/unictype/bidicategory-test-tests: Likewise.
23201         * modules/unictype/block-list-tests: Likewise.
23202         * modules/unictype/block-of-tests: Likewise.
23203         * modules/unictype/block-test-tests: Likewise.
23204         * modules/unictype/category-C-tests: Likewise.
23205         * modules/unictype/category-Cc-tests: Likewise.
23206         * modules/unictype/category-Cf-tests: Likewise.
23207         * modules/unictype/category-Cn-tests: Likewise.
23208         * modules/unictype/category-Co-tests: Likewise.
23209         * modules/unictype/category-Cs-tests: Likewise.
23210         * modules/unictype/category-L-tests: Likewise.
23211         * modules/unictype/category-Ll-tests: Likewise.
23212         * modules/unictype/category-Lm-tests: Likewise.
23213         * modules/unictype/category-Lo-tests: Likewise.
23214         * modules/unictype/category-Lt-tests: Likewise.
23215         * modules/unictype/category-Lu-tests: Likewise.
23216         * modules/unictype/category-M-tests: Likewise.
23217         * modules/unictype/category-Mc-tests: Likewise.
23218         * modules/unictype/category-Me-tests: Likewise.
23219         * modules/unictype/category-Mn-tests: Likewise.
23220         * modules/unictype/category-N-tests: Likewise.
23221         * modules/unictype/category-Nd-tests: Likewise.
23222         * modules/unictype/category-Nl-tests: Likewise.
23223         * modules/unictype/category-No-tests: Likewise.
23224         * modules/unictype/category-P-tests: Likewise.
23225         * modules/unictype/category-Pc-tests: Likewise.
23226         * modules/unictype/category-Pd-tests: Likewise.
23227         * modules/unictype/category-Pe-tests: Likewise.
23228         * modules/unictype/category-Pf-tests: Likewise.
23229         * modules/unictype/category-Pi-tests: Likewise.
23230         * modules/unictype/category-Po-tests: Likewise.
23231         * modules/unictype/category-Ps-tests: Likewise.
23232         * modules/unictype/category-S-tests: Likewise.
23233         * modules/unictype/category-Sc-tests: Likewise.
23234         * modules/unictype/category-Sk-tests: Likewise.
23235         * modules/unictype/category-Sm-tests: Likewise.
23236         * modules/unictype/category-So-tests: Likewise.
23237         * modules/unictype/category-Z-tests: Likewise.
23238         * modules/unictype/category-Zl-tests: Likewise.
23239         * modules/unictype/category-Zp-tests: Likewise.
23240         * modules/unictype/category-Zs-tests: Likewise.
23241         * modules/unictype/category-and-not-tests: Likewise.
23242         * modules/unictype/category-and-tests: Likewise.
23243         * modules/unictype/category-byname-tests: Likewise.
23244         * modules/unictype/category-name-tests: Likewise.
23245         * modules/unictype/category-none-tests: Likewise.
23246         * modules/unictype/category-of-tests: Likewise.
23247         * modules/unictype/category-or-tests: Likewise.
23248         * modules/unictype/category-test-withtable-tests: Likewise.
23249         * modules/unictype/combining-class-tests: Likewise.
23250         * modules/unictype/ctype-alnum-tests: Likewise.
23251         * modules/unictype/ctype-alpha-tests: Likewise.
23252         * modules/unictype/ctype-blank-tests: Likewise.
23253         * modules/unictype/ctype-cntrl-tests: Likewise.
23254         * modules/unictype/ctype-digit-tests: Likewise.
23255         * modules/unictype/ctype-graph-tests: Likewise.
23256         * modules/unictype/ctype-lower-tests: Likewise.
23257         * modules/unictype/ctype-print-tests: Likewise.
23258         * modules/unictype/ctype-punct-tests: Likewise.
23259         * modules/unictype/ctype-space-tests: Likewise.
23260         * modules/unictype/ctype-upper-tests: Likewise.
23261         * modules/unictype/ctype-xdigit-tests: Likewise.
23262         * modules/unictype/decimal-digit-tests: Likewise.
23263         * modules/unictype/digit-tests: Likewise.
23264         * modules/unictype/mirror-tests: Likewise.
23265         * modules/unictype/numeric-tests: Likewise.
23266         * modules/unictype/property-alphabetic-tests: Likewise.
23267         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23268         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23269         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23270         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23271         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23272         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23273         * modules/unictype/property-bidi-control-tests: Likewise.
23274         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23275         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23276         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23277         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23278         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23279         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23280         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23281         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23282         * modules/unictype/property-bidi-pdf-tests: Likewise.
23283         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23284         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23285         * modules/unictype/property-byname-tests: Likewise.
23286         * modules/unictype/property-combining-tests: Likewise.
23287         * modules/unictype/property-composite-tests: Likewise.
23288         * modules/unictype/property-currency-symbol-tests: Likewise.
23289         * modules/unictype/property-dash-tests: Likewise.
23290         * modules/unictype/property-decimal-digit-tests: Likewise.
23291         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23292         * modules/unictype/property-deprecated-tests: Likewise.
23293         * modules/unictype/property-diacritic-tests: Likewise.
23294         * modules/unictype/property-extender-tests: Likewise.
23295         * modules/unictype/property-format-control-tests: Likewise.
23296         * modules/unictype/property-grapheme-base-tests: Likewise.
23297         * modules/unictype/property-grapheme-extend-tests: Likewise.
23298         * modules/unictype/property-grapheme-link-tests: Likewise.
23299         * modules/unictype/property-hex-digit-tests: Likewise.
23300         * modules/unictype/property-hyphen-tests: Likewise.
23301         * modules/unictype/property-id-continue-tests: Likewise.
23302         * modules/unictype/property-id-start-tests: Likewise.
23303         * modules/unictype/property-ideographic-tests: Likewise.
23304         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23305         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23306         * modules/unictype/property-ignorable-control-tests: Likewise.
23307         * modules/unictype/property-iso-control-tests: Likewise.
23308         * modules/unictype/property-join-control-tests: Likewise.
23309         * modules/unictype/property-left-of-pair-tests: Likewise.
23310         * modules/unictype/property-line-separator-tests: Likewise.
23311         * modules/unictype/property-logical-order-exception-tests: Likewise.
23312         * modules/unictype/property-lowercase-tests: Likewise.
23313         * modules/unictype/property-math-tests: Likewise.
23314         * modules/unictype/property-non-break-tests: Likewise.
23315         * modules/unictype/property-not-a-character-tests: Likewise.
23316         * modules/unictype/property-numeric-tests: Likewise.
23317         * modules/unictype/property-other-alphabetic-tests: Likewise.
23318         * modules/unictype/property-other-default-ignorable-code-point-tests:
23319         Likewise.
23320         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23321         * modules/unictype/property-other-id-continue-tests: Likewise.
23322         * modules/unictype/property-other-id-start-tests: Likewise.
23323         * modules/unictype/property-other-lowercase-tests: Likewise.
23324         * modules/unictype/property-other-math-tests: Likewise.
23325         * modules/unictype/property-other-uppercase-tests: Likewise.
23326         * modules/unictype/property-paired-punctuation-tests: Likewise.
23327         * modules/unictype/property-paragraph-separator-tests: Likewise.
23328         * modules/unictype/property-pattern-syntax-tests: Likewise.
23329         * modules/unictype/property-pattern-white-space-tests: Likewise.
23330         * modules/unictype/property-private-use-tests: Likewise.
23331         * modules/unictype/property-punctuation-tests: Likewise.
23332         * modules/unictype/property-quotation-mark-tests: Likewise.
23333         * modules/unictype/property-radical-tests: Likewise.
23334         * modules/unictype/property-sentence-terminal-tests: Likewise.
23335         * modules/unictype/property-soft-dotted-tests: Likewise.
23336         * modules/unictype/property-space-tests: Likewise.
23337         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23338         * modules/unictype/property-test-tests: Likewise.
23339         * modules/unictype/property-titlecase-tests: Likewise.
23340         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23341         * modules/unictype/property-unified-ideograph-tests: Likewise.
23342         * modules/unictype/property-uppercase-tests: Likewise.
23343         * modules/unictype/property-variation-selector-tests: Likewise.
23344         * modules/unictype/property-white-space-tests: Likewise.
23345         * modules/unictype/property-xid-continue-tests: Likewise.
23346         * modules/unictype/property-xid-start-tests: Likewise.
23347         * modules/unictype/property-zero-width-tests: Likewise.
23348         * modules/unictype/scripts-tests: Likewise.
23349         * modules/unictype/syntax-c-ident-tests: Likewise.
23350         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23351         * modules/unictype/syntax-java-ident-tests: Likewise.
23352         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23353         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23354         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23355         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23356         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23357         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23358         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23359         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23360         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23361         * modules/uniname/uniname-tests: Likewise.
23362         * modules/uninorm/canonical-decomposition-tests: Likewise.
23363         * modules/uninorm/compat-decomposition-tests: Likewise.
23364         * modules/uninorm/composition-tests: Likewise.
23365         * modules/uninorm/decomposing-form-tests: Likewise.
23366         * modules/uninorm/decomposition-tests: Likewise.
23367         * modules/uninorm/filter-tests: Likewise.
23368         * modules/uninorm/nfc-tests: Likewise.
23369         * modules/uninorm/nfd-tests: Likewise.
23370         * modules/uninorm/nfkc-tests: Likewise.
23371         * modules/uninorm/nfkd-tests: Likewise.
23372         * modules/uninorm/u8-normcmp-tests: Likewise.
23373         * modules/uninorm/u8-normcoll-tests: Likewise.
23374         * modules/uninorm/u16-normcmp-tests: Likewise.
23375         * modules/uninorm/u16-normcoll-tests: Likewise.
23376         * modules/uninorm/u32-normcmp-tests: Likewise.
23377         * modules/uninorm/u32-normcoll-tests: Likewise.
23378         * modules/unistdio/u8-asnprintf-tests: Likewise.
23379         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23380         * modules/unistdio/u8-vasprintf-tests: Likewise.
23381         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23382         * modules/unistdio/u8-vsprintf-tests: Likewise.
23383         * modules/unistdio/u16-asnprintf-tests: Likewise.
23384         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23385         * modules/unistdio/u16-vasprintf-tests: Likewise.
23386         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23387         * modules/unistdio/u16-vsprintf-tests: Likewise.
23388         * modules/unistdio/u32-asnprintf-tests: Likewise.
23389         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23390         * modules/unistdio/u32-vasprintf-tests: Likewise.
23391         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23392         * modules/unistdio/u32-vsprintf-tests: Likewise.
23393         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23394         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23395         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23396         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23397         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23398         * modules/unistr/u8-check-tests: Likewise.
23399         * modules/unistr/u8-chr-tests: Likewise.
23400         * modules/unistr/u8-cmp-tests: Likewise.
23401         * modules/unistr/u8-cmp2-tests: Likewise.
23402         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23403         * modules/unistr/u8-cpy-tests: Likewise.
23404         * modules/unistr/u8-mblen-tests: Likewise.
23405         * modules/unistr/u8-mbsnlen-tests: Likewise.
23406         * modules/unistr/u8-mbtouc-tests: Likewise.
23407         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23408         * modules/unistr/u8-mbtoucr-tests: Likewise.
23409         * modules/unistr/u8-move-tests: Likewise.
23410         * modules/unistr/u8-next-tests: Likewise.
23411         * modules/unistr/u8-prev-tests: Likewise.
23412         * modules/unistr/u8-set-tests: Likewise.
23413         * modules/unistr/u8-stpcpy-tests: Likewise.
23414         * modules/unistr/u8-stpncpy-tests: Likewise.
23415         * modules/unistr/u8-strcat-tests: Likewise.
23416         * modules/unistr/u8-strcmp-tests: Likewise.
23417         * modules/unistr/u8-strcoll-tests: Likewise.
23418         * modules/unistr/u8-strcpy-tests: Likewise.
23419         * modules/unistr/u8-strdup-tests: Likewise.
23420         * modules/unistr/u8-strlen-tests: Likewise.
23421         * modules/unistr/u8-strmblen-tests: Likewise.
23422         * modules/unistr/u8-strmbtouc-tests: Likewise.
23423         * modules/unistr/u8-strncat-tests: Likewise.
23424         * modules/unistr/u8-strncmp-tests: Likewise.
23425         * modules/unistr/u8-strncpy-tests: Likewise.
23426         * modules/unistr/u8-strnlen-tests: Likewise.
23427         * modules/unistr/u8-to-u16-tests: Likewise.
23428         * modules/unistr/u8-to-u32-tests: Likewise.
23429         * modules/unistr/u8-uctomb-tests: Likewise.
23430         * modules/unistr/u16-check-tests: Likewise.
23431         * modules/unistr/u16-chr-tests: Likewise.
23432         * modules/unistr/u16-cmp-tests: Likewise.
23433         * modules/unistr/u16-cmp2-tests: Likewise.
23434         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23435         * modules/unistr/u16-cpy-tests: Likewise.
23436         * modules/unistr/u16-mblen-tests: Likewise.
23437         * modules/unistr/u16-mbsnlen-tests: Likewise.
23438         * modules/unistr/u16-mbtouc-tests: Likewise.
23439         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23440         * modules/unistr/u16-mbtoucr-tests: Likewise.
23441         * modules/unistr/u16-move-tests: Likewise.
23442         * modules/unistr/u16-next-tests: Likewise.
23443         * modules/unistr/u16-prev-tests: Likewise.
23444         * modules/unistr/u16-set-tests: Likewise.
23445         * modules/unistr/u16-stpcpy-tests: Likewise.
23446         * modules/unistr/u16-stpncpy-tests: Likewise.
23447         * modules/unistr/u16-strcat-tests: Likewise.
23448         * modules/unistr/u16-strcmp-tests: Likewise.
23449         * modules/unistr/u16-strcoll-tests: Likewise.
23450         * modules/unistr/u16-strcpy-tests: Likewise.
23451         * modules/unistr/u16-strdup-tests: Likewise.
23452         * modules/unistr/u16-strlen-tests: Likewise.
23453         * modules/unistr/u16-strmblen-tests: Likewise.
23454         * modules/unistr/u16-strmbtouc-tests: Likewise.
23455         * modules/unistr/u16-strncat-tests: Likewise.
23456         * modules/unistr/u16-strncmp-tests: Likewise.
23457         * modules/unistr/u16-strncpy-tests: Likewise.
23458         * modules/unistr/u16-strnlen-tests: Likewise.
23459         * modules/unistr/u16-to-u32-tests: Likewise.
23460         * modules/unistr/u16-to-u8-tests: Likewise.
23461         * modules/unistr/u16-uctomb-tests: Likewise.
23462         * modules/unistr/u32-check-tests: Likewise.
23463         * modules/unistr/u32-chr-tests: Likewise.
23464         * modules/unistr/u32-cmp-tests: Likewise.
23465         * modules/unistr/u32-cmp2-tests: Likewise.
23466         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23467         * modules/unistr/u32-cpy-tests: Likewise.
23468         * modules/unistr/u32-mblen-tests: Likewise.
23469         * modules/unistr/u32-mbsnlen-tests: Likewise.
23470         * modules/unistr/u32-mbtouc-tests: Likewise.
23471         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23472         * modules/unistr/u32-mbtoucr-tests: Likewise.
23473         * modules/unistr/u32-move-tests: Likewise.
23474         * modules/unistr/u32-next-tests: Likewise.
23475         * modules/unistr/u32-prev-tests: Likewise.
23476         * modules/unistr/u32-set-tests: Likewise.
23477         * modules/unistr/u32-stpcpy-tests: Likewise.
23478         * modules/unistr/u32-stpncpy-tests: Likewise.
23479         * modules/unistr/u32-strcat-tests: Likewise.
23480         * modules/unistr/u32-strcmp-tests: Likewise.
23481         * modules/unistr/u32-strcoll-tests: Likewise.
23482         * modules/unistr/u32-strcpy-tests: Likewise.
23483         * modules/unistr/u32-strdup-tests: Likewise.
23484         * modules/unistr/u32-strlen-tests: Likewise.
23485         * modules/unistr/u32-strmblen-tests: Likewise.
23486         * modules/unistr/u32-strmbtouc-tests: Likewise.
23487         * modules/unistr/u32-strncat-tests: Likewise.
23488         * modules/unistr/u32-strncmp-tests: Likewise.
23489         * modules/unistr/u32-strncpy-tests: Likewise.
23490         * modules/unistr/u32-strnlen-tests: Likewise.
23491         * modules/unistr/u32-to-u16-tests: Likewise.
23492         * modules/unistr/u32-to-u8-tests: Likewise.
23493         * modules/unistr/u32-uctomb-tests: Likewise.
23494         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23495         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23496         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23497         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23498         * modules/uniwidth/u8-strwidth-tests: Likewise.
23499         * modules/uniwidth/u8-width-tests: Likewise.
23500         * modules/uniwidth/u16-strwidth-tests: Likewise.
23501         * modules/uniwidth/u16-width-tests: Likewise.
23502         * modules/uniwidth/u32-strwidth-tests: Likewise.
23503         * modules/uniwidth/u32-width-tests: Likewise.
23504         * modules/uniwidth/width-tests: Likewise.
23505
23506 2010-05-18  Richard Jones  <rjones@redhat.com>
23507
23508         doc: users.txt: list hivex
23509         * users.txt: Add hivex.
23510
23511 2010-05-18  Richard Jones  <rjones@redhat.com>
23512
23513         doc: users.txt: list febootstrap
23514         * users.txt: Add febootstrap.
23515
23516 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23517
23518         bootstrap: fix an error when gnulib is not used as a git submodule
23519         * build-aux/bootstrap (gnulib_path): If its length is zero then
23520         assign "gnulib" to it.
23521         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23522
23523 2010-05-16  Bruno Haible  <bruno@clisp.org>
23524
23525         Avoid autoconf warnings about AM_ICONV.
23526         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23527         2.64.
23528
23529 2010-05-16  Bruno Haible  <bruno@clisp.org>
23530
23531         absolute-header: Make the macro usable in more situations.
23532         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23533         from gl_ABSOLUTE_HEADER.
23534         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23535
23536 2010-05-16  James Youngman  <jay@gnu.org>
23537
23538         doc: update users.txt
23539         * users.txt: Add CSSC.
23540
23541 2010-05-16  Jim Meyering  <meyering@redhat.com>
23542
23543         init.sh: fix an error in the previous change; add more comments
23544         * tests/init.sh: Compare exit code in loop against 9, not 2.
23545         Patch by Bruno Haible.
23546         Make the two tests more similar by adding an empty "then" clause.
23547         Add comments.
23548
23549         init.sh: avoid unnecessary shell re-exec
23550         * tests/init.sh: Improve the re-exec-required check to first test the
23551         current shell.  If it passes the test, do not search for a shell that
23552         does pass, and do not re-exec.  This test is particularly contorted to
23553         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23554         of $(...) evokes a syntax error and causes immediate shell exit with
23555         status 2.  Bruno Haible reported that the re-exec made it impossible
23556         to single-step through any init.sh-using script.
23557
23558 2010-05-16  Bruno Haible  <bruno@clisp.org>
23559
23560         Fix collision between gnulib's and libintl's printf replacements.
23561         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23562         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23563         (printf): When using GNU C, map the __printf__ function to rpl_printf
23564         via __asm__. When not using GNU C, define rpl_printf instead of
23565         __printf__.
23566         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23567         commit.
23568         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23569         commit.
23570         * m4/asm-underscore.m4: New file.
23571         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23572         * modules/stdio (Files): Add m4/asm-underscore.m4.
23573         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23574         Reported by Ben Pfaff.
23575
23576 2010-05-16  Bruno Haible  <bruno@clisp.org>
23577
23578         verify: Avoid skipping the test on openSUSE 11.0.
23579         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23580
23581 2010-05-13  Bruno Haible  <bruno@clisp.org>
23582
23583         Avoid useless warnings from G++.
23584         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23585         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23586         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23587
23588 2010-05-11  Jim Meyering  <meyering@redhat.com>
23589
23590         maint.mk: tweak preceding change
23591         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23592         regexps tighter by anchoring at EOL, and make the new group "shy"
23593         for slightly decreased overhead.
23594
23595 2010-05-11  Eric Blake  <eblake@redhat.com>
23596
23597         maint.mk: gnulib doesn't guarantee NSIG
23598         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23599
23600 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23601
23602         test-pwrite.c: Remove unused variable declaration.
23603         * tests/test-pwrite.c (main): Remove read_buf declaration.
23604
23605         Remove useless test-pwrite.sh file.
23606         * tests/test-pwrite.sh: Delete file.
23607         * modules/pwrite-tests: Remove references.
23608         Reported by Bruno Haible.
23609
23610 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23611
23612         init.sh: fix a typo
23613         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23614
23615 2010-05-10  Jim Meyering  <meyering@redhat.com>
23616
23617         maint.mk: avoid using a temporary file in the always-defined-macros check
23618         * top/maint.mk (.re-defmac): Remove rule.
23619         (gl_trap_): Remove definition.
23620         (sc_prohibit_always-defined_macros): Rewrite not to create and
23621         depend on a temporary file.  Instead, depend on GNU grep's ability
23622         to read a list of regular expressions from stdin when given "-f -".
23623
23624 2010-05-09  Bruno Haible  <bruno@clisp.org>
23625
23626         Update to GNU gettext 0.18, part 1.
23627         * m4/gettext.m4: Update to GNU gettext 0.18.
23628         * m4/intl.m4: Likewise.
23629         * m4/po.m4: Likewise.
23630         * modules/gettext (Files): Add m4/fcntl-o.m4.
23631         (configure.ac): Require gettext infrastructure from version 0.18.
23632
23633 2010-05-09  Jim Meyering  <meyering@redhat.com>
23634
23635         init.sh: enable MALLOC_PERTURB_
23636         * tests/init.sh: Enable glibc's malloc-perturbing option.
23637
23638         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23639         With my recent change in init.sh from the two-line form:
23640             -#   : ${srcdir=.}
23641             -#   . "$srcdir/init.sh"; path_prepend_ .
23642             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23643         I noticed that using the one-line form would cause this test
23644         to fail with a false-positive, or to stop working altogether,
23645         depending on whether help-version changed or all the tests did.
23646         * top/maint.mk (_hv_regex): Remove this definition.
23647         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23648         (_hv_regex_strong): Use a stronger regex to check for conformance.
23649         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23650         Give a separate diagnostic for lack of conforming use.
23651
23652         maint.mk: prohibit definition of symbols defined by gnulib
23653         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23654         definition of symbols defined by gnulib.
23655
23656 2010-05-09  Bruno Haible  <bruno@clisp.org>
23657
23658         acl: Avoid test failure on Cygwin-hosted mingw.
23659         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23660
23661 2010-05-09  Bruno Haible  <bruno@clisp.org>
23662
23663         error: Use system's fcntl function.
23664         * lib/error.c (fcntl): Undefine.
23665
23666 2010-05-09  Jim Meyering  <meyering@redhat.com>
23667
23668         verify: adjust formatting to be more consistent
23669         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23670         argument-list '('s, and after one comma.
23671
23672 2010-05-09  Bruno Haible  <bruno@clisp.org>
23673
23674         error: More reliable output on mingw.
23675         * lib/error.c: Include <windows.h>.
23676         (is_open): New function.
23677         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23678         defined.
23679
23680 2010-05-09  Bruno Haible  <bruno@clisp.org>
23681
23682         vasnprintf: Fix syntax errors in libintl build on mingw.
23683         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23684         pad_ourselves and prec_ourselves after use.
23685
23686 2010-05-08  Bruno Haible  <bruno@clisp.org>
23687
23688         * lib/config.charset: Update comments for Cygwin 1.7.
23689         * lib/localcharset.c: Likewise.
23690
23691 2010-05-07  Jim Meyering  <meyering@redhat.com>
23692
23693         init.sh: improve comments
23694         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23695         . "${srcdir=.}/init.sh"; path_prepend_ .
23696         Add a note about path_prepend_ and the alternative of using
23697         TESTS_ENVIRONMENT.
23698
23699 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23700
23701         exclude: Unescape hashed patterns in wildcard mode.
23702         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23703         to the hash list.
23704         * tests/test-exclude8.sh: New test case.
23705         * modules/exclude-tests: Add new test.
23706
23707 2010-05-05  Eric Blake  <eblake@redhat.com>
23708
23709         verify: automate tests
23710         * modules/verify-tests: New module.
23711         * tests/test-verify.sh: New file.
23712         * tests/test-verify.c: Guard each negative test with a unique id.
23713         Also avoid warning about unused left hand of comma expressions.
23714
23715 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23716
23717         Further improvements to verify.h, suggested by Eric Blake.
23718         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23719         the GL_* versions, to avoid collision with OpenGL.
23720         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23721         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23722         than testing merely whether it's defined.
23723
23724         Modify verify.h to pacify gcc -Wredundant_decls.
23725         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23726         These use the prefix "GL_" since they're likely to be useful elsewhere.
23727         We may need to break them out into a different .h file.
23728         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23729         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23730         of verify_function__.
23731
23732 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23733
23734         Tests for module pwrite.
23735         * modules/pwrite-tests: New file.
23736         * tests/test-pwrite.sh: New file.
23737         * tests/test-pwrite.c: New file.
23738
23739         New module pwrite.
23740         * lib/unistd.in.h (pwrite): New declaration.
23741         * lib/pwrite.c: New file, from glibc with modifications.
23742         * m4/pwrite.m4: New file.
23743         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23744         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23745         REPLACE_PWRITE.
23746         * modules/pwrite: New file.
23747         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23748         REPLACE_PWRITE.
23749         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23750         * doc/posix-functions/pwrite.texi: Mention the new module.
23751
23752 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23753
23754         pread: Update documentation.
23755         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23756
23757 2010-05-04  Eric Blake  <eblake@redhat.com>
23758
23759         docs: update cygwin progress
23760         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23761         this bug.
23762         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23763         Added in cygwin 1.7.2.
23764         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23765         Likewise.
23766         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23767         Likewise.
23768         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23769         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23770         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23771         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23772         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23773         Mention nproc module.
23774         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23775         bug in cygwin 1.7.5 addition.
23776         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23777         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23778         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23779         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23780         1.7.5.
23781         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23782         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23783         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23784         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23785         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23786         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23787         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23788         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23789         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23790         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23791         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23792         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23793         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23794         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23795         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23796         Likewise.
23797         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23798         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23799         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23800         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23801         Likewise.
23802         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23803         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23804         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23805         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23806         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23807         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23808         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23809         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23810         Likewise.
23811         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23812         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23813         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23814         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23815         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23816         Likewise.
23817         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23818         Likewise.
23819         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23820         Likewise.
23821         * doc/glibc-functions/xdrrec_endofrecord.texi
23822         (xdrrec_endofrecord): Likewise.
23823         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23824         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23825         Likewise.
23826         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23827         Likewise.
23828
23829 2010-05-04  Jim Meyering  <meyering@redhat.com>
23830
23831         gendocs.sh: make its "-s FILE" option more useful
23832         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23833         $PACKAGE to reflect the probably-different basename of "FILE".
23834
23835 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23836
23837         bootstrap: don't ignore download_po_files failure
23838         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23839         failure.
23840
23841 2010-05-03  Jim Meyering  <meyering@redhat.com>
23842
23843         maint.mk: allow to pass options to gendocs.sh
23844         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23845         (gendocs_options_): New overridable variable.
23846
23847         gnu-web-doc-update: don't ignore configure or build failure
23848         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23849
23850         announce-gen: backslash-escape '@'s in --help output
23851         * build-aux/announce-gen: Fix syntax errors.
23852
23853         maint.mk, announce-gen: allow project-specific announcement mail headers
23854         * top/maint.mk (translation_project_): Define default.
23855         (announcement_Cc_, announcement_mail_headers_): Likewise.
23856         (announcement): Invoke announce-gen with new --mail-headers option.
23857         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23858
23859         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23860         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23861         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23862         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23863         line in the "err2" output file when running "make check" in verbose
23864         mode (i.e., with set -x enabled).
23865
23866 2010-05-03  Bruno Haible  <bruno@clisp.org>
23867
23868         wctob: Fix for weird platforms.
23869         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23870         argument value.
23871
23872 2010-05-03  Jim Meyering  <meyering@redhat.com>
23873
23874         maint.mk: prohibit unwarranted use of <strings.h>
23875         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23876         strings.h in a file that does not also use strcasecmp, strncasecmp,
23877         ffs or ffsll.
23878
23879         maint.mk: remove obsolete comments
23880         * top/maint.mk: Remove stale, commented-out rules.
23881
23882 2010-05-02  Bruno Haible  <bruno@clisp.org>
23883
23884         wcwidth: Declare also when it's aliased.
23885         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23886         macro.
23887
23888 2010-05-02  Bruno Haible  <bruno@clisp.org>
23889
23890         Fix regression from 2010-04-25.
23891         * gnulib-tool (func_modules_transitive_closure): Check the status of
23892         all modules, not only of the tests that are of the form foo-tests where
23893         foo is a module.
23894
23895 2010-05-02  Bruno Haible  <bruno@clisp.org>
23896
23897         wctob: Work around nasty Cygwin 1.7.2 bug.
23898         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23899         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23900
23901 2010-05-01  Bruno Haible  <bruno@clisp.org>
23902
23903         fpurge: Sharper test.
23904         * tests/test-fpurge.c (main): Add one more ftell check.
23905         * modules/fpurge-tests (Depends-on): Add ftell.
23906         Suggested by Eric Blake.
23907
23908 2010-05-01  Bruno Haible  <bruno@clisp.org>
23909
23910         ftello: Another test.
23911         * tests/test-ftello3.c: New file.
23912         * modules/ftello-tests (Files): Add it.
23913         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23914         MOSTLYCLEANFILES.
23915
23916         ftell: Another test.
23917         * tests/test-ftell3.c: New file.
23918         * modules/ftell-tests (Files): Add it.
23919         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23920         MOSTLYCLEANFILES.
23921
23922 2010-05-01  Bruno Haible  <bruno@clisp.org>
23923
23924         ftell, ftello: Work around Solaris bug.
23925         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23926         * lib/ftello.c: Include stdio-impl.h.
23927         (ftello): On Solaris, when _IOWRT is set, compute the result without
23928         looking at _IOREAD.
23929         * modules/ftello (Files): Add lib/stdio-impl.h.
23930         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23931         * doc/posix-functions/ftello.texi: Likewise.
23932         Reported by Eric Blake.
23933
23934 2010-05-01  Bruno Haible  <bruno@clisp.org>
23935
23936         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23937         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23938         the _IOWRT flag is also set.
23939
23940 2010-05-01  Bruno Haible  <bruno@clisp.org>
23941
23942         Fix doc about a HP-UX stdio bug.
23943         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23944         * doc/posix-functions/ftello.texi: Likewise.
23945
23946 2010-05-01  Bruno Haible  <bruno@clisp.org>
23947
23948         lseek test: Fix failure on Solaris.
23949         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23950         output.
23951
23952 2010-04-30  Jim Meyering  <meyering@redhat.com>
23953
23954         bootstrap: don't ignore failure to generate po*/Makevars
23955         * build-aux/bootstrap (with_gettext): Don't ignore failure
23956         to create po/Makevars or runtime-po/Makevars.
23957
23958 2010-04-29  Eric Blake  <eblake@redhat.com>
23959
23960         headers: relax license to LGPLv2+
23961         * modules/fcntl-h (License): Relax license.
23962         * modules/getopt-posix (License): Likewise.
23963         * modules/locale (License): Likewise.
23964         * modules/math (License): Likewise.
23965         * modules/pty (License): Likewise.
23966         * modules/sched (License): Likewise.
23967         * modules/search (License): Likewise.
23968         * modules/spawn (License): Likewise.
23969         * modules/stdarg (License): Likewise.
23970         * modules/sysexits (License): Likewise.
23971
23972 2010-04-29  Jim Meyering  <meyering@redhat.com>
23973
23974         inttypes: relax license to LGPLv2+
23975         * modules/inttypes (License): Relax license.
23976
23977 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23978
23979         * top/maint.mk (indent): Run twice to produce idempotent results.
23980
23981 2010-04-28  Bruno Haible  <bruno@clisp.org>
23982
23983         getdate: Generate getdate.c in the source directory.
23984         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23985         MOSTLYCLEANFILES.
23986         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23987
23988 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23989
23990         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23991         is not declared as a const *; avoid warnings in that case.
23992
23993 2010-04-28  Eric Blake  <eblake@redhat.com>
23994
23995         canonicalize-lgpl: avoid compiler warning
23996         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23997         declaration' / 'extraneous semicolon' warning with some compilers.
23998         Reported by Andreas Gruenbacher.
23999
24000 2010-04-28  Jim Meyering  <meyering@redhat.com>
24001
24002         init.sh: ensure a more reliable exit status when exiting via trap
24003         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24004         Inspired by patches from Dmitry V. Levin.
24005         Also trap on signal 3 (SIGQUIT).
24006
24007 2010-04-27  Bruno Haible  <bruno@clisp.org>
24008
24009         Update doc about utimes().
24010         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24011         'utimens' module.
24012         Reported by Andreas Gruenbacher <agruen@suse.de>.
24013
24014 2010-04-27  Eric Blake  <eblake@redhat.com>
24015
24016         full-read, full-write: relax license
24017         * modules/full-read (License): Drop to LGPLv2+.
24018         * modules/full-write (License): Likewise.
24019         * modules/safe-read (License): Likewise.
24020         * modules/safe-write (License): Likewise.
24021
24022         pthread: mention library for linking
24023         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24024
24025 2010-04-27  Jim Meyering  <meyering@redhat.com>
24026
24027         maint.mk: fix a bug introduced in last change
24028         * top/maint.mk (gl_assured_headers_): Now that all names are on
24029         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24030         is not anchored to end of word, it should be adequate.
24031
24032         maint.mk: avoid side-effect in latest syntax-check
24033         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24034         to run commands via $(shell...), and hence to incur cost only when
24035         the new rule is actually run.
24036
24037         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24038         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24039         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24040         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24041         (gl_assured_headers_, az_, AZ_): Define.
24042         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24043
24044 2010-04-26  Jim Meyering  <jim@meyering.net>
24045             Bruno Haible  <bruno@clisp.org>
24046
24047         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24048         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24049         Prompted by an exchange with Gilles Espinasse.
24050
24051 2010-04-26  Jim Meyering  <meyering@redhat.com>
24052
24053         git-version-gen: aesthetic tweak
24054         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24055         so that the command remains on a single line.
24056
24057 2010-04-26  Eric Blake  <eblake@redhat.com>
24058
24059         git-version-gen: allow use on EBCDIC hosts
24060         * build-aux/git-version-gen (dirty): Use literal rather than tying
24061         ourselves to ascii.
24062         Reported by Steve Goetze.
24063
24064 2010-04-25  Bruno Haible  <bruno@clisp.org>
24065
24066         netdb: Add support for GNULIB_POSIXCHECK.
24067         * lib/netdb.in.h: Include warn-on-use.h.
24068         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24069         functions are used when GNULIB_POSIXCHECK is defined and the
24070         getaddrinfo module is not in use.
24071         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24072         freeaddrinfo, gai_strerror, getnameinfo are declared.
24073         * modules/netdb (Depends-on): Add warn-on-use.
24074         (Makefile.am): Include warn-on-use.h in netdb.h.
24075
24076 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24077
24078         build: avoid "make check" failure without .git/ directory
24079         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24080         there is no .git/ directory.
24081
24082 2010-04-25  Bruno Haible  <bruno@clisp.org>
24083
24084         ptsname: Fix misuse of ttyname_r.
24085         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24086         of errno.
24087
24088 2010-04-25  Bruno Haible  <bruno@clisp.org>
24089
24090         ttyname_r: Make it work on Solaris 10.
24091         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24092         if the system function has the POSIX declaration. Test whether the
24093         function fails if the buffer is less than 128 bytes large.
24094         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24095         system's ttyname_r function. Provide a reasonably large buffer.
24096         * modules/ttyname_r (Depends-on): Add extensions.
24097         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24098
24099 2010-04-25  Bruno Haible  <bruno@clisp.org>
24100
24101         Use the 'extensions' module for some more functions on Solaris.
24102         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24103         module.
24104         * doc/posix-functions/ctime_r.texi: Likewise.
24105         * doc/posix-functions/getgrgid_r.texi: Likewise.
24106         * doc/posix-functions/getgrnam_r.texi: Likewise.
24107         * doc/posix-functions/getpwnam_r.texi: Likewise.
24108         * doc/posix-functions/getpwuid_r.texi: Likewise.
24109         * doc/posix-functions/readdir_r.texi: Likewise.
24110         * doc/posix-functions/sigwait.texi: Likewise.
24111         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24112         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24113
24114 2010-04-25  Bruno Haible  <bruno@clisp.org>
24115
24116         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24117         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24118         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24119         * lib/ttyname_r.c: Include <limits.h>.
24120         (ttyname_r): Define using the system's ttyname_r function, if it exists
24121         and not on Solaris.
24122         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24123         set.
24124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24125         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24126         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24127         Reported by Simon Josefsson.
24128
24129 2010-04-25  Bruno Haible  <bruno@clisp.org>
24130
24131         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24132         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24133         * doc/posix-functions/ctime_r.texi: Likewise.
24134         * doc/posix-functions/getgrgid_r.texi: Likewise.
24135         * doc/posix-functions/getgrnam_r.texi: Likewise.
24136         * doc/posix-functions/getlogin_r.texi: Likewise.
24137         * doc/posix-functions/getpwnam_r.texi: Likewise.
24138         * doc/posix-functions/getpwuid_r.texi: Likewise.
24139         * doc/posix-functions/readdir_r.texi: Likewise.
24140         * doc/posix-functions/sigwait.texi: Likewise.
24141         * doc/posix-functions/ttyname_r.texi: Likewise.
24142         Reported by Simon Josefsson.
24143
24144 2010-04-25  Bruno Haible  <bruno@clisp.org>
24145
24146         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24147         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24148         also to --create-testdir.
24149         (func_acceptable): Don't consider the status of *-tests modules here.
24150         (func_modules_transitive_closure): Consider it here, before including a
24151         test module.
24152         (func_import, func_create_testdir): Set inc_all_direct_tests,
24153         inc_all_indirect_tests.
24154         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24155         --create-testdir and --create-megatestdir.
24156
24157 2010-04-25  Bruno Haible  <bruno@clisp.org>
24158
24159         gnulib-tool: Add --without-*-tests options.
24160         * gnulib-tool (func_usage): Document the --without-*-tests options.
24161         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24162         excl_unportable_tests): New variables.
24163         Fail if they are specified with --import or --update.
24164         (func_acceptable): Respect the excl_*_tests variables.
24165         (func_import): Set the excl_*_tests variables to empty.
24166
24167 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24168             Bruno Haible  <bruno@clisp.org>
24169
24170         Work around a MacOS X 10.4 bug with openpty.
24171         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24172         * tests/test-openpty.c (main): Close the master side explicitly.
24173
24174 2010-04-25  Bruno Haible  <bruno@clisp.org>
24175
24176         strnlen: Fix a C++ test error on MacOS X and Solaris.
24177         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24178         the function is not declared.
24179         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24180         Simon Josefsson.
24181
24182 2010-04-24  Bruno Haible  <bruno@clisp.org>
24183
24184         Avoid a gcc warning.
24185         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24186         of correct type for %08lx directive.
24187         Reported by Eric Blake.
24188
24189 2010-04-24  Bruno Haible  <bruno@clisp.org>
24190
24191         vasnprintf: Correct errno value in case of out-of-memory.
24192         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24193         or sprintf. Use the errno value from SNPRINTF or sprintf.
24194         Reported by Ian Beckwith <ianb@erislabs.net>.
24195
24196 2010-04-24  Bruno Haible  <bruno@clisp.org>
24197
24198         ansi-c++-opt: Find correct compiler when cross-compiling.
24199         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24200         AC_CHECK_PROGS.
24201         Reported by Simon Josefsson.
24202
24203 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24204
24205         vc-list-files: Add support for subversion
24206         * build-aux/vc-list-files: Use "svn list" to generate the list of
24207         files controlled by subversion.
24208
24209 2010-04-23  Jim Meyering  <meyering@redhat.com>
24210
24211         vc-list-files tests: convert to use init.sh
24212         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24213         path_prepend_.
24214         Use Exit, not exit.
24215         Use skip_ rather than open coding it.
24216         Remove trap set-up and compare definitions.
24217         * tests/test-vc-list-files-git.sh: Likewise.
24218         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24219
24220 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24221
24222         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24223         backup files.
24224
24225 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24226
24227         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24228
24229 2010-04-20  Eric Blake  <eblake@redhat.com>
24230
24231         tests: be robust to ignored SIGPIPE
24232         * tests/test-select-in.sh: Consume all output.
24233         * tests/test-lseek.sh: Check correct exit status, while avoiding
24234         EPIPE.
24235
24236 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24237             Bruno Haible  <bruno@clisp.org>
24238
24239         visibility: Don't use -fvisibility if it leads to a warning.
24240         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24241         yes, don't pretend that visibility works if it leads to a warning.
24242         Reported by Mike Gran <spk121@yahoo.com>.
24243
24244 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24245
24246         * build-aux/bootstrap: Use "git -h" for testing for supported options
24247         instead of "git --help".  The short-form option only shows a summary,
24248         and doesn't layout the full man page.  Grep for the full option name
24249         in the summary, too.
24250
24251 2010-04-19  Bruno Haible  <bruno@clisp.org>
24252
24253         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24254         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24255         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24256         mention of RELOCATABLE_STRIP.
24257         Reported by Sylvain Beucler <beuc@beuc.net>.
24258
24259 2010-04-19  Bruno Haible  <bruno@clisp.org>
24260
24261         * lib/diffseq.h: Fix typo in comment.
24262         Reported by Eric Blake.
24263
24264 2010-04-19  Bruno Haible  <bruno@clisp.org>
24265
24266         ioctl: Move autoconf macro to a .m4 file.
24267         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24268         * modules/ioctl (Files): Add it.
24269         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24270         Reported by Ian Beckwith <ianb@erislabs.net>.
24271
24272 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24273             Bruno Haible  <bruno@clisp.org>
24274
24275         diffseq: Accommodate use-case with abstract arrays.
24276         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24277         is not defined.
24278         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24279         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24280
24281 2010-04-18  Bruno Haible  <bruno@clisp.org>
24282
24283         * doc/posix-headers/stdbool.texi: More precise wording.
24284
24285 2010-04-17  Jim Meyering  <meyering@redhat.com>
24286
24287         maint.mk: use gnu-style indentation in an embedded perl script
24288         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24289         Rename variable: s/two/last_two_bytes/
24290
24291 2010-04-16  Eric Blake  <eblake@redhat.com>
24292
24293         test-stdbool: skip test that fails with Solaris CC
24294         * tests/test-stdbool.c (f): Skip test that causes compilation
24295         error under buggy C++ compiler.
24296         * lib/stdbool.in.h: Document the limitation.
24297         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24298
24299         setenv: allow compilation with C++
24300         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24301         register keyword.
24302
24303         stdint: allow test to pass with C++
24304         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24305
24306         getopt: allow compilation with C++
24307         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24308         struct.
24309         * lib/getopt.c (_getopt_internal_r): Use correct type.
24310         Reported by Dagobert Michelson, via Joel E. Denny.
24311
24312 2010-04-16  Bruno Haible  <bruno@clisp.org>
24313
24314         Override netdb.h always.
24315         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24316         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24317         Reported by Ludovic Courtès <ludo@gnu.org>.
24318
24319 2010-04-15  Bruno Haible  <bruno@clisp.org>
24320
24321         openpty: Fix mistake from 2010-03-21.
24322         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24323         Reported by Simon Josefsson.
24324
24325 2010-04-15  Eric Blake  <eblake@redhat.com>
24326
24327         test-forkpty: fix expected signature
24328         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24329         Reported by Simon Josefsson.
24330
24331 2010-04-15  Jim Meyering  <meyering@redhat.com>
24332
24333         maint.mk: texinfo_suffix_re_: correct the default regexp
24334         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24335
24336         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24337         make it configurable via texinfo_suffix_re_.
24338
24339 2010-04-14  Eric Blake  <eblake@redhat.com>
24340
24341         strtok_r: relax license to LGPLv2+
24342         * modules/strtok_r (License): Relax license.
24343         Reported by Matthias Bolte.
24344
24345 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24346
24347         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24348         version 1.4.4 by default instead of requiring the libgcrypt
24349         version used during build.  This makes it possible to use the
24350         application with older but still binary compatible libgcrypt
24351         versions.
24352
24353 2010-04-13  Eric Blake  <eblake@redhat.com>
24354
24355         getopt-gnu: match recent glibc fixes and posix ruling
24356         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24357         '+' handling, when requesting extensions.
24358         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24359         'W;' handling.
24360         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24361         * doc/posix-functions/getopt.texi (getopt): Document this.
24362         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24363         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24364         Likewise.
24365
24366         getopt: merge bug fixes from glibc
24367         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24368         diagnostics.  Honor '+:' correctly.  Reject ';'.
24369
24370         getopt-posix: detect MacOS bug
24371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24372         optind when missing a required argument.
24373         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24374         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24375         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24376         Likewise.
24377
24378         getopt-posix: avoid spurious failure on Solaris
24379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24380         an indicator that setting optind=1 is sufficient for reset.
24381
24382         getopt-posix: avoid spurious failure on FreeBSD
24383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24384         in POSIX mode, since the m4 test uses it.
24385
24386         gnulib-tool: silence warning on BSD sh
24387         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24388
24389 2010-04-13  Jim Meyering  <meyering@redhat.com>
24390
24391         doc: users.txt: GNU patch now uses gnulib
24392         * users.txt: Add patch.
24393
24394 2010-04-12  Jim Meyering  <meyering@redhat.com>
24395
24396         maint.mk: generate more concise timing data for syntax-check rules
24397         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24398         " done" from each line that reports a syntax-check test duration.
24399
24400 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24401
24402         git-version-gen: use "git update-index..." rather than "git status"
24403         * build-aux/git-version-gen: Use git update-index --refresh, not
24404         "git status".  With some versions of git, "git status" would fail
24405         to update the index and result in an unwarranted "-dirty" suffix.
24406
24407 2010-04-11  Jim Meyering  <meyering@redhat.com>
24408
24409         openat: correct formatting (no semantic change)
24410         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24411         Suggested by Bruno Haible.
24412
24413 2010-04-11  Bruno Haible  <bruno@clisp.org>
24414
24415         Stricter declaration checking in testdirs.
24416         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24417         If for_tests is true, augment AM_CPPFLAGS to define
24418         GNULIB_STRICT_CHECKING.
24419         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24420         GNULIB_STRICT_CHECKING is defined, verify that the function is
24421         declared.
24422
24423 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24424             Bruno Haible  <bruno@clisp.org>
24425
24426         libunistring: Improve configure output.
24427         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24428         Don't say "consider installing GNU libunistring" when checking again
24429         with libiconv.
24430
24431 2010-04-11  Bruno Haible  <bruno@clisp.org>
24432
24433         libunistring: Correct value of $LTLIBUNISTRING.
24434         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24435         correct the value of $LTLIBUNISTRING.
24436
24437 2010-04-11  Bruno Haible  <bruno@clisp.org>
24438
24439         havelib: Add static libraries to LIBS in the right order.
24440         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24441         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24442
24443 2010-04-11  Bruno Haible  <bruno@clisp.org>
24444
24445         libunistring: Detect libunistring also when it depends on libiconv.
24446         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24447         the second AC_LIB_HAVE_LINKFLAGS invocation.
24448
24449 2010-04-11  James Youngman  <jay@gnu.org>
24450
24451         close-stream: declare local scalars to be "const"
24452         * lib/close-stream.c (close_stream): Make boolean variables const
24453         to document the fact that we set but do not change them.
24454
24455 2010-04-11  Bruno Haible  <bruno@clisp.org>
24456
24457         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24458
24459 2010-04-11  Jim Meyering  <meyering@redhat.com>
24460
24461         maint.mk: don't include dist-check.mk
24462         * top/maint.mk: Remove bogus include directive.
24463
24464         maint.mk: improve empty-line-at-EOF check
24465         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24466         solution, rather than tail+Perl-based one.  The latter would read
24467         a few kilobytes from the end of each file, and did not handle empty
24468         files properly.
24469
24470         maint.mk: print the elapsed time for each syntax-check rule
24471         * top/maint.mk (sc_m_rules_): Save start time in a file.
24472         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24473         (local-check): Interpose the .z rules
24474
24475 2010-04-11  Jim Meyering  <meyering@redhat.com>
24476
24477         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24478         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24479         empty file with one that ends in an empty line.
24480
24481 2010-04-10  Bruno Haible  <bruno@clisp.org>
24482
24483         mkdir: Make it work on mingw64.
24484         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24485         * lib/mkdir.c: Update comment.
24486         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24487
24488 2010-04-10  Bruno Haible  <bruno@clisp.org>
24489
24490         Don't override improved macro from newer autoconf.
24491         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24492         autoconf >= 2.62.
24493         Reported by Joel E. Denny <jdenny@clemson.edu>.
24494
24495 2010-04-10  Jim Meyering  <meyering@redhat.com>
24496
24497         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24498         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24499
24500         maint.mk: correct a diagnostic
24501         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24502         in diagnostic; now use $prohibit.
24503
24504 2010-04-10  Bruno Haible  <address@hidden>
24505
24506         fchownat: Fix a C++ test error on Solaris 8.
24507         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24508         the function does not exist.
24509
24510 2010-04-10  Bruno Haible  <bruno@clisp.org>
24511
24512         vasnprintf: Add more tests.
24513         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24514         (test_function): Test converting an invalid wide string.
24515
24516         vasnprintf: Correct handling of unconvertible wide string arguments.
24517         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24518         VASNPRINTF.
24519         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24520         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24521         smaller than the expected maximum need for the directive. Set errno to
24522         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24523         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24525         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24526         * modules/vasnprintf (Files): Add m4/printf.m4.
24527         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24528
24529 2010-04-10  Bruno Haible  <bruno@clisp.org>
24530
24531         vasnprintf: Fix crash in %ls directive.
24532         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24533         string is passed as argument to %ls, with no precision and no width.
24534         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24535
24536 2010-04-10  Bruno Haible  <bruno@clisp.org>
24537
24538         vasnprintf: Fix multiple test failures on mingw.
24539         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24540         _snprintf, or snwprintf, not _snwprintf.
24541
24542 2010-04-10  Bruno Haible  <bruno@clisp.org>
24543
24544         write: Fix a C++ test error on mingw.
24545         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24546
24547 2010-04-10  Bruno Haible  <bruno@clisp.org>
24548
24549         vasnprintf test: Reduce code duplication.
24550         * tests/test-vasnprintf.c (test_function): New function, extracted from
24551         test_vasnprintf.
24552         (test_vasnprintf, test_asnprintf): Invoke it.
24553
24554 2010-04-10  Bruno Haible  <bruno@clisp.org>
24555
24556         strnlen: Fix warning in C++ mode on MacOS X.
24557         * lib/string.in.h (strnlen): Use the modern idiom.
24558         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24559         defining strnlen as a macro already in <config.h>.
24560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24561         REPLACE_STRNLEN.
24562         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24563         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24564
24565 2010-04-08  James Youngman  <jay@gnu.org>
24566
24567         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24568         the example.
24569
24570 2010-04-09  Jim Meyering  <meyering@redhat.com>
24571
24572         maint.mk: print better diagnostic when there is no $(_hv_file)
24573         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24574         announce that when $(_hv_file) (aka help-version) does not exist.
24575
24576         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24577         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24578         not try to interpret its random input bytes.  Jarno Rajahalme reported
24579         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24580         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24581         (mktempd_): Likewise, just in case.
24582
24583         ftruncate: add two years to projected module removal date: 2012
24584         * m4/ftruncate.m4: Adjust comments.
24585
24586         ftruncate: mark module as obsolete; even MinGW provides it, now
24587         * modules/ftruncate (Status): Obsolete.
24588         (Notice): Say that.
24589         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24590         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24591
24592 2010-04-08  Bruno Haible  <bruno@clisp.org>
24593
24594         Fix side effects from tests-related modules.
24595         * modules/dprintf-posix (Comment): New section.
24596         * modules/fprintf-posix (Comment): Likewise.
24597         * modules/obstack-printf-posix (Comment): Likewise.
24598         * modules/printf-posix (Comment): Likewise.
24599         * modules/snprintf-posix (Comment): Likewise.
24600         * modules/sprintf-posix (Comment): Likewise.
24601         * modules/vasnprintf-posix (Comment): Likewise.
24602         * modules/vasprintf-posix (Comment): Likewise.
24603         * modules/vdprintf-posix (Comment): Likewise.
24604         * modules/vfprintf-posix (Comment): Likewise.
24605         * modules/vprintf-posix (Comment): Likewise.
24606         * modules/vsnprintf-posix (Comment): Likewise.
24607         * modules/vsprintf-posix (Comment): Likewise.
24608         * modules/xprintf-posix (Comment): Likewise.
24609         * modules/xvasprintf-posix (Comment): Likewise.
24610         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24611         * modules/floorf-tests (Depends-on): Likewise.
24612         * modules/round-tests (Depends-on): Likewise.
24613         * modules/roundf-tests (Depends-on): Likewise.
24614         * modules/trunc-tests (Depends-on): Likewise.
24615         * modules/truncf-tests (Depends-on): Likewise.
24616         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24617         'fprintf-posix' module is not present.
24618         * tests/test-floorf2.c (check): Likewise.
24619         * tests/test-trunc2.c (check): Likewise.
24620         * tests/test-truncf2.c (check): Likewise.
24621         * tests/test-round2.c (equal): Likewise.
24622         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24623
24624 2010-04-07  Karl Berry  <karl@gnu.org>
24625
24626         * config/srclist.txt,
24627         * config/srclistvars.sh,
24628         * config/srclist-update: doc fixes.
24629
24630 2010-04-07  Jim Meyering  <meyering@redhat.com>
24631
24632         maint.mk: add a PATH crosschecking syntax-check rule
24633         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24634         Useful if you use a test like the one in help-version (coreutils,
24635         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24636         printed by prog --version.
24637
24638 2010-04-06  Bruno Haible  <bruno@clisp.org>
24639
24640         Fix link error on mingw.
24641         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24642         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24643
24644 2010-04-06  Bruno Haible  <bruno@clisp.org>
24645
24646         Assume rmdir exists.
24647         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24648
24649 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24650
24651         doc: update users.txt
24652         * users.txt: Add gcal.
24653
24654 2010-04-06  Jim Meyering  <meyering@redhat.com>
24655
24656         init.sh: simply unset TMPDIR rather than risking env -i
24657         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24658         although it probably works fine on all Unix-based systems, some
24659         systems (Cygwin?) cannot tolerate a totally cleared environment.
24660         Suggestion from Eric Blake.
24661
24662 2010-04-06  Jim Meyering  <meyering@redhat.com>
24663
24664         init.sh: portability fix: use env's POSIX-specified -i option not -u
24665         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24666         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24667
24668 2010-04-05  Bruno Haible  <bruno@clisp.org>
24669
24670         btowc: Work around Cygwin 1.7.2 bug.
24671         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24672         does not map NUL to 0.
24673         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24674
24675 2010-04-05  Bruno Haible  <bruno@clisp.org>
24676
24677         Make the multithread modules work on Cygwin 1.7.2.
24678         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24679         imported symbols can be declared weak, so that it returns "no" on
24680         Cygwin 1.7.2.
24681
24682 2010-04-05  Bruno Haible  <bruno@clisp.org>
24683
24684         Use the module 'strncat'.
24685         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24686
24687         Tests for module 'strncat'.
24688         * modules/strncat-tests: New file.
24689         * tests/test-strncat.c: New file.
24690
24691         New module 'strncat'.
24692         * lib/string.in.h (strncat): New declaration.
24693         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24694         * m4/strncat.m4: New file, based on m4/memchr.m4.
24695         * modules/strncat: New file.
24696         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24697         is declared.
24698         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24699         REPLACE_STRNCAT.
24700         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24701         REPLACE_STRNCAT.
24702         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24703         module.
24704         * tests/test-string-c++.cc: Check signature of strncat.
24705
24706 2010-04-05  Jim Meyering  <meyering@redhat.com>
24707
24708         xstrtoumax-tests: convert to use init.sh
24709         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24710         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24711         Use Exit, not exit.
24712         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24713
24714         xstrtoimax-tests: convert to use init.sh
24715         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24716         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24717         Use Exit, not exit.
24718         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24719
24720 2010-04-05  Bruno Haible  <bruno@clisp.org>
24721
24722         sys_socket: Avoid #define replacements in C++ mode.
24723         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24724         warning to the function if possible, rather than #defining the symbol
24725         to a dysfunctional alias.
24726
24727 2010-04-05  Bruno Haible  <bruno@clisp.org>
24728
24729         fseeko: Fix C++ test error on mingw.
24730         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24731         gl_FUNC_FSEEKO.
24732         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24733         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24734         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24735         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24736
24737 2010-04-05  Bruno Haible  <bruno@clisp.org>
24738
24739         duplocale: Improve test output.
24740         * tests/test-duplocale.c (main): Print reason for skipped test.
24741
24742 2010-04-05  Bruno Haible  <bruno@clisp.org>
24743
24744         Assume rmdir exists.
24745         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24746         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24747
24748 2010-04-05  Bruno Haible  <bruno@clisp.org>
24749
24750         Fix link error on Solaris 8 with cc.
24751         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24752
24753 2010-04-05  Bruno Haible  <bruno@clisp.org>
24754
24755         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24756         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24757
24758 2010-04-05  Bruno Haible  <bruno@clisp.org>
24759
24760         vasprintf: Update documentation.
24761         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24762
24763 2010-04-05  Bruno Haible  <bruno@clisp.org>
24764
24765         ptsname: Improve test.
24766         * tests/test-ptsname.c (main): Also try the various master names of BSD
24767         systems.
24768
24769 2010-04-05  Bruno Haible  <bruno@clisp.org>
24770
24771         memchr: Avoid a possible C++ test error.
24772         * lib/string.in.h (memchr): Provide declaration if function is missing.
24773         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24774         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24776         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24777
24778 2010-04-05  Bruno Haible  <bruno@clisp.org>
24779
24780         strtok_r: Improve idiom.
24781         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24782         AC_LIBOBJ is used.
24783
24784 2010-04-05  Bruno Haible  <bruno@clisp.org>
24785
24786         strdup: Improve idiom.
24787         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24788         AC_LIBOBJ is used.
24789         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24790         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24791         when AC_LIBOBJ is used.
24792
24793 2010-04-05  Bruno Haible  <bruno@clisp.org>
24794
24795         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24796         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24797         don't set REPLACE_MBSINIT to 1.
24798         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24799         don't set REPLACE_MBRTOWC to 1.
24800         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24801         exist, don't set REPLACE_MBSRTOWCS to 1.
24802         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24803         exist, don't set REPLACE_MBSNRTOWCS to 1.
24804         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24805         don't set REPLACE_WCRTOMB to 1.
24806         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24807         exist, don't set REPLACE_WCSRTOMBS to 1.
24808         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24809         exist, don't set REPLACE_WCSNRTOMBS to 1.
24810
24811 2010-04-05  Bruno Haible  <bruno@clisp.org>
24812
24813         ldexpl: Improve idiom.
24814         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24815         make sure to set HAVE_DECL_LDEXPL to 0.
24816
24817 2010-04-05  Jim Meyering  <meyering@redhat.com>
24818
24819         xstrtol-tests: convert to use init.sh
24820         * modules/xstrtol-tests (Files): Add tests/init.sh.
24821         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24822         Use Exit, not exit.
24823         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24824
24825         atexit-tests: convert to use init.sh
24826         * modules/atexit-tests (Files): Add tests/init.sh.
24827         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24828         Use Exit, not exit.
24829         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24830
24831         init.sh: fix typo
24832         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24833
24834         init.sh: make it easier for a test script to write to the tty, ...
24835         when using automake's parallel-tests mode.
24836         * tests/init.sh (stderr_fileno_): Define overridable variable.
24837         (warn_): New function, to use it.
24838         (fail_, skip_, framework_failure_): Use warn_.
24839
24840 2010-04-04  Bruno Haible  <bruno@clisp.org>
24841
24842         btowc: Avoid warning.
24843         * lib/btowc.c: Include <stdlib.h>.
24844         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24845
24846 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24847             Bruno Haible  <bruno@clisp.org>
24848
24849         wchar: Port to NetBSD 1.5.
24850         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24851         * lib/wctype.in.h (WEOF): Likewise.
24852
24853 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24854             Bruno Haible  <bruno@clisp.org>
24855
24856         Port extended stdio to NetBSD 1.5.
24857         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24858         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24859         older.
24860
24861 2010-04-04  Bruno Haible  <bruno@clisp.org>
24862
24863         string: Remove unused substitution.
24864         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24865         HAVE_DECL_STRERROR.
24866         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24867
24868 2010-04-04  Bruno Haible  <bruno@clisp.org>
24869
24870         strtod: Avoid a possible C++ test error.
24871         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24872         set REPLACE_STRTOD.
24873
24874 2010-04-04  Bruno Haible  <bruno@clisp.org>
24875
24876         strerror: Update documentation.
24877         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24878
24879 2010-04-04  Bruno Haible  <bruno@clisp.org>
24880
24881         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24882         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24883         _GL_CXXALIAS_SYS_CAST.
24884
24885 2010-04-04  Bruno Haible  <bruno@clisp.org>
24886
24887         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24888         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24889         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24890         REPLACE_FREXPL to 1.
24891         * doc/posix-functions/frexpl.texi: Update documentation.
24892
24893 2010-04-04  Bruno Haible  <bruno@clisp.org>
24894
24895         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24896         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24897
24898 2010-04-04  Bruno Haible  <bruno@clisp.org>
24899
24900         Implement nanosleep for native Windows.
24901         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24902
24903 2010-04-04  Bruno Haible  <bruno@clisp.org>
24904
24905         math: Fix some C++ test errors on Solaris 8.
24906         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24907
24908 2010-04-04  Bruno Haible  <bruno@clisp.org>
24909
24910         math: Fix some C++ test errors on Cygwin.
24911         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24912         truncl): Provide declaration if the system does not have it.
24913         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24914         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24915         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24916         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24917         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24918         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24919         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24920         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24921         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24922         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24923         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24924         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24925         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24926         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24927         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24928         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24930         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24931         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24932         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24933         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24934         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24935
24936 2010-04-04  Bruno Haible  <bruno@clisp.org>
24937
24938         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24939         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24940         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24941         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24942         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24943         * m4/isinf.m4 (gl_ISINF): Likewise.
24944         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24945
24946 2010-04-04  Bruno Haible  <bruno@clisp.org>
24947
24948         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24949         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24950
24951 2010-04-04  Bruno Haible  <bruno@clisp.org>
24952
24953         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24954         * modules/tmpfile (configure.ac): Update.
24955
24956         tmpfile: Fix C++ test error on mingw.
24957         * lib/stdio.in.h (tmpfile): New declaration.
24958         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24959         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24960         * modules/tmpfile (Depends-on): Add stdio.
24961         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24962         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24963         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24964         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24965         REPLACE_TMPFILE.
24966         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24967
24968 2010-04-04  Bruno Haible  <bruno@clisp.org>
24969
24970         ioctl: Fix C++ test error on mingw.
24971         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24972         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24973         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24974
24975 2010-04-03  Bruno Haible  <bruno@clisp.org>
24976
24977         wcwidth: Fix C++ test error on mingw.
24978         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24979         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24980         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24981
24982 2010-04-03  Bruno Haible  <bruno@clisp.org>
24983
24984         nanosleep: Fix C++ test error on mingw.
24985         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24986         * lib/time.in.h (nanosleep): Use modern idiom.
24987         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24988         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24989         REPLACE_NANOSLEEP to 1.
24990         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24991         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24992
24993 2010-04-03  Bruno Haible  <bruno@clisp.org>
24994
24995         strptime: Fix C++ test error on mingw.
24996         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24997         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24998         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24999         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25000         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25001         not REPLACE_STRPTIME.
25002         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25003         REPLACE_STRPTIME.
25004
25005 2010-04-03  Bruno Haible  <bruno@clisp.org>
25006
25007         timegm: Fix C++ test error on mingw.
25008         * lib/time.in.h (timegm): Use modern idiom.
25009         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25010         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25011         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25012         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25013
25014 2010-04-03  Bruno Haible  <bruno@clisp.org>
25015
25016         timegm: Assume declaration if function exists.
25017         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25018         if it exists. Don't clobber ac_cv_func_timegm.
25019
25020 2010-04-03  Bruno Haible  <bruno@clisp.org>
25021
25022         time_r: Fix C++ test error on mingw.
25023         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25024         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25025         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25026         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25027         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25028
25029 2010-04-03  Bruno Haible  <bruno@clisp.org>
25030
25031         time_r: Minor updates.
25032         * modules/time_r (Description): Mention the provided functions.
25033         * lib/time_r.c: Don't include <string.h>.
25034         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25035         * doc/posix-functions/localtime_r.texi: Likewise.
25036
25037 2010-04-03  Bruno Haible  <bruno@clisp.org>
25038
25039         time: Fix regression introduced on 2010-03-08.
25040         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25041         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25042
25043 2010-04-03  Jim Meyering  <meyering@redhat.com>
25044
25045         maint.mk: don't silently disable project-specific syntax-check rules
25046         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25047         that they need to convert their project-specific syntax-check rules
25048         to use the new _sc_search_regexp.
25049
25050 2010-04-03  Bruno Haible  <bruno@clisp.org>
25051
25052         fchdir: Fix regression introduced on 2010-03-08.
25053         * lib/unistd.in.h (fchdir): Fix declaration.
25054         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25056         REPLACE_FCHDIR.
25057         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25058         REPLACE_FCHDIR.
25059
25060 2010-04-03  Bruno Haible  <bruno@clisp.org>
25061
25062         getpagesize: Fix C++ test error on mingw.
25063         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25064         system does not declare the function.
25065         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25066         declared.
25067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25068         HAVE_DECL_GETPAGESIZE.
25069         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25070
25071 2010-04-03  Bruno Haible  <bruno@clisp.org>
25072
25073         stdio: Make C++ tests work on mingw.
25074         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25075         does not declare the function.
25076
25077 2010-04-03  Bruno Haible  <bruno@clisp.org>
25078
25079         ftello: Fix C++ test error on mingw.
25080         * lib/stdio.in.h (ftello): Use modern idiom.
25081         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25082         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25083         is missing and that it needs to be replaced.
25084         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25086         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25087
25088 2010-04-03  Bruno Haible  <bruno@clisp.org>
25089
25090         fseeko: Fix C++ test error on mingw.
25091         * lib/stdio.in.h (fseeko): Use modern idiom.
25092         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25093         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25094         is missing and that it needs to be replaced.
25095         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25097         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25098
25099 2010-04-03  Bruno Haible  <bruno@clisp.org>
25100
25101         mkstemp: Fix C++ test error on mingw.
25102         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25103         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25104         function is missing and that it needs to be replaced.
25105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25106         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25107
25108 2010-04-03  Bruno Haible  <bruno@clisp.org>
25109
25110         stpncpy: Fix C++ test error on mingw.
25111         * lib/string.in.h (stpncpy): Use modern idiom.
25112         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25113         function is missing and that it needs to be replaced.
25114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25115         REPLACE_STPNCPY.
25116         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25117
25118 2010-04-03  Bruno Haible  <bruno@clisp.org>
25119
25120         sys_stat: Fix C++ test error on mingw.
25121         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25122         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25123
25124 2010-04-03  Bruno Haible  <bruno@clisp.org>
25125
25126         pty: Update doc.
25127         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25128
25129 2010-04-03  Bruno Haible  <bruno@clisp.org>
25130
25131         unistd: Fix C++ test error on mingw.
25132         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25133
25134 2010-04-03  Bruno Haible  <bruno@clisp.org>
25135
25136         Update doc regarding mingw.
25137         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25138         * doc/glibc-functions/login_tty.texi: Likewise.
25139         * doc/glibc-functions/forkpty.texi: Likewise.
25140
25141 2010-04-03  Bruno Haible  <bruno@clisp.org>
25142
25143         stdlib: Avoid compilation failure of c-strtold on mingw.
25144         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25145
25146 2010-04-03  Bruno Haible  <bruno@clisp.org>
25147
25148         locale: Make C++ tests work on Cygwin and mingw.
25149         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25150         cannot provide the function.
25151         Reported by Simon Josefsson.
25152
25153 2010-04-03  Bruno Haible  <bruno@clisp.org>
25154
25155         localename: Port to MacOS X 10.6.
25156         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25157         memory layout of the locales in MacOS X 10.6 as well.
25158         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25159
25160 2010-04-02  Bruno Haible  <bruno@clisp.org>
25161
25162         gnulib-tool: Ensure that long-running tests are executed last.
25163         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25164         running tests after the one for the other tests.
25165
25166 2010-04-02  Bruno Haible  <bruno@clisp.org>
25167
25168         gnulib-tool: Ensure the tests in the main directory are executed first.
25169         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25170         start with the current directory.
25171
25172 2010-04-02  Bruno Haible  <bruno@clisp.org>
25173
25174         Tests for module 'havelib', moved here from GNU gettext.
25175         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25176         modifications.
25177         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25178         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25179         with modifications.
25180         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25181         modifications.
25182         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25183         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25184         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25185         with modifications.
25186         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25187         with modifications.
25188         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25189         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25190         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25191         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25192         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25193         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25194         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25195         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25196         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25197         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25198         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25199         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25200         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25201         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25202         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25203         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25204         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25205         with modifications.
25206         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25207         with modifications.
25208         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25209         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25210         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25211         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25212         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25213         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25214         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25215         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25216         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25217         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25218         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25219         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25220         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25221         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25222         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25223         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25224         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25225         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25226         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25227         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25228         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25229         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25230         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25231         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25232         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25233         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25234         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25235         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25236         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25237         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25238         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25239         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25240         * tests/havelib/rpathx/rpathx.c: New file, from
25241         gettext/autoconf-lib-link.
25242         * tests/havelib/rpathx/Makefile.am: New file, from
25243         gettext/autoconf-lib-link.
25244         * tests/havelib/rpathx/configure.ac: New file, from
25245         gettext/autoconf-lib-link with modifications.
25246         * tests/havelib/rpathy/rpathy.c: New file, from
25247         gettext/autoconf-lib-link.
25248         * tests/havelib/rpathy/Makefile.am: New file, from
25249         gettext/autoconf-lib-link.
25250         * tests/havelib/rpathy/configure.ac: New file, from
25251         gettext/autoconf-lib-link with modifications.
25252         * tests/havelib/rpathz/rpathz.c: New file, from
25253         gettext/autoconf-lib-link.
25254         * tests/havelib/rpathz/Makefile.am: New file, from
25255         gettext/autoconf-lib-link.
25256         * tests/havelib/rpathz/configure.ac: New file, from
25257         gettext/autoconf-lib-link with modifications.
25258         * tests/havelib/rpathlx/usex.c: New file, from
25259         gettext/autoconf-lib-link.
25260         * tests/havelib/rpathlx/Makefile.am: New file, from
25261         gettext/autoconf-lib-link.
25262         * tests/havelib/rpathlx/configure.ac: New file, from
25263         gettext/autoconf-lib-link with modifications.
25264         * tests/havelib/rpathly/usey.c: New file, from
25265         gettext/autoconf-lib-link.
25266         * tests/havelib/rpathly/Makefile.am: New file, from
25267         gettext/autoconf-lib-link.
25268         * tests/havelib/rpathly/configure.ac: New file, from
25269         gettext/autoconf-lib-link with modifications.
25270         * tests/havelib/rpathlz/usez.c: New file, from
25271         gettext/autoconf-lib-link.
25272         * tests/havelib/rpathlz/Makefile.am: New file, from
25273         gettext/autoconf-lib-link.
25274         * tests/havelib/rpathlz/configure.ac: New file, from
25275         gettext/autoconf-lib-link with modifications.
25276         * tests/havelib/rpathlyx/usey.c: New file, from
25277         gettext/autoconf-lib-link.
25278         * tests/havelib/rpathlyx/Makefile.am: New file, from
25279         gettext/autoconf-lib-link.
25280         * tests/havelib/rpathlyx/configure.ac: New file, from
25281         gettext/autoconf-lib-link with modifications.
25282         * tests/havelib/rpathlzyx/usez.c: New file, from
25283         gettext/autoconf-lib-link.
25284         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25285         gettext/autoconf-lib-link.
25286         * tests/havelib/rpathlzyx/configure.ac: New file, from
25287         gettext/autoconf-lib-link with modifications.
25288         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25289         with modifications.
25290
25291 2010-04-02  Bruno Haible  <bruno@clisp.org>
25292
25293         gnulib-tool: Create distributed built sources also for the tests.
25294         * gnulib-tool (func_create_testdir): Also generate distributed built
25295         sources in the tests directory.
25296
25297 2010-04-02  Bruno Haible  <bruno@clisp.org>
25298
25299         gnulib-tool: Obey user's environment variables.
25300         * gnulib-tool (func_create_testdir): When creating built sources,
25301         respect the environment variables for autoconf, automake, etc. given by
25302         the user.
25303
25304 2010-04-02  Bruno Haible  <bruno@clisp.org>
25305
25306         gnulib-tool: Provide the value of --m4-base to modules.
25307         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25308         of gl_m4_base.
25309
25310 2010-04-02  Eric Blake  <eblake@redhat.com>
25311
25312         maint.mk: fix some fallout
25313         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25314         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25315
25316 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25317
25318         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25319         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25320         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25321         (sc_cast_of_x_alloc_return_value): Likewise.
25322         (sc_cast_of_alloca_return_value): Likewise.
25323         (sc_space_tab): Likewise.
25324         (sc_prohibit_atoi_atof): Likewise.
25325         (sc_prohibit_magic_number_exit): Likewise.
25326         (sc_error_exit_success): Likewise.
25327         (sc_file_system): Likewise.
25328         (sc_prohibit_have_config_h): Likewise.
25329         (sc_require_config_h): Likewise.
25330         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25331         (sc_obsolete_symbols): Likewise.
25332         (sc_changelog): Likewise.
25333         (sc_program_name): Likewise.
25334         (sc_the_the): Likewise.
25335         (sc_trailing_blank): Likewise.
25336         (sc_two_space_separator_in_usage): Likewise.
25337         (sc_useless_cpp_parens): Likewise.
25338         (sc_GPL_version): Likewise.
25339         (sc_GFDL_version): Likewise.
25340         (sc_texinfo_acronym): Likewise.
25341         (sc_prohibit_cvs_keyword): Likewise.
25342         (sc_prohibit_stat_st_blocks): Likewise.
25343         (sc_prohibit_S_IS_definition): Likewise.
25344         (sc_redundant_const): Likewise.
25345         (sc_makefile_TAB_only_indentation): Likewise.
25346         (sc_m4_quote_check): Likewise.
25347         (sc_makefile_path_separator_check): Likewise.
25348         (sc_copyright_check): Likewise.
25349         (sc_Wundef_boolean): Likewise.
25350         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25351
25352         maint.mk: match 0 or more whitespace-before-function-call '('
25353         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25354         that have zero or two-and-more spaces between the function name
25355         and the open parenthesis.
25356         (sc_error_message_warn_fatal): Likewise.
25357         (sc_error_message_uppercase): Likewise.
25358         (sc_error_message_period): Likewise.
25359
25360 2010-03-31  Eric Blake  <eblake@redhat.com>
25361
25362         maint.mk: check for [ as well as test
25363         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25364         Based on a libvirt report by Matthias Bolte.
25365
25366         gnumakefile: don't squelch _version output
25367         * top/GNUmakefile (_version): Create one-shot dependency rather
25368         than using $(shell) when version must be regenerated.
25369         (_autoreconf): Run verbosely, by default.
25370
25371         sys_time: avoid compiler warnings
25372         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25373         unconditional, fixing regression from 2010-03-29.
25374         Reported by Simon Josefsson.
25375
25376 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25377
25378         maint.mk: s/_header_without_use/_sc_header_without_use/
25379         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25380         (sc_prohibit_assert_without_use): Use the new name.
25381         (sc_prohibit_close_stream_without_use): Likewise.
25382         (sc_prohibit_getopt_without_use): Likewise.
25383         (sc_prohibit_quotearg_without_use): Likewise.
25384         (sc_prohibit_quote_without_use): Likewise.
25385         (sc_prohibit_long_options_without_use): Likewise.
25386         (sc_prohibit_inttostr_without_use): Likewise.
25387         (sc_prohibit_ignore_value_without_use): Likewise.
25388         (sc_prohibit_error_without_use): Likewise.
25389         (sc_prohibit_xalloc_without_use): Likewise.
25390         (sc_prohibit_hash_without_use): Likewise.
25391         (sc_prohibit_hash_pjw_without_use): Likewise.
25392         (sc_prohibit_safe_read_without_use): Likewise.
25393         (sc_prohibit_argmatch_without_use): Likewise.
25394         (sc_prohibit_canonicalize_without_use): Likewise.
25395         (sc_prohibit_root_dev_ino_without_use): Likewise.
25396         (sc_prohibit_openat_without_use): Likewise.
25397         (sc_prohibit_c_ctype_without_use): Likewise.
25398         (sc_prohibit_signal_without_use): Likewise.
25399         (sc_prohibit_intprops_without_use): Likewise.
25400
25401 2010-03-30  Eric Blake  <eblake@redhat.com>
25402
25403         maint: improve module indicators
25404         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25405         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25406         columns, and avoid extra macro expansion.
25407
25408         fdopendir: work around FreeBSD bug
25409         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25410         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25411         * modules/dirent (Makefile.am): Substitute it.
25412         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25413         declaration.
25414         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25415         fix.
25416         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25417
25418 2010-03-29  Bruno Haible  <bruno@clisp.org>
25419
25420         Emit #pragma system_header after the inclusion guard, not before.
25421         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25422         guard that spans the entire file, not before. This enables an
25423         optimization in GCC's preprocessor.
25424         * lib/ctype.in.h: Likewise.
25425         * lib/dirent.in.h: Likewise.
25426         * lib/errno.in.h: Likewise.
25427         * lib/float.in.h: Likewise.
25428         * lib/getopt.in.h: Likewise.
25429         * lib/iconv.in.h: Likewise.
25430         * lib/langinfo.in.h: Likewise.
25431         * lib/locale.in.h: Likewise.
25432         * lib/math.in.h: Likewise.
25433         * lib/netdb.in.h: Likewise.
25434         * lib/netinet_in.in.h: Likewise.
25435         * lib/pty.in.h: Likewise.
25436         * lib/sched.in.h: Likewise.
25437         * lib/se-selinux.in.h: Likewise.
25438         * lib/search.in.h: Likewise.
25439         * lib/spawn.in.h: Likewise.
25440         * lib/stdarg.in.h: Likewise.
25441         * lib/stdint.in.h: Likewise.
25442         * lib/string.in.h: Likewise.
25443         * lib/strings.in.h: Likewise.
25444         * lib/sys_file.in.h: Likewise.
25445         * lib/sys_ioctl.in.h: Likewise.
25446         * lib/sys_time.in.h: Likewise.
25447         * lib/sys_times.in.h: Likewise.
25448         * lib/sys_utsname.in.h: Likewise.
25449         * lib/sys_wait.in.h: Likewise.
25450         * lib/sysexits.in.h: Likewise.
25451         * lib/wctype.in.h: Likewise.
25452
25453 2010-03-28  James Youngman  <jay@gnu.org>
25454
25455         save-cwd: don't leak a file descriptor when the caller execs.
25456         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25457         saved file descriptor.
25458         * modules/save-cwd (Depends-on): Depend on cloexec.
25459
25460 2010-03-29  Bruno Haible  <bruno@clisp.org>
25461
25462         Remove vestiges of fts-lgpl module.
25463         * lib/fts_.h: Assume GNULIB_FTS is 1.
25464         * lib/fts.c: Likewise.
25465         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25466
25467 2010-03-28  Bruno Haible  <bruno@clisp.org>
25468
25469         Fix definition of tests witness macro.
25470         * gnulib-tool (func_import): Fix definition of witness macro.
25471
25472 2010-03-28  Bruno Haible  <bruno@clisp.org>
25473
25474         Fix ioctl's protoype on glibc systems.
25475         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25476         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25477         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25478         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25479         signature. If not, arrange to replace the ioctl function.
25480         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25481         REPLACE_IOCTL.
25482         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25483         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25484         Reported by Ludovic Courtès <ludo@gnu.org>.
25485
25486 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25487
25488         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25489         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25490         made it so grep -r --include=GLOB* ... did not work.
25491
25492 2010-03-26  Jim Meyering  <meyering@redhat.com>
25493             Eric Blake  <eblake@redhat.com>
25494
25495         maint.mk: prohibit use of test's -o and -a operators
25496         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25497
25498 2010-03-28  Bruno Haible  <bruno@clisp.org>
25499
25500         Remove unused GNULIB_XYZ macro definitions.
25501         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25502         invocation.
25503
25504 2010-03-28  Bruno Haible  <bruno@clisp.org>
25505
25506         Mark privileged tests modules.
25507         * modules/idpriv-drop-tests (Status): New section.
25508         * modules/idpriv-droptemp-tests (Status): New section.
25509
25510 2010-03-28  Bruno Haible  <bruno@clisp.org>
25511
25512         Split C++ tests into separate tests modules.
25513         * modules/dirent-c++-tests: New file, extracted from
25514         modules/dirent-tests.
25515         * modules/dirent-tests: Depend on it.
25516         * modules/fcntl-h-c++-tests: New file, extracted from
25517         modules/fcntl-h-tests.
25518         * modules/fcntl-h-tests: Depend on it.
25519         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25520         * modules/glob-tests: Depend on it.
25521         * modules/iconv-h-c++-tests: New file, extracted from
25522         modules/iconv-h-tests.
25523         * modules/iconv-h-tests: Depend on it.
25524         * modules/langinfo-c++-tests: New file, extracted from
25525         modules/langinfo-tests.
25526         * modules/langinfo-tests: Depend on it.
25527         * modules/locale-c++-tests: New file, extracted from
25528         modules/locale-tests.
25529         * modules/locale-tests: Depend on it.
25530         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25531         * modules/math-tests: Depend on it.
25532         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25533         * modules/pty-tests: Depend on it.
25534         * modules/search-c++-tests: New file, extracted from
25535         modules/search-tests.
25536         * modules/search-tests: Depend on it.
25537         * modules/signal-c++-tests: New file, extracted from
25538         modules/signal-tests.
25539         * modules/signal-tests: Depend on it.
25540         * modules/spawn-c++-tests: New file, extracted from
25541         modules/spawn-tests.
25542         * modules/spawn-tests: Depend on it.
25543         * modules/stdio-c++-tests: New file, extracted from
25544         modules/stdio-tests.
25545         * modules/stdio-tests: Depend on it.
25546         * modules/stdlib-c++-tests: New file, extracted from
25547         modules/stdlib-tests.
25548         * modules/stdlib-tests: Depend on it.
25549         * modules/string-c++-tests: New file, extracted from
25550         modules/string-tests.
25551         * modules/string-tests: Depend on it.
25552         * modules/sys_ioctl-c++-tests: New file, extracted from
25553         modules/sys_ioctl-tests.
25554         * modules/sys_ioctl-tests: Depend on it.
25555         * modules/sys_select-c++-tests: New file, extracted from
25556         modules/sys_select-tests.
25557         * modules/sys_select-tests: Depend on it.
25558         * modules/sys_socket-c++-tests: New file, extracted from
25559         modules/sys_socket-tests.
25560         * modules/sys_socket-tests: Depend on it.
25561         * modules/sys_stat-c++-tests: New file, extracted from
25562         modules/sys_stat-tests.
25563         * modules/sys_stat-tests: Depend on it.
25564         * modules/sys_time-c++-tests: New file, extracted from
25565         modules/sys_time-tests.
25566         * modules/sys_time-tests: Depend on it.
25567         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25568         * modules/time-tests: Depend on it.
25569         * modules/unistd-c++-tests: New file, extracted from
25570         modules/unistd-tests.
25571         * modules/unistd-tests: Depend on it.
25572         * modules/wchar-c++-tests: New file, extracted from
25573         modules/wchar-tests.
25574         * modules/wchar-tests: Depend on it.
25575         * modules/wctype-c++-tests: New file, extracted from
25576         modules/wctype-tests.
25577         * modules/wctype-tests: Depend on it.
25578         Reported by Simon Josefsson.
25579
25580 2010-03-28  Bruno Haible  <bruno@clisp.org>
25581
25582         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25583         * gnulib-tool (func_exists_module): New function, extracted from
25584         func_verify_module.
25585         (func_verify_module): Use it.
25586         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25587         'foo' only if 'foo' exists.
25588         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25589         module.
25590
25591 2010-03-28  Bruno Haible  <bruno@clisp.org>
25592
25593         gnulib-tool: Add support for special categories of tests.
25594         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25595         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25596         (func_usage): Document them.
25597         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25598         inc_unportable_tests, inc_all_tests): New variables.
25599         (func_acceptable): Consider these variables.
25600         (func_modules_transitive_closure): Make it work when the 'Status' field
25601         consists of multiple words.
25602         (func_import): Store and restore the values of inc_cxx_tests,
25603         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25604         inc_all_tests in gnulib-comp.m4.
25605         (func_create_testdir): Set inc_all_tests to true.
25606         * doc/gnulib.texi (Extra tests modules): New section.
25607         Suggested by Jim Meyering.
25608
25609 2010-03-28  Bruno Haible  <bruno@clisp.org>
25610
25611         ansi-c++-opt: Allow turning off the C++ build by default.
25612         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25613         gl_CXX_CHOICE_DEFAULT_NO is defined.
25614         Requested by Eric Blake.
25615
25616 2010-03-28  Bruno Haible  <bruno@clisp.org>
25617
25618         unistd: Avoid #define replacements in C++ mode.
25619         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25620         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25621         setsockopt, shutdown, select): In C++, attach a warning to the function
25622         if possible, rather than #defining the symbol to a dysfunctional alias.
25623         Reported by John W. Eaton <jwe@gnu.org>.
25624
25625 2010-03-28  Bruno Haible  <bruno@clisp.org>
25626
25627         Fix link errors on mingw.
25628         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25629         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25630         $(LIBSOCKET).
25631         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25632         $(LIBSOCKET).
25633
25634 2010-03-28  Bruno Haible  <bruno@clisp.org>
25635             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25636
25637         lib-ignore: Determine different options for different compilers.
25638         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25639         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25640         Add comments.
25641         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25642         * NEWS: Mention the change.
25643
25644 2010-03-27  Bruno Haible  <bruno@clisp.org>
25645
25646         Remove unused GNULIB_XYZ macro definitions.
25647         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25648         * modules/fseek (configure.ac): Likewise.
25649         * modules/ioctl (configure.ac): Likewise.
25650         * modules/open (configure.ac): Likewise.
25651         * modules/stdlib-safer (configure.ac): Likewise.
25652
25653 2010-03-27  Bruno Haible  <bruno@clisp.org>
25654
25655         Add a remark about certain modules.
25656         * modules/malloc (Comment): New section.
25657         * modules/realloc (Comment): Likewise.
25658         * modules/sigpipe (Comment): Likewise.
25659
25660 2010-03-27  Bruno Haible  <bruno@clisp.org>
25661
25662         Resolve conflict between the two kinds of module indicators.
25663         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25664         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25665         * modules/canonicalize (configure.ac): Invoke
25666         gl_MODULE_INDICATOR_FOR_TESTS.
25667         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25668         GNULIB_XYZ.
25669         * tests/test-dirent-c++.cc: Likewise.
25670         * tests/test-dirent-safer.c: Likewise.
25671         * tests/test-dup2.c: Likewise.
25672         * tests/test-fchdir.c: Likewise.
25673         * tests/test-fcntl-h-c++.cc: Likewise.
25674         * tests/test-getopt.c: Likewise.
25675         * tests/test-getopt.h: Likewise.
25676         * tests/test-langinfo-c++.cc: Likewise.
25677         * tests/test-locale-c++.cc: Likewise.
25678         * tests/test-math-c++.cc: Likewise.
25679         * tests/test-pty-c++.cc: Likewise.
25680         * tests/test-search-c++.cc: Likewise.
25681         * tests/test-signal-c++.cc: Likewise.
25682         * tests/test-spawn-c++.cc: Likewise.
25683         * tests/test-stdio-c++.cc: Likewise.
25684         * tests/test-stdlib-c++.cc: Likewise.
25685         * tests/test-string-c++.cc: Likewise.
25686         * tests/test-sys_ioctl-c++.cc: Likewise.
25687         * tests/test-sys_select-c++.cc: Likewise.
25688         * tests/test-sys_socket-c++.cc: Likewise.
25689         * tests/test-sys_stat-c++.cc: Likewise.
25690         * tests/test-sys_time-c++.cc: Likewise.
25691         * tests/test-time-c++.cc: Likewise.
25692         * tests/test-unistd-c++.cc: Likewise.
25693         * tests/test-wchar-c++.cc: Likewise.
25694         * tests/uninorm/test-u8-nfc.c: Likewise.
25695         * tests/uninorm/test-u8-nfd.c: Likewise.
25696         * tests/uninorm/test-u8-nfkc.c: Likewise.
25697         * tests/uninorm/test-u8-nfkd.c: Likewise.
25698         * tests/uninorm/test-u16-nfc.c: Likewise.
25699         * tests/uninorm/test-u16-nfd.c: Likewise.
25700         * tests/uninorm/test-u16-nfkc.c: Likewise.
25701         * tests/uninorm/test-u16-nfkd.c: Likewise.
25702         * tests/uninorm/test-u32-nfc.c: Likewise.
25703         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25704         * tests/uninorm/test-u32-nfd.c: Likewise.
25705         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25706         * tests/uninorm/test-u32-nfkc.c: Likewise.
25707         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25708         * tests/uninorm/test-u32-nfkd.c: Likewise.
25709         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25710         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25711
25712 2010-03-27  Bruno Haible  <bruno@clisp.org>
25713
25714         Distinguish two kinds of module indicators.
25715         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25716         gl_MODULE_INDICATOR.
25717         (gl_MODULE_INDICATOR): New macro.
25718         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25719         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25720         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25721         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25722         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25723         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25724         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25725         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25726         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25727         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25728         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25729         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25730         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25731         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25732         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25733         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25734         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25735         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25736         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25737         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25738         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25739         * modules/cloexec (configure.ac): Likewise.
25740         * modules/getopt-gnu (configure.ac): Likewise.
25741         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25742         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25743         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25744         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25745
25746 2010-03-27  Bruno Haible  <bruno@clisp.org>
25747
25748         New module description field 'Comment'.
25749         * gnulib-tool: New option --extract-comment.
25750         (func_usage): Document it.
25751         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25752         (func_get_comment): New function.
25753         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25754
25755 2010-03-27  Bruno Haible  <bruno@clisp.org>
25756
25757         Addendum to 2010-02-07 commit.
25758         * gnulib-tool (func_usage): Document --extract-applicability option.
25759
25760 2010-03-27  Bruno Haible  <bruno@clisp.org>
25761
25762         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25763         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25764         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25765         rather than link errors.
25766
25767 2010-03-27  Bruno Haible  <bruno@clisp.org>
25768
25769         Avoid side effects from tests-related modules on the compilation of lib.
25770         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25771         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25772         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25773         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25774         macro.
25775         (func_import): Define a witness macro. Assign it a value that depends
25776         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25777         tests-related modules.
25778         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25779         Reported by Jim Meyering.
25780
25781 2010-03-27  Bruno Haible  <bruno@clisp.org>
25782
25783         Factorize common .m4 code.
25784         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25785         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25786         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25787         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25788         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25789         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25790         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25791         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25792         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25793         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25794         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25795         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25796         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25797         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25798         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25799         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25800         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25801         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25802         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25803         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25804         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25805         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25806         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25807         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25808         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25809         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25810         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25811         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25812         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25813         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25814         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25815         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25816
25817 2010-03-27  Bruno Haible  <bruno@clisp.org>
25818
25819         Fix a compilation error on Cygwin with g++ >= 4.3.
25820         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25821         if it is undefined or if we alias it to chmod.
25822         (lstat): Don't warn about the use of this function if it is undefined
25823         or if we alias it to stat.
25824         Reported by Simon Josefsson.
25825
25826 2010-03-27  Bruno Haible  <bruno@clisp.org>
25827
25828         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25829         * modules/getlogin (configure.ac): Update.
25830
25831         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25832         * modules/getlogin_r (configure.ac): Update.
25833
25834         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25835         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25836         * modules/inet_ntop (configure.ac): Update.
25837
25838         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25839         * modules/inet_pton (configure.ac): Update.
25840
25841         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25842         * modules/mbslen (configure.ac): Update.
25843
25844         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25845         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25846         * modules/forkpty (configure.ac): Update.
25847         * modules/openpty (configure.ac): Update.
25848
25849 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25850
25851         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25852         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25853
25854 2010-03-25  Eric Blake  <eblake@redhat.com>
25855
25856         maint: use pragma consistently across replacement headers
25857         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25858         * lib/dirent.in.h (system_header): Likewise.
25859         * lib/errno.in.h (system_header): Likewise.
25860         * lib/float.in.h (system_header): Likewise.
25861         * lib/getopt.in.h (system_header): Likewise.
25862         * lib/iconv.in.h (system_header): Likewise.
25863         * lib/inttypes.in.h (system_header): Likewise.
25864         * lib/langinfo.in.h (system_header): Likewise.
25865         * lib/locale.in.h (system_header): Likewise.
25866         * lib/math.in.h (system_header): Likewise.
25867         * lib/netdb.in.h (system_header): Likewise.
25868         * lib/netinet_in.in.h (system_header): Likewise.
25869         * lib/pty.in.h (system_header): Likewise.
25870         * lib/sched.in.h (system_header): Likewise.
25871         * lib/se-selinux.in.h (system_header): Likewise.
25872         * lib/search.in.h (system_header): Likewise.
25873         * lib/spawn.in.h (system_header): Likewise.
25874         * lib/stdarg.in.h (system_header): Likewise.
25875         * lib/stdint.in.h (system_header): Likewise.
25876         * lib/string.in.h (system_header): Likewise.
25877         * lib/strings.in.h (system_header): Likewise.
25878         * lib/sys_file.in.h (system_header): Likewise.
25879         * lib/sys_ioctl.in.h (system_header): Likewise.
25880         * lib/sys_socket.in.h (system_header): Likewise.
25881         * lib/sys_times.in.h (system_header): Likewise.
25882         * lib/sys_utsname.in.h (system_header): Likewise.
25883         * lib/sys_wait.in.h (system_header): Likewise.
25884         * lib/sysexits.in.h (system_header): Likewise.
25885         * lib/unistd.in.h (system_header): Likewise.
25886         * lib/wctype.in.h (system_header): Likewise.
25887
25888         arpa/inet: fix mingw compilation warning
25889         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25890         Reported by Matthew Bolte.
25891
25892 2010-03-25  Bruno Haible  <bruno@clisp.org>
25893
25894         Avoid collision between gnulib wrapper and libintl wrapper.
25895         * lib/printf.c (printf): Don't define if a printf wrapper is already
25896         defined in intl/printf.c.
25897         Reported by Michel Boaventura <michel@michelboaventura.com>.
25898
25899 2010-03-25  Bruno Haible  <bruno@clisp.org>
25900
25901         Use ANSI C.
25902         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25903
25904 2010-03-25  Bruno Haible  <bruno@clisp.org>
25905
25906         Minor formatting changes.
25907         * lib/acosl.c: Insert space before function argument list.
25908         * lib/argz.c: Likewise.
25909         * lib/asinl.c: Likewise.
25910         * lib/expl.c: Likewise.
25911         * lib/gen-uni-tables.c: Likewise.
25912         * lib/gettext.h: Likewise.
25913         * lib/glthread/lock.h: Likewise.
25914         * lib/tanl.c: Likewise.
25915         * lib/uniname/uniname.c: Likewise.
25916         * tests/test-idpriv-drop.c: Likewise.
25917         * tests/test-idpriv-droptemp.c: Likewise.
25918         * tests/test-lock.c: Likewise.
25919         * tests/test-tls.c: Likewise.
25920         * lib/argp-help.c: Insert space before function-like macro argument
25921         list.
25922         * lib/memcmp.c: Likewise.
25923         * tests/test-base64.c: Likewise.
25924         * lib/localename.c: Insert space before sizeof's argument list.
25925         * lib/safe-alloc.h: Likewise.
25926         * lib/file-set.h: Insert space before macro argument list.
25927         * tests/test-argp.c: Likewise.
25928         * lib/argp-namefrob.h: Insert space before function parameter list.
25929         * lib/getaddrinfo.c: Likewise.
25930         * lib/netdb.in.h: Likewise.
25931         * lib/parse-duration.h: Likewise.
25932         * lib/parse-duration.c: Likewise.
25933         * lib/poll.c: Likewise.
25934         * lib/select.c: Likewise.
25935         * lib/trim.h: Likewise.
25936         * tests/test-usleep.c: Likewise.
25937         * lib/ldexpl.c: Insert space before function parameter list and before
25938         function argument list.
25939         * lib/logl.c: Likewise.
25940         * lib/sqrtl.c: Likewise.
25941         * lib/trim.c: Likewise.
25942         * lib/cosl.c: Use GNU style indentation. Insert space before function
25943         argument list.
25944         * lib/sinl.c: Likewise.
25945         * lib/tsearch.c: Insert space after 'for'.
25946         Reported by Jim Meyering.
25947
25948 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25949
25950         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25951         config header before grepping, as it's not present before
25952         autoreconf/configure are run.  Reported by Simon Josefsson.
25953
25954 2010-03-23  Bruno Haible  <bruno@clisp.org>
25955
25956         pt_chown: Make it work with automake < 1.11.
25957         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25958         Reported by Simon Josefsson.
25959
25960 2010-03-23  Bruno Haible  <bruno@clisp.org>
25961
25962         pt_chown: Don't depend on GPLed modules.
25963         * lib/pt_chown.c: Don't include idpriv.h.
25964         (main): Don't drop privileges.
25965         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25966         Reported by Simon Josefsson.
25967
25968 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25969
25970         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25971         suggestions from karl@freefriends.org (Karl Berry).
25972
25973 2010-03-22  Eric Blake  <eblake@redhat.com>
25974
25975         gethostname: further tweaks
25976         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25977         are overriding gethostname.
25978         Suggested by Bruno Haible.
25979
25980 2010-03-21  Bruno Haible  <bruno@clisp.org>
25981
25982         Fix comments.
25983         * lib/forkpty.c (rpl_forkpty): Fix comment.
25984         * lib/openpty.c (rpl_openpty): Likewise.
25985         Reported by Eric Blake.
25986
25987 2010-03-22  Eric Blake  <eblake@redhat.com>
25988
25989         gethostname: fix build on mingw
25990         * lib/unistd.in.h (includes): Work around fact that mingw
25991         <winsock2.h> re-includes <unistd.h>, by avoiding any
25992         redeclarations if we are being included by <winsock2.h>.
25993         Reported by Matthias Bolte.
25994
25995 2010-03-21  Bruno Haible  <bruno@clisp.org>
25996
25997         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25998         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25999         modifications.
26000         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26001         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26002         provide the replacement.
26003         * modules/forkpty (Depends-on): Add openpty, login_tty.
26004         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26005         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26006         * doc/glibc-functions/forkpty.texi: More supported platforms.
26007         * config/srclist.txt: Add forkpty.c (commented).
26008
26009 2010-03-21  Bruno Haible  <bruno@clisp.org>
26010
26011         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26012         (Makefile.am): Verify that PTY_LIB is defined.
26013
26014         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26015
26016 2010-03-21  Bruno Haible  <bruno@clisp.org>
26017
26018         Tests for module 'login_tty'.
26019         * modules/login_tty-tests: New file.
26020         * tests/test-login_tty.c: New file.
26021
26022         New module 'login_tty'.
26023         * lib/login_tty.c: New file.
26024         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26025         * modules/login_tty: New file.
26026         * doc/glibc-functions/login_tty.texi: Mention the new module.
26027
26028 2010-03-21  Bruno Haible  <bruno@clisp.org>
26029
26030         login_tty: Documentation.
26031         * doc/glibc-functions/login_tty.texi: New file.
26032         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26033
26034 2010-03-21  Bruno Haible  <bruno@clisp.org>
26035
26036         pty: Consistent macro naming.
26037         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26038         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26039         * modules/pty (configure.ac): Update.
26040
26041 2010-03-21  Bruno Haible  <bruno@clisp.org>
26042
26043         Tests for openpty: Make stricter.
26044         * tests/test-openpty.c (main): Add test of canonical processing and
26045         erase.
26046         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26047
26048         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26049         * lib/openpty.c (openpty): New replacement function.
26050         * lib/pty.in.h: Include <termios.h>.
26051         (openpty): Update declaration. Add comments.
26052         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26053         is not declared, arrange to provide the replacement. Check for _getpty
26054         and posix_openpt.
26055         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26056         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26057         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26058         * modules/pty-tests (test_pty_c___LDADD): New variable.
26059         * doc/glibc-functions/openpty.texi: More supported platforms.
26060
26061 2010-03-21  Bruno Haible  <bruno@clisp.org>
26062
26063         setenv: Tweaks.
26064         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26065         the test program.
26066         * doc/posix-functions/setenv.texi: Update platforms list.
26067
26068 2010-03-21  Bruno Haible  <bruno@clisp.org>
26069
26070         New module 'unlockpt'.
26071         * lib/unlockpt.c: New file, from glibc with modifications.
26072         * m4/unlockpt.m4: New file.
26073         * modules/unlockpt: New file.
26074         * lib/stdlib.in.h (unlockpt): New declaration.
26075         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26076         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26077         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26078         HAVE_UNLOCKPT.
26079         * doc/posix-functions/unlockpt.texi: Mention the new module.
26080         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26081         * config/srclist.txt: Add unlockpt.c (commented).
26082
26083 2010-03-21  Jim Meyering  <meyering@redhat.com>
26084
26085         maint.mk: prohibit inclusion of "intprops.h" without use
26086         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26087
26088 2010-03-21  Bruno Haible  <bruno@clisp.org>
26089
26090         New module 'grantpt'.
26091         * lib/grantpt.c: New file, from glibc with modifications.
26092         * m4/grantpt.m4: New file.
26093         * modules/grantpt: New file.
26094         * lib/stdlib.in.h (grantpt): New declaration.
26095         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26096         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26097         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26098         HAVE_GRANTPT.
26099         * doc/posix-functions/grantpt.texi: Mention the new module.
26100         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26101         * config/srclist.txt: Add grantpt.c (commented).
26102
26103 2010-03-21  Bruno Haible  <bruno@clisp.org>
26104
26105         New module 'pt_chown'.
26106         * lib/pt_chown.c: New file, from glibc with modifications.
26107         * lib/pty-private.h: New file, from glibc with modifications.
26108         * modules/pt_chown: New file.
26109         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26110
26111 2010-03-21  Bruno Haible  <bruno@clisp.org>
26112
26113         Tests for module 'ptsname'.
26114         * modules/ptsname-tests: New file.
26115         * tests/test-ptsname.c: New file.
26116
26117         New module 'ptsname'.
26118         * lib/ptsname.c: New file, from glibc with modifications.
26119         * m4/ptsname.m4: New file.
26120         * modules/ptsname: New file.
26121         * lib/stdlib.in.h (ptsname): New declaration.
26122         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26123         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26124         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26125         HAVE_PTSNAME.
26126         * doc/posix-functions/ptsname.texi: Mention the new module.
26127         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26128         * config/srclist.txt: Add ptsname.c (commented).
26129
26130 2010-03-21  Bruno Haible  <bruno@clisp.org>
26131
26132         Tests for module 'ttyname_r'.
26133         * modules/ttyname_r-tests: New file.
26134         * tests/test-ttyname_r.c: New file.
26135
26136         New module 'ttyname_r'.
26137         * lib/ttyname_r.c: New file.
26138         * m4/ttyname_r.m4: New file.
26139         * modules/ttyname_r: New file.
26140         * lib/unistd.in.h (ttyname_r): New declaration.
26141         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26142         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26143         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26144         HAVE_TTYNAME_R.
26145         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26146         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26147
26148 2010-03-20  Bruno Haible  <bruno@clisp.org>
26149
26150         signal: Undefine macro definitions in C++ mode.
26151         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26152         sigfillset): Undefine macro definitions from the system header in C++
26153         mode.
26154         Reported by John W. Eaton <jwe@gnu.org>.
26155
26156 2010-03-20  Bruno Haible  <bruno@clisp.org>
26157
26158         Ensure no #include statements inside extern "C" { ... }.
26159         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26160         contain #include statements.
26161         * lib/time.in.h: Likewise.
26162
26163 2010-03-20  Bruno Haible  <bruno@clisp.org>
26164
26165         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26166         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26167         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26168         Reported by John W. Eaton <jwe@gnu.org>.
26169
26170 2010-03-20  Bruno Haible  <bruno@clisp.org>
26171
26172         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26173         Reported by Jim Meyering.
26174
26175 2010-03-20  Bruno Haible  <bruno@clisp.org>
26176
26177         pipe: Set errno upon failure.
26178         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26179         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26180         errno value in error message.
26181
26182 2010-03-20  Bruno Haible  <bruno@clisp.org>
26183             Jim Meyering  <meyering@redhat.com>
26184
26185         lchown: Avoid "unused variable" warning.
26186         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26187
26188 2010-03-20  Bruno Haible  <bruno@clisp.org>
26189
26190         Work around unlink() bug on MacOS X 10.5.6.
26191         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26192         attempting to unlink a parent directory.
26193         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26194         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26195         activate for the replacement function.
26196         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26197
26198 2010-03-20  Bruno Haible  <bruno@clisp.org>
26199
26200         Fix link errors on Solaris 8.
26201         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26202         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26203
26204 2010-03-19  Jim Meyering  <meyering@redhat.com>
26205
26206         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26207         The _LIBC implementation of build_range_exp correctly honors the
26208         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26209         However, the non-_LIBC implementation would ignore that syntax-bit
26210         flag and return REG_ERANGE unconditionally.
26211         This change makes it honor that flag.
26212         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26213         Make two pointer parameters "const".
26214         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26215         (parse_bracket_exp): Update caller.
26216
26217         regex.m4: correct the reversed range endpoint ([b-a]) test
26218         * m4/regex.m4: When requiring that [b-a] evoke failure,
26219         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26220         test pass once again for x86-based systems.
26221
26222 2010-03-19  Bruno Haible  <bruno@clisp.org>
26223
26224         scandir: Fix link error on Solaris 8.
26225         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26226         macros.
26227
26228 2010-03-19  Bruno Haible  <bruno@clisp.org>
26229
26230         getusershell: Fix documentation.
26231         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26232         module.
26233         * doc/glibc-functions/setusershell.texi: Likewise.
26234
26235         getusershell: Provide declaration, missing on Solaris 9.
26236         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26237         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26238         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26239         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26241         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26242         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26243         HAVE_GETUSERSHELL.
26244         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26245
26246 2010-03-19  Bruno Haible  <bruno@clisp.org>
26247
26248         wctype: Provide iswblank function.
26249         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26250         exists and is fine.
26251         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26252         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26253         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26254         * doc/posix-functions/iswblank.texi: Update.
26255
26256 2010-03-19  Bruno Haible  <bruno@clisp.org>
26257
26258         Tests of module 'pty' in C++ mode.
26259         * modules/pty-tests: New file.
26260         * tests/test-pty-c++.cc: New file.
26261         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26262
26263 2010-03-19  Eric Blake  <eblake@redhat.com>
26264
26265         logb: fix documentation
26266         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26267         1.5 declaration bug.
26268
26269         forkpty, openpty: prefer glibc's const-safe prototype
26270         * lib/forkpty.c (rpl_forkpty): New file.
26271         * lib/openpty.c (rpl_openpty): Likewise.
26272         * modules/forkpty (Files): Distribute it.
26273         * modules/openpty (Files): Likewise.
26274         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26275         check...
26276         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26277         replacement for for non-const BSD signature.
26278         * modules/pty (Makefile.am): Substitute witnesses.
26279         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26280         * tests/test-forkpty.c: Update signature check.
26281         * tests/test-openpty.c: Likewise.
26282         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26283         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26284
26285         forkpty, openpty: split functions into new modules
26286         * modules/pty (Makefile.am): Substitute new witnesses.
26287         (Libraries): Move library detection...
26288         * modules/forkpty: ...into new module.
26289         * modules/openpty: Another new module.
26290         * modules/pty-tests: Rename and split...
26291         * modules/forkpty-tests: ...to this...
26292         * modules/openpty-tests: ...and this.
26293         * tests/test-pty.c: Rename and split...
26294         * tests/test-forkpty.c: ...to this...
26295         * tests/test-openpty.c: ...and this.
26296         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26297         (gl_PTY): Split library searching...
26298         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26299         (gl_FORKPTY, gl_OPENPTY): New macros.
26300         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26301         * NEWS: Mention the split.
26302         * MODULES.html.sh (Misc): Document the modules.
26303         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26304         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26305
26306         pty: improve replacement header
26307         * lib/pty.in.h: New file.
26308         * modules/pty (Files): Ship it.
26309         (Makefile.am): Always build replacement.
26310         * m4/pty.m4: Rename...
26311         * m4/pty_h.m4: ...to this.
26312         (gl_PTY): Modernize setting of witness macros; update check of
26313         forkpty to take proper advantage of cache.
26314         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26315
26316         getopt: avoid compiler warning
26317         * lib/getopt.c (attribute_hidden): Remove unused macro.
26318
26319 2010-03-18  Bruno Haible  <bruno@clisp.org>
26320
26321         Fix link errors on Solaris 8.
26322         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26323         * modules/search-tests (test_search_c___LDADD): Likewise.
26324         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26325         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26326         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26327         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26328         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26329         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26330         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26331
26332 2010-03-18  Bruno Haible  <bruno@clisp.org>
26333
26334         Fix bug introduced on 2010-03-14.
26335         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26336         (gl_SPAWN_H): Require it.
26337         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26338         Reported by Simon Josefsson.
26339
26340 2010-03-18  Bruno Haible  <bruno@clisp.org>
26341
26342         Fix typo introduced on 2009-12-31.
26343         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26344         posix_spawn_file_actions_adddup2.
26345
26346 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26347         and Eric Blake  <eblake@redhat.com>
26348
26349         test-vc-list-files-git: make more robust
26350         * tests/test-vc-list-files-git.sh: Unset problematic environment
26351         variables.  Chain commands together.
26352
26353 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26354
26355         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26356         `AC_CHECK_DECL' invocation.
26357
26358 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26359
26360         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26361         appears before executable statements. Suggested by Petr Sumbera
26362         <Petr.Sumbera@Sun.COM>.
26363
26364 2010-03-14  Bruno Haible  <bruno@clisp.org>
26365
26366         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26367         portability problems. Instead use a simpler test.
26368         (main): Check that invalid arguments are rejected only on Linux.
26369
26370 2010-03-14  Bruno Haible  <bruno@clisp.org>
26371
26372         Fix bug introduced on 2009-12-31.
26373         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26374         gl_PREREQ_SYS_H_WINSOCK2 always.
26375         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26376         SYS_SOCKET_H variable.
26377         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26378         Update comments.
26379         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26380         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26381         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26382         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26383         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26384
26385 2010-03-14  Bruno Haible  <bruno@clisp.org>
26386
26387         Fix values returned by sinl, cosl.
26388         * lib/trigl.h: Add specification comments.
26389         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26390         that combines the values from the precomputed table with the values of
26391         the Chebyshev polynomials.
26392
26393 2010-03-14  Bruno Haible  <bruno@clisp.org>
26394
26395         Fix compilation error when modules 'posix_spawn[p]' are not used.
26396         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26397         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26398
26399 2010-03-14  Bruno Haible  <bruno@clisp.org>
26400
26401         Fix compilation error on mingw when module 'time_r' is not used.
26402         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26403         is 1.
26404         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26405         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26406         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26407         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26408
26409 2010-03-14  Bruno Haible  <bruno@clisp.org>
26410
26411         Fix compilation error with Sun C.
26412         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26413         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26414         instead of GCC specific ULONG_LONG_MAX.
26415         * lib/xstrtoll.c: Likewise.
26416         * lib/xstrtoull.c: Likewise.
26417
26418 2010-03-13  Bruno Haible  <bruno@clisp.org>
26419
26420         Allow the user to disable C++ code and tests.
26421         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26422         (gl_PROG_ANSI_CXX): Require it.
26423
26424 2010-03-13  Bruno Haible  <bruno@clisp.org>
26425
26426         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26427         cases.
26428
26429 2010-03-13  Bruno Haible  <bruno@clisp.org>
26430
26431         Test that gnulib does not break the standard C++ headers.
26432         * tests/test-locale-c++2.cc: New file.
26433         * modules/locale-tests (Files): Add it.
26434         (Makefile.am): Compile it for test-locale-c++.
26435         * tests/test-math-c++2.cc: New file.
26436         * modules/math-tests (Files): Add it.
26437         (Makefile.am): Compile it for test-math-c++.
26438         * tests/test-signal-c++2.cc: New file.
26439         * modules/signal-tests (Files): Add it.
26440         (Makefile.am): Compile it for test-signal-c++.
26441         * tests/test-stdio-c++2.cc: New file.
26442         * modules/stdio-tests (Files): Add it.
26443         (Makefile.am): Compile it for test-stdio-c++.
26444         * tests/test-stdlib-c++2.cc: New file.
26445         * modules/stdlib-tests (Files): Add it.
26446         (Makefile.am): Compile it for test-stdlib-c++.
26447         * tests/test-string-c++2.cc: New file.
26448         * modules/string-tests (Files): Add it.
26449         (Makefile.am): Compile it for test-string-c++.
26450         * tests/test-time-c++2.cc: New file.
26451         * modules/time-tests (Files): Add it.
26452         (Makefile.am): Compile it for test-time-c++.
26453         Reported by John W. Eaton <jwe@gnu.org>.
26454
26455 2010-03-13  Bruno Haible  <bruno@clisp.org>
26456
26457         * gnulib-tool (func_usage): Clarify which options are available for
26458         --create-testdir and --create-megatestdir.
26459
26460 2010-03-13  Bruno Haible  <bruno@clisp.org>
26461
26462         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26463         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26464         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26465         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26466         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26467         when appropriate.
26468         Reported by Jim Meyering.
26469
26470 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26471
26472         * gnulib-tool (func_import): Explain origin of code.
26473
26474 2010-03-12  Bruno Haible  <bruno@clisp.org>
26475
26476         Fix problem with automake's definition of CXXLINK.
26477         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26478         Reported by Simon Josefsson and Ludovic Courtès.
26479
26480 2010-03-12  Bruno Haible  <bruno@clisp.org>
26481
26482         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26483         stable releases.
26484
26485 2010-03-11  Bruno Haible  <bruno@clisp.org>
26486
26487         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26488         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26489         whether the system provides one variant or multiple variants of the
26490         function.
26491         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26492         C++ compilers.
26493         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26494         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26495         Reported by Jim Meyering.
26496
26497 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26498
26499         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26500
26501 2010-03-08  Bruno Haible  <bruno@clisp.org>
26502
26503         gnulib-tool: Add support for --libtool in --create-testdir.
26504         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26505         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26506
26507 2010-03-08  Eric Blake  <eblake@redhat.com>
26508
26509         gnulib-tool.texi: mention possibility of git submodule
26510         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26511         submodules.
26512         * doc/.gitignore: Ignore another generated file.
26513
26514 2010-03-08  Karl Berry  <karl@gnu.org>
26515
26516         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26517         of committing gnulib files while skipping others.
26518
26519 2010-03-07  Bruno Haible  <bruno@clisp.org>
26520
26521         Tests of module 'wctype' in C++ mode.
26522         * tests/test-wctype-c++.cc: New file.
26523         * modules/wctype-tests (Files): Add it and tests/signature.h.
26524         (Depends-on): Add ansi-c++-opt.
26525         (Makefile.am): Arrange to compile and run test-wctype-c++.
26526
26527         Tests of module 'wchar' in C++ mode.
26528         * tests/test-wchar-c++.cc: New file.
26529         * modules/wchar-tests (Files): Add it and tests/signature.h.
26530         (Depends-on): Add ansi-c++-opt.
26531         (Makefile.am): Arrange to compile and run test-wchar-c++.
26532         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26533         gl_MODULE_INDICATOR.
26534
26535         Tests of module 'unistd' in C++ mode.
26536         * tests/test-unistd-c++.cc: New file.
26537         * modules/unistd-tests (Files): Add it and tests/signature.h.
26538         (Depends-on): Add ansi-c++-opt.
26539         (Makefile.am): Arrange to compile and run test-unistd-c++.
26540         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26541         gl_MODULE_INDICATOR.
26542
26543         Tests of module 'time' in C++ mode.
26544         * tests/test-time-c++.cc: New file.
26545         * modules/time-tests (Files): Add it and tests/signature.h.
26546         (Depends-on): Add ansi-c++-opt.
26547         (Makefile.am): Arrange to compile and run test-time-c++.
26548         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26549
26550         Tests of module 'sys_time' in C++ mode.
26551         * tests/test-sys_time-c++.cc: New file.
26552         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26553         (Depends-on): Add ansi-c++-opt.
26554         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26555         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26556         gl_MODULE_INDICATOR.
26557
26558         Tests of module 'sys_stat' in C++ mode.
26559         * tests/test-sys_stat-c++.cc: New file.
26560         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26561         (Depends-on): Add ansi-c++-opt.
26562         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26563         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26564         gl_MODULE_INDICATOR.
26565
26566         Tests of module 'sys_socket' in C++ mode.
26567         * tests/test-sys_socket-c++.cc: New file.
26568         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26569         (Depends-on): Add ansi-c++-opt.
26570         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26571         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26572         gl_MODULE_INDICATOR.
26573
26574         Tests of module 'sys_select' in C++ mode.
26575         * tests/test-sys_select-c++.cc: New file.
26576         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26577         (Depends-on): Add ansi-c++-opt.
26578         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26579         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26580         gl_MODULE_INDICATOR.
26581
26582         Tests of module 'sys_ioctl' in C++ mode.
26583         * tests/test-sys_ioctl-c++.cc: New file.
26584         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26585         (Depends-on): Add ansi-c++-opt.
26586         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26587         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26588         gl_MODULE_INDICATOR.
26589
26590         Tests of module 'string' in C++ mode.
26591         * tests/test-string-c++.cc: New file.
26592         * modules/string-tests (Files): Add it and tests/signature.h.
26593         (Depends-on): Add ansi-c++-opt.
26594         (Makefile.am): Arrange to compile and run test-string-c++.
26595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26596         gl_MODULE_INDICATOR.
26597
26598         Tests of module 'stdlib' in C++ mode.
26599         * tests/test-stdlib-c++.cc: New file.
26600         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26601         (Depends-on): Add ansi-c++-opt.
26602         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26603         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26604         gl_MODULE_INDICATOR.
26605
26606         Tests of module 'stdio' in C++ mode.
26607         * tests/test-stdio-c++.cc: New file.
26608         * modules/stdio-tests (Files): Add it and tests/signature.h.
26609         (Depends-on): Add ansi-c++-opt.
26610         (Makefile.am): Arrange to compile and run test-stdio-c++.
26611         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26612         gl_MODULE_INDICATOR.
26613
26614         Tests of module 'spawn' in C++ mode.
26615         * tests/test-spawn-c++.cc: New file.
26616         * modules/spawn-tests (Files): Add it and tests/signature.h.
26617         (Depends-on): Add ansi-c++-opt.
26618         (Makefile.am): Arrange to compile and run test-spawn-c++.
26619         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26620         gl_MODULE_INDICATOR.
26621
26622         Tests of module 'signal' in C++ mode.
26623         * tests/test-signal-c++.cc: New file.
26624         * modules/signal-tests (Files): Add it and tests/signature.h.
26625         (Depends-on): Add ansi-c++-opt.
26626         (Makefile.am): Arrange to compile and run test-signal-c++.
26627         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26628         gl_MODULE_INDICATOR.
26629
26630         Tests of module 'search' in C++ mode.
26631         * tests/test-search-c++.cc: New file.
26632         * modules/search-tests (Files): Add it and tests/signature.h.
26633         (Depends-on): Add ansi-c++-opt.
26634         (Makefile.am): Arrange to compile and run test-search-c++.
26635         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26636         gl_MODULE_INDICATOR.
26637
26638         Tests of module 'math' in C++ mode.
26639         * tests/test-math-c++.cc: New file.
26640         * modules/math-tests (Files): Add it and tests/signature.h.
26641         (Depends-on): Add ansi-c++-opt.
26642         (Makefile.am): Arrange to compile and run test-math-c++.
26643         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26644
26645         Tests of module 'locale' in C++ mode.
26646         * tests/test-locale-c++.cc: New file.
26647         * modules/locale-tests (Files): Add it and tests/signature.h.
26648         (Depends-on): Add ansi-c++-opt.
26649         (Makefile.am): Arrange to compile and run test-locale-c++.
26650         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26651         gl_MODULE_INDICATOR.
26652
26653         Tests of module 'langinfo' in C++ mode.
26654         * tests/test-langinfo-c++.cc: New file.
26655         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26656         (Depends-on): Add ansi-c++-opt.
26657         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26658         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26659         gl_MODULE_INDICATOR.
26660
26661         Tests of module 'iconv-h' in C++ mode.
26662         * tests/test-iconv-h-c++.cc: New file.
26663         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26664         (Depends-on): Add ansi-c++-opt.
26665         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26666
26667         Tests of module 'glob' in C++ mode.
26668         * tests/test-glob-c++.cc: New file.
26669         * modules/glob-tests (Files): Add it.
26670         (Depends-on): Add ansi-c++-opt.
26671         (Makefile.am): Arrange to compile and run test-glob-c++.
26672
26673         Tests of module 'fcntl-h' in C++ mode.
26674         * tests/test-fcntl-h-c++.cc: New file.
26675         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26676         (Depends-on): Add ansi-c++-opt.
26677         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26678         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26679         gl_MODULE_INDICATOR.
26680
26681         Tests of module 'dirent' in C++ mode.
26682         * tests/test-dirent-c++.cc: New file.
26683         * modules/dirent-tests (Files): Add it and tests/signature.h.
26684         (Depends-on): Add ansi-c++-opt.
26685         (Makefile.am): Arrange to compile and run test-dirent-c++.
26686         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26687         gl_MODULE_INDICATOR.
26688
26689         New module 'ansi-c++-opt'.
26690         * modules/ansi-c++-opt: New file.
26691         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26692
26693         Document C++ namespace mode.
26694         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26695
26696         wctype: Avoid #define replacements in C++ mode.
26697         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26698         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26699         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26700         In C++, define a namespaced alias symbol.
26701         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26702         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26703         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26704         rule.
26705
26706         wchar: Avoid #define replacements in C++ mode.
26707         * lib/wchar.in.h: Include c++defs.h.
26708         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26709         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26710         symbol.
26711         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26712         * modules/wchar (Depends-on): Add c++defs.
26713         (Makefile.am): Update wchar.h rule.
26714
26715         unistd: Avoid #define replacements in C++ mode.
26716         * lib/unistd.in.h: Include c++defs.h.
26717         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26718         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26719         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26720         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26721         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26722         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26723         symbol.
26724         (environ): Update.
26725         * modules/unistd (Depends-on): Add c++defs.
26726         (Makefile.am): Update unistd.h rule.
26727
26728         time: Avoid #define replacements in C++ mode.
26729         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26730         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26731         define a namespaced alias symbol.
26732         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26733         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26734         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26735         * modules/time (Depends-on): Add c++defs, warn-on-use.
26736         (Makefile.am): Update time.h rule.
26737         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26738         * modules/nanosleep (configure.ac): Likewise.
26739         * modules/strptime (configure.ac): Likewise.
26740         * modules/timegm (configure.ac): Likewise.
26741
26742         sys_time: Avoid #define replacements in C++ mode.
26743         * lib/sys_time.in.h: Include c++defs.h.
26744         (gettimeofday): In C++, define a namespaced alias symbol.
26745         * modules/sys_time (Depends-on): Add c++defs.
26746         (Makefile.am): Update sys/time.h rule.
26747
26748         sys_stat: Avoid #define replacements in C++ mode.
26749         * lib/sys_stat.in.h: Include c++defs.h.
26750         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26751         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26752         namespaced alias symbol.
26753         In C++, define a namespaced alias symbol.
26754         * modules/sys_stat (Depends-on): Add c++defs.
26755         (Makefile.am): Update sys/stat.h rule.
26756
26757         sys_socket: Avoid #define replacements in C++ mode.
26758         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26759         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26760         definitions also when the system has a <sys/socket.h>.
26761         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26762         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26763         In C++, define a namespaced alias symbol.
26764         * modules/sys_socket (Depends-on): Add c++defs.
26765         (Makefile.am): Update sys/socket.h rule.
26766
26767         sys_select: Avoid #define replacements in C++ mode.
26768         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26769         definitions also when the system has a <sys/select.h>.
26770         (select): In C++, define a namespaced alias symbol.
26771         * modules/sys_select (Depends-on): Add c++defs.
26772         (Makefile.am): Update sys/select.h rule.
26773
26774         sys_ioctl: Avoid #define replacements in C++ mode.
26775         * lib/sys_ioctl.in.h: Include c++defs.h.
26776         (ioctl): In C++, define a namespaced alias symbol.
26777         * modules/sys_ioctl (Depends-on): Add c++defs.
26778         (Makefile.am): Update sys/ioctl.h rule.
26779
26780         string: Avoid #define replacements in C++ mode.
26781         * lib/string.in.h: Include c++defs.h.
26782         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26783         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26784         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26785         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26786         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26787         * modules/string (Depends-on): Add c++defs.
26788         (Makefile.am): Update string.h rule.
26789
26790         stdlib: Avoid #define replacements in C++ mode.
26791         * lib/stdlib.in.h: Include c++defs.h.
26792         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26793         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26794         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26795         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26796         symbol.
26797         * modules/stdlib (Depends-on): Add c++defs.
26798         (Makefile.am): Update stdlib.h rule.
26799
26800         stdio: Avoid #define replacements in C++ mode.
26801         * lib/stdio.in.h: Include c++defs.h.
26802         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26803         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26804         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26805         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26806         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26807         namespaced alias symbol.
26808         * modules/stdio (Depends-on): Add c++defs.
26809         (Makefile.am): Update stdio.h rule.
26810
26811         spawn: Avoid #define replacements in C++ mode.
26812         * lib/spawn.in.h: Include c++defs.h.
26813         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26814         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26815         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26816         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26817         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26818         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26819         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26820         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26821         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26822         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26823         In C++, define a namespaced alias symbol.
26824         * modules/spawn (Depends-on): Add c++defs.
26825         (Makefile.am): Update spawn.h rule.
26826
26827         signal: Avoid #define replacements in C++ mode.
26828         * lib/signal.in.h: Include c++defs.h.
26829         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26830         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26831         namespaced alias symbol.
26832         * modules/signal (Depends-on): Add c++defs.
26833         (Makefile.am): Update signal.h rule.
26834
26835         search: Avoid #define replacements in C++ mode.
26836         * lib/search.in.h: Include c++defs.h.
26837         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26838         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26839         symbol.
26840         * modules/search (Depends-on): Add c++defs.
26841         (Makefile.am): Update search.h rule.
26842
26843         math: Avoid #define replacements in C++ mode.
26844         * lib/math.in.h: Include c++defs.h.
26845         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26846         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26847         trunc, truncl): In C++, define a namespaced alias symbol.
26848         * modules/math (Depends-on): Add c++defs.
26849         (Makefile.am): Update math.h rule.
26850
26851         locale: Avoid #define replacements in C++ mode.
26852         * lib/locale.in.h: Include c++defs.h.
26853         (duplocale): In C++, define a namespaced alias symbol.
26854         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26855         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26856         * modules/locale (Depends-on): Add c++defs.
26857         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26858
26859         langinfo: Avoid #define replacements in C++ mode.
26860         * lib/langinfo.in.h: Include c++defs.h.
26861         (nl_langinfo): In C++, define a namespaced alias symbol.
26862         * modules/langinfo (Depends-on): Add c++defs.
26863         (Makefile.am): Update langinfo.h rule.
26864
26865         iconv-h: Avoid #define replacements in C++ mode.
26866         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26867         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26868         symbol.
26869         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26870         whenever iconv is present.
26871         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26872         (Makefile.am): Update iconv.h rule.
26873
26874         glob: Avoid #define replacements in C++ mode.
26875         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26876         (_gl_glob_errfunc_fn): New type.
26877         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26878         symbol.
26879         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26880         (Makefile.am): Update glob.h rule.
26881
26882         fcntl-h: Avoid #define replacements in C++ mode.
26883         * lib/fcntl.in.h: Include c++defs.h.
26884         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26885         * modules/fcntl-h (Depends-on): Add c++defs.
26886         (Makefile.am): Update fcntl.h rule.
26887
26888         dirent: Avoid #define replacements in C++ mode.
26889         * lib/dirent.in.h: Include c++defs.h.
26890         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26891         namespaced alias symbol.
26892         (dirfd): Update declaration.
26893         * modules/dirent (Depends-on): Add c++defs.
26894         (Makefile.am): Update dirent.h rule.
26895
26896         ctype: Make it usable in C++ code.
26897         * lib/ctype.in.h: Include c++defs.h.
26898         (isblank): Declare as extern "C".
26899         * modules/ctype (Depends-on): Add c++defs.
26900         (Makefile.am): Update ctype.h rule.
26901
26902         New module 'c++defs'.
26903         * modules/c++defs: New file.
26904         * build-aux/c++defs.h: New file.
26905         Reported by John W. Eaton <jwe@gnu.org>.
26906
26907 2010-03-07  Bruno Haible  <bruno@clisp.org>
26908
26909         logb: Provide missing declaration for Cygwin.
26910         * lib/math.in.h (logb): New declaration.
26911         * m4/logb.m4: New file.
26912         * modules/logb (Files): Add m4/logb.m4.
26913         (Depends-on): Add math.
26914         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26915         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26917         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26918         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26919
26920 2010-03-07  Bruno Haible  <bruno@clisp.org>
26921
26922         Fix test-cond link error.
26923         * tests/test-cond.c: Include <stdio.h>.
26924
26925 2010-03-07  Bruno Haible  <bruno@clisp.org>
26926
26927         Fix test-dirent-safer link error.
26928         * modules/dirent-safer-tests (Makefile.am): Define
26929         test_dirent_safer_LDADD.
26930
26931 2010-03-07  Bruno Haible  <bruno@clisp.org>
26932
26933         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26934         among default module list.
26935
26936 2010-03-07  Bruno Haible  <bruno@clisp.org>
26937
26938         Fix link error on platforms with GNU libiconv.
26939         * modules/unistr/u8-strcoll-tests (Makefile): Define
26940         test_u8_strcoll_LDADD.
26941         * modules/unistr/u16-strcoll-tests (Makefile): Define
26942         test_u16_strcoll_LDADD.
26943         * modules/unistr/u32-strcoll-tests (Makefile): Define
26944         test_u32_strcoll_LDADD.
26945
26946 2010-03-07  Bruno Haible  <bruno@clisp.org>
26947
26948         Use POSIX declarations for socket functions.
26949         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26950         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26951         rpl_sendto): Change declaration to match POSIX.
26952         * lib/connect.c (rpl_connect): Likewise.
26953         * lib/accept.c (rpl_accept): Likewise.
26954         * lib/bind.c (rpl_bind): Likewise.
26955         * lib/getpeername.c (rpl_getpeername): Likewise.
26956         * lib/getsockname.c (rpl_getsockname): Likewise.
26957         * lib/recv.c (rpl_recv): Likewise.
26958         * lib/send.c (rpl_send): Likewise.
26959         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26960         * lib/sendto.c (rpl_sendto): Likewise.
26961
26962 2010-03-06  Bruno Haible  <bruno@clisp.org>
26963
26964         Clarify access, euidaccess, faccessat.
26965         * doc/posix-functions/faccessat.texi: Mention security problem under
26966         "Other problems", not "Portability problems".
26967         * doc/posix-functions/access.texi: Likewise. Mention a related security
26968         problem.
26969         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26970         * lib/euidaccess.c: Add comments about platforms.
26971         * lib/unistd.in.h (access, euidaccess): Add warnings.
26972
26973 2010-03-07  Bruno Haible  <bruno@clisp.org>
26974
26975         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26976         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26977         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26978         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26979         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26980         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26981         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26982         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26983         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26984         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26985         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26986         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26987         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26988         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26989         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26990         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26991         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26992         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26993         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26994         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26995         Likewise.
26996         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26997         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26998         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26999         Likewise.
27000         * tests/test-spawn.c (main): Make it work when
27001         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27002
27003 2010-03-07  Bruno Haible  <bruno@clisp.org>
27004
27005         Fix incorrect Makefile.am generation in German locale.
27006         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27007         Execute sed command with character range in C locale.
27008
27009 2010-03-06  Bruno Haible  <bruno@clisp.org>
27010
27011         Tests for module 'iconv-h'.
27012         * modules/iconv-h-tests: New file.
27013         * tests/test-iconv-h.c: New file.
27014
27015         New module 'iconv-h'.
27016         * modules/iconv-h: New file.
27017         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27018         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27019         (configure.ac): Remove gl_ICONV_H.
27020         (Makefile.am): Remove rule for iconv.h.
27021
27022 2010-03-06  Bruno Haible  <bruno@clisp.org>
27023
27024         More consistent naming of *.m4 files.
27025         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27026         * modules/wctype (Files): Update.
27027
27028         More consistent naming of *.m4 files.
27029         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27030         * modules/wchar (Files): Update.
27031
27032 2010-03-06  Jim Meyering  <meyering@redhat.com>
27033
27034         euidaccess: relax license to LGPLv2+
27035         * modules/euidaccess (License): Relax to LGPLv2+.
27036
27037 2010-03-06  Bruno Haible  <bruno@clisp.org>
27038
27039         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27040         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27041         (Makefile.am): Augment lib_SOURCES instead.
27042
27043 2010-03-04  Jim Meyering  <meyering@redhat.com>
27044
27045         utime: remove obsolete module
27046         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27047         unnecessary for years, and has been marked as obsolete for 10 months.
27048         * modules/utime: Remove file.
27049         * lib/utime.c: Remove file.
27050         * m4/utime.m4: Remove file.
27051         * m4/utimes-null.m4: Remove file.
27052         * doc/posix-functions/utime.texi (utime): Remove reference to
27053         the module.  Move the sole "fixed by gnulib" item into the
27054         "problems not fixed by Gnulib" list.
27055         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27056
27057 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27058
27059         * modules/exit (License): Relax license to LGPLv2+.
27060         (Status): Mark as obsolete.
27061         * NEWS: Mention deprecated 'exit' module.
27062         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27063         of now obsolete 'exit'.
27064
27065 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27066
27067         fts-lgpl: remove unused module
27068         * modules/fts-lgpl: Remove.
27069         * MODULES.html.sh (func_all_modules): Adjust.
27070         * check-module (find_included_lib_files): Adjust.
27071         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27072
27073 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27074
27075         copy-acl: enhance Solaris ACL error handling
27076         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27077         * lib/set-mode-acl.c (qset_acl): Likewise.
27078
27079 2010-03-02  Bruno Haible  <bruno@clisp.org>
27080
27081         spawn: Don't override the system defined values on FreeBSD 8.
27082         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27083         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27084         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27085         if HAVE_POSIX_SPAWN is 1.
27086         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27087
27088 2010-03-01  Bruno Haible  <bruno@clisp.org>
27089
27090         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27091         regarding Automake.
27092
27093 2010-02-25  Bruno Haible  <bruno@clisp.org>
27094
27095         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27096         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27097         setting, not afterwards.
27098         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27099
27100 2010-02-24  Eric Blake  <eblake@redhat.com>
27101
27102         bootstrap, git-version-gen: use timestamp
27103         * build-aux/git-version-gen (scriptversion): Force UTC.
27104         * build-aux/bootstrap (scriptversion): New variable.
27105
27106         bootstrap: allow older git
27107         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27108         older than 1.6.4.  Requested by the libvirt project.
27109
27110 2010-02-23  Eric Blake  <eblake@redhat.com>
27111
27112         warn-on-use: work with old autoconf
27113         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27114         AS_VAR semantics of autoconf 2.60.
27115         Reported by Bruno Haible.
27116
27117         bootstrap: improve some comments
27118         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27119         clarification comments.
27120
27121         gettimeofday: provide correct function
27122         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27123         when replacement is declared, otherwise provide gettimeofday.
27124         Reported by Michael Goffioul.
27125
27126 2010-02-23  Jim Meyering  <meyering@redhat.com>
27127
27128         lib-ignore: relax license to "unlimited", not LGPLv2+
27129         * modules/lib-ignore (License): Relax to "unlimited".
27130
27131 2010-02-23  Jim Meyering  <meyering@redhat.com>
27132
27133         lib-ignore: relax license to LGPLv2+
27134         * modules/lib-ignore (License): Relax to LGPLv2+.
27135
27136 2010-02-22  Eric Blake  <eblake@redhat.com>
27137
27138         lseek: avoid bash 3.2 broken pipe bug
27139         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27140         warning from bash 3.2.
27141         Reported by Ben Pfaff, with analysis from Bruno Haible.
27142
27143         bootstrap: support non-FSF copyright holder
27144         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27145         bootstrap.conf override of COPYRIGHT_HOLDER.
27146         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27147
27148         bootstrap: interoperate with gettext 0.14.1
27149         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27150
27151         bootstrap: allow for alternate submodule location
27152         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27153         hardcoding submodule location.
27154         (gnulib_mk): Allow direct use of Makefile.am.
27155
27156         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27157         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27158         rather than reconfiguring where the submodule points.
27159
27160         gettimeofday: restore support for platforms that lack function
27161         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27162         replacement if function is missing.
27163         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27164         * modules/sys_time (Makefile.am): Substitute it.
27165         * lib/sys_time.in.h (gettimeofday): Check it.
27166         Reported by Michael Goffioul.
27167
27168 2010-02-21  Bruno Haible  <bruno@clisp.org>
27169
27170         * lib/stdio.in.h (obstack_printf): Fix typo.
27171
27172 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27173
27174         vc-list-files: use bzr ls's -R option
27175         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27176         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27177
27178 2010-02-21  Jim Meyering  <meyering@redhat.com>
27179
27180         init.sh: fix EXEEXT shims to work also for names like test-prog
27181         * tests/init.sh: Re-exec a better shell, when needed.
27182         If the current shell lacks support for posix $(...), an init.sh-using
27183         test will now try to find a shell that supports that.  If EXEEXT is
27184         nonempty, we also require support for hyphen-in-alias-name and shell
27185         substitutions like ${var#glob}.  Failure to find such a shell results
27186         in a skipped test.
27187
27188 2010-02-21  Bruno Haible  <bruno@clisp.org>
27189
27190         Really work around around "broken pipe" error message from bash 3.2.
27191         * gnulib-tool (func_reset_sigpipe): Remove function.
27192         (echo): In bash 3.2, define to a function that uses printf.
27193         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27194
27195 2010-02-20  Bruno Haible  <bruno@clisp.org>
27196
27197         Restore support for automake 1.9.6 with autoconf 2.61.
27198         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27199         Reported by James Youngman <jay@gnu.org>.
27200
27201 2010-02-20  Bruno Haible  <bruno@clisp.org>
27202
27203         Improve *printf warning condition.
27204         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27205         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27206         and the function is overridden due to SIGPIPE emulation.
27207
27208 2010-02-20  Bruno Haible  <bruno@clisp.org>
27209
27210         * lib/stdio.in.h: Tweak comments.
27211
27212 2010-02-19  Bruno Haible  <bruno@clisp.org>
27213
27214         Make it easier to find modules. New gnulib-tool option '--find'.
27215         * gnulib-tool: New option --find.
27216         (func_usage): Document it.
27217         (func_sanitize_modulelist): New function, extracted from
27218         func_all_modules.
27219         (func_all_modules): Invoke it.
27220         * doc/gnulib-tool.texi (Which modules?): New node.
27221
27222 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27223
27224         * lib/sys_select.in.h: Provide select replacement even if
27225         sys/select.h exists on a system, for Interix.
27226
27227 2010-02-18  Jim Meyering  <meyering@redhat.com>
27228
27229         init.sh: don't use $(...) just yet
27230         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27231         to accommodate e.g., Solaris' /bin/sh.
27232
27233 2010-02-17  Bruno Haible  <bruno@clisp.org>
27234
27235         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27236         Reported by Ludovic Courtès <ludo@gnu.org>.
27237
27238 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27239
27240         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27241         linking with -lintl.
27242
27243 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27244
27245         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27246         if not provided by the system's netdb.h.  Reported by
27247         ludo@gnu.org (Ludovic Courtès).
27248
27249 2010-02-15  Jim Meyering  <meyering@redhat.com>
27250
27251         init.sh: improve portability and efficiency
27252         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27253         "dummy" in a for loop.
27254         Use '!', not '^' to select the complement of a character set used
27255         in a "case" statement.
27256         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27257         Suggestions from Eric Blake.
27258
27259         init.sh: automatically accommodate programs with the .exe suffix
27260         Automatically arrange for an invocation of "prog" to execute the
27261         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27262         may use the simpler "prog", yet still work when built on a system
27263         that requires specifying the added suffix.
27264         Do this by constructing a function named "prog" that invokes
27265         "prog.exe" for each .exe file in selected directories.
27266         * tests/init.sh (find_exe_basenames_): New function.
27267         (create_exe_shim_functions_): New function.
27268         (path_prepend_): Use it.
27269
27270         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27271         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27272         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27273
27274 2010-02-14  Jim Meyering  <meyering@redhat.com>
27275
27276         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27277         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27278         (sc_prohibit_hash_pjw_without_use): New rule.
27279
27280         maint.mk: allow the default upload destination dir to be overridden
27281         * top/maint.mk (upload_dest_dir_): Define with a default that
27282         preserves the status quo.
27283         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27284         Reported by Peter Simons.
27285
27286         maint.mk: prohibit inclusion of "hash.h" without_use
27287         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27288
27289 2010-02-10  Jim Meyering  <meyering@redhat.com>
27290
27291         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27292         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27293
27294 2010-02-09  Eric Blake  <ebb9@byu.net>
27295         and Bruno Haible  <bruno@clisp.org>
27296
27297         obstack-printf-posix: ensure declaration
27298         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27299         extracted from gl_FUNC_OBSTACK_PRINTF.
27300         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27301         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27302         Likewise.
27303         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27304         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27305         0.
27306
27307 2010-02-08  Bruno Haible  <bruno@clisp.org>
27308
27309         gnulib-tool: Fix typo in 2010-02-07 commit.
27310         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27311         Reported by Eric Blake.
27312
27313 2010-02-07  Bruno Haible  <bruno@clisp.org>
27314
27315         gnulib-tool: Fix up caching patches.
27316         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27317         option --no-cache. Use associative arrays when supported by the shell.
27318         (sed_comments): New variable.
27319         (modcache): Renamed from do_cache.
27320         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27321         abbreviate unnecessarily.
27322         (have_associative): New variable.
27323         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27324         way also for ksh and zsh.
27325         (func_init_sed_convert_to_cache_statements): New function, extracted
27326         from func_cache_lookup_module. Add support for associative arrays.
27327         Don't set the c_MODULE_cached variable here. Ignore all lines before
27328         the first field header. Remove only the final newline, not all trailing
27329         newlines. Support empty fields correctly. Limit the use of 'eval' to
27330         assignments.
27331         (func_get_description, func_get_status, func_get_notice,
27332         func_get_applicability, func_get_filelist, func_get_dependencies,
27333         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27334         func_get_automake_snippet, func_get_include_directive,
27335         func_get_link_directive, func_get_license, func_get_maintainer):
27336         Update documentation. List the unoptimized code first. Add support for
27337         associative arrays. Limit the use of 'eval' to assignments.
27338         (func_get_applicability): Undo stylistic pessimisations.
27339         (func_get_automake_snippet, func_get_include_directive): Reduce code
27340         duplication.
27341         (func_modules_transitive_closure, func_modules_add_dummy,
27342         func_modules_notice, func_modules_to_filelist, func_add_file,
27343         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27344         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27345         func_create_testdir, func_create_megatestdir): Update documentation.
27346
27347 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27348
27349         * gnulib-tool (func_cache_lookup_module): Store the module name
27350         belonging to the cache variable; error out if two different
27351         module names map to the same cache variable name.
27352
27353 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27354
27355         gnulib-tool: Make caching optional.
27356         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27357         Update matching short versions of --no-changelog.
27358         (func_usage): Update.
27359         (sed_extract_cache_prog): Renamed from ...
27360         (sed_extract_prog): ... this; revert to old extraction script.
27361         (func_get_description, func_get_status)
27362         (func_get_notice, func_get_applicability, func_get_filelist)
27363         (func_get_dependencies, func_get_autoconf_early_snippet)
27364         (func_get_autoconf_snippet, func_get_automake_snippet)
27365         (func_get_include_directive, func_get_link_directive)
27366         (func_get_license, func_get_maintainer): If $do_cache is false,
27367         use old, non-caching extraction scripts.
27368         Suggestion by Bruno Haible.
27369
27370 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27371
27372         gnulib-tool: cache module metainformation.
27373         * gnulib-tool (sed_extract_prog): Match newline before each
27374         header, and rewrite header to a shell variable suffix.
27375         (func_cache_var, func_cache_lookup_module): New functions,
27376         to turn a module name into a cache variable prefix, and to
27377         look up and cache module metainformation.
27378         (func_get_description, func_get_status)
27379         (func_get_notice, func_get_applicability, func_get_filelist)
27380         (func_get_dependencies, func_get_autoconf_early_snippet)
27381         (func_get_autoconf_snippet, func_get_automake_snippet)
27382         (func_get_include_directive, func_get_link_directive)
27383         (func_get_license, func_get_maintainer): Use
27384         func_cache_lookup_module.
27385
27386 2010-02-07  Bruno Haible  <bruno@clisp.org>
27387
27388         fnctl: Fix missing dependency.
27389         * modules/fcntl (Depends-on): Add getdtablesize.
27390         Reported by John W. Eaton <jwe@gnu.org>.
27391
27392 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27393
27394         Argp: fix recognition of short alias options.
27395
27396         * lib/argp-parse.c (convert_options): Fix improper use of
27397         `|' between character values.
27398         * tests/test-argp.c (group1_option): New alias option
27399         --read (-r).
27400         (group1_parser): Special handling for 'r'.
27401         (test15): New test case.
27402         (test_fun): Add test15.
27403         * tests/test-argp-2.sh: Update expected --help and --usage
27404         outputs.
27405
27406 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27407
27408         * tests/test-argp.c: Fix indentation.
27409
27410 2010-02-04  Eric Blake  <ebb9@byu.net>
27411
27412         gettimeofday: expose type of second argument
27413         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27414         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27415         * tests/test-gettimeofday.c: Use it to silence warning.
27416         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27417         the issue.
27418
27419 2010-02-03  Jim Meyering  <meyering@redhat.com>
27420
27421         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27422         * lib/regcomp.c (TYPE_SIGNED): Define.
27423         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27424
27425         regcomp.c: avoid a new -Wshadow warning
27426         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27427
27428 2010-02-01  Jim Meyering  <meyering@redhat.com>
27429
27430         removing useless parentheses in cpp #define directives
27431         For motivation, see commit c0221df4, "define STREQ(a,b)
27432         consistently, removing useless parentheses"
27433         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27434         * lib/mountlist.c (MNT_IGNORE): Likewise.
27435         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27436
27437 2010-02-01  Eric Blake  <ebb9@byu.net>
27438
27439         sys_time: use link-warning
27440         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27441         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27442         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27443         * modules/sys_time (Depends-on): Add warn-on-use.
27444         (Makefile.am): Always build replacement.
27445         (configure.ac): Update substitutions.
27446         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27447         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27448         bother with SYS_TIME_H.
27449         * modules/gettimeofday (configure.ac): Declare indicator.
27450         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27451         in use.
27452
27453         closein-tests: silence compiler warning
27454         * tests/test-closein.c (main): Ignore fread result.
27455         * modules/closein-tests (Depends-on): Add ignore-value.
27456
27457         tests: silence warning about system return
27458         * tests/test-areadlink-with-size.c (main): Ignore system result.
27459         * tests/test-areadlink.c (main): Likewise.
27460         * tests/test-areadlinkat-with-size.c (main): Likewise.
27461         * tests/test-areadlinkat.c (main): Likewise.
27462         * tests/test-canonicalize-lgpl.c (main): Likewise.
27463         * tests/test-canonicalize.c (main): Likewise.
27464         * tests/test-chown.c (main): Likewise.
27465         * tests/test-fchownat.c (main): Likewise.
27466         * tests/test-fdutimensat.c (main): Likewise.
27467         * tests/test-fstatat.c (main): Likewise.
27468         * tests/test-futimens.c (main): Likewise.
27469         * tests/test-lchown.c (main): Likewise.
27470         * tests/test-link.c (main): Likewise.
27471         * tests/test-linkat.c (main): Likewise.
27472         * tests/test-lstat.c (main): Likewise.
27473         * tests/test-mkdir.c (main): Likewise.
27474         * tests/test-mkdirat.c (main): Likewise.
27475         * tests/test-mkfifo.c (main): Likewise.
27476         * tests/test-mkfifoat.c (main): Likewise.
27477         * tests/test-mknod.c (main): Likewise.
27478         * tests/test-readlink.c (main): Likewise.
27479         * tests/test-remove.c (main): Likewise.
27480         * tests/test-rename.c (main): Likewise.
27481         * tests/test-renameat.c (main): Likewise.
27482         * tests/test-rmdir.c (main): Likewise.
27483         * tests/test-symlink.c (main): Likewise.
27484         * tests/test-symlinkat.c (main): Likewise.
27485         * tests/test-unlink.c (main): Likewise.
27486         * tests/test-unlinkat.c (main): Likewise.
27487         * tests/test-utimens.c (main): Likewise.
27488         * tests/test-utimensat.c (main): Likewise.
27489         * modules/areadlink-tests (Depends-on): Add ignore-value.
27490         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27491         * modules/areadlinkat-tests (Depends-on): Likewise.
27492         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27493         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27494         * modules/canonicalize-tests (Depends-on): Likewise.
27495         * modules/chown-tests (Depends-on): Likewise.
27496         * modules/fdutimensat-tests (Depends-on): Likewise.
27497         * modules/futimens-tests (Depends-on): Likewise.
27498         * modules/lchown-tests (Depends-on): Likewise.
27499         * modules/link-tests (Depends-on): Likewise.
27500         * modules/linkat-tests (Depends-on): Likewise.
27501         * modules/lstat-tests (Depends-on): Likewise.
27502         * modules/mkdir-tests (Depends-on): Likewise.
27503         * modules/mkfifo-tests (Depends-on): Likewise.
27504         * modules/mkfifoat-tests (Depends-on): Likewise.
27505         * modules/mknod-tests (Depends-on): Likewise.
27506         * modules/openat-tests (Depends-on): Likewise.
27507         * modules/readlink-tests (Depends-on): Likewise.
27508         * modules/remove-tests (Depends-on): Likewise.
27509         * modules/rename-tests (Depends-on): Likewise.
27510         * modules/renameat-tests (Depends-on): Likewise.
27511         * modules/rmdir-tests (Depends-on): Likewise.
27512         * modules/symlink-tests (Depends-on): Likewise.
27513         * modules/symlinkat-tests (Depends-on): Likewise.
27514         * modules/unlink-tests (Depends-on): Likewise.
27515         * modules/utimens-tests (Depends-on): Likewise.
27516         * modules/utimensat-tests (Depends-on): Likewise.
27517
27518 2010-01-31  Bruno Haible  <bruno@clisp.org>
27519
27520         Perform the same test for many <math.h> functions.
27521         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27522         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27523         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27524         of gl_MATHFUNC.
27525         * modules/acos (configure.ac): Likewise.
27526         * modules/asin (configure.ac): Likewise.
27527         * modules/atan (configure.ac): Likewise.
27528         * modules/atan2 (configure.ac): Likewise.
27529         * modules/cbrt (configure.ac): Likewise.
27530         * modules/copysign (configure.ac): Likewise.
27531         * modules/cos (configure.ac): Likewise.
27532         * modules/cosh (configure.ac): Likewise.
27533         * modules/erf (configure.ac): Likewise.
27534         * modules/erfc (configure.ac): Likewise.
27535         * modules/exp (configure.ac): Likewise.
27536         * modules/fmod (configure.ac): Likewise.
27537         * modules/hypot (configure.ac): Likewise.
27538         * modules/j0 (configure.ac): Likewise.
27539         * modules/j1 (configure.ac): Likewise.
27540         * modules/jn (configure.ac): Likewise.
27541         * modules/lgamma (configure.ac): Likewise.
27542         * modules/log (configure.ac): Likewise.
27543         * modules/log10 (configure.ac): Likewise.
27544         * modules/log1p (configure.ac): Likewise.
27545         * modules/pow (configure.ac): Likewise.
27546         * modules/remainder (configure.ac): Likewise.
27547         * modules/sin (configure.ac): Likewise.
27548         * modules/sinh (configure.ac): Likewise.
27549         * modules/tan (configure.ac): Likewise.
27550         * modules/tanh (configure.ac): Likewise.
27551         * modules/y0 (configure.ac): Likewise.
27552         * modules/y1 (configure.ac): Likewise.
27553         * modules/yn (configure.ac): Likewise.
27554         Suggested by Paolo Bonzini.
27555
27556 2010-01-31  Bruno Haible  <bruno@clisp.org>
27557
27558         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27559
27560 2010-01-31  Bruno Haible  <bruno@clisp.org>
27561
27562         Work around getdelim() bug on FreeBSD 8.0.
27563         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27564         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27565         not work.
27566         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27567         is 1.
27568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27569         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27570         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27571         a non-zero size.
27572         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27573
27574 2010-01-31  Bruno Haible  <bruno@clisp.org>
27575
27576         Work around getline() bug on FreeBSD 8.0.
27577         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27578         and a non-zero size.
27579         * tests/test-getline.c (main): Likewise.
27580         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27581         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27582
27583 2010-01-28  Eric Blake  <ebb9@byu.net>
27584
27585         regex: fix build failure
27586         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27587         platforms.
27588
27589 2010-01-28  Jim Meyering  <meyering@redhat.com>
27590
27591         regex: do not ignore memory allocation failure
27592         * lib/regex_internal.c (create_cd_newstate): Detect
27593         re_node_set_init_copy failure.   Extracted from glibc commit
27594         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27595
27596         regex: sync more white-space changes from libc
27597         * lib/regex_internal.c: White-space only changes.
27598         * lib/regexec.c: Likewise.
27599
27600         regex: add many uses of __attribute_warn_unused_result__
27601         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27602         * lib/regexec.c: Likewise.
27603         Extracted from a messy glibc commit.
27604
27605         regcomp.c: spelling and merge-artifact from glibc
27606         * lib/regcomp.c: Merge remainder of glibc's
27607         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27608
27609         regcomp.c: sync white-space changes from glibc
27610         * lib/regcomp.c: Merge to accommodate white space
27611         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27612
27613         regcomp.c: do not ignore internal return values
27614         * lib/regcomp.c: Do not ignore internal return values.
27615         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27616         but without its white-space changes and spelling fixes.
27617
27618         regex_internal.h: define __attribute_warn_unused_result__
27619         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27620
27621         maint: add a syntax-check rule to check for vulnerable Makefile.in
27622         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27623
27624 2010-01-27  Jim Meyering  <meyering@redhat.com>
27625
27626         ncftpput-ftp: clean up spaces
27627         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27628         Remove trailing blanks.
27629
27630 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27631
27632         * build-aux/git-version-gen: Fix copyright statement.
27633         * build-aux/gnupload: Likewise.
27634         * tests/test-arcfour.c: Likewise.
27635         * tests/test-arctwo.c: Likewise.
27636         * tests/test-count-one-bits.c: Likewise.
27637         * tests/test-crc.c: Likewise.
27638         * tests/test-des.c: Likewise.
27639         * tests/test-gc-arcfour.c: Likewise.
27640         * tests/test-gc-arctwo.c: Likewise.
27641         * tests/test-gc-des.c: Likewise.
27642         * tests/test-gc-hmac-md5.c: Likewise.
27643         * tests/test-gc-hmac-sha1.c: Likewise.
27644         * tests/test-gc-md2.c: Likewise.
27645         * tests/test-gc-md4.c: Likewise.
27646         * tests/test-gc-md5.c: Likewise.
27647         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27648         * tests/test-gc-rijndael.c: Likewise.
27649         * tests/test-gc-sha1.c: Likewise.
27650         * tests/test-gc.c: Likewise.
27651         * tests/test-gethostname.c: Likewise.
27652         * tests/test-gettimeofday.c: Likewise.
27653         * tests/test-hash.c: Likewise.
27654         * tests/test-hmac-md5.c: Likewise.
27655         * tests/test-hmac-sha1.c: Likewise.
27656         * tests/test-md2.c: Likewise.
27657         * tests/test-md4.c: Likewise.
27658         * tests/test-md5.c: Likewise.
27659         * tests/test-memchr.c: Likewise.
27660         * tests/test-memchr2.c: Likewise.
27661         * tests/test-memcmp.c: Likewise.
27662         * tests/test-memmem.c: Likewise.
27663         * tests/test-memrchr.c: Likewise.
27664         * tests/test-rawmemchr.c: Likewise.
27665         * tests/test-read-file.c: Likewise.
27666         * tests/test-rijndael.c: Likewise.
27667         * tests/test-sockets.c: Likewise.
27668         * tests/test-strchrnul.c: Likewise.
27669         * tests/test-strstr.c: Likewise.
27670         * tests/test-strtod.c: Likewise.
27671         * build-aux/ncftpput-ftp: Likewise.
27672
27673 2010-01-26  Eric Blake  <ebb9@byu.net>
27674
27675         ignore-value: update recommended header name
27676         * modules/ignore-value (Include): Only use <> for headers that
27677         exist in glibc.
27678
27679 2010-01-26  Jim Meyering  <meyering@redhat.com>
27680
27681         test-userspec.c: avoid compiler warnings
27682         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27683         and "initialization discards qualifiers..." warnings.
27684         Put the first "uid" in its own scope, and make char* members "const".
27685
27686 2010-01-25  Bruno Haible  <bruno@clisp.org>
27687
27688         gnulib-tool: Make warning diagnostics consistent.
27689         * gnulib-tool (func_warning): New function.
27690         Use it everywhere where gnulib-tool produces output to stderr and it is
27691         not a fatal error.
27692
27693 2010-01-25  Bruno Haible  <bruno@clisp.org>
27694
27695         Fix test dependencies.
27696         * modules/xstrtol-tests (Depends-on): Add inttypes.
27697         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27698
27699 2010-01-25 Pádraig Brady <P@draigBrady.com>
27700
27701         syntax-check: detect incorrect boolean macro values in config.h
27702         * modules/maintainer-makefile (configure.ac): Parameterize the location
27703         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27704         The logic is from Eric Blake and the location indicated by Jim Meyering.
27705         Note the more natural CONFIG_HEADER name is prohibited by automake
27706         for backwards compatibility reasons.
27707         * top/maint.mk (sc_Wundef_boolean): New rule.
27708
27709 2010-01-25  Jim Meyering  <meyering@redhat.com>
27710
27711         bootstrap: detect MacOS 10.6's shasum, too
27712         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27713         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27714
27715 2010-01-23  Jim Meyering  <meyering@redhat.com>
27716
27717         xstrtoll: new module
27718         * modules/xstrtoll: New file.
27719         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27720         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27721         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27722         ./configure fails if you use this module and lack "long long".
27723         * modules/xstrtoll-tests: New module.
27724         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27725         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27726         new init.sh-based test framework.
27727
27728 2010-01-24  Bruno Haible  <bruno@clisp.org>
27729
27730         Tests for module 'yn'.
27731         * modules/yn-tests: New file.
27732         * tests/test-yn.c: New file.
27733
27734         Tests for module 'y1'.
27735         * modules/y1-tests: New file.
27736         * tests/test-y1.c: New file.
27737
27738         Tests for module 'y0'.
27739         * modules/y0-tests: New file.
27740         * tests/test-y0.c: New file.
27741
27742         Tests for module 'tanh'.
27743         * modules/tanh-tests: New file.
27744         * tests/test-tanh.c: New file.
27745
27746         Tests for module 'tan'.
27747         * modules/tan-tests: New file.
27748         * tests/test-tan.c: New file.
27749
27750         Tests for module 'sqrt'.
27751         * modules/sqrt-tests: New file.
27752         * tests/test-sqrt.c: New file.
27753
27754         Tests for module 'sinh'.
27755         * modules/sinh-tests: New file.
27756         * tests/test-sinh.c: New file.
27757
27758         Tests for module 'sin'.
27759         * modules/sin-tests: New file.
27760         * tests/test-sin.c: New file.
27761
27762         Tests for module 'rint'.
27763         * modules/rint-tests: New file.
27764         * tests/test-rint.c: New file.
27765
27766         Tests for module 'remainder'.
27767         * modules/remainder-tests: New file.
27768         * tests/test-remainder.c: New file.
27769
27770         Tests for module 'pow'.
27771         * modules/pow-tests: New file.
27772         * tests/test-pow.c: New file.
27773
27774         Tests for module 'nextafter'.
27775         * modules/nextafter-tests: New file.
27776         * tests/test-nextafter.c: New file.
27777
27778         Tests for module 'modf'.
27779         * modules/modf-tests: New file.
27780         * tests/test-modf.c: New file.
27781
27782         Tests for module 'logb'.
27783         * modules/logb-tests: New file.
27784         * tests/test-logb.c: New file.
27785
27786         Tests for module 'log1p'.
27787         * modules/log1p-tests: New file.
27788         * tests/test-log1p.c: New file.
27789
27790         Tests for module 'log10'.
27791         * modules/log10-tests: New file.
27792         * tests/test-log10.c: New file.
27793
27794         Tests for module 'log'.
27795         * modules/log-tests: New file.
27796         * tests/test-log.c: New file.
27797
27798         Tests for module 'lgamma'.
27799         * modules/lgamma-tests: New file.
27800         * tests/test-lgamma.c: New file.
27801
27802         Tests for module 'ldexp'.
27803         * modules/ldexp-tests: New file.
27804         * tests/test-ldexp.c: New file.
27805
27806         Tests for module 'jn'.
27807         * modules/jn-tests: New file.
27808         * tests/test-jn.c: New file.
27809
27810         Tests for module 'j1'.
27811         * modules/j1-tests: New file.
27812         * tests/test-j1.c: New file.
27813
27814         Tests for module 'j0'.
27815         * modules/j0-tests: New file.
27816         * tests/test-j0.c: New file.
27817
27818         Tests for module 'hypot'.
27819         * modules/hypot-tests: New file.
27820         * tests/test-hypot.c: New file.
27821
27822         Tests for module 'fmod'.
27823         * modules/fmod-tests: New file.
27824         * tests/test-fmod.c: New file.
27825
27826         Tests for module 'fabs'.
27827         * modules/fabs-tests: New file.
27828         * tests/test-fabs.c: New file.
27829
27830         Tests for module 'exp'.
27831         * modules/exp-tests: New file.
27832         * tests/test-exp.c: New file.
27833
27834         Tests for module 'erfc'.
27835         * modules/erfc-tests: New file.
27836         * tests/test-erfc.c: New file.
27837
27838         Tests for module 'erf'.
27839         * modules/erf-tests: New file.
27840         * tests/test-erf.c: New file.
27841
27842         Tests for module 'cosh'.
27843         * modules/cosh-tests: New file.
27844         * tests/test-cosh.c: New file.
27845
27846         Tests for module 'cos'.
27847         * modules/cos-tests: New file.
27848         * tests/test-cos.c: New file.
27849
27850         Tests for module 'copysign'.
27851         * modules/copysign-tests: New file.
27852         * tests/test-copysign.c: New file.
27853
27854         Tests for module 'cbrt'.
27855         * modules/cbrt-tests: New file.
27856         * tests/test-cbrt.c: New file.
27857
27858         Tests for module 'atan2'.
27859         * modules/atan2-tests: New file.
27860         * tests/test-atan2.c: New file.
27861
27862         Tests for module 'atan'.
27863         * modules/atan-tests: New file.
27864         * tests/test-atan.c: New file.
27865
27866         Tests for module 'asin'.
27867         * modules/asin-tests: New file.
27868         * tests/test-asin.c: New file.
27869
27870         Tests for module 'acos'.
27871         * modules/acos-tests: New file.
27872         * tests/test-acos.c: New file.
27873
27874 2010-01-24  Bruno Haible  <bruno@clisp.org>
27875
27876         Fix tests for common <math.h> functions.
27877         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27878         code snippet that references the function pointer, rather than merely
27879         calling the function. Substitute the FUNC_LIBM variable.
27880         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27881         * modules/acos (configure.ac): Likewise.
27882         * modules/asin (configure.ac): Likewise.
27883         * modules/atan (configure.ac): Likewise.
27884         * modules/atan2 (configure.ac): Likewise.
27885         * modules/cbrt (configure.ac): Likewise.
27886         * modules/copysign (configure.ac): Likewise.
27887         * modules/cos (configure.ac): Likewise.
27888         * modules/cosh (configure.ac): Likewise.
27889         * modules/erf (configure.ac): Likewise.
27890         * modules/erfc (configure.ac): Likewise.
27891         * modules/exp (configure.ac): Likewise.
27892         * modules/fabs (configure.ac): Likewise.
27893         * modules/fmod (configure.ac): Likewise.
27894         * modules/hypot (configure.ac): Likewise.
27895         * modules/j0 (configure.ac): Likewise.
27896         * modules/j1 (configure.ac): Likewise.
27897         * modules/jn (configure.ac): Likewise.
27898         * modules/ldexp (configure.ac): Likewise.
27899         * modules/lgamma (configure.ac): Likewise.
27900         * modules/log (configure.ac): Likewise.
27901         * modules/log10 (configure.ac): Likewise.
27902         * modules/log1p (configure.ac): Likewise.
27903         * modules/logb (configure.ac): Likewise.
27904         * modules/modf (configure.ac): Likewise.
27905         * modules/nextafter (configure.ac): Likewise.
27906         * modules/pow (configure.ac): Likewise.
27907         * modules/remainder (configure.ac): Likewise.
27908         * modules/rint (configure.ac): Likewise.
27909         * modules/sin (configure.ac): Likewise.
27910         * modules/sinh (configure.ac): Likewise.
27911         * modules/tan (configure.ac): Likewise.
27912         * modules/tanh (configure.ac): Likewise.
27913         * modules/y0 (configure.ac): Likewise.
27914         * modules/y1 (configure.ac): Likewise.
27915         * modules/yn (configure.ac): Likewise.
27916
27917 2010-01-24  Bruno Haible  <bruno@clisp.org>
27918
27919         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27920         * tests/test-acosl.c (x): New variable.
27921         (main): Store argument in x and fetch it from x.
27922         * tests/test-asinl.c (x): New variable.
27923         (main): Store argument in x and fetch it from x.
27924         * tests/test-atanl.c (x): New variable.
27925         (main): Store argument in x and fetch it from x.
27926         * tests/test-cosl.c (x): New variable.
27927         (main): Store argument in x and fetch it from x.
27928         * tests/test-expl.c (x): New variable.
27929         (main): Store argument in x and fetch it from x.
27930         * tests/test-logl.c (x): New variable.
27931         (main): Store argument in x and fetch it from x.
27932         * tests/test-sinl.c (x): New variable.
27933         (main): Store argument in x and fetch it from x.
27934         * tests/test-sqrtl.c (x): New variable.
27935         (main): Store argument in x and fetch it from x.
27936         * tests/test-tanl.c (x): New variable.
27937         (main): Store argument in x and fetch it from x.
27938
27939 2010-01-24  Bruno Haible  <bruno@clisp.org>
27940
27941         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27942         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27943         assignments to the initial TESTS_ENVIRONMENT.
27944         * doc/gnulib.texi (Unit test modules): Document it.
27945         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27946         TESTS_ENVIRONMENT.
27947         * modules/btowc-tests (Makefile.am): Likewise.
27948         * modules/c-stack-tests (Makefile.am): Likewise.
27949         * modules/c-strcase-tests (Makefile.am): Likewise.
27950         * modules/copy-file-tests (Makefile.am): Likewise.
27951         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27952         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27953         * modules/mbrtowc-tests (Makefile.am): Likewise.
27954         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27955         * modules/mbscasestr-tests (Makefile.am): Likewise.
27956         * modules/mbschr-tests (Makefile.am): Likewise.
27957         * modules/mbscspn-tests (Makefile.am): Likewise.
27958         * modules/mbsinit-tests (Makefile.am): Likewise.
27959         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27960         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27961         * modules/mbspbrk-tests (Makefile.am): Likewise.
27962         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27963         * modules/mbsrchr-tests (Makefile.am): Likewise.
27964         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27965         * modules/mbsspn-tests (Makefile.am): Likewise.
27966         * modules/mbsstr-tests (Makefile.am): Likewise.
27967         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27968         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27969         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27970         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27971         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27972         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27973         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27974         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27975         * modules/wcrtomb-tests (Makefile.am): Likewise.
27976         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27977         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27978         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27979         assignments from TESTS_ENVIRONMENT.
27980         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27981         augmentation.
27982         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27983         * modules/atexit-tests (Makefile.am): Likewise.
27984         * modules/binary-io-tests (Makefile.am): Likewise.
27985         * modules/closein-tests (Makefile.am): Likewise.
27986         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27987         * modules/exclude-tests (Makefile.am): Likewise.
27988         * modules/fflush-tests (Makefile.am): Likewise.
27989         * modules/fpending-tests (Makefile.am): Likewise.
27990         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27991         * modules/freadahead-tests (Makefile.am): Likewise.
27992         * modules/freadptr-tests (Makefile.am): Likewise.
27993         * modules/freadseek-tests (Makefile.am): Likewise.
27994         * modules/fseek-tests (Makefile.am): Likewise.
27995         * modules/fseeko-tests (Makefile.am): Likewise.
27996         * modules/ftell-tests (Makefile.am): Likewise.
27997         * modules/ftello-tests (Makefile.am): Likewise.
27998         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27999         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28000         * modules/lseek-tests (Makefile.am): Likewise.
28001         * modules/parse-duration-tests (Makefile.am): Likewise.
28002         * modules/perror-tests (Makefile.am): Likewise.
28003         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28004         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28005         * modules/pipe-tests (Makefile.am): Likewise.
28006         * modules/pread-tests (Makefile.am): Likewise.
28007         * modules/printf-posix-tests (Makefile.am): Likewise.
28008         * modules/select-tests (Makefile.am): Likewise.
28009         * modules/sigpipe-tests (Makefile.am): Likewise.
28010         * modules/tsearch-tests (Makefile.am): Likewise.
28011         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28012         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28013         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28014         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28015         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28016         * modules/version-etc-tests (Makefile.am): Likewise.
28017         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28018         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28019         * modules/xalloc-die-tests (Makefile.am): Likewise.
28020         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28021         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28022         * modules/xstrtol-tests (Makefile.am): Likewise.
28023         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28024         * modules/yesno-tests (Makefile.am): Likewise.
28025         Suggested by Jim Meyering.
28026
28027 2010-01-24  Bruno Haible  <bruno@clisp.org>
28028
28029         More documentation.
28030         * doc/gnulib.texi (Writing modules): New chapter.
28031         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28032         the new chapter.
28033
28034 2010-01-24  Jim Meyering  <meyering@redhat.com>
28035
28036         maint.mk: do not prepend "./" after filtering
28037         * top/maint.mk (_prepend_srcdir_prefix): New variable
28038         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28039         "./" when $(srcdir) is ".".
28040
28041         define STREQ(a,b) consistently, removing useless parentheses
28042         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28043         since the only risk is that "a" or "b" contains an unparenthesized
28044         comma, but if either did that, STREQ would have 3 or more arguments.
28045         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28046         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28047         * lib/hash-triple.c (STREQ): Likewise.
28048         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28049         * lib/getugroups.c (STREQ): Likewise.
28050
28051 2010-01-23  Jim Meyering  <meyering@redhat.com>
28052
28053         maint.mk: fix syntax-check in a non-srcdir build directory
28054         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28055         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28056
28057 2010-01-22  Jim Meyering  <meyering@redhat.com>
28058
28059         userspec: add unit tests
28060         * tests/test-userspec.c: New file.
28061         * modules/userspec-tests: Likewise.
28062
28063 2010-01-21  Jim Meyering  <meyering@redhat.com>
28064
28065         maint.mk: handle source file names containing "." robustly
28066         * top/maint.mk (_dot_escaped_srcdir): Define.
28067         (VC_LIST): Use it in LHS of sed substitution.
28068
28069 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28070
28071         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28072         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28073         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28074         from a non-srcdir build.
28075
28076 2010-01-20  Eric Blake  <ebb9@byu.net>
28077
28078         warn-on-use: use instead of link-warning
28079         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28080         * modules/unistd (Depends-on, Makefile.am): Likewise.
28081         * modules/arpa_inet (Depends-on): Replace link-warning with
28082         warn-on-use.
28083         (Makefile.am): Update rules accordingly.
28084         * modules/ctype (Depends-on, Makefile.am): Likewise.
28085         * modules/dirent (Depends-on, Makefile.am): Likewise.
28086         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28087         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28088         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28089         * modules/locale (Depends-on, Makefile.am): Likewise.
28090         * modules/math (Depends-on, Makefile.am): Likewise.
28091         * modules/search (Depends-on, Makefile.am): Likewise.
28092         * modules/signal (Depends-on, Makefile.am): Likewise.
28093         * modules/spawn (Depends-on, Makefile.am): Likewise.
28094         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28095         * modules/string (Depends-on, Makefile.am): Likewise.
28096         * modules/strings (Depends-on, Makefile.am): Likewise.
28097         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28098         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28099         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28100         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28101         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28102         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28103         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28104         * modules/wchar (Depends-on, Makefile.am): Likewise.
28105         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28106         should be poisoned.
28107         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28108         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28109         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28110         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28111         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28112         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28113         * m4/math_h.m4 (gl_MATH_H): Likewise.
28114         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28115         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28116         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28117         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28118         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28119         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28120         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28121         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28122         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28123         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28124         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28125         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28126         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28127         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28128         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28129         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28130         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28131         GL_LINK_WARNING.
28132         * lib/ctype.in.h: Likewise.
28133         * lib/dirent.in.h: Likewise.
28134         * lib/fcntl.in.h: Likewise.
28135         * lib/inttypes.in.h: Likewise.
28136         * lib/langinfo.in.h: Likewise.
28137         * lib/locale.in.h: Likewise.
28138         * lib/math.in.h: Likewise.
28139         * lib/search.in.h: Likewise.
28140         * lib/signal.in.h: Likewise.
28141         * lib/spawn.in.h: Likewise.
28142         * lib/stdio.in.h: Likewise.
28143         * lib/stdlib.in.h: Likewise.
28144         * lib/string.in.h: Likewise.
28145         * lib/strings.in.h: Likewise.
28146         * lib/sys_file.in.h: Likewise.
28147         * lib/sys_ioctl.in.h: Likewise.
28148         * lib/sys_select.in.h: Likewise.
28149         * lib/sys_socket.in.h: Likewise.
28150         * lib/sys_stat.in.h: Likewise.
28151         * lib/sys_times.in.h: Likewise.
28152         * lib/sys_utsname.in.h: Likewise.
28153         * lib/unistd.in.h: Likewise.
28154         * lib/wchar.in.h: Likewise.
28155
28156 2010-01-20  Bruno Haible  <bruno@clisp.org>
28157
28158         Avoid duplicate -lm.
28159         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28160         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28161         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28162         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28163         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28164         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28165         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28166         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28167         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28168         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28169         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28170         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28171         Reported by Paolo Bonzini.
28172
28173 2010-01-19  Bruno Haible  <bruno@clisp.org>
28174
28175         langinfo, nl_langinfo: Relicense under LGPLv2+.
28176         * modules/langinfo (License): Change to LGPLv2+.
28177         * modules/nl_langinfo (License): Likewise.
28178         Patch by David Lutterkort <lutter@redhat.com>.
28179
28180 2010-01-19  Bruno Haible  <bruno@clisp.org>
28181
28182         Avoid compilation error with cc on OSF/1 5.1.
28183         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28184         statement, not before.
28185         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28186
28187 2010-01-18  Bruno Haible  <bruno@clisp.org>
28188
28189         Avoid a link error due to the __printf__ symbol.
28190         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28191         and 2.6.x.
28192         (__format__, __printf__): Remove definitions.
28193         * lib/argp-fmtstream.h: Likewise.
28194         * lib/argp.h: Likewise.
28195         * lib/error.h: Likewise.
28196         * lib/vasnprintf.h: Likewise.
28197         * lib/xprintf.h: Likewise.
28198         * lib/xvasprintf.h: Likewise.
28199         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28200
28201 2010-01-18  Bruno Haible  <bruno@clisp.org>
28202
28203         Tests for module 'tanl'.
28204         * modules/tanl-tests: New file.
28205         * tests/test-tanl.c: New file.
28206
28207         Tests for module 'sqrtl'.
28208         * modules/sqrtl-tests: New file.
28209         * tests/test-sqrtl.c: New file.
28210
28211         Tests for module 'sinl'.
28212         * modules/sinl-tests: New file.
28213         * tests/test-sinl.c: New file.
28214
28215         Tests for module 'logl'.
28216         * modules/logl-tests: New file.
28217         * tests/test-logl.c: New file.
28218
28219         Tests for module 'expl'.
28220         * modules/expl-tests: New file.
28221         * tests/test-expl.c: New file.
28222
28223         Tests for module 'cosl'.
28224         * modules/cosl-tests: New file.
28225         * tests/test-cosl.c: New file.
28226
28227         Tests for module 'atanl'.
28228         * modules/atanl-tests: New file.
28229         * tests/test-atanl.c: New file.
28230
28231         Tests for module 'asinl'.
28232         * modules/asinl-tests: New file.
28233         * tests/test-asinl.c: New file.
28234
28235         Tests for module 'acosl'.
28236         * modules/acosl-tests: New file.
28237         * tests/test-acosl.c: New file.
28238
28239         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28240         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28241         tanl): Use the standard gnulib idiom.
28242         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28243         * lib/sinl.c: Likewise.
28244         * lib/tanl.c: Don't include trigl.c.
28245         (kernel_tanl): Make static.
28246         * lib/sincosl.c: Include trigl.h first.
28247         * lib/trigl.c: Likewise.
28248         * m4/acosl.m4: New file.
28249         * m4/asinl.m4: New file.
28250         * m4/atanl.m4: New file.
28251         * m4/cosl.m4: New file.
28252         * m4/expl.m4: New file.
28253         * m4/logl.m4: New file.
28254         * m4/sinl.m4: New file.
28255         * m4/sqrtl.m4: New file.
28256         * m4/tanl.m4: New file.
28257         * m4/mathl.m4: Remove file.
28258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28259         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28260         Don't initialize GNULIB_MATHL.
28261         * modules/acosl: New file.
28262         * modules/asinl: New file.
28263         * modules/atanl: New file.
28264         * modules/cosl: New file.
28265         * modules/expl: New file.
28266         * modules/logl: New file.
28267         * modules/sinl: New file.
28268         * modules/sqrtl: New file.
28269         * modules/tanl: New file.
28270         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28271         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28272         substitute GNULIB_MATHL.
28273         * modules/mathl: Rewritten.
28274         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28275         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28276         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28277         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28278         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28279         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28280         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28281         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28282         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28283
28284 2010-01-18  Bruno Haible  <bruno@clisp.org>
28285
28286         sqrt: Make gl_FUNC_SQRT requirable.
28287         * m4/sqrt.m4: New file.
28288         * modules/sqrt (Files): Add it.
28289         (configure.ac): Invoke gl_FUNC_SQRT.
28290
28291 2010-01-18  Bruno Haible  <bruno@clisp.org>
28292
28293         New modules for common <math.h> functions.
28294         * m4/mathfunc.m4: New file.
28295         * modules/acos: New file.
28296         * modules/asin: New file.
28297         * modules/atan: New file.
28298         * modules/atan2: New file.
28299         * modules/cbrt: New file.
28300         * modules/copysign: New file.
28301         * modules/cos: New file.
28302         * modules/cosh: New file.
28303         * modules/erf: New file.
28304         * modules/erfc: New file.
28305         * modules/exp: New file.
28306         * modules/fabs: New file.
28307         * modules/fmod: New file.
28308         * modules/hypot: New file.
28309         * modules/j0: New file.
28310         * modules/j1: New file.
28311         * modules/jn: New file.
28312         * modules/ldexp: New file.
28313         * modules/lgamma: New file.
28314         * modules/log: New file.
28315         * modules/log10: New file.
28316         * modules/log1p: New file.
28317         * modules/logb: New file.
28318         * modules/modf: New file.
28319         * modules/nextafter: New file.
28320         * modules/pow: New file.
28321         * modules/remainder: New file.
28322         * modules/rint: New file.
28323         * modules/sin: New file.
28324         * modules/sinh: New file.
28325         * modules/sqrt: New file.
28326         * modules/tan: New file.
28327         * modules/tanh: New file.
28328         * modules/y0: New file.
28329         * modules/y1: New file.
28330         * modules/yn: New file.
28331         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28332         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28333         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28334         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28335         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28336         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28337         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28338         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28339         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28340         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28341         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28342         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28343         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28344         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28345         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28346         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28347         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28348         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28349         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28350         * doc/posix-functions/log.texi: Mention the 'log' module.
28351         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28352         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28353         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28354         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28355         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28356         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28357         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28358         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28359         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28360         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28361         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28362         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28363         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28364         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28365         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28366         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28367
28368 2010-01-18  Jim Meyering  <meyering@redhat.com>
28369
28370         ignore-value: relax license to LGPLv2+
28371         * modules/ignore-value (License): Relax to LGPLv2+.
28372
28373         getdate: don't leak when TZ contains two or more '"'s
28374         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28375         double quote in TZ after the first one.
28376
28377         readtokens: do not leak internal token_lengths buffer
28378         * lib/readtokens.c (readtokens): Free the local, lengths,
28379         when the supplied "token_lengths" parameter is NULL.
28380
28381 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28382
28383         Fix a couple of missing LIBTHREAD link failures on AIX.
28384         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28385         $(LIBTHREAD).
28386         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28387
28388         Link test-poll against INET_PTON_LIB.
28389         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28390         for inet_pton on Solaris 10.
28391
28392 2010-01-17  Bruno Haible  <bruno@clisp.org>
28393
28394         unistdio/*-sprintf: Fix typo in module description.
28395         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28396         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28397         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28398         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28399         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28400         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28401         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28402         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28403
28404 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28405
28406         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28407         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28408         variables in shell case patterns, for AIX and HP-UX ksh.
28409
28410         Split large sed scripts, for HP-UX sed.
28411         * modules/stdio: Split sed scripts around 50 sed commands,
28412         to avoid HP-UX limit of 99 commands, in the near future.
28413         * modules/string: Likewise.
28414         * modules/unistd: Likewise.
28415
28416         gnulib-tool: avoid writing in the current directory.
28417         * gnulib-tool (func_emit_lib_Makefile_am)
28418         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28419         not in the current directory, so concurrent gnulib-tool
28420         instances do not interfere.
28421
28422 2010-01-16  Jim Meyering  <meyering@redhat.com>
28423
28424         doc: update users.txt
28425         * users.txt: Add grep.
28426         (diffutils, gzip): Update URLs.
28427
28428 2010-01-12  Bruno Haible  <bruno@clisp.org>
28429
28430         posix_spawn: Avoid test failure on Cygwin.
28431         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28432         characters.
28433         Reported by Simon Josefsson.
28434
28435 2010-01-12  Bruno Haible  <bruno@clisp.org>
28436
28437         * tests/test-cond.c (main): When skipping the test, show the reason.
28438
28439 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28440
28441         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28442
28443 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28444
28445         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28446         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28447
28448 2010-01-12  Eric Blake  <ebb9@byu.net>
28449
28450         build: guarantee AS_VAR_IF
28451         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28452         (gl_AS_VAR_IF): Move...
28453         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28454         Reported by Simon Josefsson.
28455
28456 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28457
28458         * lib/stdio.in.h: Fix typo.
28459
28460 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28461
28462         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28463         libgpg-error.
28464
28465 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28466
28467         * tests/test-xalloc-die.sh: Use $EXEEXT.
28468
28469 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28470             Bruno Haible  <bruno@clisp.org>
28471
28472         getlogin, getlogin_r: Avoid test failure.
28473         * tests/test-getlogin.c: Include <stdio.h>.
28474         (main): Skip the test when the function fails because stdin is not a
28475         tty.
28476         * tests/test-getlogin_r.c: Include <stdio.h>.
28477         (main): Skip the test when the function fails because stdin is not a
28478         tty.
28479
28480 2010-01-11  Eric Blake  <ebb9@byu.net>
28481
28482         tests: avoid more large file warnings
28483         * tests/test-fflush.c: Avoid warning about ftell use.
28484         * tests/test-fseek.c: Avoid warning about fseek use.
28485
28486 2010-01-10  Bruno Haible  <bruno@clisp.org>
28487
28488         nproc: Work better on Linux when /proc and /sys are not mounted.
28489         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28490         as lower bound when, on glibc/Linux systems,
28491         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28492         Suggested by Pádraig Brady <P@draigbrady.com>.
28493         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28494
28495         nproc: Refactor.
28496         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28497         extracted from num_processors.
28498         (num_processors): Call it.
28499
28500 2010-01-11  Jim Meyering  <meyering@redhat.com>
28501
28502         utimecmp: avoid new warning from upcoming gcc-4.5.0
28503         * lib/utimecmp.c (BILLION): Define using #define rather than an
28504         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28505
28506 2010-01-11  Eric Blake  <ebb9@byu.net>
28507
28508         math: add portability warnings for classification macros
28509         * modules/math (Depends-on): Add warn-on-use.
28510         (Makefile.am): Provide new substitutions.
28511         * m4/math_h.m4 (gl_MATH_H): Require inline.
28512         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28513         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28514         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28515         implement warnings.
28516
28517         unistd: warn on use of environ without module
28518         * modules/unistd (Depends-on): Add warn-on-use.
28519         (Makefile.am): Provide new substitutions.
28520         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28521         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28522
28523         stdio: warn on suspicious uses
28524         * modules/stdio (Depends-on): Add warn-on-use.
28525         (Makefile.am): Provide new substitutions.
28526         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28527         fseeko.
28528         * lib/stdio.in.h (gets): Always warn on use.
28529         (fseek, ftell): Adjust when warnings are issued, and honor
28530         _GL_NO_LARGE_FILES as a way to silence the warning.
28531         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28532         any warning about large file offsets.
28533         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28534         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28535         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28536         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28537         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28538         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28539         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28540         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28541
28542         warn-on-use: new module
28543         * modules/warn-on-use: New file.
28544         * build-aux/warn-on-use.h: Likewise.
28545         * m4/warn-on-use.m4: Likewise.
28546         * MODULES.html.sh (Support for building): Mention it.
28547
28548 2010-01-10  Bruno Haible  <bruno@clisp.org>
28549
28550         Tests for module 'unistr/u32-strdup'.
28551         * modules/unistr/u32-strdup-tests: New file.
28552         * tests/unistr/test-u32-strdup.c: New file.
28553
28554         Tests for module 'unistr/u16-strdup'.
28555         * modules/unistr/u16-strdup-tests: New file.
28556         * tests/unistr/test-u16-strdup.c: New file.
28557
28558         Tests for module 'unistr/u8-strdup'.
28559         * modules/unistr/u8-strdup-tests: New file.
28560         * tests/unistr/test-u8-strdup.c: New file.
28561         * tests/unistr/test-strdup.h: New file.
28562
28563         Tests for module 'unistr/u32-strncmp'.
28564         * modules/unistr/u32-strncmp-tests: New file.
28565         * tests/unistr/test-u32-strncmp.c: New file.
28566
28567         Tests for module 'unistr/u16-strncmp'.
28568         * modules/unistr/u16-strncmp-tests: New file.
28569         * tests/unistr/test-u16-strncmp.c: New file.
28570
28571         Tests for module 'unistr/u8-strncmp'.
28572         * modules/unistr/u8-strncmp-tests: New file.
28573         * tests/unistr/test-u8-strncmp.c: New file.
28574         * tests/unistr/test-strncmp.h: New file.
28575
28576         Tests for module 'unistr/u32-strcoll'.
28577         * modules/unistr/u32-strcoll-tests: New file.
28578         * tests/unistr/test-u32-strcoll.c: New file.
28579
28580         Tests for module 'unistr/u16-strcoll'.
28581         * modules/unistr/u16-strcoll-tests: New file.
28582         * tests/unistr/test-u16-strcoll.c: New file.
28583
28584         Tests for module 'unistr/u8-strcoll'.
28585         * modules/unistr/u8-strcoll-tests: New file.
28586         * tests/unistr/test-u8-strcoll.c: New file.
28587
28588         Tests for module 'unistr/u32-strcmp'.
28589         * modules/unistr/u32-strcmp-tests: New file.
28590         * tests/unistr/test-u32-strcmp.c: New file.
28591         * tests/unistr/test-u32-strcmp.h: New file.
28592
28593         Tests for module 'unistr/u16-strcmp'.
28594         * modules/unistr/u16-strcmp-tests: New file.
28595         * tests/unistr/test-u16-strcmp.c: New file.
28596         * tests/unistr/test-u16-strcmp.h: New file.
28597
28598         Tests for module 'unistr/u8-strcmp'.
28599         * modules/unistr/u8-strcmp-tests: New file.
28600         * tests/unistr/test-u8-strcmp.c: New file.
28601         * tests/unistr/test-u8-strcmp.h: New file.
28602         * tests/unistr/test-strcmp.h: New file.
28603
28604         Tests for module 'unistr/u32-strncat'.
28605         * modules/unistr/u32-strncat-tests: New file.
28606         * tests/unistr/test-u32-strncat.c: New file.
28607
28608         Tests for module 'unistr/u16-strncat'.
28609         * modules/unistr/u16-strncat-tests: New file.
28610         * tests/unistr/test-u16-strncat.c: New file.
28611
28612         Tests for module 'unistr/u8-strncat'.
28613         * modules/unistr/u8-strncat-tests: New file.
28614         * tests/unistr/test-u8-strncat.c: New file.
28615         * tests/unistr/test-strncat.h: New file.
28616
28617         Tests for module 'unistr/u32-strcat'.
28618         * modules/unistr/u32-strcat-tests: New file.
28619         * tests/unistr/test-u32-strcat.c: New file.
28620
28621         Tests for module 'unistr/u16-strcat'.
28622         * modules/unistr/u16-strcat-tests: New file.
28623         * tests/unistr/test-u16-strcat.c: New file.
28624
28625         Tests for module 'unistr/u8-strcat'.
28626         * modules/unistr/u8-strcat-tests: New file.
28627         * tests/unistr/test-u8-strcat.c: New file.
28628         * tests/unistr/test-strcat.h: New file.
28629
28630         Tests for module 'unistr/u32-stpncpy'.
28631         * modules/unistr/u32-stpncpy-tests: New file.
28632         * tests/unistr/test-u32-stpncpy.c: New file.
28633
28634         Tests for module 'unistr/u16-stpncpy'.
28635         * modules/unistr/u16-stpncpy-tests: New file.
28636         * tests/unistr/test-u16-stpncpy.c: New file.
28637
28638         Tests for module 'unistr/u8-stpncpy'.
28639         * modules/unistr/u8-stpncpy-tests: New file.
28640         * tests/unistr/test-u8-stpncpy.c: New file.
28641         * tests/unistr/test-stpncpy.h: New file.
28642
28643         Tests for module 'unistr/u32-strncpy'.
28644         * modules/unistr/u32-strncpy-tests: New file.
28645         * tests/unistr/test-u32-strncpy.c: New file.
28646
28647         Tests for module 'unistr/u16-strncpy'.
28648         * modules/unistr/u16-strncpy-tests: New file.
28649         * tests/unistr/test-u16-strncpy.c: New file.
28650
28651         Tests for module 'unistr/u8-strncpy'.
28652         * modules/unistr/u8-strncpy-tests: New file.
28653         * tests/unistr/test-u8-strncpy.c: New file.
28654         * tests/unistr/test-strncpy.h: New file.
28655
28656         Tests for module 'unistr/u32-stpcpy'.
28657         * modules/unistr/u32-stpcpy-tests: New file.
28658         * tests/unistr/test-u32-stpcpy.c: New file.
28659
28660         Tests for module 'unistr/u16-stpcpy'.
28661         * modules/unistr/u16-stpcpy-tests: New file.
28662         * tests/unistr/test-u16-stpcpy.c: New file.
28663
28664         Tests for module 'unistr/u8-stpcpy'.
28665         * modules/unistr/u8-stpcpy-tests: New file.
28666         * tests/unistr/test-u8-stpcpy.c: New file.
28667         * tests/unistr/test-stpcpy.h: New file.
28668
28669         Tests for module 'unistr/u32-strcpy'.
28670         * modules/unistr/u32-strcpy-tests: New file.
28671         * tests/unistr/test-u32-strcpy.c: New file.
28672
28673         Tests for module 'unistr/u16-strcpy'.
28674         * modules/unistr/u16-strcpy-tests: New file.
28675         * tests/unistr/test-u16-strcpy.c: New file.
28676
28677         Tests for module 'unistr/u8-strcpy'.
28678         * modules/unistr/u8-strcpy-tests: New file.
28679         * tests/unistr/test-u8-strcpy.c: New file.
28680         * tests/unistr/test-strcpy.h: New file.
28681
28682         Tests for module 'unistr/u32-strnlen'.
28683         * modules/unistr/u32-strnlen-tests: New file.
28684         * tests/unistr/test-u32-strnlen.c: New file.
28685
28686         Tests for module 'unistr/u16-strnlen'.
28687         * modules/unistr/u16-strnlen-tests: New file.
28688         * tests/unistr/test-u16-strnlen.c: New file.
28689
28690         Tests for module 'unistr/u8-strnlen'.
28691         * modules/unistr/u8-strnlen-tests: New file.
28692         * tests/unistr/test-u8-strnlen.c: New file.
28693         * tests/unistr/test-strnlen.h: New file.
28694
28695         Tests for module 'unistr/u32-strlen'.
28696         * modules/unistr/u32-strlen-tests: New file.
28697         * tests/unistr/test-u32-strlen.c: New file.
28698
28699         Tests for module 'unistr/u16-strlen'.
28700         * modules/unistr/u16-strlen-tests: New file.
28701         * tests/unistr/test-u16-strlen.c: New file.
28702
28703         Tests for module 'unistr/u8-strlen'.
28704         * modules/unistr/u8-strlen-tests: New file.
28705         * tests/unistr/test-u8-strlen.c: New file.
28706
28707         Tests for module 'unistr/u32-prev'.
28708         * modules/unistr/u32-prev-tests: New file.
28709         * tests/unistr/test-u32-prev.c: New file.
28710
28711         Tests for module 'unistr/u16-prev'.
28712         * modules/unistr/u16-prev-tests: New file.
28713         * tests/unistr/test-u16-prev.c: New file.
28714
28715         Tests for module 'unistr/u8-prev'.
28716         * modules/unistr/u8-prev-tests: New file.
28717         * tests/unistr/test-u8-prev.c: New file.
28718
28719         Tests for module 'unistr/u32-next'.
28720         * modules/unistr/u32-next-tests: New file.
28721         * tests/unistr/test-u32-next.c: New file.
28722
28723         Tests for module 'unistr/u16-next'.
28724         * modules/unistr/u16-next-tests: New file.
28725         * tests/unistr/test-u16-next.c: New file.
28726
28727         Tests for module 'unistr/u8-next'.
28728         * modules/unistr/u8-next-tests: New file.
28729         * tests/unistr/test-u8-next.c: New file.
28730
28731         Tests for module 'unistr/u32-strmbtouc'.
28732         * modules/unistr/u32-strmbtouc-tests: New file.
28733         * tests/unistr/test-u32-strmbtouc.c: New file.
28734
28735         Tests for module 'unistr/u16-strmbtouc'.
28736         * modules/unistr/u16-strmbtouc-tests: New file.
28737         * tests/unistr/test-u16-strmbtouc.c: New file.
28738
28739         Tests for module 'unistr/u8-strmbtouc'.
28740         * modules/unistr/u8-strmbtouc-tests: New file.
28741         * tests/unistr/test-u8-strmbtouc.c: New file.
28742
28743         Tests for module 'unistr/u32-strmblen'.
28744         * modules/unistr/u32-strmblen-tests: New file.
28745         * tests/unistr/test-u32-strmblen.c: New file.
28746
28747         Tests for module 'unistr/u16-strmblen'.
28748         * modules/unistr/u16-strmblen-tests: New file.
28749         * tests/unistr/test-u16-strmblen.c: New file.
28750
28751         Tests for module 'unistr/u8-strmblen'.
28752         * modules/unistr/u8-strmblen-tests: New file.
28753         * tests/unistr/test-u8-strmblen.c: New file.
28754
28755         Tests for module 'unistr/u32-cpy-alloc'.
28756         * modules/unistr/u32-cpy-alloc-tests: New file.
28757         * tests/unistr/test-u32-cpy-alloc.c: New file.
28758
28759         Tests for module 'unistr/u16-cpy-alloc'.
28760         * modules/unistr/u16-cpy-alloc-tests: New file.
28761         * tests/unistr/test-u16-cpy-alloc.c: New file.
28762
28763         Tests for module 'unistr/u8-cpy-alloc'.
28764         * modules/unistr/u8-cpy-alloc-tests: New file.
28765         * tests/unistr/test-u8-cpy-alloc.c: New file.
28766         * tests/unistr/test-cpy-alloc.h: New file.
28767
28768         Tests for module 'unistr/u32-mbsnlen'.
28769         * modules/unistr/u32-mbsnlen-tests: New file.
28770         * tests/unistr/test-u32-mbsnlen.c: New file.
28771
28772         Tests for module 'unistr/u16-mbsnlen'.
28773         * modules/unistr/u16-mbsnlen-tests: New file.
28774         * tests/unistr/test-u16-mbsnlen.c: New file.
28775
28776         Tests for module 'unistr/u8-mbsnlen'.
28777         * modules/unistr/u8-mbsnlen-tests: New file.
28778         * tests/unistr/test-u8-mbsnlen.c: New file.
28779
28780         Tests for module 'unistr/u32-chr'.
28781         * modules/unistr/u32-chr-tests: New file.
28782         * tests/unistr/test-u32-chr.c: New file.
28783
28784         Tests for module 'unistr/u16-chr'.
28785         * modules/unistr/u16-chr-tests: New file.
28786         * tests/unistr/test-u16-chr.c: New file.
28787
28788         Tests for module 'unistr/u8-chr'.
28789         * modules/unistr/u8-chr-tests: New file.
28790         * tests/unistr/test-u8-chr.c: New file.
28791         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28792
28793         Tests for module 'unistr/u32-cmp2'.
28794         * modules/unistr/u32-cmp2-tests: New file.
28795         * tests/unistr/test-u32-cmp2.c: New file.
28796
28797         Tests for module 'unistr/u16-cmp2'.
28798         * modules/unistr/u16-cmp2-tests: New file.
28799         * tests/unistr/test-u16-cmp2.c: New file.
28800
28801         Tests for module 'unistr/u8-cmp2'.
28802         * modules/unistr/u8-cmp2-tests: New file.
28803         * tests/unistr/test-u8-cmp2.c: New file.
28804         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28805
28806         Tests for module 'unistr/u32-cmp'.
28807         * modules/unistr/u32-cmp-tests: New file.
28808         * tests/unistr/test-u32-cmp.c: New file.
28809
28810         Tests for module 'unistr/u16-cmp'.
28811         * modules/unistr/u16-cmp-tests: New file.
28812         * tests/unistr/test-u16-cmp.c: New file.
28813
28814         Tests for module 'unistr/u8-cmp'.
28815         * modules/unistr/u8-cmp-tests: New file.
28816         * tests/unistr/test-u8-cmp.c: New file.
28817         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28818
28819         Tests for module 'unistr/u32-set'.
28820         * modules/unistr/u32-set-tests: New file.
28821         * tests/unistr/test-u32-set.c: New file.
28822
28823         Tests for module 'unistr/u16-set'.
28824         * modules/unistr/u16-set-tests: New file.
28825         * tests/unistr/test-u16-set.c: New file.
28826
28827         Tests for module 'unistr/u8-set'.
28828         * modules/unistr/u8-set-tests: New file.
28829         * tests/unistr/test-u8-set.c: New file.
28830         * tests/unistr/test-set.h: New file.
28831
28832         Tests for module 'unistr/u32-move'.
28833         * modules/unistr/u32-move-tests: New file.
28834         * tests/unistr/test-u32-move.c: New file.
28835
28836         Tests for module 'unistr/u16-move'.
28837         * modules/unistr/u16-move-tests: New file.
28838         * tests/unistr/test-u16-move.c: New file.
28839
28840         Tests for module 'unistr/u8-move'.
28841         * modules/unistr/u8-move-tests: New file.
28842         * tests/unistr/test-u8-move.c: New file.
28843         * tests/unistr/test-move.h: New file.
28844
28845         Tests for module 'unistr/u32-cpy'.
28846         * modules/unistr/u32-cpy-tests: New file.
28847         * tests/unistr/test-u32-cpy.c: New file.
28848
28849         Tests for module 'unistr/u16-cpy'.
28850         * modules/unistr/u16-cpy-tests: New file.
28851         * tests/unistr/test-u16-cpy.c: New file.
28852
28853         Tests for module 'unistr/u8-cpy'.
28854         * modules/unistr/u8-cpy-tests: New file.
28855         * tests/unistr/test-u8-cpy.c: New file.
28856         * tests/unistr/test-cpy.h: New file.
28857
28858 2010-01-09  Bruno Haible  <bruno@clisp.org>
28859
28860         Tests for module 'unistr/u32-uctomb'.
28861         * modules/unistr/u32-uctomb-tests: New file.
28862         * tests/unistr/test-u32-uctomb.c: New file.
28863
28864         Tests for module 'unistr/u16-uctomb'.
28865         * modules/unistr/u16-uctomb-tests: New file.
28866         * tests/unistr/test-u16-uctomb.c: New file.
28867
28868         Tests for module 'unistr/u8-uctomb'.
28869         * modules/unistr/u8-uctomb-tests: New file.
28870         * tests/unistr/test-u8-uctomb.c: New file.
28871
28872         Tests for module 'unistr/u32-mbtoucr'.
28873         * modules/unistr/u32-mbtoucr-tests: New file.
28874         * tests/unistr/test-u32-mbtoucr.c: New file.
28875
28876         Tests for module 'unistr/u16-mbtoucr'.
28877         * modules/unistr/u16-mbtoucr-tests: New file.
28878         * tests/unistr/test-u16-mbtoucr.c: New file.
28879
28880         Tests for module 'unistr/u8-mbtoucr'.
28881         * modules/unistr/u8-mbtoucr-tests: New file.
28882         * tests/unistr/test-u8-mbtoucr.c: New file.
28883
28884         Tests for module 'unistr/u32-mbtouc'.
28885         * modules/unistr/u32-mbtouc-tests: New file.
28886         * tests/unistr/test-u32-mbtouc.c: New file.
28887
28888         Tests for module 'unistr/u16-mbtouc'.
28889         * modules/unistr/u16-mbtouc-tests: New file.
28890         * tests/unistr/test-u16-mbtouc.c: New file.
28891
28892         Tests for module 'unistr/u8-mbtouc'.
28893         * modules/unistr/u8-mbtouc-tests: New file.
28894         * tests/unistr/test-u8-mbtouc.c: New file.
28895
28896         Tests for module 'unistr/u32-mbtouc-unsafe'.
28897         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28898         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28899         * tests/unistr/test-u32-mbtouc.h: New file.
28900
28901         Tests for module 'unistr/u16-mbtouc-unsafe'.
28902         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28903         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28904         * tests/unistr/test-u16-mbtouc.h: New file.
28905
28906         Tests for module 'unistr/u8-mbtouc-unsafe'.
28907         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28908         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28909         * tests/unistr/test-u8-mbtouc.h: New file.
28910
28911         Tests for module 'unistr/u32-mblen'.
28912         * modules/unistr/u32-mblen-tests: New file.
28913         * tests/unistr/test-u32-mblen.c: New file.
28914
28915         Tests for module 'unistr/u16-mblen'.
28916         * modules/unistr/u16-mblen-tests: New file.
28917         * tests/unistr/test-u16-mblen.c: New file.
28918
28919         Tests for module 'unistr/u8-mblen'.
28920         * modules/unistr/u8-mblen-tests: New file.
28921         * tests/unistr/test-u8-mblen.c: New file.
28922
28923         Tests for module 'unistr/u32-to-u16'.
28924         * modules/unistr/u32-to-u16-tests: New file.
28925         * tests/unistr/test-u32-to-u16.c: New file.
28926
28927         Tests for module 'unistr/u32-to-u8'.
28928         * modules/unistr/u32-to-u8-tests: New file.
28929         * tests/unistr/test-u32-to-u8.c: New file.
28930
28931         Tests for module 'unistr/u16-to-u32'.
28932         * modules/unistr/u16-to-u32-tests: New file.
28933         * tests/unistr/test-u16-to-u32.c: New file.
28934
28935         Tests for module 'unistr/u16-to-u8'.
28936         * modules/unistr/u16-to-u8-tests: New file.
28937         * tests/unistr/test-u16-to-u8.c: New file.
28938
28939         Tests for module 'unistr/u8-to-u32'.
28940         * modules/unistr/u8-to-u32-tests: New file.
28941         * tests/unistr/test-u8-to-u32.c: New file.
28942
28943         Tests for module 'unistr/u8-to-u16'.
28944         * modules/unistr/u8-to-u16-tests: New file.
28945         * tests/unistr/test-u8-to-u16.c: New file.
28946
28947         Tests for module 'unistr/u32-check'.
28948         * modules/unistr/u32-check-tests: New file.
28949         * tests/unistr/test-u32-check.c: New file.
28950
28951         Tests for module 'unistr/u16-check'.
28952         * modules/unistr/u16-check-tests: New file.
28953         * tests/unistr/test-u16-check.c: New file.
28954
28955         Tests for module 'unistr/u8-check'.
28956         * modules/unistr/u8-check-tests: New file.
28957         * tests/unistr/test-u8-check.c: New file.
28958
28959         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28960         (category_equals): New function.
28961         (main): Add more tests.
28962         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28963
28964         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28965
28966 2010-01-10  Bruno Haible  <bruno@clisp.org>
28967
28968         unistr/u*-strcoll: Try harder to distinguish different strings.
28969         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28970         compare s1 and s2 to see if they are different.
28971
28972 2010-01-10  Bruno Haible  <bruno@clisp.org>
28973
28974         unistr/u*-stpncpy: Fix the return value.
28975         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28976         description of the return value consistent with stpncpy in glibc.
28977         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28978         written non-NUL unit.
28979
28980 2010-01-10  Bruno Haible  <bruno@clisp.org>
28981
28982         unistr/u*-next: Add missing dependencies.
28983         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28984         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28985         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28986
28987 2010-01-10  Bruno Haible  <bruno@clisp.org>
28988
28989         unistr/u8-mbsnlen: Fix return value for incomplete character.
28990         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28991         u8_mblen.
28992         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28993         Remove unistr/u8-mblen.
28994         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28995         u16_mblen.
28996         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28997         Remove unistr/u16-mblen.
28998
28999 2010-01-10  Bruno Haible  <bruno@clisp.org>
29000
29001         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29002         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29003         Reported by Brian Gough <bjg@gnu.org> and
29004         Chris Clayton <chris2553@googlemail.com> via
29005         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29006
29007 2010-01-09  Bruno Haible  <bruno@clisp.org>
29008
29009         unistr/u16-to-u32: Reject invalid input.
29010         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29011         u16_mbtouc.
29012         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29013         Remove unistr/u16-mbtouc.
29014
29015         unistr/u16-to-u8: Reject invalid input.
29016         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29017         u16_mbtouc.
29018         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29019         Remove unistr/u16-mbtouc.
29020
29021         unistr/u8-to-u32: Reject invalid input.
29022         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29023         u8_mbtouc.
29024         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29025         Remove unistr/u8-mbtouc.
29026
29027         unistr/u8-to-u16: Reject invalid input.
29028         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29029         u8_mbtouc.
29030         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29031         Remove unistr/u8-mbtouc.
29032
29033 2010-01-09  Bruno Haible  <bruno@clisp.org>
29034
29035         Tests for module 'getlogin'.
29036         * modules/getlogin-tests: New file.
29037         * tests/test-getlogin.c: New file.
29038
29039         New module 'getlogin'.
29040         * lib/unistd.in.h (getlogin): New declaration.
29041         * lib/getlogin.c: New file.
29042         * m4/getlogin.m4: New file.
29043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29044         HAVE_GETLOGIN.
29045         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29046         HAVE_GETLOGIN.
29047         * modules/getlogin: New file.
29048         * doc/posix-functions/getlogin.texi: Mention the new module.
29049         Reported by John W. Eaton <jwe@gnu.org>.
29050
29051 2010-01-09  Bruno Haible  <bruno@clisp.org>
29052
29053         getlogin_r: Support for native Windows.
29054         * lib/getlogin_r.c: Include <windows.h>
29055         (getlogin_r): Implement for native Windows.
29056         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29057         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29058         via John W. Eaton <jwe@gnu.org>.
29059
29060 2010-01-09  Bruno Haible  <bruno@clisp.org>
29061
29062         getlogin_r: Small fixes.
29063         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29064         succeeds.
29065         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29066         before testing whether getlogin_r is declared. No need to set
29067         HAVE_DECL_GETLOGIN_R to 1.
29068         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29069
29070 2010-01-09  Bruno Haible  <bruno@clisp.org>
29071
29072         * lib/unistd.in.h (getlogin_r): Add comment.
29073
29074 2010-01-09  Bruno Haible  <bruno@clisp.org>
29075
29076         Tests for module 'getlogin_r'.
29077         * modules/getlogin_r-tests: New file.
29078         * tests/test-getlogin_r.c: New file.
29079
29080 2010-01-09  Jim Meyering  <meyering@redhat.com>
29081
29082         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29083         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29084         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29085
29086 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29087
29088         * lib/dup2.c (rpl_dup2): Improve comment.
29089
29090 2010-01-08  Eric Blake  <ebb9@byu.net>
29091
29092         maint.mk: allow packages to add makefile @@ exceptions
29093         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29094         (sc_makefile_check): Rename...
29095         (sc_makefile_at_at_check): ...to this, and use hook.
29096
29097         dup2: work around mingw bug
29098         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29099         Reported by Simon Josefsson.
29100
29101 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29102
29103         glob: Fix C++ compilation.
29104         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29105         C++.
29106
29107 2010-01-07  Bruno Haible  <bruno@clisp.org>
29108
29109         Fix indentation of wctype.in.h, broken since 2007-01-06.
29110         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29111
29112 2010-01-07  Bruno Haible  <bruno@clisp.org>
29113
29114         mbslen: Avoid collision with system function.
29115         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29116         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29117         * m4/mbslen.m4: New file.
29118         * modules/mbslen (Files): Add it.
29119         (configure.ac): Invoke gl_MBSLEN.
29120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29121         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29122         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29123         via Ian Beckwith <ianb@erislabs.net>.
29124
29125 2010-01-07  Bruno Haible  <bruno@clisp.org>
29126
29127         dirent: Document the last fix.
29128         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29129
29130 2010-01-07  Bruno Haible  <bruno@clisp.org>
29131
29132         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29133         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29134         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29135         va_list are defined.
29136         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29137         Reported by Eric Blake.
29138
29139 2010-01-07  Bruno Haible  <bruno@clisp.org>
29140
29141         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29142         * modules/xlist (Depends-on): Add 'list',
29143         * modules/xoset (Depends-on): Add 'oset'.
29144         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29145
29146 2010-01-07  Bruno Haible  <bruno@clisp.org>
29147
29148         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29149         * doc/posix-functions/strncasecmp.texi: Likewise.
29150
29151 2010-01-07  Bruno Haible  <bruno@clisp.org>
29152
29153         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29154
29155 2010-01-07  John W. Eaton  <jwe@octave.org>
29156
29157         wctype: allow C++ use
29158         * lib/wctype.in.h: Add extern "C" block for C++.
29159
29160 2010-01-06  Eric Blake  <ebb9@byu.net>
29161
29162         maint.mk: detect incorrect GFDL usage
29163         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29164
29165 2010-01-06  Jim Meyering  <meyering@redhat.com>
29166         and Eric Blake  <ebb9@byu.net>
29167
29168         maint.mk: ignore multi-line copyright in NEWS
29169         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29170
29171 2010-01-06  Eric Blake  <ebb9@byu.net>
29172
29173         select: add missing dependency
29174         * modules/select-tests (Depends-on): Move sockets dependency...
29175         * modules/select (Depends-on): ...here.
29176         Reported by Ian Beckwith.
29177
29178         doc: regenerate INSTALL
29179         * doc/INSTALL: Reflect recent autoconf update.
29180         * doc/INSTALL.ISO: Likewise.
29181         * doc/INSTALL.UTF-8: Likewise.
29182
29183         pread: fix compilation on glibc
29184         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29185         Reported by Ralf Wildenhues.
29186
29187         dirent: fix test failure
29188         * lib/dirent.in.h (includes): Guarantee ino_t.
29189         Reported by Ralf Wildenhues.
29190
29191 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29192
29193         linkat, renameat: avoid bad free
29194         * lib/at-func2.c (at_func2): Fix typo.
29195         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29196
29197 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29198
29199         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29200         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29201         to avoid failure of symlink test later.
29202
29203 2010-01-06  Eric Blake  <ebb9@byu.net>
29204
29205         stdio, unistd: guarantee ssize_t
29206         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29207         2008 are exposed when needed.
29208         * lib/stdio.in.h (includes): Likewise.
29209         Reported by Ralf Wildenhues.
29210
29211 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29212
29213         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29214         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29215         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29216
29217 2010-01-06  Jim Meyering  <meyering@redhat.com>
29218
29219         readtokens: this module *does* require xalloc.h
29220         It uses only functions that were omitted by the old syntax-check rule.
29221         * lib/readtokens.c: Include "xalloc.h" once again.
29222         * modules/readtokens (Depends-on): Add xalloc.
29223         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29224
29225 2010-01-05  Eric Blake  <ebb9@byu.net>
29226
29227         maint: support 'make announcement' from a VPATH build
29228         * top/maint.mk (announcement): Look for correct NEWS file.
29229
29230 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29231
29232         utimens (fdutimens): ignore a negative FD, per contract
29233         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29234         when we have a valid file descriptor.  Otherwise, using a brand
29235         new glibc (with just-patched futimens that now fails with EBADF)
29236         would cause this function to fail with ENOSYS.
29237         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29238         See also http://bugzilla.redhat.com/552320.
29239
29240 2010-01-05  Eric Blake  <ebb9@byu.net>
29241
29242         strcase: document what it provides
29243         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29244         gnulib module.
29245         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29246         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29247
29248 2010-01-05  Jim Meyering  <meyering@redhat.com>
29249
29250         maint: remove useless inclusions of "xalloc.h"
29251         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29252         * lib/readtokens.c: Likewise.
29253         * lib/same.c: Likewise.
29254         * modules/getloadavg (Depends-on): Remove xalloc.
29255         * modules/readtokens: Likewise.
29256         * modules/same: Likewise.
29257
29258         maint.mk: include 4 more function names in alloca.h-checking regexp
29259         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29260         regexp.  Before, we would give a false-positive (saying alloca.h
29261         is included unnecessarily) when the only uses involved omitted symbols.
29262
29263         xalloc.h: use consistent formatting
29264         * lib/xalloc.h: Move declarations to start in the first column.
29265
29266 2010-01-05  Eric Blake  <ebb9@byu.net>
29267
29268         mkdir: avoid xalloc
29269         * lib/mkdir.c (includes): Drop unused header.
29270         Reported by John W. Eaton.
29271
29272 2010-01-04  Jim Meyering  <meyering@redhat.com>
29273
29274         nl_langinfo: avoid configure-time syntax error
29275         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29276         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29277         the empty string.  Don't let that provoke a shell syntax error.
29278
29279         regcomp, regexec, fnmatch: avoid array bounds read error
29280         * lib/regcomp.c (build_equiv_class): From glibc:
29281         Use only the low 24 bits of a findidx return value as an index
29282         into the weights array.  Patch by Ulrich Drepper:
29283         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29284         * lib/regexec.c (check_node_accept_bytes): Likewise.
29285         * lib/fnmatch_loop.c (FCT): Likewise.
29286
29287         regcomp: skip collseq lookup when there are no rules
29288         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29289         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29290
29291         regcomp: recognize ill-formed { } expressions
29292         * lib/regcomp.c (parse_dup_op): From glibc:
29293         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29294
29295         regcomp: fix typo in comment
29296         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29297         s/satisfy/satisfies/.
29298
29299         regcomp: sync from glibc: remove dead store
29300         * lib/regcomp.c (duplicate_node_closure): Remove useless
29301         search_duplicated_node call and dead store.
29302
29303         regcomp: sync from glibc; always use nl_langinfo
29304         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29305         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29306         * modules/regex (Depends-on): Add nl_langinfo.
29307
29308 2010-01-04  Eric Blake  <ebb9@byu.net>
29309
29310         fdopendir: fix configure test
29311         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29312
29313 2010-01-01  Bruno Haible  <bruno@clisp.org>
29314
29315         wchar: Remove unused configure check.
29316         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29317
29318 2010-01-01  Eric Blake  <ebb9@byu.net>
29319
29320         headers: make check of system header explicit
29321         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29322         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29323         ourselves.
29324         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29325         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29326         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29327         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29328         internals.
29329         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29330         missing.
29331         Suggested by Bruno Haible.
29332
29333 2010-01-01  Jim Meyering  <meyering@redhat.com>
29334
29335         ChangeLog: tweak to eliminate unnecessary copyright line
29336         * ChangeLog: Remove a copyright line that was mistakenly updated
29337         by today's update-copyright run.  Reported by Eric Blake.
29338
29339         test-update-copyright: don't let envvar setting cause test failure
29340         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29341
29342 2010-01-01  Bruno Haible  <bruno@clisp.org>
29343
29344         localename: Avoid gcc warning.
29345         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29346         function if it is not used.
29347
29348 2010-01-01  Jim Meyering  <meyering@redhat.com>
29349
29350         update nearly all FSF copyright year lists to include 2010
29351         Use the same procedure as for 2009, outlined in
29352         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29353
29354         version-etc: set COPYRIGHT_YEAR to 2010
29355         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29356
29357 2009-12-31  Eric Blake  <ebb9@byu.net>
29358
29359         doc: correct availability of cygwin 1.5.x getopt
29360         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29361         variables.
29362         * doc/posix-functions/opterr.texi (opterr): Likewise.
29363         * doc/posix-functions/optind.texi (optind): Likewise.
29364         * doc/posix-functions/optopt.texi (optopt): Likewise.
29365         * doc/posix-functions/tzname.texi (tzname): Likewise.
29366
29367         openat: update maintainer
29368         * modules/openat (Maintainer): Add myself.
29369
29370         utimens: avoid shadowing warning
29371         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29372         buffers into one, to avoid shadowing, as well as avoiding a
29373         redundant stat.
29374         Reported by Jim Meyering.
29375
29376         test-dup2: avoid compiler warning
29377         * tests/test-dup2.c (is_inheritable): Only define if used.
29378
29379 2010-01-01  Bruno Haible  <bruno@clisp.org>
29380
29381         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29382         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29383         defined, use wctomb instead of wcrtomb.
29384
29385 2010-01-01  Bruno Haible  <bruno@clisp.org>
29386
29387         iconv: Reject native Solaris iconv.
29388         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29389         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29390
29391 2009-12-31  Bruno Haible  <bruno@clisp.org>
29392
29393         * tests/test-signal.c (main): Remove test of 'SIG'.
29394
29395 2009-12-31  Bruno Haible  <bruno@clisp.org>
29396
29397         spawn: Fix incomplete fix.
29398         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29399         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29400         warnings for GNULIB_POSIXCHECK again.
29401         Reported by Eric Blake.
29402
29403 2009-12-31  Bruno Haible  <bruno@clisp.org>
29404
29405         Avoid namespace pollution on glibc systems.
29406         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29407         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29408         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29409         glibc systems.
29410
29411 2009-12-31  Bruno Haible  <bruno@clisp.org>
29412
29413         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29414         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29415         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29416         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29417         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29418         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29419         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29420
29421 2009-12-31  Bruno Haible  <bruno@clisp.org>
29422
29423         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29424         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29425         afterwards.
29426
29427 2009-12-31  Bruno Haible  <bruno@clisp.org>
29428
29429         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29430         SYS_UTSNAME_H.
29431
29432 2009-12-31  Bruno Haible  <bruno@clisp.org>
29433
29434         spawn: Fix misapplied patch.
29435         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29436         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29437         warnings for GNULIB_POSIXCHECK.
29438
29439 2009-12-31  Bruno Haible  <bruno@clisp.org>
29440
29441         times: Update after sys_times changed.
29442         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29443         * modules/times (Files): Add it.
29444         (configure.ac): Invoke gl_FUNC_TIMES.
29445
29446 2009-12-31  Bruno Haible  <bruno@clisp.org>
29447
29448         Use AC_C_INLINE where necessary.
29449         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29450         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29451         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29452         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29453         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29454         * m4/mbiter.m4 (gl_MBITER): Likewise.
29455         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29456         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29457         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29458         * modules/u64 (configure.ac): Likewise.
29459
29460 2009-12-31  Bruno Haible  <bruno@clisp.org>
29461
29462         Use AC_C_INLINE instead of module 'inline' where possible.
29463         * modules/inline (Description): Clarify purpose.
29464         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29465         * modules/count-one-bits (Depends-on): Remove inline.
29466         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29467         * modules/openat (Depends-on): Remove inline.
29468         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29469         instead of depending on module 'inline'.
29470         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29471         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29472         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29473         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29474         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29475         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29476         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29477         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29478         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29479         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29480         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29481         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29482         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29483         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29484         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29485         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29486         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29487         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29488         Likewise.
29489         * modules/unictype/property-ascii-hex-digit (Depends-on,
29490         configure.ac): Likewise.
29491         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29492         configure.ac): Likewise.
29493         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29494         configure.ac): Likewise.
29495         * modules/unictype/property-bidi-block-separator (Depends-on,
29496         configure.ac): Likewise.
29497         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29498         configure.ac): Likewise.
29499         * modules/unictype/property-bidi-common-separator (Depends-on,
29500         configure.ac): Likewise.
29501         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29502         Likewise.
29503         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29504         configure.ac): Likewise.
29505         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29506         configure.ac): Likewise.
29507         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29508         configure.ac): Likewise.
29509         * modules/unictype/property-bidi-european-digit (Depends-on,
29510         configure.ac): Likewise.
29511         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29512         configure.ac): Likewise.
29513         * modules/unictype/property-bidi-left-to-right (Depends-on,
29514         configure.ac): Likewise.
29515         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29516         configure.ac): Likewise.
29517         * modules/unictype/property-bidi-other-neutral (Depends-on,
29518         configure.ac): Likewise.
29519         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29520         Likewise.
29521         * modules/unictype/property-bidi-segment-separator (Depends-on,
29522         configure.ac): Likewise.
29523         * modules/unictype/property-bidi-whitespace (Depends-on,
29524         configure.ac): Likewise.
29525         * modules/unictype/property-combining (Depends-on, configure.ac):
29526         Likewise.
29527         * modules/unictype/property-composite (Depends-on, configure.ac):
29528         Likewise.
29529         * modules/unictype/property-currency-symbol (Depends-on,
29530         configure.ac): Likewise.
29531         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29532         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29533         Likewise.
29534         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29535         configure.ac): Likewise.
29536         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29537         Likewise.
29538         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29539         Likewise.
29540         * modules/unictype/property-extender (Depends-on, configure.ac):
29541         Likewise.
29542         * modules/unictype/property-format-control (Depends-on, configure.ac):
29543         Likewise.
29544         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29545         Likewise.
29546         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29547         Likewise.
29548         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29549         Likewise.
29550         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29551         Likewise.
29552         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29553         Likewise.
29554         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29555         Likewise.
29556         * modules/unictype/property-id-start (Depends-on, configure.ac):
29557         Likewise.
29558         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29559         Likewise.
29560         * modules/unictype/property-ids-binary-operator (Depends-on,
29561         configure.ac): Likewise.
29562         * modules/unictype/property-ids-trinary-operator (Depends-on,
29563         configure.ac): Likewise.
29564         * modules/unictype/property-ignorable-control (Depends-on,
29565         configure.ac): Likewise.
29566         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29567         Likewise.
29568         * modules/unictype/property-join-control (Depends-on, configure.ac):
29569         Likewise.
29570         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29571         Likewise.
29572         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29573         Likewise.
29574         * modules/unictype/property-logical-order-exception (Depends-on,
29575         configure.ac): Likewise.
29576         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29577         Likewise.
29578         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29579         * modules/unictype/property-non-break (Depends-on, configure.ac):
29580         Likewise.
29581         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29582         Likewise.
29583         * modules/unictype/property-numeric (Depends-on, configure.ac):
29584         Likewise.
29585         * modules/unictype/property-other-alphabetic (Depends-on,
29586         configure.ac): Likewise.
29587         * modules/unictype/property-other-default-ignorable-code-point
29588         (Depends-on, configure.ac): Likewise.
29589         * modules/unictype/property-other-grapheme-extend (Depends-on,
29590         configure.ac): Likewise.
29591         * modules/unictype/property-other-id-continue (Depends-on,
29592         configure.ac): Likewise.
29593         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29594         Likewise.
29595         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29596         Likewise.
29597         * modules/unictype/property-other-math (Depends-on, configure.ac):
29598         Likewise.
29599         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29600         Likewise.
29601         * modules/unictype/property-paired-punctuation (Depends-on,
29602         configure.ac): Likewise.
29603         * modules/unictype/property-paragraph-separator (Depends-on,
29604         configure.ac): Likewise.
29605         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29606         Likewise.
29607         * modules/unictype/property-pattern-white-space (Depends-on,
29608         configure.ac): Likewise.
29609         * modules/unictype/property-private-use (Depends-on, configure.ac):
29610         Likewise.
29611         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29612         Likewise.
29613         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29614         Likewise.
29615         * modules/unictype/property-radical (Depends-on, configure.ac):
29616         Likewise.
29617         * modules/unictype/property-sentence-terminal (Depends-on,
29618         configure.ac): Likewise.
29619         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29620         Likewise.
29621         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29622         * modules/unictype/property-terminal-punctuation (Depends-on,
29623         configure.ac): Likewise.
29624         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29625         Likewise.
29626         * modules/unictype/property-unassigned-code-value (Depends-on,
29627         configure.ac): Likewise.
29628         * modules/unictype/property-unified-ideograph (Depends-on,
29629         configure.ac): Likewise.
29630         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29631         Likewise.
29632         * modules/unictype/property-variation-selector (Depends-on,
29633         configure.ac): Likewise.
29634         * modules/unictype/property-white-space (Depends-on, configure.ac):
29635         Likewise.
29636         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29637         Likewise.
29638         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29639         Likewise.
29640         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29641         Likewise.
29642         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29643         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29644         Likewise.
29645
29646 2009-12-31  Bruno Haible  <bruno@clisp.org>
29647
29648         Remove unnecessary AC_C_INLINE invocation.
29649         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29650         since 2009-08-21.
29651
29652 2009-12-31  Jim Meyering  <meyering@redhat.com>
29653
29654         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29655         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29656         With this change, we can all remove the gpg_key_ID = ... definition
29657         from our respective cfg.mk files.
29658
29659         maint.mk: create announcement template in ~/, not in /tmp
29660         * top/maint.mk (emit_upload_commands): Adjust.
29661         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29662         Remove temporary file, .ci-msg.
29663
29664 2009-12-31  Eric Blake  <ebb9@byu.net>
29665
29666         link-warning: always build headers with link warnings
29667         * modules/arpa_inet (Makefile.am): Always build replacement
29668         header.
29669         * modules/ctype (Makefile.am): Likewise.
29670         * modules/dirent (Makefile.am): Likewise.
29671         * modules/inttypes (Makefile.am): Likewise.
29672         * modules/langinfo (Makefile.am): Likewise.
29673         * modules/locale (Makefile.am): Likewise.
29674         * modules/spawn (Makefile.am): Likewise.
29675         * modules/sys_file (Makefile.am): Likewise.
29676         * modules/sys_ioctl (Makefile.am): Likewise.
29677         * modules/sys_select (Makefile.am): Likewise.
29678         * modules/sys_socket (Makefile.am): Likewise.
29679         * modules/sys_times (Makefile.am): Likewise.
29680         * modules/sys_utsname (Makefile.am): Likewise.
29681         * modules/sys_wait (Makefile.am): Likewise.
29682         * modules/wchar (Makefile.am): Likewise.
29683         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29684         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29685         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29686         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29687         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29688         Likewise.
29689         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29690         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29691         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29692         Likewise.
29693         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29694         Likewise.
29695         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29696         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29697         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29698         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29699         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29700         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29701         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29702         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29703         (gl_WCHAR_H_DEFAULTS): Likewise.
29704
29705 2009-12-31  Eric Blake  <ebb9@byu.net>
29706
29707         signal, spawn: use link warnings
29708         * lib/signal.in.h (sigset_t): Make unconditional.
29709         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29710         (sigpending, sigprocmask, sigaction): Add link warnings.
29711         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29712         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29713         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29714         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29715         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29716         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29717         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29718         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29719         (posix_spawn_file_actions_destroy)
29720         (posix_spawn_file_actions_addopen)
29721         (posix_spawn_file_actions_addclose)
29722         (posix_spawn_file_actions_adddup2): Likewise.
29723         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29724         * tests/test-signal.c (main): Enhance test.
29725
29726         spawn: improve wrapper support
29727         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29728         (gl_SPAWN_H_DEFAULTS): New defaults.
29729         * modules/spawn (Makefile.am): Substitute them.
29730         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29731         Only declare if missing or broken.
29732
29733         sys_times, sys_utsname: use include_next
29734         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29735         header.
29736         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29737         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29738         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29739         * modules/sys_times (Depends-on): Add include_next.
29740         (Makefile.am): Substitute additional values.
29741         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29742         * lib/sys_times.in.h (includes): Include native header, if
29743         available.
29744         * lib/sys_utsname.in.h (includes): Likewise.
29745         * tests/test-sys_times.c (main): Enhance test.
29746
29747         fdutimensat: revert prior patch
29748         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29749         utimens.h.
29750         Reported by Bruno Haible.
29751
29752 2009-12-30  Eric Blake  <ebb9@byu.net>
29753
29754         sys_wait: drop link-warning dependency
29755         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29756         link-warning efforts.
29757         * lib/sys_wait.in.h: Likewise.
29758
29759         fdutimensat: remove bogus dependency
29760         * modules/fdutimensat (Depends-on): Drop inline.
29761
29762         unistd: fix typo
29763         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29764
29765 2009-12-30  Bruno Haible  <bruno@clisp.org>
29766
29767         Fix compilation error with Solaris cc.
29768         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29769         * lib/unicase/u16-is-invariant.c: Likewise.
29770         * lib/unicase/u32-is-invariant.c: Likewise.
29771         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29772
29773 2009-12-30  Bruno Haible  <bruno@clisp.org>
29774
29775         Fix test crash.
29776         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29777         locales.
29778         Reported by Simon Josefsson <simon@josefsson.org>.
29779
29780 2009-12-30  Bruno Haible  <bruno@clisp.org>
29781
29782         Fix compilation error on most platforms.
29783         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29784         Reported by Simon Josefsson <simon@josefsson.org>
29785         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29786
29787 2009-12-30  Eric Blake  <ebb9@byu.net>
29788
29789         futimens, utimensat: work around ntfs-3g bug
29790         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29791         a ctime bug is present, and expand workaround to cover ntfs-3g.
29792         * lib/utimens.c (fdutimens, lutimens): Likewise.
29793         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29794         (validate_timespec): Adjust return value.
29795         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29796         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29797         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29798
29799 2009-12-29  Eric Blake  <ebb9@byu.net>
29800
29801         link-warning: make usage consistent
29802         * modules/ctype (Depends-on): Add link-warning.
29803         (Makefile.am): Update rules accordingly.
29804         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29805         * modules/locale (Depends-on, Makefile.am): Likewise.
29806         * modules/sys_file (Makefile.am): Likewise.
29807         * modules/getopt-posix (Makefile.am): Delete unused link warning
29808         efforts.
29809         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29810         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29811         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29812         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29813
29814         stdio: remove unused variables
29815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29816         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29817         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29818
29819         tests: test more substitute headers
29820         * modules/ctype-tests: New file.
29821         * modules/dirent-tests: Likewise.
29822         * modules/spawn-tests: Likewise.
29823         * modules/sys_file-tests: Likewise.
29824         * modules/sys_ioctl-tests: Likewise.
29825         * modules/sys_wait-tests: Likewise.
29826         * tests/test-ctype.c: Likewise.
29827         * tests/test-dirent.c: Likewise.
29828         * tests/test-spawn.c: Likewise.
29829         * tests/test-sys_file.c: Likewise.
29830         * tests/test-sys_ioctl.c: Likewise.
29831         * tests/test-sys_wait.c: Likewise.
29832         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29833         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29834         whether or not flock is in use.
29835
29836         tests: remove License section from module
29837         * modules/arpa_inet-tests: Remove unneeded section.
29838         * modules/byteswap-tests: Likewise.
29839         * modules/ceilf-tests: Likewise.
29840         * modules/ceill-tests: Likewise.
29841         * modules/crypto/des-tests: Likewise.
29842         * modules/crypto/gc-arcfour-tests: Likewise.
29843         * modules/crypto/gc-arctwo-tests: Likewise.
29844         * modules/crypto/gc-des-tests: Likewise.
29845         * modules/crypto/gc-hmac-md5-tests: Likewise.
29846         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29847         * modules/crypto/gc-md2-tests: Likewise.
29848         * modules/crypto/gc-md4-tests: Likewise.
29849         * modules/crypto/gc-md5-tests: Likewise.
29850         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29851         * modules/crypto/gc-rijndael-tests: Likewise.
29852         * modules/crypto/gc-sha1-tests: Likewise.
29853         * modules/crypto/gc-tests: Likewise.
29854         * modules/crypto/md2-tests: Likewise.
29855         * modules/crypto/md4-tests: Likewise.
29856         * modules/fcntl-h-tests: Likewise.
29857         * modules/floorf-tests: Likewise.
29858         * modules/floorl-tests: Likewise.
29859         * modules/frexp-nolibm-tests: Likewise.
29860         * modules/frexp-tests: Likewise.
29861         * modules/frexpl-nolibm-tests: Likewise.
29862         * modules/frexpl-tests: Likewise.
29863         * modules/getaddrinfo-tests: Likewise.
29864         * modules/inttypes-tests: Likewise.
29865         * modules/isfinite-tests: Likewise.
29866         * modules/isinf-tests: Likewise.
29867         * modules/ldexpl-tests: Likewise.
29868         * modules/locale-tests: Likewise.
29869         * modules/math-tests: Likewise.
29870         * modules/netdb-tests: Likewise.
29871         * modules/netinet_in-tests: Likewise.
29872         * modules/printf-frexp-tests: Likewise.
29873         * modules/printf-frexpl-tests: Likewise.
29874         * modules/priv-set-tests: Likewise.
29875         * modules/random_r-tests: Likewise.
29876         * modules/round-tests: Likewise.
29877         * modules/roundf-tests: Likewise.
29878         * modules/roundl-tests: Likewise.
29879         * modules/search-tests: Likewise.
29880         * modules/select-tests: Likewise.
29881         * modules/signal-tests: Likewise.
29882         * modules/stdbool-tests: Likewise.
29883         * modules/stddef-tests: Likewise.
29884         * modules/stdint-tests: Likewise.
29885         * modules/stdio-tests: Likewise.
29886         * modules/stdlib-tests: Likewise.
29887         * modules/string-tests: Likewise.
29888         * modules/strings-tests: Likewise.
29889         * modules/sys_select-tests: Likewise.
29890         * modules/sys_socket-tests: Likewise.
29891         * modules/sys_stat-tests: Likewise.
29892         * modules/sys_time-tests: Likewise.
29893         * modules/sys_utsname-tests: Likewise.
29894         * modules/sysexits-tests: Likewise.
29895         * modules/time-tests: Likewise.
29896         * modules/trunc-tests: Likewise.
29897         * modules/truncf-tests: Likewise.
29898         * modules/truncl-tests: Likewise.
29899         * modules/tsearch-tests: Likewise.
29900         * modules/unistd-tests: Likewise.
29901         * modules/wchar-tests: Likewise.
29902         * modules/wctype-tests: Likewise.
29903
29904         tests: fix license on several tests
29905         * tests/test-des.c: Update to GPLv3+.
29906         * tests/test-flock.c: Likewise.
29907         * tests/test-fsync.c: Likewise.
29908         * tests/test-futimens.h: Likewise.
29909         * tests/test-gc-arcfour.c: Likewise.
29910         * tests/test-gc-arctwo.c: Likewise.
29911         * tests/test-gc-des.c: Likewise.
29912         * tests/test-gc-hmac-md5.c: Likewise.
29913         * tests/test-gc-hmac-sha1.c: Likewise.
29914         * tests/test-gc-md2.c: Likewise.
29915         * tests/test-gc-md4.c: Likewise.
29916         * tests/test-gc-md5.c: Likewise.
29917         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29918         * tests/test-gc-rijndael.c: Likewise.
29919         * tests/test-gc-sha1.c: Likewise.
29920         * tests/test-gc.c: Likewise.
29921         * tests/test-getcwd.c: Likewise.
29922         * tests/test-link.c: Likewise.
29923         * tests/test-link.h: Likewise.
29924         * tests/test-lutimens.h: Likewise.
29925         * tests/test-md2.c: Likewise.
29926         * tests/test-md4.c: Likewise.
29927         * tests/test-mkdir.h: Likewise.
29928         * tests/test-rename.c: Likewise.
29929         * tests/test-rename.h: Likewise.
29930         * tests/test-safe-alloc.c: Likewise.
29931         * tests/test-utimens-common.h: Likewise.
29932         * tests/test-utimens.h: Likewise.
29933
29934         maint: sync license texts
29935         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29936         * doc/gpl-3.0.texi: Revert copyright year update.
29937         * doc/lgpl-3.0.texi: Likewise.
29938
29939 2009-12-29  Jim Meyering  <meyering@redhat.com>
29940
29941         update nearly all FSF copyright year lists to include 2009
29942         The files named by the following are exempted:
29943             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29944               test -f "$dst" && { echo "$dst"; continue; }
29945               test -d "$dst" || continue
29946               echo "$dst"/$(basename "$src")
29947             done > exempt
29948             git ls-files tests/unictype >> exempt
29949         In the remaining files, convert to all-interval notation if
29950         - there is already at least one year interval like 2000-2003
29951         - the file is maintained by me
29952         - the file is in lib/uni*/, where that style already prevails
29953         Otherwise, use update-copyright's default.
29954
29955 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29956         and Eric Blake  <ebb9@byu.net>
29957
29958         tests: don't require debug system() to pass
29959         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29960         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29961         * tests/test-unlink.h (test_unlink_func): Likewise.
29962         * tests/test-fstatat.c (main): ...into callers.
29963         * tests/test-lstat.c (main): Likewise.
29964         * tests/test-rmdir.c (main): Likewise.
29965         * tests/test-unlink.c (main): Likewise.
29966         * tests/test-unlinkat.c (main): Likewise.
29967         * tests/test-areadlink-with-size.c (main): Don't require a
29968         debug-only system call to pass, aiding cross-testing to mingw.
29969         * tests/test-areadlink.c (main): Likewise.
29970         * tests/test-areadlinkat-with-size.c (main): Likewise.
29971         * tests/test-areadlinkat.c (main): Likewise.
29972         * tests/test-canonicalize-lgpl.c (main): Likewise.
29973         * tests/test-canonicalize.c (main): Likewise.
29974         * tests/test-chown.c (main): Likewise.
29975         * tests/test-fchownat.c (main): Likewise.
29976         * tests/test-lchown.c (main): Likewise.
29977         * tests/test-fdutimensat.c (main): Likewise.
29978         * tests/test-futimens.c (main): Likewise.
29979         * tests/test-link.c (main): Likewise.
29980         * tests/test-linkat.c (main): Likewise.
29981         * tests/test-mkdir.c (main): Likewise.
29982         * tests/test-mkdirat.c (main): Likewise.
29983         * tests/test-mkfifo.c (main): Likewise.
29984         * tests/test-mkfifoat.c (main): Likewise.
29985         * tests/test-mknod.c (main): Likewise.
29986         * tests/test-readlink.c (main): Likewise.
29987         * tests/test-remove.c (main): Likewise.
29988         * tests/test-rename.c (main): Likewise.
29989         * tests/test-renameat.c (main): Likewise.
29990         * tests/test-symlink.c (main): Likewise.
29991         * tests/test-symlinkat.c (main): Likewise.
29992         * tests/test-utimens.c (main): Likewise.
29993         * tests/test-utimensat.c (main): Likewise.
29994
29995 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29996
29997         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29998         on $(UNUSED_PARAMETER_H) to avoid build failure.
29999
30000 2009-12-28  Jim Meyering  <meyering@redhat.com>
30001
30002         update-copyright: you may specify a max. line length other than 72
30003         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30004
30005         maint: use consistent FSF copyright line syntax
30006         * lib/posixtm.c: Add missing comma in FSF copyright line.
30007         * lib/posixtm.h: Likewise.
30008         * lib/getugroups.c: Add missing ", Inc.".
30009
30010         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30011         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30012         FSF copyright line.  Remove trailing blanks.
30013
30014 2009-12-28  Eric Blake  <ebb9@byu.net>
30015
30016         test-dup2: reduce dependencies
30017         * modules/cloexec (Configure.ac): Set witness.
30018         * modules/dup2-tests (Depends-on): Drop cloexec.
30019         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30020         not present.
30021         Suggested by Bruno Haible.
30022
30023 2009-12-26  Bruno Haible  <bruno@clisp.org>
30024
30025         Remove an unneeded dependency.
30026         * modules/fseterr (Depends-on): Remove dup2.
30027
30028 2009-12-26  Eric Blake  <ebb9@byu.net>
30029
30030         tests: use macros.h in more places
30031         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30032         (ASSERT_STREAM): Provide default of stderr.
30033         * tests/test-dirent-safer.c: Include macros.h, using alternate
30034         stream for assertions.
30035         * tests/test-dup-safer.c: Likewise.
30036         * tests/test-freopen-safer.c: Likewise.
30037         * tests/test-getopt.c: Likewise.
30038         * tests/test-openat-safer.c: Likewise.
30039         * tests/test-pipe.c: Likewise.
30040         * tests/test-popen-safer.c: Likewise.
30041         * modules/dirent-safer-tests (Files): Include macros.h.
30042         * modules/unistd-safer-tests (Files): Likewise.
30043         * modules/freopen-safer-tests (Files): Likewise.
30044         * modules/getopt-posix-tests (Files): Likewise.
30045         * modules/openat-safer-tests (Files): Likewise.
30046         * modules/pipe-tests (Files): Likewise.
30047
30048 2009-12-26  Bruno Haible  <bruno@clisp.org>
30049
30050         javacomp: Portability fix.
30051         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30052         that it also works on Solaris.
30053
30054 2009-12-26  Bruno Haible  <bruno@clisp.org>
30055
30056         localename: Fix storage allocation of gl_locale_name_thread's result.
30057         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30058         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30059         all platforms that have 'uselocale'.
30060         (gl_locale_name_thread_unsafe): New function, extracted from
30061         gl_locale_name_thread.
30062         (gl_locale_name_thread): Call struniq on all platforms that have
30063         'uselocale'.
30064         * tests/test-localename.c (test_locale_name_thread): Check that the
30065         resulting strings are permanently allocated.
30066         * modules/localename-tests (Depends-on): Add strdup.
30067
30068 2009-12-26  Bruno Haible  <bruno@clisp.org>
30069
30070         * tests/test-localename.c (categories): Fill in the strings.
30071
30072 2009-12-26  Jim Meyering  <meyering@redhat.com>
30073
30074         isdir: complete the removal of m4/isdir.m4
30075         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30076
30077         isdir: clean up, since at least grep still uses it
30078         * lib/isdir.c: Include "isdir.h".
30079         (S_ISDIR): Remove now-unneeded definition.
30080         * modules/isdir (Files): Add lib/isdir.h.
30081         * lib/isdir.h: New file, with declaration.
30082         * m4/isdir.m4: Remove file -- unneeded.
30083
30084 2009-12-25  Bruno Haible  <bruno@clisp.org>
30085
30086         selinux-h: Make generated .h files standalone.
30087         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30088         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30089         * lib/se-selinux.in.h: Likewise.
30090         * modules/selinux-h (Depends-on): Add unused-parameter.
30091         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30092         selinux/selinux.h and selinux/context.h.
30093         Suggested by Eric Blake.
30094
30095 2009-12-25  Bruno Haible  <bruno@clisp.org>
30096
30097         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30098         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30099         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30100         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30101         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30102
30103 2009-12-24  Bruno Haible  <bruno@clisp.org>
30104
30105         openat: Fix warning.
30106         * lib/openat-proc.c: Include <unistd.h>.
30107
30108 2009-12-24  Bruno Haible  <bruno@clisp.org>
30109
30110         New module 'unused-parameter'.
30111         * build-aux/unused-parameter.h: New file, extracted from earlier
30112         gnulib-common.m4.
30113         * modules/unused-parameter: New file.
30114         * lib/unistr.h: Include unused-parameter.h.
30115         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30116         _GL_UNUSED.
30117         * modules/unistr/base (Depends-on): Add unused-parameter.
30118
30119 2009-12-24  Bruno Haible  <bruno@clisp.org>
30120
30121         Add missing dependencies to 'extensions' module.
30122         * m4/extensions.m4: Add comment.
30123         * modules/accept4 (Depends-on): Add extensions.
30124         * modules/dup3 (Depends-on): Likewise.
30125         * modules/fcntl (Depends-on): Likewise.
30126         * modules/futimens (Depends-on): Likewise.
30127         * modules/mknod (Depends-on): Likewise.
30128         * modules/pipe2 (Depends-on): Likewise.
30129         * modules/stat-time (Depends-on): Likewise.
30130         * modules/strcasestr-simple (Depends-on): Likewise.
30131         * modules/strsignal (Depends-on): Likewise.
30132         * modules/utimensat (Depends-on): Likewise.
30133         * modules/localcharset (Depends-on): Likewise. Needed because of
30134         gl_FCNTL_O_FLAGS.
30135         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30136         AC_TYPE_MBSTATE_T.
30137         * modules/wcsnrtombs (Depends-on): Likewise.
30138         * modules/wcsrtombs (Depends-on): Likewise.
30139
30140 2009-12-24  Bruno Haible  <bruno@clisp.org>
30141
30142         binary-io: Avoid gcc warning due to SET_BINARY.
30143         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30144         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30145
30146 2009-12-24  Bruno Haible  <bruno@clisp.org>
30147
30148         Avoid future namespace pollution on glibc systems.
30149         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30150         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30151         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30152         glibc systems.
30153
30154 2009-12-24  Bruno Haible  <bruno@clisp.org>
30155
30156         Refactor common macros used in tests.
30157         * tests/macros.h: New file.
30158         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30159         and/or <stdlib.h>, if appropriate.
30160         (ASSERT, SIZEOF): Remove macros.
30161         * tests/test-areadlink-with-size.c: Likewise.
30162         * tests/test-areadlinkat.c: Likewise.
30163         * tests/test-areadlinkat-with-size.c: Likewise.
30164         * tests/test-argmatch.c: Likewise.
30165         * tests/test-argv-iter.c: Likewise.
30166         * tests/test-array-mergesort.c: Likewise.
30167         * tests/test-array_list.c: Likewise.
30168         * tests/test-array_oset.c: Likewise.
30169         * tests/test-avltree_list.c: Likewise.
30170         * tests/test-avltree_oset.c: Likewise.
30171         * tests/test-avltreehash_list.c: Likewise.
30172         * tests/test-base64.c: Likewise.
30173         * tests/test-binary-io.c: Likewise.
30174         * tests/test-bitrotate.c: Likewise.
30175         * tests/test-btowc.c: Likewise.
30176         * tests/test-byteswap.c: Likewise.
30177         * tests/test-c-ctype.c: Likewise.
30178         * tests/test-c-stack.c: Likewise.
30179         * tests/test-c-strcasecmp.c: Likewise.
30180         * tests/test-c-strcasestr.c: Likewise.
30181         * tests/test-c-strncasecmp.c: Likewise.
30182         * tests/test-c-strstr.c: Likewise.
30183         * tests/test-canonicalize-lgpl.c: Likewise.
30184         * tests/test-canonicalize.c: Likewise.
30185         * tests/test-carray_list.c: Likewise.
30186         * tests/test-ceilf1.c: Likewise.
30187         * tests/test-ceilf2.c: Likewise.
30188         * tests/test-ceill.c: Likewise.
30189         * tests/test-chown.c: Likewise.
30190         * tests/test-cloexec.c: Likewise.
30191         * tests/test-copy-acl.c: Likewise.
30192         * tests/test-copy-file.c: Likewise.
30193         * tests/test-count-one-bits.c: Likewise.
30194         * tests/test-dprintf-posix.c: Likewise.
30195         * tests/test-dup2.c: Likewise.
30196         * tests/test-dup3.c: Likewise.
30197         * tests/test-duplocale.c: Likewise.
30198         * tests/test-fbufmode.c: Likewise.
30199         * tests/test-fchdir.c: Likewise.
30200         * tests/test-fchownat.c: Likewise.
30201         * tests/test-fcntl-safer.c: Likewise.
30202         * tests/test-fcntl.c: Likewise.
30203         * tests/test-fdopendir.c: Likewise.
30204         * tests/test-fdutimensat.c: Likewise.
30205         * tests/test-fflush2.c: Likewise.
30206         * tests/test-file-has-acl.c: Likewise.
30207         * tests/test-filevercmp.c: Likewise.
30208         * tests/test-flock.c: Likewise.
30209         * tests/test-floorf1.c: Likewise.
30210         * tests/test-floorf2.c: Likewise.
30211         * tests/test-floorl.c: Likewise.
30212         * tests/test-fnmatch.c: Likewise.
30213         * tests/test-fopen.h: Likewise.
30214         * tests/test-fpending.c: Likewise.
30215         * tests/test-fprintf-posix.c: Likewise.
30216         * tests/test-fpurge.c: Likewise.
30217         * tests/test-freadable.c: Likewise.
30218         * tests/test-freadahead.c: Likewise.
30219         * tests/test-freading.c: Likewise.
30220         * tests/test-freadptr.c: Likewise.
30221         * tests/test-freadptr2.c: Likewise.
30222         * tests/test-freadseek.c: Likewise.
30223         * tests/test-freopen.c: Likewise.
30224         * tests/test-frexp.c: Likewise.
30225         * tests/test-frexpl.c: Likewise.
30226         * tests/test-fseek.c: Likewise.
30227         * tests/test-fseeko.c: Likewise.
30228         * tests/test-fstatat.c: Likewise.
30229         * tests/test-fstrcmp.c: Likewise.
30230         * tests/test-fsync.c: Likewise.
30231         * tests/test-ftell.c: Likewise.
30232         * tests/test-ftello.c: Likewise.
30233         * tests/test-func.c: Likewise.
30234         * tests/test-futimens.c: Likewise.
30235         * tests/test-fwritable.c: Likewise.
30236         * tests/test-fwriting.c: Likewise.
30237         * tests/test-getcwd.c: Likewise.
30238         * tests/test-getdate.c: Likewise.
30239         * tests/test-getdelim.c: Likewise.
30240         * tests/test-getdtablesize.c: Likewise.
30241         * tests/test-getgroups.c: Likewise.
30242         * tests/test-getline.c: Likewise.
30243         * tests/test-getndelim2.c: Likewise.
30244         * tests/test-glob.c: Likewise.
30245         * tests/test-hash.c: Likewise.
30246         * tests/test-i-ring.c: Likewise.
30247         * tests/test-iconv-utf.c: Likewise.
30248         * tests/test-iconv.c: Likewise.
30249         * tests/test-idpriv-drop.c: Likewise.
30250         * tests/test-idpriv-droptemp.c: Likewise.
30251         * tests/test-inet_ntop.c: Likewise.
30252         * tests/test-inet_pton.c: Likewise.
30253         * tests/test-isblank.c: Likewise.
30254         * tests/test-isfinite.c: Likewise.
30255         * tests/test-isinf.c: Likewise.
30256         * tests/test-isnan.c: Likewise.
30257         * tests/test-isnand.h: Likewise.
30258         * tests/test-isnanf.h: Likewise.
30259         * tests/test-isnanl.h: Likewise.
30260         * tests/test-lchown.c: Likewise.
30261         * tests/test-ldexpl.c: Likewise.
30262         * tests/test-link.c: Likewise.
30263         * tests/test-linkat.c: Likewise.
30264         * tests/test-linked_list.c: Likewise.
30265         * tests/test-linkedhash_list.c: Likewise.
30266         * tests/test-localename.c: Likewise.
30267         * tests/test-lseek.c: Likewise.
30268         * tests/test-lstat.c: Likewise.
30269         * tests/test-mbmemcasecmp.c: Likewise.
30270         * tests/test-mbmemcasecoll.c: Likewise.
30271         * tests/test-mbrtowc.c: Likewise.
30272         * tests/test-mbscasecmp.c: Likewise.
30273         * tests/test-mbscasestr1.c: Likewise.
30274         * tests/test-mbscasestr2.c: Likewise.
30275         * tests/test-mbscasestr3.c: Likewise.
30276         * tests/test-mbscasestr4.c: Likewise.
30277         * tests/test-mbschr.c: Likewise.
30278         * tests/test-mbscspn.c: Likewise.
30279         * tests/test-mbsinit.c: Likewise.
30280         * tests/test-mbsncasecmp.c: Likewise.
30281         * tests/test-mbsnrtowcs.c: Likewise.
30282         * tests/test-mbspbrk.c: Likewise.
30283         * tests/test-mbspcasecmp.c: Likewise.
30284         * tests/test-mbsrchr.c: Likewise.
30285         * tests/test-mbsrtowcs.c: Likewise.
30286         * tests/test-mbsspn.c: Likewise.
30287         * tests/test-mbsstr1.c: Likewise.
30288         * tests/test-mbsstr2.c: Likewise.
30289         * tests/test-mbsstr3.c: Likewise.
30290         * tests/test-memchr.c: Likewise.
30291         * tests/test-memchr2.c: Likewise.
30292         * tests/test-memcmp.c: Likewise.
30293         * tests/test-memmem.c: Likewise.
30294         * tests/test-memrchr.c: Likewise.
30295         * tests/test-mkdir.c: Likewise.
30296         * tests/test-mkdirat.c: Likewise.
30297         * tests/test-mkfifo.c: Likewise.
30298         * tests/test-mkfifoat.c: Likewise.
30299         * tests/test-mknod.c: Likewise.
30300         * tests/test-nanosleep.c: Likewise.
30301         * tests/test-nl_langinfo.c: Likewise.
30302         * tests/test-obstack-printf.c: Likewise.
30303         * tests/test-open.c: Likewise.
30304         * tests/test-openat.c: Likewise.
30305         * tests/test-pipe-filter-gi1.c: Likewise.
30306         * tests/test-pipe-filter-gi2-main.c: Likewise.
30307         * tests/test-pipe-filter-ii1.c: Likewise.
30308         * tests/test-pipe-filter-ii2-main.c: Likewise.
30309         * tests/test-pipe2.c: Likewise.
30310         * tests/test-popen.h: Likewise.
30311         * tests/test-posixtm.c: Likewise.
30312         * tests/test-pread.c: Likewise.
30313         * tests/test-printf-frexp.c: Likewise.
30314         * tests/test-printf-frexpl.c: Likewise.
30315         * tests/test-printf-posix.c: Likewise.
30316         * tests/test-priv-set.c: Likewise.
30317         * tests/test-quotearg.c: Likewise.
30318         * tests/test-random_r.c: Likewise.
30319         * tests/test-rawmemchr.c: Likewise.
30320         * tests/test-rbtree_list.c: Likewise.
30321         * tests/test-rbtree_oset.c: Likewise.
30322         * tests/test-rbtreehash_list.c: Likewise.
30323         * tests/test-readlink.c: Likewise.
30324         * tests/test-remove.c: Likewise.
30325         * tests/test-rename.c: Likewise.
30326         * tests/test-renameat.c: Likewise.
30327         * tests/test-rmdir.c: Likewise.
30328         * tests/test-round1.c: Likewise.
30329         * tests/test-roundf1.c: Likewise.
30330         * tests/test-roundl.c: Likewise.
30331         * tests/test-safe-alloc.c: Likewise.
30332         * tests/test-sameacls.c: Likewise.
30333         * tests/test-set-mode-acl.c: Likewise.
30334         * tests/test-setenv.c: Likewise.
30335         * tests/test-sigaction.c: Likewise.
30336         * tests/test-signbit.c: Likewise.
30337         * tests/test-sleep.c: Likewise.
30338         * tests/test-snprintf-posix.c: Likewise.
30339         * tests/test-snprintf.c: Likewise.
30340         * tests/test-sprintf-posix.c: Likewise.
30341         * tests/test-stat-time.c: Likewise.
30342         * tests/test-stat.c: Likewise.
30343         * tests/test-strcasestr.c: Likewise.
30344         * tests/test-strchrnul.c: Likewise.
30345         * tests/test-strerror.c: Likewise.
30346         * tests/test-striconv.c: Likewise.
30347         * tests/test-striconveh.c: Likewise.
30348         * tests/test-striconveha.c: Likewise.
30349         * tests/test-strsignal.c: Likewise.
30350         * tests/test-strstr.c: Likewise.
30351         * tests/test-strtod.c: Likewise.
30352         * tests/test-strverscmp.c: Likewise.
30353         * tests/test-symlink.c: Likewise.
30354         * tests/test-symlinkat.c: Likewise.
30355         * tests/test-trunc1.c: Likewise.
30356         * tests/test-trunc2.c: Likewise.
30357         * tests/test-truncf1.c: Likewise.
30358         * tests/test-truncf2.c: Likewise.
30359         * tests/test-truncl.c: Likewise.
30360         * tests/test-uname.c: Likewise.
30361         * tests/test-unlink.c: Likewise.
30362         * tests/test-unlinkat.c: Likewise.
30363         * tests/test-unsetenv.c: Likewise.
30364         * tests/test-usleep.c: Likewise.
30365         * tests/test-utimens.c: Likewise.
30366         * tests/test-utimensat.c: Likewise.
30367         * tests/test-vasnprintf-posix.c: Likewise.
30368         * tests/test-vasnprintf-posix2.c: Likewise.
30369         * tests/test-vasnprintf.c: Likewise.
30370         * tests/test-vasprintf-posix.c: Likewise.
30371         * tests/test-vasprintf.c: Likewise.
30372         * tests/test-vdprintf-posix.c: Likewise.
30373         * tests/test-vfprintf-posix.c: Likewise.
30374         * tests/test-vprintf-posix.c: Likewise.
30375         * tests/test-vsnprintf-posix.c: Likewise.
30376         * tests/test-vsnprintf.c: Likewise.
30377         * tests/test-vsprintf-posix.c: Likewise.
30378         * tests/test-wcrtomb.c: Likewise.
30379         * tests/test-wcsnrtombs.c: Likewise.
30380         * tests/test-wcsrtombs.c: Likewise.
30381         * tests/test-wctype.c: Likewise.
30382         * tests/test-wcwidth.c: Likewise.
30383         * tests/test-xfprintf-posix.c: Likewise.
30384         * tests/test-xmemdup0.c: Likewise.
30385         * tests/test-xprintf-posix.c: Likewise.
30386         * tests/test-xvasprintf.c: Likewise.
30387         * tests/unicase/test-locale-language.c: Likewise.
30388         * tests/unicase/test-mapping-part1.h: Likewise.
30389         * tests/unicase/test-predicate-part1.h: Likewise.
30390         * tests/unicase/test-u8-casecmp.c: Likewise.
30391         * tests/unicase/test-u8-casecoll.c: Likewise.
30392         * tests/unicase/test-u8-casefold.c: Likewise.
30393         * tests/unicase/test-u8-is-cased.c: Likewise.
30394         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30395         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30396         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30397         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30398         * tests/unicase/test-u8-tolower.c: Likewise.
30399         * tests/unicase/test-u8-totitle.c: Likewise.
30400         * tests/unicase/test-u8-toupper.c: Likewise.
30401         * tests/unicase/test-u16-casecmp.c: Likewise.
30402         * tests/unicase/test-u16-casecoll.c: Likewise.
30403         * tests/unicase/test-u16-casefold.c: Likewise.
30404         * tests/unicase/test-u16-is-cased.c: Likewise.
30405         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30406         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30407         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30408         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30409         * tests/unicase/test-u16-tolower.c: Likewise.
30410         * tests/unicase/test-u16-totitle.c: Likewise.
30411         * tests/unicase/test-u16-toupper.c: Likewise.
30412         * tests/unicase/test-u32-casecmp.c: Likewise.
30413         * tests/unicase/test-u32-casecoll.c: Likewise.
30414         * tests/unicase/test-u32-casefold.c: Likewise.
30415         * tests/unicase/test-u32-is-cased.c: Likewise.
30416         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30417         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30418         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30419         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30420         * tests/unicase/test-u32-tolower.c: Likewise.
30421         * tests/unicase/test-u32-totitle.c: Likewise.
30422         * tests/unicase/test-u32-toupper.c: Likewise.
30423         * tests/unicase/test-ulc-casecmp.c: Likewise.
30424         * tests/unicase/test-ulc-casecoll.c: Likewise.
30425         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30426         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30427         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30428         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30429         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30430         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30431         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30432         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30433         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30434         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30435         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30436         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30437         * tests/unictype/test-bidi_byname.c: Likewise.
30438         * tests/unictype/test-bidi_name.c: Likewise.
30439         * tests/unictype/test-bidi_of.c: Likewise.
30440         * tests/unictype/test-bidi_test.c: Likewise.
30441         * tests/unictype/test-block_list.c: Likewise.
30442         * tests/unictype/test-block_of.c: Likewise.
30443         * tests/unictype/test-block_test.c: Likewise.
30444         * tests/unictype/test-categ_and.c: Likewise.
30445         * tests/unictype/test-categ_and_not.c: Likewise.
30446         * tests/unictype/test-categ_byname.c: Likewise.
30447         * tests/unictype/test-categ_name.c: Likewise.
30448         * tests/unictype/test-categ_none.c: Likewise.
30449         * tests/unictype/test-categ_of.c: Likewise.
30450         * tests/unictype/test-categ_or.c: Likewise.
30451         * tests/unictype/test-categ_test_withtable.c: Likewise.
30452         * tests/unictype/test-combining.c: Likewise.
30453         * tests/unictype/test-decdigit.c: Likewise.
30454         * tests/unictype/test-digit.c: Likewise.
30455         * tests/unictype/test-mirror.c: Likewise.
30456         * tests/unictype/test-numeric.c: Likewise.
30457         * tests/unictype/test-pr_byname.c: Likewise.
30458         * tests/unictype/test-pr_test.c: Likewise.
30459         * tests/unictype/test-predicate-part1.h: Likewise.
30460         * tests/unictype/test-scripts.c: Likewise.
30461         * tests/unictype/test-sy_c_ident.c: Likewise.
30462         * tests/unictype/test-sy_java_ident.c: Likewise.
30463         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30464         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30465         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30466         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30467         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30468         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30469         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30470         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30471         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30472         * tests/uninorm/test-compat-decomposition.c: Likewise.
30473         * tests/uninorm/test-composition.c: Likewise.
30474         * tests/uninorm/test-decomposing-form.c: Likewise.
30475         * tests/uninorm/test-decomposition.c: Likewise.
30476         * tests/uninorm/test-u8-nfc.c: Likewise.
30477         * tests/uninorm/test-u8-nfd.c: Likewise.
30478         * tests/uninorm/test-u8-nfkc.c: Likewise.
30479         * tests/uninorm/test-u8-nfkd.c: Likewise.
30480         * tests/uninorm/test-u8-normcmp.c: Likewise.
30481         * tests/uninorm/test-u8-normcoll.c: Likewise.
30482         * tests/uninorm/test-u16-nfc.c: Likewise.
30483         * tests/uninorm/test-u16-nfd.c: Likewise.
30484         * tests/uninorm/test-u16-nfkc.c: Likewise.
30485         * tests/uninorm/test-u16-nfkd.c: Likewise.
30486         * tests/uninorm/test-u16-normcmp.c: Likewise.
30487         * tests/uninorm/test-u16-normcoll.c: Likewise.
30488         * tests/uninorm/test-u32-nfc.c: Likewise.
30489         * tests/uninorm/test-u32-nfd.c: Likewise.
30490         * tests/uninorm/test-u32-nfkc.c: Likewise.
30491         * tests/uninorm/test-u32-nfkd.c: Likewise.
30492         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30493         * tests/uninorm/test-u32-normcmp.c: Likewise.
30494         * tests/uninorm/test-u32-normcoll.c: Likewise.
30495         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30496         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30497         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30498         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30499         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30500         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30501         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30502         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30503         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30504         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30505         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30506         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30507         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30508         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30509         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30510         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30511         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30512         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30513         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30514         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30515         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30516         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30517         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30518         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30519         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30520         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30521         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30522         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30523         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30524         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30525         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30526         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30527         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30528         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30529         * tests/uniwidth/test-u8-width.c: Likewise.
30530         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30531         * tests/uniwidth/test-u16-width.c: Likewise.
30532         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30533         * tests/uniwidth/test-u32-width.c: Likewise.
30534         * tests/uniwidth/test-uc_width.c: Likewise.
30535         * tests/uniwidth/test-uc_width2.c: Likewise.
30536         * modules/acl-tests (Files): Add tests/macros.h.
30537         * modules/areadlink-tests (Files): Likewise.
30538         * modules/areadlink-with-size-tests (Files): Likewise.
30539         * modules/areadlinkat-tests (Files): Likewise.
30540         * modules/areadlinkat-with-size-tests (Files): Likewise.
30541         * modules/argmatch-tests (Files): Likewise.
30542         * modules/argv-iter-tests (Files): Likewise.
30543         * modules/array-list-tests (Files): Likewise.
30544         * modules/array-mergesort-tests (Files): Likewise.
30545         * modules/array-oset-tests (Files): Likewise.
30546         * modules/avltree-list-tests (Files): Likewise.
30547         * modules/avltree-oset-tests (Files): Likewise.
30548         * modules/avltreehash-list-tests (Files): Likewise.
30549         * modules/base64-tests (Files): Likewise.
30550         * modules/binary-io-tests (Files): Likewise.
30551         * modules/bitrotate-tests (Files): Likewise.
30552         * modules/btowc-tests (Files): Likewise.
30553         * modules/byteswap-tests (Files): Likewise.
30554         * modules/c-ctype-tests (Files): Likewise.
30555         * modules/c-stack-tests (Files): Likewise.
30556         * modules/c-strcase-tests (Files): Likewise.
30557         * modules/c-strcasestr-tests (Files): Likewise.
30558         * modules/c-strstr-tests (Files): Likewise.
30559         * modules/canonicalize-lgpl-tests (Files): Likewise.
30560         * modules/canonicalize-tests (Files): Likewise.
30561         * modules/carray-list-tests (Files): Likewise.
30562         * modules/ceilf-tests (Files): Likewise.
30563         * modules/ceill-tests (Files): Likewise.
30564         * modules/chown-tests (Files): Likewise.
30565         * modules/cloexec-tests (Files): Likewise.
30566         * modules/copy-file-tests (Files): Likewise.
30567         * modules/count-one-bits-tests (Files): Likewise.
30568         * modules/dprintf-posix-tests (Files): Likewise.
30569         * modules/dup2-tests (Files): Likewise.
30570         * modules/dup3-tests (Files): Likewise.
30571         * modules/duplocale-tests (Files): Likewise.
30572         * modules/fbufmode-tests (Files): Likewise.
30573         * modules/fchdir-tests (Files): Likewise.
30574         * modules/fcntl-safer-tests (Files): Likewise.
30575         * modules/fcntl-tests (Files): Likewise.
30576         * modules/fdopendir-tests (Files): Likewise.
30577         * modules/fdutimensat-tests (Files): Likewise.
30578         * modules/fflush-tests (Files): Likewise.
30579         * modules/filevercmp-tests (Files): Likewise.
30580         * modules/flock-tests (Files): Likewise.
30581         * modules/floorf-tests (Files): Likewise.
30582         * modules/floorl-tests (Files): Likewise.
30583         * modules/fnmatch-tests (Files): Likewise.
30584         * modules/fopen-safer-tests (Files): Likewise.
30585         * modules/fopen-tests (Files): Likewise.
30586         * modules/fpending-tests (Files): Likewise.
30587         * modules/fprintf-posix-tests (Files): Likewise.
30588         * modules/fpurge-tests (Files): Likewise.
30589         * modules/freadable-tests (Files): Likewise.
30590         * modules/freadahead-tests (Files): Likewise.
30591         * modules/freading-tests (Files): Likewise.
30592         * modules/freadptr-tests (Files): Likewise.
30593         * modules/freadseek-tests (Files): Likewise.
30594         * modules/freopen-tests (Files): Likewise.
30595         * modules/frexp-nolibm-tests (Files): Likewise.
30596         * modules/frexp-tests (Files): Likewise.
30597         * modules/frexpl-nolibm-tests (Files): Likewise.
30598         * modules/frexpl-tests (Files): Likewise.
30599         * modules/fseek-tests (Files): Likewise.
30600         * modules/fseeko-tests (Files): Likewise.
30601         * modules/fstrcmp-tests (Files): Likewise.
30602         * modules/fsync-tests (Files): Likewise.
30603         * modules/ftell-tests (Files): Likewise.
30604         * modules/ftello-tests (Files): Likewise.
30605         * modules/func-tests (Files): Likewise.
30606         * modules/futimens-tests (Files): Likewise.
30607         * modules/fwritable-tests (Files): Likewise.
30608         * modules/fwriting-tests (Files): Likewise.
30609         * modules/getcwd-tests (Files): Likewise.
30610         * modules/getdate-tests (Files): Likewise.
30611         * modules/getdelim-tests (Files): Likewise.
30612         * modules/getdtablesize-tests (Files): Likewise.
30613         * modules/getgroups-tests (Files): Likewise.
30614         * modules/getline-tests (Files): Likewise.
30615         * modules/getndelim2-tests (Files): Likewise.
30616         * modules/glob-tests (Files): Likewise.
30617         * modules/hash-tests (Files): Likewise.
30618         * modules/i-ring-tests (Files): Likewise.
30619         * modules/iconv-tests (Files): Likewise.
30620         * modules/iconv_open-utf-tests (Files): Likewise.
30621         * modules/idpriv-drop-tests (Files): Likewise.
30622         * modules/idpriv-droptemp-tests (Files): Likewise.
30623         * modules/inet_ntop-tests (Files): Likewise.
30624         * modules/inet_pton-tests (Files): Likewise.
30625         * modules/isblank-tests (Files): Likewise.
30626         * modules/isfinite-tests (Files): Likewise.
30627         * modules/isinf-tests (Files): Likewise.
30628         * modules/isnan-tests (Files): Likewise.
30629         * modules/isnand-nolibm-tests (Files): Likewise.
30630         * modules/isnand-tests (Files): Likewise.
30631         * modules/isnanf-nolibm-tests (Files): Likewise.
30632         * modules/isnanf-tests (Files): Likewise.
30633         * modules/isnanl-nolibm-tests (Files): Likewise.
30634         * modules/isnanl-tests (Files): Likewise.
30635         * modules/lchown-tests (Files): Likewise.
30636         * modules/ldexpl-tests (Files): Likewise.
30637         * modules/link-tests (Files): Likewise.
30638         * modules/linkat-tests (Files): Likewise.
30639         * modules/linked-list-tests (Files): Likewise.
30640         * modules/linkedhash-list-tests (Files): Likewise.
30641         * modules/localename-tests (Files): Likewise.
30642         * modules/lseek-tests (Files): Likewise.
30643         * modules/lstat-tests (Files): Likewise.
30644         * modules/mbmemcasecmp-tests (Files): Likewise.
30645         * modules/mbmemcasecoll-tests (Files): Likewise.
30646         * modules/mbrtowc-tests (Files): Likewise.
30647         * modules/mbscasecmp-tests (Files): Likewise.
30648         * modules/mbscasestr-tests (Files): Likewise.
30649         * modules/mbschr-tests (Files): Likewise.
30650         * modules/mbscspn-tests (Files): Likewise.
30651         * modules/mbsinit-tests (Files): Likewise.
30652         * modules/mbsncasecmp-tests (Files): Likewise.
30653         * modules/mbsnrtowcs-tests (Files): Likewise.
30654         * modules/mbspbrk-tests (Files): Likewise.
30655         * modules/mbspcasecmp-tests (Files): Likewise.
30656         * modules/mbsrchr-tests (Files): Likewise.
30657         * modules/mbsrtowcs-tests (Files): Likewise.
30658         * modules/mbsspn-tests (Files): Likewise.
30659         * modules/mbsstr-tests (Files): Likewise.
30660         * modules/memchr-tests (Files): Likewise.
30661         * modules/memchr2-tests (Files): Likewise.
30662         * modules/memcmp-tests (Files): Likewise.
30663         * modules/memmem-tests (Files): Likewise.
30664         * modules/memrchr-tests (Files): Likewise.
30665         * modules/mkdir-tests (Files): Likewise.
30666         * modules/mkfifo-tests (Files): Likewise.
30667         * modules/mkfifoat-tests (Files): Likewise.
30668         * modules/mknod-tests (Files): Likewise.
30669         * modules/nanosleep-tests (Files): Likewise.
30670         * modules/nl_langinfo-tests (Files): Likewise.
30671         * modules/obstack-printf-tests (Files): Likewise.
30672         * modules/open-tests (Files): Likewise.
30673         * modules/openat-tests (Files): Likewise.
30674         * modules/pipe-filter-gi-tests (Files): Likewise.
30675         * modules/pipe-filter-ii-tests (Files): Likewise.
30676         * modules/pipe2-tests (Files): Likewise.
30677         * modules/popen-safer-tests (Files): Likewise.
30678         * modules/popen-tests (Files): Likewise.
30679         * modules/posixtm-tests (Files): Likewise.
30680         * modules/pread-tests (Files): Likewise.
30681         * modules/printf-frexp-tests (Files): Likewise.
30682         * modules/printf-frexpl-tests (Files): Likewise.
30683         * modules/printf-posix-tests (Files): Likewise.
30684         * modules/priv-set-tests (Files): Likewise.
30685         * modules/quotearg-tests (Files): Likewise.
30686         * modules/random_r-tests (Files): Likewise.
30687         * modules/rawmemchr-tests (Files): Likewise.
30688         * modules/rbtree-list-tests (Files): Likewise.
30689         * modules/rbtree-oset-tests (Files): Likewise.
30690         * modules/rbtreehash-list-tests (Files): Likewise.
30691         * modules/readlink-tests (Files): Likewise.
30692         * modules/remove-tests (Files): Likewise.
30693         * modules/rename-tests (Files): Likewise.
30694         * modules/renameat-tests (Files): Likewise.
30695         * modules/rmdir-tests (Files): Likewise.
30696         * modules/round-tests (Files): Likewise.
30697         * modules/roundf-tests (Files): Likewise.
30698         * modules/roundl-tests (Files): Likewise.
30699         * modules/safe-alloc-tests (Files): Likewise.
30700         * modules/setenv-tests (Files): Likewise.
30701         * modules/sigaction-tests (Files): Likewise.
30702         * modules/signbit-tests (Files): Likewise.
30703         * modules/sleep-tests (Files): Likewise.
30704         * modules/snprintf-posix-tests (Files): Likewise.
30705         * modules/snprintf-tests (Files): Likewise.
30706         * modules/sprintf-posix-tests (Files): Likewise.
30707         * modules/stat-tests (Files): Likewise.
30708         * modules/stat-time-tests (Files): Likewise.
30709         * modules/strcasestr-tests (Files): Likewise.
30710         * modules/strchrnul-tests (Files): Likewise.
30711         * modules/strerror-tests (Files): Likewise.
30712         * modules/striconv-tests (Files): Likewise.
30713         * modules/striconveh-tests (Files): Likewise.
30714         * modules/striconveha-tests (Files): Likewise.
30715         * modules/strsignal-tests (Files): Likewise.
30716         * modules/strstr-tests (Files): Likewise.
30717         * modules/strtod-tests (Files): Likewise.
30718         * modules/strverscmp-tests (Files): Likewise.
30719         * modules/symlink-tests (Files): Likewise.
30720         * modules/symlinkat-tests (Files): Likewise.
30721         * modules/trunc-tests (Files): Likewise.
30722         * modules/truncf-tests (Files): Likewise.
30723         * modules/truncl-tests (Files): Likewise.
30724         * modules/uname-tests (Files): Likewise.
30725         * modules/unicase/cased-tests (Files): Likewise.
30726         * modules/unicase/ignorable-tests (Files): Likewise.
30727         * modules/unicase/locale-language-tests (Files): Likewise.
30728         * modules/unicase/tolower-tests (Files): Likewise.
30729         * modules/unicase/totitle-tests (Files): Likewise.
30730         * modules/unicase/toupper-tests (Files): Likewise.
30731         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30732         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30733         * modules/unicase/u8-casefold-tests (Files): Likewise.
30734         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30735         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30736         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30737         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30738         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30739         * modules/unicase/u8-tolower-tests (Files): Likewise.
30740         * modules/unicase/u8-totitle-tests (Files): Likewise.
30741         * modules/unicase/u8-toupper-tests (Files): Likewise.
30742         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30743         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30744         * modules/unicase/u16-casefold-tests (Files): Likewise.
30745         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30746         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30747         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30748         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30749         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30750         * modules/unicase/u16-tolower-tests (Files): Likewise.
30751         * modules/unicase/u16-totitle-tests (Files): Likewise.
30752         * modules/unicase/u16-toupper-tests (Files): Likewise.
30753         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30754         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30755         * modules/unicase/u32-casefold-tests (Files): Likewise.
30756         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30757         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30758         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30759         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30760         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30761         * modules/unicase/u32-tolower-tests (Files): Likewise.
30762         * modules/unicase/u32-totitle-tests (Files): Likewise.
30763         * modules/unicase/u32-toupper-tests (Files): Likewise.
30764         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30765         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30766         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30767         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30768         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30769         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30770         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30771         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30772         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30773         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30774         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30775         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30776         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30777         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30778         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30779         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30780         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30781         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30782         * modules/unictype/block-list-tests (Files): Likewise.
30783         * modules/unictype/block-of-tests (Files): Likewise.
30784         * modules/unictype/block-test-tests (Files): Likewise.
30785         * modules/unictype/category-C-tests (Files): Likewise.
30786         * modules/unictype/category-Cc-tests (Files): Likewise.
30787         * modules/unictype/category-Cf-tests (Files): Likewise.
30788         * modules/unictype/category-Cn-tests (Files): Likewise.
30789         * modules/unictype/category-Co-tests (Files): Likewise.
30790         * modules/unictype/category-Cs-tests (Files): Likewise.
30791         * modules/unictype/category-L-tests (Files): Likewise.
30792         * modules/unictype/category-Ll-tests (Files): Likewise.
30793         * modules/unictype/category-Lm-tests (Files): Likewise.
30794         * modules/unictype/category-Lo-tests (Files): Likewise.
30795         * modules/unictype/category-Lt-tests (Files): Likewise.
30796         * modules/unictype/category-Lu-tests (Files): Likewise.
30797         * modules/unictype/category-M-tests (Files): Likewise.
30798         * modules/unictype/category-Mc-tests (Files): Likewise.
30799         * modules/unictype/category-Me-tests (Files): Likewise.
30800         * modules/unictype/category-Mn-tests (Files): Likewise.
30801         * modules/unictype/category-N-tests (Files): Likewise.
30802         * modules/unictype/category-Nd-tests (Files): Likewise.
30803         * modules/unictype/category-Nl-tests (Files): Likewise.
30804         * modules/unictype/category-No-tests (Files): Likewise.
30805         * modules/unictype/category-P-tests (Files): Likewise.
30806         * modules/unictype/category-Pc-tests (Files): Likewise.
30807         * modules/unictype/category-Pd-tests (Files): Likewise.
30808         * modules/unictype/category-Pe-tests (Files): Likewise.
30809         * modules/unictype/category-Pf-tests (Files): Likewise.
30810         * modules/unictype/category-Pi-tests (Files): Likewise.
30811         * modules/unictype/category-Po-tests (Files): Likewise.
30812         * modules/unictype/category-Ps-tests (Files): Likewise.
30813         * modules/unictype/category-S-tests (Files): Likewise.
30814         * modules/unictype/category-Sc-tests (Files): Likewise.
30815         * modules/unictype/category-Sk-tests (Files): Likewise.
30816         * modules/unictype/category-Sm-tests (Files): Likewise.
30817         * modules/unictype/category-So-tests (Files): Likewise.
30818         * modules/unictype/category-Z-tests (Files): Likewise.
30819         * modules/unictype/category-Zl-tests (Files): Likewise.
30820         * modules/unictype/category-Zp-tests (Files): Likewise.
30821         * modules/unictype/category-Zs-tests (Files): Likewise.
30822         * modules/unictype/category-and-not-tests (Files): Likewise.
30823         * modules/unictype/category-and-tests (Files): Likewise.
30824         * modules/unictype/category-byname-tests (Files): Likewise.
30825         * modules/unictype/category-name-tests (Files): Likewise.
30826         * modules/unictype/category-none-tests (Files): Likewise.
30827         * modules/unictype/category-of-tests (Files): Likewise.
30828         * modules/unictype/category-or-tests (Files): Likewise.
30829         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30830         * modules/unictype/combining-class-tests (Files): Likewise.
30831         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30832         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30833         * modules/unictype/ctype-blank-tests (Files): Likewise.
30834         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30835         * modules/unictype/ctype-digit-tests (Files): Likewise.
30836         * modules/unictype/ctype-graph-tests (Files): Likewise.
30837         * modules/unictype/ctype-lower-tests (Files): Likewise.
30838         * modules/unictype/ctype-print-tests (Files): Likewise.
30839         * modules/unictype/ctype-punct-tests (Files): Likewise.
30840         * modules/unictype/ctype-space-tests (Files): Likewise.
30841         * modules/unictype/ctype-upper-tests (Files): Likewise.
30842         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30843         * modules/unictype/decimal-digit-tests (Files): Likewise.
30844         * modules/unictype/digit-tests (Files): Likewise.
30845         * modules/unictype/mirror-tests (Files): Likewise.
30846         * modules/unictype/numeric-tests (Files): Likewise.
30847         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30848         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30849         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30850         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30851         Likewise.
30852         * modules/unictype/property-bidi-block-separator-tests (Files):
30853         Likewise.
30854         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30855         Likewise.
30856         * modules/unictype/property-bidi-common-separator-tests (Files):
30857         Likewise.
30858         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30859         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30860         Likewise.
30861         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30862         Likewise.
30863         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30864         Likewise.
30865         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30866         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30867         Likewise.
30868         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30869         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30870         Likewise.
30871         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30872         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30873         * modules/unictype/property-bidi-segment-separator-tests (Files):
30874         Likewise.
30875         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30876         * modules/unictype/property-byname-tests (Files): Likewise.
30877         * modules/unictype/property-combining-tests (Files): Likewise.
30878         * modules/unictype/property-composite-tests (Files): Likewise.
30879         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30880         * modules/unictype/property-dash-tests (Files): Likewise.
30881         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30882         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30883         Likewise.
30884         * modules/unictype/property-deprecated-tests (Files): Likewise.
30885         * modules/unictype/property-diacritic-tests (Files): Likewise.
30886         * modules/unictype/property-extender-tests (Files): Likewise.
30887         * modules/unictype/property-format-control-tests (Files): Likewise.
30888         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30889         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30890         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30891         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30892         * modules/unictype/property-hyphen-tests (Files): Likewise.
30893         * modules/unictype/property-id-continue-tests (Files): Likewise.
30894         * modules/unictype/property-id-start-tests (Files): Likewise.
30895         * modules/unictype/property-ideographic-tests (Files): Likewise.
30896         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30897         * modules/unictype/property-ids-trinary-operator-tests (Files):
30898         Likewise.
30899         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30900         * modules/unictype/property-iso-control-tests (Files): Likewise.
30901         * modules/unictype/property-join-control-tests (Files): Likewise.
30902         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30903         * modules/unictype/property-line-separator-tests (Files): Likewise.
30904         * modules/unictype/property-logical-order-exception-tests (Files):
30905         Likewise.
30906         * modules/unictype/property-lowercase-tests (Files): Likewise.
30907         * modules/unictype/property-math-tests (Files): Likewise.
30908         * modules/unictype/property-non-break-tests (Files): Likewise.
30909         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30910         * modules/unictype/property-numeric-tests (Files): Likewise.
30911         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30912         * modules/unictype/property-other-default-ignorable-code-point-tests
30913         (Files): Likewise.
30914         * modules/unictype/property-other-grapheme-extend-tests (Files):
30915         Likewise.
30916         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30917         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30918         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30919         * modules/unictype/property-other-math-tests (Files): Likewise.
30920         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30921         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30922         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30923         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30924         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30925         * modules/unictype/property-private-use-tests (Files): Likewise.
30926         * modules/unictype/property-punctuation-tests (Files): Likewise.
30927         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30928         * modules/unictype/property-radical-tests (Files): Likewise.
30929         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30930         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30931         * modules/unictype/property-space-tests (Files): Likewise.
30932         * modules/unictype/property-terminal-punctuation-tests (Files):
30933         Likewise.
30934         * modules/unictype/property-test-tests (Files): Likewise.
30935         * modules/unictype/property-titlecase-tests (Files): Likewise.
30936         * modules/unictype/property-unassigned-code-value-tests (Files):
30937         Likewise.
30938         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30939         * modules/unictype/property-uppercase-tests (Files): Likewise.
30940         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30941         * modules/unictype/property-white-space-tests (Files): Likewise.
30942         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30943         * modules/unictype/property-xid-start-tests (Files): Likewise.
30944         * modules/unictype/property-zero-width-tests (Files): Likewise.
30945         * modules/unictype/scripts-tests (Files): Likewise.
30946         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30947         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30948         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30949         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30950         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30951         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30952         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30953         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30954         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30955         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30956         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30957         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30958         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30959         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30960         * modules/uninorm/composition-tests (Files): Likewise.
30961         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30962         * modules/uninorm/decomposition-tests (Files): Likewise.
30963         * modules/uninorm/filter-tests (Files): Likewise.
30964         * modules/uninorm/nfc-tests (Files): Likewise.
30965         * modules/uninorm/nfd-tests (Files): Likewise.
30966         * modules/uninorm/nfkc-tests (Files): Likewise.
30967         * modules/uninorm/nfkd-tests (Files): Likewise.
30968         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30969         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30970         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30971         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30972         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30973         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30974         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30975         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30976         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30977         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30978         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30979         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30980         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30981         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30982         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30983         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30984         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30985         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30986         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30987         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30988         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30989         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30990         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30991         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30992         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30993         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30994         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30995         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30996         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30997         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30998         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30999         * modules/uniwidth/u8-width-tests (Files): Likewise.
31000         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31001         * modules/uniwidth/u16-width-tests (Files): Likewise.
31002         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31003         * modules/uniwidth/u32-width-tests (Files): Likewise.
31004         * modules/uniwidth/width-tests (Files): Likewise.
31005         * modules/unlink-tests (Files): Likewise.
31006         * modules/unsetenv-tests (Files): Likewise.
31007         * modules/usleep-tests (Files): Likewise.
31008         * modules/utimens-tests (Files): Likewise.
31009         * modules/utimensat-tests (Files): Likewise.
31010         * modules/vasnprintf-posix-tests (Files): Likewise.
31011         * modules/vasnprintf-tests (Files): Likewise.
31012         * modules/vasprintf-posix-tests (Files): Likewise.
31013         * modules/vasprintf-tests (Files): Likewise.
31014         * modules/vdprintf-posix-tests (Files): Likewise.
31015         * modules/vfprintf-posix-tests (Files): Likewise.
31016         * modules/vprintf-posix-tests (Files): Likewise.
31017         * modules/vsnprintf-posix-tests (Files): Likewise.
31018         * modules/vsnprintf-tests (Files): Likewise.
31019         * modules/vsprintf-posix-tests (Files): Likewise.
31020         * modules/wcrtomb-tests (Files): Likewise.
31021         * modules/wcsnrtombs-tests (Files): Likewise.
31022         * modules/wcsrtombs-tests (Files): Likewise.
31023         * modules/wctype-tests (Files): Likewise.
31024         * modules/wcwidth-tests (Files): Likewise.
31025         * modules/xmemdup0-tests (Files): Likewise.
31026         * modules/xprintf-posix-tests (Files): Likewise.
31027         * modules/xvasprintf-tests (Files): Likewise.
31028
31029 2009-12-24  Eric Blake  <ebb9@byu.net>
31030
31031         test-nanosleep: fix typo
31032         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31033         patch.
31034         Reported by Bruno Haible.
31035
31036 2009-12-24  Bruno Haible  <bruno@clisp.org>
31037
31038         Reduce namespace pollution on glibc systems.
31039         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31040         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31041         systems.
31042         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31043         <getopt.h> on glibc systems.
31044         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31045         systems.
31046         * lib/fcntl.c: Include <unistd.h> here instead.
31047
31048 2009-12-24  Bruno Haible  <bruno@clisp.org>
31049
31050         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31051
31052 2009-12-24  Eric Blake  <ebb9@byu.net>
31053
31054         tests: add signature checks
31055         * tests/signature.h (SIGNATURE_CHECK): New file.
31056         * modules/atexit-tests (Files): Use it.
31057         * modules/btowc-tests (Files): Likewise.
31058         * modules/canonicalize-lgpl-tests (Files): Likewise.
31059         * modules/ceilf-tests (Files): Likewise.
31060         * modules/ceill-tests (Files): Likewise.
31061         * modules/chown-tests (Files): Likewise.
31062         * modules/dprintf-posix-tests (Files): Likewise.
31063         * modules/dup2-tests (Files): Likewise.
31064         * modules/dup3-tests (Files): Likewise.
31065         * modules/duplocale-tests (Files): Likewise.
31066         * modules/fchdir-tests (Files): Likewise.
31067         * modules/fcntl-tests (Files): Likewise.
31068         * modules/fdopendir-tests (Files): Likewise.
31069         * modules/fflush-tests (Files): Likewise.
31070         * modules/flock-tests (Files): Likewise.
31071         * modules/floorf-tests (Files): Likewise.
31072         * modules/floorl-tests (Files): Likewise.
31073         * modules/fnmatch-tests (Files): Likewise.
31074         * modules/fopen-tests (Files): Likewise.
31075         * modules/fprintf-posix-tests (Files): Likewise.
31076         * modules/freopen-tests (Files): Likewise.
31077         * modules/frexp-nolibm-tests (Files): Likewise.
31078         * modules/frexp-tests (Files): Likewise.
31079         * modules/frexpl-nolibm-tests (Files): Likewise.
31080         * modules/frexpl-tests (Files): Likewise.
31081         * modules/fseek-tests (Files): Likewise.
31082         * modules/fseeko-tests (Files): Likewise.
31083         * modules/fsync-tests (Files): Likewise.
31084         * modules/ftell-tests (Files): Likewise.
31085         * modules/ftello-tests (Files): Likewise.
31086         * modules/futimens-tests (Files): Likewise.
31087         * modules/getaddrinfo-tests (Files): Likewise.
31088         * modules/getcwd-tests (Files): Likewise.
31089         * modules/getdelim-tests (Files): Likewise.
31090         * modules/getdtablesize-tests (Files): Likewise.
31091         * modules/getgroups-tests (Files): Likewise.
31092         * modules/gethostname-tests (Files): Likewise.
31093         * modules/getline-tests (Files): Likewise.
31094         * modules/getopt-posix-tests (Files): Likewise.
31095         * modules/gettimeofday-tests (Files): Likewise.
31096         * modules/glob-tests (Files): Likewise.
31097         * modules/iconv-tests (Files): Likewise.
31098         * modules/inet_ntop-tests (Files): Likewise.
31099         * modules/inet_pton-tests (Files): Likewise.
31100         * modules/isblank-tests (Files): Likewise.
31101         * modules/lchown-tests (Files): Likewise.
31102         * modules/ldexpl-tests (Files): Likewise.
31103         * modules/link-tests (Files): Likewise.
31104         * modules/linkat-tests (Files): Likewise.
31105         * modules/lseek-tests (Files): Likewise.
31106         * modules/lstat-tests (Files): Likewise.
31107         * modules/mbrtowc-tests (Files): Likewise.
31108         * modules/mbsinit-tests (Files): Likewise.
31109         * modules/mbsnrtowcs-tests (Files): Likewise.
31110         * modules/mbsrtowcs-tests (Files): Likewise.
31111         * modules/memchr-tests (Files): Likewise.
31112         * modules/memcmp-tests (Files): Likewise.
31113         * modules/memmem-tests (Files): Likewise.
31114         * modules/memrchr-tests (Files): Likewise.
31115         * modules/mkdir-tests (Files): Likewise.
31116         * modules/mkfifo-tests (Files): Likewise.
31117         * modules/mkfifoat-tests (Files): Likewise.
31118         * modules/mknod-tests (Files): Likewise.
31119         * modules/nanosleep-tests (Files): Likewise.
31120         * modules/nl_langinfo-tests (Files): Likewise.
31121         * modules/obstack-printf-tests (Files): Likewise.
31122         * modules/open-tests (Files): Likewise.
31123         * modules/openat-tests (Files): Likewise.
31124         * modules/perror-tests (Files): Likewise.
31125         * modules/pipe2-tests (Files): Likewise.
31126         * modules/poll-tests (Files): Likewise.
31127         * modules/popen-tests (Files): Likewise.
31128         * modules/posix_spawn-tests (Files): Likewise.
31129         * modules/posix_spawnp-tests (Files): Likewise.
31130         * modules/pread-tests (Files): Likewise.
31131         * modules/printf-posix-tests (Files): Likewise.
31132         * modules/pty-tests (Files): Likewise.
31133         * modules/random_r-tests (Files): Likewise.
31134         * modules/rawmemchr-tests (Files): Likewise.
31135         * modules/readlink-tests (Files): Likewise.
31136         * modules/remove-tests (Files): Likewise.
31137         * modules/rename-tests (Files): Likewise.
31138         * modules/renameat-tests (Files): Likewise.
31139         * modules/rmdir-tests (Files): Likewise.
31140         * modules/round-tests (Files): Likewise.
31141         * modules/roundf-tests (Files): Likewise.
31142         * modules/roundl-tests (Files): Likewise.
31143         * modules/select-tests (Files): Likewise.
31144         * modules/setenv-tests (Files): Likewise.
31145         * modules/sigaction-tests (Files): Likewise.
31146         * modules/sleep-tests (Files): Likewise.
31147         * modules/snprintf-posix-tests (Files): Likewise.
31148         * modules/snprintf-tests (Files): Likewise.
31149         * modules/sprintf-posix-tests (Files): Likewise.
31150         * modules/stat-tests (Files): Likewise.
31151         * modules/strcasestr-tests (Files): Likewise.
31152         * modules/strchrnul-tests (Files): Likewise.
31153         * modules/strerror-tests (Files): Likewise.
31154         * modules/strsignal-tests (Files): Likewise.
31155         * modules/strstr-tests (Files): Likewise.
31156         * modules/strtod-tests (Files): Likewise.
31157         * modules/strverscmp-tests (Files): Likewise.
31158         * modules/symlink-tests (Files): Likewise.
31159         * modules/symlinkat-tests (Files): Likewise.
31160         * modules/times-tests (Files): Likewise.
31161         * modules/trunc-tests (Files): Likewise.
31162         * modules/truncf-tests (Files): Likewise.
31163         * modules/truncl-tests (Files): Likewise.
31164         * modules/tsearch-tests (Files): Likewise.
31165         * modules/uname-tests (Files): Likewise.
31166         * modules/unlink-tests (Files): Likewise.
31167         * modules/unsetenv-tests (Files): Likewise.
31168         * modules/usleep-tests (Files): Likewise.
31169         * modules/utimensat-tests (Files): Likewise.
31170         * modules/vasprintf-tests (Files): Likewise.
31171         * modules/vdprintf-posix-tests (Files): Likewise.
31172         * modules/vfprintf-posix-tests (Files): Likewise.
31173         * modules/vprintf-posix-tests (Files): Likewise.
31174         * modules/vsnprintf-posix-tests (Files): Likewise.
31175         * modules/vsnprintf-tests (Files): Likewise.
31176         * modules/vsprintf-posix-tests (Files): Likewise.
31177         * modules/wcrtomb-tests (Files): Likewise.
31178         * modules/wcsnrtombs-tests (Files): Likewise.
31179         * modules/wcsrtombs-tests (Files): Likewise.
31180         * modules/wcwidth-tests (Files): Likewise.
31181         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31182         * tests/test-isinf.c (isinf): Likewise.
31183         * tests/test-isnan.c (isnan): Likewise.
31184         * tests/test-signbit.c (signbit): Likewise.
31185         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31186         declaration, either as macro or with correct signature.
31187         (select): Ensure function under test is declared with correct
31188         signature in correct header.
31189         * tests/test-atexit.c (atexit): Likewise.
31190         * tests/test-btowc.c (btowc): Likewise.
31191         * tests/test-canonicalize-lgpl.c (realpath)
31192         (canonicalize_file_name): Likewise.
31193         * tests/test-ceilf1.c (ceilf): Likewise.
31194         * tests/test-ceill.c (ceill): Likewise.
31195         * tests/test-chown.c (chown): Likewise.
31196         * tests/test-dprintf-posix.c (dprintf): Likewise.
31197         * tests/test-dup2.c (dup2): Likewise.
31198         * tests/test-dup3.c (dup3): Likewise.
31199         * tests/test-duplocale.c (duplocale): Likewise.
31200         * tests/test-fchdir.c (fchdir): Likewise.
31201         * tests/test-fchownat.c (fchownat): Likewise.
31202         * tests/test-fcntl.c (fcntl): Likewise.
31203         * tests/test-fdopendir.c (fdopendir): Likewise.
31204         * tests/test-fflush.c (fflush): Likewise.
31205         * tests/test-flock.c (flock): Likewise.
31206         * tests/test-floorf1.c (floorf): Likewise.
31207         * tests/test-floorl.c (floorl): Likewise.
31208         * tests/test-fnmatch.c (fnmatch): Likewise.
31209         * tests/test-fopen.c (fopen): Likewise.
31210         * tests/test-fprintf-posix.c (fprintf): Likewise.
31211         * tests/test-freopen.c (freopen): Likewise.
31212         * tests/test-frexp.c (frexp): Likewise.
31213         * tests/test-frexpl.c (frexpl): Likewise.
31214         * tests/test-fseek.c (fseek): Likewise.
31215         * tests/test-fseeko.c (fseeko): Likewise.
31216         * tests/test-fstatat.c (fstatat): Likewise.
31217         * tests/test-fsync.c (fsync): Likewise.
31218         * tests/test-ftell.c (ftell): Likewise.
31219         * tests/test-ftello.c (ftello): Likewise.
31220         * tests/test-futimens.c (futimens): Likewise.
31221         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31222         (gai_strerror): Likewise.
31223         * tests/test-getcwd.c (getcwd): Likewise.
31224         * tests/test-getdelim.c (getdelim): Likewise.
31225         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31226         * tests/test-getgroups.c (getgroups): Likewise.
31227         * tests/test-gethostname.c (gethostname): Likewise.
31228         * tests/test-getline.c (getline): Likewise.
31229         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31230         Likewise.
31231         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31232         * tests/test-glob.c (glob, globfree): Likewise.
31233         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31234         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31235         * tests/test-inet_pton.c (inet_pton): Likewise.
31236         * tests/test-isblank.c (isblank): Likewise.
31237         * tests/test-lchown.c (lchown): Likewise.
31238         * tests/test-ldexpl.c (ldexpl): Likewise.
31239         * tests/test-link.c (link): Likewise.
31240         * tests/test-linkat.c (linkat): Likewise.
31241         * tests/test-lseek.c (lseek): Likewise.
31242         * tests/test-lstat.c (lstat): Likewise.
31243         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31244         * tests/test-mbsinit.c (mbsinit): Likewise.
31245         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31246         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31247         * tests/test-memchr.c (memchr): Likewise.
31248         * tests/test-memcmp.c (memcmp): Likewise.
31249         * tests/test-memmem.c (memmem): Likewise.
31250         * tests/test-memrchr.c (memrchr): Likewise.
31251         * tests/test-mkdir.c (mkdir): Likewise.
31252         * tests/test-mkdirat.c (mkdirat): Likewise.
31253         * tests/test-mkfifo.c (mkfifo): Likewise.
31254         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31255         * tests/test-mknod.c (mknod): Likewise.
31256         * tests/test-nanosleep.c (nanosleep): Likewise.
31257         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31258         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31259         Likewise.
31260         * tests/test-open.c (open): Likewise.
31261         * tests/test-openat.c (openat): Likewise.
31262         * tests/test-perror.c (perror): Likewise.
31263         * tests/test-pipe2.c (pipe2): Likewise.
31264         * tests/test-poll.c (poll): Likewise.
31265         * tests/test-popen.c (popen, pclose): Likewise.
31266         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31267         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31268         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31269         (posix_spawn_file_actions_destroy)
31270         (posix_spawn_file_actions_addclose)
31271         (posix_spawn_file_actions_addopen)
31272         (posix_spawn_file_actions_adddup2): Likewise.
31273         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31274         * tests/test-pread.c (pread): Likewise.
31275         * tests/test-printf-posix.c (printf): Likewise.
31276         * tests/test-pty.c (openpty, forkpty): Likewise.
31277         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31278         (random_r): Likewise.
31279         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31280         * tests/test-readlink.c (readlink): Likewise.
31281         * tests/test-remove.c (remove): Likewise.
31282         * tests/test-rename.c (rename): Likewise.
31283         * tests/test-renameat.c (renameat): Likewise.
31284         * tests/test-rmdir.c (rmdir): Likewise.
31285         * tests/test-round1.c (round): Likewise.
31286         * tests/test-roundf1.c (roundf): Likewise.
31287         * tests/test-roundl.c (roundl): Likewise.
31288         * tests/test-setenv.c (setenv): Likewise.
31289         * tests/test-sigaction.c (sigaction): Likewise.
31290         * tests/test-sleep.c (sleep): Likewise.
31291         * tests/test-snprintf.c (snprintf): Likewise.
31292         * tests/test-sprintf-posix.c (sprintf): Likewise.
31293         * tests/test-stat.c (stat): Likewise.
31294         * tests/test-stpncpy.c (stpncpy): Likewise.
31295         * tests/test-strcasestr.c (strcasestr): Likewise.
31296         * tests/test-strchrnul.c (strchrnul): Likewise.
31297         * tests/test-strerror.c (strerror): Likewise.
31298         * tests/test-strsignal.c (strsignal): Likewise.
31299         * tests/test-strstr.c (strstr): Likewise.
31300         * tests/test-strtod.c (strtod): Likewise.
31301         * tests/test-strverscmp.c (strverscmp): Likewise.
31302         * tests/test-symlink.c (symlink): Likewise.
31303         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31304         * tests/test-times.c (times): Likewise.
31305         * tests/test-trunc1.c (trunc): Likewise.
31306         * tests/test-truncf1.c (truncf): Likewise.
31307         * tests/test-truncl.c (truncl): Likewise.
31308         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31309         Likewise.
31310         * tests/test-uname.c (uname): Likewise.
31311         * tests/test-unlink.c (unlink): Likewise.
31312         * tests/test-unlinkat.c (unlinkat): Likewise.
31313         * tests/test-unsetenv.c (unsetenv): Likewise.
31314         * tests/test-usleep.c (usleep): Likewise.
31315         * tests/test-utimensat.c (utimensat): Likewise.
31316         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31317         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31318         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31319         * tests/test-vprintf-posix.c (vprintf): Likewise.
31320         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31321         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31322         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31323         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31324         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31325         * tests/test-wcwidth.c (wcwidth): Likewise.
31326
31327         build: pull in conditional headers during GNULIB_POSIXCHECK
31328         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31329         definitions from any conditionally-included headers.
31330         * lib/stdlib.in.h (includes): Likewise.
31331         * lib/unistd.in.h (includes): Likewise.
31332
31333 2009-12-24  Bruno Haible  <bruno@clisp.org>
31334
31335         * tests/test-argv-iter.c: Include header file being tested immediately
31336         after config.h.
31337         * tests/test-base64.c: Likewise.
31338         * tests/test-flock.c: Likewise.
31339         * tests/test-fsync.c: Likewise.
31340         * tests/test-getdate.c: Likewise.
31341         * tests/test-getndelim2.c: Likewise.
31342         * tests/test-isfinite.c: Likewise.
31343         * tests/test-isinf.c: Likewise.
31344         * tests/test-strerror.c: Likewise.
31345         * tests/test-strsignal.c: Likewise.
31346
31347 2009-12-23  Eric Blake  <ebb9@byu.net>
31348
31349         unistd: work around cygwin bug
31350         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31351         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31352         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31353
31354 2009-12-23  Bruno Haible  <bruno@clisp.org>
31355
31356         localename: More tests.
31357         * tests/test-localename.c (SIZEOF): New macro.
31358         (categories): New variable.
31359         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31360         test_locale_name_default): Add test w.r.t. thread locale.
31361         (test_locale_name_thread): New function.
31362         (main): Invoke it.
31363
31364         localename: Make aware of thread locale.
31365         * lib/localename.h (gl_locale_name_thread): New declaration.
31366         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31367         behaviour with respect to thread locale.
31368         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31369         <langinfo.h>, glthread/lock.h.
31370         (SIZE_BITS): New macro.
31371         (string_hash): New function.
31372         (struct hash_node): New type.
31373         (HASH_TABLE_SIZE): New macro.
31374         (struniq_hash_table, struniq_lock): New variables.
31375         (struniq): New function.
31376         (gl_locale_name_thread): New function.
31377         (gl_locale_name): Invoke it.
31378         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31379         * modules/localename (Depends-on): Add lock.
31380         Reported by Mike Gran <spk121@yahoo.com>.
31381
31382 2009-12-23  Eric Blake  <ebb9@byu.net>
31383
31384         va-args: new module
31385         * modules/va-args: New file.
31386         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31387         * MODULES.html.sh (Core language properties): Mention it.
31388
31389         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31390         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31391         named alias for __attribute__((__unused__)).
31392         * lib/chown.c: Update client.
31393         * lib/fchmodat.c: Likewise.
31394         * lib/fts.c: Likewise.
31395         * lib/getdate.y: Likewise.
31396         * lib/getgroups.c: Likewise.
31397         * lib/getopt.c: Likewise.
31398         * lib/getugroups.c: Likewise.
31399         * lib/mkdir.c: Likewise.
31400         * lib/mkfifo.c: Likewise.
31401         * lib/mkfifoat.c: Likewise.
31402         * lib/mknod.c: Likewise.
31403         * lib/mknodat.c: Likewise.
31404         * lib/readlink.c: Likewise.
31405         * lib/se-context.in.h: Likewise.
31406         * lib/se-selinux.in.h: Likewise.
31407         * lib/sockets.c: Likewise.
31408         * lib/symlink.c: Likewise.
31409         * lib/symlinkat.c: Likewise.
31410         * lib/unicodeio.c: Likewise.
31411         * lib/unistr.h: Likewise.
31412         * tests/test-areadlink.c: Likewise.
31413         * tests/test-areadlinkat.c: Likewise.
31414         * tests/test-filenamecat.c: Likewise.
31415         * tests/test-fseeko.c: Likewise.
31416         * tests/test-ftello.c: Likewise.
31417         * tests/test-getdate.c: Likewise.
31418         * tests/test-getgroups.c: Likewise.
31419         * tests/test-gethostname.c: Likewise.
31420         * tests/test-quotearg.c: Likewise.
31421         * tests/test-version-etc.c: Likewise.
31422         * tests/test-xalloc-die.c: Likewise.
31423         * tests/test-xfprintf-posix.c: Likewise.
31424         * tests/test-xprintf-posix.c: Likewise.
31425         * tests/test-xvasprintf.c: Likewise.
31426
31427         tests: avoid compiler warnings
31428         * tests/test-fcntl.c (main): Delete unused parameters.
31429         * tests/test-freopen-safer.c (main): Likewise.
31430         * tests/test-xalloc-die.c (main): Mark unused parameters.
31431         * tests/test-fseeko.c (main): Likewise.
31432         * tests/test-ftello.c (main): Likewise.
31433         * tests/test-nanosleep.c (main): Avoid declaration warning.
31434         * tests/test-sleep.c (main): Likewise.
31435         * tests/test-unsetenv.c (main): Silence warning about string
31436         literal.
31437         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31438
31439 2009-12-23  Bruno Haible  <bruno@clisp.org>
31440
31441         * tests/test-localename.c (test_locale_name): New function, extracted
31442         from main. Also test mixed situations.
31443         (test_locale_name_posix, test_locale_name_environ,
31444         test_locale_name_default): New functions.
31445         (main): Invoke them all.
31446         * modules/localename-tests (configure.ac): Test for newlocale.
31447
31448 2009-12-23  Bruno Haible  <bruno@clisp.org>
31449
31450         unistd: Ensure getcwd gets declared before being overridden.
31451         * lib/unistd.in.h: Conditionally include <io.h>.
31452
31453 2009-12-22  Bruno Haible  <bruno@clisp.org>
31454
31455         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31456         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31457         (gl_WCHAR_H): Invoke it.
31458         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31459         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31460         Reported by Karl Berry <karl@freefriends.org>.
31461
31462 2009-12-22  Eric Blake  <ebb9@byu.net>
31463
31464         math, unistd: avoid redundant includes
31465         * lib/math.in.h (isnan): No need to re-include <math.h>.
31466         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31467
31468         getsubopt: work around cygwin bug
31469         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31470         avoid conflicting with system getsubopt.
31471         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31472         bug.
31473
31474         getopt: synchronize from glibc
31475         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31476         parameter order.  Adjust all callers.
31477         (_getopt_internal_r, main): Adjust quoting in error messages.
31478         Drop considerations for outdated POSIX 1003.2 error message.
31479         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31480         callers.
31481         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31482
31483         test-getopt: test stderr behavior
31484         * modules/getopt-posix-tests (Depends-on): Add dup2.
31485         * tests/test-getopt.c (ASSERT): Avoid stderr.
31486         (main): Move stderr to a temporary file.
31487         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31488         Instead, add parameter to inform caller if output occurred.
31489         (test_getopt): Adjust all existing tests to expect silence, and
31490         add new tests of leading ":".
31491         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31492         glibc shortcomings with leading "-:" or "+:" in optstring.
31493         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31494         Likewise.
31495         * doc/posix-functions/getopt.texi (getopt): Likewise.
31496
31497         test-getopt: enhance test
31498         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31499         supports optind=0.
31500         * tests/test-getopt.c (OPTIND_MIN): Move...
31501         * tests/test-getopt.h (OPTIND_MIN): ...here.
31502         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31503         Require that optind=0 works, since modern BSD supports it in
31504         addition to optreset, and since coreutils expects it.
31505         (test_getopt_long_only): New test.
31506         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31507         glibc shortcomings with 'W;', and enforcement of optind=0.
31508         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31509         Likewise.
31510
31511 2009-12-21  Bruno Haible  <bruno@clisp.org>
31512
31513         localename: Improvements for MacOS X and Cygwin.
31514         * lib/localename.h (gl_locale_name_environ): New declaration.
31515         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31516         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31517         (gl_locale_name_posix): Invoke it.
31518         (gl_locale_name_default): Add comments. Use Windows native API also on
31519         Cygwin.
31520
31521 2009-12-21  Bruno Haible  <bruno@clisp.org>
31522
31523         Update list of Win32 locale ids.
31524         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31525         (LANG_SAMI): Renamed from LANG_SAAMI.
31526         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31527         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31528         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31529         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31530         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31531         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31532         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31533         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31534         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31535         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31536         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31537         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31538         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31539         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31540         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31541         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31542         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31543         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31544         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31545         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31546         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31547         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31548         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31549         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31550         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31551         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31552         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31553         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31554         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31555         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31556         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31557         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31558         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31559         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31560         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31561         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31562         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31563         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31564         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31565         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31566         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31567         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31568         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31569         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31570         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31571         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31572         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31573         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31574         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31575         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31576         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31577         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31578         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31579         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31580         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31581         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31582         Add more languages and countries for Sami, Sorbian. Add more countries
31583         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31584         for Pashto. Change country for Syriac, Tswana.
31585
31586 2009-12-21  Eric Blake  <ebb9@byu.net>
31587
31588         test-utimens: avoid spurious failure
31589         * tests/test-chown.h (nap): Factor...
31590         * tests/nap.h: ...into new file.
31591         * tests/test-lchown.h (nap): Avoid duplication.
31592         * tests/test-utimens-common.h (nap): Use shared implementation,
31593         necessary on file systems with 1-second resolution.
31594         * modules/chown-tests (Files): Include new file.
31595         * modules/fdutimensat-tests (Files): Likewise.
31596         * modules/futimens-tests (Files): Likewise.
31597         * modules/lchown-tests (Files): Likewise.
31598         * modules/openat-tests (Files): Likewise.
31599         * modules/utimens-tests (Files): Likewise.
31600         * modules/utimensat-tests (Files): Likewise.
31601
31602 2009-12-19  Eric Blake  <ebb9@byu.net>
31603
31604         futimens, utimensat: work around Linux bug
31605         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31606         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31607         * lib/utimensat.c (rpl_utimensat): Work around it.
31608         * lib/futimens.c (rpl_futimens): Adjust comment.
31609
31610         utimens: work around Linux ctime bug
31611         * lib/utimens.c (detect_ctime_bug): New helper function.
31612         (update_timespec): Differentiate between workaround needed for
31613         this bug vs. what is needed for systems that lack utimensat.
31614         (fdutimens, lutimens): Work around bug.
31615
31616         utimens: check for ctime update
31617         * tests/test-utimens-common.h (check_ctime): Define.
31618         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31619         * tests/test-futimens.h (test_futimens): Likewise.
31620         * tests/test-lutimens.h (test_lutimens): Likewise.
31621         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31622         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31623
31624 2009-12-19  Bruno Haible  <bruno@clisp.org>
31625
31626         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31627         * tests/test-dprintf-posix2.sh: New file.
31628         * tests/test-dprintf-posix2.c: New file.
31629         * modules/dprintf-posix-tests (Files): Add them.
31630         (configure.ac): Check for getrlimit and setrlimit.
31631         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31632
31633 2009-12-19  Bruno Haible  <bruno@clisp.org>
31634
31635         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31636         * tests/test-fprintf-posix3.sh: New file.
31637         * tests/test-fprintf-posix3.c: New file.
31638         * modules/fprintf-posix-tests (Files): Add them.
31639         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31640
31641 2009-12-19  Eric Blake  <ebb9@byu.net>
31642
31643         dirfd: fix prototype
31644         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31645         * lib/dirfd.c (dirfd): Likewise.
31646
31647         canonicalize: reduce memory usage
31648         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31649         allocation to size.
31650         Reported by Solar Designer <solar@openwall.com>.
31651
31652 2009-12-19  Bruno Haible  <bruno@clisp.org>
31653
31654         New module attribute 'Applicability'.
31655         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31656         * gnulib-tool: New option --extract-applicability.
31657         (func_usage): Document it.
31658         (sed_extract_prog): Recognize it.
31659         (func_get_applicability): New function.
31660         (func_import): Generalize handling of 'link-warning' module.
31661         * modules/link-warning (Applicability): New section.
31662         * modules/arg-nonnull (Applicability): New section.
31663         Repoted by Simon Josefsson <simon@josefsson.org>.
31664
31665 2009-12-19  Bruno Haible  <bruno@clisp.org>
31666
31667         fflush: tweak
31668         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31669         * lib/fseeko.c (rpl_fseeko): Likewise.
31670
31671 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31672
31673         * lib/gl_list.h: Fix typo in comment.
31674
31675 2009-12-16  Eric Blake  <ebb9@byu.net>
31676
31677         fcntl: use to simplify other modules
31678         * modules/cloexec (Depends-on): Add fcntl.
31679         * modules/fchdir (Depends-on): Likewise.
31680         * modules/fd-safer-flag (Depends-on): Likewise.
31681         * modules/unistd-safer (Depends-on): Likewise.
31682         * modules/dup3 (configure.ac): Set module indicator.
31683         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31684         missing.
31685         * lib/fchdir.c (_gl_register_dup): Fix comment.
31686         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31687         * lib/dup-safer.c (dup_safer): Likewise.
31688         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31689         * lib/dup3.c (dup3): Likewise.
31690         * tests/test-fchdir.c (main): Enhance test.
31691         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31692
31693         fcntl: port portions of fcntl to mingw
31694         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31695         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31696         replacement for mingw.
31697         * modules/fcntl (Description): Update.
31698         (Depends-on): Add dup2.
31699         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31700         * modules/fcntl-h (Makefile.am): Substitute it.
31701         * lib/fcntl.in.h (fcntl): Update declaration.
31702         (F_DUPFD, F_GETFD): New macros, when needed.
31703         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31704         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31705         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31706         we now guarantee.
31707
31708         fcntl: work around cygwin bug in F_DUPFD
31709         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31710         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31711         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31712         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31713         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31714
31715         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31716         * modules/fcntl (Files): List new files.
31717         (configure.ac): Run a test.
31718         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31719         * lib/fcntl.c (rpl_fcntl): Likewise.
31720         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31721         (gl_FCNTL_H): Always replace fcntl.h.
31722         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31723         * lib/fcntl.in.h (fcntl): Declare replacement.
31724         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31725         needed, plus a witness.
31726         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31727         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31728         * tests/test-fcntl.c: New file.
31729         * modules/fcntl-tests: Likewise.
31730
31731         binary-io: avoid potential compilation warning
31732         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31733         directives.
31734
31735         fflush: avoid compilation error on NetBSD
31736         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31737         between off_t and fpos_t, since the latter is sometimes a struct.
31738         * lib/fseeko.c (rpl_fseeko): Likewise.
31739         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31740
31741 2009-12-15  Eric Blake  <ebb9@byu.net>
31742
31743         fcntl-h, stdio, sys_ioctl: fix declarations
31744         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31745         function must not take arguments.
31746         * lib/sys_ioctl.in.h (ioctl): Likewise.
31747         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31748         (open): Add a link warning.
31749
31750 2009-12-15  Jim Meyering  <meyering@redhat.com>
31751
31752         areadlink, areadlink-with-size: relax license to LGPLv2+
31753         * modules/areadlink (License): Relax to LGPLv2+.
31754         * modules/areadlink-with-size (License): Likewise.
31755
31756 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31757             Bruno Haible  <bruno@clisp.org>
31758
31759         *printf: Fix memory leak.
31760         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31761         * lib/vfprintf.c (vfprintf): Likewise.
31762         * lib/dprintf.c (dprintf): Likewise.
31763         * lib/vdprintf.c (vdprintf): Likewise.
31764
31765 2009-12-14  Eric Blake  <ebb9@byu.net>
31766
31767         accept4: adjust module dependencies
31768         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31769
31770         utimens: one more try at avoiding compiler warning
31771         * lib/utimens.c (lutimens): Lower scope of result.
31772
31773 2009-12-13  Bruno Haible  <bruno@clisp.org>
31774
31775         Move the malloc checking from module 'list' to new module 'xlist'.
31776         * modules/xlist: New file.
31777         * lib/gl_xlist.h: New file.
31778         * lib/gl_xlist.c: New file.
31779         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31780         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31781         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31782         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31783         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31784         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31785         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31786         gl_sortedlist_nx_add): New declarations.
31787         (struct gl_list_implementation): Rename and change methods accordingly.
31788         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31789         (gl_list_nx_create): Renamed from gl_list_create.
31790         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31791         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31792         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31793         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31794         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31795         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31796         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31797         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31798         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31799         gl_list_create_empty.
31800         (gl_list_nx_create): Renamed from gl_list_create.
31801         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31802         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31803         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31804         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31805         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31806         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31807         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31808         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31809         * lib/gl_array_list.c: Don't include xalloc.h.
31810         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31811         NULL upon out-of-memory.
31812         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31813         out-of-memory.
31814         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31815         Change return type to 'int'.
31816         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31817         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31818         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31819         upon out-of-memory.
31820         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31821         upon out-of-memory.
31822         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31823         upon out-of-memory.
31824         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31825         upon out-of-memory.
31826         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31827         out-of-memory.
31828         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31829         Update.
31830         (gl_array_list_implementation): Update.
31831         * lib/gl_carray_list.c: Don't include xalloc.h.
31832         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31833         Return NULL upon out-of-memory.
31834         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31835         out-of-memory.
31836         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31837         Change return type to 'int'.
31838         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31839         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31840         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31841         upon out-of-memory.
31842         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31843         upon out-of-memory.
31844         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31845         out-of-memory.
31846         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31847         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31848         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31849         Update.
31850         (gl_carray_list_implementation): Update.
31851         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31852         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31853         gl_linked_create_empty. Return NULL upon out-of-memory.
31854         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31855         out-of-memory.
31856         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31857         Change return type to 'int'. Return -1 upon out-of-memory.
31858         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31859         out-of-memory.
31860         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31861         upon out-of-memory.
31862         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31863         upon out-of-memory.
31864         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31865         NULL upon out-of-memory.
31866         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31867         upon out-of-memory.
31868         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31869         out-of-memory.
31870         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31871         Update.
31872         * lib/gl_linked_list.c: Don't include xalloc.h.
31873         (gl_linked_list_implementation): Update.
31874         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31875         (add_to_bucket): Change return type to 'int'.
31876         (gl_linkedhash_list_implementation): Update.
31877         * lib/gl_anytree_list1.h (free_subtree): New function.
31878         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31879         gl_tree_create_empty. Return NULL upon out-of-memory.
31880         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31881         Change return type to 'int'. Return -1 upon out-of-memory.
31882         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31883         out-of-memory.
31884         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31885         (gl_tree_remove_node): New function, moved here from
31886         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31887         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31888         Update.
31889         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31890         malloc, not xmalloc. Return NULL upon out-of-memory.
31891         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31892         out-of-memory.
31893         (gl_tree_remove_node_from_tree): New function, extracted from
31894         gl_tree_remove_node.
31895         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31896         upon out-of-memory.
31897         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31898         out-of-memory.
31899         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31900         upon out-of-memory.
31901         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31902         upon out-of-memory.
31903         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31904         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31905         not xmalloc. Return NULL upon out-of-memory.
31906         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31907         out-of-memory.
31908         (gl_tree_remove_node_from_tree): New function, extracted from
31909         gl_tree_remove_node.
31910         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31911         upon out-of-memory.
31912         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31913         out-of-memory.
31914         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31915         upon out-of-memory.
31916         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31917         upon out-of-memory.
31918         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31919         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31920         gl_anytree_list1.h before gl_anyavltree_list2.h.
31921         (gl_avltree_list_implementation): Update.
31922         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31923         gl_anytree_list1.h before gl_anyavltree_list2.h.
31924         (gl_rbtree_list_implementation): Update.
31925         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31926         Change return type to 'int'. Return -1 upon out-of-memory. Use
31927         __builtin_expect.
31928         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31929         (gl_avltreehash_list_implementation): Update.
31930         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31931         (gl_rbtreehash_list_implementation): Update.
31932         * modules/array-list (Depends-on): Remove xalloc.
31933         * modules/carray-list (Depends-on): Likewise.
31934         * modules/linked-list (Depends-on): Likewise.
31935         * modules/linkedhash-list (Depends-on): Likewise.
31936         * modules/avltree-list (Depends-on): Likewise.
31937         * modules/rbtree-list (Depends-on): Likewise.
31938         * modules/avltreehash-list (Depends-on): Likewise.
31939         * modules/rbtreehash-list (Depends-on): Likewise.
31940
31941         * modules/xsublist: New file.
31942         * lib/gl_xsublist.h: New file.
31943         * lib/gl_xsublist.c: New file.
31944         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31945         (gl_sublist_nx_create): New declaration.
31946         * lib/gl_sublist.c: Don't include xalloc.h.
31947         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31948         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31949         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31950         Change return type to 'int'. Return -1 upon out-of-memory.
31951         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31952         upon out-of-memory.
31953         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31954         NULL upon out-of-memory.
31955         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31956         upon out-of-memory.
31957         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31958         NULL upon out-of-memory.
31959         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31960         NULL upon out-of-memory.
31961         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31962         upon out-of-memory.
31963         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31964         (gl_sublist_list_implementation): Update.
31965         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31966         upon out-of-memory.
31967         * modules/sublist (Depends-on): Remove xalloc.
31968
31969         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31970         * tests/test-carray_list.c: Likewise.
31971         * tests/test-linked_list.c: Likewise.
31972         * tests/test-linkedhash_list.c: Likewise.
31973         * tests/test-avltree_list.c: Likewise.
31974         * tests/test-rbtree_list.c: Likewise.
31975         * tests/test-avltreehash_list.c: Likewise.
31976         * tests/test-rbtreehash_list.c: Likewise.
31977         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31978         * modules/carray-list-tests (Makefile.am): Likewise.
31979         * modules/linked-list-tests (Makefile.am): Likewise.
31980         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31981         * modules/avltree-list-tests (Makefile.am): Likewise.
31982         * modules/rbtree-list-tests (Makefile.am): Likewise.
31983         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31984         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31985
31986         * NEWS: Mention the changes.
31987
31988         * lib/clean-temp.c: Include gl_xlist.h.
31989         * modules/clean-temp (Depends-on): Add xlist.
31990
31991         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31992         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31993
31994         * tests/test-array_oset.c: Include gl_xlist.h.
31995         * modules/array-oset-tests (Depends-on): Add xlist.
31996
31997         Reported by José E. Marchesi <jemarch@gnu.org>.
31998
31999 2009-12-13  Bruno Haible  <bruno@clisp.org>
32000
32001         Move the malloc checking from module 'oset' to new module 'xoset'.
32002         * modules/xoset: New file.
32003         * lib/gl_xoset.h: New file.
32004         * lib/gl_xoset.c: New file.
32005         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32006         declarations.
32007         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32008         (struct gl_oset_implementation): Rename and change methods accordingly.
32009         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32010         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32011         'int'. Mark as __warn_unused_result__.
32012         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32013         gl_oset_create_empty.
32014         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32015         'int'.
32016         * lib/gl_array_oset.c: Don't include xalloc.h.
32017         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32018         malloc, not xmalloc.
32019         (grow): Change return type to 'int'. Don't call xalloc_die.
32020         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32021         to 'int'.
32022         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32023         'int'.
32024         (gl_array_oset_implementation): Update.
32025         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32026         gl_tree_create_empty.
32027         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32028         'int'.
32029         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32030         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32031         xmalloc.
32032         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32033         not xmalloc.
32034         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32035         xmalloc.
32036         (gl_avltree_oset_implementation): Update.
32037         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32038         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32039         xmalloc.
32040         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32041         not xmalloc.
32042         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32043         xmalloc.
32044         (gl_rbtree_oset_implementation): Update.
32045         * modules/array-oset (Depends-on): Remove xalloc.
32046         * modules/avltree-oset (Depends-on): Likewise.
32047         * modules/rbtree-oset (Depends-on): Likewise.
32048         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32049         * tests/test-avltree_oset.c: Likewise.
32050         * tests/test-rbtree_oset.c: Likewise.
32051         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32052         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32053         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32054         * NEWS: Mention the change.
32055
32056 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32057
32058         maint.mk: allow a project to override release-prep commands
32059         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32060         commands into a new rule.
32061         (release-prep): New rule.
32062         (release-prep-hook): New overridable variable.
32063
32064 2009-12-13  Bruno Haible  <bruno@clisp.org>
32065
32066         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32067
32068 2009-12-13  Jim Meyering  <meyering@redhat.com>
32069
32070         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32071         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32072
32073 2009-12-12  Bruno Haible  <bruno@clisp.org>
32074
32075         duplocale: Tweak.
32076         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32077
32078 2009-12-12  Karl Berry  <karl@gnu.org>
32079
32080         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32081
32082 2009-12-12  Bruno Haible  <bruno@clisp.org>
32083
32084         * m4/po.m4: Undo incorrect untabification.
32085
32086 2009-12-12  Bruno Haible  <bruno@clisp.org>
32087
32088         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32089         * modules/c-strtod (Depends-on): Add locale.
32090         * modules/c-strtold (Depends-on): Likewise.
32091
32092 2009-12-12  Bruno Haible  <bruno@clisp.org>
32093
32094         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32095
32096 2009-12-11  Eric Blake  <ebb9@byu.net>
32097
32098         setenv: relax requirement in light of POSIX ruling
32099         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32100         not NULL.
32101         * tests/test-setenv.c (main): Relax test.
32102         * tests/test-unsetenv.c (main): Likewise.
32103         * doc/posix-functions/setenv.texi (setenv): Document this.
32104         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32105
32106 2009-12-11  Bruno Haible  <bruno@clisp.org>
32107
32108         New module 'fd-safer-flag'.
32109         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32110         * lib/dup-safer.c (dup_safer_flag): Remove function.
32111         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32112         * lib/fd-safer.c (fd_safer_flag): Remove function.
32113         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32114         * modules/cloexec (configure.ac): Drop indicator macro.
32115         * modules/fd-safer-flag: New file.
32116         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32117         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32118         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32119
32120 2009-12-11  Bruno Haible  <bruno@clisp.org>
32121
32122         Tests for module 'nl_langinfo'.
32123         * modules/nl_langinfo-tests: New file.
32124         * tests/test-nl_langinfo.sh: New file.
32125         * tests/test-nl_langinfo.c: New file.
32126
32127         New module 'nl_langinfo'.
32128         * lib/nl_langinfo.c: New file.
32129         * m4/nl_langinfo.m4: New file.
32130         * modules/nl_langinfo: New file.
32131         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32132
32133 2009-12-11  Bruno Haible  <bruno@clisp.org>
32134
32135         Tests for module 'langinfo'.
32136         * modules/langinfo-tests: New file.
32137         * tests/test-langinfo.c: New file.
32138
32139         New module 'langinfo'.
32140         * lib/langinfo.in.h: New file.
32141         * m4/langinfo_h.m4: New file.
32142         * modules/langinfo: New file.
32143         * doc/posix-headers/langinfo.texi: Mention the new module.
32144
32145 2009-12-11  Bruno Haible  <bruno@clisp.org>
32146
32147         * lib/config.charset: Untabify.
32148
32149 2009-12-11  Bruno Haible  <bruno@clisp.org>
32150
32151         * modules/unistd-safer (configure.ac): Drop indicator macro.
32152
32153 2009-12-11  Bruno Haible  <bruno@clisp.org>
32154
32155         Move pipe2-safer code to its own file.
32156         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32157         * lib/pipe-safer.c (pipe2_safer): Remove function.
32158         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32159         (Makefile.am): Add it to lib_SOURCES.
32160
32161 2009-12-10  Bruno Haible  <bruno@clisp.org>
32162
32163         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32164
32165 2009-12-10  Bruno Haible  <bruno@clisp.org>
32166
32167         Declare which arguments expect non-NULL values, for GCC and clang.
32168         * build-aux/arg-nonnull.h: New file.
32169         * modules/arg-nonnull: New file.
32170         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32171         (inet_ntop, inet_pton): Use it.
32172         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32173         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32174         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32175         (open, openat): Use it.
32176         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32177         (fnmatch): Use it.
32178         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32179         (getopt, getopt_long, getopt_long_only): Use it.
32180         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32181         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32182         Use it.
32183         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32184         (iconv_open): Use it.
32185         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32186         (strtoimax, strtoumax): Use it.
32187         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32188         (duplocale): Use it.
32189         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32190         (frexp, frexpl): Use it.
32191         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32192         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32193         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32194         (tsearch, tfind, tdelete, twalk): Use it.
32195         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32196         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32197         sigpending): Use it.
32198         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32199         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32200         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32201         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32202         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32203         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32204         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32205         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32206         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32207         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32208         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32209         Use it.
32210         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32211         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32212         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32213         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32214         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32215         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32216         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32217         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32218         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32219         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32220         strtoull, unsetenv): Use it.
32221         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32222         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32223         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32224         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32225         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32226         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32227         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32228         (strcasecmp, strncasecmp): Use it.
32229         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32230         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32231         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32232         rpl_setsockopt): Use it.
32233         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32234         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32235         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32236         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32237         (gettimeofday): Use it.
32238         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32239         (times): Use it.
32240         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32241         (uname): Use it.
32242         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32243         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32244         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32245         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32246         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32247         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32248         unlinkat, write): Use it.
32249         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32250         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32251         * lib/argv-iter.h: Include arg-nonnull.h.
32252         (_ATTRIBUTE_NONNULL_): Remove macro.
32253         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32254         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32255         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32256         optimization.
32257         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32258         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32259         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32260         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32261         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32262         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32263         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32264         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32265         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32266         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32267         * modules/dirent (Depends-on): Add arg-nonnull.
32268         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32269         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32270         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32271         * modules/fnmatch (Depends-on): Add arg-nonnull.
32272         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32273         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32274         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32275         * modules/glob (Depends-on): Add arg-nonnull.
32276         (Makefile.am): Insert arg-nonnull.h into glob.h.
32277         * modules/iconv_open (Depends-on): Add arg-nonnull.
32278         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32279         * modules/inttypes (Depends-on): Add arg-nonnull.
32280         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32281         * modules/locale (Depends-on): Add arg-nonnull.
32282         (Makefile.am): Insert arg-nonnull.h into locale.h.
32283         * modules/math (Depends-on): Add arg-nonnull.
32284         (Makefile.am): Insert arg-nonnull.h into math.h.
32285         * modules/netdb (Depends-on): Add arg-nonnull.
32286         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32287         * modules/search (Depends-on): Add arg-nonnull.
32288         (Makefile.am): Insert arg-nonnull.h into search.h.
32289         * modules/signal (Depends-on): Add arg-nonnull.
32290         (Makefile.am): Insert arg-nonnull.h into signal.h.
32291         * modules/spawn (Depends-on): Add arg-nonnull.
32292         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32293         * modules/stdio (Depends-on): Add arg-nonnull.
32294         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32295         * modules/stdlib (Depends-on): Add arg-nonnull.
32296         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32297         * modules/string (Depends-on): Add arg-nonnull.
32298         (Makefile.am): Insert arg-nonnull.h into string.h.
32299         * modules/strings (Depends-on): Add arg-nonnull.
32300         (Makefile.am): Insert arg-nonnull.h into strings.h.
32301         * modules/sys_socket (Depends-on): Add arg-nonnull.
32302         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32303         * modules/sys_stat (Depends-on): Add arg-nonnull.
32304         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32305         * modules/sys_time (Depends-on): Add arg-nonnull.
32306         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32307         * modules/sys_times (Depends-on): Add arg-nonnull.
32308         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32309         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32310         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32311         * modules/time (Depends-on): Add arg-nonnull.
32312         (Makefile.am): Insert arg-nonnull.h into time.h.
32313         * modules/unistd (Depends-on): Add arg-nonnull.
32314         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32315         * modules/wchar (Depends-on): Add arg-nonnull.
32316         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32317         * modules/argv-iter (Depends-on): Add arg-nonnull.
32318         * tests/test-canonicalize.c (null_ptr): New function.
32319         (main): Use it.
32320         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32321         (main): Use it.
32322         * tests/test-memmem.c (null_ptr): New function.
32323         (main): Use it.
32324         Reported by Jim Meyering.
32325
32326 2009-12-10  Bruno Haible  <bruno@clisp.org>
32327
32328         Use spaces for indentation, not tabs.
32329         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32330         * m4/*.m4: Untabify.
32331         * build-aux/*.h: Untabify.
32332         * tests/**/*.[hc]: Untabify.
32333         * README: New section "Indent with spaces, not TABs", based on
32334         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32335         * NEWS: Mention the change.
32336
32337 2009-12-10  Bruno Haible  <bruno@clisp.org>
32338
32339         pty test: Fix link error.
32340         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32341         test_pty_LDADD.
32342
32343 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32344
32345         * modules/pty: New file.
32346         * modules/pty-tests: New file.
32347         * m4/pty.m4: New file.
32348         * tests/test-pty.c: New file.
32349         * doc/glibc-headers/pty.texi: Modified.
32350         * doc/glibc-functions/forkpty.texi: Modified.
32351         * doc/glibc-functions/openpty.texi: Modified.
32352
32353 2009-12-10  Bruno Haible  <bruno@clisp.org>
32354
32355         Avoid syntax error in C++ mode.
32356         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32357
32358 2009-12-10  Bruno Haible  <bruno@clisp.org>
32359
32360         Use sed with option -e.
32361         * gnulib-tool (func_version, func_emit_copyright_notice,
32362         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32363         option -e to sed.
32364         * modules/link-warning (Makefile.am): Likewise.
32365
32366 2009-12-10  Jim Meyering  <meyering@redhat.com>
32367
32368         mgetgroups: do not write bytes beyond end of malloc'd buffer
32369         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32370         username, we call getgroups with a one-element-shorter buffer,
32371         but still told it the length was original, max_n_groups.
32372
32373 2009-12-09  Eric Blake  <ebb9@byu.net>
32374
32375         cloexec: relax license
32376         * modules/cloexec (Maintainer): Add myself.
32377         (License): Use LGPL, not GPL.
32378
32379         link-warning: optimize generation
32380         * modules/link-warning (Makefile.am): Reduce process usage.
32381
32382 2009-12-09  Bruno Haible  <bruno@clisp.org>
32383
32384         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32385         workaround was added on 2009-11-17.
32386
32387 2009-12-09  Jim Meyering  <meyering@redhat.com>
32388             Bruno Haible  <bruno@clisp.org>
32389
32390         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32391         * modules/link-warning (Makefile.am): Make the comment-removing sed
32392         command more robust in the face of bootstrap-prepended comment lines.
32393
32394 2009-12-09  Bruno Haible  <bruno@clisp.org>
32395
32396         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32397         most one group.
32398
32399 2009-12-09  Simon Josefsson <simon@josefsson.org>
32400             Bruno Haible  <bruno@clisp.org>
32401
32402         * build-aux/link-warning.h: Add copyright notice.
32403         * modules/link-warning (Makefile.am): Generate link-warning.h from
32404         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32405         * NEWS: Mention change in link-warning module.
32406         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32407         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32408         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32409         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32410         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32411         * modules/math (Makefile.am): Add dependency to math.h.
32412         * modules/search (Makefile.am): Add dependency to search.h.
32413         * modules/signal (Makefile.am): Add dependency to signal.h.
32414         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32415         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32416         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32417         * modules/string (Makefile.am): Add dependency to string.h.
32418         * modules/strings (Makefile.am): Add dependency to strings.h.
32419         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32420         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32421         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32422         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32423         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32424         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32425         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32426         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32427         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32428
32429 2009-12-09  Bruno Haible  <bruno@clisp.org>
32430
32431         fchdir: Optimize away rpl_fstat when possible.
32432         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32433         REPLACE_OPEN_DIRECTORY.
32434         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32435
32436 2009-12-09  Bruno Haible  <bruno@clisp.org>
32437
32438         * lib/fchdir.c: Update comment.
32439
32440 2009-12-09  Bruno Haible  <bruno@clisp.org>
32441
32442         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32443
32444 2009-12-08  Eric Blake  <ebb9@byu.net>
32445
32446         fchdir: avoid memory leak on re-registration.
32447         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32448
32449 2009-12-08  Jim Meyering  <meyering@redhat.com>
32450
32451         init.sh: avoid Solaris 10 /bin/sh portability problem
32452         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32453         sourced script:
32454           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32455           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32456           bar
32457         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32458         and two tests used that idiom.
32459         * tests/init.sh: Update suggested usage comments.
32460         (path_prepend_): New function, to be used in place
32461         of the --src-path=DIR option.
32462         (setup_): Move PATH-prepending code into path_prepend_.
32463         * tests/test-pread.sh: Adapt to new usage.
32464         * tests/test-xalloc-die.sh: Likewise.
32465
32466 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32467
32468         * doc/gnulib.texi (Glibc pty.h): Add.
32469         * doc/glibc-functions/forkpty.texi: Add.
32470         * doc/glibc-functions/openpty.texi: Add.
32471         Suggested by Bruno Haible.
32472
32473 2009-12-08  Eric Blake  <ebb9@byu.net>
32474
32475         fchdir: fix logic bugs
32476         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32477         * tests/test-fchdir.c (main): Enhance test.
32478         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32479         is in use.
32480
32481         dup2: fix logic bugs
32482         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32483         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32484         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32485         exists.
32486         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32487
32488 2009-12-07  Eric Blake  <ebb9@byu.net>
32489
32490         unlink: fix m4 detection
32491         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32492
32493         unistd-safer: add unit test
32494         * modules/unistd-safer-tests: New file.
32495         * tests/test-dup-safer.c: Likewise.
32496         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32497         * tests/test-dup2.c (setmode): Likewise.
32498         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32499
32500         cloexec: preserve text vs. binary across dup_cloexec
32501         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32502         mode.
32503         * modules/dup2-tests (Depends-on): Add binary-io.
32504         * modules/cloexec-tests (Depends-on): Likewise.
32505         * tests/test-dup2.c (setmode, is_mode): New helpers.
32506         (main): Add tests that translation mode is preserved.
32507         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32508         Reported by Bruno Haible.
32509
32510         mgetgroups: reduce duplicate listings
32511         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32512         resulting array.
32513         * tests/test-chown.h (test_chown): Simplify client.
32514         * tests/test-lchown.h (test_lchown): Likewise.
32515
32516 2009-12-06  Bruno Haible  <bruno@clisp.org>
32517
32518         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32519         value.
32520
32521 2009-12-06  Bruno Haible  <bruno@clisp.org>
32522
32523         * lib/progname.c: Include stdio.h, stdlib.h.
32524         (set_program_name): Reject a NULL argument.
32525
32526 2009-12-05  Eric Blake  <ebb9@byu.net>
32527
32528         pipe2-safer: new module
32529         * modules/pipe2-safer: New file.
32530         * lib/unistd-safer.h (pipe2_safer): New prototype.
32531         * lib/unistd--.h (pipe2): New wrapper.
32532         * lib/pipe-safer.c (pipe2_safer): New function.
32533         * modules/pipe (Depends-on): Add pipe2-safer.
32534         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32535
32536         stdlib-safer: preserve cloexec flag for mkostemp[s]
32537         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32538         fd_safer_flag.
32539
32540         unistd-safer: allow preservation of cloexec status via flag
32541         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32542         prototypes.
32543         * lib/dup-safer.c (dup_safer_flag): New function.
32544         * lib/fd-safer.c (fd_safer_flag): Likewise.
32545         * modules/cloexec (configure.ac): Set witness.
32546
32547         test-dup2: enhance test
32548         * modules/dup2-tests (Depends-on): Add cloexec.
32549         * tests/test-dup2.c (main): Enhance test.
32550
32551         cloexec: add dup_cloexec
32552         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32553         header and comments.
32554         * lib/cloexec.c (set_cloexec_flag): Add comments.
32555         (dup_cloexec): New function, with mingw implementation borrowed
32556         from...
32557         * lib/w32spawn.h (dup_noinherit): ...here.
32558         * modules/execute (Depends-on): Add cloexec.
32559         * modules/pipe (Depends-on): Likewise.
32560         * modules/cloexec (Depends-on): Add dup2.
32561         * modules/cloexec-tests (Files): New file.
32562         * tests/test-cloexec.c: Likewise.
32563
32564         test-xalloc-die: fix test for mingw
32565         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32566         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32567         directory and .exe suffix off argv[0] output.
32568
32569         test-fseeko: fix test for mingw
32570         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32571         than undefining fseek, so test will pass on mingw.
32572
32573 2009-12-05  Bruno Haible  <bruno@clisp.org>
32574
32575         * lib/progname.h (set_program_name): Clarify specification.
32576         * lib/progname.c (set_program_name): Likewise.
32577         Reported by Jim Meyering.
32578
32579 2009-12-05  Jim Meyering  <meyering@redhat.com>
32580
32581         maint.mk: backslash-escape parens in default regexp
32582         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32583         backslash-escape the literal parentheses.
32584
32585         maint.mk: news-date-check: use grep -E
32586         * top/maint.mk (today): Define a Make variable, not a...
32587         (news-date-check): ...shell variable.
32588         (news-date-regexp): Use the Make variable.
32589         Use grep's -E option.  Change the failing diagnostic to mention
32590         the variable, $(news-date-regexp).
32591
32592 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32593
32594         maintainer-makefile: allow customization of NEWS entry format
32595         * top/maint.mk (news-date-regexp): New overridable variable.
32596         (news-date-check): Use it.
32597
32598 2009-12-04  Eric Blake  <ebb9@byu.net>
32599
32600         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32601         * lib/mgetgroups.h (xgetgroups): New prototype.
32602         * lib/mgetgroups.c (xgetgroups): New wrapper.
32603         (mgetgroups): Handle ENOSYS.
32604         * modules/mgetgroups (Depends-on): Add realloc.
32605         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32606
32607         mgetgroups: avoid argument promotion issues with -1
32608         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32609         for invalid gid_t.
32610         * tests/test-chown.h (getegid, test_chown): Likewise.
32611         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32612
32613 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32614
32615         exclude: Fix header file problems.
32616         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32617
32618 2009-12-01  Jim Meyering  <meyering@redhat.com>
32619
32620         fts: fts_open: do not let an empty string cause immediate failure
32621         This is required in support of GNU rm, for which the command
32622         "rm A '' B" must process and remove both A and B, in spite of
32623         the empty string argument.
32624         * lib/fts.c (fts_open): Do not let the presence of an empty string
32625         cause fts_open to fail immediately.  Most fts-using tools must be
32626         able to process all arguments, in order, and can be expected to
32627         diagnose such arguments themselves.
32628
32629 2009-11-30  Eric Blake  <ebb9@byu.net>
32630
32631         utimens: fix compilation error
32632         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32633         Declare variable at right scope.
32634
32635 2009-11-29  Jim Meyering  <meyering@redhat.com>
32636
32637         bootstrap: handle perl-5.11's changed --version output
32638         * build-aux/bootstrap (get_version): Handle perl separately,
32639         since perl-5.11's --version output is different.
32640
32641 2009-11-28  Jim Meyering  <meyering@redhat.com>
32642
32643         userspec: depend on the inttostr module, too
32644         * modules/userspec (Depends-on): Add inttostr.
32645
32646         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32647         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32648         number of MAXUID when it evaluates to (uid_t) -1.
32649         Likewise for group ID.  Reported by Matt McCutchen in
32650         <http://savannah.gnu.org/bugs/?28113>
32651
32652         userspec: reformat to use spaces, not TABs
32653         * lib/userspec.c: Expand TABs to spaces.
32654         Add Emacs' "indent-tabs-mode: nil" hint.
32655
32656 2009-11-27  Eric Blake  <ebb9@byu.net>
32657
32658         getopt-gnu: flush out another BSD bug
32659         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32660         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32661         flush out BSD bug.
32662         * tests/test-getopt.h (test_getopt): End lists with NULL.
32663         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32664         (test_getopt_long_posix): Enhance test.
32665         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32666         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32667         getopt-gnu.
32668         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32669         Likewise.
32670
32671 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32672
32673         * modules/idpriv-droptemp-tests (Notice): Fix text.
32674
32675 2009-11-27  Jim Meyering  <meyering@redhat.com>
32676
32677         test-xalloc-die: avoid spurious failure due to libtool argv difference
32678         In a libtool-enabled project, this test would fail due to a difference
32679         in the emitted program name, e.g.,
32680         -test-xalloc-die: memory exhausted
32681         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32682         Use program to avoid that.
32683         * modules/xalloc-die-tests (Depends-on): Add progname.
32684         * tests/test-xalloc-die.c: Include progname.h".
32685         (program_name): Remove decl.
32686         (main): Call set_program_name.
32687         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32688
32689 2009-11-26  Richard Jones  <rjones@redhat.com>
32690
32691         w32sock: leave win32 error in place.
32692         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32693
32694 2009-11-26  Eric Blake  <ebb9@byu.net>
32695
32696         init.sh: suggest to use skip_ and fail_ functions in comments
32697         * tests/init.sh: Add a sentence.
32698
32699 2009-11-25  Bruno Haible  <bruno@clisp.org>
32700
32701         init.sh: add documentation in comments
32702         * tests/init.sh: Add some developer and user documentation.
32703
32704 2009-11-26  Jim Meyering  <meyering@redhat.com>
32705
32706         init.sh: accommodate even those who specify bogus srcdir manually
32707         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32708         configure-time tests to be sanitized, so that there is no need to
32709         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32710         (with no double quotes) suffices.  However, since tests may be
32711         invoked manually, and since you may explicitly set srcdir to the
32712         name of a directory containing spaces, do quote its uses here.
32713         * tests/test-pread.sh: Likewise.
32714         Suggested by Bruno Haible.
32715
32716         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32717         * tests/test-pread.sh: Write no data into the pipe, because
32718         test-pread actually reads none.  This avoids a diagnostic,
32719         "bash: echo: write error: Broken pipe", that arises in the unusual
32720         event something is ignoring SIGPIPE, and might be interpreted
32721         as some sort of failure.  Reported by Bruno Haible.
32722
32723 2009-11-25  Jim Meyering  <meyering@redhat.com>
32724
32725         test-pread: cover failure with ESPIPE and EINVAL
32726         * tests/test-pread.c (main): Test for failure, too.
32727         * tests/test-pread.sh: Invoke with stdin on a pipe.
32728         Suggested by Eric Blake.
32729
32730         pread: improvement and fix
32731         * modules/pread (Depends-on): Depend on lseek, for portability to
32732         e.g., mingw.  Suggested by Eric Blake.
32733         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32734
32735         unistd.in.h: correct declaration of pread
32736         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32737         Reported by Richard W.M. Jones.
32738
32739         test-pread.sh: distribute the test script
32740         * modules/pread-tests (Files): Include test-pread.sh.
32741
32742         test-pread.sh: clean up
32743         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32744         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32745         That is unnecessary, since it's always ".".
32746         Suggestion from Eric Blake.
32747
32748         test-pread.sh: make executable
32749         * tests/test-pread.sh: Set executable bit.
32750         Reported by Eric Blake.
32751
32752         correct typo in test-pread.sh
32753         * tests/test-pread.sh: Add #! line.
32754
32755         test pread
32756         * tests/test-pread.c: New file.
32757         * tests/test-pread.sh: Likewise.
32758         * modules/pread-tests: Likewise.
32759
32760         pread: new module
32761         * modules/pread: New file.
32762         * lib/unistd.in.h (pread): Define/declare.
32763         * lib/pread.c (pread): New file.
32764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32765         * modules/unistd (Makefile.am): Substitute witnesses.
32766         * doc/posix-functions/pread.texi (pread): Update.
32767         * MODULES.html.sh: Add pread.
32768
32769 2009-11-25  Jim Meyering  <meyering@redhat.com>
32770
32771         tests/init.sh: new file to be used via most *.sh tests
32772         * tests/init.sh: New file.
32773
32774 2009-11-25  Eric Blake  <ebb9@byu.net>
32775
32776         utimens: work around older Linux failure with symlinks
32777         * lib/utimens.c (lutimensat_works_really): New variable.
32778         (fdutimens, lutimens): Use it to manage kernels that support
32779         nanosecond times on files, but not on symlinks.
32780         Reported by OndÅ™ej Vašík.
32781
32782         utimes: fix configure grammar
32783         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32784
32785 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32786
32787         regex: Fix fastmap for multibyte character ranges.
32788         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32789         characters when a multibyte character range is included.
32790
32791 2009-11-22  Andy Wingo  <wingo@pobox.com>
32792
32793         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32794         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32795
32796 2009-11-24  Bruno Haible  <bruno@clisp.org>
32797
32798         doc: Most *_l functions exist in MacOS X 10.5.
32799         * doc/posix-functions/duplocale.texi: Update platforms list.
32800         * doc/posix-functions/freelocale.texi: Likewise.
32801         * doc/posix-functions/newlocale.texi: Likewise.
32802         * doc/posix-functions/uselocale.texi: Likewise.
32803         * doc/posix-functions/isalnum_l.texi: Likewise.
32804         * doc/posix-functions/isalpha_l.texi: Likewise.
32805         * doc/posix-functions/isblank_l.texi: Likewise.
32806         * doc/posix-functions/iscntrl_l.texi: Likewise.
32807         * doc/posix-functions/isdigit_l.texi: Likewise.
32808         * doc/posix-functions/isgraph_l.texi: Likewise.
32809         * doc/posix-functions/islower_l.texi: Likewise.
32810         * doc/posix-functions/isprint_l.texi: Likewise.
32811         * doc/posix-functions/ispunct_l.texi: Likewise.
32812         * doc/posix-functions/isspace_l.texi: Likewise.
32813         * doc/posix-functions/isupper_l.texi: Likewise.
32814         * doc/posix-functions/iswalnum_l.texi: Likewise.
32815         * doc/posix-functions/iswalpha_l.texi: Likewise.
32816         * doc/posix-functions/iswblank_l.texi: Likewise.
32817         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32818         * doc/posix-functions/iswctype_l.texi: Likewise.
32819         * doc/posix-functions/iswdigit_l.texi: Likewise.
32820         * doc/posix-functions/iswgraph_l.texi: Likewise.
32821         * doc/posix-functions/iswlower_l.texi: Likewise.
32822         * doc/posix-functions/iswprint_l.texi: Likewise.
32823         * doc/posix-functions/iswpunct_l.texi: Likewise.
32824         * doc/posix-functions/iswspace_l.texi: Likewise.
32825         * doc/posix-functions/iswupper_l.texi: Likewise.
32826         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32827         * doc/posix-functions/isxdigit_l.texi: Likewise.
32828         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32829         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32830         * doc/posix-functions/strcoll_l.texi: Likewise.
32831         * doc/posix-functions/strfmon_l.texi: Likewise.
32832         * doc/posix-functions/strftime_l.texi: Likewise.
32833         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32834         * doc/posix-functions/strxfrm_l.texi: Likewise.
32835         * doc/posix-functions/tolower_l.texi: Likewise.
32836         * doc/posix-functions/toupper_l.texi: Likewise.
32837         * doc/posix-functions/towctrans_l.texi: Likewise.
32838         * doc/posix-functions/towlower_l.texi: Likewise.
32839         * doc/posix-functions/towupper_l.texi: Likewise.
32840         * doc/posix-functions/wcscoll_l.texi: Likewise.
32841         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32842         * doc/posix-functions/wctrans_l.texi: Likewise.
32843         * doc/posix-functions/wctype_l.texi: Likewise.
32844         * doc/glibc-functions/strptime_l.texi: Likewise.
32845         * doc/glibc-functions/strtod_l.texi: Likewise.
32846         * doc/glibc-functions/strtof_l.texi: Likewise.
32847         * doc/glibc-functions/strtol_l.texi: Likewise.
32848         * doc/glibc-functions/strtold_l.texi: Likewise.
32849         * doc/glibc-functions/strtoll_l.texi: Likewise.
32850         * doc/glibc-functions/strtoul_l.texi: Likewise.
32851         * doc/glibc-functions/strtoull_l.texi: Likewise.
32852         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32853         * doc/glibc-functions/wcstod_l.texi: Likewise.
32854         * doc/glibc-functions/wcstof_l.texi: Likewise.
32855         * doc/glibc-functions/wcstol_l.texi: Likewise.
32856         * doc/glibc-functions/wcstold_l.texi: Likewise.
32857         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32858         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32859         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32860
32861 2009-11-24  Bruno Haible  <bruno@clisp.org>
32862
32863         duplocale: Fix logic bug.
32864         * lib/duplocale.c: Don't include <langinfo.h>.
32865         (_NL_LOCALE_NAME): Remove macro.
32866         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32867         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32868
32869 2009-11-23  Jim Meyering  <meyering@redhat.com>
32870
32871         test-update-copyright: don't hard-code /usr/bin/perl
32872         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32873         perl to print the current year.  Gilles Espinasse reported that
32874         the replaced use of perl was hard-coded as /usr/bin/perl.
32875
32876 2009-11-23  Bruno Haible  <bruno@clisp.org>
32877
32878         duplocale: Add support for glibc 2.3.x.
32879         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32880
32881 2009-11-22  Bruno Haible  <bruno@clisp.org>
32882
32883         vasnprintf: Tiny optimization.
32884         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32885         MacOS X.
32886
32887 2009-11-22  Bruno Haible  <bruno@clisp.org>
32888
32889         Tests for module 'duplocale'.
32890         * modules/duplocale-tests: New file.
32891         * tests/test-duplocale.c: New file.
32892
32893         New module 'duplocale'.
32894         * m4/duplocale.m4: New file.
32895         * lib/locale.in.h (duplocale): New declaration.
32896         * lib/duplocale.c: New file.
32897         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32898         gl_LOCALE_H_DEFAULTS): New macros.
32899         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32900         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32901         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32902         REPLACE_DUPLOCALE.
32903         * modules/duplocale: New file.
32904         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32905
32906 2009-11-22  Bruno Haible  <bruno@clisp.org>
32907
32908         * modules/locale-tests (configure.ac): Test for newlocale function.
32909         * tests/test-locale.c: When the system has extended locale functions,
32910         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32911
32912         locale: Make locale_t available when possible.
32913         * lib/locale.in.h: Include <xlocale.h> when it exists.
32914         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32915         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32916         * modules/locale (Depends-on): Add extensions.
32917         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32918         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32919
32920 2009-11-22  Bruno Haible  <bruno@clisp.org>
32921
32922         Add comments.
32923         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32924         invocation.
32925         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32926         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32927         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32928
32929 2009-11-22  Bruno Haible  <bruno@clisp.org>
32930
32931         error: account for the possibility of freopen (stdout).
32932         * lib/error.c: Include <unistd.h>.
32933         (flush_stdout): New function, extracted from error and error_at_line.
32934         Determine stdout's fd dynamically.
32935         (error, error_at_line): Invoke flush_stdout.
32936         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32937         * modules/error (Depends-on): Add unistd.
32938
32939 2009-11-22  Bruno Haible  <bruno@clisp.org>
32940
32941         diffseq: Add comment.
32942         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32943
32944 2009-11-22  Jim Meyering  <meyering@redhat.com>
32945
32946         c-stack: avoid defining an unused static function
32947         * lib/c-stack.c (find_stack_direction): Do not define this function
32948         when it will not be used.
32949
32950         diffseq: avoid spurious gcc warnings
32951         * lib/diffseq.h (IF_LINT2): Define.
32952         (compareseq): Use it to initialize two members of "part".
32953         This avoids two used-uninitialized warnings.
32954
32955 2009-11-21  Jim Meyering  <meyering@redhat.com>
32956
32957         c-stack: avoid "ignoring return value of `write'" warning
32958         * lib/c-stack.c: Include "ignore-value.h".
32959         (die): Explicitly ignore each write return value.
32960         * modules/c-stack (Depends-on): Add ignore-value.
32961
32962 2009-11-21  Bruno Haible  <bruno@clisp.org>
32963
32964         diffseq: reduce scope of variable 'best'.
32965         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32966         variable, earlier used for two different purposes.
32967
32968 2009-11-21  Jim Meyering  <meyering@redhat.com>
32969
32970         diffseq: remove useless assignment to "best"
32971         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32972         assignment.  At that point "best" is already guaranteed to be zero.
32973
32974 2009-11-20  Eric Blake  <ebb9@byu.net>
32975
32976         build: mention ftp redirector in release announcements
32977         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32978         values that used to come from cfg.mk; mention FTP redirect URL.
32979         * build-aux/announce-gen: Mention the mirror list.
32980         Suggested by Karl Berry.
32981
32982         nanosleep: improve port to mingw
32983         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32984         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32985         LIB_NANOSLEEP, but only when needed.
32986         * modules/select (Link): Document LIBSOCKET.
32987         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32988         enough.
32989
32990         nanosleep: work around cygwin bug
32991         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32992         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32993         bug.
32994         (getnow): Delete, not needed.
32995         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32996         LIB_CLOCK_GETTIME.
32997         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32998         clock-time, gettime.
32999         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33000         bug.
33001         * modules/nanosleep-tests: New test.
33002         * tests/test-nanosleep.c: New file.
33003
33004         sleep: work around cygwin bug
33005         * lib/sleep.c (rpl_sleep): Work around the bug.
33006         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33007         (gl_PREREQ_SLEEP): Delete unused macro.
33008         * modules/sleep (Depends-on): Add verify.
33009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33010         * modules/unistd (Makefile.am): Substitute witness.
33011         * lib/unistd.in.h (sleep): Update prototype.
33012         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33013         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33014         * modules/sleep-tests (Depends-on): Check for alarm.
33015
33016 2009-11-20  Jim Meyering  <meyering@redhat.com>
33017
33018         maint.mk: improve sc_prohibit_magic_number_exit
33019         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33020         so it does not match uses like System.exit(1).
33021         Add comments showing how to correct all offenders.
33022
33023 2009-11-19  Eric Blake  <ebb9@byu.net>
33024
33025         xalloc-die-tests: add missing library
33026         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33027
33028         test-xvasprintf: silence compiler warnings
33029         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33030         empty string from gcc.
33031
33032 2009-11-19  Jim Meyering  <meyering@redhat.com>
33033
33034         xfreopen: new module, from coreutils
33035         * modules/xfreopen: New module.
33036         * lib/xfreopen.c: New file.
33037         * lib/xfreopen.h: New file.
33038         * MODULES.html.sh (File stream based Input/Output"): Add it.
33039
33040 2009-11-19  Eric Blake  <ebb9@byu.net>
33041
33042         manywarnings: depend on warnings
33043         * modules/manywarnings (Depends-on): Add warnings.
33044
33045         build: avoid compiler warnings
33046         * lib/select.c (rpl_select): Delete unused variable.
33047         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33048
33049 2009-11-18  Eric Blake  <ebb9@byu.net>
33050
33051         tests: avoid false negative with --with-packager
33052         * tests/test-version-etc.sh: Discard packager information.
33053         * tests/test-argp-version-etc-1.sh: Likewise.
33054         Reported by Mike Frysinger.
33055
33056         utimens: fix regression on Solaris
33057         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33058         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33059         can only change fd timestamps via futimesat.  Instead, use an
33060         additional witness macro to avoid BSD bug.
33061         Reported by Jim Meyering.
33062
33063 2009-11-17  Eric Blake  <ebb9@byu.net>
33064
33065         usleep: use it to simplify tests
33066         * modules/stat-time-tests (Depends-on): Add usleep.
33067         (configure.ac): Drop usleep check.
33068         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33069         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33070         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33071         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33072         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33073         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33074         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33075         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33076         Likewise.
33077         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33078         * tests/test-lchown.h (nap): Likewise.
33079         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33080         * tests/test-stat-time.c (nap): Likewise.
33081         * tests/test-utimens-common.h (nap): Update comments.
33082
33083         usleep: new module
33084         * modules/usleep: New file.
33085         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33086         * lib/usleep.c (usleep): Likewise.
33087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33088         * modules/unistd (Makefile.am): Substitute witnesses.
33089         * lib/unistd.in.h (usleep): Add declaration.
33090         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33091         * MODULES.html.sh (Date and time): Likewise.
33092         * modules/usleep-tests (Depends-on): New test.
33093         * tests/test-usleep.c: New file.
33094
33095         chown: work around OpenBSD bug
33096         * lib/chown.c (rpl_chown): Work around the bug.
33097         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33098         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33099         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33100         * modules/chown (Depends-on): Add stdbool.
33101         * modules/lchown (Depends-on): Likewise.
33102         * doc/posix-functions/chown.texi (chown): Document the bug.
33103         * doc/posix-functions/lchown.texi (lchown): Likewise.
33104         * tests/test-lchown.h (test_chown): Relax test.
33105
33106         mkstemp: avoid conflict with C++ keyword template
33107         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33108         * lib/mkostemp.c (mkostemp): Likewise.
33109         * lib/mkostemps.c (mkostemps): Likewise.
33110         * lib/mkstemp.c (mkstemp): Likewise.
33111         * lib/mkstemps.c (mkstemps): Likewise.
33112
33113         xalloc-die-tests: optimize
33114         * tests/test-xalloc-die.sh: Reduce number of processes.
33115
33116 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33117
33118         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33119         patch from ludo@gnu.org (Ludovic Courtès).
33120
33121 2009-11-17  Jim Meyering  <meyering@redhat.com>
33122
33123         version-etc: use proper license string
33124         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33125         * modules/version-etc-fsf: Likewise.
33126
33127 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33128
33129         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33130         printed to stdout.  Deal with EOL differences.
33131
33132 2009-11-17  Eric Blake  <ebb9@byu.net>
33133
33134         unsetenv: work around Solaris bug
33135         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33136         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33137         Reported by Jim Meyering.
33138
33139         vasnprintf: avoid compiler warnings
33140         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33141         variables.
33142         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33143
33144 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33145
33146         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33147         settings since xalloc-die is no longer the self test,
33148         xalloc-die.sh is.
33149
33150 2009-11-17  Jim Meyering  <meyering@redhat.com>
33151
33152         test-xalloc-die.sh: make the code agree with the commit log
33153         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33154         at the end, just in case you happen to have a test-xalloc-die
33155         program in some other PATH directory.
33156
33157         test-xalloc-die.sh: fix a portability bug
33158         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33159         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33160         Otherwise, argv[0] (as often seen in diagnostics) would be too
33161         system-dependent, sometimes with, and sometimes without the leading "./".
33162
33163         version-etc-fsf: relax license to LGPLv3+
33164         * modules/version-etc-fsf (License): Relax license.
33165
33166 2009-11-16  Eric Blake  <ebb9@byu.net>
33167
33168         xalloc-die-tests: avoid printing null pointer
33169         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33170         shell script.
33171         * tests/test-xalloc-die.c (program_name): Declare.
33172         * tests/test-xalloc-die.sh (tmpfiles): New file.
33173
33174         setenv, unsetenv: work around various bugs
33175         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33176         (setenv) [HAVE_SETENV]: Work around bugs.
33177         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33178         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33179         for bugs.
33180         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33181         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33183         * modules/stdlib (Makefile.am): Update substitutions.
33184         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33185         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33186         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33187         * modules/setenv-tests: New test.
33188         * modules/unsetenv-tests: Likewise.
33189         * tests/test-setenv.c: New file.
33190         * tests/test-unsetenv.c: Likewise.
33191
33192 2009-11-16  Jim Meyering  <meyering@redhat.com>
33193
33194         version-etc: relax license to LGPLv3+
33195         * modules/version-etc (License): Relax license.
33196
33197         better AC_REQUIRE expanded-before-required-warning avoidance
33198         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33199         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33200         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33201         which is no longer needed.
33202
33203 2009-11-16  Eric Blake  <ebb9@byu.net>
33204
33205         test-freading: clean up temporary file
33206         * tests/test-freading.c (main): Remove file on success, and use
33207         ASSERT more liberally.
33208         Reported by Jim Meyering.
33209
33210 2009-11-16  Jim Meyering  <meyering@redhat.com>
33211
33212         avoid new AC_REQUIRE expanded-before-required warnings
33213         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33214         merely using it.
33215         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33216         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33217
33218 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33219
33220         * tests/test-xalloc-die.c: New file.
33221         * modules/xalloc-die-tests: New file.
33222         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33223         XFAIL_TESTS so it can be appended by modules.
33224
33225 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33226
33227         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33228         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33229
33230 2009-11-14  Eric Blake  <ebb9@byu.net>
33231
33232         fnmatch: avoid compiler warning
33233         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33234         to silence compiler warning about mismatch signedness in ?:.
33235         Reported by Robert Millan.
33236
33237         intprops: add double-inclusion guard
33238         * lib/intprops.h: Allow idempotent includes.
33239         Suggested by Bruce Korb.
33240
33241         openat: detect Solaris fchownat bug
33242         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33243         penalizing glibc chownat when only lchownat is broken.
33244         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33245         trailing slash bugs.
33246         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33247         * modules/openat-tests (Files): Include more files.
33248         (Depends-on): Add mgetgroups, sleep, stat-time.
33249         (configure.ac): Add additional checks.
33250         (Makefile.am): Build new test.
33251         * tests/test-fchownat.c: New file.
33252
33253         lchown: detect Solaris and FreeBSD bug
33254         * lib/lchown.c (rpl_lchown): Work around bug.
33255         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33257         * modules/unistd (Makefile.am): Populate it.
33258         * lib/unistd.in.h (lchown): Update declaration.
33259         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33260         * modules/lchown-tests: New file.
33261         * tests/test-lchown.h (test_lchown): Likewise.
33262         * tests/test-lchown.c (main): Likewise.
33263
33264         chown: detect Solaris and FreeBSD bug
33265         * lib/chown.c (rpl_chown): Work around bug.
33266         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33267         (gl_PREREQ_CHOWN): Delete.
33268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33269         * modules/unistd (Makefile.am): Populate it.
33270         * lib/unistd.in.h (chown): Update declaration.
33271         * lib/lchown.c (chown): Update client.
33272         * modules/lchown (Depends-on): Add lstat.
33273         * doc/posix-functions/chown.texi (chown): Document the bug.
33274         * doc/posix-functions/getgroups.texi (getgroups): Document
33275         getgroups pitfall.
33276         * modules/chown-tests: New file.
33277         * tests/test-chown.h (test_chown): Likewise.
33278         * tests/test-chown.c (main): Likewise.
33279
33280 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33281
33282         gnulib-tool: correctly detect absence of m4 directories
33283         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33284
33285 2009-11-14  Jim Meyering  <meyering@redhat.com>
33286
33287         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33288         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33289
33290 2009-11-14  John W. Eaton  <jwe@gnu.org>
33291
33292         strftime.h: wrap funtion declaration in extern "C" block
33293         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33294
33295 2009-11-13  Eric Blake  <ebb9@byu.net>
33296
33297         getgroups: avoid compiler warning
33298         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33299
33300         getgroups: work around FreeBSD bug
33301         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33302         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33303         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33304         * tests/test-getgroups.c (main): Fix buffer overrun.
33305
33306         getgroups: avoid compilation failure
33307         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33308         * modules/getgroups (Depends-on): Add stdint.
33309
33310 2009-11-13  Jim Meyering  <meyering@redhat.com>
33311
33312         test-getgroups: avoid compilation failure
33313         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33314
33315 2009-11-13  Eric Blake  <ebb9@byu.net>
33316
33317         mgetgroups: new module, taken from coreutils
33318         * modules/mgetgroups: New file.
33319         * lib/mgetgroups.h: Likewise.
33320         * lib/mgetgroups.c (mgetgroups): Likewise.
33321         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33322         * MODULES.html.sh (Users and groups): Mention it.
33323
33324         getgroups: don't expose GETGROUPS_T to user
33325         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33326         an element at a time if GETGROUPS_T is wrong size.
33327         * lib/getugroups.h (getugroups): Change signature.
33328         * lib/unistd.in.h (getgroups): Likewise.
33329         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33330         signature needs fixing.
33331         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33332         AC_TYPE_GETGROUPS.
33333         * modules/group-member (Depends-on): Add getgroups.
33334         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33335         (group_member): Rely on getgroups replacement.
33336         * lib/getugroups.c (getugroups): Use gid_t.
33337         * tests/test-getgroups.c (main): Likewise.
33338         * NEWS: Mention the signature change.
33339         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33340         problem with signature.
33341         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33342         GETGROUPS_T is still useful for setgroups.
33343
33344         getgroups, getugroups: provide stubs for mingw
33345         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33346         * lib/getugroups.c (getugroups): Likewise.
33347         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33348         function.  Modernize replacement scheme.
33349         (gl_PREREQ_GETGROUPS): Delete.
33350         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33351         * modules/getgroups (configure.ac): Declare witness.
33352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33353         * modules/unistd (Depends-on): Substitute witness.
33354         * lib/unistd.in.h (getgroups): Declare replacement.
33355
33356         getgroups: avoid calling exit
33357         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33358         drop xalloc.
33359         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33360         dependencies.
33361         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33362         exiting, in the rare case of malloc failure.
33363
33364         getgroups: fix logic error
33365         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33366         has more than 20 groups.
33367         * modules/getgroups-tests: New test.
33368         * tests/test-getgroups.c: New file.
33369
33370 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33371
33372         * tests/test-base64.c: Improve.
33373
33374 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33375
33376         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33377         Blake <ebb9@byu.net>.
33378
33379 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33380
33381         * tests/test-xvasprintf.c: Add %s%s related checks.
33382
33383 2009-11-12  Eric Blake  <ebb9@byu.net>
33384
33385         version-etc: match standards.texi style
33386         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33387         and use <> only for URLs.
33388
33389 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33390
33391         fts: do not fail on a submount during traversal
33392         * lib/fts.c (fts_build): Read the stat info again after opening
33393         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33394         Original report at http://bugzilla.redhat.com/501848.
33395
33396 2009-11-12  Jim Meyering  <meyering@redhat.com>
33397
33398         bootstrap: sync from coreutils
33399         * build-aux/bootstrap (bootstrap_epilogue): New function.
33400         Use git_modules_config in one more place.  This make bootstrap's
33401         --gnulib-srcdir option more useful for testing.
33402
33403         bootstrap: generalize autoheader check
33404         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33405         AC_CONFIG_HEADERS.
33406
33407 2009-11-11  Eric Blake  <ebb9@byu.net>
33408
33409         mkfifoat: use new modules for Solaris and BSD bugs
33410         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33411         * lib/mkfifoat.c (mknodat): Split...
33412         * lib/mknodat.c (mknodat): ...into new file.
33413         * modules/mkfifoat (Files): Ship new file.
33414         (Depends-on): Add mkfifo, mknod.
33415         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33416         (Depends-on): Add symlink.
33417         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33418         redundant with test_mkfifo.h.
33419         (do_mkfifoat, do_mknodat): New helpers.
33420
33421         mknod: new module
33422         * modules/mknod: New file.
33423         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33424         * lib/mknod.c (mknod): Likewise.
33425         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33426         defaults.
33427         * modules/sys_stat (Makefile.am): Substitute them.
33428         * lib/sys_stat.in.h (mknod): Declare replacement.
33429         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33430         Document it.
33431         * doc/posix-functions/mknod.texi (mknod): Likewise.
33432         * modules/mknod-tests: New test.
33433         * tests/test-mknod.c: Likewise.
33434
33435         mkfifo: new module
33436         * modules/mkfifo: New file.
33437         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33438         * lib/mkfifo.c (mkfifo): Likewise.
33439         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33440         defaults.
33441         * modules/sys_stat (Makefile.am): Substitute them.
33442         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33443         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33444         Document it.
33445         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33446         * modules/mkfifo-tests: New test.
33447         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33448         from test-mkfifoat.c.
33449         * tests/test-mkfifo.c: New file.
33450
33451         readlink: detect FreeBSD bug
33452         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33453         slash on symlink.
33454         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33455         * tests/test-readlink.h (test_readlink): Enhance test.
33456
33457         symlink: detect FreeBSD bug
33458         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33459         slash on symlink.
33460         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33461         * tests/test-symlink.h (test_symlink): Enhance test.
33462
33463 2009-11-10  Eric Blake  <ebb9@byu.net>
33464
33465         link: detect FreeBSD bug
33466         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33467         symlink.
33468         * doc/posix-functions/link.texi (link): Document the bug.
33469         * tests/test-link.h (test_link): Enhance test.
33470         * tests/test-linkat.c (main): Update caller.
33471
33472         unlink, remove: detect FreeBSD bug
33473         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33474         slash on symlink.
33475         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33476         * doc/posix-functions/remove.texi (remove): Likewise.
33477         * tests/test-unlink.h (test_unlink): Enhance test.
33478         * tests/test-remove.c (main): Likewise.
33479
33480 2009-11-09  Eric Blake  <ebb9@byu.net>
33481
33482         rename: detect FreeBSD bug
33483         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33484         slash on symlink.
33485         * modules/renameat-tests (Depends-on): Add filenamecat.
33486         * tests/test-rename.h (test_rename): Allow one more errno.
33487         * tests/test-renameat.c (main): Likewise.
33488         * doc/posix-functions/rename.texi (rename): Document the bug.
33489
33490         open: detect FreeBSD bug
33491         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33492         symlink.
33493         * doc/posix-functions/open.texi (open): Document the bug.
33494         * doc/posix-functions/utimes.texi (utimes): Likewise.
33495         * tests/test-open.h (test_open): Add parameters, and test symlink
33496         handling.
33497         * tests/test-open.c (main): Adjust caller.
33498         * tests/test-fcntl-safer.c (main): Likewise.
33499         * modules/open-tests (Depends-on): Add stdbool, symlink.
33500         * modules/fcntl-safer-tests (Depends-on): Likewise.
33501         * tests/test-openat.c (main): Add test-open tests.
33502
33503         stat: detect FreeBSD bug
33504         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33505         symlink.
33506         * doc/posix-functions/stat.texi (stat): Document the bug.
33507         * tests/test-stat.h (test_stat_func): Add argument.
33508         * tests/test-stat.c (main): Adjust caller.
33509         * tests/test-fstatat.c (main): Likewise.
33510         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33511         Reported by Jim Meyering.
33512
33513 2009-11-09  James Youngman  <jay@gnu.org>
33514
33515         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33516         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33517
33518 2009-11-08  Jim Meyering  <meyering@redhat.com>
33519
33520         utimens: remove invalid futimesat call
33521         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33522         It used the file descriptor of the target file as the DIR_FD
33523         parameter and NULL as the file name.  That caused failure with
33524         errno == EFAULT on FreeBSD-8.0-rc2
33525
33526 2009-11-07  Eric Blake  <ebb9@byu.net>
33527
33528         fflush, freadseek: use fseeko, not fseek
33529         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33530         (clear_ungetc_buffer): Avoid potential problems on large files.
33531         * lib/freadseek.c (freadseek): Likewise.
33532         * modules/freadseek (Depends-on): Add fseeko.
33533         * modules/fseek (configure.ac): Set a witness.
33534         * tests/test-fflush.c (main): Use fseeko.
33535         * tests/test-fpurge.c (fseek): Disable link warning.
33536         * tests/test-freadable.c (fseek): Likewise.
33537         * tests/test-freading.c (fseek): Likewise.
33538         * tests/test-fseeko.c (fseek): Likewise.
33539         * tests/test-ftell.c (fseek): Likewise.
33540         * tests/test-ftello.c (fseek): Likewise.
33541         * tests/test-fwritable.c (fseek): Likewise.
33542         * tests/test-fwriting.c (fseek): Likewise.
33543
33544 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33545
33546         * modules/memchr (Depends-on): Drop getpagesize dependency.
33547
33548 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33549
33550         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33551         Reported by Ludovic Courtès.
33552         * build-aux/pmccabe2html: Improve example usage.
33553         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33554
33555 2009-11-06  Jim Meyering  <meyering@redhat.com>
33556
33557         do-release-commit-and-tag: New module.
33558         Automate the release-commit and tag process.
33559         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33560         * modules/do-release-commit-and-tag: New file.
33561         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33562
33563 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33564
33565         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33566         because test-select.c uses inet_pton.
33567
33568 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33569
33570         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33571         GETADDRINFO_LIB.  Bump serial number.
33572         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33573         Suggested by Eric Blake <ebb9@byu.net>.
33574
33575 2009-11-05  Eric Blake  <ebb9@byu.net>
33576
33577         strtod: detect darwin bug
33578         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33579         Reported by Leo Davis.
33580
33581         freopen-safer: new module
33582         * modules/freopen-safer: New module.
33583         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33584         * lib/freopen-safer.c (freopen_safer): New file.
33585         * lib/stdio-safer.h (freopen_safer): New declaration.
33586         * lib/stdio--.h (freopen): New override.
33587         * MODULES.html.sh (File stream based Input/Output): Mention it.
33588         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33589         freopen-safer module.
33590         * doc/posix-functions/stderr.texi (stderr): Likewise.
33591         * doc/posix-functions/stdin.texi (stdin): Likewise.
33592         * doc/posix-functions/stdout.texi (stdout): Likewise.
33593         * modules/freopen-safer-tests: New test.
33594         * tests/test-reopen-safer.c: New file.
33595
33596 2009-11-05  Jim Meyering  <meyering@redhat.com>
33597
33598         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33599         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33600
33601 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33602
33603         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33604
33605 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33606
33607         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33608
33609 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33610
33611         Fix link error.
33612         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33613         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33614
33615 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33616
33617         * tests/test-func.c: Also test value of __func__.
33618
33619 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33620
33621         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33622         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33623
33624 2009-11-05  Bruno Haible  <bruno@clisp.org>
33625
33626         Fix link error.
33627         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33628         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33629         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33630
33631 2009-11-05  Bruno Haible  <bruno@clisp.org>
33632
33633         Tests for module 'inet_pton'.
33634         * modules/inet_pton-tests: New file.
33635         * tests/test-inet_pton.c: New file.
33636
33637 2009-11-05  Bruno Haible  <bruno@clisp.org>
33638
33639         Tests for module 'inet_ntop'.
33640         * modules/inet_ntop-tests: New file.
33641         * tests/test-inet_ntop.c: New file.
33642
33643 2009-11-04  Eric Blake  <ebb9@byu.net>
33644
33645         stdlib-safer: wrap all mkstemp variants
33646         * modules/mkostemp (configure.ac): Set witness.
33647         * modules/mkostemps (configure.ac): Likewise.
33648         * modules/mkstemps (configure.ac): Likewise.
33649         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33650         (mkstemps_safer): Wrap more functions.
33651         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33652         wrapping.
33653         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33654         (mkstemps_safer): Implement the wrappers.
33655
33656         mkstemps, mkostemps: new modules
33657         * modules/mkostemps: New module.
33658         * modules/mkstemps: Likewise.
33659         * lib/mkostemps.c (mkostemps): New file.
33660         * lib/mkstemps.c (mkstemps): Likewise.
33661         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33662         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33664         * modules/stdlib (Makefile.am): Substitute them.
33665         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33666         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33667         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33668         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33669         * MODULES.html.sh (File system functions): Mention them.
33670
33671         tempname: resync from glibc
33672         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33673         same values for __GT_FILE as glibc.  Abort even when assertions
33674         are disabled.
33675         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33676         match its value otherwise.  Allow idempotent inclusion.
33677         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33678         * lib/mkostemp.c (mkostemp): Likewise.
33679         * lib/mkstemp.c (mkstemp): Likewise.
33680         * lib/tmpfile.c (tmpfile): Likewise.
33681         * NEWS: Document this.
33682
33683         utimens: fix use of futimens on older Linux
33684         * lib/utimens.c (fdutimens): Use updated, rather than original,
33685         timespec to avoid bug in older Linux kernel.
33686         Reported by Simon Josefsson.
33687
33688 2009-11-04  Bruno Haible  <bruno@clisp.org>
33689
33690         Make num_processors more flexible and consistent.
33691         * lib/nproc.h (enum nproc_query): New type.
33692         (num_processors): Add a 'query' argument.
33693         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33694         (num_processors): Add a 'query' argument. Test the value of the
33695         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33696         mingw, count the number of CPUs available for the current process.
33697         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33698         Check for sched_getaffinity and sched_getaffinity_np.
33699         * modules/nproc (Depends-on): Add c-ctype, extensions.
33700         * NEWS: Mention the change.
33701
33702 2009-11-03  Bruno Haible  <bruno@clisp.org>
33703
33704         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33705
33706 2009-11-03  Jim Meyering  <meyering@redhat.com>
33707
33708         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33709         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33710         if it is defined.
33711
33712 2009-11-02  Eric Blake  <ebb9@byu.net>
33713
33714         mktime, timegm: share common declaration
33715         * lib/mktime-internal.h: New file.
33716         * lib/mktime.c: Use it rather than open-coding a declaration.
33717         * lib/timegm.c: Likewise.
33718         * modules/mktime (Files): Ship it.
33719         * modules/timegm (Files): Likewise.
33720         Suggested by Bruno Haible.
33721
33722         test-update-copyright: update test to match script changes
33723         * tests/test-update-copyright.sh: Avoid hard-coding perl
33724         location.  Don't update *.bak created by earlier runs.
33725
33726 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33727             Simon Josefsson  <simon@josefsson.org>
33728             Bruno Haible  <bruno@clisp.org>
33729
33730         Fix link error on Solaris 8.
33731         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33732         also in libnsl. Define also INET_PTON_LIB.
33733         * modules/inet_pton (Link): New section.
33734
33735 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33736             Bruno Haible  <bruno@clisp.org>
33737
33738         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33739         * modules/inet_ntop (Link): New section.
33740         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33741
33742 2009-11-02  Eric Blake  <ebb9@byu.net>
33743
33744         maint: avoid compiler warnings in m4 macros
33745         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33746         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33747
33748 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33749
33750         * m4/pmccabe2html.m4: Remove file.
33751         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33752         function.  Change maintainer.
33753         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33754         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33755         Courtès).
33756
33757 2009-10-31  Eric Blake  <ebb9@byu.net>
33758
33759         fseeko: fix m4 regression
33760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33761         regression from 2009-10-27.
33762         Reported by Ralf Wildenhues.
33763
33764 2009-10-31  Jim Meyering  <meyering@redhat.com>
33765
33766         inttostr: aesthetics and improved (compile-time) safety
33767         Define inttype_is_signed rather than inttype_is_unsigned,
33768         since the sole use is via "#if inttype_is_signed".
33769         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33770         inttype_is_unsigned.
33771         * lib/offtostr.c (inttype_is_signed): Likewise.
33772         * lib/uinttostr.c (inttype_is_signed): Likewise.
33773         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33774         * lib/inttostr.c (inttostr): Use verify to cross-check the
33775         inttype_is_signed value and the signedness of the actual type.
33776         * modules/inttostr (Depends-on): Add verify.
33777
33778 2009-10-30  Eric Blake  <ebb9@byu.net>
33779
33780         build: avoid compiler warnings
33781         * lib/fchmodat.c (lchmod): Mark unused variables.
33782         * lib/getopt.c (_getopt_initialize): Likewise.
33783         * lib/mktime.c (__mktime_internal): Provide prototype.
33784         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33785         older gcc that do not understand #pragma GCC diagnostic.
33786         * lib/uinttostr.c (inttype_is_unsigned): Define.
33787         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33788
33789 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33790
33791         stat: fix compilation on AIX
33792         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33793         only see struct stat64.
33794
33795 2009-10-30  Eric Blake  <ebb9@byu.net>
33796
33797         exclude: make more robust
33798         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33799         rather than masking a coding bug.
33800         Suggested by Bruno Haible.
33801
33802 2009-10-30  Jim Meyering  <meyering@redhat.com>
33803
33804         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33805         Rather than putting #!/usr/bin/perl on the first line,
33806         start with a variant of what's recommended by "man perlrun" that
33807         invokes the first "perl" program from your shell's search path.
33808         * build-aux/gitlog-to-changelog: Replace #!... as above.
33809         Add a "Local Variables" perl mode setting.
33810         Prompted by a patch from Ludovic Courtès.
33811         Improved by Eric Blake.
33812         * build-aux/useless-if-before-free: Likewise.
33813         * build-aux/announce-gen: Likewise.
33814         * build-aux/update-copyright: Likewise.
33815
33816 2009-10-29  Eric Blake  <ebb9@byu.net>
33817
33818         filenamecat-lgpl: adjust clients
33819         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33820         filenamecat.
33821         * modules/renameat (Depends-on): Likewise.
33822
33823         filenamecat: split into filenamecat-lgpl
33824         * modules/filenamecat-lgpl: New module.
33825         * modules/filenamecat (Files): Move library-safe files into
33826         filenamecat-lgpl.
33827         (Depends-on): Add filenamecat-lgpl.
33828         (configure.ac): Declare witness.
33829         * lib/filenamecat.h (file_name_concat): Only declare when using
33830         GPL module.
33831         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33832         Move...
33833         * lib/filenamecat-lgpl.c: ...into new file.
33834         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33835         (gl_FILE_NAME_CONCAT): Use it.
33836         * MODULES.html.sh (File system functions): Mention new module.
33837
33838         argp: avoid memory leak
33839         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33840         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33841         base_name, since the latter malloc()s and can call exit().
33842         Leak introduced 2006-07-03.
33843
33844         dirname-lgpl: adjust clients that don't need full dirname
33845         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33846         * modules/filenamecat (Depends-on): Likewise.
33847         * modules/linkat (Depends-on): Likewise.
33848         * modules/mkancesdirs (Depends-on): Likewise.
33849         * modules/mkdir (Depends-on): Likewise.
33850         * modules/openat (Depends-on): Likewise.
33851         * modules/savewd (Depends-on): Likewise.
33852         * modules/rename (Depends-on): Likewise.
33853         (License): Relax license.
33854         * modules/mkdir-tests (Depends-on): Drop progname.
33855         (Makefile.am): Delete unneeded LDADD.
33856         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33857
33858         dirname: split into dirname-lgpl
33859         * modules/dirname-lgpl: New module.
33860         * modules/dirname (Files): Move library-safe files into
33861         dirname-lgpl.
33862         (Depends-on): Add dirname-lgpl.
33863         (configure.ac): Declare witness.
33864         * modules/double-slash-root (License): Relax license.
33865         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33866         module.
33867         * lib/dirname.c (dir_len, mdir_name): Move...
33868         * lib/dirname-lgpl.c: ...into new file.
33869         * lib/basename.c (last_component, base_len): Move...
33870         * lib/basename-lgpl.c: ...into new file.
33871         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33872         (gl_DIRNAME): Use it.
33873         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33874         Mention new module.
33875         * modules/dirname-tests (Depends-on): Add progname.
33876         * tests/test-dirname.c (program_name): Delete.
33877
33878         mkdir: make safe for libraries
33879         * modules/mkdir (Depends-on): Drop xalloc.
33880         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33881         exit.
33882
33883         tests: avoid some compiler warnings
33884         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33885         literals.
33886         * tests/test-memchr.c (main): Avoid type mismatch.
33887         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33888         * tests/test-base64.c (main): Likewise.
33889         * tests/test-getdelim.c (main): Likewise.
33890         * tests/test-gethostname.c (main): Likewise.
33891         * tests/test-getline.c (main): Likewise.
33892         * tests/test-netinet_in.c (main): Likewise.
33893         * tests/test-select.c (open_server_socket, main): Likewise.
33894         * tests/test-select-stdin.c (main): Likewise.
33895         * tests/test-sockets.c (main): Likewise.
33896         * tests/test-strsignal.c (main): Likewise.
33897         * tests/test-sys_select.c (main): Likewise.
33898         * tests/test-sys_socket.c (main): Likewise.
33899         * tests/test-u64.c (main): Likewise.
33900         * tests/test-xfprintf-posix.c (main): Likewise.
33901         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33902
33903         sockets: avoid compiler warning
33904         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33905
33906         maint: detect usage(1) and other suspicious exits
33907         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33908
33909 2009-10-29  Jim Meyering  <meyering@redhat.com>
33910
33911         timespec: long-to-int truncation could make timespec_cmp malfunction
33912         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33913         a multiple of 2^32 nanoseconds as no difference.
33914
33915 2009-10-28  Jim Meyering  <meyering@redhat.com>
33916
33917         fprintftime: wrap macro code argument in "do {...} while(0)"
33918         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33919         cpy macro must be a statement that can be followed by a semicolon.
33920         Now that the else clause contains a comment and is hence longer
33921         than one line, I require curly braces.  That in turn requires
33922         that we wrap this code block in the standard do...while(0).
33923
33924         fprintftime: remove stray semicolon from previous change
33925         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33926
33927         fprintftime: avoid a warning about ignored fwrite return value
33928         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33929         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33930         that is unsafe.
33931         * modules/fprintftime (Depends-on): Add ignore-value.
33932
33933         exclude: avoid an unwarranted warning
33934         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33935
33936 2009-10-27  Eric Blake  <ebb9@byu.net>
33937
33938         fseek: avoid compilation failure when fflush is replaced
33939         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33940         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33941         module is in use.
33942         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33943         module is not in use; since REPLACE_FSEEK worked otherwise.
33944         (GNULIB_FTELLO): Likewise for ftell.
33945         Reported by Ian Beckwith and others.
33946
33947 2009-10-27  Bruno Haible  <bruno@clisp.org>
33948
33949         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33950         Reported by Jim Meyering.
33951
33952 2009-10-27  Jim Meyering  <jim@meyering.net>
33953             Bruno Haible  <bruno@clisp.org>
33954
33955         Avoid warning despite dropping the return value of fwrite.
33956         * lib/unicodeio.c: Include ignore-value.h.
33957         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33958         * modules/unicodeio (Depends-on): Add ignore-value.
33959
33960 2009-10-26  Eric Blake  <ebb9@byu.net>
33961
33962         areadlinkat: fix fallback path
33963         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33964         pointer and zero.
33965
33966 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33967
33968         Use a better IO block size for modern systems
33969         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33970         * lib/md2.c: Likewise.
33971         * lib/md4.c: Likewise.
33972         * lib/md5.c: Likewise.
33973         * lib/sha1.c: Likewise.
33974         * lib/sha256.c: Likewise.
33975         * lib/sha512.c: Likewise.
33976
33977 2009-10-22  Eric Blake  <ebb9@byu.net>
33978
33979         tests: avoid several compiler warnings
33980         * tests/test-getcwd.c (main): Avoid buffer underflow.
33981         * tests/test-getdate.c (main): String literals are not safe with
33982         putenv, so use setenv.  Declare unused argument.
33983         * modules/getdate-tests (Depends-on): Add setenv.
33984         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33985         problems with string literals in char *.
33986         * tests/test-hash.c (main): Avoid shadowing declaration.
33987         (insert_new): Treat string literals as char const *.
33988         * tests/test-getopt.h (test_getopt): Likewise.
33989         (getopt_loop): Alter types to minimize casting elsewhere.
33990         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33991         (test_getopt_long_posix): Likewise.
33992         (do_getopt_long): Add wrapper to minimize casting.
33993         * tests/test-atexit.c (clear_temp_file): Use void.
33994         * tests/test-areadlink-with-size.c (main): Declare unused
33995         arguments.
33996         * tests/test-areadlink.c (main): Likewise.
33997         * tests/test-areadlinkat-with-size.c (main): Likewise.
33998         * tests/test-areadlinkat.c (main): Likewise.
33999         * tests/test-canonicalize-lgpl.c (main): Likewise.
34000         * tests/test-canonicalize.c (main): Likewise.
34001         * tests/test-dirent-safer.c (main): Likewise.
34002         * tests/test-dirname.c (main): Likewise.
34003         * tests/test-dup2.c (main): Likewise.
34004         * tests/test-fchdir.c (main): Likewise.
34005         * tests/test-fcntl-h.c (main): Likewise.
34006         * tests/test-fcntl-safer.c (main): Likewise.
34007         * tests/test-fdopendir.c (main): Likewise.
34008         * tests/test-fdutimensat.c (main): Likewise.
34009         * tests/test-fflush.c (main): Likewise.
34010         * tests/test-filenamecat.c (main): Likewise.
34011         * tests/test-filevercmp.c (main): Likewise.
34012         * tests/test-fopen-safer.c (main): Likewise.
34013         * tests/test-fopen.c (main): Likewise.
34014         * tests/test-fpending.c (main): Likewise.
34015         * tests/test-fpurge.c (main): Likewise.
34016         * tests/test-freading.c (main): Likewise.
34017         * tests/test-fstatat.c (main): Likewise.
34018         * tests/test-fsync.c (main): Likewise.
34019         * tests/test-futimens.c (main): Likewise.
34020         * tests/test-getndelim2.c (main): Likewise.
34021         * tests/test-gettimeofday.c (main): Likewise.
34022         * tests/test-getopt.c (main): Likewise.
34023         * tests/test-i-ring.c (main): Likewise.
34024         * tests/test-inttypes.c (main): Likewise.
34025         * tests/test-link.c (main): Likewise.
34026         * tests/test-lstat.c (main): Likewise.
34027         * tests/test-math.c (main): Likewise.
34028         * tests/test-md5.c (main): Likewise.
34029         * tests/test-memchr2.c (main): Likewise.
34030         * tests/test-memrchr.c (main): Likewise.
34031         * tests/test-mkdir.c (main): Likewise.
34032         * tests/test-mkdirat.c (main): Likewise.
34033         * tests/test-mkfifoat.c (main): Likewise.
34034         * tests/test-open.c (main): Likewise.
34035         * tests/test-openat-safer.c (main): Likewise.
34036         * tests/test-openat.c (main): Likewise.
34037         * tests/test-quotearg.c (main): Likewise.
34038         * tests/test-rawmemchr.c (main): Likewise.
34039         * tests/test-readlink.c (main): Likewise.
34040         * tests/test-remove.c (main): Likewise.
34041         * tests/test-rename.c (main): Likewise.
34042         * tests/test-renameat.c (main): Likewise.
34043         * tests/test-rmdir.c (main): Likewise.
34044         * tests/test-sha1.c (main): Likewise.
34045         * tests/test-signal.c (main): Likewise.
34046         * tests/test-sigaction.c (main): Likewise.
34047         * tests/test-stat.c (main): Likewise.
34048         * tests/test-stat-time.c (main): Likewise.
34049         * tests/test-stddef.c (main): Likewise.
34050         * tests/test-stdint.c (main): Likewise.
34051         * tests/test-stdio.c (main): Likewise.
34052         * tests/test-stdlib.c (main): Likewise.
34053         * tests/test-strchrnul.c (main): Likewise.
34054         * tests/test-strerror.c (main): Likewise.
34055         * tests/test-string.c (main): Likewise.
34056         * tests/test-strtod.c (main): Likewise.
34057         * tests/test-strverscmp.c (main): Likewise.
34058         * tests/test-symlink.c (main): Likewise.
34059         * tests/test-symlinkat.c (main): Likewise.
34060         * tests/test-sys_stat.c (main): Likewise.
34061         * tests/test-sys_time.c (main): Likewise.
34062         * tests/test-time.c (main): Likewise.
34063         * tests/test-unistd.c (main): Likewise.
34064         * tests/test-unlink.c (main): Likewise.
34065         * tests/test-unlinkat.c (main): Likewise.
34066         * tests/test-utimens.c (main): Likewise.
34067         * tests/test-utimensat.c (main): Likewise.
34068         * tests/test-version-etc.c (main): Likewise.
34069         * tests/test-wchar.c (main): Likewise.
34070         * tests/test-wctype.c (main): Likewise.
34071         * tests/test-xprintf-posix.c (main): Likewise.
34072         * tests/test-posixtm.c (main): Likewise.
34073         (STREQ): Delete unused macro.
34074         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34075         shadowed variables.
34076         * tests/test-memchr.c (main): Likewise.
34077
34078 2009-10-21  Eric Blake  <ebb9@byu.net>
34079
34080         areadlinkat: avoid failure on older glibc
34081         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34082         rather than mis-comparing 0 against FUNC_RESULT of char*.
34083
34084 2009-10-21  Bruno Haible  <bruno@clisp.org>
34085
34086         * modules/stpncpy (License): Relicense under LGPLv2+.
34087         Reported by David Lutterkort <lutter@redhat.com>.
34088
34089 2009-10-20  Eric Blake  <ebb9@byu.net>
34090
34091         utimensat: work around Solaris 9 bug
34092         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34093         has trailing slash bugs.
34094         * tests/test-lutimens.h (test_lutimens): Enhance test.
34095         * tests/test-utimens.h (test_utimens): Likewise.
34096         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34097         * doc/posix-functions/utimes.texi (utimes): Likewise.
34098         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34099         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34100         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34101         * doc/posix-functions/futimens.texi (futimens): Likewise.
34102
34103         fdutimensat: new module
34104         * modules/fdutimensat: New file.
34105         * lib/fdutimensat.c (fdutimensat): Likewise.
34106         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34107         * MODULES.html.sh (File system functions): Mention module.
34108         * modules/fdutimensat-tests: New test.
34109         * tests/test-fdutimensat.c: Likewise.
34110
34111         doc: regenerate INSTALL
34112         * doc/INSTALL: Reflect recent autoconf update.
34113         * doc/INSTALL.ISO: Likewise.
34114         * doc/INSTALL.UTF-8: Likewise.
34115
34116 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34117
34118         acl: warn if ACL support is not detected
34119         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34120
34121 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34122
34123         * lib/nproc.h: Add extern "C" block for C++.
34124
34125 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34126             Bruno Haible  <bruno@clisp.org>
34127
34128         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34129         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34130         * doc/posix-functions/isalpha.texi: Likewise.
34131         * doc/posix-functions/isblank.texi: Likewise.
34132         * doc/posix-functions/iscntrl.texi: Likewise.
34133         * doc/posix-functions/isdigit.texi: Likewise.
34134         * doc/posix-functions/isgraph.texi: Likewise.
34135         * doc/posix-functions/islower.texi: Likewise.
34136         * doc/posix-functions/isprint.texi: Likewise.
34137         * doc/posix-functions/ispunct.texi: Likewise.
34138         * doc/posix-functions/isspace.texi: Likewise.
34139         * doc/posix-functions/isupper.texi: Likewise.
34140         * doc/posix-functions/isxdigit.texi: Likewise.
34141
34142 2009-10-18  Bruno Haible  <bruno@clisp.org>
34143
34144         Tests for module 'isblank'.
34145         * modules/isblank-tests: New file.
34146         * tests/test-isblank.c: New file.
34147
34148         New module 'isblank'.
34149         * lib/isblank.c: New file.
34150         * m4/isblank.m4: New file.
34151         * modules/isblank: New file.
34152         * doc/posix-functions/isblank.texi: Mention the new module.
34153
34154 2009-10-18  Bruno Haible  <bruno@clisp.org>
34155
34156         New module 'ctype'.
34157         * lib/ctype.in.h: New file.
34158         * m4/ctype.m4: New file.
34159         * modules/ctype: New file.
34160         * doc/posix-headers/ctype.texi: Mention the new module.
34161
34162 2009-10-18  Jim Meyering  <meyering@redhat.com>
34163
34164         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34165         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34166         right after its initialization, rather than farther down.
34167         Keeping these in close proximity makes it easier to ensure
34168         that each such variable is initialized.  E.g.,
34169
34170             LIB_CLOCK_GETTIME=
34171             AC_SUBST([LIB_CLOCK_GETTIME])
34172
34173         This change also increments these serial numbers.
34174         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34175         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34176         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34177
34178 2009-10-18  Bruno Haible  <bruno@clisp.org>
34179
34180         Don't let environment variables perturb build.
34181         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34182         (gl_PREREQ_GETHRXTIME): ... not here.
34183
34184 2009-10-18  Bruno Haible  <bruno@clisp.org>
34185
34186         Avoid symlink attack in localcharset module.
34187         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34188         (O_NOFOLLOW): Define fallback.
34189         (get_charset_aliases): Don't open the file if it is a symbolic link.
34190         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34191         gl_FCNTL_H.
34192         (gl_FCNTL_H): Require it.
34193         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34194         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34195         Reported by Fergal Glynn <fglynn@veracode.com>.
34196
34197 2009-10-18  Bruno Haible  <bruno@clisp.org>
34198
34199         Implement nproc for mingw.
34200         * lib/nproc.c: Include <windows.h>
34201         (num_processors): On native Windows platforms, try GetSystemInfo.
34202
34203 2009-10-18  Bruno Haible  <bruno@clisp.org>
34204
34205         Implement nproc for IRIX.
34206         * lib/nproc.c: Include <sys/sysmp.h>.
34207         (num_processors): On IRIX systems, try sysmp.
34208         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34209
34210 2009-10-18  Bruno Haible  <bruno@clisp.org>
34211
34212         Implement nproc for HP-UX.
34213         * lib/nproc.c: Include <sys/pstat.h>
34214         (num_processors): On HP-UX systems, try pstat_getdynamic.
34215         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34216         pstat_getdynamic.
34217
34218 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34219             Bruno Haible  <bruno@clisp.org>
34220
34221         Implement nproc for NetBSD, OpenBSD.
34222         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34223         (ARRAY_SIZE): New macro.
34224         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34225         * m4/nproc.m4: New file.
34226         * modules/nproc (Files): Add m4/nproc.m4.
34227         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34228         (Makefile.am): Instead, augment lib_SOURCES.
34229
34230 2009-10-18  Bruno Haible  <bruno@clisp.org>
34231
34232         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34233         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34234         sys/param.h.
34235
34236 2009-10-16  Eric Blake  <ebb9@byu.net>
34237
34238         utimensat: new module
34239         * modules/utimensat: New file.
34240         * lib/utimensat.c (utimensat): Likewise.
34241         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34242         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34243         so we can work around Linux bugs.
34244         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34245         * modules/sys_stat (Makefile.am): Substitute them.
34246         * lib/sys_stat.in.h (utimensat): Declare it.
34247         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34248         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34249         * modules/utimensat-tests: New test.
34250         * tests/test-utimensat.c: Likewise.
34251
34252         utimens: let lutimens work on non-symlinks
34253         * lib/utimens.c (lutimens): Fall back to utimens rather than
34254         failing with ENOSYS, when file is not a symlink.
34255         (utimens): Reduce redirection.
34256         * tests/test-lutimens.h (test_lutimens): Update test to cover
34257         non-symlinks.
34258         * tests/test-utimens.h (test_utimens): Update test to cover
34259         symlinks.
34260         * tests/test-utimens.c (main): Update caller.
34261
34262         utimens: cache whether utimensat syscall works
34263         * lib/utimens.c (utimensat_works_really): New cache variable.
34264         (fdutimens, lutimens): Use it to avoid failing syscall.
34265
34266         test-stat-time, test-utimens: improve portability
34267         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34268         ext4 on alpha, and for cygwin.
34269         * tests/test-utimens-common.h: New file.
34270         (nap): Factor delays into single function.
34271         * tests/test-lutimens.h (test_lutimens): Use new header.
34272         * tests/test-futimens.h (test_futimens): Likewise.
34273         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34274         timestamps to occur from same machine, as was done previously for
34275         test_utimens.
34276         * modules/utimens-tests (Files): Ship new file.
34277         * modules/futimens-tests (Files): Likewise.
34278         Reported in part by Jim Meyering.
34279
34280         sys_stat: sort replacement declarations
34281         * lib/sys_stat.in.h: Sort declarations.
34282         * lib/futimens.c (futimens): Fix typo.
34283
34284 2009-10-15  Jim Meyering  <meyering@redhat.com>
34285
34286         don't let environment settings perturb build
34287         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34288         could cause a configure-time and/or build-time malfunction.
34289         Typically, a configure-time function-in-library test is performed
34290         via code like this:
34291
34292           LIB_VAR=
34293           AC_SUBST([LIB_VAR])
34294           prefix_saved_LIBS=$LIBS
34295             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34296                        [test "$ac_cv_search_FUNC" = "none required" ||
34297                         LIB_VAR=$ac_cv_search_FUNC])
34298           LIBS=$prefix_saved_LIBS
34299
34300         However, in each of the files affected by this change, the LIB_VAR=
34301         initialization was omitted.  Thus, when set in the environment, its
34302         value would propagate into generated Makefiles when FUNC is not found
34303         in LIB_NAME.
34304         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34305         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34306         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34307
34308 2009-10-14  Eric Blake  <ebb9@byu.net>
34309
34310         fchdir: avoid infinite recursion in mingw
34311         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34312         recursing.
34313
34314         test-stat-time: port to mingw
34315         * tests/test-stat-time.c (force_unlink): Return a value.
34316         (test_ctime) [W32]: Fix compilation error.
34317         (nap): Don't call usleep with too large an argument.  Use
34318         force_unlink.
34319         * doc/pastposix-functions/usleep.texi (usleep): Document the
34320         portability issue.
34321
34322 2009-10-13  Jim Meyering  <meyering@redhat.com>
34323
34324         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34325         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34326         * modules/pipe-filter-ii: Likewise.
34327         * modules/sys_socket-tests: Likewise.
34328         * modules/tsearch-tests: Likewise.
34329         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34330         (check): Depend on it.
34331
34332 2009-10-12  Eric Blake  <ebb9@byu.net>
34333
34334         utimens-tests: port to NFS file systems
34335         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34336         comparisons to avoid spurious failures from timestamp drift
34337         between NFS machines.
34338
34339 2009-10-12  Eric Blake  <ebb9@byu.net>
34340
34341         stat-time-tests: minor cleanups
34342         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34343         * tests/test-stat-time.c (nap): Separate assignment from call.
34344         Suggested by Paolo Bonzini and Bruno Haible.
34345
34346         sys_stat: guarantee struct timespec
34347         * lib/sys_stat.in.h (includes): Always include <time.h>
34348         * modules/sys_stat (Depends-on): Add time.
34349         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34350         mode_t permission values.
34351         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34352         get at subsecond timestamps.
34353
34354 2009-10-10  Eric Blake  <ebb9@byu.net>
34355
34356         futimens: new module
34357         * modules/futimens: New file.
34358         * lib/futimens.c (futimens): Likewise.
34359         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34360         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34361         we can work around Linux bugs.
34362         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34363         * modules/sys_stat (Makefile.am): Substitute them.
34364         * lib/sys_stat.in.h (futimens): Declare it.
34365         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34366         * doc/posix-functions/futimens.texi (futimens): Likewise.
34367         * modules/futimens-tests: New test.
34368         * tests/test-futimens.c: Likewise.
34369
34370         utimens: introduce fdutimens
34371         * lib/utimens.h (fdutimens): New prototype.
34372         * lib/utimens.c (gl_futimens): Move guts...
34373         (fdutimens): ...to new interface.
34374         * tests/test-utimens.c (do_fdutimens): Use it.
34375
34376         utimens: add UTIME_NOW and UTIME_OMIT support
34377         * lib/utimens.c (validate_timespec, update_timespec): New helper
34378         functions.
34379         (gl_futimens, lutimens): Use them.
34380         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34381         stdbool, sys_stat.
34382         (Link): Mention resulting library dependency.
34383         * modules/utimecmp (Link): Likewise.
34384         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34385         (Makefile.am): Pick up library dependency.
34386         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34387         definition.
34388         * tests/test-sys_stat.c: Test the definitions.
34389         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34390         * NEWS: Document library dependency.
34391
34392         utimecmp: support symlink timestamps
34393         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34394         hashing when possible.  Use pathconf when available.
34395         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34396         * modules/utimecmp (Depends-on): Add lstat.
34397
34398         utimens: add lutimens interface
34399         * lib/utimens.c (lutimens): New function.
34400         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34401         * lib/utimens.h (lutimens): Declare new interface.
34402         * tests/test-utimens.c (main): Enhance test.
34403         * tests/test-lutimens.h (test_lutimens): New file.
34404         * modules/utimens-tests (Files): Distribute it.
34405         (Depends-on): Add symlink.
34406         (configure.ac): Check for usleep.
34407
34408         utimens: validate futimens usage
34409         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34410         fewer syscalls on failure later on.  Avoid compiler warning on
34411         mingw.
34412         * modules/utimens (Depends-on): Add dup2.
34413
34414         utimens: add test
34415         * modules/utimens-tests: New test.
34416         * tests/test-utimens.h: New file.
34417         * tests/test-futimens.h: Likewise.
34418         * tests/test-utimens.c: Likewise.
34419
34420         doc: mention timestamp portability issues
34421         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34422         instead.
34423         * doc/posix-functions/utime.texi (utime): Likewise.
34424         * doc/posix-functions/utimes.texi (utimes): Likewise.
34425         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34426         instead.
34427         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34428         module.
34429         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34430         Mention weakness with symlink timestamps.
34431         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34432         to utimensat/futimens instead.
34433         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34434
34435         test-dup2: enhance test
34436         * tests/test-dup2.c (main): Also check AT_FDCWD.
34437
34438         test-stat-time: avoid more spurious failures
34439         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34440         xfs; and avoid race if the two timestamps cross quantization edge.
34441
34442         relocatable: prefer 'file system' over 'filesystem'
34443         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34444         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34445         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34446         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34447         * lib/relocatable.c (compute_curr_prefix): Likewise.
34448
34449 2009-10-10  Jim Meyering  <meyering@redhat.com>
34450
34451         stat-time-tests: check for the usleep function
34452         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34453
34454 2009-10-10  Bruno Haible  <bruno@clisp.org>
34455
34456         * modules/xnanosleep: Put the Link section after the Include section.
34457
34458 2009-10-09  Eric Blake  <ebb9@byu.net>
34459
34460         dup2: work around FreeBSD 6.1 bug
34461         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34462         * doc/posix-functions/dup2.texi (dup2): Document it.
34463         Reported by Nelson H. F. Beebe and Jim Meyering.
34464
34465         test-stat-time: port to buggy NFS clients
34466         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34467         (test_ctime): Also skip test if mtime and ctime are skewed.
34468
34469         maint: prefer 'file system' over 'filesystem'
34470         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34471         * doc/posix-functions/lstat.texi (lstat): Likewise.
34472         * lib/file-has-acl.c (file_has_acl): Likewise.
34473         * lib/fwriteerror.c [TEST]: Likewise.
34474         * tests/test-areadlink.h (test_areadlink): Likewise.
34475         * tests/test-areadlinkat-with-size.c (main): Likewise.
34476         * tests/test-areadlinkat.c (main): Likewise.
34477         * tests/test-canonicalize-lgpl.c (main): Likewise.
34478         * tests/test-canonicalize.c (main): Likewise.
34479         * tests/test-fstatat.c (main): Likewise.
34480         * tests/test-linkat.c (main): Likewise.
34481         * tests/test-lstat.h (test_lstat_func): Likewise.
34482         * tests/test-mkdir.h (test_mkdir): Likewise.
34483         * tests/test-readlink.h (test_readlink): Likewise.
34484         * tests/test-remove.c (main): Likewise.
34485         * tests/test-rename.h (test_rename): Likewise.
34486         * tests/test-renameat.c (main): Likewise.
34487         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34488         * tests/test-symlink.h (test_symlink): Likewise.
34489         * tests/test-symlinkat.c (main): Likewise.
34490         * tests/test-unlink.h (test_unlink_func): Likewise.
34491         * tests/test-unlinkat.c (main): Likewise.
34492
34493         maint: make realtime library usage explicit
34494         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34495         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34496         * modules/settime (Link): Likewise.
34497         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34498
34499         test-stat-time: speed up execution
34500         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34501         warning on mingw.
34502         (nap): New helper function.
34503         (prepare_test): Use it to reduce sleep time.
34504         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34505         execution.
34506         * modules/stat-time-tests (configure.ac): Check for usleep.
34507
34508 2009-10-09  Jim Meyering  <meyering@redhat.com>
34509
34510         selinux-h: always use getfilecon wrappers
34511         * lib/getfilecon.c: New file.
34512         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34513         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34514         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34515         (fgetfilecon): Provide a stub.
34516         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34517         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34518         file unconditionally.
34519         When <selinux/selinux.h> is found, arrange to use wrappers.
34520         * modules/selinux-h (Files): Add getfilecon.c.
34521         (Makefile.am): Substitute include-next-related bits
34522         into the now-always-generated selinux/selinux.h file.
34523         * doc/glibc-functions/lgetfilecon.texi: New file.
34524         * doc/glibc-functions/fgetfilecon.texi: New file.
34525         * doc/glibc-functions/getfilecon.texi: New file.
34526         * doc/glibc-functions/getfilecon-desc.texi: New file.
34527         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34528         which to pull in the new files.
34529         * MODULES.html.sh (Misc): Add selinux-h.
34530
34531 2009-10-08  Jim Meyering  <meyering@redhat.com>
34532
34533         unistd: fix comment typo
34534         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34535
34536 2009-10-08  Eric Blake  <ebb9@byu.net>
34537
34538         areadlink: use SIZE_MAX consistently
34539         * modules/areadlink (Depends-on): Add stdint.
34540         * modules/areadlink-with-size (Depends-on): Likewise.
34541         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34542         gives NULL; drop sys/types, since unistd gives size_t; and add
34543         stdint for SIZE_MAX.
34544         (SIZE_MAX): Rely on headers.
34545         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34546         and add stdint.
34547         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34548         (SIZE_MAX): Likewise.
34549         (INITIAL_BUF_SIZE): Turn into enum.
34550         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34551
34552 2009-10-08  Jim Meyering  <meyering@redhat.com>
34553
34554         areadlinkat: avoid compilation failure
34555         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34556         Fix typo in comment.
34557
34558 2009-10-07  Eric Blake  <ebb9@byu.net>
34559
34560         areadlinkat-with-size: new module
34561         * modules/areadlinkat-with-size: New module.
34562         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34563         * lib/areadlink.h (areadlinkat): Declare it.
34564         * MODULES.html.sh (File system functions): Mention it.
34565         * modules/areadlinkat-with-size-tests: New test.
34566         * tests/test-areadlinkat-with-size.c: New file.
34567
34568         xreadlinkat: new module
34569         * modules/xreadlinkat: New module.
34570         * lib/xreadlinkat.c (xreadlinkat): New file.
34571         * lib/xreadlink.h (xreadlinkat): Declare it.
34572         * MODULES.html.sh (File system functions): Mention it.
34573
34574         areadlinkat: new module
34575         * lib/at-func.c (FUNC_FAIL): New define.
34576         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34577         * modules/areadlinkat: New module.
34578         * lib/linkat.c (areadlinkat): Move...
34579         * lib/areadlinkat.c (areadlinkat): ...to new file.
34580         * lib/areadlink.h (areadlinkat): Declare it.
34581         * modules/linkat (Depends-on): Add areadlinkat.
34582         * MODULES.html.sh (File system functions): Mention it.
34583         * modules/areadlinkat-tests: New test.
34584         * tests/test-areadlinkat.c: New file.
34585
34586         areadlink, areadlink-with-size: add tests
34587         * modules/areadlink-tests: New test.
34588         * modules/areadlink-with-size-tests: Likewise.
34589         * tests/test-areadlink.h: New file.
34590         * tests/test-areadlink.c: Likewise.
34591         * tests/test-areadlink-with-size.c: Likewise.
34592
34593         maint: minor cleanups
34594         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34595         _UNUSED_PARAMETER_ instead.
34596         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34597         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34598         * modules/linkat-tests (Files): Distribute test-link.h.
34599
34600         openat, utimens: whitespace cleanup
34601         * lib/openat.c: Prefer space throughout, rather than mix of 8
34602         spaces vs. tabs.
34603         * lib/at-func.c: Likewise.
34604         * lib/utimens.c: Likewise.
34605
34606         openat: avoid using wrong fd
34607         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34608         working directory chooses same fd.
34609         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34610
34611         mkdir, mkdirat: fix cygwin 1.5.x bug
34612         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34613         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34614         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34615         bug.
34616         (gl_PREREQ_MKDIR): Delete unused macro.
34617         * modules/mkdir (Files): Track file rename.
34618         (configure.ac): Update macro name.
34619         * modules/openat (Depends-on): Add mkdir.
34620         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34621
34622         mkdir, mkdirat: add tests
34623         * modules/mkdir-tests: New test.
34624         * tests/test-mkdir.h: New file.
34625         * tests/test-mkdir.c: Likewise.
34626         * tests/test-mkdirat.c: Likewise.
34627         * modules/openat-tests (Files): Add new files.
34628         (Makefile.am): Run new test.
34629
34630 2009-10-06  Eric Blake  <ebb9@byu.net>
34631
34632         doc: tweak *at function documentation
34633         * doc/posix-functions/faccessat.texi (faccessat): Mention
34634         known issue with replacement.
34635         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34636         * doc/posix-functions/linkat.texi (linkat): Likewise.
34637         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34638         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34639         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34640         * doc/posix-functions/renameat.texi (renameat): Likewise.
34641         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34642
34643         openat: fix GNU/Hurd bug in unlinkat
34644         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34645         broken.
34646         * doc/posix-functions/unlink.texi (unlink): Document this.
34647         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34648
34649         fdopendir: fix GNU/Hurd bug
34650         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34651         allowing non-directory fds.
34652         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34653         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34654         * modules/dirent (Makefile.am): Substitute it.
34655         * lib/dirent.in.h (fdopendir): Declare replacement.
34656         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34657         * tests/test-fdopendir.c (main): Test something other than
34658         /dev/null, since on Hurd that behaves like a directory.
34659
34660         test-symlink: port to GNU/Hurd
34661         * tests/test-symlink.h (test_symlink): Relax expected errno.
34662
34663         doc: tweak more cygwin information
34664         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34665         now compatible with glibc.
34666         * doc/posix-functions/getopt.texi (getopt): Likewise.
34667
34668         getopt-gnu: add another test
34669         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34670         guarantee behavior relied on by m4.
34671         * tests/test-getopt.c (main): Use it.
34672         * modules/getopt-posix-tests (Depends-on): Add setenv.
34673         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34674
34675         getopt: fix compilation on darwin
34676         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34677         include.
34678         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34679         Reported by Ludovic Courtès.
34680
34681 2009-10-06  Bruno Haible  <bruno@clisp.org>
34682
34683         * modules/size_max (Description): Discourage its use.
34684         Reported by Simon Josefsson.
34685
34686 2009-10-06  Jim Meyering  <meyering@redhat.com>
34687
34688         linkat: avoid compilation failure
34689         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34690
34691 2009-10-05  Eric Blake  <ebb9@byu.net>
34692
34693         linkat: support Linux 2.6.17
34694         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34695         linkat on Linux, but allow cache variable override.
34696         * lib/linkat.c (rpl_linkat): Define override.
34697         * modules/linkat (Depends-on): Add symlinkat.
34698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34699         * modules/unistd (Makefile.am): Substitute it.
34700         * lib/unistd.in.h (linkat): Declare replacement.
34701         Reported by Pádraig Brady.
34702
34703         quotearg: port test to systems with C.UTF-8 locale
34704         * tests/test-quotearg.c (struct result_strings): Add another
34705         member, differentiating between C.ASCII and C.UTF-8 handling.
34706         (compare_strings): Add parameter.
34707         (main): Adjust all callers.
34708
34709         getopt: avoid clash with FreeBSD _getopt_internal
34710         * lib/getopt.in.h (_getopt_internal): Override the name.
34711         * lib/getopt_int.h (includes): Pick up any overrides.
34712         Reported by Reuben Thomas.
34713
34714         hash: allow C89 compilation
34715         * lib/hash.c (check_tuning): Move declaration before statement.
34716         Reported by Reuben Thomas.
34717
34718 2009-10-05  Karl Berry  <karl@gnu.org>
34719
34720         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34721
34722 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34723             Bruno Haible  <bruno@clisp.org>
34724
34725         * lib/uname.c (uname): Use a table-driven algorithm to compute
34726         Windows NT versions.
34727
34728 2009-10-04  Bruno Haible  <bruno@clisp.org>
34729
34730         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34731         program_invocation_short_name.
34732         * modules/progname (configure.ac): Test for presence of
34733         program_invocation_short_name.
34734         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34735
34736 2009-10-04  Bruno Haible  <bruno@clisp.org>
34737
34738         * lib/progname.c (set_program_name): Fix comment.
34739         Reported by Jim Meyering.
34740
34741 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34742             Bruno Haible  <bruno@clisp.org>
34743
34744         * lib/uname.c: Include <string.h>.
34745         (uname): Do only one call to GetVersionEx in the common case.
34746
34747 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34748             Bruno Haible  <bruno@clisp.org>
34749
34750         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34751         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34752         (uname): Add support for Windows CE and various non-x86 CPU types.
34753
34754 2009-10-03  Bruno Haible  <bruno@clisp.org>
34755
34756         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34757         invocation to tests/configure.ac.
34758         Reported by Ian Beckwith <ianb@erislabs.net>.
34759
34760 2009-10-02  Eric Blake  <ebb9@byu.net>
34761
34762         fchdir: avoid compiler warning
34763         * lib/fchdir.c (canonicalize_file_name)
34764         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34765
34766         test-open: support mingw errno values
34767         * tests/test-open.h (test_open): Relax test.
34768         * tests/test-fopen.h (test_fopen): Likewise.
34769         * tests/test-openat-safer.c (main): Likewise.
34770
34771         open: fix opening directory on mingw
34772         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34773
34774         test-open: on GNU/Hurd, /dev/null is a directory
34775         * tests/test-fopen.h (main): Rename...
34776         (test_fopen): ...to this.  Use a guaranteed non-directory when
34777         confirming open behavior on trailing slash.
34778         * tests/test-openat-safer.c (main): Likewise.
34779         * tests/test-open.h (main): Likewise....
34780         (test_open): ...to this.
34781         * tests/test-fopen.c (main): Adjust caller.
34782         * tests/test-fopen-safer.c (main): Likewise.
34783         * tests/test-open.c (main): Likewise.
34784         * tests/test-fcntl-safer.c (main): Likewise.
34785         Reported by Samuel Thibault.
34786
34787         rename, fchdir: don't ignore chdir failure
34788         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34789         * lib/rename.c (rpl_rename) [W32]: Likewise.
34790         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34791         an empty destination directory if source cannot be renamed,
34792         although there is still possibility for failure.
34793         * doc/posix-functions/rename.texi (rename): Document the race.
34794         Reported by Jim Meyering.
34795
34796         maint: cleanup whitespace in recent commits
34797         * lib/rename.c (rpl_rename): Remove tabs.
34798         * tests/test-link.h (test_link): Likewise.
34799         * lib/fchdir.c (get_name): Likewise.
34800         Reported by Jim Meyering.
34801
34802 2009-10-02  Ben Pfaff  <blp@gnu.org>
34803
34804         relocatable-prog-wrapper: Add missing dependency on
34805         double-slash-root.
34806         * modules/relocatable-prog-wrapper: Add dependency.
34807         Reported by Ian Beckwith <ianb@erislabs.net>.
34808
34809 2009-10-02  Eric Blake  <ebb9@byu.net>
34810
34811         renameat: fix Solaris bugs
34812         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34813         needed fixing.
34814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34815         * modules/stdio (Makefile.am): Substitute it.
34816         * lib/stdio.in.h (renameat): Declare replacement.
34817         * lib/renameat.c (rpl_renameat): Implement fix.
34818
34819         renameat: new module
34820         * modules/renameat: New file.
34821         * lib/renameat.c (renameat): Likewise.
34822         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34824         * modules/stdio (Makefile.am): Substitute them.
34825         * lib/stdio.in.h (renameat): Declare it.
34826         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34827         * doc/posix-functions/renameat.texi (renameat): Likewise.
34828         * modules/renameat-tests: New test.
34829         * tests/test-renameat.c: Likewise.
34830
34831         rename: fix mingw bugs
34832         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34833         directory overwrite bugs.
34834
34835         rename: fix another cygwin 1.5 bug
34836         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34837         checks.
34838         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34839         unnecessary cygwin workarounds.  Also work around bug with moving
34840         full directory onto an empty one.
34841         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34842
34843         rename-dest-slash: merge into rename module
34844         * modules/rename-dest-slash (Status): Mark obsolete.
34845         (Depends-on): Add rename.
34846         (Files): Let rename do it all.
34847         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34848         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34849         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34850         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34851         * lib/rename.c (rpl_rename): Update comments.
34852
34853         rename: fix cygwin 1.5.x bugs
34854         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34855         * lib/rename.c (rpl_rename): Work around them.
34856         * modules/rename (Depends-on): Add same-inode.
34857
34858         rename: fix Solaris 10 bug
34859         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34860         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34861         was the only bug.
34862
34863         rename: fix Solaris 9 bug
34864         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34865         on non-directory.  Avoid calling exit.
34866         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34867         strdup.
34868         * modules/rename-tests (Depends-on): Drop lstat.
34869         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34870         (gl_PREREQ_RENAME): Delete unused macro.
34871
34872         rename-dest-slash: fix NetBSD bug
34873         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34874         links.
34875         * modules/rename-dest-slash (Depends-on): Add same-inode.
34876
34877         rename-tests: new test, exposes several platform bugs
34878         * modules/rename-tests: New file.
34879         * tests/test-rename.h: Likewise.
34880         * tests/test-rename.c: Likewise.
34881         * doc/posix-functions/rename.texi (rename): Improve documentation,
34882         including bugs that will eventually be fixed in gnulib.
34883
34884 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34885
34886         * lib/uname.c: Include <stdlib.h>
34887         (uname): Assume version info is available.
34888
34889 2009-10-02  Jim Meyering  <meyering@redhat.com>
34890
34891         gnu-web-doc-update: correct --help output
34892         * build-aux/gnu-web-doc-update: Make --help output relevant.
34893
34894         gnu-web-doc-update: add standard options
34895         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34896
34897         gnu-web-doc-update: New module.
34898         Use this script to automatically update the on-line web documentation
34899         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34900         * modules/gnu-web-doc-update: New file, from coreutils.
34901         * build-aux/gnu-web-doc-update: New script.
34902
34903 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34904
34905         link: LoadLibrary is not needed.
34906         * lib/link.c: Use GetModuleHandle.
34907
34908 2009-10-01  Eric Blake  <ebb9@byu.net>
34909
34910         getopt: bump serial number
34911         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34912         change.
34913
34914         tests: tighten link, rmdir, and remove tests
34915         * tests/test-link.h (includes): No need to use <config.h> here.
34916         Clean up if directory hard link was created, otherwise test for
34917         trailing '.'.
34918         * tests/test-linkat.c (main): Simplify.
34919         * tests/test-remove.c (main): Enhance test for trailing '.'.
34920         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34921
34922 2009-10-01  Jim Meyering  <meyering@redhat.com>
34923
34924         maint.mk: requiring "make major" was annoying, for a "minor" release.
34925         What is intended is "stable", to contrast with alpha and beta,
34926         so require "make stable", not "make major".
34927         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34928         (get_tool_versions): Likewise.
34929         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34930
34931 2009-09-30  Ben Pfaff  <blp@gnu.org>
34932
34933         Fix broken build of replacement for Windows tmpfile().
34934         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34935         flags argument added along with the 'mkostemp' module.
34936
34937 2009-09-28  Bruno Haible  <bruno@clisp.org>
34938
34939         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34940         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34941         to 'remove_elt'.
34942         (gl_list_remove): Update.
34943         * lib/gl_list.c (gl_list_remove): Update.
34944         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34945         to 'remove_elt'.
34946         (gl_oset_remove): Update.
34947         * lib/gl_list.c (gl_oset_remove): Update.
34948         Reported by Eric Blake.
34949
34950 2009-09-28  Eric Blake  <ebb9@byu.net>
34951
34952         doc: mention yet more cygwin 1.7 status
34953         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34954         cygwin.
34955         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34956         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34957
34958         argp: fix test failure
34959         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34960         that are not upper-case.  Pass correct range to tolower.
34961
34962 2009-09-27  Jim Meyering  <meyering@redhat.com>
34963
34964         test-yesno: work around sparc-dash here-document infelicity
34965         Without this change, the literal \177 byte in a here document
34966         would make dash 0.5.5.1-3 access uninitialized memory.
34967         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34968         Instead, use a marker, "@", and filter through tr to create the desired
34969         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34970
34971 2009-09-27  Bruno Haible  <bruno@clisp.org>
34972
34973         Disable untested support for new flavours of ACLs on AIX.
34974         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34975         progress.
34976         * lib/set-mode-acl.c (qset_acl): Likewise.
34977
34978 2008-12-07  Bruno Haible  <bruno@clisp.org>
34979
34980         Add support for new flavours of ACLs on AIX. (Untested.)
34981         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34982         (file_has_acl): Add support for newer AIX.
34983         * lib/set-mode-acl.c (qset_acl): Likewise.
34984         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34985         Rainer Tammer <tammer@tammer.net>.
34986
34987 2009-09-26  Eric Blake  <ebb9@byu.net>
34988
34989         argp: fix compilation of getopt
34990         * lib/getopt.in.h (includes): Use different guard than glibc.
34991         Reported by Sergey Poznyakoff.
34992
34993         doc: mention more cygwin 1.7 status
34994         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34995         bug.
34996         * doc/posix-functions/execl.texi (execl): Likewise.
34997         * doc/posix-functions/execle.texi (execle): Likewise.
34998         * doc/posix-functions/execlp.texi (execlp): Likewise.
34999         * doc/posix-functions/execv.texi (execv): Likewise.
35000         * doc/posix-functions/execve.texi (execve): Likewise.
35001         * doc/posix-functions/execvp.texi (execvp): Likewise.
35002         * doc/glibc-functions/canonicalize_file_name.texi
35003         (canonicalize_file_name): Cygwin 1.7 now provides this.
35004         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35005         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35006         on AT_SYMLINK_NOFOLLOW.
35007
35008 2009-09-24  Eric Blake  <ebb9@byu.net>
35009
35010         test-linkat: make test more robust
35011         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35012
35013         getopt: fix inclusion guards for cygwin
35014         * modules/getopt-posix (Depends-on): Add include-next.
35015         (Makefile.am): Substitute more items in replacement header.
35016         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35017         <getopt.h>.
35018         * lib/getopt.in.h (includes): Use split inclusion guard, and
35019         prefer <getopt.h> over include <unistd.h> when one is present.
35020         (option): Also override name of 'struct option'.
35021
35022         same-inode: revert prior change; it is not yet ready
35023         * NEWS: Undo mention of this change.
35024         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35025         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35026         * lib/cycle-check.c (cycle_check): Likewise.
35027         * lib/same.c (same_name): Likewise.
35028         * lib/at-func2.c (at_func2): Likewise.
35029
35030 2009-09-23  Eric Blake  <ebb9@byu.net>
35031
35032         linkat: new module
35033         * modules/linkat: New file.
35034         * lib/at-func2.c (at_func2): Likewise.
35035         * lib/linkat.c (linkat): Likewise.
35036         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35037         * lib/openat-priv.h (at_func2): Add declaration.
35038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35039         * modules/unistd (Makefile.am): Substitute them.
35040         * lib/unistd.in.h (linkat): Declare it.
35041         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35042         * doc/posix-functions/linkat.texi (linkat): Likewise.
35043         * doc/posix-functions/link.texi (link): Tweak wording.
35044         * tests/test-link.c (main): Move guts...
35045         * tests/test-link.h (test_link): ...into new file.
35046         * modules/linkat-tests: New test.
35047         * tests/test-linkat.c: Likewise.
35048         * modules/link-tests (Files): Ship new file.
35049         (Depends-on): Add stdbool.
35050
35051         dirname: add library-safe mdir_name
35052         * lib/dirname.h (mdir_name): New prototype.
35053         * lib/dirname.c (dir_name): Move guts...
35054         (mdir_name): ...to new function that avoids xalloc_die.
35055
35056         fchdir: another mingw fix
35057         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35058         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35059         on mingw (where it has not yet been ported), and make it optional
35060         elsewhere.
35061         (_gl_register_fd): Use it.
35062
35063         same-inode: make SAME_INODE tri-state, to port to mingw
35064         * NEWS: Mention this change.
35065         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35066         st_ino always being 0.
35067         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35068         * lib/cycle-check.c (cycle_check): Likewise.
35069         * lib/same.c (same_name): Likewise.
35070
35071         lstat: avoid mingw compilation error
35072         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35073         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35074         lstat ourselves.
35075         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35076         was adequate.
35077         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35078         the checks for lstat.
35079         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35080
35081         link: fix test failure on Solaris 9
35082         * lib/link.c (rpl_link): Don't assume link will catch bogus
35083         trailing slash on source.
35084
35085         test-symlinkat: enhance test
35086         * tests/test-readlink.c (main): Move guts...
35087         * tests/test-readlink.h (test_readlink): ...into new file.
35088         * tests/test-symlink.c (main): Move guts...
35089         * tests/test-symlink.h (test_symlink): ...into new file.
35090         * tests/test-symlinkat.c (main): Use new files for further
35091         coverage.
35092         (do_symlink, do_readlink): New helper functions.
35093         * modules/symlink-tests (Files): Ship new file.
35094         (Depends-on): Add stdbool.
35095         * modules/readlink-tests (Files): Ship new file.
35096         (Depends-on): Add stdbool.
35097         * modules/symlinkat-tests (Files): Use new files.
35098
35099 2009-09-23  Eric Blake  <ebb9@byu.net>
35100
35101         readlink: document portability issue with symlink length
35102         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35103         systems have bogus st_size on symlinks, and mention the
35104         areadlink-with-size module.
35105         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35106         * doc/posix-functions/readlink.texi (readlink): Mention the
35107         areadlink module, and ERANGE failure.
35108         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35109         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35110
35111         readlink: fix Solaris 9 bug with trailing slash
35112         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35113         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35114         * doc/posix-functions/readlink.texi (readlink): Document this.
35115         * modules/readlink-tests: New test.
35116         * tests/test-readlink.c: Likewise.
35117
35118         readlink: fix cygwin 1.5.x bug with return type
35119         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35120         * lib/unistd.in.h (readlink): Use ssize_t.
35121         * lib/readlink.c (readlink): Likewise.
35122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35123         * modules/unistd (Makefile.am): Substitute it.
35124         * lib/unistd.in.h (readlink): Declare replacement.
35125         * doc/posix-functions/readlink.texi (readlink): Document this.
35126
35127         symlink: use throughout gnulib
35128         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35129         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35130         symlink is not used.
35131         * modules/symlinkat (Depends-on): Add symlink.
35132         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35133         * modules/canonicalize-tests (Depends-on): Likewise.
35134         * modules/lstat-tests (Depends-on): Likewise.
35135         * modules/openat-tests (Depends-on): Likewise.
35136         * modules/remove-tests (Depends-on): Likewise.
35137         * modules/rmdir-tests (Depends-on): Likewise.
35138         * modules/unlink-tests (Depends-on): Likewise.
35139         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35140         * tests/test-canonicalize.c (symlink): Likewise.
35141         * tests/test-fstatat.c (symlink): Likewise.
35142         * tests/test-lstat.c (symlink): Likewise.
35143         * tests/test-remove.c (symlink): Likewise.
35144         * tests/test-rmdir.c (symlink): Likewise.
35145         * tests/test-unlink.c (symlink): Likewise.
35146         * tests/test-unlinkat.c (symlink): Likewise.
35147
35148         symlink: new module, for Solaris 9 bug
35149         * modules/symlink: New file.
35150         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35151         * lib/symlink.c: Likewise.
35152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35153         * modules/unistd (Makefile.am): Substitute them.
35154         * lib/unistd.in.h (symlink): Declare replacement.
35155         * MODULES.html.sh (File system functions): Mention it.
35156         * doc/posix-functions/symlink.texi (symlink): Likewise.
35157         * modules/symlink-tests: New test.
35158         * tests/test-symlink.c: Likewise.
35159
35160 2009-09-23  Bruno Haible  <bruno@clisp.org>
35161
35162         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35163         when needed.
35164         Test case: gnulib-tool --import --with-tests atexit inttypes.
35165         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35166
35167 2009-09-23  Bruno Haible  <bruno@clisp.org>
35168
35169         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35170         subcommand, not in a subshell.
35171
35172 2009-09-22  Eric Blake  <ebb9@byu.net>
35173
35174         unistd: sort replacement declarations
35175         * lib/unistd.in.h: Sort declarations.
35176
35177         open, openat: minor optimization
35178         * lib/open.c (open): If open succeeded, len is non-zero.
35179         * lib/openat.c (rpl_openat): Likewise.
35180
35181         link-follow: ensure correct result
35182         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35183         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35184         distinguish between possible failures.
35185
35186 2009-09-21  Eric Blake  <ebb9@byu.net>
35187
35188         fts: avoid compiler warning
35189         * lib/fts.c (dirent_inode_sort_may_be_useful)
35190         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35191
35192 2009-09-19  Bruno Haible  <bruno@clisp.org>
35193
35194         * lib/progreloc.c (canonicalize_file_name): New declaration.
35195
35196 2009-09-19  Eric Blake  <ebb9@byu.net>
35197
35198         link: fix quoting
35199         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35200
35201         openat: fix openat bugs on Solaris 9
35202         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35203         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35204         * modules/openat (Depends-on): Add open.
35205         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35206         * modules/fcntl-h (Makefile.am): Substitute it.
35207         * lib/fcntl.in.h (openat): Declare replacement.
35208         * doc/posix-functions/openat.texi (openat): Document this.
35209
35210         openat: move fstatat and unlinkat into correct files
35211         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35212         compiled.
35213         * lib/openat.c (fstatat, unlinkat): Move...
35214         * lib/fstatat.c (fstatat): ...into correct files.
35215         * lib/unlinkat.c (unlinkat): Likewise.
35216
35217         openat: fix unlinkat bugs on Solaris 9
35218         * lib/unlinkat.c (unlinkat): New file.
35219         * modules/openat (Depends-on): Add unlink.
35220         (Files): Distribute it.
35221         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35222         trailing slash behavior is broken.
35223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35224         * modules/unistd (Makefile.am): Substitute it.
35225         * lib/unistd.in.h (unlinkat): Declare replacement.
35226         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35227
35228         openat: fix fstatat bugs on Solaris 9
35229         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35230         stat.
35231         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35232
35233         test-unlinkat: enhance test, to expose Solaris 9 bug
35234         * tests/test-unlink.c (main): Factor guts...
35235         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35236         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35237         * tests/test-rmdir.c (main): Adjust caller.
35238         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35239         (unlinker): New helper function.
35240         (rmdirat): Enhance check.
35241         * modules/rmdir-tests (Depends-on): Add stdbool.
35242         * modules/unlink-tests (Depends-on): Likewise.
35243         (Files): Add test-unlink.h.
35244         * modules/openat-tests (Files): Likewise.
35245         (Depends-on): Add unlinkdir.
35246
35247         test-fstatat: new test, to expose Solaris 9 bugs
35248         * tests/test-stat.c (main): Factor guts...
35249         * tests/test-stat.h (test_stat_func): ...into new file.
35250         * tests/test-lstat.c (main): Factor guts...
35251         * tests/test-lstat.h (test_lstat_func): ...into new file.
35252         * tests/test-fstatat.c: New file.
35253         * modules/stat-tests (Files): Add test-stat.h.
35254         * modules/lstat-tests (Files): Add test-lstat.h.
35255         (Depends-on): Add stdbool.
35256         * modules/openat-tests (Depends-on): Add pathmax.
35257         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35258         (Makefile.am): Run new test.
35259
35260         remove: new module, for mingw and Solaris 9 bugs
35261         * modules/remove: New file.
35262         * lib/remove.c: Likewise.
35263         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35265         * modules/stdio (Makefile.am): Use them.
35266         * lib/stdio.in.h (remove): Declare replacement.
35267         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35268         * doc/posix-functions/remove.texi (remove): Likewise.
35269         * modules/remove-tests: New test.
35270         * tests/test-remove.c: Likewise.
35271
35272         unlink: new module, for Solaris 9 bug
35273         * modules/unlink: New file.
35274         * lib/unlink.c: Likewise.
35275         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35277         * modules/unistd (Makefile.am): Use them.
35278         * lib/unistd.in.h (stat): Declare replacement.
35279         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35280         * doc/posix-functions/unlink.texi (unlink): Likewise.
35281         * modules/unlink-tests: New test.
35282         * tests/test-unlink.c: Likewise.
35283
35284         lstat: fix Solaris 9 bug
35285         * lib/lstat.c (lstat): Also check for trailing slash on
35286         non-symlink, non-directories.  Use stat module to simplify logic.
35287         * doc/posix-functions/lstat.texi (lstat): Document it.
35288         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35289         (configure.ac): Check for symlink.
35290         * tests/test-lstat.c (main): Add more tests.
35291
35292         stat: add as dependency to other modules
35293         * modules/chown (Depends-on): Add stat.
35294         * modules/euidaccess (Depends-on): Likewise.
35295         * modules/fchdir (Depends-on): Likewise.
35296         * modules/isdir (Depends-on): Likewise.
35297         * modules/link (Depends-on): Likewise.
35298         * modules/lstat (Depends-on): Likewise.
35299         * modules/mkdir-p (Depends-on): Likewise.
35300         * modules/modechange (Depends-on): Likewise.
35301         * modules/open (Depends-on): Likewise.
35302         * modules/readlink (Depends-on): Likewise.
35303         * modules/same (Depends-on): Likewise.
35304
35305         stat: fix Solaris 9 bug
35306         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35307         slash.
35308         * lib/stat.c (rpl_stat): Work around it.
35309         * doc/posix-functions/stat.texi (stat): Update documentation.
35310
35311         stat: new module, for mingw bug
35312         * modules/stat: New file.
35313         * lib/stat.c: Likewise.
35314         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35315         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35316         * modules/sys_stat (Makefile.am): Use them.
35317         * lib/sys_stat.in.h (stat): Declare replacement.
35318         * lib/openat.c (fstatat): Deal with lstat and stat being function
35319         macros.
35320         * modules/openat (Depends-on): Add inline.
35321         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35322         * doc/posix-functions/stat.texi (stat): Likewise.
35323         * modules/stat-tests: New test.
35324         * tests/test-stat.c: Likewise.
35325
35326 2009-09-19  Jim Meyering  <meyering@redhat.com>
35327
35328         syntax-check: detect unnecessary inclusion of canonicalize.h
35329         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35330
35331 2009-09-19  Eric Blake  <ebb9@byu.net>
35332
35333         canonicalize-lgpl: adjust clients to use correct header
35334         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35335         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35336         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35337         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35338         * lib/progreloc.c (includes): Likewise.
35339
35340 2009-09-19  Jim Meyering  <meyering@redhat.com>
35341
35342         test-posixtm.c: correct a comment
35343         * tests/test-posixtm.c: Correct first-line comment.
35344         Spotted by Eric Blake.
35345
35346 2009-09-16  Jim Meyering  <meyering@redhat.com>
35347
35348         posixtm-tests: make T const-correct; add a test case
35349         * tests/test-posixtm.c (T): Declare const.
35350         Add a test for -(2^31+1).
35351         Remove useless can-succeed-only-in-2002 test.
35352
35353         posixtm-tests: adjust the sole failing test
35354         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35355         expected output matches what mktime now produces.  Cross-checked via
35356         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35357
35358         posixtm: move #ifdef'd tests into a new module
35359         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35360         * tests/test-posixtm.c: ... this new file.
35361         * modules/posixtm-tests: New module.
35362
35363 2009-09-19  Eric Blake  <ebb9@byu.net>
35364
35365         openat: simplify use of at-func.c
35366         * lib/at-func.c (includes): Include prerequisites here, to
35367         simplify requirements on client files.
35368         * lib/openat-priv.h: Add double-inclusion guard.
35369         * lib/faccessat.c (includes): Simplify.
35370         * lib/fchmodat.c (includes): Likewise.
35371         * lib/fchownat.c (includes): Likewise.
35372         * lib/mkdirat.c (includes): Likewise.
35373         * lib/mkfifoat.c (includes): Likewise.
35374         * lib/symlinkat.c (includes): Likewise.
35375
35376         openat: allow return of fd 0
35377         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35378         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35379         unistd-safer.
35380         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35381         <fcntl.h>; this module does not leak fds.
35382         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35383         must be allowed to return 0, leaving openat_safer to add the
35384         safety.
35385         (openat_permissive): Avoid writing to just-opened fd 2 if
35386         restoring the current directory fails.
35387         * lib/openat-die.c (openat_restore_fail): Add comment.
35388         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35389         (save_cwd): Guarantee safe fd, but without use of open_safer.
35390         * tests/test-openat.c: New test.
35391         * modules/openat-tests (Files, Makefile.am): Distribute and build
35392         new file.
35393
35394         relocatable-prog-wrapper: fix build
35395         * modules/relocatable-prog-wrapper (Files): Update name of
35396         canonicalize m4 file, broken on 2009-09-17.
35397         Reported by emad hajjar <aleppos@hotmail.com>.
35398
35399 2009-09-19  Bruno Haible  <bruno@clisp.org>
35400
35401         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35402         * lib/safe-alloc.c: Likewise.
35403         Reported by Ian Beckwith <ianb@erislabs.net>.
35404
35405 2009-09-18  Bruno Haible  <bruno@clisp.org>
35406
35407         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35408         Reported by <erobles@sensacd.com.mx>.
35409
35410 2009-09-17  Eric Blake  <ebb9@byu.net>
35411
35412         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35413         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35414         slashes when checking if last component is missing.
35415         * tests/test-canonicalize.c (main): Test this.
35416
35417         canonicalize, canonicalize-lgpl: honor // if distinct from /
35418         * modules/canonicalize (Files): Add double-slash-root.m4.
35419         * modules/canonicalize-lgpl (Files): Likewise.
35420         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35421         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35422         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35423         fallback definition.
35424         (canonicalize_filename_mode): Use it to protect //.
35425         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35426         (__realpath): Likewise.
35427         * tests/test-canonicalize.c (main): Test this.
35428         * tests/test-canonicalize-lgpl.c (main): Likewise.
35429         * modules/canonicalize-tests (Depends-on): Add same-inode.
35430         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35431
35432         canonicalize-lgpl: fix glibc bug with trailing slash
35433         * m4/canonicalize-lgpl.m4: Move contents...
35434         * m4/canonicalize.m4: ...here.
35435         (gl_CANONICALIZE_LGPL): Factor realpath check...
35436         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35437         glibc 2.3.5 bug, fixed 2005-04-27.
35438         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35439         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35440         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35441         * modules/canonicalize-lgpl (Files): Manage file rename.
35442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35443         * modules/stdlib (Makefile.am): Substitute witness.
35444         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35445         is needed.
35446         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35447         replacement is required.
35448         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35449         * doc/glibc-functions/canonicalize_file_name.texi
35450         (canonicalize_file_name): Document this.
35451         * doc/posix-functions/realpath.texi (realpath): Likewise.
35452
35453         canonicalize-lgpl: reject non-directory with trailing slash
35454         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35455         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35456         catches failures in glibc 2.3.5.
35457         * tests/test-canonicalize.c (main): Likewise.
35458
35459         canonicalize-lgpl: use native realpath if it works
35460         * lib/canonicalize-lgpl.c (realpath): Guard with
35461         FUNC_REALPATH_WORKS.
35462         * lib/stdlib.in.h (realpath): Make declaration optional based on
35463         HAVE_REALPATH.
35464         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35465         native realpath works.
35466         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35467         * modules/stdlib (Makefile.am): Substitute witness.
35468
35469         canonicalize, canonicalize-lgpl: use <stdlib.h>
35470         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35471         (Include): Mention <stdlib.h>.
35472         (configure.ac): Mention functions we provide.
35473         * modules/canonicalize (configure.ac): Likewise.
35474         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35475         realpath if canonicalize_file_name is missing.
35476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35477         * modules/stdlib (Makefile.am): Substitute witnesses.
35478         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35479         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35480         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35481         * NEWS: Document this.
35482         * doc/glibc-functions/canonicalize_file_name.texi
35483         (canonicalize_file_name): Likewise.
35484         * doc/posix-functions/realpath.texi (realpath): Likewise.
35485         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35486
35487         test-canonicalize: consolidate into single C program
35488         * tests/test-canonicalize.sh: Delete; move setup into...
35489         * tests/test-canonicalize.c (main): ...the program, making it
35490         easier to run in debugger.  Add some tests.
35491         * modules/canonicalize-tests (Files): Remove unused file.
35492         (Depends-on): Add progname.
35493         (configure.ac, Makefile.am): Simplify.
35494
35495         test-canonicalize-lgpl: consolidate into single C program
35496         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35497         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35498         easier to run in debugger.  Add some tests.
35499         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35500         (configure.ac, Makefile.am): Simplify.
35501
35502         canonicalize: avoid resolvepath
35503         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35504         unnecessary checks.
35505         * lib/canonicalize.c (includes): Simplify.
35506         (canonicalize_file_name): Drop resolvepath implementation.
35507         * modules/canonicalize (Depends-on): Drop filenamecat.
35508
35509         canonicalize: don't lose errno
35510         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35511         over calls to free.
35512
35513         canonicalize: simplify errno handling
35514         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35515         assignment.
35516
35517         canonicalize, canonicalize-lgpl: update module dependencies
35518         * modules/canonicalize (Depends-on): Add extensions, lstat,
35519         pathmax, stdlib.
35520         (Files): Drop pathmax.h.
35521         (configure.ac): Adjust macro name.
35522         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35523         lstat, stdlib, sys_stat.
35524         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35525         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35526         extensions.
35527         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35528         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35529         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35530         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35531         declaration, if available.
35532         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35533         we can rely on the readlink module.
35534         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35535         (includes): Use <unistd.h> unconditionally.
35536
35537 2009-09-17  Eric Blake  <ebb9@byu.net>
35538
35539         maint: make Include sections of modules consistent
35540         * modules/alloca: Use only header name; no need to list #include.
35541         * modules/alloca-opt: Likewise.
35542         * modules/arpa_inet: Likewise.
35543         * modules/canon-host: Likewise.
35544         * modules/configmake: Likewise.
35545         * modules/dirent: Likewise.
35546         * modules/eealloc: Likewise.
35547         * modules/environ: Likewise.
35548         * modules/fchdir: Likewise.
35549         * modules/fcntl: Likewise.
35550         * modules/fcntl-h: Likewise.
35551         * modules/gethrxtime: Likewise.
35552         * modules/gettime: Likewise.
35553         * modules/ignore-value: Likewise.
35554         * modules/inet_ntop: Likewise.
35555         * modules/inet_pton: Likewise.
35556         * modules/inttypes: Likewise.
35557         * modules/isnand-nolibm: Likewise.
35558         * modules/isnanf-nolibm: Likewise.
35559         * modules/mbchar: Likewise.
35560         * modules/mbfile: Likewise.
35561         * modules/mbiter: Likewise.
35562         * modules/mbuiter: Likewise.
35563         * modules/netdb: Likewise.
35564         * modules/netinet_in: Likewise.
35565         * modules/nproc: Likewise.
35566         * modules/pagealign_alloc: Likewise.
35567         * modules/poll: Likewise.
35568         * modules/printf-frexp: Likewise.
35569         * modules/pthread: Likewise.
35570         * modules/putenv: Likewise.
35571         * modules/random_r: Likewise.
35572         * modules/relocatable-prog: Likewise.
35573         * modules/search: Likewise.
35574         * modules/select: Likewise.
35575         * modules/selinux-h: Likewise.
35576         * modules/settime: Likewise.
35577         * modules/signal: Likewise.
35578         * modules/size_max: Likewise.
35579         * modules/socklen: Likewise.
35580         * modules/ssize_t: Likewise.
35581         * modules/stdarg: Likewise.
35582         * modules/stdbool: Likewise.
35583         * modules/stddef: Likewise.
35584         * modules/stdint: Likewise.
35585         * modules/stdio: Likewise.
35586         * modules/stdlib: Likewise.
35587         * modules/string: Likewise.
35588         * modules/strings: Likewise.
35589         * modules/sys_file: Likewise.
35590         * modules/sys_ioctl: Likewise.
35591         * modules/sys_select: Likewise.
35592         * modules/sys_socket: Likewise.
35593         * modules/sys_stat: Likewise.
35594         * modules/sys_time: Likewise.
35595         * modules/sys_times: Likewise.
35596         * modules/sys_utsname: Likewise.
35597         * modules/sys_wait: Likewise.
35598         * modules/sysexits: Likewise.
35599         * modules/time: Likewise.
35600         * modules/times: Likewise.
35601         * modules/tmpfile: Likewise.
35602         * modules/trim: Likewise.
35603         * modules/unistd: Likewise.
35604         * modules/wchar: Likewise.
35605         * modules/wctype: Likewise.
35606
35607 2009-09-17  Bruno Haible  <bruno@clisp.org>
35608
35609         Make getdate.y compile on QNX and NetBSD 5 / i386.
35610         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35611         TIME_T_FITS_IN_LONG_INT.
35612         * lib/getdate.y (long_time_t): New type.
35613         (relative_time): Change type of 'seconds' field to long_time_t.
35614         (get_date): Update types of local variables. Check against overflow
35615         during conversion from long_time_t to time_t.
35616         Reported by Matt Kraai <kraai@ftbfs.org>
35617         and Hasso Tepper <hasso@netbsd.org>.
35618
35619 2009-09-17  Bruno Haible  <bruno@clisp.org>
35620
35621         * modules/COPYING: Update copyright years.
35622         * modules/README: Likeiwse.
35623         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35624         Reported by Ian Beckwith <ianb@erislabs.net>.
35625
35626 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35627
35628         * users.txt: Update references for gnuit package.
35629
35630 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35631
35632         * m4/getdelim.m4: Fix typo in copyright line.
35633
35634 2009-09-17  Bruno Haible  <bruno@clisp.org>
35635
35636         * lib/atoll.c: Use the standard header with GPL copyright.
35637         * lib/argz.in.h: Likewise.
35638         * lib/glob.c: Likewise.
35639         * lib/glob-libc.h: Likewise.
35640         * lib/random_r.c: Likewise.
35641         * lib/siglist.h: Likewise.
35642         * lib/strsignal.c: Likewise.
35643         Reported by Ian Beckwith <ianb@erislabs.net>.
35644
35645 2009-09-17  Eric Blake  <ebb9@byu.net>
35646
35647         rmdir: ensure correct dependency order
35648         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35649
35650 2009-09-17  Bruno Haible  <bruno@clisp.org>
35651
35652         Disable assertion that fails on NetBSD 5 / i386.
35653         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35654         Reported by Sam Steingold <sds@gnu.org>
35655         and Hasso Tepper <hasso@netbsd.org>.
35656
35657 2009-09-16  Eric Blake  <ebb9@byu.net>
35658
35659         unlinkdir: port to mingw
35660         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35661         on which no one can unlink a directory.
35662
35663         stdlib: sort witness names
35664         * modules/stdlib (Makefile.am): Sort replacements.
35665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35666         * lib/stdlib.in.h: Likewise.
35667
35668         parse-duration-tests: avoid link failure
35669         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35670         LIBINTL.
35671         Reported by Tom G. Christensen.
35672
35673         openat-tests: ensure unlinkat behaves like rmdir
35674         * tests/test-rmdir.c (main): Factor guts...
35675         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35676         * modules/rmdir-tests (Files): Ship new file.
35677         * modules/openat-tests: New test.
35678         * tests/test-unlinkat.c: Likewise.
35679
35680         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35681         * modules/rmdir-errno (Status, Notice): Now obsolete.
35682
35683         rmdir: work around cygwin 1.5.x and mingw bugs
35684         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35685         * lib/rmdir.c (rmdir): Work around it.
35686         * modules/rmdir (Status, Notice): No longer obsolete.
35687         (Files): Add dos.m4.
35688         (Depends-on): Add unistd.
35689         (configure.ac): Set witnesses.
35690         (License): Relax to LGPLv2+.
35691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35692         * modules/unistd (Makefile.am): Substitute witnesses.
35693         * lib/unistd.in.h (rmdir): Declare replacement.
35694         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35695         * modules/rmdir-tests: New tests.
35696         * tests/test-rmdir.c: Likewise.
35697
35698 2009-09-15  Eric Blake  <ebb9@byu.net>
35699
35700         fchdir: improve use of replacement functions
35701         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35702         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35703         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35704         REPLACE_CLOSEDIR.
35705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35706         * modules/sys_stat (Makefile.am): Substitute correct witness.
35707         * modules/dirent (Makefile.am): Likewise.
35708         * modules/unistd (Makefile.am): Likewise.
35709         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35710         * lib/unistd.in.h (dup): Likewise.
35711         * lib/sys_stat.in.h (fstat): Likewise.
35712
35713         maint: ignore gnulib-tool temp files
35714         * .gitignore: Ignore files created during gnulib-tool --test.
35715
35716 2009-09-13  Jim Meyering  <meyering@redhat.com>
35717
35718         posixtm: don't reject a time that specify "60" as the number of seconds
35719         * lib/posixtm.c (posixtime): The code to reject invalid dates
35720         would also reject a time specified with the .60 suffix.
35721         But POSIX allows that, in order to accommodate leap seconds.
35722         So don't reject it.
35723         (main): Adjust tests accordingly.
35724         * modules/posixtm (Depends-on): Add stpcpy.
35725
35726 2009-09-11  Jim Meyering  <meyering@redhat.com>
35727
35728         announce-gen: include [$release_type] in emitted Subject:
35729         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35730         e.g., [stable] in the emitted Subject: line.
35731
35732 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35733
35734         Remove obsolete macros from several modules.
35735         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35736         obsolete Autoconf macros with their modern counterparts.
35737         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35738         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35739         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35740         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35741         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35742         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35743         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35744         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35745         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35746         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35747         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35748         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35749         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35750         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35751         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35752         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35753         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35754         * m4/time_r.m4 (gl_TIME_R): Likewise.
35755         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35756         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35757         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35758
35759         Fix copyright header in build-aux scripts.
35760         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35761         recommendation.
35762         * build-aux/ncftpput-ftp: Likewise.
35763         * build-aux/update-copyright: Likewise.
35764
35765 2009-09-09  Eric Blake  <ebb9@byu.net>
35766
35767         test-link: allow Linux choice of errno
35768         * tests/test-link.c (main): Relax test for alternate error.
35769
35770         strndup: fix improper m4 caching
35771         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35772         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35773         (gl_PREREQ_STRNDUP): Delete.
35774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35775         * modules/string (Makefile.am): Substitute it.
35776         * lib/string.in.h (strndup): Modernize prototype.
35777
35778         getcwd: port to mingw
35779         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35780         different from the POSIX assumptions made throughout the getcwd
35781         module; fortunately, the mingw getcwd does not need replacement.
35782         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35783         * modules/getcwd-tests: New test.
35784         * tests/test-getcwd.c: Likewise.
35785
35786         link: fix platform bugs
35787         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35788         * lib/link.c (link): Work around them.  Fix related mingw bug.
35789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35790         * modules/unistd (Makefile.am): Substitute it.
35791         * lib/unistd.in.h (link): Declare replacement.
35792         * doc/posix-functions/link.texi (link): Document this.
35793         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35794
35795         test-link: consolidate into single C program, test more cases
35796         * tests/test-link.sh: Delete.
35797         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35798         at least Cygwin and Solaris.
35799         * modules/link-tests (Files): Remove unused file.
35800         (Depends-on): Add errno, sys_stat.
35801         (Makefile.am): Simplify.
35802
35803 2009-09-08  Bruno Haible  <bruno@clisp.org>
35804
35805         Work around towlower, towupper bug on mingw.
35806         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35807         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35808         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35809         * doc/posix-functions/towupper.texi: Likewise.
35810         Reported by Eric Blake.
35811
35812 2009-09-08  Jim Meyering  <meyering@redhat.com>
35813
35814         build: don't try to run autoheader if we don't use it
35815         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35816         is not used in configure.ac.
35817
35818 2009-09-08  Eric Blake  <ebb9@byu.net>
35819
35820         euidaccess: fix compilation error
35821         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35822
35823         rawmemchr: relax license
35824         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35825         okay.
35826         Reported by Jim Meyering.
35827
35828         mkfifoat: new module
35829         * modules/mkfifoat: New file.
35830         * lib/mkfifoat.c: Likewise.
35831         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35832         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35833         * modules/sys_stat (Makefile.am): Use them.
35834         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35835         * MODULES.html.sh (File system functions): Mention module.
35836         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35837         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35838         * modules/mkfifoat-tests: New test.
35839         * tests/test-mkfifoat.c: Likewise.
35840
35841         strchrnul: relax license
35842         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35843         okay.
35844         Reported by Jim Meyering.
35845
35846 2009-09-08  Eric Blake  <ebb9@byu.net>
35847
35848         fstatat: fix compilation on Solaris
35849         * lib/fstatat.c (includes): Add fcntl.h.
35850         Reported by Pádraig Brady.
35851
35852 2009-09-07  Eric Blake  <ebb9@byu.net>
35853
35854         rename: modernize replacement
35855         * modules/rename (Depends-on): Add stdio.
35856         (configure.ac): Declare witness.
35857         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35858         stdio take care of replacement.
35859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35860         * modules/stdio (Makefile.am): Substitute them.
35861         * lib/stdio.in.h (rename): Declare replacement.
35862         * lib/rename.c (includes): Allow cross-compilation to non-windows
35863         machines.
35864         * doc/posix-functions/rename.texi (rename): Improve
35865         documentation.
35866
35867         stdio: sort witness names
35868         * modules/stdio (Makefile.am): Sort replacements.
35869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35870         * lib/stdio.in.h: Likewise.
35871
35872         getcwd: minor cleanups
35873         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35874         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35875
35876         openat: provide more convenience names
35877         * modules/faccessat (configure.ac): Add C witness.
35878         * lib/unistd.in.h (readlinkat): Fix typo.
35879         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35880         convenience wrappers.
35881         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35882         wrappers in syntax checks.
35883
35884 2009-09-06  Eric Blake  <ebb9@byu.net>
35885
35886         doc: fix comments in recent patches
35887         * lib/faccessat.c: Mention correct function.
35888         * lib/fchmodat.c: Likewise.
35889         * lib/fchownat.c: Likewise.
35890         * lib/symlinkat.c: Likewise.
35891         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35892         constants.
35893
35894         faccessat, symlinkat: continue cleanup of previous patch
35895         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35896         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35897         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35899         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35900         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35901         set.
35902
35903 2009-09-06  Bruno Haible  <bruno@clisp.org>
35904
35905         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35906         (fstatat): Declare if GNULIB_FSTATAT is set.
35907         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35908         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35909         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35910         * modules/fcntl-h (Files): Remove m4/openat.m4.
35911         * modules/sys_stat (Files): Remove m4/openat.m4.
35912         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35913         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35914         * modules/unistd (Files): Remove m4/openat.m4.
35915         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35916         GNULIB_OPENAT.
35917         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35918         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35919         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35920         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35921         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35922         gl_OPENAT_DEFAULTS.
35923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35924         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35925         Don't require gl_OPENAT_DEFAULTS.
35926         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35927         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35928         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35929         (gl_OPENAT_DEFAULTS): Remove macro.
35930
35931 2009-09-06  Bruno Haible  <bruno@clisp.org>
35932
35933         * modules/openat (configure.ac): Remove unneeded witness.
35934
35935 2009-09-06  Bruno Haible  <bruno@clisp.org>
35936
35937         Set errno to ENOSYS when a function is entirely unsupported.
35938         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35939         EOPNOTSUPP.
35940         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35941         * modules/chown (Depends-on): Remove errno.
35942
35943 2009-09-06  Bruno Haible  <bruno@clisp.org>
35944
35945         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35946
35947 2009-09-06  Bruno Haible  <bruno@clisp.org>
35948
35949         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35950
35951 2009-09-06  Ben Pfaff  <blp@gnu.org>
35952             Bruno Haible  <bruno@clisp.org>
35953
35954         Work around a glibc bug in strtok_r.
35955         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35956         Undefine if UNDEFINE_STRTOK_R is set.
35957         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35958         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35959         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35960         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35961         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35962         UNDEFINE_STRTOK_R.
35963         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35964
35965 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35966
35967         exclude: minor fix
35968         * lib/exclude.c: Include wctype.h
35969
35970 2009-09-06  Akim Demaille  <demaille@gostai.com>
35971
35972         bootstrap: improve error message
35973         * build-aux/bootstrap (find_tool): Upon failure, report the list
35974         of candidates.
35975         Honor the initial value of the envvar.
35976
35977 2009-09-05  Eric Blake  <ebb9@byu.net>
35978
35979         symlinkat: new module
35980         * modules/symlinkat: New file.
35981         * lib/symlinkat.c: Likewise.
35982         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35984         * modules/unistd (Makefile.am): Use them.
35985         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35986         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35987         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35988         * MODULES.html.sh (File system functions): Mention module.
35989         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35990         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35991         * modules/symlinkat-tests: New test.
35992         * tests/test-symlinkat.c: Likewise.
35993
35994         test-openat-safer: add more checks
35995         * tests/test-openat-safer.c (main): Check more code paths.
35996
35997 2009-09-05  Jim Meyering  <meyering@redhat.com>
35998
35999         syntax-check: detect unnecessary inclusion of openat.h
36000         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36001
36002 2009-09-05  Bruno Haible  <bruno@clisp.org>
36003
36004         Support towlower, towupper.
36005         * doc/posix-functions/towlower.texi: Mention module wctype.
36006         * doc/posix-functions/towupper.texi: Likewise.
36007         * lib/wctype.in.h (towlower, towupper): New functions.
36008         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36009         (ASSERT): New macro.
36010         (e): New variable.
36011         (main): Test also towlower, towupper. Test WEOF argument.
36012         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36013
36014 2009-09-05  Bruno Haible  <bruno@clisp.org>
36015
36016         Fix conversion behaviour when the input is invalid.
36017         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36018         mark occurring in first pass of indirect conversion.
36019         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36020         input.
36021         Found by clang's static analyzer.
36022
36023 2009-09-05  Bruno Haible  <bruno@clisp.org>
36024
36025         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36026         where direct conversion is possible.
36027
36028 2009-09-04  Eric Blake  <ebb9@byu.net>
36029
36030         openat: fail with ENOENT on empty name
36031         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36032         buffer.
36033
36034         link-follow: fix logic bug in prior patch
36035         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36036         reversed sense of yes and no in prior patch.  Avoid confusing
36037         compilation failure with desired semantics.
36038
36039         link-follow: accomodate mingw and cross-compilation
36040         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36041         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36042         cross-compilation results to -1, to make linkat easier to
36043         implement when cross-compiling.  Trivially support mingw.
36044         * modules/link-follow (configure.ac): Call new name.
36045         * NEWS: Mention this.
36046
36047 2009-09-03  Eric Blake  <ebb9@byu.net>
36048
36049         faccessat: compile replacement
36050         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36051         needed.
36052
36053         fts: fix compilation error
36054         * lib/fts.c (includes): Re-add "openat.h", for
36055         openat_needs_fchdir.
36056
36057         faccessat: new module
36058         * modules/faccessat: New file.
36059         * lib/faccessat.c: Likewise.
36060         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36062         * modules/unistd (Makefile.am): Use it.
36063         * lib/unistd.in.h (faccessat): Declare it.
36064         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36065         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36066         * MODULES.html.sh (File system functions): Mention it.
36067         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36068         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36069
36070         euidaccess: prefer POSIX over non-standard implementation
36071         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36072         * lib/euidaccess.c (euidaccess): Use it if available.
36073
36074         openat: make template easier to use
36075         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36076         AT_FUNC_F2 to be undefined.
36077         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36078         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36079         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36080         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36081         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36082         Likewise.
36083         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36084         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36085         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36086         Likewise.
36087
36088         openat: declare in POSIX headers
36089         * NEWS: Mention this.
36090         * modules/openat (configure.ac): Declare witnesses.
36091         (Depends-on): Add fcntl-h, sys_stat, unistd.
36092         (Include): Mention correct headers.
36093         * modules/fcntl-h (Depends-on): Add link-warning.
36094         (Files): Add openat.m4.
36095         (Makefile.am): Substitute witnesses.
36096         * modules/sys_stat (Files, Makefile.am): Likewise.
36097         * modules/unistd (Files, Makefile.am): Likewise.
36098         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36099         (gl_OPENAT_DEFAULTS): New macro.
36100         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36103         (SYS_STAT_H): Remove unused variable.
36104         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36105         * lib/fcntl--.h (includes): Remove unneeded header.
36106         * lib/openat-safer.c (includes): Likewise.
36107         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36108         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36109         appropriate headers.
36110         (__OPENAT_PREFIX): Delete.
36111         * lib/fcntl.in.h (openat): Provide declaration.
36112         (AT_FDCWD): Fix Solaris bug.
36113         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36114         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36115         * lib/fchmodat.c (includes):  Adjust to find declaration.
36116         * lib/fchownat.c (includes): Likewise.
36117         * lib/mkdirat.c (includes): Likewise.
36118         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36119         still visible.
36120
36121 2009-09-02  Eric Blake  <ebb9@byu.net>
36122
36123         errno: use consistently
36124         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36125         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36126         * lib/canonicalize.c (ELOOP): Likewise.
36127         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36128         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36129         * lib/lchown.c (EOPNOTSUPP): Likewise.
36130         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36131         * lib/savewd.c (ESTALE): Likewise.
36132         * lib/settime.c (ENOSYS): Likewise.
36133         * lib/utimens.c (ENOSYS): Likewise.
36134         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36135         * lib/chdir-safer.c (ELOOP): Likewise.
36136         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36137         * modules/c-stack (Depends-on): Add errno.
36138         * modules/canonicalize (Depends-on): Likewise.
36139         * modules/chdir-safer (Depends-on): Likewise.
36140         * modules/fdopendir (Depends-on): Likewise.
36141         * modules/inet_ntop (Depends-on): Likewise.
36142         * modules/inet_pton (Depends-on): Likewise.
36143         * modules/lchown (Depends-on): Likewise.
36144         * modules/openat (Depends-on): Likewise.
36145         * modules/savewd (Depends-on): Likewise.
36146         * modules/settime (Depends-on): Likewise.
36147         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36148
36149         fts: avoid leaking fds
36150         * modules/fts (Depends-on): Add cloexec.
36151         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36152         flag.
36153
36154         fts: make directory fds more robust
36155         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36156         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36157
36158         backupfile, chdir-long, fts, savedir: make safer
36159         * lib/backupfile.c (includes): Use "dirent--.h", since
36160         numbered_backup can write to stderr during readdir.
36161         * lib/savedir.c (includes): Likewise.
36162         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36163         emulation can write to stderr on failure.
36164         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36165         * lib/getcwd.c: Document why opendir_safer is unused.
36166         * lib/glob.c: Likewise.
36167         * lib/scandir.c: Likewise.
36168         * lib/openat-proc.c: Likewise, for open_safer.
36169         * modules/backupfile (Depends-on): Add dirent-safer.
36170         * modules/savedir (Depends-on): Likewise.
36171         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36172         * modules/chdir-long (Depends-on): Add openat-safer.
36173
36174         openat-safer: new module
36175         * modules/openat-safer: New file.
36176         * lib/openat-safer.c: Likewise.
36177         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36178         * lib/fcntl-safer.h (openat_safer): Declare.
36179         * lib/fcntl--.h (openat): Override.
36180         * MODULES.html.sh (File descriptor based I/O): Mention it.
36181         * lib/openat.h: Add double-inclusion guards.
36182         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36183         "fcntl--.h", so we can implement openat.
36184         * modules/openat-safer-tests: New test.
36185         * tests/test-openat-safer.c: New file.
36186
36187         dirent-safer: new module
36188         * modules/dirent-safer: New file.
36189         * lib/dirent--.h: Likewise.
36190         * lib/dirent-safer.h: Likewise.
36191         * lib/opendir-safer.c: Likewise.
36192         * m4/dirent-safer.m4: Likewise.
36193         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36194         * modules/dirent-safer-tests: New test.
36195         * tests/test-dirent-safer.c: New file.
36196         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36197
36198         fdopendir: optimize on mingw
36199         * lib/unistd.in.h (_gl_directory_name): New prototype.
36200         * lib/fchdir.c (_gl_directory_name): Implement it.
36201         (fchdir): Use it to simplify implementation.
36202         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36203         fchdir, when available, to avoid calling [f]chdir().
36204
36205         fdopendir: split into its own module
36206         * lib/openat.c (fdopendir): Move...
36207         * lib/fdopendir.c: ...into new file.
36208         * modules/fdopendir: New module.
36209         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36210         * modules/openat (Depends-on): Add fdopendir.
36211         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36212         fdopendir here.
36213         * modules/savedir (Depends-on): Only need fdopendir, not full
36214         openat.
36215         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36216         * lib/openat.h (fdopendir): Drop prototype.
36217         * lib/dirent.in.h (fdopendir): Provide prototype.
36218         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36219         * modules/dirent (Makefile.am): Substitute them.
36220         * MODULES.html.sh (File system functions): Mention it.
36221         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36222         * modules/fdopendir-tests: New file.
36223         * tests/test-fdopendir.c: Likewise.
36224
36225         fchdir: use more consistent macro convention
36226         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36227         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36228         REPLACE_FCHDIR, rather than relying on config.h macros.
36229         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36230         inside a single make-time REPLACE_FCHDIR block, rather than using
36231         the config.h FCHDIR_REPLACEMENT.
36232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36233         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36234         Manage fstat replacement.
36235         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36236         REPLACE_FCHDIR.
36237         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36238         (Makefile.am): Substitute REPLACE_FCHDIR.
36239         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36240         FCHDIR_REPLACEMENT.
36241         * lib/dup-safer.c (dup_safer): Likewise.
36242         * lib/dup2.c (rpl_dup2): Likewise.
36243         * lib/dup3.c (rpl_dup3): Likewise.
36244         * lib/open.c (rpl_open): Likewise.
36245
36246         fchdir: simplify error handling, and support dup3
36247         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36248         stdbool, malloc-posix, realloc-posix.
36249         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36250         (ensure_dirs_slot): Return false on allocation failure.
36251         (rpl_dup2): Delete.
36252         (_gl_register_dup): New function.
36253         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36254         (_gl_register_fd): Close fd on allocation failure.
36255         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36256         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36257         prototype.
36258         (rpl_dup2_fchdir): Delete prototype.
36259         * lib/open.c (open): Update caller.
36260         * lib/dup2.c (dup2): Track fchdir metadata.
36261         * lib/dup3.c (dup3): Likewise.
36262         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36263         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36264
36265 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36266
36267         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36268         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36269         don't pass arguments to AC_OUTPUT.
36270
36271 2009-09-02  Bruno Haible  <bruno@clisp.org>
36272
36273         * modules/mkdtemp (License): Relicense under LGPLv2+.
36274         Reported by Paolo Bonzini.
36275
36276 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36277
36278         Replace uses of obsolete autoconf macros in Jim's modules.
36279         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36280         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36281         can evoke a warning from autoconf when run with -Wobsolete
36282         enabled.  They were declared obsolete for good reasons (see
36283         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36284         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36285         should not continue using the deprecated macros.
36286         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36287         obsolete Autoconf macros with modern counterparts.
36288         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36289         * m4/dos.m4 (gl_AC_DOS): Likewise.
36290         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36291         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36292         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36293         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36294         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36295         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36296         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36297         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36298         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36299         Likewise.
36300         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36301         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36302         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36303         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36304         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36305         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36306
36307 2009-09-01  Eric Blake  <ebb9@byu.net>
36308
36309         fchdir: fix off-by-one bug in previous patch
36310         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36311         (_gl_unregister_fd): Delete useless if.
36312
36313 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36314
36315         maint.mk: sort the list of syntax-check rules
36316         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36317         easier to get a sense of progress when the rules are run sequentially
36318         and take a long time.
36319
36320 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36321
36322         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36323         * modules/netinet_in: Likewise.
36324         * modules/sys_file: Likewise.
36325         * modules/sys_ioctl: Likewise.
36326         * modules/sys_select: Likewise.
36327         * modules/sys_socket: Likewise.
36328         * modules/sys_stat: Likewise.
36329         * modules/sys_time: Likewise.
36330         * modules/sys_times: Likewise.
36331         * modules/sys_utsname: Likewise.
36332         * modules/sys_wait: Likewise.
36333
36334 2009-09-01  Jim Meyering  <meyering@redhat.com>
36335
36336         fts: help ensure that return values are not ignored
36337         * lib/fts_.h (__GNUC_PREREQ): Define.
36338         (__attribute_warn_unused_result__): Define.
36339         (fts_children, fts_close, fts_open, fts_read): Declare with
36340         __attribute_warn_unused_result__.
36341
36342         fts: fts_close now fails also when closing a dir file descriptor fails
36343         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36344         and propagate to caller, along with errno.
36345
36346         announce-gen: correct formatting in --help output
36347         * build-aux/announce-gen (usage): Move the one-line description in
36348         --help output "up", to where it belongs, just after Usage:.
36349
36350 2009-08-31  Eric Blake  <ebb9@byu.net>
36351
36352         fchdir: port to mingw
36353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36354         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36355         opened, then use a substitute.
36356         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36357         replacement.
36358         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36359         (_gl_register_fd): No need to check stat if open already filters
36360         all directories.
36361         (fchdir): Fix error condition to match POSIX.
36362         * modules/fchdir (Depends-on): Add sys_stat.
36363         * doc/posix-functions/open.texi (open): Document the limitation.
36364         * modules/fchdir-tests: New file.
36365         * tests/test-fchdir.c: Likewise.
36366
36367         canonicalize: allow cross-testing from cygwin to mingw
36368         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36369         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36370         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36371         Likewise.
36372         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36373         target does not support symlinks.
36374         * tests/test-canonicalize-lgpl.sh: Likewise.
36375
36376         chown: avoid compilation warning on mingw
36377         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36378         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36379         mingw.
36380         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36381         * modules/chown (Depends-on): Add errno.
36382
36383 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36384
36385         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36386         command.
36387
36388 2009-08-31  Jim Meyering  <meyering@redhat.com>
36389
36390         canonicalize: remove useless initialization
36391         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36392         initialization of local, "end".
36393
36394 2009-08-30  Bruno Haible  <bruno@clisp.org>
36395
36396         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36397         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36398         ENOSYS.
36399
36400 2009-08-30  Bruno Haible  <bruno@clisp.org>
36401
36402         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36403         /usr/xpg4/bin/tr when it exists.
36404         * tests/test-pipe-filter-gi1.sh: Likewise.
36405
36406 2009-08-30  Bruno Haible  <bruno@clisp.org>
36407
36408         Work around deficient /usr/bin/id program on Solaris.
36409         * tests/test-file-has-acl.sh (ID): New variable.
36410         * tests/test-set-mode-acl.sh (ID): Likewise.
36411         * tests/test-copy-acl.sh (ID): Likewise.
36412         * tests/test-copy-file.sh (ID): Likewise.
36413
36414 2009-08-30  Bruno Haible  <bruno@clisp.org>
36415
36416         New module 'xstriconveh'.
36417         * lib/xstriconveh.h: New file.
36418         * lib/xstriconveh.c: New file.
36419         * modules/xstriconveh: New file.
36420
36421 2009-08-30  Bruno Haible  <bruno@clisp.org>
36422
36423         Make it easier to use mem_cd_iconveh.
36424         * lib/striconveh.h (iconveh_t): New type.
36425         (iconveh_open, iconveh_close): New declarations.
36426         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36427         with a single 'const iconveh_t *' argument.
36428         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36429         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36430         with a single 'const iconveh_t *' argument.
36431         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36432         * tests/test-striconveh.c (main): Update.
36433         * NEWS: Mention the change.
36434
36435 2009-08-30  Bruno Haible  <bruno@clisp.org>
36436
36437         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36438         problem.
36439
36440 2009-08-30  Bruno Haible  <bruno@clisp.org>
36441
36442         Work around iconv_open problem on Solaris.
36443         * lib/iconv_open-solaris.gperf: New file.
36444         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36445         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36446         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36447         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36448         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36449         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36450
36451 2009-08-29  Jim Meyering  <meyering@redhat.com>
36452
36453         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36454         * top/maint.mk (cvs-check): Remove target; it was just an alias
36455         to the better-named vc-diff-check.
36456         (maintainer-distcheck): Remove rule.  It was used only from
36457         the (alpha/beta/major) target, and all of its commands but one
36458         were coreutils-specific.
36459         (vc-dist): Remove rule.
36460         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36461         Run vc-diff-check, not vc-dist.
36462         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36463
36464 2009-08-27  Bruno Haible  <bruno@clisp.org>
36465
36466         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36467         of 0.
36468
36469 2009-08-27  Bruno Haible  <bruno@clisp.org>
36470
36471         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36472         compilers.
36473         * doc/func.texi: Document the SunPRO C bug.
36474
36475 2009-08-27  Bruno Haible  <bruno@clisp.org>
36476
36477         Fix link error on Solaris.
36478         * tests/test-parse-duration.c (xstrdup): Remove function.
36479
36480 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36481
36482         ignore-value: handle pointer types, too
36483         * lib/ignore-value.h (__attribute__): Remove definition.
36484         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36485         of a more concise and more-often effective "(void) i" statement.
36486         (ignore_ptr): New function to suppress warnings from functions that
36487         return pointers, and to make it explicit that one function doesn't
36488         handle all cases.
36489
36490 2009-08-25  Bruno Haible  <bruno@clisp.org>
36491
36492         dup2: work around a Linux bug.
36493         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36494         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36495         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36496         Reported by Simon Josefsson.
36497
36498 2009-08-25  Jim Meyering  <meyering@redhat.com>
36499
36500         libguestfs uses gnulib
36501         * users.txt: Add libguestfs.
36502
36503 2009-08-24  Eric Blake  <ebb9@byu.net>
36504
36505         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36506         * lib/pipe2.c (includes): Add binary-io.h.
36507         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36508
36509 2009-08-24  Bruno Haible  <bruno@clisp.org>
36510
36511         Tolerate declared but missing accept4 syscall.
36512         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36513         available.
36514         * lib/sys_socket.in.h (accept4): If the function is already present,
36515         override it.
36516         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36517         * modules/accept4 (Makefile.am): Compile accept4.c always.
36518         Reported by Paolo Bonzini and Eric Blake.
36519
36520 2009-08-23  Bruno Haible  <bruno@clisp.org>
36521
36522         New module 'accept4'.
36523         * lib/sys_socket.in.h (accept4): New declaration.
36524         * lib/accept4.c: New file.
36525         * m4/accept4.m4: New file.
36526         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36527         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36528         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36529         HAVE_ACCEPT4.
36530         * modules/accept4: New file.
36531         * doc/glibc-functions/accept4.texi: Mention the new module.
36532
36533 2009-08-24  Jim Meyering  <meyering@redhat.com>
36534
36535         progname: also set global program_invocation_name, when possible
36536         Before this change, a libtool-enabled program that calls glibc's
36537         error function would report the program name as
36538         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36539         * modules/progname (configure.ac): Check for a declaration of
36540         program_invocation_name.
36541         * lib/progname.c:  Include <errno.h>.
36542         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36543         Set program_invocation_name.
36544
36545 2009-08-23  Bruno Haible  <bruno@clisp.org>
36546
36547         * lib/dup3.c: Include <string.h>.
36548
36549 2009-08-23  Bruno Haible  <bruno@clisp.org>
36550
36551         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36552         * lib/pipe2.c (pipe2): Likewise.
36553         Suggested by Eric Blake.
36554
36555 2009-08-23  Bruno Haible  <bruno@clisp.org>
36556
36557         Tolerate declared but missing dup3 syscall.
36558         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36559         * lib/unistd.in.h (dup3): If the function is already present,
36560         override it.
36561         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36562         * modules/dup3 (Makefile.am): Compile dup3.c always.
36563         Reported by Paolo Bonzini.
36564
36565 2009-08-23  Bruno Haible  <bruno@clisp.org>
36566
36567         Tolerate declared but missing pipe2 syscall.
36568         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36569         available.
36570         * lib/unistd.in.h (pipe2): If the function is already present,
36571         override it.
36572         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36573         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36574         Reported by Paolo Bonzini.
36575
36576 2009-08-23  Bruno Haible  <bruno@clisp.org>
36577
36578         * lib/pipe2.c (pipe2): Move #ifs inside function.
36579
36580 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36581
36582         quotearg: document limitations of quote_these_too
36583         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36584         those limitations are created.
36585         * lib/quotearg.h (set_char_quoting): Document that digits and
36586         letters that are special after backslash are not permitted.
36587         (quotearg_char): Cross-reference set_char_quoting documentation.
36588
36589 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36590
36591         quotearg: implement custom_quoting_style
36592         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36593         right_quote fields.
36594         (set_custom_quoting): New public function.
36595         (quotearg_buffer_restyled): Add left_quote and right_quote
36596         arguments, handle them very much like locale quoting, and update
36597         all uses.
36598         (quotearg_n_custom): New public function.
36599         (quotearg_n_custom_mem): New public function.
36600         (quotearg_custom): New public function.
36601         (quotearg_custom_mem): New public function.
36602         * lib/quotearg.h: Prototype and document new public functions.
36603         (enum quoting_style): For escape_quoting_style and
36604         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36605         ignored even though they're otherwise like c_quoting_style.
36606         Add custom_quoting_style member and document with comparison to
36607         clocale_quoting_style.
36608         * tests/test-quotearg.c (custom_quotes): New array.
36609         (custom_results): New array.
36610         (main): Extend to test custom quoting.
36611
36612 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36613
36614         quotearg: fix right quote escaping when it's in quote_these_too
36615         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36616         quote, be sure to prepend only one backslash.
36617         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36618         (main): Test it.
36619
36620 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36621
36622         quotearg-tests: test escaping of embedded locale quotes
36623         * tests/test-quotearg.c (struct result_strings): Add member for
36624         new input.
36625         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36626         (inputs): Add new input.
36627         (results_g): Add expected results.
36628         (flag_results): Likewise.
36629         (locale_results): Likewise.
36630         (compare_strings): Check those.
36631
36632 2009-08-23  Bruno Haible  <bruno@clisp.org>
36633
36634         Tests for module 'dup3'.
36635         * modules/dup3-tests: New file.
36636         * tests/test-dup3.c: New file.
36637
36638         New module 'dup3'.
36639         * lib/unistd.in.h (dup3): New declaration.
36640         * lib/dup3.c: New file.
36641         * m4/dup3.m4: New file.
36642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36643         HAVE_DUP3.
36644         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36645         * modules/dup3: New file.
36646         * doc/glibc-functions/dup3.texi: Mention the new module.
36647
36648 2009-08-23  Bruno Haible  <bruno@clisp.org>
36649
36650         Tweak the dup2 test.
36651         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36652         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36653         the test file is still empty. Fix argument order of lseek.
36654
36655 2009-08-23  Bruno Haible  <bruno@clisp.org>
36656
36657         Avoid test link errors when the modules getopt-gnu, gettext are used.
36658         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36659         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36660
36661 2009-08-23  Bruno Haible  <bruno@clisp.org>
36662
36663         Fix getdtablesize() on mingw.
36664         * lib/getdtablesize.c (getdtablesize): Implement differently.
36665         * lib/unistd.in.h (getdtablesize): Improve comment.
36666
36667 2009-08-23  Bruno Haible  <bruno@clisp.org>
36668
36669         New module 'mkostemp'.
36670         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36671         * lib/stdlib.in.h (mksotemp): New declaration.
36672         * lib/mkostemp.c: New file, from glibc with modifications.
36673         * lib/tempname.h (GT_FILE): Remove outdated comment.
36674         (gen_tempname): Add flags argument.
36675         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36676         (__GT_FILE): Map to 1.
36677         (small_open, large_open): Remove macros.
36678         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36679         * lib/mkstemp.c (mkstemp): Update.
36680         * lib/mkdtemp.c (mkdtemp): Likewise.
36681         * m4/mkostemp.m4: New file.
36682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36683         HAVE_MKOSTEMP.
36684         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36685         HAVE_MKOSTEMP.
36686         * modules/mkostemp: New file, based on modules/mkstemp.
36687         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36688         * NEWS: Mention the change.
36689
36690 2009-08-23  Bruno Haible  <bruno@clisp.org>
36691
36692         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36693         Reported by Eric Blake.
36694
36695 2009-08-23  Bruno Haible  <bruno@clisp.org>
36696
36697         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36698         Reported by Eric Blake.
36699
36700 2009-08-23  Bruno Haible  <bruno@clisp.org>
36701
36702         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36703         * modules/pipe2 (Depends-on): Likewise.
36704
36705 2009-08-23  Eric Blake  <ebb9@byu.net>
36706
36707         fcntl-h: add O_TTY_INIT support
36708         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36709         * tests/test-fcntl-h.c (o): Test it.
36710         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36711
36712         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36713         * modules/fcntl: Move <fcntl.h> header replacement...
36714         * modules/fcntl-h: ...to new name, so as not to collide with
36715         like-named function.
36716         * tests/test-fcntl.c: Rename...
36717         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36718         * modules/fcntl-tests: Rename...
36719         * modules/fcntl-h-tests: ...to this.  Update test file name.
36720         * modules/chdir-long (Depends-on): Update clients.
36721         * modules/chdir-safer (Depends-on): Likewise.
36722         * modules/fcntl-safer (Depends-on): Likewise.
36723         * modules/fts (Depends-on): Likewise.
36724         * modules/mkancesdirs (Depends-on): Likewise.
36725         * modules/mkdir-p (Depends-on): Likewise.
36726         * modules/open (Depends-on): Likewise.
36727         * modules/savewd (Depends-on): Likewise.
36728         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36729         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36730
36731 2009-08-22  Bruno Haible  <bruno@clisp.org>
36732
36733         * modules/binary-io (License): Relicense under LGPL.
36734         * modules/pipe2 (License): Likewise.
36735
36736 2009-08-22  Bruno Haible  <bruno@clisp.org>
36737
36738         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36739         return value.
36740         * lib/pipe-filter-gi.c (filter_init): Likewise.
36741         Reported by Eric Blake.
36742
36743 2009-08-22  Bruno Haible  <bruno@clisp.org>
36744
36745         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36746         * modules/pipe (Depends-on): Add pipe2.
36747
36748 2009-08-22  Bruno Haible  <bruno@clisp.org>
36749
36750         Tests for module 'pipe2'.
36751         * modules/pipe2-tests: New file.
36752         * tests/test-pipe2.c: New file.
36753
36754         New module 'pipe2'.
36755         * lib/unistd.in.h (pipe2): New declaration.
36756         * lib/pipe2.c: New file.
36757         * m4/pipe2.m4: New file.
36758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36759         HAVE_PIPE2.
36760         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36761         * modules/pipe2: New file.
36762         * doc/glibc-functions/pipe2.texi: Mention the new module.
36763
36764 2009-08-22  Bruno Haible  <bruno@clisp.org>
36765
36766         Reference some new glibc functions.
36767         * doc/glibc-functions/accept4.texi: New file.
36768         * doc/glibc-functions/dup3.texi: New file.
36769         * doc/glibc-functions/mkostemp.texi: New file.
36770         * doc/glibc-functions/pipe2.texi: New file.
36771         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36772         (Glibc sys/socket.h): Refer to accept4.
36773         (Glibc unistd.h): Refer to dup3, pipe2.
36774         Reported by Eric Blake.
36775
36776 2009-08-22  Jim Meyering  <meyering@redhat.com>
36777             Bruno Haible  <bruno@clisp.org>
36778
36779         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36780         This makes it so packages using automake-1.11's silent-rules option
36781         can print e.g., a single "GEN    configmake.h" line, rather than
36782         the 30+ statements that perform the job.  If you want to see the
36783         actual commands, you can still run "make V=1".
36784         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36785         so that make output is abbreviated when those variables are defined
36786         appropriately.
36787         * modules/argz: Likewise.
36788         * modules/arpa_inet: Likewise.
36789         * modules/byteswap: Likewise.
36790         * modules/configmake: Likewise.
36791         * modules/dirent: Likewise.
36792         * modules/errno: Likewise.
36793         * modules/fcntl: Likewise.
36794         * modules/float: Likewise.
36795         * modules/fnmatch: Likewise.
36796         * modules/getopt-posix: Likewise.
36797         * modules/glob: Likewise.
36798         * modules/iconv_open: Likewise.
36799         * modules/inttypes: Likewise.
36800         * modules/localcharset: Likewise.
36801         * modules/locale: Likewise.
36802         * modules/math: Likewise.
36803         * modules/netdb: Likewise.
36804         * modules/netinet_in: Likewise.
36805         * modules/poll: Likewise.
36806         * modules/posix_spawnp-tests: Likewise.
36807         * modules/sched: Likewise.
36808         * modules/search: Likewise.
36809         * modules/selinux-h: Likewise.
36810         * modules/signal: Likewise.
36811         * modules/spawn: Likewise.
36812         * modules/stdarg: Likewise.
36813         * modules/stdbool: Likewise.
36814         * modules/stddef: Likewise.
36815         * modules/stdint: Likewise.
36816         * modules/stdio: Likewise.
36817         * modules/stdlib: Likewise.
36818         * modules/string: Likewise.
36819         * modules/strings: Likewise.
36820         * modules/sys_file: Likewise.
36821         * modules/sys_ioctl: Likewise.
36822         * modules/sys_select: Likewise.
36823         * modules/sys_socket: Likewise.
36824         * modules/sys_stat: Likewise.
36825         * modules/sys_time: Likewise.
36826         * modules/sys_times: Likewise.
36827         * modules/sys_utsname: Likewise.
36828         * modules/sys_wait: Likewise.
36829         * modules/sysexits: Likewise.
36830         * modules/time: Likewise.
36831         * modules/unistd: Likewise.
36832         * modules/wchar: Likewise.
36833         * modules/wctype: Likewise.
36834
36835 2009-08-22  Jim Meyering  <meyering@redhat.com>
36836
36837         announce-gen: detect write failure
36838         * build-aux/announce-gen: Add Coda at end.
36839         Remove equivalent-but-more-verbose block at top.
36840
36841 2009-08-19  Akim Demaille  <demaille@gostai.com>
36842
36843         bootstrap: --help to stdout.
36844         * bootstrap (usage): Don't send --help to stderr.
36845         Use a here doc instead of a long string.
36846
36847 2009-08-21  Eric Blake  <ebb9@byu.net>
36848
36849         test-popen-safer: split from test-popen
36850         * tests/test-popen.c (main): Move...
36851         * tests/test-popen.h: ...into new file.
36852         * tests/test-popen-safer2.c: New file.
36853         * modules/popen-tests (Files): Add test-popen.h.
36854         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36855         Suggested by Bruno Haible.
36856
36857         test-fcntl-safer: split from test-open
36858         * tests/test-open.c (main): Move...
36859         * tests/test-open.h: ...into new file.
36860         * tests/test-fcntl-safer.c: New file.
36861         * modules/open-tests (Files): Add test-open.h.
36862         * modules/fcntl-safer-tests: New file.
36863         Suggested by Bruno Haible.
36864
36865         test-fopen-safer: split from test-fopen
36866         * tests/test-fopen.c (main): Move...
36867         * tests/test-fopen.h: ...into new file.
36868         * tests/test-fopen-safer.c: New file.
36869         * modules/fopen-tests (Files): Add test-fopen.h.
36870         * modules/fopen-safer-tests: New file.
36871         Suggested by Bruno Haible.
36872
36873 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36874
36875         popen-safer: test O_CLOEXEC at run-time.
36876         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36877
36878 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36879
36880         fcntl: move more flags to the header
36881         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36882         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36883         * lib/fcntl.in.h: Do both things here.
36884
36885 2009-08-21  Jim Meyering  <meyering@redhat.com>
36886
36887         consistently remove $@-t before redirecting to it
36888         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36889         * modules/alloca-opt: Likewise.
36890         * modules/byteswap: Likewise.
36891         * modules/fnmatch: Likewise.
36892         * modules/getopt-posix: Likewise.
36893         * modules/glob: Likewise.
36894         * modules/poll: Likewise.
36895         * modules/posix_spawnp-tests: Likewise.
36896         * modules/sys_socket: Likewise.
36897         * modules/sysexits: Likewise.
36898
36899 2009-08-21  Eric Blake  <ebb9@byu.net>
36900
36901         popen: simplify access to original popen
36902         * lib/popen.c (rpl_popen): No need to worry about popen being a
36903         macro.
36904         Reported by Bruno Haible.
36905
36906 2009-08-20  Eric Blake  <ebb9@byu.net>
36907
36908         build: avoid some compiler warnings
36909         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36910         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36911         type.
36912         (new_exclude_segment, excluded_file_pattern_p)
36913         (excluded_file_name_p): Reduce scope.
36914         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36915         old-style declaration.
36916
36917 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36918
36919         * tests/test-exclude1.sh: Handle Windows EOL.
36920         * tests/test-exclude2.sh: Likewise.
36921         * tests/test-exclude3.sh: Likewise.
36922         * tests/test-exclude4.sh: Likewise.
36923         * tests/test-exclude5.sh: Likewise.
36924         * tests/test-exclude6.sh: Likewise.
36925         * tests/test-exclude7.sh: Likewise.
36926
36927 2009-08-19  Akim Demaille  <demaille@gostai.com>
36928
36929         bootstrap: find sha1sum when named gsha1sum.
36930         * bootstrap (find_tool): New.
36931         ($SHA1SUM): New.
36932         Use it.
36933
36934 2009-08-20  Jim Meyering  <meyering@redhat.com>
36935
36936         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36937         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36938         expression that converts "." in a file name to "\." in the resulting
36939         regexp.  Start with a dummy statement, so that prior shell variable
36940         definitions are expanded portably.  Reported by Simon Josefsson.
36941
36942 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36943
36944         Fix polling for writeability of a screen buffer.
36945         * lib/poll.c: Distinguish input and screen buffers for the
36946         Win32 implementation.
36947         * lib/select.c: Likewise.
36948
36949 2009-08-19  Eric Blake  <ebb9@byu.net>
36950
36951         popen-safer: prevent popen from clobbering std descriptors
36952         * modules/popen-safer: New file.
36953         * lib/popen-safer.c: Likewise.
36954         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36955         * lib/stdio--.h (popen): Provide override.
36956         * lib/stdio-safer.h (popen_safer): Provide declaration.
36957         * tests/test-popen.c (includes): Partially test this.
36958         * modules/popen-safer-tests: New file, for more tests.
36959         * tests/test-popen-safer.c: Likewise.
36960         * MODULES.html.sh (file stream based Input/Output): Mention it.
36961
36962         tests: test some of the *-safer modules
36963         * modules/fopen-safer (Depends-on): Add fopen.
36964         * modules/fcntl-safer (Depends-on): Add fcntl.
36965         * modules/stdlib-safer (Depends-on): Add stdlib.
36966         (configure.ac): Set indicator.
36967         * modules/unistd-safer (configure.ac): Likewise.
36968         * modules/tmpfile-safer (configure.ac): Likewise.
36969         (Depends-on): Add tmpfile.
36970         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36971         active.
36972         * tests/test-fopen.c (includes): Test safer versions when they are
36973         in use.
36974         * tests/test-open.c (includes): Likewise.
36975
36976         popen: fix cygwin 1.5 bug when stdin closed
36977         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36978         * modules/popen: New file.
36979         * modules/popen-tests: Likewise.
36980         * tests/test-popen.c: Likewise.
36981         * m4/popen.m4: Likewise.
36982         * lib/popen.c: Likewise.
36983         * lib/stdio.in.h (popen): New declaration.
36984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36985         * modules/stdio (Makefile.am): Likewise.
36986         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36987
36988 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36989
36990         maint.mk: give full control over update-copyright exclusions
36991         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36992         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36993         (update-copyright): Don't force inclusion of top-level
36994         ChangeLog.  Don't force exclusion of all COPYING files, but make
36995         them the default exclusion instead.
36996
36997 2009-08-16  Bruno Haible  <bruno@clisp.org>
36998
36999         Fix test failures on Solaris 10.
37000         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37001         tests when Solaris iconv() is used.
37002         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37003         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37004         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37005         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37006         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37007
37008 2009-08-16  Bruno Haible  <bruno@clisp.org>
37009
37010         Fix test failures on Solaris 10.
37011         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37012         'tr' program and pass it as first argument.
37013         * tests/test-pipe-filter-gi1.sh: Likewise.
37014         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37015         program as first argument.
37016         * tests/test-pipe-filter-gi1.c (main): Likewise.
37017
37018 2009-08-16  Eric Blake  <ebb9@byu.net>
37019
37020         fpurge: fix previous commits
37021         * modules/fpurge (Makefile.am): Make replacement conditional,
37022         partially reverting 2007-04-29 change; missed in previous
37023         attempt.
37024         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37025         is missing.
37026
37027 2009-08-16  Bruno Haible  <bruno@clisp.org>
37028
37029         Clarify fpurge's effect on the file position.
37030         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37031         * tests/test-fpurge.c (main): Make a second pass for checking the file
37032         position.
37033
37034 2009-08-16  Bruno Haible  <bruno@clisp.org>
37035
37036         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37037         declaration of fpurge is missing.
37038         * tests/test-fpurge.c (main): Check that the file has not more contents
37039         than expected. Close the file before removing it.
37040
37041 2009-08-15  Eric Blake  <ebb9@byu.net>
37042
37043         fpurge: don't wrap working cygwin implementation
37044         * lib/fpurge.c (fpurge): Fix comment typo.
37045         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37046         1.7 to avoid replacement.
37047         * tests/test-fpurge.c (main): Enhance test.
37048
37049 2009-08-15  Eric Blake  <ebb9@byu.net>
37050         and Jim Meyering  <meyering@redhat.com>
37051
37052         test-update-copyright: skip if perl is insufficient
37053         * tests/test-update-copyright.sh: Failure to run maintainer tool
37054         should not cause testsuite failure on cygwin 1.5.
37055
37056 2009-08-14  Eric Blake  <ebb9@byu.net>
37057
37058         doc: mention more functions added in cygwin 1.7.0
37059         * doc/posix-headers/limits.texi (limits.h): Update for recent
37060         cygwin additions.
37061         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37062         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37063         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37064         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37065         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37066
37067 2009-08-14  Eric Blake  <ebb9@byu.net>
37068
37069         maint.mk: simplify update-copyright rule
37070         * top/maint.mk (update-copyright-local): Delete, and document how
37071         to do it in cfg.mk instead.
37072         (update-copyright-exclude-regexp): Delete, and document how to do
37073         it in .x-update-copyright instead.
37074         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37075         exclude ChangeLog.
37076
37077 2009-08-14  Bruno Haible  <bruno@clisp.org>
37078
37079         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37080
37081 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37082
37083         maint.mk: support update-copyright-env
37084         * top/maint.mk (update-copyright-env): Define place-holder.
37085         (update-copyright): Expand $(update-copyright-env) before
37086         invoking update-copyright.
37087
37088 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37089
37090         update-copyright: implement forced reformatting
37091         * build-aux/update-copyright: Implement and document
37092         UPDATE_COPYRIGHT_FORCE.
37093         * tests/test-update-copyright.sh: Test it.
37094
37095 2009-08-14  Eric Blake  <ebb9@byu.net>
37096         and Bruno Haible  <bruno@clisp.org>
37097
37098         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37099         * tests/test-locale.c: Revert previous patch related to NULL.
37100         * tests/test-stdio.c: Likewise.
37101         * tests/test-stdlib.c: Likewise.
37102         * tests/test-string.c: Likewise.
37103         * tests/test-unistd.c: Likewise.
37104         * modules/time-tests (Depends-on): Add verify.
37105         * modules/wchar-tests (Depends-on): Likewise.
37106         * tests/test-time.c: Test for NULL compliance.
37107         * tests/test-wchar.c: Likewise.
37108         * modules/locale (Depends-on): Add stddef.
37109         * modules/stdio (Depends-on): Likewise.
37110         * modules/stdlib (Depends-on): Likewise.
37111         * modules/string (Depends-on): Likewise.
37112         * modules/time (Depends-on): Likewise.
37113         * modules/unistd (Depends-on): Likewise.
37114         * modules/wchar (Depends-on): Likewise.
37115         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37116         * lib/stdlib.in.h (includes): Likewise.
37117         * lib/string.in.h (includes): Likewise.
37118         * lib/time.in.h (includes): Likewise.
37119         * lib/unistd.in.h (includes): Likewise.
37120         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37121         replaced.
37122         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37123         * m4/stddef_h.m4: New file.
37124         * modules/stddef: Likewise.
37125         * lib/stddef.in.h: Likewise.
37126         * modules/stddef-tests: Likewise.
37127         * tests/test-stddef.c: Likewise.
37128         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37129         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37130         * doc/posix-headers/locale.texi (locale.h): Likewise.
37131         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37132         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37133         * doc/posix-headers/string.texi (string.h): Likewise.
37134         * doc/posix-headers/time.texi (time.h): Likewise.
37135         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37136         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37137
37138 2009-08-14  Eric Blake  <ebb9@byu.net>
37139
37140         doc: improve git diff of texinfo files
37141         * .gitattributes: Add rule for *.texi files, with hint on how to
37142         use it.
37143         Copied from m4, and based on a report by Bruno Haible.
37144
37145 2009-08-14  Bruno Haible  <bruno@clisp.org>
37146
37147         Disable multithread support by default on Cygwin 1.5.x for real.
37148         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37149
37150 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37151
37152         update-copyright: much ado about intervals
37153         * build-aux/update-copyright: Implement and document
37154         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37155         of copyright year intervals.
37156         Also, document UPDATE_COPYRIGHT_YEAR.
37157         * tests/test-update-copyright.sh: Test it.
37158
37159         update-copyright: convert 2-digit to 4-digit years
37160         * build-aux/update-copyright: Implement and document.
37161         * tests/test-update-copyright.sh: Update.
37162
37163 2009-08-14  Jim Meyering  <meyering@redhat.com>
37164
37165         test-exclude: avoid coreutils "make check" failure
37166         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37167         just as in test-argmatch.c.
37168
37169 2009-08-13  Eric Blake  <ebb9@byu.net>
37170
37171         test-dup2: fix bad assumption
37172         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37173         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37174
37175         test-version-etc: fix CRLF portability issue
37176         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37177         recognize \r.
37178         * tests/test-argp-version-etc-1.sh: Likewise.
37179
37180         getopt: update client modules
37181         * modules/argp (Depends-on): Use getopt-gnu.
37182         * modules/git-merge-changelog (Depends-on): Likewise.
37183         * modules/long-options (Depends-on): Likewise.
37184         * modules/xstrtol (Depends-on): Likewise.
37185
37186 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37187
37188         * tests/test-version-etc.sh: Don't fail on different
37189         project/version.  Don't fail on CRLF differences.  Rewrite to use
37190         multiple -e instead of multiple sed forks, suggested by Eric Blake
37191         <ebb9@byu.net>.
37192         * tests/test-argp-version-etc-1.sh: Likewise.
37193
37194 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37195
37196         * tests/test-version-etc.sh: Don't fail on different
37197         project/version.
37198
37199 2009-08-12  Bruno Haible  <bruno@clisp.org>
37200
37201         Tests for modules 'getopt-posix', 'getopt-gnu'.
37202         * modules/getopt-posix-tests: New file.
37203         * tests/test-getopt.c: New file.
37204         * tests/test-getopt.h: New file.
37205         * tests/test-getopt_long.h: New file.
37206
37207         New modules 'getopt-posix', 'getopt-gnu'.
37208         * modules/getopt-gnu: New file, renamed from modules/getopt.
37209         * modules/getopt-posix: New file.
37210         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37211         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37212         (gl_GETOPT): Remove macro.
37213         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37214         Disable the test against BSD systems that declare optreset. Test
37215         against mingw bug. Test against lack of support of optional arguments
37216         on many platforms.
37217         * doc/glibc-headers/getopt.texi: Update module name and list of
37218         relevant platforms.
37219         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37220         'getopt-gnu' and more portability problems.
37221         * NEWS: Mention the changes.
37222
37223 2009-08-12  Bruno Haible  <bruno@clisp.org>
37224
37225         Ensure that optarg etc. get declared by <unistd.h>.
37226         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37227         AC_USE_SYSTEM_EXTENSIONS.
37228         * modules/getopt (Depends-on): Add 'extensions'.
37229
37230 2009-08-12  Bruno Haible  <bruno@clisp.org>
37231
37232         Avoid test link errors.
37233         * modules/pipe-filter-ii-tests (Makefile.am): Define
37234         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37235         * modules/pipe-filter-gi-tests (Makefile.am): Define
37236         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37237         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37238
37239 2009-08-12  Bruno Haible  <bruno@clisp.org>
37240
37241         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37242         gl_GETOPT_SUBSTITUTE before.
37243         (gl_GETOPT): Use it.
37244         * m4/argp.m4 (gl_ARGP): Update.
37245         Reported by Sergey Poznyakoff.
37246
37247         * m4/getopt.m4: Reorder macros.
37248         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37249         (gl_GETOPT_SUBSTITUTE): Remove macro.
37250
37251 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37252
37253         Minor improvement in gitlog-to-changelog
37254
37255         * build-aux/gitlog-to-changelog: New option `--format' makes
37256         output format string configurable.
37257
37258 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37259
37260         Optimize exclude: use hash tables for non-wildcard patterns.
37261
37262         * lib/exclude.c: Include hash.h and mbuiter.h
37263         (struct exclude_pattern, exclude_segment): New data types.
37264         (struct exclude): Rewrite.
37265         (fnmatch_pattern_has_wildcards): New function.
37266         (new_exclude_segment, free_exclude_segment): New functions.
37267         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37268         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37269         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37270         * modules/exclude: Depend on hash and mbuiter.
37271
37272         * modules/exclude-tests: New file.
37273         * tests/test-exclude.c: New file.
37274         * tests/test-exclude1.sh: New file.
37275         * tests/test-exclude2.sh: New file.
37276         * tests/test-exclude3.sh: New file.
37277         * tests/test-exclude4.sh: New file.
37278         * tests/test-exclude5.sh: New file.
37279         * tests/test-exclude6.sh: New file.
37280         * tests/test-exclude7.sh: New file.
37281
37282 2009-08-12  Bruno Haible  <bruno@clisp.org>
37283
37284         Ensure that getopt() gets declared by <unistd.h>.
37285         * lib/unistd.in.h: Conditionally include getopt.h.
37286         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37287         Set GNULIB_UNISTD_H_GETOPT.
37288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37289         GNULIB_UNISTD_H_GETOPT.
37290         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37291
37292 2009-08-12  Bruno Haible  <bruno@clisp.org>
37293
37294         Clarify logic.
37295         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37296         gl_replace_getopt instead of GETOPT_H.
37297
37298 2009-08-12  Bruno Haible  <bruno@clisp.org>
37299
37300         * m4/getopt.m4: Add comments.
37301
37302 2009-08-12  Bruno Haible  <bruno@clisp.org>
37303
37304         Disable multithread support by default on Cygwin 1.5.x.
37305         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37306         set gl_use_threads=no if not specified otherwise.
37307
37308 2009-08-11  Bruno Haible  <bruno@clisp.org>
37309
37310         Avoid compilation error on NetBSD 5.0.
37311         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37312         * tests/test-stdio.c: Likewise.
37313         * tests/test-stdlib.c: Likewise.
37314         * tests/test-string.c: Likewise.
37315         * tests/test-unistd.c: Likewise.
37316         Reported by Greg Troxel <gdt@ir.bbn.com>
37317         at <https://savannah.gnu.org/support/?106973>.
37318
37319 2009-08-11  Bruno Haible  <bruno@clisp.org>
37320
37321         * modules/dup2-tests (Depends-on): Remove close.
37322
37323         Undo 2009-07-19 commit.
37324         * modules/acl-tests (Depends-on): Remove close.
37325         * modules/binary-io-tests (Depends-on): Likewise.
37326         * modules/closein-tests (Depends-on): Likewise.
37327         * modules/flock-tests (Depends-on): Likewise.
37328         * modules/fsync-tests (Depends-on): Likewise.
37329         * modules/lseek-tests (Depends-on): Likewise.
37330         * modules/pipe-tests (Depends-on): Likewise.
37331         * modules/posix_spawn-tests (Depends-on): Likewise.
37332         * modules/posix_spawnp-tests (Depends-on): Likewise.
37333         * modules/stat-time-tests (Depends-on): Likewise.
37334         * modules/yesno-tests (Depends-on): Likewise.
37335
37336 2009-08-10  Bruno Haible  <bruno@clisp.org>
37337
37338         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37339
37340 2009-08-10  Bruno Haible  <bruno@clisp.org>
37341
37342         Fix a gcc warning.
37343         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37344
37345 2009-08-10  Bruno Haible  <bruno@clisp.org>
37346
37347         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37348         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37349         not only the first time.
37350         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37351         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37352         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37353         is 1, not only the the first time.
37354
37355 2009-08-10  Bruno Haible  <bruno@clisp.org>
37356
37357         Make it possible to use module 'gethostname' without module 'close'.
37358         * lib/unistd.in.h (close): Evoke a link error only if
37359         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37361         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37362         * modules/unistd (Makefile.am): Substitute
37363         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37364         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37365         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37366         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37367         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37368         * modules/sys_ioctl (Makefile.am): Substitute
37369         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37370         * modules/socket (configure.ac): On native Windows, set
37371         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37372         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37373         Reported by Sam Steingold <sds@gnu.org>.
37374
37375 2009-08-10  Bruno Haible  <bruno@clisp.org>
37376
37377         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37378         * modules/ioctl (configure.ac): Likewise.
37379
37380 2009-08-10  Bruno Haible  <bruno@clisp.org>
37381
37382         Avoid collision between gnulib wrapper and libintl wrapper.
37383         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37384         already defined in intl/printf.c.
37385         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37386         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37387
37388 2009-08-09  Bruno Haible  <bruno@clisp.org>
37389
37390         Make <sys/select.h> really self-contained, also on Solaris 10.
37391         * lib/sys_select.in.h: Include <string.h>.
37392         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37393         Solaris 10 problem.
37394         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37395         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37396         Reported by Jim Meyering.
37397
37398 2009-08-09  Bruno Haible  <bruno@clisp.org>
37399
37400         Avoid warnings from 'aclocal' that are due to a use of macro name
37401         AM_XGETTEXT_OPTION that is not defined in automake.
37402         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37403         automake.
37404         * modules/error (configure.ac): Likewise.
37405         * modules/propername (configure.ac): Likewise.
37406         * modules/vasprintf (configure.ac): Likewise.
37407         * modules/verror (configure.ac): Likewise.
37408         * modules/xprintf (configure.ac): Likewise.
37409         * modules/xvasprintf (configure.ac): Likewise.
37410
37411 2009-08-08  Bruno Haible  <bruno@clisp.org>
37412
37413         Avoid compilation error in C++ mode.
37414         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37415         Reported by Sam Steingold <sds@gnu.org>.
37416
37417 2009-08-08  Bruno Haible  <bruno@clisp.org>
37418
37419         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37420         for the various Unix platforms.
37421         * doc/posix-headers/limits.texi: Update platforms list regarding
37422         HOST_NAME_MAX.
37423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37424
37425 2009-08-07  Jim Meyering  <meyering@redhat.com>
37426
37427         selinux-at: fix typo in a comment
37428         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37429         Spotted by Paolo Bonzini.
37430
37431         selinux-at: remove redundant m4 code, add documentation
37432         * modules/selinux-at (configure.ac): Remove redundant code.
37433         LIB_SELINUX is already set via the dependent module, selinux-h.
37434         (Include): Add quotes around selinux-at.h.
37435         * lib/selinux-at.h: Add documentation.
37436         Reported by Bruno Haible in
37437         http://marc.info/?l=gnulib-bug&m=124958988300749
37438
37439 2009-08-07  Bruno Haible  <bruno@clisp.org>
37440
37441         Avoid link error on MacOS X 10.3 and 10.4.
37442         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37443         on non-ELF systems.
37444         * lib/argp-pv.c (argp_program_version): Likewise.
37445         Reported by Simon Josefsson.
37446
37447 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37448
37449         * tests/test-version-etc.sh: Use $EXEEXT.
37450
37451 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37452
37453         update-copyright: update documentation to point to maint.mk
37454         * build-aux/update-copyright: Here.
37455
37456 2009-08-06  Jim Meyering  <meyering@redhat.com>
37457
37458         maint.mk: support update-copyright-local
37459         * top/maint.mk (update-copyright-local): Define place-holder.
37460         (update-copyright): Depend on $(update-copyright-local).
37461
37462 2009-08-06  Jim Meyering  <meyering@redhat.com>
37463
37464         selinux-at: new module
37465         Initially written for coreutils, this module will soon be
37466         used by findutils, too.
37467         * MODULES.html.sh [Misc]: Add selinux-at.
37468         * lib/selinux-at.h: New file, from coreutils.
37469         * lib/selinux-at.c: Likewise.
37470         * modules/selinux-at: Likewise.
37471         (License): Change from LGPL to GPL, since it depends
37472         on the GPL'd openat module.
37473
37474         doc: update README
37475         * README: Remove references to cogito.
37476         Remove cvs-repo-updating instructions from 2007.
37477         Don't imply that CVS is better if you have limited disk space.
37478
37479 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37480
37481         update-copyright: support C-style comments
37482         * build-aux/update-copyright: Implement and document.
37483         * tests/test-update-copyright.sh: Test.
37484
37485 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37486
37487         update-copyright: support omitted "(C)"
37488         * build-aux/update-copyright: Implement and document.  Also,
37489         allow variable whitespace before "(C)".
37490         * tests/test-update-copyright.sh: Test.
37491
37492 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37493
37494         update-copyright: don't trip on non-FSF copyright statements
37495         * build-aux/update-copyright: Fix so that the first correctly
37496         formatted FSF copyright statement is recognized no matter what
37497         appears before it.  Update documentation.
37498         * tests/test-update-copyright.sh: Test that.
37499
37500 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37501
37502         update-copyright: clean up code a little
37503         * build-aux/update-copyright: Append "_re" to the name of any
37504         variable holding a regular expression.
37505         Replace "old" and "new" with "stmt" in variable names.
37506         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37507         handled correctly.
37508         Format code more consistently.
37509
37510 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37511
37512         update-copyright-tests: improve portability
37513         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37514         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37515
37516 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37517
37518         update-copyright: support @copyright{} and &copy;
37519         * build-aux/update-copyright: Implement and document.
37520         * tests/test-update-copyright.sh: Test.
37521
37522 2009-08-04  Jim Meyering  <meyering@redhat.com>
37523
37524         update-copyright-tests: correctly test EOL=\r\n handling
37525         * tests/test-update-copyright.sh: Put \r at the end of some lines
37526         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37527
37528         maint.mk: make update-copyright exclusion list more configurable
37529         * top/maint.mk (update-copyright): Default to excluding COPYING,
37530         but allow an override, in case someone does want to update that file.
37531
37532         maint.mk: don't update copyright date in COPYING
37533         * top/maint.mk (update-copyright): Exclude COPYING.
37534
37535         maint.mk: add a copyright-updating rule
37536         * top/maint.mk (update-copyright): New rule.
37537         Derived from coreutils/Makefile.am.
37538
37539         update-copyright: rename some variables
37540         * build-aux/update-copyright: Rename a few variables for clarity.
37541         Tweak syntax.  List Joel E. Denny as coauthor.
37542
37543 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37544
37545         update-copyright: fix bug for 2-digit last year and add tests
37546         * build-aux/update-copyright: Fix bug.
37547         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37548         specified.
37549         * modules/update-copyright-tests: New
37550         * tests/test-update-copyright.sh: New.
37551
37552 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37553
37554         update-copyright: handle leading tabs in line prefix
37555         * build-aux/update-copyright: Count leading tabs as 8 spaces
37556         when computing margin.  This helps with the formatting of
37557         ChangeLogs, for example.
37558         Fix documentation a little.
37559
37560 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37561
37562         update-copyright: support EOL=\r\n
37563         * build-aux/update-copyright: Implement that.
37564
37565 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37566
37567         update-copyright: automatically format copyright statements
37568         * build-aux/update-copyright: Implement that.
37569         Also, be a little more predictable and safer by always failing
37570         when the full copyright format is not perfectly recognized as an
37571         unbroken whole.  Discussed at
37572         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37573         Rewrite documentation.
37574
37575 2009-08-03  Bruno Haible  <bruno@clisp.org>
37576
37577         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37578
37579 2009-08-02  Bruno Haible  <bruno@clisp.org>
37580
37581         Tests for module 'uname'.
37582         * modules/uname-tests: New file.
37583         * tests/test-uname.c: New file.
37584
37585         New module 'uname'.
37586         * lib/uname.c: New file.
37587         * m4/uname.m4: New file.
37588         * modules/uname: New file.
37589         * doc/posix-functions/uname.texi: Mention the new module.
37590
37591 2009-08-02  Bruno Haible  <bruno@clisp.org>
37592
37593         Tests for module 'sys_utsname'.
37594         * modules/sys_utsname-tests: New file.
37595         * tests/test-sys_utsname.c: New file.
37596
37597         New module 'sys_utsname'.
37598         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37599         * m4/sys_utsname_h.m4: New file.
37600         * modules/sys_utsname: New file.
37601         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37602
37603 2009-08-02  Bruno Haible  <bruno@clisp.org>
37604
37605         Implicitly initialize the sockets library.
37606         * lib/gethostname.c: Include sockets.h.
37607         (rpl_gethostname): Invoke gl_sockets_startup.
37608         * lib/socket.c: Include sockets.h.
37609         (rpl_socket): Invoke gl_sockets_startup.
37610         * modules/gethostname (Depends-on): Add sockets.
37611         * modules/socket (Depends-on): Likewise.
37612         * tests/test-poll.c: Don't include sockets.h.
37613         (main): Don't invoke gl_sockets_startup.
37614         * tests/test-select.c: Don't include sockets.h.
37615         (main): Don't invoke gl_sockets_startup.
37616
37617 2009-08-02  Bruno Haible  <bruno@clisp.org>
37618
37619         Allow multiple calls to gl_sockets_startup.
37620         * lib/sockets.c (initialized_sockets_version): New variable.
37621         (gl_sockets_startup): Do nothing if already called for this or a higher
37622         version.
37623         (gl_sockets_cleanup): Reset initialized_sockets_version.
37624
37625 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37626
37627         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37628         different project/version.
37629
37630 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37631             Bruno Haible  <bruno@clisp.org>
37632
37633         Tests for module 'pipe-filter-gi'.
37634         * modules/pipe-filter-gi-tests: New file.
37635         * tests/test-pipe-filter-gi1.sh: New file.
37636         * tests/test-pipe-filter-gi1.c: New file.
37637         * tests/test-pipe-filter-gi2.sh: New file.
37638         * tests/test-pipe-filter-gi2-main.c: New file.
37639         * tests/test-pipe-filter-gi2-child.c: New file.
37640
37641         New module 'pipe-filter-gi'.
37642         * lib/pipe-filter-gi.c: New file.
37643         * modules/pipe-filter-gi: New file.
37644
37645 2009-08-02  Bruno Haible  <bruno@clisp.org>
37646             Paolo Bonzini  <bonzini@gnu.org>
37647
37648         Tests for module 'pipe-filter-ii'.
37649         * modules/pipe-filter-ii-tests: New file.
37650         * tests/test-pipe-filter-ii1.sh: New file.
37651         * tests/test-pipe-filter-ii1.c: New file.
37652         * tests/test-pipe-filter-ii2.sh: New file.
37653         * tests/test-pipe-filter-ii2-main.c: New file.
37654         * tests/test-pipe-filter-ii2-child.c: New file.
37655
37656         New module 'pipe-filter-ii'.
37657         * lib/pipe-filter.h: New file.
37658         * lib/pipe-filter-ii.c: New file.
37659         * lib/pipe-filter-aux.h: New file.
37660         * modules/pipe-filter-ii: New file.
37661
37662 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37663
37664         * lib/gc-libgcrypt.c: Change copyright to FSF.
37665         * lib/gc-gnulib.c: Likewise.
37666
37667 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37668
37669         * lib/gethostname.c: Include limits.h.
37670
37671 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37672             Bruno Haible  <bruno@clisp.org>
37673
37674         Ensure HOST_NAME_MAX as part of the gethostname module.
37675         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37676         define also HOST_NAME_MAX.
37677         * tests/test-gethostname.c: Include <limits.h>.
37678         (main): Check also HOST_NAME_MAX.
37679         * doc/posix-headers/limits.texi: Document the mingw problem.
37680
37681 2009-08-02  Bruno Haible  <bruno@clisp.org>
37682
37683         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37684         Add comments.
37685
37686 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37687
37688         * lib/gethostname.c: Add Windows wrapper.
37689         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37690         * modules/gethostname: Depend on sys_socket & errno, for also
37691         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37692         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37693
37694 2009-07-31  Jim Meyering  <meyering@redhat.com>
37695
37696         getloadavg: fix symbol name in comment
37697         * lib/getloadavg.c: Correct a typo I introduced when adding
37698         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37699         Matt Kraai spotted the problem.
37700
37701 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37702
37703         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37704         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37705         code also if ! defined N_NAME_POINTER.
37706         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37707         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37708         but the n_name member is a 12-byte array.
37709
37710 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37711
37712         update-copyright: generalize comment handling
37713         * build-aux/update-copyright: Handle copyright statements
37714         within more comment styles.
37715         Document usage.
37716         Report any file with an external copyright holder or parse failure.
37717
37718 2009-07-29  Jim Meyering  <meyering@redhat.com>
37719
37720         mktime: correct setting of REPLACE_MKTIME
37721         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37722
37723         update-copyright: new module
37724         * modules/update-copyright: New file.
37725         * build-aux/update-copyright: New file.
37726         * MODULES.html.sh (maint+release support): Add update-copyright.
37727
37728 2009-07-27  Bruno Haible  <bruno@clisp.org>
37729
37730         Fix compilation error when <ctime> is used and mktime is replaced.
37731         * lib/time.in.h (mktime): New declaration.
37732         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37733         REPLACE_MKTIME instead of defining mktime in config.h.
37734         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37735         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37736         Reported by Ross McFarland <rwmcfa1@neces.com>.
37737
37738 2009-07-27  Bruno Haible  <bruno@clisp.org>
37739
37740         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37741         Reported by Matt Kraai <mkraai@beckman.com>.
37742
37743 2009-07-25  Jim Meyering  <meyering@redhat.com>
37744
37745         maint.mk: avoid warnings about missing files
37746         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37747         diagnostic when .prev-version does not exist.
37748         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37749         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37750         nonexistent cfg.mk.
37751         Suggestions from Simon Josefsson.
37752
37753 2009-07-25  Bruno Haible  <bruno@clisp.org>
37754
37755         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37756         defined as macros. Needed on QNX 6.4.1.
37757         Reported by Matt Kraai <mkraai@beckman.com>.
37758
37759 2009-07-23  Jim Meyering  <meyering@redhat.com>
37760
37761         maint.mk: invoke "make dist" with a working value of XZ_OPT
37762         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37763
37764 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37765
37766         Make fseeko.c compile on QNX.
37767         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37768
37769 2009-07-22  Peter Simons  <simons@cryp.to>
37770
37771         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37772         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37773         * lib/md4.h: Likewise.
37774         * lib/md5.h: Likewise.
37775         * lib/sha1.h: Likewise.
37776         * lib/sha256.h: Likewise.
37777         * lib/sha512.h: Likewise.
37778
37779         tests-sha1: don't assign literal string to 'char *' variable
37780         * tests/test-sha1.c (main): Declare locals with "const" to match
37781         attributes of the right hand side.
37782
37783 2009-07-21  Eric Blake  <ebb9@byu.net>
37784
37785         dup2: fix more mingw problems
37786         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37787         fd to itself.
37788         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37789         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37790         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37791         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37792         care of mingw bugs.
37793
37794 2009-07-21  Jim Meyering  <meyering@redhat.com>
37795
37796         vc-list-files: avoid failure when /bin/sh is dash
37797         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37798         On some Debian based systems, /bin/sh is a symlink to dash, and running
37799         this command would omit the "/" following each 'tests' prefix:
37800           dash -x build-aux/vc-list-files -C . tests
37801         That is because bash and dash work differently:
37802           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37803           bash ok
37804           dash odd
37805
37806 2009-07-21  Eric Blake  <ebb9@byu.net>
37807
37808         dup2-tests: test previous patch
37809         * modules/dup2-tests: New file.
37810         * tests/test-dup2.c: Likewise.
37811         * tests/test-open.c (main): Avoid unspecified behavior.
37812         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37813         test.
37814
37815         dup2: work around mingw and cygwin 1.5 bug
37816         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37818         * modules/unistd (Makefile.am): Substitute it.
37819         * lib/unistd.in.h (dup2): Declare the replacement.
37820         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37821         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37822         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37823         * modules/execute (Depends-on): Add dup2.
37824         * modules/fseterr (Depends-on): Likewise.
37825         * modules/pipe (Depends-on): Likewise.
37826         * modules/posix_spawn-internal (Depends-on): Likewise.
37827
37828 2009-07-21  Bruno Haible  <bruno@clisp.org>
37829
37830         * modules/.gitattributes: New file.
37831
37832 2009-07-20  Bruno Haible  <bruno@clisp.org>
37833
37834         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37835         (main): Use it.
37836
37837 2009-07-20  Eric Blake  <ebb9@byu.net>
37838
37839         test-pipe: make a bit more robust.
37840         * tests/test-pipe.c (myerr): Allow error messages regardless of
37841         what we do to stderr.
37842         (test_pipe): Rearrange to avoid deadlock.
37843         (child_main): Try a larger read, to ensure we avoided deadlock.
37844         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37845         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37846         if misused.
37847
37848 2009-07-19  Jim Meyering  <meyering@redhat.com>
37849
37850         fts: avoid false-positive cycle-detection
37851         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37852         for each new command line argument.
37853
37854 2009-07-19  Bruno Haible  <bruno@clisp.org>
37855
37856         Fix build error on mingw with the modules sys_select and unistd.
37857         * modules/acl-tests (Depends-on): Add close.
37858         * modules/binary-io-tests (Depends-on): Likewise.
37859         * modules/closein-tests (Depends-on): Likewise.
37860         * modules/flock-tests (Depends-on): Likewise.
37861         * modules/fsync-tests (Depends-on): Likewise.
37862         * modules/lseek-tests (Depends-on): Likewise.
37863         * modules/pipe-tests (Depends-on): Likewise.
37864         * modules/posix_spawn-tests (Depends-on): Likewise.
37865         * modules/posix_spawnp-tests (Depends-on): Likewise.
37866         * modules/stat-time-tests (Depends-on): Likewise.
37867         * modules/yesno-tests (Depends-on): Likewise.
37868
37869 2009-07-19  Bruno Haible  <bruno@clisp.org>
37870
37871         Unify conditionals.
37872         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37873         macros, not at the compiler macros.
37874         * lib/pipe.c: Likewise.
37875         * lib/execute.c: Likewise.
37876         * lib/spawni.c: Likewise.
37877
37878 2009-07-19  Bruno Haible  <bruno@clisp.org>
37879
37880         Fix handling of closed stdin/stdout/stderr on mingw.
37881         * lib/w32spawn.h: Include unistd.h.
37882         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37883         file descriptor with O_NOINHERIT flag.
37884         (fd_safer_noinherit): New function, based on fd-safer.c.
37885         (dup_safer_noinherit): New function, based on dup-safer.c.
37886         (undup_safer_noinherit): New function.
37887         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37888         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37889         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37890         instead of fd_safer.
37891         * tests/test-pipe.c: Include <windows.h>.
37892         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37893         result.
37894
37895         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37896         from main.
37897         (test_pipe): Pass an extra argument for disambiguation.
37898         (main): Invoke parent_main or child_main.
37899
37900         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37901         consistently.
37902
37903 2009-07-18  Eric Blake  <ebb9@byu.net>
37904
37905         test-pipe: fix mingw build
37906         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37907
37908 2009-07-18  Bruno Haible  <bruno@clisp.org>
37909
37910         * modules/pipe-tests (Makefile.am): Fix typo.
37911
37912 2009-07-18  Eric Blake  <ebb9@byu.net>
37913
37914         error: fix mingw build
37915         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37916         Reported by Bruno Haible.
37917
37918         error: avoid undefined use of stdout
37919         * lib/error.c (error, error_at_line): Check that fd 1 is open
37920         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37921         is handling faults and the close_stdout module wants to report the
37922         detection of closed stdout as an error.
37923
37924 2009-07-17  Eric Blake  <ebb9@byu.net>
37925
37926         pipe: be robust in face of closed fds
37927         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37928         should cause child to misbehave.
37929         * modules/pipe-tests: New module.
37930         * tests/test-pipe.c: New file.
37931         * tests/test-pipe.sh: New file.
37932         Reported by Akim Demaille.
37933
37934 2009-07-14  Bruno Haible  <bruno@clisp.org>
37935
37936         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37937         Reported by anonymous kc.
37938
37939 2009-07-07  Jim Meyering  <meyering@redhat.com>
37940
37941         maint.mk: don't look for translatable strings in *.m4 or *.mk
37942         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37943         when searching for translatable strings.
37944
37945 2009-07-05  Jim Meyering  <meyering@redhat.com>
37946
37947         remove superfluous parentheses in STREQ definition
37948         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37949         * lib/getugroups.c (STREQ): Likewise.
37950         * lib/fnmatch.c (STREQ): Likewise.
37951         Spotted by Bruno Haible.
37952
37953 2009-07-04  Jim Meyering  <meyering@redhat.com>
37954
37955         argv-iter: new module
37956         * MODULES.html.sh: Add argv-iter.
37957         * lib/argv-iter.c, lib/argv-iter.h: New files.
37958         * modules/argv-iter: New file.
37959         * modules/argv-iter-tests: New file.
37960         * tests/test-argv-iter.c: Test it.
37961
37962 2009-07-04  Bruno Haible  <bruno@clisp.org>
37963
37964         Fix assertion.
37965         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37966         contains more exact copies of a given entry than file2, leave the extra
37967         copies unpaired rather than aborting.
37968         Reported by Eric Blake.
37969
37970 2009-07-02  Bruno Haible  <bruno@clisp.org>
37971
37972         Speedup git-merge-changelog for git cherry-pick.
37973         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37974         (entries_mapping_get): New function, extracted from compute_mapping.
37975         (entries_mapping_reverse_get): New function.
37976         (compute_mapping): Add a 'full' argument. Return the result in a
37977         'struct entries_mapping'.
37978         (main): Update. Access the mappings through entries_mapping_get.
37979         Reported by Eric Blake.
37980
37981 2009-07-02  Bruno Haible  <bruno@clisp.org>
37982
37983         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37984         best_i.
37985
37986 2009-07-02  Bruno Haible  <bruno@clisp.org>
37987
37988         Speed up approximate search for matching ChangeLog entries.
37989         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37990         argument. Call fstrcmp_bounded instead of fstrcmp.
37991         (compute_mapping, try_split_merged_entry, main): Update callers.
37992
37993 2009-07-02  Bruno Haible  <bruno@clisp.org>
37994
37995         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37996
37997 2009-06-30  Bruno Haible  <bruno@clisp.org>
37998
37999         Reduce the number of uc_is_cased calls.
38000         * lib/unicase.h (casing_suffix_context_t): Add
38001         'first_char_except_ignorable' field.
38002         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38003         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38004         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38005         Update initializer.
38006         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38007         case-ignorable characters.
38008         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38009         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38010         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38011         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38012         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38013
38014 2009-06-30  Bruno Haible  <bruno@clisp.org>
38015
38016         Tests for module 'unicase/ignorable'.
38017         * modules/unicase/ignorable-tests: New file.
38018         * tests/unicase/test-ignorable.c: New file, generated by
38019         gen-uni-tables.
38020
38021         Tests for module 'unicase/cased'.
38022         * modules/unicase/cased-tests: New file.
38023         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38024         * tests/unicase/test-predicate-part1.h: New file, derived from
38025         tests/unictype/test-predicate-part1.h.
38026         * tests/unicase/test-predicate-part2.h: New file, same as
38027         tests/unictype/test-predicate-part2.h.
38028
38029         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38030         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38031         (output_casing_properties): New function.
38032         (main): Call it.
38033         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38034         * lib/unicase/cased.c: Include unictype/bitmap.h.
38035         (uc_is_cased): Define through a bitmap lookup.
38036         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38037         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38038         (uc_is_case_ignorable): Define through a bitmap lookup.
38039         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38040         lib/unictype/bitmap.h.
38041         (Depends-on): Add inline. Clean up.
38042         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38043         lib/unictype/bitmap.h.
38044         (Depends-on): Add inline. Clean up.
38045         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38046         recognition.
38047         * tests/unicase/test-u16-tolower.c (main): Likewise.
38048         * tests/unicase/test-u32-tolower.c (main): Likewise.
38049
38050 2009-06-30  Bruno Haible  <bruno@clisp.org>
38051
38052         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38053         * lib/unicase/u16-casemap.c: Likewise.
38054         * lib/unicase/u32-casemap.c: Likewise.
38055
38056 2009-06-29  Bruno Haible  <bruno@clisp.org>
38057
38058         Define u32_casefold as a wrapper around u32_ct_casefold.
38059         * lib/unicase/u32-casefold.c: Update.
38060         * modules/unicase/u32-casefold (Depends-on): Add
38061         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38062         unicase/empty-suffix-context. Clean up.
38063
38064         Define u16_casefold as a wrapper around u16_ct_casefold.
38065         * lib/unicase/u16-casefold.c: Update.
38066         * modules/unicase/u16-casefold (Depends-on): Add
38067         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38068         unicase/empty-suffix-context. Clean up.
38069
38070         Define u8_casefold as a wrapper around u8_ct_casefold.
38071         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38072         * lib/unicase/u8-casefold.c: Update.
38073         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38074         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38075
38076         Define u32_totitle as a wrapper around u32_ct_totitle.
38077         * lib/unicase/u32-totitle.c: Update.
38078         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38079         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38080
38081         Define u16_totitle as a wrapper around u16_ct_totitle.
38082         * lib/unicase/u16-totitle.c: Update.
38083         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38084         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38085
38086         Define u8_totitle as a wrapper around u8_ct_totitle.
38087         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38088         functions.
38089         (FUNC): Delegate to U_CT_TOTITLE.
38090         * lib/unicase/u8-totitle.c: Update.
38091         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38092         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38093
38094         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38095         invocation.
38096         * modules/unicase/u32-tolower (Depends-on): Add
38097         unicase/empty-prefix-context, unicase/empty-suffix-context.
38098
38099         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38100         invocation.
38101         * modules/unicase/u16-tolower (Depends-on): Add
38102         unicase/empty-prefix-context, unicase/empty-suffix-context.
38103
38104         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38105         * modules/unicase/u8-tolower (Depends-on): Add
38106         unicase/empty-prefix-context, unicase/empty-suffix-context.
38107
38108         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38109         invocation.
38110         * modules/unicase/u32-toupper (Depends-on): Add
38111         unicase/empty-prefix-context, unicase/empty-suffix-context.
38112
38113         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38114         invocation.
38115         * modules/unicase/u16-toupper (Depends-on): Add
38116         unicase/empty-prefix-context, unicase/empty-suffix-context.
38117
38118         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38119         * modules/unicase/u8-toupper (Depends-on): Add
38120         unicase/empty-prefix-context, unicase/empty-suffix-context.
38121
38122         New module 'unicase/u32-ct-casefold'.
38123         * lib/unicase/u32-ct-casefold.c: New file.
38124         * modules/unicase/u32-ct-casefold: New file.
38125
38126         New module 'unicase/u16-ct-casefold'.
38127         * lib/unicase/u16-ct-casefold.c: New file.
38128         * modules/unicase/u16-ct-casefold: New file.
38129
38130         New module 'unicase/u8-ct-casefold'.
38131         * lib/unicase/u8-ct-casefold.c: New file.
38132         * lib/unicase/u-ct-casefold.h: New file, derived from
38133         lib/unicase/u-casefold.h.
38134         * modules/unicase/u8-ct-casefold: New file.
38135
38136         New module 'unicase/u32-ct-totitle'.
38137         * lib/unicase/u32-ct-totitle.c: New file.
38138         * modules/unicase/u32-ct-totitle: New file.
38139
38140         New module 'unicase/u16-ct-totitle'.
38141         * lib/unicase/u16-ct-totitle.c: New file.
38142         * modules/unicase/u16-ct-totitle: New file.
38143
38144         New module 'unicase/u8-ct-totitle'.
38145         * lib/unicase/u8-ct-totitle.c: New file.
38146         * lib/unicase/u-ct-totitle.h: New file, derived from
38147         lib/unicase/u-totitle.h.
38148         * modules/unicase/u8-ct-totitle: New file.
38149
38150         New module 'unicase/u32-ct-tolower'.
38151         * lib/unicase/u32-ct-tolower.c: New file.
38152         * modules/unicase/u32-ct-tolower: New file.
38153
38154         New module 'unicase/u16-ct-tolower'.
38155         * lib/unicase/u16-ct-tolower.c: New file.
38156         * modules/unicase/u16-ct-tolower: New file.
38157
38158         New module 'unicase/u8-ct-tolower'.
38159         * lib/unicase/u8-ct-tolower.c: New file.
38160         * modules/unicase/u8-ct-tolower: New file.
38161
38162         New module 'unicase/u32-ct-toupper'.
38163         * lib/unicase/u32-ct-toupper.c: New file.
38164         * modules/unicase/u32-ct-toupper: New file.
38165
38166         New module 'unicase/u16-ct-toupper'.
38167         * lib/unicase/u16-ct-toupper.c: New file.
38168         * modules/unicase/u16-ct-toupper: New file.
38169
38170         New module 'unicase/u8-ct-toupper'.
38171         * lib/unicase/u8-ct-toupper.c: New file.
38172         * modules/unicase/u8-ct-toupper: New file.
38173
38174         Add context arguments to u*_casemap functions.
38175         * lib/unicase/unicasemap.h: Include unicase.h.
38176         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38177         suffix_context arguments.
38178         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38179         functions.
38180         (FUNC): Add prefix_context and suffix_context arguments. Use
38181         uc_is_cased and uc_is_case_ignorable.
38182         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38183         * lib/unicase/u16-casemap.c: Likewise.
38184         * lib/unicase/u32-casemap.c: Likewise.
38185         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38186         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38187         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38188         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38189         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38190         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38191
38192         New module 'unicase/u32-suffix-context'.
38193         * lib/unicase/u32-suffix-context.c: New file.
38194         * modules/unicase/u32-suffix-context: New file.
38195
38196         New module 'unicase/u16-suffix-context'.
38197         * lib/unicase/u16-suffix-context.c: New file.
38198         * modules/unicase/u16-suffix-context: New file.
38199
38200         New module 'unicase/u8-suffix-context'.
38201         * lib/unicase/u8-suffix-context.c: New file.
38202         * lib/unicase/u-suffix-context.h: New file.
38203         * modules/unicase/u8-suffix-context: New file.
38204
38205         New module 'unicase/empty-suffix-context'.
38206         * lib/unicase/empty-suffix-context.c: New file.
38207         * modules/unicase/empty-suffix-context: New file.
38208
38209         New module 'unicase/u32-prefix-context'.
38210         * lib/unicase/u32-prefix-context.c: New file.
38211         * modules/unicase/u32-prefix-context: New file.
38212
38213         New module 'unicase/u16-prefix-context'.
38214         * lib/unicase/u16-prefix-context.c: New file.
38215         * modules/unicase/u16-prefix-context: New file.
38216
38217         New module 'unicase/u8-prefix-context'.
38218         * lib/unicase/u8-prefix-context.c: New file.
38219         * lib/unicase/u-prefix-context.h: New file.
38220         * lib/unicase/context.h: New file.
38221         * modules/unicase/u8-prefix-context: New file.
38222
38223         New module 'unicase/empty-prefix-context'.
38224         * lib/unicase/empty-prefix-context.c: New file.
38225         * modules/unicase/empty-prefix-context: New file.
38226
38227         New module 'unicase/ignorable'.
38228         * lib/unicase/ignorable.c: New file.
38229         * modules/unicase/ignorable: New file.
38230
38231         New module 'unicase/cased'.
38232         * lib/unicase/caseprop.h: New file.
38233         * lib/unicase/cased.c: New file.
38234         * modules/unicase/cased: New file.
38235
38236         New functions for case mapping of substrings.
38237         * lib/unicase.h (casing_prefix_context_t): New type.
38238         (unicase_empty_prefix_context): New variable.
38239         (u8_casing_prefix_context, u16_casing_prefix_context,
38240         u32_casing_prefix_context, u8_casing_prefixes_context,
38241         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38242         declarations.
38243         (casing_suffix_context_t): New type.
38244         (unicase_empty_suffix_context): New variable.
38245         (u8_casing_suffix_context, u16_casing_suffix_context,
38246         u32_casing_suffix_context, u8_casing_suffixes_context,
38247         u16_casing_suffixes_context, u32_casing_suffixes_context,
38248         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38249         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38250         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38251         declarations.
38252
38253 2009-06-28  Jim Meyering  <meyering@redhat.com>
38254
38255         boostrap: indent only with spaces
38256         * build-aux/bootstrap: Indent only with spaces, never TABs.
38257
38258         bootstrap: split long lines
38259         * build-aux/bootstrap: Keep line length < 80.
38260
38261         bootstrap: sync from coreutils
38262         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38263         just as autoreconf does.  Verify a list of prerequisite
38264         package-name,version-number pairs if defined in bootstrap.conf.
38265         Refer to README-prereq, if prerequisites are not satisfied.
38266
38267 2009-06-27  Eric Blake  <ebb9@byu.net>
38268
38269         tests: add test for bogus NULL definition
38270         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38271         * tests/test-stdlib.c: Likewise.
38272         * tests/test-string.c: Likewise.
38273         * tests/test-locale.c: Likewise.
38274         * tests/test-unistd.c: Likewise.
38275         * modules/stdio-tests (Depends-on): Add verify.
38276         * modules/stdlib-tests (Depends-on): Likewise.
38277         * modules/string-tests (Depends-on): Likewise.
38278         * modules/locale-tests (Depends-on): Likewise.
38279         * modules/unistd-tests (Depends-on): Likewise.
38280
38281 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38282
38283         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38284         self-explaining comment.
38285         * m4/selinux-selinux-h: Update serial.
38286         (gl_LIBSELINUX): New macro, adding a warning for missing development
38287         packages to code extracted from...
38288         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38289         Add warning for missing development packages here, too.
38290
38291 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38292
38293         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38294
38295 2009-06-25  Eric Blake  <ebb9@byu.net>
38296
38297         version-etc: fix regression
38298         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38299         gcc.
38300         (version_etc): Use it, to catch bugs with trailing NULL.
38301         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38302         (version_etc_va): Fix logic bug.
38303         * modules/version-etc-tests: Add test.
38304         * tests/test-version-etc.c: New file.
38305         * tests/test-version-etc.sh: Likewise.
38306
38307 2009-06-25  Sam Steingold  <sds@gnu.org>
38308
38309         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38310         mbtowc declaration.
38311
38312 2009-06-25  Eric Blake  <ebb9@byu.net>
38313
38314         fpurge: migrate into <stdio.h>
38315         * lib/fpurge.h: Delete...
38316         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38317         * lib/fpurge.c (fpurge): Change declaring header.
38318         * modules/fpurge (Files): Drop deleted file.
38319         (Depends-on): Add stdio.
38320         (configure.ac): Set witness.
38321         * modules/stdio (Makefile.am): Support fpurge macros.
38322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38323         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38324         * lib/fflush.c: Update client.
38325         * tests/test-fpurge.c: Likewise.
38326         * NEWS: Mention the change.
38327
38328 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38329
38330         * lib/argp-version-etc.c (program_authors): Add const
38331         qualifier.
38332         * lib/version-etc.c: Fix typos in the comments.
38333         * modules/argp-version-etc: Depends on version-etc.
38334
38335 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38336
38337         argp-version-etc: new module.
38338
38339         * lib/argp-version-etc.c: New file.
38340         * lib/argp-version-etc.h: New file.
38341         * modules/argp-version-etc: New file.
38342         * modules/argp-version-etc-tests: New file.
38343         * tests/test-argp-version-etc.c: New test.
38344         * tests/test-argp-version-etc-1.sh: New test.
38345
38346 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38347
38348         Provide additional interfaces and documentation for version-etc
38349         module.
38350
38351         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38352         interfaces.
38353         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38354         prototypes.
38355
38356 2009-06-24  Bruno Haible  <bruno@clisp.org>
38357
38358         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38359         HAVE_LIB${NAME} macro.
38360         Reported by Sam Steingold <sds@gnu.org>.
38361
38362 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38363
38364         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38365         needed.
38366
38367 2009-06-21  Bruno Haible  <bruno@clisp.org>
38368
38369         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38370         work.
38371         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38372         together with LIB${NAME}, LTLIB${NAME}.
38373         Reported by Sam Steingold <sds@gnu.org>.
38374
38375 2009-06-20  Jim Meyering  <meyering@redhat.com>
38376
38377         tests: make sc_require_test_exit_idiom more generic
38378         * top/maint.mk (Exit_witness_file): New overridable variable.
38379         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38380         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38381
38382 2009-06-19  Jim Meyering  <meyering@redhat.com>
38383
38384         hash: reverse order of src/dst parameters in an internal interface
38385         * lib/hash.c (transfer_entries): Reverse order of parameters to
38386         put DST before SRC.  Adjust callers.
38387
38388         tests: test-hash: avoid wholesale duplication
38389         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38390         Instead, use a loop and add a single conditional.
38391
38392         tests: test-hash: allow seed selection via a command line argument
38393         * tests/test-hash.c (get_seed): New function.
38394         (main): Use it.
38395
38396 2009-06-19  Eric Blake  <ebb9@byu.net>
38397
38398         hash: avoid memory leak on allocation failure
38399         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38400         failure.  Factor repeated algorithm...
38401         (transfer_entries): ...into new helper routine.
38402         (hash_delete): React to hash_rehash return value.
38403
38404         hash: reduce memory pressure in hash_rehash no-op case
38405         * lib/hash.c (next_prime): Avoid overflow.
38406         (hash_initialize): Factor bucket size computation...
38407         (compute_bucket_size): ...into new helper function.
38408         (hash_rehash): Use new function and open coding to reduce memory
38409         pressure, and avoid a memory leak in USE_OBSTACK code.
38410         Reported by Jim Meyering.
38411
38412 2009-06-18  Eric Blake  <ebb9@byu.net>
38413
38414         hash: make rotation more obvious
38415         * modules/hash (Depends-on): Add bitrotate and stdint.
38416         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38417         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38418         (SIZE_MAX): Rely on headers for definition.
38419         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38420         (raw_hasher): Use rotr_sz.
38421         Suggested by Jim Meyering.
38422
38423         hash: fix memory leak in last patch
38424         * lib/hash.c (hash_rehash): Avoid memory leak.
38425
38426         hash: avoid no-op rehashing
38427         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38428
38429         hash: provide default callback functions
38430         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38431         (hash_initialize): Use them as defaults.
38432         * tests/test-hash.c (main): Test this.
38433
38434         hash: minor optimization
38435         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38436         when possible.
38437         (hash_initialize): Document this promise.
38438         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38439         * tests/test-hash.c (hash_compare_strings): Test this.
38440
38441 2009-06-18  Bruno Haible  <bruno@clisp.org>
38442
38443         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38444         going to be replaced anyway.
38445
38446 2009-06-18  Bruno Haible  <bruno@clisp.org>
38447
38448         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38449         in one place.
38450         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38451         be replaced anyway.
38452
38453 2009-06-18  Eric Blake  <ebb9@byu.net>
38454
38455         hash: check for resize before insertion
38456         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38457         threshold before insertion, so that a pathological hash_rehash
38458         that fills every bucket can still trigger another rehash.
38459
38460 2009-06-18  Jim Meyering  <meyering@redhat.com>
38461
38462         hash-tests: add a loop around the small tests
38463         * tests/test-hash.c (main): Repeat small tests with selected
38464         small initial table sizes.
38465
38466 2009-06-17  Eric Blake  <ebb9@byu.net>
38467
38468         hash: minor cleanups
38469         * lib/hash.h (hash_entry): Make opaque, by moving...
38470         * lib/hash.c (hash_entry): ...here.
38471         (hash_insert): Clarify restrictions on what can be inserted.
38472         (hash_get_next): Clarify when it is safe to remove an element
38473         during traversal.
38474         (check_tuning): Skip verification when tuning is known safe.
38475         (hash_initialize): Clarify restrictions on tuning.
38476
38477 2009-06-17  Jim Meyering  <jim@meyering.net>
38478         and Eric Blake  <ebb9@byu.net>
38479
38480         hash-tests: new module
38481         * modules/hash-tests: New file.
38482         * tests/test-hash.c: New file.
38483
38484 2009-06-17  Eric Blake  <ebb9@byu.net>
38485
38486         strstr-simple: document new module
38487         * MODULES.html.sh: Document new module.
38488
38489         strstr, strcasestr: replace on platforms with broken memchr
38490         * modules/strstr: Split into...
38491         * modules/strstr-simple: ...new module that does not care about
38492         performance, but does care about glibc bug.
38493         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38494         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38495         if platform memchr is broken, per Debian bug 521737.
38496         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38497         memchr.
38498         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38499         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38500         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38501         * modules/mountlist (Depends-on): Add strstr-simple.
38502         * modules/gen-uni-tables (Depends-on): Likewise.
38503         * modules/argz (Depends-on): Add strstr.
38504
38505 2009-06-17  Bruno Haible  <bruno@clisp.org>
38506
38507         * modules/posix_spawn-internal (Depends-on): Add errno.
38508
38509 2009-06-17  Bruno Haible  <bruno@clisp.org>
38510
38511         Define missing ESTALE on Interix 3.5.
38512         * lib/errno.in.h (ESTALE): Assign a value if missing.
38513         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38514         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38515         missing.
38516         * doc/posix-headers/errno.texi: Mention the Interix bug.
38517         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38518
38519 2009-06-15  Eric Blake  <ebb9@byu.net>
38520
38521         memchr, memchr2: add valgrind exception
38522         * lib/memchr.valgrind: New file.
38523         * lib/memchr2.valgrind: New file.
38524         * modules/memchr (Files): Distribute valgrind file.
38525         * modules/memchr2 (Files): Likewise.
38526
38527         docs: memchr is no longer obsolete
38528         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38529         * lib/string.in.h (memchr): Simplify logic.
38530
38531 2009-06-14  Jim Meyering  <meyering@redhat.com>
38532
38533         link-follow: fix the "checking..." message to not mention trailing slash
38534         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38535         never considered trailing slashes.
38536
38537 2009-06-14  Bruno Haible  <bruno@clisp.org>
38538
38539         * m4/memchr.m4: Mention also the bug on IA-64.
38540         * doc/posix-functions/memchr.texi: Likewise.
38541
38542 2009-06-12  Eric Blake  <ebb9@byu.net>
38543
38544         memchr: detect broken x86_64 and alpha implementations
38545         * modules/memchr-tests (Depends-on): Move mmap detection...
38546         * modules/memchr (Depends-on): ...here.
38547         (configure.ac): Set indicator.
38548         * lib/string.in.h (memchr): Declare replacement.
38549         * modules/string (Makefile.am): Trigger replacement.
38550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38551         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38552         bugs.
38553         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38554         * modules/getpagesize (License): Relax license.
38555
38556 2009-06-11  Bruno Haible  <bruno@clisp.org>
38557
38558         * lib/idpriv.h: Add more references.
38559
38560 2009-06-08  Bruno Haible  <bruno@clisp.org>
38561
38562         Tests for module 'idpriv-droptemp'.
38563         * modules/idpriv-droptemp-tests: New file.
38564         * tests/test-idpriv-droptemp.sh: New file.
38565         * tests/test-idpriv-droptemp.su.sh: New file.
38566         * tests/test-idpriv-droptemp.c: New file.
38567
38568         New module 'idpriv-droptemp'.
38569         * lib/idpriv-droptemp.c: New file.
38570         * modules/idpriv-droptemp: New file.
38571
38572 2009-06-08  Bruno Haible  <bruno@clisp.org>
38573
38574         Tests for module 'idpriv-drop'.
38575         * modules/idpriv-drop-tests: New file.
38576         * tests/test-idpriv-drop.sh: New file.
38577         * tests/test-idpriv-drop.su.sh: New file.
38578         * tests/test-idpriv-drop.c: New file.
38579
38580         New module 'idpriv-drop'.
38581         * lib/idpriv.h: New file.
38582         * lib-idpriv-drop.c: New file.
38583         * m4/idpriv.m4: New file.
38584         * modules/idpriv-drop: New file.
38585
38586 2009-06-08  Bruno Haible  <bruno@clisp.org>
38587
38588         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38589         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38590         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38591         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38592         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38593         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38594         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38595
38596 2009-06-08  Eric Blake  <ebb9@byu.net>
38597
38598         test-strstr: use memory fence, when possible
38599         * tests/test-strstr.c (main): Use memory fence, in order to be
38600         more likely to trigger Debian bug 521737.
38601         * modules/strstr-tests (Files): Pull in additional files.
38602
38603         memchr: no longer obsolete, for wider field testing
38604         * modules/memchr (Status, Notice): Delete, this module is no
38605         longer obsolete.
38606         * modules/vasnprintf (Depends-on): Add memchr.
38607
38608 2009-06-07  Jim Meyering  <meyering@redhat.com>
38609
38610         hash: declare some functions with the warn_unused_result attribute
38611         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38612
38613 2009-06-07  Bruno Haible  <bruno@clisp.org>
38614
38615         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38616         Reported by Eric Blake.
38617
38618 2009-06-06  Eric Blake  <ebb9@byu.net>
38619
38620         test-alignof: fix typo with long double
38621         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38622         compiler error.
38623
38624 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38625
38626         Escape non-texinfo { and }s.
38627         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38628         markup error.
38629
38630 2009-06-04  Jim Meyering  <meyering@redhat.com>
38631
38632         gitlog-to-changelog: don't infloop on an empty commit log
38633         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38634         Reported by Boris Petersen <transacid@centerim.org>.
38635
38636 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38637
38638         version-etc: extend for packagers
38639         Add three new configure options, intended for packagers:
38640           --with-packager="packager name"
38641           --with-packager-version="packager-specific version"
38642           --with-packager-bug-reports="packager bug reporting"
38643         An example with coreutils:
38644           $ ./configure \
38645             --with-packager=Gentoo \
38646             --with-packager-bug-report=http://bugs.gentoo.org/ \
38647             --with-packager-version="patchset 1.6"
38648           $ ./src/ls --version | head -n2
38649           ls (GNU coreutils) 7.1-dirty
38650           Packaged by Gentoo (patchset 1.6)
38651         Note that the bug reporting info via --help doesn't show up because
38652         coreutils uses its own custom emit_bug_reporting_address() implementation
38653         in src/system.h.  If it didn't, it'd look like:
38654           $ ./src/ls --help | tail -n4
38655           Report bugs to <bug-coreutils@gnu.org>.
38656           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38657           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38658           General help using GNU software: <http://www.gnu.org/gethelp/>.
38659         * lib/version-etc.c: Print new information, if provided.
38660         * m4/version-etc.m4: New file.
38661         * modules/version-etc (Files): Add m4/version-etc.m4.
38662         (configure.ac): Add gl_VERSION_ETC.
38663
38664 2009-05-31  Bruno Haible  <bruno@clisp.org>
38665
38666         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38667         and 'int64_t'.
38668         * modules/alignof-tests (Dependencies): Add stdint.
38669         Reported by Eric Blake.
38670
38671 2009-05-31  Bruno Haible  <bruno@clisp.org>
38672
38673         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38674         restriction due to compiler bugs.
38675         Reported by Eric Blake.
38676
38677 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38678             Bruno Haible  <bruno@clisp.org>
38679
38680         Fix test-alignof failure.
38681         * lib/alignof.h (alignof_slot): New macro.
38682         (alignof_type): New macro, with the same semantics as the previous
38683         'alignof'.
38684         (alignof): Alias to alignof_slot.
38685         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38686         check that the results are usable as constant expressions.
38687
38688 2009-05-31  Bruno Haible  <bruno@clisp.org>
38689
38690         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38691         * tests/test-memchr.c (main): Check that memchr does not read past the
38692         first occurrence of the byte.
38693         * tests/test-strstr.c (main): Update comment.
38694         Suggested by Eric Blake.
38695
38696 2009-05-30  Bruno Haible  <bruno@clisp.org>
38697
38698         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38699         detail how to use dumpbin.
38700         Reported by David Byron <dbyron@dbyron.com>.
38701
38702 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38703
38704         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38705
38706 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38707
38708         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38709
38710 2009-05-28  Bruno Haible  <bruno@clisp.org>
38711
38712         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38713         build-aux/ files.
38714
38715 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38716
38717         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38718
38719 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38720
38721         * gnulib-tool (sed_transform_main_lib_file)
38722         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38723         regexps.
38724
38725 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38726
38727         * tests/test-strstr.c: Add another self-test.
38728         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38729         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38730
38731 2009-05-23  Bruno Haible  <bruno@clisp.org>
38732
38733         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38734         change.
38735
38736 2009-05-21  Bruno Haible  <bruno@clisp.org>
38737
38738         Simplify use of mode_t varargs.
38739         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38740         uses 'mode_t' or 'int'.
38741         * lib/openat.c (openat): Likewise.
38742         * lib/open-safer.c (open_safer): Likewise.
38743         * m4/mode_t.m4: New file.
38744         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38745         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38746         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38747         * modules/open (Files): Add m4/mode_t.m4.
38748         * modules/openat (Files): Likewise.
38749         * modules/fcntl-safer (Files): Likewise.
38750         Suggested by Eric Blake.
38751
38752 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38753
38754         * doc/glibc-functions/fallocate.texi: New file.
38755         * doc/gnulib.texi: Include it.
38756
38757 2009-05-21  Eric Blake  <ebb9@byu.net>
38758             Bruno Haible  <bruno@clisp.org>
38759
38760         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38761         invocations.
38762         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38763
38764 2009-05-21  Eric Blake  <ebb9@byu.net>
38765             Bruno Haible  <bruno@clisp.org>
38766
38767         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38768         include_next. Fix of 2008-11-20 commit.
38769         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38770         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38771         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38772         NEXT_MATH_H.
38773         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38774         instead of NEXT_MATH_H.
38775
38776 2009-05-21  Bruno Haible  <bruno@clisp.org>
38777
38778         Avoid redefinition warnings for SIZE_MAX.
38779         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38780         Reported by Simon Josefsson.
38781
38782 2009-05-21  Bruno Haible  <bruno@clisp.org>
38783
38784         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38785         AC_CACHE_VAL.
38786
38787 2009-05-20  Bruno Haible  <bruno@clisp.org>
38788
38789         Make zeroptr.h work on mingw.
38790         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38791         mprotect.
38792         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38793         * modules/memchr2-tests (configure.ac): Likewise.
38794         * modules/memcmp-tests (configure.ac): Likewise.
38795         * modules/memmem-tests (configure.ac): Likewise.
38796         * modules/memrchr-tests (configure.ac): Likewise.
38797         Reported by Simon Josefsson.
38798
38799 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38800
38801         * tests/test-glob.c: Include string.h for strcmp prototype.
38802
38803 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38804
38805         * modules/getdelim (Depends-on): Add explicit stdint, although it
38806         was implicitly already pulled in via realloc-posix.
38807         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38808
38809 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38810
38811         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38812         G. Christensen" <tgc@jupiterrise.com>.
38813         * m4/sys_socket_h.m4: Check for sa_family_t.
38814         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38815         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38816         * tests/test-sys_socket.c: Check that sa_family_t works.
38817
38818 2009-05-18  Eric Blake  <ebb9@byu.net>
38819
38820         maint.mk: allow gnulib_dir in VPATH build
38821         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38822
38823 2009-05-15  Jim Meyering  <meyering@redhat.com>
38824
38825         maint.mk: Give gnulib_dir a default definition.
38826         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38827         Thus, most packages no longer need to specify this variable in cfg.mk
38828
38829 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38830
38831         rename.m4: fix typos that would make non-mingw cross-configure fail
38832         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38833
38834 2009-05-13  Eric Blake  <ebb9@byu.net>
38835
38836         mmap-anon: avoid out-of-order autoconf expansion
38837         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38838         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38839         * modules/memchr-tests (Depends-on): Add extensions.
38840         * modules/memchr2-tests (Depends-on): Add extensions.
38841         * modules/memcmp-tests (Depends-on): Add extensions.
38842         * modules/memmem-tests (Depends-on): Add extensions.
38843         * modules/memrchr-tests (Depends-on): Add extensions.
38844
38845 2009-05-13  Bruno Haible  <bruno@clisp.org>
38846
38847         Make some tests ISO C 99 compliant.
38848         * tests/zerosize-ptr.h: New file.
38849         * tests/test-memchr.c: Include zerosize-ptr.h.
38850         (main): Use a zero-size object pointer instead of NULL.
38851         * tests/test-memchr2.c: Include zerosize-ptr.h.
38852         (main): Use a zero-size object pointer instead of NULL.
38853         * tests/test-memcmp.c: Include zerosize-ptr.h.
38854         (main): Use a zero-size object pointer instead of NULL.
38855         * tests/test-memmem.c: Include zerosize-ptr.h.
38856         (main): Use a zero-size object pointer instead of NULL.
38857         * tests/test-memrchr.c: Include zerosize-ptr.h.
38858         (main): Use a zero-size object pointer instead of NULL.
38859         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38860         m4/mmap-anon.m4.
38861         (Depends-on): Add getpagesize.
38862         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38863         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38864         m4/mmap-anon.m4.
38865         (Depends-on): Add getpagesize.
38866         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38867         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38868         m4/mmap-anon.m4.
38869         (Depends-on): Add getpagesize.
38870         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38871         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38872         m4/mmap-anon.m4.
38873         (Depends-on): Add getpagesize.
38874         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38875         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38876         m4/mmap-anon.m4.
38877         (Depends-on): Add getpagesize.
38878         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38879
38880 2009-05-12  Bruno Haible  <bruno@clisp.org>
38881
38882         Tests for module 'alignof'.
38883         * modules/alignof-tests: New file.
38884         * tests/test-alignof.c: New file.
38885
38886 2009-05-12  Bruno Haible  <bruno@clisp.org>
38887
38888         Fix alignof macro.
38889         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38890         vendor compilers that are always correct.
38891
38892 2009-05-12  Bruno Haible  <bruno@clisp.org>
38893
38894         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38895         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38896         not whether its fully works.
38897
38898 2009-05-12  Bruno Haible  <bruno@clisp.org>
38899
38900         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38901
38902 2009-05-12  Jim Meyering  <meyering@redhat.com>
38903
38904         * top/maint.mk: Adjust backslash alignment.
38905
38906 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38907
38908         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38909
38910 2009-05-11  Eric Blake  <ebb9@byu.net>
38911
38912         argp: avoid undefined behavior
38913         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38914         macros.
38915
38916 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38917
38918         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38919         user.name to prevent git commit from complaining.
38920
38921 2009-05-10  Bruno Haible  <bruno@clisp.org>
38922
38923         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38924         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38925         it rewrites every file name only once.
38926         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38927
38928 2009-05-08  Bruno Haible  <bruno@clisp.org>
38929
38930         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38931         instead of 'max'.
38932
38933 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38934
38935         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38936         sockaddr_storage test.
38937
38938 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38939
38940         * modules/sys_socket (Makefile.am): Substitute
38941         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38942         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38943         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38944         * tests/test-sys_socket.c: Check sockaddr_storage.
38945
38946 2009-05-08  Bruno Haible  <bruno@clisp.org>
38947
38948         New module 'alignof'.
38949         * lib/alignof.h: New file.
38950         * modules/alignof: New file.
38951
38952 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38953             Bruno Haible  <bruno@clisp.org>
38954
38955         Fix test-file-has-acl on FreeBSD.
38956         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38957         mask is implicitly added.
38958         * tests/test-file-has-acl.c: Include <signal.h>.
38959         (main): Terminate the test after 5 seconds.
38960         * modules/acl-tests (configure.ac): Check for alarm function.
38961
38962 2009-05-04  Bruno Haible  <bruno@clisp.org>
38963
38964         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38965         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38966         * modules/errno (configure.ac): Drop AC_REQUIRE.
38967         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38968         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38969
38970 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38971
38972         * modules/glob-tests: New module.
38973         * tests/test-glob.c: Add.
38974
38975 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38976
38977         * modules/fnmatch-tests: New module.
38978         * tests/test-fnmatch.c: Add.
38979
38980 2009-05-04  Eric Blake  <ebb9@byu.net>
38981
38982         maint: make the new no-submodule-changes rule VPATH-safe
38983         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38984
38985 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38986             Bruno Haible  <bruno@clisp.org>
38987
38988         acl: Fix infinite loop on FreeBSD.
38989         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38990         of return value from acl_get_entry.
38991         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38992         Likewise.
38993
38994 2009-05-03  Bruno Haible  <bruno@clisp.org>
38995
38996         * lib/acl-internal.h (acl_entries): Clarify return value.
38997         * lib/acl_entries.c (acl_entries): Likewise.
38998
38999 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39000
39001         Bug fix in acl module.
39002         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39003
39004 2009-05-03  Bruno Haible  <bruno@clisp.org>
39005
39006         Create gperf-generated file in the source dir, not in the build dir.
39007         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39008         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39009         * modules/unicase/locale-language (unicase/locale-languages.h):
39010         Likewise.
39011         * modules/unicase/special-casing (unicase/special-casing-table.h):
39012         Likewise.
39013         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39014         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39015         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39016         Reported by Ralf Wildenhues.
39017
39018 2009-05-03  Bruno Haible  <bruno@clisp.org>
39019
39020         * modules/fnmatch (Description, configure.ac): Taken from
39021         fnmatch-posix.
39022         * modules/fnmatch-posix: Turn into a symbolic reference to the
39023         'fnmatch' module, and deprecate.
39024         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39025
39026 2009-05-03  Bruno Haible  <bruno@clisp.org>
39027
39028         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39029         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39030         Reported by Ralf Wildenhues.
39031
39032 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39033
39034         * m4/fnmatch.m4: Fix fnmatch re-define.
39035
39036 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39037
39038         priv-set: new module and tests; adapt write-any-file
39039         * lib/priv-set.c: New file.
39040         * lib/priv-set.h: New file.
39041         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39042         * lib/write-any-file.c: Simplify by using priv-set module.
39043         * m4/priv-set.m4: New file.
39044         * modules/priv-set: New file.
39045         * modules/unlinkdir: Add dependency on priv-set module.
39046         * modules/write-any-file: Likewise.
39047
39048         Tests for module 'priv-set'.
39049         * modules/priv-set-tests: New file.
39050         * tests/test-priv-set.c: New file.
39051
39052 2009-05-03  Jim Meyering  <meyering@redhat.com>
39053             Bruno Haible  <bruno@clisp.org>
39054
39055         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39056         use the converted UTF-8 variant of the name instead.
39057
39058 2009-05-03  Jim Meyering  <meyering@redhat.com>
39059
39060         tests: tighten some getdate tests
39061         * tests/test-getdate.c (main): Tighten tests: require equality,
39062         not just greater than.  Set TZ envvar to UTC0.
39063
39064 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39065
39066         getdate: correctly interpret "next monday" when run on a Monday
39067         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39068         that e.g., "next tues" (when run on a tuesday) results in a date
39069         that is one week in the future, and not today's date.
39070         I.e., add a week when the wday is the same as the current one.
39071         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39072         and earlier by Martin Bernreuther and Jan Minář.
39073         * tests/test-getdate.c (main): Check that "next DAY" is always in
39074         the future and that "last DAY" is always in the past.
39075
39076 2009-05-02  Jim Meyering  <meyering@redhat.com>
39077
39078         build: ensure that a release build fails when a submodule is unclean
39079         * top/maint.mk (no-submodule-changes): New rule.
39080         (alpha beta major): Depend on it.
39081
39082 2009-05-02  Bruno Haible  <bruno@clisp.org>
39083
39084         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39085         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39086         shell variable gl_fnmatch_required to detect which variant is
39087         requested.
39088         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39089         gl_FUNC_FNMATCH_POSIX.
39090         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39091         exclude fnmatch-posix.
39092
39093 2009-05-02  Bruno Haible  <bruno@clisp.org>
39094
39095         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39096         * modules/mbsrtowcs (License): Change to LGPLv2+.
39097         * modules/strnlen1 (License): Likewise.
39098         Reported by Simon Josefsson.
39099
39100 2009-05-02  Bruno Haible  <bruno@clisp.org>
39101
39102         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39103         "cross".
39104         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39105         gnulib-tool was called with option --source-base=lib.
39106
39107 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39108
39109         Use automake *-local hooks without commands, for extensibility.
39110         * modules/localcharset (Makefile.am): Rename install-exec-local
39111         rule to install-exec-localcharset, and make it a prerequisite of
39112         install-exec-local.  Likewise, rename the uninstall-local rule to
39113         uninstall-localcharset, and make it a prerequisite of the former.
39114
39115 2009-05-01  Bruno Haible  <bruno@clisp.org>
39116
39117         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39118         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39119         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39120         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39121         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39122         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39123         m4/locale-zh.m4, m4/codeset.m4.
39124
39125         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39126         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39127         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39128         m4/locale-zh.m4.
39129
39130         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39131         REPLACE_WCRTOMB if mbstate_t must be replaced.
39132         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39133         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39134
39135 2009-05-01  Bruno Haible  <bruno@clisp.org>
39136
39137         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39138         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39139         dngettext, dcngettext, textdomain, bindtextdomain,
39140         bind_textdomain_codeset): Undefine before redefining.
39141
39142 2009-04-30  Bruno Haible  <bruno@clisp.org>
39143
39144         Fix bug introduced on 2009-04-25.
39145         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39146         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39147         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39148         is defined.
39149         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39150         is defined.
39151         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39152         is defined.
39153         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39154
39155 2009-04-28  Bruno Haible  <bruno@clisp.org>
39156
39157         Comment tweaks.
39158         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39159         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39160         * lib/unicase.h (u*_casexfrm): Likewise.
39161         Reported by Paolo Bonzini.
39162
39163 2009-04-28  Bruno Haible  <bruno@clisp.org>
39164
39165         Fix a compilation error.
39166         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39167         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39168         Reported by Jim Meyering.
39169
39170 2009-04-27  Bruno Haible  <bruno@clisp.org>
39171
39172         New module 'libunistring'.
39173         * modules/libunistring: New file.
39174         * m4/libunistring.m4: New file.
39175         * MODULES.html.sh (Unicode string functions): Add it.
39176
39177 2009-04-27  Eric Blake  <ebb9@byu.net>
39178
39179         maint.mk: allow package-specific header to provide <config.h>
39180         * top/maint.mk (sc_require_config_h): New variable.
39181         (sc_require_config_h, sc_require_config_h_first): Use it.
39182
39183 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39184
39185         * top/maint.mk (sc_avoid_if_before_free): Except
39186         useless-if-before-free script.
39187
39188 2009-04-27  Eric Blake  <ebb9@byu.net>
39189
39190         maintainer-makefile: depend on all required helper scripts
39191         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39192         useless-if-before-free.
39193         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39194         version, rather than assuming gnulib checkout is available.
39195         Reported by Simen Josefsson.
39196
39197 2009-04-26  Bruno Haible  <bruno@clisp.org>
39198
39199         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39200         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39201         "../" or "..".
39202
39203 2009-04-26  Bruno Haible  <bruno@clisp.org>
39204
39205         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39206         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39207         AC_LIB_HAVE_LINKFLAGS.
39208
39209 2009-04-26  Bruno Haible  <bruno@clisp.org>
39210
39211         Simplify calling convention of u*_conv_from_encoding.
39212         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39213         u32_conv_from_encoding): Expect a resultbuf argument and return the
39214         result directly as a pointer.
39215         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39216         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39217         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39218         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39219         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39220         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39221         Update.
39222         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39223         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39224         * lib/vasnprintf.c (VASNPRINTF): Update.
39225         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39226         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39227         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39228         * NEWS: Mention the change.
39229
39230 2009-04-26  Bruno Haible  <bruno@clisp.org>
39231
39232         Simplify calling convention of u*_conv_to_encoding.
39233         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39234         u32_conv_to_encoding): Expect a resultbuf argument and return the
39235         result directly as a pointer.
39236         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39237         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39238         freeing scaled_offsets if mem_iconveha failed.
39239         * lib/unicase/u-casexfrm.h (FUNC): Update.
39240         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39241         * lib/vasnprintf.c (VASNPRINTF): Update.
39242         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39243         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39244         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39245         * NEWS: Mention the change.
39246
39247 2009-04-26  Bruno Haible  <bruno@clisp.org>
39248
39249         Avoid test failures on AIX and OSF/1.
39250         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39251         malloc(0).
39252         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39253         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39254         Likewise.
39255         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39256         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39257         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39258         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39259         * doc/posix-functions/malloc.texi: Document the portability problem
39260         related to malloc(0).
39261
39262 2009-04-26  Bruno Haible  <bruno@clisp.org>
39263
39264         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39265         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39266         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39267
39268 2009-04-25  Bruno Haible  <bruno@clisp.org>
39269
39270         Avoid link error when creating a namespace clean library.
39271         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39272         as macro with arguments if already defined as an alias.
39273         * lib/signbitf.c (gl_signbitf): Don't undefine.
39274         * lib/signbitd.c (gl_signbitd): Don't undefine.
39275         * lib/signbitl.c (gl_signbitl): Don't undefine.
39276
39277 2009-04-25  Jim Meyering  <meyering@redhat.com>
39278
39279         vc-list-files: fix another quoting bug
39280         * build-aux/vc-list-files: Avoid sed backslash expansion
39281         of pathological directory names.
39282
39283 2009-04-25  Eric Blake  <ebb9@byu.net>
39284
39285         vc-list-files: fix shell quoting error
39286         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39287         timestamp.
39288
39289 2009-04-25  Jim Meyering  <meyering@redhat.com>
39290
39291         vc-list-files: restore lost functionality with subdir argument
39292         * build-aux/vc-list-files: When given a non-"." sub-directory
39293         argument, substitute the $dir/ prefix back onto each resulting name.
39294         Otherwise, coreutils' root_tests check would fail.
39295
39296 2009-04-24  Eric Blake  <ebb9@byu.net>
39297
39298         vc-list-files: ignore git symlinks
39299         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39300         than ls-files, to ignore git symlinks.
39301
39302         maint.mk: import improvements from m4
39303         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39304         (move_if_change): Delete unused macro.
39305         (news-date-check, vc-diff-check): Support VPATH builds.
39306         (announcement): Likewise.  Split --bootstrap-tools list...
39307         (boostrap-tools): ...into separate list, which can be overridden
39308         in cfg.mk.
39309         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39310         requiring dependency on useless-if-before-free module.
39311         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39312         Support VPATH builds.
39313
39314 2009-04-24  Jim Meyering  <meyering@redhat.com>
39315
39316         maint.mk: remove coreutils-specific rules and variables
39317         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39318         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39319         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39320
39321         maint.mk: remove obsolete rule
39322         * top/maint.mk (rel-check): Remove rule.
39323         (WGET, WGETFLAGS): Remove now-unused variables.
39324
39325 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39326
39327         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39328         consistency.
39329
39330         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39331         '$(PATH_SEPARATOR)' instead of ':'.
39332
39333 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39334
39335         * lib/getopt1.c (main): Use 'const' for static array.
39336
39337 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39338
39339         * top/maint.mk: Sync with coreutils.
39340         * NEWS: Explain incompatibilities.
39341
39342 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39343             Bruno Haible  <bruno@clisp.org>
39344
39345         Fix cross-compilation results.
39346         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39347         statement, as third argument of AC_TRY_RUN.
39348         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39349         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39350         Likewise.
39351         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39352         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39353         Likewise.
39354         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39355         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39356         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39357
39358 2009-04-20  Bruno Haible  <bruno@clisp.org>
39359
39360         Avoid test failure on mingw.
39361         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39362
39363 2009-04-20  Bruno Haible  <bruno@clisp.org>
39364
39365         Avoid compilation error on mingw.
39366         * modules/localename-tests (Depends-on): Add locale.
39367
39368 2009-04-19  Bruno Haible  <bruno@clisp.org>
39369
39370         Support for building a shared library on Windows platforms.
39371         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39372         (main): Test the presence of UNINORM_NFC here.
39373         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39374         (main): Test the presence of UNINORM_NFD here.
39375         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39376         (main): Test the presence of UNINORM_NFKC here.
39377         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39378         (main): Test the presence of UNINORM_NFKD here.
39379
39380 2009-04-19  Bruno Haible  <bruno@clisp.org>
39381
39382         Avoid a compiler warning.
39383         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39384         Change type of variable 'sequence'.
39385
39386 2009-04-19  Bruno Haible  <bruno@clisp.org>
39387
39388         * modules/configmake (Makefile.am): When the contents of configmake.h
39389         does not change, arrange to preserve its modification time.
39390
39391 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39392
39393         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39394         gettext domain.
39395
39396 2009-04-16  Jim Meyering  <meyering@redhat.com>
39397
39398         useless-if-before-free: improve conversion code
39399         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39400         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39401
39402 2009-04-14  Bruno Haible  <bruno@clisp.org>
39403
39404         * modules/fcntl (Depends-on): Add extensions.
39405         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39406
39407 2009-04-12  Ben Pfaff  <blp@gnu.org>
39408
39409         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39410         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39411
39412 2009-03-20  Ben Pfaff  <blp@gnu.org>
39413
39414         Make rename replace existing destinations on Windows.
39415         * m4/rename.m4: Add test for Mingw.
39416         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39417         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39418         * doc/posix-functions/rename.texi: Document.
39419
39420 2009-04-10  Bruno Haible  <bruno@clisp.org>
39421
39422         New include file "iconveh.h".
39423         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39424         * lib/striconveh.h: Include it.
39425         (enum iconv_ilseq_handler): Remove definition.
39426         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39427         striconveh.h.
39428         * lib/striconveha.c: Include striconveh.h.
39429         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39430         * modules/striconveh (Files): Add lib/iconveh.h.
39431         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39432         lib/striconveh.h.
39433
39434 2009-04-10  Bruno Haible  <bruno@clisp.org>
39435
39436         * lib/uniconv.h: Update comment.
39437
39438 2009-04-10  Bruno Haible  <bruno@clisp.org>
39439
39440         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39441         always.
39442         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39443         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39444         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39445         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39446         "unistring-notinline.h", so that the function gets defined always.
39447         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39448         * lib/unistr/u8-uctomb.c: Likewise.
39449         * lib/unistr/u16-mbtouc.c: Likewise.
39450         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39451         * lib/unistr/u16-uctomb.c: Likewise.
39452         * lib/unistr/u32-mbtouc.c: Likewise.
39453         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39454         * lib/unistr/u32-uctomb.c: Likewise.
39455
39456 2009-04-10  Bruno Haible  <bruno@clisp.org>
39457
39458         Mark 'utime' obsolete.
39459         * modules/utime (Status, Notice): New sections.
39460         Suggested by Jim Meyering.
39461
39462         Fix cross-compile guess for utime test.
39463         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39464         autoconf.
39465         * doc/posix-functions/utime.texi: Give more precisions.
39466         Reported by Jan <ipif@ymail.com>.
39467
39468 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39469
39470         filevercmp: correct today's change
39471         * lib/filevercmp.c: Also handle coreutils' test inputs.
39472         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39473
39474         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39475         for reporting it.
39476         * lib/filevercmp.c: Special handle for "", "." and "..".
39477         * tests/test-filevercmp.c: Enlarge the set suite.
39478
39479 2009-04-07  Jim Meyering  <meyering@redhat.com>
39480
39481         useless-if-before-free: show how to remove braced useless free, too
39482         * build-aux/useless-if-before-free: still only in a comment, though.
39483
39484 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39485
39486         maint.mk: import changes to syntax-check macros from coreutils
39487         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39488         Use them in the relevant macros.
39489
39490 2009-04-06  Bruno Haible  <bruno@clisp.org>
39491
39492         Fix unportable use of bit-fields.
39493         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39494         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39495         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39496
39497 2009-04-06  Bruno Haible  <bruno@clisp.org>
39498
39499         Avoid test failures on AIX and OSF/1.
39500         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39501         that malloc(0) = NULL.
39502         * tests/unicase/test-u8-tolower.c (check): Likewise.
39503         * tests/unicase/test-u8-totitle.c (check): Likewise.
39504         * tests/unicase/test-u8-toupper.c (check): Likewise.
39505         * tests/unicase/test-u16-casefold.c (check): Likewise.
39506         * tests/unicase/test-u16-tolower.c (check): Likewise.
39507         * tests/unicase/test-u16-totitle.c (check): Likewise.
39508         * tests/unicase/test-u16-toupper.c (check): Likewise.
39509         * tests/unicase/test-u32-casefold.c (check): Likewise.
39510         * tests/unicase/test-u32-tolower.c (check): Likewise.
39511         * tests/unicase/test-u32-totitle.c (check): Likewise.
39512         * tests/unicase/test-u32-toupper.c (check): Likewise.
39513         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39514         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39515         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39516         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39517         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39518         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39519         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39520         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39521         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39522         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39523         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39524         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39525
39526 2009-04-05  Bruno Haible  <bruno@clisp.org>
39527
39528         Work around an autoconf limitation.
39529         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39530         comment line if it would be longer than 3 KB.
39531
39532 2009-04-05  Bruno Haible  <bruno@clisp.org>
39533
39534         Avoid test failure with libiconv-1.13.
39535         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39536         of the expected test results.
39537
39538 2009-04-05  Bruno Haible  <bruno@clisp.org>
39539
39540         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39541         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39542         that it should be installed.
39543
39544 2009-04-05  Bruno Haible  <bruno@clisp.org>
39545
39546         * gnulib-tool: New option --copy-file.
39547         (func_usage): Document it.
39548         (func_dest_tmpfilename): Moved out of func_import.
39549         (func_add_file, func_update_file): New functions, extracted from
39550         func_import.
39551         (func_import): Update.
39552
39553 2009-04-05  Karl Berry  <karl@gnu.org>
39554
39555         * README: prominently mention gnulib-tool.
39556         Rearrange sections so getting the code is near the top.
39557
39558 2009-04-05  Bruno Haible  <bruno@clisp.org>
39559
39560         * lib/unicase.h: Mention u*_cmp2.
39561         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39562         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39563         * lib/unicase/ulc-casecmp.c: Likewise.
39564         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39565         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39566         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39567         unistr/u8-cmp.
39568         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39569         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39570         unistr/u16-cmp.
39571         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39572         unistr/u32-cmp.
39573
39574         * lib/uninorm.h: Mention u*_cmp2.
39575         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39576         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39577         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39578         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39579         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39580         unistr/u8-cmp.
39581         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39582         unistr/u16-cmp.
39583         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39584         unistr/u32-cmp.
39585
39586         New module 'unistr/u32-cmp2'.
39587         * lib/unistr/u32-cmp2.c: New file.
39588         * modules/unistr/u32-cmp2: New file.
39589
39590         New module 'unistr/u16-cmp2'.
39591         * lib/unistr/u16-cmp2.c: New file.
39592         * modules/unistr/u16-cmp2: New file.
39593
39594         New module 'unistr/u8-cmp2'.
39595         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39596         * lib/unistr/u8-cmp2.c: New file.
39597         * lib/unistr/u-cmp2.h: New file.
39598         * modules/unistr/u8-cmp2: New file.
39599
39600 2009-04-05  Bruno Haible  <bruno@clisp.org>
39601
39602         * lib/unictype.h (uc_property_is_valid): New macro.
39603         * tests/unictype/test-pr_byname.c (main): Use it.
39604
39605         * lib/unistr.h: Doc fixes.
39606         * lib/uniconv.h: Doc fixes.
39607         * lib/unictype.h: Doc fixes.
39608
39609 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39610
39611         Port coreutils 7.2 to Solaris 8.
39612
39613         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39614         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39615         for Solaris 8.  This is a bit of a hack, as it means it's the
39616         caller's responsibility to add -lnsl if needed, but most likely it
39617         won't be needed since only getaddrinfo uses this and getaddrinfo
39618         isn't needed on Solaris 8.
39619
39620         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39621         problem to Solaris 8 encountered with coreutils 7.2, which
39622         resulted in a message "fnmatch.c:292: warning: passing argument 4
39623         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39624         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39625
39626 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39627
39628         * m4/ld-version-script.m4: Add FIXME comment.
39629
39630 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39631
39632         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39633         SOVERSION variable.
39634
39635 2009-04-02  Bruno Haible  <bruno@clisp.org>
39636
39637         * Makefile (info, html, dvi, pdf): Combine the rules.
39638         Suggested by Jim Meyering.
39639
39640 2009-04-01  Bruno Haible  <bruno@clisp.org>
39641
39642         * Makefile (info, html, dvi, pdf): New targets.
39643         Reported by Reuben Thomas <rrt@sc3d.org>.
39644
39645 2009-04-01  Bruno Haible  <bruno@clisp.org>
39646
39647         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39648         can be put into PATH.
39649         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39650
39651 2009-04-01  Bruno Haible  <bruno@clisp.org>
39652
39653         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39654
39655 2009-04-01  Bruno Haible  <bruno@clisp.org>
39656
39657         Rename module 'visibility'.
39658         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39659         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39660         * doc/gnulib.texi: Update.
39661         * MODULES.html.sh (Misc): Update.
39662         * NEWS: Mention the change.
39663
39664 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39665
39666         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39667         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39668         Eric Blake <ebb9@byu.net> for review.
39669         * MODULES.html.sh: Add lib-msvc-compat.
39670         * doc/gnulib.texi: Link to new section.
39671         * m4/ld-output-def.m4: New file.
39672         * doc/ld-output-def.texi: New file.
39673
39674 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39675
39676         Rename ld-version-script to lib-symbol-versions.  Suggested by
39677         Bruno Haible <bruno@clisp.org>.
39678         * modules/ld-version-script: Renamed to lib-symbol-versions.
39679         * doc/ld-version-script.texi: Fix module name.
39680         * MODULES.html.sh: Add lib-symbol-versions.
39681
39682 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39683
39684         * modules/u64-tests: New file.
39685         * tests/test-u64.c: New file.
39686
39687 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39688
39689         * MODULES.html.sh: Mention u64.
39690         * modules/u64: New module.
39691         * modules/crypto/sha512: Depend on u64 module instead of providing
39692         u64.h.
39693
39694 2009-03-27  Eric Blake  <ebb9@byu.net>
39695
39696         test-strerror: make debugging EAI_SYSTEM easier
39697         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39698         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39699         failure was EAI_SYSTEM.
39700
39701 2009-03-25  Bruno Haible  <bruno@clisp.org>
39702
39703         Fix a problem with --enable-relocatable on Solaris 7.
39704         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39705         since 2008-02-24.
39706
39707 2009-03-25  Eric Blake  <ebb9@byu.net>
39708
39709         test-sockets: avoid gcc warning
39710         * tests/test-sockets.c (main): Silence compiler warning.
39711
39712 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39713
39714         New modules nproc, pthread, contributed by Glen Lenker.
39715
39716         * MODULES.html.sh: Add pthread, nproc.
39717         * lib/nproc.c: New file.
39718         * lib/nproc.h: New file.
39719         * lib/pthread.in.h: New file.
39720         * m4/pthread.m4: New file.
39721         * modules/nproc: New file.
39722         * modules/pthread: New file.
39723
39724 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39725
39726         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39727         New variable.
39728
39729 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39730
39731         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39732         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39733         * tests/test-filevercmp.c: Add tests for backup suffixes.
39734
39735 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39736
39737         * modules/stdlib (Depends-on): Add stdint, needed when defining
39738         struct random_data on, for example, HP-UX 10.20.  Reported by
39739         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39740
39741 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39742
39743         * lib/readline.c (readline): Call fflush on stdout after printing
39744         prompt.
39745
39746 2009-03-20  Bruno Haible  <bruno@clisp.org>
39747
39748         Remove dependency from 'close' module to -lws2_32 on native Windows.
39749         * lib/close-hook.h: New file.
39750         * lib/close-hook.c: New file.
39751         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39752         w32sock.h.
39753         (_gl_close_fd_maybe_socket): Remove function.
39754         (rpl_close): Invoke execute_all_close_hooks instead of
39755         _gl_close_fd_maybe_socket.
39756         * lib/sockets.c: Include close-hook.h, w32sock.h.
39757         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39758         (close_sockets_hook): New variable.
39759         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39760         (gl_sockets_cleanup): Unregister it.
39761         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39762         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39763         * modules/close-hook: New file.
39764         * modules/close (Files): Remove lib/w32sock.h.
39765         (Depends-on): Add close-hook.
39766         (Link): Remove section.
39767         * modules/sockets (Files): Add lib/w32sock.h.
39768         (Depends-on): Add close-hook.
39769         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39770         invocation.
39771         * NEWS: Mention that LIB_CLOSE is gone.
39772
39773 2009-03-23  Eric Blake  <ebb9@byu.net>
39774
39775         signal-tests: test previous patch
39776         * tests/test-signal.c: New file.
39777         * modules/signal-tests: Likewise.
39778
39779         signal.h: always support 'volatile sig_atomic_t'
39780         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39781         (gl_SIGNAL_H_DEFAULTS): Add a default.
39782         * modules/signal (Makefile.am): Substitute if needed.
39783         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39784         users can blindly add volatile.
39785         * doc/posix-headers/signal.texi (signal.h): Document it.
39786         Reported by Matthew Woehlke.
39787
39788 2009-03-23  Jim Meyering  <meyering@redhat.com>
39789
39790         pathmax: PATH_MAX: use pathconf only when available
39791         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39792         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39793         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39794         This avoids a link failure in a PSP cross-compilation environment
39795         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39796
39797         * lib/vasnprintf.c (divide): Fix typo in comment.
39798
39799 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39800
39801         * gnulib-tool (func_filter_filelist): Fix comment.
39802
39803 2009-03-20  Bruno Haible  <bruno@clisp.org>
39804
39805         Make sockets.h self-contained.
39806         * lib/sockets.c: Include sockets.h first.
39807         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39808
39809 2009-03-19  Eric Blake  <ebb9@byu.net>
39810
39811         doc: mention more functions added in cygwin 1.7.0
39812         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39813         addition.
39814         * doc/posix-functions/log2f.texi: Likewise.
39815
39816 2009-03-19  Jim Meyering  <meyering@redhat.com>
39817
39818         fsusage: avoid syntax error due to statement-before-declaration
39819         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39820         after all declarations.  Reported by Matthew Woehlke in
39821         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39822
39823 2009-03-18  Eric Blake  <ebb9@byu.net>
39824
39825         build-aux/compile: sync from automake
39826         * build-aux/compile: New file, from automake.
39827         * config/srclist.txt: Mention build-aux/compile.
39828
39829 2009-03-17  Bruno Haible  <bruno@clisp.org>
39830
39831         * lib/git-merge-changelog.c: Fix typo in comment.
39832         Reported by Reuben Thomas <rrt@sc3d.org>.
39833
39834 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39835
39836         * m4/regex.m4: update and improve help for
39837         --without-included-regex.
39838
39839 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39840
39841         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39842         failure on missing include files.
39843
39844 2009-03-17  Eric Blake  <ebb9@byu.net>
39845
39846         doc: mention more functions added in cygwin 1.7.0
39847         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39848         addition.
39849         * doc/posix-functions/fwscanf.texi: Likewise.
39850         * doc/posix-functions/swprintf.texi: Likewise.
39851         * doc/posix-functions/swscanf.texi: Likewise.
39852         * doc/posix-functions/vfwprintf.texi: Likewise.
39853         * doc/posix-functions/vfwscanf.texi: Likewise.
39854         * doc/posix-functions/vswprintf.texi: Likewise.
39855         * doc/posix-functions/vswscanf.texi: Likewise.
39856         * doc/posix-functions/vwprintf.texi: Likewise.
39857         * doc/posix-functions/vwscanf.texi: Likewise.
39858         * doc/posix-functions/wcscasecmp.texi: Likewise.
39859         * doc/posix-functions/wcsdup.texi: Likewise.
39860         * doc/posix-functions/wcsftime.texi: Likewise.
39861         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39862         * doc/posix-functions/wprintf.texi: Likewise.
39863         * doc/posix-functions/wscanf.texi: Likewise.
39864         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39865
39866 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39867
39868         maint.mk: really add $(AM_MAKEFLAGS)
39869         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39870         was inadvertently omitted in the last commit.
39871         Spotted by Bruno Haible.
39872
39873         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39874         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39875         $(AM_MAKEFLAGS)' rather than plain `make'.
39876
39877         gnulib-tool: execute $MAKE not make
39878         * gnulib-tool: Default $MAKE to 'make'.
39879         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39880         than make.  Initialize $MAKE in the do-autobuild script.
39881
39882         gnulib-tool: use $MAKE not make in generated files
39883         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39884         make, in generated files.  Initialize $MAKE in the do-autobuild
39885         script.
39886
39887         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39888
39889         GNUmakefile: disable parallelism only for multiple, recursive targets
39890         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39891         additions in the Makefile.
39892         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39893         by Automake.
39894         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39895         are listed on the command line and at least one of them is
39896         listed in $(ALL_RECURSIVE_TARGETS).
39897
39898 2009-03-14  Bruno Haible  <bruno@clisp.org>
39899
39900         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39901         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39902         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39903         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39904         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39905         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39906         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39907         unistr/u8-uctomb.
39908         * modules/unistr/u8-strchr (Depends-on): Likewise.
39909         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39910         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39911         unistr/u16-uctomb.
39912         * modules/unistr/u16-strchr (Depends-on): Likewise.
39913         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39914
39915 2009-03-12  Bruno Haible  <bruno@clisp.org>
39916
39917         Work around select() bug on Interix 3.5.
39918         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39919         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39920         * m4/select.m4: New file.
39921         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39922         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39923         * modules/select (Files): Add m4/select.m4.
39924         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39925         * modules/nanosleep (Depends-on): Add select.
39926         * modules/poll (Depends-on): Likewise.
39927         * doc/posix-functions/select.texi: Mention the Interix bug.
39928         Reported by Markus Duft <mduft@gentoo.org>.
39929
39930         * lib/select.c: Renamed from lib/winsock-select.c.
39931         * modules/select (Files): Add lib/select.c, remove
39932         lib/winsock-select.c.
39933         (configure.ac): Update.
39934
39935 2009-03-12  Jim Meyering  <meyering@redhat.com>
39936
39937         avoid gcc warnings about unused macro definitions
39938         * lib/readtokens.c (STREQ): Remove unused definition.
39939         * lib/xmalloc.c (SIZE_MAX): Likewise.
39940         * lib/openat-die.c (N_): Likewise.
39941         * lib/mountlist.c (SIZE_MAX): Remove definition.
39942         Instead, include <stdint.h>.
39943         * lib/readutmp.c: Likewise.
39944         * modules/readutmp (Depends-on): Add stdint.
39945         * modules/mountlist (Depends-on): Add stdint.
39946         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39947
39948 2009-03-10  Bruno Haible  <bruno@clisp.org>
39949
39950         Tests for module 'mbmemcasecoll'.
39951         * modules/mbmemcasecoll-tests: New file.
39952         * tests/test-mbmemcasecoll1.sh: New file.
39953         * tests/test-mbmemcasecoll2.sh: New file.
39954         * tests/test-mbmemcasecoll3.sh: New file.
39955         * tests/test-mbmemcasecoll.c: New file.
39956
39957         New module 'mbmemcasecoll'.
39958         * lib/mbmemcasecoll.h: New file.
39959         * lib/mbmemcasecoll.c: New file.
39960         * modules/mbmemcasecoll: New file.
39961
39962         * tests/test-mbmemcasecmp.h: New file, extracted from
39963         tests/test-mbmemcasecmp.c.
39964         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39965         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39966         (main): Update.
39967         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39968
39969 2009-03-09  Bruno Haible  <bruno@clisp.org>
39970
39971         Tests for module 'mbmemcasecmp'.
39972         * modules/mbmemcasecmp-tests: New file.
39973         * tests/test-mbmemcasecmp1.sh: New file.
39974         * tests/test-mbmemcasecmp2.sh: New file.
39975         * tests/test-mbmemcasecmp3.sh: New file.
39976         * tests/test-mbmemcasecmp.c: New file.
39977
39978         New module 'mbmemcasecmp'.
39979         * lib/mbmemcasecmp.h: New file.
39980         * lib/mbmemcasecmp.c: New file.
39981         * modules/mbmemcasecmp: New file.
39982
39983 2009-03-09  Bruno Haible  <bruno@clisp.org>
39984
39985         Tests for module 'unicase/ulc-casecoll'.
39986         * modules/unicase/ulc-casecoll-tests: New file.
39987         * tests/unicase/test-ulc-casecoll1.sh: New file.
39988         * tests/unicase/test-ulc-casecoll2.sh: New file.
39989         * tests/unicase/test-ulc-casecoll.c: New file.
39990
39991         New module 'unicase/ulc-casecoll'.
39992         * lib/unicase.h (ulc_casecoll): New declaration.
39993         * lib/unicase/ulc-casecoll.c: New file.
39994         * modules/unicase/ulc-casecoll: New file.
39995
39996         New module 'unicase/ulc-casexfrm'.
39997         * lib/unicase.h (ulc_casexfrm): New declaration.
39998         * lib/unicase/ulc-casexfrm.c: New file.
39999         * modules/unicase/ulc-casexfrm: New file.
40000
40001 2009-03-09  Bruno Haible  <bruno@clisp.org>
40002
40003         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40004         invocations.
40005
40006         * m4/mbscasecmp.m4: Remove file.
40007         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40008         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40009
40010         * m4/mbscasestr.m4: Remove file.
40011         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40012         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40013
40014         * m4/mbschr.m4: Remove file.
40015         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40016         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40017
40018         * m4/mbscspn.m4: Remove file.
40019         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40020         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40021
40022         * m4/mbslen.m4: Remove file.
40023         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40024         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40025
40026         * m4/mbsncasecmp.m4: Remove file.
40027         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40028         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40029
40030         * m4/mbsnlen.m4: Remove file.
40031         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40032         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40033
40034         * m4/mbspbrk.m4: Remove file.
40035         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40036         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40037
40038         * m4/mbspcasecmp.m4: Remove file.
40039         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40040         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40041
40042         * m4/mbsrchr.m4: Remove file.
40043         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40044         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40045
40046         * m4/mbssep.m4: Remove file.
40047         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40048         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40049
40050         * m4/mbsspn.m4: Remove file.
40051         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40052         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40053
40054         * m4/mbsstr.m4: Remove file.
40055         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40056         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40057
40058         * m4/mbstok_r.m4: Remove file.
40059         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40060         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40061
40062         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40063
40064         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40065         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40066
40067         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40068
40069 2009-03-08  Bruno Haible  <bruno@clisp.org>
40070
40071         Tests for module 'unicase/ulc-casecmp'.
40072         * modules/unicase/ulc-casecmp-tests: New file.
40073         * tests/unicase/test-ulc-casecmp1.sh: New file.
40074         * tests/unicase/test-ulc-casecmp2.sh: New file.
40075         * tests/unicase/test-ulc-casecmp.c: New file.
40076
40077         New module 'unicase/ulc-casecmp'.
40078         * lib/unicase.h (ulc_casecmp): New declaration.
40079         * lib/unicase/ulc-casecmp.c: New file.
40080         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40081         'const SRC_UNIT *'.
40082         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40083         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40084         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40085         * modules/unicase/ulc-casecmp: New file.
40086
40087         Tests for module 'unicase/u32-is-cased'.
40088         * modules/unicase/u32-is-cased-tests: New file.
40089         * tests/unicase/test-u32-is-cased.c: New file.
40090
40091         Tests for module 'unicase/u16-is-cased'.
40092         * modules/unicase/u16-is-cased-tests: New file.
40093         * tests/unicase/test-u16-is-cased.c: New file.
40094
40095         Tests for module 'unicase/u8-is-cased'.
40096         * modules/unicase/u8-is-cased-tests: New file.
40097         * tests/unicase/test-u8-is-cased.c: New file.
40098         * tests/unicase/test-is-cased.h: New file.
40099
40100         New module 'unicase/u32-is-cased'.
40101         * lib/unicase/u32-is-cased.c: New file.
40102         * modules/unicase/u32-is-cased: New file.
40103
40104         New module 'unicase/u16-is-cased'.
40105         * lib/unicase/u16-is-cased.c: New file.
40106         * modules/unicase/u16-is-cased: New file.
40107
40108         New module 'unicase/u8-is-cased'.
40109         * lib/unicase/u8-is-cased.c: New file.
40110         * lib/unicase/u-is-cased.h: New file.
40111         * modules/unicase/u8-is-cased: New file.
40112
40113         Tests for module 'unicase/u32-is-casefolded'.
40114         * modules/unicase/u32-is-casefolded-tests: New file.
40115         * tests/unicase/test-u32-is-casefolded.c: New file.
40116
40117         Tests for module 'unicase/u16-is-casefolded'.
40118         * modules/unicase/u16-is-casefolded-tests: New file.
40119         * tests/unicase/test-u16-is-casefolded.c: New file.
40120
40121         Tests for module 'unicase/u8-is-casefolded'.
40122         * modules/unicase/u8-is-casefolded-tests: New file.
40123         * tests/unicase/test-u8-is-casefolded.c: New file.
40124         * tests/unicase/test-is-casefolded.h: New file.
40125
40126         New module 'unicase/u32-is-casefolded'.
40127         * lib/unicase/u32-is-casefolded.c: New file.
40128         * modules/unicase/u32-is-casefolded: New file.
40129
40130         New module 'unicase/u16-is-casefolded'.
40131         * lib/unicase/u16-is-casefolded.c: New file.
40132         * modules/unicase/u16-is-casefolded: New file.
40133
40134         New module 'unicase/u8-is-casefolded'.
40135         * lib/unicase/u8-is-casefolded.c: New file.
40136         * modules/unicase/u8-is-casefolded: New file.
40137
40138         Tests for module 'unicase/u32-is-titlecase'.
40139         * modules/unicase/u32-is-titlecase-tests: New file.
40140         * tests/unicase/test-u32-is-titlecase.c: New file.
40141
40142         Tests for module 'unicase/u16-is-titlecase'.
40143         * modules/unicase/u16-is-titlecase-tests: New file.
40144         * tests/unicase/test-u16-is-titlecase.c: New file.
40145
40146         Tests for module 'unicase/u8-is-titlecase'.
40147         * modules/unicase/u8-is-titlecase-tests: New file.
40148         * tests/unicase/test-u8-is-titlecase.c: New file.
40149         * tests/unicase/test-is-titlecase.h: New file.
40150
40151         New module 'unicase/u32-is-titlecase'.
40152         * lib/unicase/u32-is-titlecase.c: New file.
40153         * modules/unicase/u32-is-titlecase: New file.
40154
40155         New module 'unicase/u16-is-titlecase'.
40156         * lib/unicase/u16-is-titlecase.c: New file.
40157         * modules/unicase/u16-is-titlecase: New file.
40158
40159         New module 'unicase/u8-is-titlecase'.
40160         * lib/unicase/u8-is-titlecase.c: New file.
40161         * modules/unicase/u8-is-titlecase: New file.
40162
40163         Tests for module 'unicase/u32-is-lowercase'.
40164         * modules/unicase/u32-is-lowercase-tests: New file.
40165         * tests/unicase/test-u32-is-lowercase.c: New file.
40166
40167         Tests for module 'unicase/u16-is-lowercase'.
40168         * modules/unicase/u16-is-lowercase-tests: New file.
40169         * tests/unicase/test-u16-is-lowercase.c: New file.
40170
40171         Tests for module 'unicase/u8-is-lowercase'.
40172         * modules/unicase/u8-is-lowercase-tests: New file.
40173         * tests/unicase/test-u8-is-lowercase.c: New file.
40174         * tests/unicase/test-is-lowercase.h: New file.
40175
40176         New module 'unicase/u32-is-lowercase'.
40177         * lib/unicase/u32-is-lowercase.c: New file.
40178         * modules/unicase/u32-is-lowercase: New file.
40179
40180         New module 'unicase/u16-is-lowercase'.
40181         * lib/unicase/u16-is-lowercase.c: New file.
40182         * modules/unicase/u16-is-lowercase: New file.
40183
40184         New module 'unicase/u8-is-lowercase'.
40185         * lib/unicase/u8-is-lowercase.c: New file.
40186         * modules/unicase/u8-is-lowercase: New file.
40187
40188         Tests for module 'unicase/u32-is-uppercase'.
40189         * modules/unicase/u32-is-uppercase-tests: New file.
40190         * tests/unicase/test-u32-is-uppercase.c: New file.
40191
40192         Tests for module 'unicase/u16-is-uppercase'.
40193         * modules/unicase/u16-is-uppercase-tests: New file.
40194         * tests/unicase/test-u16-is-uppercase.c: New file.
40195
40196         Tests for module 'unicase/u8-is-uppercase'.
40197         * modules/unicase/u8-is-uppercase-tests: New file.
40198         * tests/unicase/test-u8-is-uppercase.c: New file.
40199         * tests/unicase/test-is-uppercase.h: New file.
40200
40201         New module 'unicase/u32-is-uppercase'.
40202         * lib/unicase/u32-is-uppercase.c: New file.
40203         * modules/unicase/u32-is-uppercase: New file.
40204
40205         New module 'unicase/u16-is-uppercase'.
40206         * lib/unicase/u16-is-uppercase.c: New file.
40207         * modules/unicase/u16-is-uppercase: New file.
40208
40209         New module 'unicase/u8-is-uppercase'.
40210         * lib/unicase/u8-is-uppercase.c: New file.
40211         * modules/unicase/u8-is-uppercase: New file.
40212
40213         New module 'unicase/u32-is-invariant'.
40214         * lib/unicase/u32-is-invariant.c: New file.
40215         * modules/unicase/u32-is-invariant: New file.
40216
40217         New module 'unicase/u16-is-invariant'.
40218         * lib/unicase/u16-is-invariant.c: New file.
40219         * modules/unicase/u16-is-invariant: New file.
40220
40221         New module 'unicase/u8-is-invariant'.
40222         * lib/unicase/u8-is-invariant.c: New file.
40223         * lib/unicase/invariant.h: New file.
40224         * lib/unicase/u-is-invariant.h: New file.
40225         * modules/unicase/u8-is-invariant: New file.
40226
40227         Tests for module 'unicase/u32-casecoll'.
40228         * modules/unicase/u32-casecoll-tests: New file.
40229         * tests/unicase/test-u32-casecoll.c: New file.
40230
40231         Tests for module 'unicase/u16-casecoll'.
40232         * modules/unicase/u16-casecoll-tests: New file.
40233         * tests/unicase/test-u16-casecoll.c: New file.
40234
40235         Tests for module 'unicase/u8-casecoll'.
40236         * modules/unicase/u8-casecoll-tests: New file.
40237         * tests/unicase/test-u8-casecoll.c: New file.
40238
40239         New module 'unicase/u32-casecoll'.
40240         * lib/unicase/u32-casecoll.c: New file.
40241         * modules/unicase/u32-casecoll: New file.
40242
40243         New module 'unicase/u16-casecoll'.
40244         * lib/unicase/u16-casecoll.c: New file.
40245         * modules/unicase/u16-casecoll: New file.
40246
40247         New module 'unicase/u8-casecoll'.
40248         * lib/unicase/u8-casecoll.c: New file.
40249         * lib/unicase/u-casecoll.h: New file.
40250         * modules/unicase/u8-casecoll: New file.
40251
40252         New module 'unicase/u32-casexfrm'.
40253         * lib/unicase/u32-casexfrm.c: New file.
40254         * modules/unicase/u32-casexfrm: New file.
40255
40256         New module 'unicase/u16-casexfrm'.
40257         * lib/unicase/u16-casexfrm.c: New file.
40258         * modules/unicase/u16-casexfrm: New file.
40259
40260         New module 'unicase/u8-casexfrm'.
40261         * lib/unicase/u8-casexfrm.c: New file.
40262         * lib/unicase/u-casexfrm.h: New file.
40263         * modules/unicase/u8-casexfrm: New file.
40264
40265         Tests for module 'unicase/u32-casecmp'.
40266         * modules/unicase/u32-casecmp-tests: New file.
40267         * tests/unicase/test-u32-casecmp.c: New file.
40268
40269         Tests for module 'unicase/u16-casecmp'.
40270         * modules/unicase/u16-casecmp-tests: New file.
40271         * tests/unicase/test-u16-casecmp.c: New file.
40272
40273         Tests for module 'unicase/u8-casecmp'.
40274         * modules/unicase/u8-casecmp-tests: New file.
40275         * tests/unicase/test-u8-casecmp.c: New file.
40276         * tests/unicase/test-casecmp.h: New file.
40277
40278         New module 'unicase/u32-casecmp'.
40279         * lib/unicase/u32-casecmp.c: New file.
40280         * modules/unicase/u32-casecmp: New file.
40281
40282         New module 'unicase/u16-casecmp'.
40283         * lib/unicase/u16-casecmp.c: New file.
40284         * modules/unicase/u16-casecmp: New file.
40285
40286         New module 'unicase/u8-casecmp'.
40287         * lib/unicase/u8-casecmp.c: New file.
40288         * lib/unicase/u-casecmp.h: New file.
40289         * modules/unicase/u8-casecmp: New file.
40290
40291         Tests for module 'unicase/u32-casefold'.
40292         * modules/unicase/u32-casefold-tests: New file.
40293         * tests/unicase/test-u32-casefold.c: New file.
40294
40295         Tests for module 'unicase/u16-casefold'.
40296         * modules/unicase/u16-casefold-tests: New file.
40297         * tests/unicase/test-u16-casefold.c: New file.
40298
40299         Tests for module 'unicase/u8-casefold'.
40300         * modules/unicase/u8-casefold-tests: New file.
40301         * tests/unicase/test-u8-casefold.c: New file.
40302
40303         New module 'unicase/u32-casefold'.
40304         * lib/unicase/u32-casefold.c: New file.
40305         * modules/unicase/u32-casefold: New file.
40306
40307         New module 'unicase/u16-casefold'.
40308         * lib/unicase/u16-casefold.c: New file.
40309         * modules/unicase/u16-casefold: New file.
40310
40311         New module 'unicase/u8-casefold'.
40312         * lib/unicase/u8-casefold.c: New file.
40313         * lib/unicase/u-casefold.h: New file.
40314         * modules/unicase/u8-casefold: New file.
40315
40316         New module 'unicase/tocasefold'.
40317         * lib/unicase/casefold.h: New file.
40318         * lib/unicase/tocasefold.c: New file.
40319         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40320         * modules/unicase/tocasefold: New file.
40321
40322         Tests for module 'unicase/u32-totitle'.
40323         * modules/unicase/u32-totitle-tests: New file.
40324         * tests/unicase/test-u32-totitle.c: New file.
40325
40326         Tests for module 'unicase/u16-totitle'.
40327         * modules/unicase/u16-totitle-tests: New file.
40328         * tests/unicase/test-u16-totitle.c: New file.
40329
40330         Tests for module 'unicase/u8-totitle'.
40331         * modules/unicase/u8-totitle-tests: New file.
40332         * tests/unicase/test-u8-totitle.c: New file.
40333
40334         New module 'unicase/u32-totitle'.
40335         * lib/unicase/u32-totitle.c: New file.
40336         * modules/unicase/u32-totitle: New file.
40337
40338         New module 'unicase/u16-totitle'.
40339         * lib/unicase/u16-totitle.c: New file.
40340         * modules/unicase/u16-totitle: New file.
40341
40342         New module 'unicase/u8-totitle'.
40343         * lib/unicase/u8-totitle.c: New file.
40344         * lib/unicase/u-totitle.h: New file.
40345         * modules/unicase/u8-totitle: New file.
40346
40347         Tests for module 'unicase/u32-tolower'.
40348         * modules/unicase/u32-tolower-tests: New file.
40349         * tests/unicase/test-u32-tolower.c: New file.
40350
40351         Tests for module 'unicase/u16-tolower'.
40352         * modules/unicase/u16-tolower-tests: New file.
40353         * tests/unicase/test-u16-tolower.c: New file.
40354
40355         Tests for module 'unicase/u8-tolower'.
40356         * modules/unicase/u8-tolower-tests: New file.
40357         * tests/unicase/test-u8-tolower.c: New file.
40358
40359         New module 'unicase/u32-tolower'.
40360         * lib/unicase/u32-tolower.c: New file.
40361         * modules/unicase/u32-tolower: New file.
40362
40363         New module 'unicase/u16-tolower'.
40364         * lib/unicase/u16-tolower.c: New file.
40365         * modules/unicase/u16-tolower: New file.
40366
40367         New module 'unicase/u8-tolower'.
40368         * lib/unicase/u8-tolower.c: New file.
40369         * modules/unicase/u8-tolower: New file.
40370
40371         Tests for module 'unicase/u32-toupper'.
40372         * modules/unicase/u32-toupper-tests: New file.
40373         * tests/unicase/test-u32-toupper.c: New file.
40374
40375         Tests for module 'unicase/u16-toupper'.
40376         * modules/unicase/u16-toupper-tests: New file.
40377         * tests/unicase/test-u16-toupper.c: New file.
40378
40379         Tests for module 'unicase/u8-toupper'.
40380         * modules/unicase/u8-toupper-tests: New file.
40381         * tests/unicase/test-u8-toupper.c: New file.
40382
40383         New module 'unicase/u32-toupper'.
40384         * lib/unicase/u32-toupper.c: New file.
40385         * modules/unicase/u32-toupper: New file.
40386
40387         New module 'unicase/u16-toupper'.
40388         * lib/unicase/u16-toupper.c: New file.
40389         * modules/unicase/u16-toupper: New file.
40390
40391         New module 'unicase/u8-toupper'.
40392         * lib/unicase/u8-toupper.c: New file.
40393         * modules/unicase/u8-toupper: New file.
40394
40395         New module 'unicase/u32-casemap'.
40396         * lib/unicase/u32-casemap.c: New file.
40397         * modules/unicase/u32-casemap: New file.
40398
40399         New module 'unicase/u16-casemap'.
40400         * lib/unicase/u16-casemap.c: New file.
40401         * modules/unicase/u16-casemap: New file.
40402
40403         New module 'unicase/u8-casemap'.
40404         * lib/unicase/unicasemap.h: New file.
40405         * lib/unicase/u8-casemap.c: New file.
40406         * lib/unicase/u-casemap.h: New file.
40407         * modules/unicase/u8-casemap: New file.
40408
40409         New module 'unicase/special-casing'.
40410         * lib/unicase/special-casing.h: New file.
40411         * lib/unicase/special-casing.c: New file.
40412         * lib/unicase/special-casing-table.gperf: New file, generated by
40413         gen-uni-tables.c.
40414         * modules/unicase/special-casing: New file.
40415
40416         Tests for module 'unicase/locale-language'.
40417         * modules/unicase/locale-language-tests: New file.
40418         * tests/unicase/test-locale-language.sh: New file.
40419         * tests/unicase/test-locale-language.c: New file.
40420
40421         New module 'unicase/locale-language'.
40422         * lib/unicase/locale-language.c: New file.
40423         * lib/unicase/locale-languages.gperf: New file.
40424         * modules/unicase/locale-language: New file.
40425
40426         Generate more tables for case conversion and case folding.
40427         * lib/gen-uni-tables.c (SCC_*): New enum items.
40428         (struct special_casing_rule): New type.
40429         (casing_rules, num_casing_rules, allocated_casing_rules): New
40430         variables.
40431         (add_casing_rule, fill_casing_rules): New functions.
40432         (struct casefold_rule): New type.
40433         (casefolding_rules, num_casefolding_rules,
40434         allocated_casefolding_rules): New variables.
40435         (fill_casefolding_rules): New function.
40436         (unicode_casefold): New variable.
40437         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40438         sort_casing_rules, output_casing_rules): New functions.
40439         (main): Accept to more arguments: SpecialCasing.txt and
40440         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40441         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40442         Output mapping for casefolding.
40443
40444         * lib/unicase.h: Include stdbool.h, uninorm.h.
40445         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40446         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40447         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40448         arguments.
40449         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40450         resultp arguments.
40451         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40452         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40453         resultp arguments.
40454         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40455         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40456         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40457         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40458         declarations.
40459         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40460
40461 2009-03-08  Bruno Haible  <bruno@clisp.org>
40462
40463         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40464         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40465         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40466         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40467
40468 2009-03-07  Bruno Haible  <bruno@clisp.org>
40469
40470         Adjust u*_normcmp, u*_normcoll API.
40471         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40472         u16_normcoll, u32_normcoll): Change failure conventions.
40473         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40474         errno and return -1.
40475         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40476
40477 2009-03-07  Bruno Haible  <bruno@clisp.org>
40478
40479         Tests for module 'uninorm/u32-normcoll'.
40480         * modules/uninorm/u32-normcoll-tests: New file.
40481         * tests/uninorm/test-u32-normcoll.c: New file.
40482
40483         Tests for module 'uninorm/u16-normcoll'.
40484         * modules/uninorm/u16-normcoll-tests: New file.
40485         * tests/uninorm/test-u16-normcoll.c: New file.
40486
40487         Tests for module 'uninorm/u8-normcoll'.
40488         * modules/uninorm/u8-normcoll-tests: New file.
40489         * tests/uninorm/test-u8-normcoll.c: New file.
40490
40491 2009-03-07  Bruno Haible  <bruno@clisp.org>
40492
40493         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40494         tests/uninorm/test-u32-normcmp.c.
40495         * tests/uninorm/test-u32-normcmp.c: Include it.
40496         (test_nonascii): New function, extracted from main. Add some more
40497         tests.
40498         (main): Invoke test_ascii and test_nonascii.
40499         * modules/uninorm/u32-normcmp-tests (Files): Add
40500         tests/uninorm/test-u32-normcmp.h.
40501         (Depends-on): Remove uninorm/u32-normcmp.
40502
40503         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40504         tests/uninorm/test-u16-normcmp.c.
40505         * tests/uninorm/test-u16-normcmp.c: Include it.
40506         (test_nonascii): New function, extracted from main. Add some more
40507         tests.
40508         (main): Invoke test_ascii and test_nonascii.
40509         * modules/uninorm/u16-normcmp-tests (Files): Add
40510         tests/uninorm/test-u16-normcmp.h.
40511         (Depends-on): Remove uninorm/u16-normcmp.
40512
40513         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40514         tests/uninorm/test-u8-normcmp.c.
40515         * tests/uninorm/test-u8-normcmp.c: Include it.
40516         (test_nonascii): New function, extracted from main. Add some more
40517         tests.
40518         (main): Invoke test_ascii and test_nonascii.
40519         * modules/uninorm/u8-normcmp-tests (Files): Add
40520         tests/uninorm/test-u8-normcmp.h.
40521         (Depends-on): Remove uninorm/u8-normcmp.
40522
40523 2009-03-07  Bruno Haible  <bruno@clisp.org>
40524
40525         New module 'uninorm/u32-normcoll'.
40526         * lib/uninorm/u32-normcoll.c: New file.
40527         * modules/uninorm/u32-normcoll: New file.
40528
40529         New module 'uninorm/u16-normcoll'.
40530         * lib/uninorm/u16-normcoll.c: New file.
40531         * modules/uninorm/u16-normcoll: New file.
40532
40533         New module 'uninorm/u8-normcoll'.
40534         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40535         declarations.
40536         * lib/uninorm/u8-normcoll.c: New file.
40537         * lib/uninorm/u-normcoll.h: New file.
40538         * modules/uninorm/u8-normcoll: New file.
40539
40540         New module 'uninorm/u32-normxfrm'.
40541         * lib/uninorm/u32-normxfrm.c: New file.
40542         * modules/uninorm/u32-normxfrm: New file.
40543
40544         New module 'uninorm/u16-normxfrm'.
40545         * lib/uninorm/u16-normxfrm.c: New file.
40546         * modules/uninorm/u16-normxfrm: New file.
40547
40548         New module 'uninorm/u8-normxfrm'.
40549         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40550         declarations.
40551         * lib/uninorm/u8-normxfrm.c: New file.
40552         * lib/uninorm/u-normxfrm.h: New file.
40553         * modules/uninorm/u8-normxfrm: New file.
40554
40555 2009-03-07  Bruno Haible  <bruno@clisp.org>
40556
40557         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40558         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40559         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40560
40561 2009-03-07  Bruno Haible  <bruno@clisp.org>
40562
40563         New module 'memxfrm'.
40564         * lib/memxfrm.h: New file.
40565         * lib/memxfrm.c: New file.
40566         * modules/memxfrm: New file.
40567
40568 2009-03-07  Bruno Haible  <bruno@clisp.org>
40569
40570         New module 'memcmp2'.
40571         * lib/memcmp2.h: New file.
40572         * lib/memcmp2.c: New file.
40573         * modules/memcmp2: New file.
40574
40575 2009-03-07  Bruno Haible  <bruno@clisp.org>
40576
40577         Tests for module 'uninorm/decomposing-form'.
40578         * modules/uninorm/decomposing-form-tests: New file.
40579         * tests/uninorm/test-decomposing-form.c: New file.
40580
40581         New module 'uninorm/decomposing-form'.
40582         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40583         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40584         Add 'decomposing_variant' field.
40585         * lib/uninorm/decomposing-form.c: New file.
40586         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40587         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40588         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40589         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40590         * modules/uninorm/decomposing-form: New file.
40591         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40592         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40593
40594 2009-03-07  Bruno Haible  <bruno@clisp.org>
40595
40596         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40597         strings.
40598
40599 2009-03-06  Bruno Haible  <bruno@clisp.org>
40600
40601         Tests for module 'uninorm/u32-normcmp'.
40602         * tests/uninorm/test-u32-normcmp.c: New file.
40603         * modules/uninorm/u32-normcmp-tests: New file.
40604
40605         Tests for module 'uninorm/u16-normcmp'.
40606         * tests/uninorm/test-u16-normcmp.c: New file.
40607         * modules/uninorm/u16-normcmp-tests: New file.
40608
40609         Tests for module 'uninorm/u8-normcmp'.
40610         * tests/uninorm/test-u8-normcmp.c: New file.
40611         * modules/uninorm/u8-normcmp-tests: New file.
40612
40613         New module 'uninorm/u32-normcmp'.
40614         * lib/uninorm/u32-normcmp.c: New file.
40615         * modules/uninorm/u32-normcmp: New file.
40616
40617         New module 'uninorm/u16-normcmp'.
40618         * lib/uninorm/u16-normcmp.c: New file.
40619         * modules/uninorm/u16-normcmp: New file.
40620
40621         New module 'uninorm/u8-normcmp'.
40622         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40623         declarations.
40624         * lib/uninorm/u8-normcmp.c: New file.
40625         * lib/uninorm/u-normcmp.h: New file.
40626         * modules/uninorm/u8-normcmp: New file.
40627
40628 2009-03-06  Bruno Haible  <bruno@clisp.org>
40629
40630         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40631         Reported by Eric Blake.
40632
40633 2009-03-06  Eric Blake  <ebb9@byu.net>
40634             Bruno Haible  <bruno@clisp.org>
40635
40636         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40637         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40638         condition.
40639         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40640         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40641         condition.
40642         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40643
40644 2009-03-06  Eric Blake  <ebb9@byu.net>
40645
40646         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40647         to avoid compiler warnings.
40648         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40649
40650 2009-03-05  Bruno Haible  <bruno@clisp.org>
40651
40652         * tests/test-ftell.c (main): Disable test beyond end of file on
40653         FreeMiNT.
40654         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40655
40656 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40657
40658         * lib/filevercmp.c: Move hidden files up in ordering.
40659         * tests/test-filevercmp.c: Add tests for hidden files.
40660
40661 2009-03-04  Bruno Haible  <bruno@clisp.org>
40662
40663         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40664         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40665         AM_CFLAGS.
40666         Reported by Simon Josefsson.
40667
40668 2009-03-03  Bruno Haible  <bruno@clisp.org>
40669
40670         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40671         Reported by Simon Josefsson.
40672
40673         * doc/ld-version-script.texi: Update node reference.
40674
40675 2009-03-03  Bruno Haible  <bruno@clisp.org>
40676
40677         * modules/visibility (License): Change to 'unlimited'.
40678         Suggested by Simon Josefsson.
40679
40680 2009-03-03  Jim Meyering  <meyering@redhat.com>
40681
40682         unlinkdir: cannot_unlink_dir may modify process state
40683         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40684         it's neither thread-safe nor appropriate for use in a library.
40685
40686 2009-03-03  Eric Blake  <ebb9@byu.net>
40687
40688         test-closein: silence test under Darwin
40689         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40690         care if it dies from EPIPE or EBADF.
40691
40692 2009-03-03  Bruno Haible  <bruno@clisp.org>
40693
40694         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40695         earlier.
40696         * doc/visibility.texi: Fix @node and @section.
40697
40698 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40699
40700         * doc/gnulib.texi: Link to sections for ld version script and
40701         visibility.
40702         * doc/visibility.texi: Add @node and @section.
40703         * modules/ld-version-script: New module.
40704         * m4/ld-version-script.m4: New file.
40705         * doc/ld-version-script.texi: New file.
40706
40707 2009-03-02  David Lutterkort  <lutter@redhat.com>
40708
40709         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40710         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40711
40712 2009-03-02  Bruno Haible  <bruno@clisp.org>
40713
40714         * doc/visibility.texi: Mention libtool's -export-symbols option.
40715
40716 2009-03-02  Jim Meyering  <meyering@redhat.com>
40717
40718         announce-gen: new option: --no-print-checksums
40719         * build-aux/announce-gen (usage): Describe it.
40720         (print_checksums): Print a newline here, not in the [*] footnote.
40721         (main): Honor it.
40722
40723 2009-03-01  Bruno Haible  <bruno@clisp.org>
40724
40725         Use socklen_t in the native Windows replacements prototypes.
40726         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40727         instead of 'int'.
40728         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40729         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40730         * modules/getsockopt (Depends-on): Add socklen.
40731         * modules/setsockopt (Depends-on): Add socklen.
40732
40733 2009-03-01  Bruno Haible  <bruno@clisp.org>
40734
40735         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40736         least 4.2.
40737
40738 2009-03-01  Eric Blake  <ebb9@byu.net>
40739             Bruno Haible  <bruno@clisp.org>
40740
40741         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40742         error messages.
40743         * lib/wait-process.c (wait_subprocess): Omit error message about
40744         deadly signal sent to the child of termsigp != NULL.
40745
40746 2009-03-01  Eric Blake  <ebb9@byu.net>
40747
40748         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40749
40750 2009-03-01  Bruno Haible  <bruno@clisp.org>
40751
40752         Avoid a gcc warning.
40753         * tests/test-sched.c (b): Make global.
40754         Reported by Eric Blake.
40755
40756 2009-01-19  Martin Lambers  <marlam@marlam.de>
40757
40758         Provide POSIX semantics for socket timeout options on W32.
40759         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40760         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40761         * modules/setsockopt: Depend on sys_time module for struct timeval.
40762         * modules/getsockopt: Depend on sys_time module for struct timeval.
40763
40764 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40765
40766         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40767         __USE_GNU, for consistency with netdb.in.h.
40768         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40769
40770 2009-03-01  Bruno Haible  <bruno@clisp.org>
40771
40772         More support for FreeMiNT.
40773         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40774         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40775
40776 2009-03-01  Bruno Haible  <bruno@clisp.org>
40777
40778         More support for FreeMiNT.
40779         * lib/fpurge.c (fpurge): Correct last commit.
40780         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40781
40782 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40783
40784         Fix unportable awk script in vc-list-files.
40785         * build-aux/vc-list-files: In the replacement awk script, use
40786         substr with a second argument of 1, not zero.
40787         Report by Simon Josefsson.
40788
40789 2009-02-28  Bruno Haible  <bruno@clisp.org>
40790
40791         More support for FreeMiNT.
40792         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40793         to FreeMiNT today.
40794         * lib/fwriting.c (fwriting): Likewise.
40795         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40796
40797 2009-02-28  Bruno Haible  <bruno@clisp.org>
40798
40799         * tests/test-freadseek.c (main): Disable test beyond end of file on
40800         FreeMiNT.
40801         * tests/test-ftello.c (main): Likewise.
40802         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40803
40804 2009-02-28  Bruno Haible  <bruno@clisp.org>
40805
40806         Add tentative support for FreeMiNT.
40807         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40808         * lib/fpurge.c (fpurge): Likewise.
40809         * lib/freadable.c (freadable): Likewise.
40810         * lib/freading.c (freading): Likewise.
40811         * lib/freadptr.c (freadptr): Likewise.
40812         * lib/freadseek.c (freadptrinc): Likewise.
40813         * lib/fseeko.c (rpl_fseeko): Likewise.
40814         * lib/fseterr.c (fseterr): Likewise.
40815         * lib/fwritable.c (fwritable): Likewise.
40816         * lib/fwriting.c (fwriting): Likewise.
40817         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40818         Hourihane.
40819         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40820
40821 2009-02-28  Bruno Haible  <bruno@clisp.org>
40822
40823         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40824         SIGCHLD.
40825         Reported by Jim Meyering.
40826
40827 2009-02-28  Bruno Haible  <bruno@clisp.org>
40828
40829         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40830         Mention the results of these tests on various platforms.
40831         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40832         order.
40833         * doc/posix-functions/printf.texi: Likewise.
40834         * doc/posix-functions/snprintf.texi: Likewise.
40835         * doc/posix-functions/sprintf.texi: Likewise.
40836         * doc/posix-functions/vfprintf.texi: Likewise.
40837         * doc/posix-functions/vprintf.texi: Likewise.
40838         * doc/posix-functions/vsnprintf.texi: Likewise.
40839         * doc/posix-functions/vsprintf.texi: Likewise.
40840         * doc/glibc-functions/obstack_printf.texi: Likewise.
40841         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40842
40843 2009-02-28  Bruno Haible  <bruno@clisp.org>
40844
40845         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40846         Reported by Loïc Minier <lool@dooz.org>.
40847
40848 2009-02-27  Bruno Haible  <bruno@clisp.org>
40849
40850         * gnulib-tool (func_import): Make the sed expression used to create the
40851         sed script for updating the .gitignore file POSIX compliant.
40852         Reported by Eric Blake.
40853
40854 2009-02-27  Bruno Haible  <bruno@clisp.org>
40855
40856         * gnulib-tool (sed): Don't alias as "sed --posix".
40857         Reported by Eric Blake.
40858
40859 2009-02-27  Bruno Haible  <bruno@clisp.org>
40860
40861         Avoid test link errors.
40862         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40863         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40864         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40865         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40866         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40867
40868 2009-02-27  Bruno Haible  <bruno@clisp.org>
40869
40870         Avoid spurious "(cached)" in configure output.
40871         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40872         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40873         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40874         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40875         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40876         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40877         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40878         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40879         Reported by Eric Blake.
40880
40881 2009-02-27  Eric Blake  <ebb9@byu.net>
40882
40883         printf: fix regression in previous patch
40884         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40885
40886 2009-02-27  Bruno Haible  <bruno@clisp.org>
40887
40888         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40889         value.
40890         * lib/stdint.in.h: Likewise.
40891         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40892
40893 2009-02-27  Eric Blake  <ebb9@byu.net>
40894
40895         doc: mention more functions added in cygwin 1.7.0
40896         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40897         addition.
40898         * doc/posix-functions/open_wmemstream.texi: Likewise.
40899         * doc/posix-functions/wcsnlen.texi: Likewise.
40900         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40901         * doc/posix-functions/wcstod.texi: Likewise.
40902         * doc/posix-functions/wcstof.texi: Likewise.
40903         * doc/posix-functions/wcstoimax.texi: Likewise.
40904         * doc/posix-functions/wcstok.texi: Likewise.
40905         * doc/posix-functions/wcstoumax.texi: Likewise.
40906
40907         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40908         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40909         * doc/posix-functions/fprintf.texi: Update.
40910         * doc/posix-functions/printf.texi: Update.
40911         * doc/posix-functions/snprintf.texi: Update.
40912         * doc/posix-functions/sprintf.texi: Update.
40913         * doc/posix-functions/vfprintf.texi: Update.
40914         * doc/posix-functions/vprintf.texi: Update.
40915         * doc/posix-functions/vsnprintf.texi: Update.
40916         * doc/posix-functions/vsprintf.texi: Update.
40917         * doc/glibc-functions/obstack_printf.texi: Update.
40918         * doc/glibc-functions/obstack_vprintf.texi: Update.
40919
40920 2009-02-26  Eric Blake  <ebb9@byu.net>
40921
40922         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40923         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40924         compilation bug by using runtime conversion.
40925         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40926         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40927         * modules/ceill-tests (Files): Use nan.h.
40928         * modules/floorl-tests (Files): Likewise.
40929         * modules/frexpl-tests (Files): Likewise.
40930         * modules/isnanl-tests (Files): Likewise.
40931         * modules/ldexpl-tests (Files): Likewise.
40932         * modules/roundl-tests (Files): Likewise.
40933         * modules/truncl-tests (Files): Likewise.
40934         * tests/test-ceill.c (main): Use a working NaN.
40935         * tests/test-floorl.c (main): Likewise.
40936         * tests/test-frexpl.c (main): Likewise.
40937         * tests/test-isnan.c (test_long_double): Likewise.
40938         * tests/test-isnanl.h (main): Likewise.
40939         * tests/test-ldexpl.h (main): Likewise.
40940         * tests/test-roundl.h (main): Likewise.
40941         * tests/test-truncl.h (main): Likewise.
40942         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40943
40944 2009-02-26  Eric Blake  <ebb9@byu.net>
40945             Bruno Haible  <bruno@clisp.org>
40946
40947         Work around a *printf bug with %ls on Solaris.
40948         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40949         precision is specified, sprintf stops converting the wide string
40950         argument when the number of bytes that have been produced by this
40951         conversion equals or exceeds the precision.
40952         * doc/posix-functions/fprintf.texi: Update.
40953         * doc/posix-functions/printf.texi: Update.
40954         * doc/posix-functions/snprintf.texi: Update.
40955         * doc/posix-functions/sprintf.texi: Update.
40956         * doc/posix-functions/vfprintf.texi: Update.
40957         * doc/posix-functions/vprintf.texi: Update.
40958         * doc/posix-functions/vsnprintf.texi: Update.
40959         * doc/posix-functions/vsprintf.texi: Update.
40960         * doc/glibc-functions/obstack_printf.texi: Update.
40961         * doc/glibc-functions/obstack_vprintf.texi: Update.
40962
40963 2009-02-26  Eric Blake  <ebb9@byu.net>
40964
40965         stdlib: favor compiler check of random.h
40966         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40967         to avoid an ObjC random.h installed by Swarm.
40968
40969 2009-02-26  Bruno Haible  <bruno@clisp.org>
40970
40971         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40972         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40973         Reported by Gary V. Vaughan <gary@gnu.org>.
40974
40975 2009-02-26  Bruno Haible  <bruno@clisp.org>
40976
40977         Fix *printf behaviour regarding the %ls directive.
40978         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40979         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40980         NEED_PRINTF_DIRECTIVE_LS.
40981         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40982         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40983         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40984         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40985         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40986         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40987         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40988         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40989         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40990         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40991         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40992         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40993         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40994         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40995         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40996         * doc/posix-functions/fprintf.texi: Update.
40997         * doc/posix-functions/printf.texi: Update.
40998         * doc/posix-functions/snprintf.texi: Update.
40999         * doc/posix-functions/sprintf.texi: Update.
41000         * doc/posix-functions/vfprintf.texi: Update.
41001         * doc/posix-functions/vprintf.texi: Update.
41002         * doc/posix-functions/vsnprintf.texi: Update.
41003         * doc/posix-functions/vsprintf.texi: Update.
41004         * doc/glibc-functions/obstack_printf.texi: Update.
41005         * doc/glibc-functions/obstack_vprintf.texi: Update.
41006         Reported by Eric Blake.
41007
41008 2009-02-25  Bruno Haible  <bruno@clisp.org>
41009
41010         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41011         with known value.
41012         Reported by Gary V. Vaughan <gary@gnu.org>.
41013
41014 2009-02-25  Bruno Haible  <bruno@clisp.org>
41015
41016         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41017         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41018         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41019         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41020         Reported by Gary V. Vaughan <gary@gnu.org>.
41021
41022 2009-02-25  Bruno Haible  <bruno@clisp.org>
41023
41024         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41025         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41026         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41027         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41028         Reported by Gary V. Vaughan <gary@gnu.org>.
41029
41030 2009-02-25  Eric Blake  <ebb9@byu.net>
41031
41032         tests: skip fseek/ftell tests if ungetc is broken
41033         * m4/ungetc.m4: New file.
41034         * modules/fseek-tests: Split test, so ungetc dependency is
41035         separate from rest of test.
41036         * modules/fseeko-tests: Likewise.
41037         * modules/ftell-tests: Likewise.
41038         * modules/ftello-tests: Likewise.
41039         * tests/test-fseek.c (main): Isolate ungetc dependency.
41040         * tests/test-fseeko.c (main): Likewise.
41041         * tests/test-ftell.c (main): Likewise.
41042         * tests/test-ftello.c (main): Likewise.
41043         * tests/test-fseek2.sh: New file.
41044         * tests/test-fseeko2.sh: Likewise.
41045         * tests/test-ftell2.sh: Likewise.
41046         * tests/test-ftello2.sh: Likewise.
41047
41048 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
41049
41050         test-getaddrinfo: fix usage of skip return code 77
41051         * tests/test-gettaddrinfo.c: Return skip code 77 only
41052         for first occurance of skip (4x77 is not 77)
41053
41054 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41055
41056         strtod: avoid C99 decl-after-statement
41057         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41058
41059 2009-02-24  Eric Blake  <ebb9@byu.net>
41060
41061         strtod: detect HP-UX 11.31 bug
41062         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41063         Reported by Gary V. Vaughan.
41064
41065 2009-02-23  Bruno Haible  <bruno@clisp.org>
41066
41067         Fix invalid read past end of memory block.
41068         * lib/vasnprintf.c (DCHAR_SET): Define.
41069         (local_wcslen): Define only when needed.
41070         (local_strnlen, local_wcsnlen): New functions.
41071         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41072         directives that involve a conversion ourselves.
41073         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41074         wcsnlen, mbrtowc, wcrtomb.
41075         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41076         * tests/test-vasprintf-posix.c (test_function): Likewise.
41077         * tests/test-snprintf-posix.h (test_function): Likewise.
41078         * tests/test-sprintf-posix.h (test_function): Likewise.
41079         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41080
41081 2009-02-22  Bruno Haible  <bruno@clisp.org>
41082
41083         Implement new clarified decomposition of Hangul syllables.
41084         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41085         of type LTV, return only a pairwise decomposition.
41086         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41087         Likewise.
41088         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41089         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41090         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41091
41092 2009-02-22  Bruno Haible  <bruno@clisp.org>
41093
41094         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41095         zero-length results and shrink excess allocated memory.
41096         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41097         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41098         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41099         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41100         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41101         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41102         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41103         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41104         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41105         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41106         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41107         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41108
41109 2009-02-21  Bruno Haible  <bruno@clisp.org>
41110
41111         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41112         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41113         spaces after a period. Put a space between a macro name and its
41114         argument list. Trivial rewordings.
41115         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41116         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41117         (main): Return 0 explicitly.
41118
41119 2009-02-21  Bruno Haible  <bruno@clisp.org>
41120
41121         Tests for module 'uninorm/filter'.
41122         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41123         * modules/uninorm/filter-tests: New file.
41124
41125         New module 'uninorm/filter'.
41126         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41127         uninorm_filter_flush, uninorm_filter_free): New declarations.
41128         * lib/uninorm/uninorm-filter.c: New file.
41129         * modules/uninorm/filter: New file.
41130
41131 2009-02-21  Bruno Haible  <bruno@clisp.org>
41132
41133         Tests for module 'uninorm/nfkc'.
41134         * tests/uninorm/test-nfkc.c: New file.
41135         * tests/uninorm/test-u8-nfkc.c: New file.
41136         * tests/uninorm/test-u16-nfkc.c: New file.
41137         * tests/uninorm/test-u32-nfkc.c: New file.
41138         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41139         * tests/uninorm/test-u32-nfkc-big.c: New file.
41140         * modules/uninorm/nfkc-tests: New file.
41141
41142         New module 'uninorm/nfkc'.
41143         * lib/uninorm/nfkc.c: New file.
41144         * modules/uninorm/nfkc: New file.
41145
41146         Tests for module 'uninorm/nfkd'.
41147         * tests/uninorm/test-nfkd.c: New file.
41148         * tests/uninorm/test-u8-nfkd.c: New file.
41149         * tests/uninorm/test-u16-nfkd.c: New file.
41150         * tests/uninorm/test-u32-nfkd.c: New file.
41151         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41152         * tests/uninorm/test-u32-nfkd-big.c: New file.
41153         * modules/uninorm/nfkd-tests: New file.
41154
41155         New module 'uninorm/nfkd'.
41156         * lib/uninorm/nfkd.c: New file.
41157         * modules/uninorm/nfkd: New file.
41158
41159         Tests for module 'uninorm/nfc'.
41160         * tests/uninorm/test-nfc.c: New file.
41161         * tests/uninorm/test-u8-nfc.c: New file.
41162         * tests/uninorm/test-u16-nfc.c: New file.
41163         * tests/uninorm/test-u32-nfc.c: New file.
41164         * tests/uninorm/test-u32-nfc-big.sh: New file.
41165         * tests/uninorm/test-u32-nfc-big.c: New file.
41166         * modules/uninorm/nfc-tests: New file.
41167
41168         New module 'uninorm/nfc'.
41169         * lib/uninorm/nfc.c: New file.
41170         * modules/uninorm/nfc: New file.
41171
41172         Tests for module 'uninorm/nfd'.
41173         * tests/uninorm/test-nfd.c: New file.
41174         * tests/uninorm/test-u8-nfd.c: New file.
41175         * tests/uninorm/test-u16-nfd.c: New file.
41176         * tests/uninorm/test-u32-nfd.c: New file.
41177         * tests/uninorm/test-u32-nfd-big.sh: New file.
41178         * tests/uninorm/test-u32-nfd-big.c: New file.
41179         * tests/uninorm/test-u32-normalize-big.h: New file.
41180         * tests/uninorm/test-u32-normalize-big.c: New file.
41181         * tests/uninorm/NormalizationTest.txt: New file, created from
41182         Unicode 5.1.0 NormalizationTest.txt.
41183         * modules/uninorm/nfd-tests: New file.
41184
41185         New module 'uninorm/nfd'.
41186         * lib/uninorm/nfd.c: New file.
41187         * modules/uninorm/nfd: New file.
41188
41189         New module 'uninorm/u32-normalize'.
41190         * lib/uninorm/u32-normalize.c: New file.
41191         * modules/uninorm/u32-normalize: New file.
41192
41193         New module 'uninorm/u16-normalize'.
41194         * lib/uninorm/u16-normalize.c: New file.
41195         * modules/uninorm/u16-normalize: New file.
41196
41197         New module 'uninorm/u8-normalize'.
41198         * lib/uninorm/u8-normalize.c: New file.
41199         * lib/uninorm/normalize-internal.h: New file.
41200         * lib/uninorm/u-normalize-internal.h: New file.
41201         * modules/uninorm/u8-normalize: New file.
41202
41203         New module 'uninorm/decompose-internal'.
41204         * lib/uninorm/decompose-internal.c: New file.
41205         * modules/uninorm/decompose-internal: New file.
41206
41207         Tests for module 'uninorm/composition'.
41208         * tests/uninorm/test-composition.c: New file.
41209         * modules/uninorm/composition-tests: New file.
41210
41211         New module 'uninorm/composition'.
41212         * lib/uninorm/composition.c: New file.
41213         * lib/uninorm/composition-table.gperf: New file, generated by
41214         gen-uni-tables.
41215         * modules/uninorm/composition: New file.
41216
41217         Tests for module 'uninorm/compat-decomposition'.
41218         * tests/uninorm/test-compat-decomposition.c: New file.
41219         * modules/uninorm/compat-decomposition-tests: New file.
41220
41221         New module 'uninorm/compat-decomposition'.
41222         * lib/uninorm/decompose-internal.h: New file.
41223         * lib/uninorm/compat-decomposition.c: New file.
41224         * modules/uninorm/compat-decomposition: New file.
41225
41226         Tests for module 'uninorm/canonical-decomposition'.
41227         * tests/uninorm/test-canonical-decomposition.c: New file.
41228         * modules/uninorm/canonical-decomposition-tests: New file.
41229
41230         New module 'uninorm/canonical-decomposition'.
41231         * lib/uninorm/canonical-decomposition.c: New file.
41232         * modules/uninorm/canonical-decomposition: New file.
41233
41234         Tests for module 'uninorm/decomposition'.
41235         * tests/uninorm/test-decomposition.c: New file.
41236         * modules/uninorm/decomposition-tests: New file.
41237
41238         New module 'uninorm/decomposition'.
41239         * lib/uninorm/decomposition.c: New file.
41240         * modules/uninorm/decomposition: New file.
41241
41242         New module 'uninorm/decomposition-table'.
41243         * lib/uninorm/decomposition-table.h: New file.
41244         * lib/uninorm/decomposition-table.c: New file.
41245         * lib/uninorm/decomposition-table1.h: New file, generated by
41246         gen-uni-tables.
41247         * lib/uninorm/decomposition-table2.h: New file, generated by
41248         gen-uni-tables.
41249         * modules/uninorm/decomposition-table: New file.
41250
41251         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41252         (UC_DECOMP_*): New enumeration items.
41253         (get_decomposition): New function.
41254         (struct decomp_table): New type.
41255         (output_decomposition, output_decomposition_tables): New functions.
41256         (unicode_composition_exclusions): New variable.
41257         (fill_composition_exclusions, debug_output_composition_tables): New
41258         functions.
41259         (main): Accept one more argument. Invoke fill_composition_exclusions.
41260         Output decomposition and composition tables.
41261
41262         New module 'uninorm/base'.
41263         * lib/uninorm.h: New file.
41264         * lib/unictype.h: Update comment.
41265         * modules/uninorm/base: New file.
41266
41267 2009-02-21  David Lutterkort  <lutter@redhat.com>
41268
41269         Tests for module 'safe-alloc'.
41270         * tests/test-safe-alloc.c: New file.
41271         * modules/safe-alloc-tests: New file.
41272
41273         New module 'safe-alloc'.
41274         * lib/safe-alloc.h: New file.
41275         * lib/safe-alloc.c: New file.
41276         * m4/safe-alloc.m4: New file.
41277         * modules/safe-alloc: New file.
41278         * doc/safe-alloc.texi: New file.
41279         * doc/gnulib.texi: Include it.
41280         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41281         safe-alloc.
41282
41283 2009-02-18  Bruno Haible  <bruno@clisp.org>
41284
41285         Fix link error on non-glibc systems.
41286         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41287         variable.
41288         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41289
41290 2009-02-18  Jim Meyering  <meyering@redhat.com>
41291
41292         fts: avoid used-uninitialized error due to recent change
41293         * lib/fts.c (fts_read): Guard uses of the new member,
41294         parent->fts_n_dirs_remaining, since it's not relevant for
41295         the parent of a directory specified on the command-line.
41296
41297 2009-02-17  James Youngman  <jay@gnu.org>
41298             Bruno Haible  <bruno@clisp.org>
41299
41300         * m4/include_next.m4: Reformulate comment.
41301
41302 2009-02-16  Jim Meyering  <meyering@redhat.com>
41303
41304         fts: add #if guards so that the fts_lgpl module still builds
41305         * lib/fts.c: Guard just-added hash-table-using parts with
41306         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41307         Reported by Simon Josefsson.
41308
41309 2009-02-15  Bruno Haible  <bruno@clisp.org>
41310
41311         * modules/array-mergesort-tests: New file.
41312         * tests/test-array-mergesort.c: New file.
41313
41314         New module 'array-mergesort'.
41315         * modules/array-mergesort: New file.
41316         * lib/array-mergesort.h: New file.
41317
41318 2009-02-15  Bruno Haible  <bruno@clisp.org>
41319
41320         Fix 2009-02-07 commit.
41321         * lib/gen-uni-tables.c (output_predicate, output_category,
41322         output_combclass, output_bidi_category, output_decimal_digit,
41323         output_digit, output_numeric, output_mirror, output_scripts,
41324         output_ident_category, output_simple_mapping): Fix format directives.
41325         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41326
41327 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41328
41329         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41330         fixes are available from IBM.
41331
41332 2009-02-13  Jim Meyering  <meyering@redhat.com>
41333
41334         fts: arrange not to stat non-directories in more cases
41335         This makes GNU find (when it doesn't need to stat each file)
41336         *much* more efficient at traversing reiserfs file systems.
41337         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41338         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41339         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41340         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41341         (leaf_optimization_applies): New function.
41342         (LCO_hash, LCO_compare): New helper functions.
41343         (link_count_optimize_ok): New function.
41344         (fts_stat): Initialize new member (if dir).
41345         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41346         we've just stat'ed a directory.  Skip the stat call when possible.
41347         ---
41348         Note this AFS-related exchange:
41349         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41350         and note find's pioctl call in find/fstype.c.
41351         But that is necessary only if you want to enable the
41352         optimization for AFS, and for now, I don't.
41353
41354         fts: move a function definition "up" (no semantic change)
41355         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41356         "up" to precede upcoming use of a related function.
41357
41358 2009-02-11  Jim Meyering  <meyering@redhat.com>
41359
41360         fts: correct internal computation of nlinks (optimization-related)
41361         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41362         whether the current entry is a directory, so don't test it.
41363
41364 2009-02-10  Bruno Haible  <bruno@clisp.org>
41365
41366         Tests for module 'uniwbrk/ulc-wordbreaks'.
41367         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41368         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41369         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41370
41371         Tests for module 'uniwbrk/u32-wordbreaks'.
41372         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41373         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41374
41375         Tests for module 'uniwbrk/u16-wordbreaks'.
41376         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41377         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41378
41379         Tests for module 'uniwbrk/u8-wordbreaks'.
41380         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41381         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41382
41383 2009-02-10  Bruno Haible  <bruno@clisp.org>
41384
41385         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41386         property.
41387         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41388         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41389         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41390
41391 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41392
41393         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41394         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41395
41396 2009-02-10  Bruno Haible  <bruno@clisp.org>
41397
41398         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41399         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41400         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41401         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41402         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41403         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41404
41405 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41406
41407         * lib/sockets.h (gl_fd_to_handle): New function.
41408
41409         * tests/test-sockets.c: Call gl_fd_to_handle.
41410
41411 2009-02-09  Bruno Haible  <bruno@clisp.org>
41412
41413         * doc/havelib.texi: Document the conventions on bi-arch systems.
41414
41415 2009-02-08  Bruno Haible  <bruno@clisp.org>
41416
41417         Document the AC_LIB_LINKFLAGS macro.
41418         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41419         * doc/gnulib.texi: Include it.
41420
41421 2009-02-08  Bruno Haible  <bruno@clisp.org>
41422
41423         Fix wrong order of sections, compared to TOC.
41424         * doc/gnulib.texi: Include relocatable-maint.texi after the
41425         "Regular expressions" node, not before.
41426
41427 2009-02-08  Bruno Haible  <bruno@clisp.org>
41428
41429         Tests for module 'unicase/totitle'.
41430         * modules/unicase/totitle-tests: New file.
41431
41432         Tests for module 'unicase/tolower'.
41433         * modules/unicase/tolower-tests: New file.
41434
41435         Tests for module 'unicase/toupper'.
41436         * modules/unicase/toupper-tests: New file.
41437         * tests/unicase/test-mapping-part1.h: New file.
41438         * tests/unicase/test-mapping-part2.h: New file.
41439
41440         New module 'unicase/totitle'.
41441         * modules/unicase/totitle: New file.
41442         * lib/unicase/totitle.c: New file.
41443
41444         New module 'unicase/tolower'.
41445         * modules/unicase/tolower: New file.
41446         * lib/unicase/tolower.c: New file.
41447
41448         New module 'unicase/toupper'.
41449         * modules/unicase/toupper: New file.
41450         * lib/unicase/toupper.c: New file.
41451         * lib/unicase/simple-mapping.h: New file.
41452
41453         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41454         (mapping_table): New structure.
41455         (output_simple_mapping): New function.
41456         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41457         * modules/gen-uni-tables (Description): Update.
41458         * lib/unicase/toupper.h: New file, automatically generated by
41459         gen-uni-tables.
41460         * lib/unicase/tolower.h: New file, automatically generated by
41461         gen-uni-tables.
41462         * lib/unicase/totitle.h: New file, automatically generated by
41463         gen-uni-tables.
41464         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41465         gen-uni-tables.
41466         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41467         gen-uni-tables.
41468         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41469         gen-uni-tables.
41470
41471         New module 'unicase/base'.
41472         * modules/unicase/base: New file.
41473         * lib/unicase.h: New file.
41474
41475 2009-02-08  Bruno Haible  <bruno@clisp.org>
41476
41477         New module 'uniwbrk/ulc-wordbreaks'.
41478         * modules/uniwbrk/ulc-wordbreaks: New file.
41479         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41480
41481         New module 'uniwbrk/u32-wordbreaks'.
41482         * modules/uniwbrk/u32-wordbreaks: New file.
41483         * lib/uniwbrk/u32-wordbreaks.c: New file.
41484
41485         New module 'uniwbrk/u16-wordbreaks'.
41486         * modules/uniwbrk/u16-wordbreaks: New file.
41487         * lib/uniwbrk/u16-wordbreaks.c: New file.
41488
41489         New module 'uniwbrk/u8-wordbreaks'.
41490         * modules/uniwbrk/u8-wordbreaks: New file.
41491         * lib/uniwbrk/u8-wordbreaks.c: New file.
41492         * lib/uniwbrk/u-wordbreaks.h: New file.
41493
41494         New module 'uniwbrk/table'.
41495         * modules/uniwbrk/table: New file.
41496         * lib/uniwbrk/wbrktable.h: New file.
41497         * lib/uniwbrk/wbrktable.c: New file.
41498
41499         New module 'uniwbrk/wordbreak-property'.
41500         * modules/uniwbrk/wordbreak-property: New file.
41501         * lib/uniwbrk/wordbreak-property.c: New file.
41502
41503         * lib/gen-uni-tables.c (WBP_*): New enum items.
41504         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41505         (unicode_org_wbp): New variable.
41506         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41507         New functions.
41508         (wbp_table): New structure.
41509         (output_wbp, output_wbrk_tables): New functions.
41510         (main): Accept additional argument. Invoke fill_org_wbp,
41511         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41512         output_wbrk_tables.
41513         * modules/gen-uni-tables (Description): Update.
41514         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41515         gen-uni-tables.
41516
41517         New module 'uniwbrk/base'.
41518         * modules/uniwbrk/base: New file.
41519         * lib/uniwbrk.h: New file.
41520
41521 2009-02-08  Bruno Haible  <bruno@clisp.org>
41522
41523         Update to Unicode 5.1.0.
41524         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41525         U+2185..U+2188.
41526         (is_property_default_ignorable_code_point): Don't include characters
41527         of category Cc or Cs and not-a-characters.
41528         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41529         U+0D79, U+109E, U+109F, U+A60C.
41530         * lib/unictype/bidi_of.h: Regenerated.
41531         * lib/unictype/blocks.h: Regenerated.
41532         * lib/unictype/categ_C.h: Regenerated.
41533         * lib/unictype/categ_Cf.h: Regenerated.
41534         * lib/unictype/categ_Cn.h: Regenerated.
41535         * lib/unictype/categ_L.h: Regenerated.
41536         * lib/unictype/categ_Ll.h: Regenerated.
41537         * lib/unictype/categ_Lm.h: Regenerated.
41538         * lib/unictype/categ_Lo.h: Regenerated.
41539         * lib/unictype/categ_Lu.h: Regenerated.
41540         * lib/unictype/categ_M.h: Regenerated.
41541         * lib/unictype/categ_Mc.h: Regenerated.
41542         * lib/unictype/categ_Me.h: Regenerated.
41543         * lib/unictype/categ_Mn.h: Regenerated.
41544         * lib/unictype/categ_N.h: Regenerated.
41545         * lib/unictype/categ_Nd.h: Regenerated.
41546         * lib/unictype/categ_Nl.h: Regenerated.
41547         * lib/unictype/categ_No.h: Regenerated.
41548         * lib/unictype/categ_P.h: Regenerated.
41549         * lib/unictype/categ_Pd.h: Regenerated.
41550         * lib/unictype/categ_Pe.h: Regenerated.
41551         * lib/unictype/categ_Pf.h: Regenerated.
41552         * lib/unictype/categ_Pi.h: Regenerated.
41553         * lib/unictype/categ_Po.h: Regenerated.
41554         * lib/unictype/categ_Ps.h: Regenerated.
41555         * lib/unictype/categ_S.h: Regenerated.
41556         * lib/unictype/categ_Sk.h: Regenerated.
41557         * lib/unictype/categ_Sm.h: Regenerated.
41558         * lib/unictype/categ_So.h: Regenerated.
41559         * lib/unictype/categ_of.h: Regenerated.
41560         * lib/unictype/combining.h: Regenerated.
41561         * lib/unictype/ctype_alnum.h: Regenerated.
41562         * lib/unictype/ctype_alpha.h: Regenerated.
41563         * lib/unictype/ctype_graph.h: Regenerated.
41564         * lib/unictype/ctype_lower.h: Regenerated.
41565         * lib/unictype/ctype_print.h: Regenerated.
41566         * lib/unictype/ctype_punct.h: Regenerated.
41567         * lib/unictype/ctype_upper.h: Regenerated.
41568         * lib/unictype/decdigit.h: Regenerated.
41569         * lib/unictype/digit.h: Regenerated.
41570         * lib/unictype/mirror.h: Regenerated.
41571         * lib/unictype/numeric.h: Regenerated.
41572         * lib/unictype/pr_alphabetic.h: Regenerated.
41573         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41574         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41575         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41576         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41577         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41578         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41579         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41580         * lib/unictype/pr_combining.h: Regenerated.
41581         * lib/unictype/pr_dash.h: Regenerated.
41582         * lib/unictype/pr_decimal_digit.h: Regenerated.
41583         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41584         * lib/unictype/pr_deprecated.h: Regenerated.
41585         * lib/unictype/pr_diacritic.h: Regenerated.
41586         * lib/unictype/pr_extender.h: Regenerated.
41587         * lib/unictype/pr_format_control.h: Regenerated.
41588         * lib/unictype/pr_grapheme_base.h: Regenerated.
41589         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41590         * lib/unictype/pr_grapheme_link.h: Regenerated.
41591         * lib/unictype/pr_id_continue.h: Regenerated.
41592         * lib/unictype/pr_id_start.h: Regenerated.
41593         * lib/unictype/pr_ideographic.h: Regenerated.
41594         * lib/unictype/pr_ignorable_control.h: Regenerated.
41595         * lib/unictype/pr_lowercase.h: Regenerated.
41596         * lib/unictype/pr_math.h: Regenerated.
41597         * lib/unictype/pr_numeric.h: Regenerated.
41598         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41599         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41600         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41601         * lib/unictype/pr_other_id_continue.h: Regenerated.
41602         * lib/unictype/pr_other_lowercase.h: Regenerated.
41603         * lib/unictype/pr_other_math.h: Regenerated.
41604         * lib/unictype/pr_punctuation.h: Regenerated.
41605         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41606         * lib/unictype/pr_soft_dotted.h: Regenerated.
41607         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41608         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41609         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41610         * lib/unictype/pr_uppercase.h: Regenerated.
41611         * lib/unictype/pr_xid_continue.h: Regenerated.
41612         * lib/unictype/pr_xid_start.h: Regenerated.
41613         * lib/unictype/pr_zero_width.h: Regenerated.
41614         * lib/unictype/scripts.h: Regenerated.
41615         * lib/unictype/scripts_byname.gperf: Regenerated.
41616         * lib/unictype/sy_java_ident.h: Regenerated.
41617         * lib/unilbrk/lbrkprop1.h: Regenerated.
41618         * lib/unilbrk/lbrkprop2.h: Regenerated.
41619         * tests/unictype/test-categ_C.c: Regenerated.
41620         * tests/unictype/test-categ_Cf.c: Regenerated.
41621         * tests/unictype/test-categ_Cn.c: Regenerated.
41622         * tests/unictype/test-categ_L.c: Regenerated.
41623         * tests/unictype/test-categ_Ll.c: Regenerated.
41624         * tests/unictype/test-categ_Lm.c: Regenerated.
41625         * tests/unictype/test-categ_Lo.c: Regenerated.
41626         * tests/unictype/test-categ_Lu.c: Regenerated.
41627         * tests/unictype/test-categ_M.c: Regenerated.
41628         * tests/unictype/test-categ_Mc.c: Regenerated.
41629         * tests/unictype/test-categ_Me.c: Regenerated.
41630         * tests/unictype/test-categ_Mn.c: Regenerated.
41631         * tests/unictype/test-categ_N.c: Regenerated.
41632         * tests/unictype/test-categ_Nd.c: Regenerated.
41633         * tests/unictype/test-categ_Nl.c: Regenerated.
41634         * tests/unictype/test-categ_No.c: Regenerated.
41635         * tests/unictype/test-categ_P.c: Regenerated.
41636         * tests/unictype/test-categ_Pd.c: Regenerated.
41637         * tests/unictype/test-categ_Pe.c: Regenerated.
41638         * tests/unictype/test-categ_Pf.c: Regenerated.
41639         * tests/unictype/test-categ_Pi.c: Regenerated.
41640         * tests/unictype/test-categ_Po.c: Regenerated.
41641         * tests/unictype/test-categ_Ps.c: Regenerated.
41642         * tests/unictype/test-categ_S.c: Regenerated.
41643         * tests/unictype/test-categ_Sk.c: Regenerated.
41644         * tests/unictype/test-categ_Sm.c: Regenerated.
41645         * tests/unictype/test-categ_So.c: Regenerated.
41646         * tests/unictype/test-ctype_alnum.c: Regenerated.
41647         * tests/unictype/test-ctype_alpha.c: Regenerated.
41648         * tests/unictype/test-ctype_graph.c: Regenerated.
41649         * tests/unictype/test-ctype_lower.c: Regenerated.
41650         * tests/unictype/test-ctype_print.c: Regenerated.
41651         * tests/unictype/test-ctype_punct.c: Regenerated.
41652         * tests/unictype/test-ctype_upper.c: Regenerated.
41653         * tests/unictype/test-decdigit.h: Regenerated.
41654         * tests/unictype/test-digit.h: Regenerated.
41655         * tests/unictype/test-numeric.h: Regenerated.
41656         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41657         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41658         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41659         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41660         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41661         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41662         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41663         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41664         * tests/unictype/test-pr_combining.c: Regenerated.
41665         * tests/unictype/test-pr_dash.c: Regenerated.
41666         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41667         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41668         * tests/unictype/test-pr_deprecated.c: Regenerated.
41669         * tests/unictype/test-pr_diacritic.c: Regenerated.
41670         * tests/unictype/test-pr_extender.c: Regenerated.
41671         * tests/unictype/test-pr_format_control.c: Regenerated.
41672         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41673         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41674         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41675         * tests/unictype/test-pr_id_continue.c: Regenerated.
41676         * tests/unictype/test-pr_id_start.c: Regenerated.
41677         * tests/unictype/test-pr_ideographic.c: Regenerated.
41678         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41679         * tests/unictype/test-pr_lowercase.c: Regenerated.
41680         * tests/unictype/test-pr_math.c: Regenerated.
41681         * tests/unictype/test-pr_numeric.c: Regenerated.
41682         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41683         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41684         Regenerated.
41685         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41686         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41687         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41688         * tests/unictype/test-pr_other_math.c: Regenerated.
41689         * tests/unictype/test-pr_punctuation.c: Regenerated.
41690         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41691         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41692         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41693         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41694         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41695         * tests/unictype/test-pr_uppercase.c: Regenerated.
41696         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41697         * tests/unictype/test-pr_xid_start.c: Regenerated.
41698         * tests/unictype/test-pr_zero_width.c: Regenerated.
41699
41700         Update to Unicode 5.1.0.
41701         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41702         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41703         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41704         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41705         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41706         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41707         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41708         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41709         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41710         (nonspacing_table_ind): Update.
41711         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41712
41713         Update to Unicode 5.1.0.
41714         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41715         code transform.
41716         * lib/uniname/uniname.c (unicode_character_name,
41717         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41718         * lib/uniname/uninames.h: Regenerated.
41719         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41720
41721 2009-02-07  Bruno Haible  <bruno@clisp.org>
41722
41723         Merge gen-ctype and gen-lbrk into a single program.
41724         * lib/gen-uni-tables.c: New file, incorporating
41725         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41726         Add directory prefixes to the names of the generated files.
41727         * lib/unictype/gen-ctype.c: Remove file.
41728         * lib/unilbrk/gen-lbrk.c: Remove file.
41729         * modules/gen-uni-tables: New file.
41730         * modules/unictype/gen-ctype: Remove file.
41731         * modules/unilbrk/gen-lbrk: Remove file.
41732
41733 2009-02-07  Bruno Haible  <bruno@clisp.org>
41734
41735         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41736
41737         New module 'unistr/u32-strcoll'.
41738         * modules/unistr/u32-strcoll: New file.
41739         * lib/unistr/u32-strcoll.c: New file.
41740
41741         New module 'unistr/u16-strcoll'.
41742         * modules/unistr/u16-strcoll: New file.
41743         * lib/unistr/u16-strcoll.c: New file.
41744
41745         New module 'unistr/u8-strcoll'.
41746         * modules/unistr/u8-strcoll: New file.
41747         * lib/unistr/u8-strcoll.c: New file.
41748         * lib/unistr/u-strcoll.h: New file.
41749
41750 2009-02-07  Bruno Haible  <bruno@clisp.org>
41751
41752         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41753         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41754         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41755         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41756         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41757         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41758
41759 2009-02-07  Bruno Haible  <bruno@clisp.org>
41760
41761         Make 64-bit clean.
41762         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41763         output_combclass, output_bidi_category, output_decimal_digit,
41764         output_digit, output_numeric, output_mirror, output_scripts,
41765         output_ident_category): Use proper width specifier in format strings.
41766
41767 2009-02-07  Bruno Haible  <bruno@clisp.org>
41768
41769         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41770         failure behaviour.
41771
41772 2009-02-07  Jim Meyering  <meyering@redhat.com>
41773
41774         regex: avoid compilation failure with upcoming gcc-4.4
41775         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41776         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41777         "... error: integer overflow in preprocessor expression".
41778
41779 2009-02-05  Ben Pfaff  <blp@gnu.org>
41780
41781         Fix link errors on Windows when close module is used.
41782         * modules/close: Add $(LIB_CLOSE) to Link section.
41783         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41784         $(LIB_CLOSE) on Windows.
41785
41786 2009-02-05  Jim Meyering  <meyering@redhat.com>
41787
41788         still avoid unused-parameter warnings, but do it cleanly
41789         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41790         (get_fs_usage): Cast to void instead.
41791         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41792         (dev_from_mount_options, read_file_system_list): Cast to void.
41793         Prompted by Bruno Haible.
41794
41795 2009-02-04  Jim Meyering  <meyering@redhat.com>
41796
41797         fsusage.c: correct copyright year
41798         * lib/fsusage.c: Reflect year in which the change is pushed into
41799
41800         avoid misc. warnings
41801         * lib/fsusage.c (UNUSED_PARAM): Define.
41802         (get_fs_usage): Mark parameter "disk" as unused.
41803         * lib/getugroups.c (getgrent): Use "void" in prototype.
41804         * lib/mountlist.c: Mark unused parameters.
41805         (read_file_system_list): Declare a local with "const".
41806         * lib/nanosleep.c (getnow): Declare static.
41807         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41808
41809         dirfd: set errno upon failure
41810         * lib/dirfd.c: Include <errno.h>.
41811         Set errno to ENOTSUP when returning -1.
41812         * modules/dirfd (Depends-on): Add errno.
41813         Suggested by John Kodis <kodis@comcast.net>.
41814
41815 2009-02-01  Bruno Haible  <bruno@clisp.org>
41816
41817         Don't assume sizeof (long) >= sizeof (void *).
41818         * lib/memcmp.c: Include stdint.h.
41819         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41820         srcp2 to 'const byte *'.
41821         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41822         types to uintptr_t.
41823         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41824         * modules/memcmp (Depends-on): Add stdint.
41825         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41826
41827 2009-01-30  Eric Blake  <ebb9@byu.net>
41828
41829         fix more require-before-expand issues
41830         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41831         expand, AC_PROG_AWK.
41832         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41833
41834 2009-01-28  Eric Blake  <ebb9@byu.net>
41835
41836         version-etc: use consistent URL formatting
41837         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41838         Improve formatting.  Use fputs for string without %.
41839
41840 2009-01-28  Jim Meyering  <meyering@redhat.com>
41841
41842         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41843         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41844         "underquoted definition of NAME" from autoconf-2.59.
41845
41846 2009-01-28  Bruno Haible  <bruno@clisp.org>
41847
41848         * doc/gnulib.texi: Add "Obsolete modules" to index.
41849
41850 2009-01-28  Jim Meyering  <meyering@redhat.com>
41851
41852         useless-if-before-free: recognize more variants
41853         * build-aux/useless-if-before-free: Also recognize e.g.,
41854         if (NULL != p) free (p);
41855
41856 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41857
41858         test-getaddrinfo: skip (don't fail) this test when there's no network
41859         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41860         on the presumption that it means you lack network access.
41861
41862 2009-01-26  Jim Meyering  <meyering@redhat.com>
41863
41864         fflush: avoid warnings on modern systems
41865         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41866         pos and result, into scopes where they're used.
41867
41868 2009-01-26  Eric Blake  <ebb9@byu.net>
41869
41870         Silence warning reintroduced by recent extensions patch.
41871         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41872         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41873         autoconf.
41874
41875         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41876         * m4/00gnulib.m4: New file.
41877         * gnulib-tool (func_get_filelist): Always use it.
41878         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41879         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41880
41881 2009-01-25  Bruno Haible  <bruno@clisp.org>
41882
41883         Make test-quotearg work on MacOS X and AIX.
41884         * tests/test-quotearg.sh: New file.
41885         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41886         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41887         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41888         include <libintl.h>.
41889         (fake_locale): Remove variable.
41890         (gettext, dgettext, dcgettext): Remove functions.
41891         (main): Instead of setting a fake locale, set a real locale. Call
41892         textdomain and bindtextdomain.
41893         * modules/quotearg-tests (Files): Add the new files.
41894         (Depends-on): Add gettext, setenv, unsetenv.
41895         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41896         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41897         Augment TESTS_ENVIRONMENT.
41898
41899 2009-01-25  Bruno Haible  <bruno@clisp.org>
41900
41901         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41902         fr_FR.ISO8859-1 locale on MacOS X.
41903         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41904         ja_JP.eucJP locale on MacOS X.
41905         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41906         zh_CN.GB18030 locale on MacOS X.
41907
41908 2009-01-25  Bruno Haible  <bruno@clisp.org>
41909
41910         Avoid link errors on MacOS X 10.3.
41911         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41912         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41913
41914 2009-01-25  Bruno Haible  <bruno@clisp.org>
41915
41916         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41917         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41918         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41919         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41920         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41921         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41922         posix_spawnattr_init, posix_spawnattr_setsigmask,
41923         posix_spawnattr_setflags, posix_spawnattr_destroy.
41924
41925         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41926         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41927         * modules/execute (Files): Remove m4/posix_spawn.m4.
41928         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41929         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41930         posix_spawnattr_init, posix_spawnattr_setsigmask,
41931         posix_spawnattr_setflags, posix_spawnattr_destroy.
41932
41933 2009-01-25  Bruno Haible  <bruno@clisp.org>
41934
41935         * lib/glthread/threadlib.c: Include <stdlib.h>.
41936
41937 2009-01-25  Bruno Haible  <bruno@clisp.org>
41938
41939         * lib/glthread/threadlib.c (dummy): New declaration.
41940
41941 2009-01-25  Bruno Haible  <bruno@clisp.org>
41942
41943         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41944         multibyte characters also for the GB18030 encoding. Don't crash when
41945         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41946
41947 2009-01-25  Bruno Haible  <bruno@clisp.org>
41948
41949         Avoid redefining 'struct random_data' on OSF/1 5.1.
41950         * lib/stdlib.in.h: Include <random.h> if it exists.
41951         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41952         HAVE_RANDOM_H. Include <random.h> when testing whether
41953         'struct random_data' exists.
41954         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41955
41956 2009-01-25  Bruno Haible  <bruno@clisp.org>
41957
41958         Don't install charset.alias on MacOS X >= 10.3.
41959         * lib/localcharset.c (DARWIN7): New macro.
41960         (get_charset_aliases): Hardcode the result for Darwin7.
41961         * modules/localcharset (install-exec-local): Don't install
41962         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41963
41964 2009-01-25  Bruno Haible  <bruno@clisp.org>
41965
41966         Don't install charset.alias on mingw and Cygwin.
41967         * modules/localcharset (install-exec-local): Don't install
41968         charset.alias on mingw and Cygwin, if the file does not yet exist.
41969         The result for these platforms is hardcoded in localcharset.c.
41970
41971 2009-01-25  Bruno Haible  <bruno@clisp.org>
41972
41973         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41974         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41975         before requiring AC_USE_SYSTEM_EXTENSIONS.
41976
41977 2009-01-25  Jim Meyering  <meyering@redhat.com>
41978
41979         c-strtod: avoid warnings
41980         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41981         "assignment discards qualifiers from pointer target type" warnings.
41982
41983 2009-01-24  Bruno Haible  <bruno@clisp.org>
41984
41985         Add support for non-UTF-8 locales on MacOS X.
41986         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41987         canonical encodings. For Darwin 7 and newer, don't map traditional
41988         encodings to UTF-8.
41989         Reported by Vincent Lefevre <vincent@vinc17.org>
41990         at <http://savannah.gnu.org/bugs/?25235>.
41991
41992 2009-01-24  Bruno Haible  <bruno@clisp.org>
41993
41994         * doc/gnulib.texi (Obsolete modules): New section.
41995         Reported by Mike Frysinger <vapier@gentoo.org>.
41996
41997 2009-01-24  Bruno Haible  <bruno@clisp.org>
41998
41999         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42000         (%.dvi): New rule.
42001
42002 2009-01-24  Bruno Haible  <bruno@clisp.org>
42003
42004         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42005         Reported by Eric Blake.
42006
42007 2009-01-24  Bruno Haible  <bruno@clisp.org>
42008
42009         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42010         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42011         Reported by Gary V. Vaughan <gary@gnu.org>.
42012
42013 2009-01-24  Bruno Haible  <bruno@clisp.org>
42014
42015         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42016
42017 2009-01-23  Bruno Haible  <bruno@clisp.org>
42018
42019         Make c-strtod, c-strtold usable in libraries.
42020         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42021         (C_STRTOD): Call strdup instead of xstrdup.
42022         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42023         * modules/c-strtold (Depends-on): Likewise.
42024         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42025         * NEWS: Mention the change.
42026         Reported by Michael Gold <mgold@ncf.ca>.
42027
42028 2009-01-23  Jim Meyering  <meyering@redhat.com>
42029
42030         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42031         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42032         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42033
42034 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42035
42036         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42037         GNU CoreUtils.
42038         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42039         * modules/version-etc (Description): Update.
42040
42041 2009-01-22  Bruno Haible  <bruno@clisp.org>
42042
42043         Cache the C locale object.
42044         * lib/c-strtod.c (c_locale_cache): New variable.
42045         (c_locale): New function.
42046         (C_STRTOD): Use it, and don't call freelocale.
42047         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42048         Suggested by Paolo Bonzini.
42049
42050 2009-01-21  Bruno Haible  <bruno@clisp.org>
42051
42052         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42053         conditions other than overflow.
42054
42055 2009-01-21  Bruno Haible  <bruno@clisp.org>
42056
42057         * lib/c-strtod.c: Include errno.h.
42058         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42059         value from STRTOD_L and STRTOD.
42060
42061 2009-01-21  Bruno Haible  <bruno@clisp.org>
42062         and Jim Meyering  <meyering@redhat.com>
42063
42064         nanosleep: skip configure test (fail it) for apple universal builds
42065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42066         universal builds, assume that nanosleep does not work.
42067         * modules/nanosleep (Depends-on): Add multiarch.
42068
42069         mktime: skip configure test (fail it) for apple universal builds
42070         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42071         universal builds, assume that mktime does not work.
42072         * modules/mktime (Depends-on): Add multiarch.
42073
42074 2009-01-21  Eric Blake  <ebb9@byu.net>
42075
42076         multiarch: avoid expand-before-require warning
42077         * modules/multiarch (configure.ac): Require, rather than expand,
42078         gl_MULTIARCH.
42079         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42080         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42081         enforce that all clients require it.  Partial reversion of
42082         2008-12-29 patch.
42083
42084         error: avoid expand-before-require warning
42085         * modules/errno (configure.ac): Require, rather than expand,
42086         gl_HEADER_ERRNO_H.
42087         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42088         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42089         enforce that all clients require it.
42090
42091         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42092         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42093         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42094         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42095
42096 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42097
42098         Revert:
42099         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42100
42101         regex: do not depend on obsolete modules.
42102         * modules/regex: Remove memcmp and memmove.
42103
42104 2009-01-20  Bruno Haible  <bruno@clisp.org>
42105
42106         Make the 'link' module link on Windows NT 4.
42107         * lib/link.c (_WIN32_WINNT): Don't define.
42108         (CreateHardLinkFuncType): New type.
42109         (CreateHardLinkFunc, initialized): New variables.
42110         (initialize): New function.
42111         (link): Invoke CreateHardLink indirectly through the function pointer.
42112
42113 2009-01-20  Bruno Haible  <bruno@clisp.org>
42114
42115         Fix compilation failure on mingw.
42116         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42117
42118 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42119
42120         * doc/c-strtod.texi: Mention a couple of restrictions.
42121
42122 2009-01-20  Jim Meyering  <meyering@redhat.com>
42123
42124         gettimeofday: move more declarations out of functions
42125         * lib/gettimeofday.c: Move extern declarations of tzset and
42126         gmtime out of containing functions.  Prompted by Bruno Haible.
42127
42128 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42129
42130         regex: do not depend on obsolete modules.
42131         * modules/regex: Remove memcmp and memmove.
42132
42133 2009-01-19  Bruno Haible  <bruno@clisp.org>
42134
42135         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42136         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42137         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42138         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42139         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42140
42141 2009-01-19  Bruno Haible  <bruno@clisp.org>
42142
42143         * tests/test-link.c: Include <errno.h>.
42144         (main): Exit with code 77 when a hard link cannot be created due to
42145         the file system.
42146         * tests/test-link.sh: Skip test when a hard link cannot be created due
42147         to the file system.
42148         Suggested by Eric Blake.
42149
42150 2009-01-19  Martin Lambers  <marlam@marlam.de>
42151
42152         * modules/link-tests: New file.
42153         * tests/test-link.sh: New file.
42154         * tests/test-link.c: New file.
42155
42156 2009-01-19  Eric Blake  <ebb9@byu.net>
42157
42158         doc: mention another function added in cygwin 1.7.0
42159         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42160         Another new function in cygwin 1.7.
42161
42162 2009-01-19  Bruno Haible  <bruno@clisp.org>
42163
42164         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42165         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42166         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42167         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42168         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42169         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42170         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42171         * m4/md4.m4 (gl_MD4): Likewise.
42172         * m4/md5.m4 (gl_MD5): Likewise.
42173         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42174         * m4/sha1.m4 (gl_SHA1): Likewise.
42175         * m4/sha256.m4 (gl_SHA256): Likewise.
42176         * m4/sha512.m4 (gl_SHA512): Likewise.
42177
42178 2009-01-19  Bruno Haible  <bruno@clisp.org>
42179
42180         * modules/uniname/uniname-tests (Depends-on): Add progname.
42181         * tests/uniname/test-uninames.c: Include progname.h.
42182         (main): Call set_program_name.
42183
42184         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42185         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42186         (main): Call set_program_name.
42187
42188         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42189         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42190         (main): Call set_program_name.
42191
42192         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42193         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42194         (main): Call set_program_name.
42195
42196         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42197         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42198         (main): Call set_program_name.
42199
42200         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42201         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42202         (main): Call set_program_name.
42203
42204         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42205         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42206         (main): Call set_program_name.
42207
42208         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42209         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42210         (main): Call set_program_name.
42211
42212         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42213         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42214         (main): Call set_program_name.
42215
42216 2009-01-19  Eric Blake  <ebb9@byu.net>
42217
42218         test-unistd: test previous patch
42219         * tests/test-unistd.c: Test *_FILENO macros.
42220
42221         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42222         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42223         Guarantee a definition.
42224         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42225         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42226         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42227         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42228         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42229         Likewise.
42230         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42231         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42232         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42233         Likewise.
42234         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42235         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42236         (STDERR_FILENO): Likewise.
42237         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42238         (STDERR_FILENO): Likewise.
42239         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42240         (STDERR_FILENO): Likewise.
42241         Reported by Elbert Pol.
42242
42243 2009-01-19  Eric Blake  <ebb9@byu.net>
42244
42245         doc: mention more functions added in cygwin 1.7.0
42246         * doc/posix-functions/abort.texi (abort): Update wording related
42247         to cygwin.
42248         * doc/posix-functions/daylight.texi (daylight): Likewise.
42249         * doc/posix-functions/optarg.texi (optarg): Likewise.
42250         * doc/posix-functions/optarg.texi (opterr): Likewise.
42251         * doc/posix-functions/optarg.texi (optind): Likewise.
42252         * doc/posix-functions/optarg.texi (optopt): Likewise.
42253         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42254         worked in 1.5.x, and was withdrawn in 1.7.
42255         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42256         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42257         cygwin versions.
42258         * doc/posix-functions/perror.texi (perror): Likewise.
42259         * doc/posix-functions/printf.texi (printf): Likewise.
42260         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42261         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42262         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42263         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42264         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42265         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42266         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42267         Likewise.
42268         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42269         Likewise.
42270         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42271         this function.
42272         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42273         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42274         Likewise.
42275         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42276         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42277         * doc/posix-functions/confstr.texi (confstr): Likewise.
42278         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42279         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42280         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42281         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42282         * doc/posix-functions/fputws.texi (fputws): Likewise.
42283         * doc/posix-functions/fwide.texi (fwide): Likewise.
42284         * doc/posix-functions/getwc.texi (getwc): Likewise.
42285         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42286         * doc/posix-functions/putwc.texi (putwc): Likewise.
42287         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42288         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42289         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42290         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42291         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42292         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42293         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42294         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42295         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42296         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42297         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42298
42299 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42300
42301         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42302         * lib/ioctl.c: Include <sys/ioctl.h>.
42303
42304 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42305
42306         * modules/getdate-tests (Depends-on): Add progname.
42307         * tests/test-getdate.c: Use progname module, to avoid link errors
42308         on non-glibc systems.
42309
42310 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42311
42312         * modules/filenamecat-tests (Depends-on): Add progname.
42313         * modules/fstrcmp-tests (Depends-on): Likewise.
42314
42315         * tests/test-filenamecat.c: Use progname module, to avoid link
42316         errors on non-glibc systems.
42317         * tests/test-fstrcmp.c: Likewise.
42318
42319 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42320
42321         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42322         * lib/gettimeofday.c: Move extern declaration out of function.
42323
42324 2009-01-18  Bruno Haible  <bruno@clisp.org>
42325
42326         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42327         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42328         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42329
42330 2009-01-18  Bruno Haible  <bruno@clisp.org>
42331
42332         * lib/strftime.c (MEMPCPY): Remove unused macro.
42333         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42334
42335 2009-01-18  Martin Lambers  <marlam@marlam.de>
42336
42337         New module 'link'.
42338         * lib/unistd.in.h (link): New declaration.
42339         * lib/link.c: New file.
42340         * m4/link.m4: New file.
42341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42342         HAVE_LINK.
42343         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42344         * modules/link: New file.
42345         * doc/posix-functions/link.texi: Mention the new module.
42346
42347 2009-01-18  Bruno Haible  <bruno@clisp.org>
42348
42349         * tests/test-avltree_list.c (main): Call set_program_name.
42350         * tests/test-avltree_oset.c (main): Likewise.
42351         * tests/test-obstack-printf.c: Include progname.h.
42352         (main): Call set_program_name.
42353         * tests/test-quotearg.c: Include progname.h.
42354         (main): Call set_program_name.
42355         * tests/test-xmemdup0.c: Include progname.h.
42356         (main): Call set_program_name.
42357
42358 2009-01-18  Bruno Haible  <bruno@clisp.org>
42359
42360         New module 'alphasort'.
42361         * lib/dirent.in.h (alphasort): New declaration.
42362         * lib/alphasort.c: New file, from glibc with modifications.
42363         * m4/alphasort.m4: New file.
42364         * modules/alphasort: New file.
42365         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42366         HAVE_ALPHASORT.
42367         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42368         HAVE_ALPHASORT.
42369         * doc/posix-functions/alphasort.texi: Mention the new module and the
42370         portability problems.
42371
42372 2009-01-18  Bruno Haible  <bruno@clisp.org>
42373
42374         New module 'scandir'.
42375         * lib/dirent.in.h (scandir): New declaration.
42376         * lib/scandir.c: New file, from glibc with modifications.
42377         * m4/scandir.m4: New file.
42378         * modules/scandir: New file.
42379         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42380         HAVE_SCANDIR.
42381         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42382         HAVE_SCANDIR.
42383         * doc/posix-functions/scandir.texi: Mention the new module and the
42384         portability problems.
42385
42386 2009-01-17  Bruno Haible  <bruno@clisp.org>
42387
42388         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42389         Update documentation.
42390         (func_remove_suffix): Escape all dots in the suffix. Update
42391         documentation.
42392         (func_filter_filelist): Update documentation.
42393         Reported by Ralf Wildenhues.
42394
42395 2009-01-17  Bruno Haible  <bruno@clisp.org>
42396
42397         * modules/dprintf-posix-tests: New file.
42398         * tests/test-dprintf-posix.sh: New file.
42399         * tests/test-dprintf-posix.c: New file.
42400
42401         New modules 'dprintf', 'dprintf-posix'.
42402         * lib/stdio.in.h (dprintf): New declaration.
42403         * lib/dprintf.c: New file.
42404         * m4/dprintf.m4: New file.
42405         * m4/dprintf-posix.m4: New file.
42406         * modules/dprintf: New file.
42407         * modules/dprintf-posix: New file.
42408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42409         HAVE_DPRINTF, REPLACE_DPRINTF.
42410         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42411         HAVE_DPRINTF, REPLACE_DPRINTF.
42412         * doc/posix-functions/dprintf.texi: Mention the new modules.
42413
42414 2009-01-17  Bruno Haible  <bruno@clisp.org>
42415
42416         * modules/vdprintf-posix-tests: New file.
42417         * tests/test-vdprintf-posix.sh: New file.
42418         * tests/test-vdprintf-posix.c: New file.
42419
42420         New modules 'vdprintf', 'vdprintf-posix'.
42421         * lib/stdio.in.h (vdprintf): New declaration.
42422         * lib/vdprintf.c: New file.
42423         * m4/vdprintf.m4: New file.
42424         * m4/vdprintf-posix.m4: New file.
42425         * modules/vdprintf: New file.
42426         * modules/vdprintf-posix: New file.
42427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42428         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42429         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42430         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42431         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42432
42433 2009-01-17  Bruno Haible  <bruno@clisp.org>
42434
42435         Fix replacement of fopen on mingw.
42436         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42437         mingw.
42438
42439 2009-01-17  Bruno Haible  <bruno@clisp.org>
42440
42441         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42442         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42443
42444 2009-01-17  Bruno Haible  <bruno@clisp.org>
42445
42446         Avoid test-fflush2.sh failure on mingw.
42447         * tests/test-fflush2.c: Include binary-io.h.
42448         (main): Put standard input into binary mode.
42449         * modules/fflush-tests (Depends-on): Add binary-io.
42450
42451 2009-01-17  Bruno Haible  <bruno@clisp.org>
42452
42453         * lib/wchar.in.h: In another particular situation, include only the
42454         system's <wchar.h> file.
42455         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42456         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42457         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42458
42459 2009-01-17  Bruno Haible  <bruno@clisp.org>
42460
42461         Support for stripping executables in --enable-relocatable.
42462         * build-aux/install-reloc: Expect one more argument, or an environment
42463         variable RELOC_STRIP_PROG. If set, strip the destination program and
42464         its wrapper.
42465         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42466         RELOC_STRIP_PROG.
42467         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42468         to set RELOCATABLE_STRIP.
42469         * NEWS: Mention the new Makefile requirement.
42470
42471 2009-01-17  Bruno Haible  <bruno@clisp.org>
42472
42473         * build-aux/install-reloc: Remove debugging information left over by
42474         C compiler on MacOS X.
42475
42476 2009-01-17  Bruno Haible  <bruno@clisp.org>
42477
42478         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42479         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42480         _NSGetExecutablePath.
42481
42482 2009-01-16  Jim Meyering  <meyering@redhat.com>
42483
42484         strerror: avoid warnings about discarding "const"
42485         * lib/strerror.c (rpl_strerror): Instead of returning a const
42486         string from each and every "case", use a variable, and add a single
42487         cast after the switch.
42488
42489 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42490
42491         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42492
42493 2009-01-16  Bruno Haible  <bruno@clisp.org>
42494
42495         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42496         array initializer syntax that also works in C++ mode.
42497         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42498
42499 2009-01-16  Jim Meyering  <meyering@redhat.com>
42500
42501         poll: suppress a warning
42502         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42503         to ignore "...unsigned expression < 0 is always false" warnings.
42504
42505 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42506
42507         poll: remove declarations of unused variables
42508         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42509         sockbuf and optlen.
42510
42511 2009-01-15  Bruno Haible  <bruno@clisp.org>
42512
42513         Make fflush-after-ungetc POSIX compliant on BSD systems.
42514         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42515         (clear_ungetc_buffer): Implement also for other systems.
42516         (rpl_fflush): On glibc systems, invoke
42517         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42518         clear_ungetc_buffer after fetching the stream's position, not before.
42519
42520 2009-01-15  Bruno Haible  <bruno@clisp.org>
42521
42522         Make fflush-after-ungetc POSIX compliant on glibc systems.
42523         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42524         after ungetc.
42525         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42526         (rpl_fflush): On glibc systems, simply call the system's fflush
42527         function after clearing the ungetc buffer.
42528         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42529         Instead, lseek only to the end of file, then use the system's fseeko
42530         for the rest. On glibc systems, reset the EOF indicator bit.
42531
42532 2009-01-15  Jim Meyering  <meyering@redhat.com>
42533
42534         openmp.m4: revert quote-adding change, for portability to older autoconf
42535         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42536         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42537         Simon Josefsson noticed the problem when using autoconf-2.61.
42538
42539 2009-01-15  Bruno Haible  <bruno@clisp.org>
42540
42541         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42542         * tests/test-fflush2.c (ASSERT): Always fail.
42543         (main): Add two tests for fflush() after ungetc(), taking into account
42544         the Austin Group's clarification.
42545         Suggested by Eric Blake.
42546
42547 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42548
42549         mktime.m4: remove K&R-style function prototypes
42550         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42551         for the Sun C++ compiler.
42552
42553 2009-01-14  Bruno Haible  <bruno@clisp.org>
42554
42555         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42556         while including <wchar.h>.
42557         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42558         the system's <wchar.h> file.
42559         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42560
42561 2009-01-14  Bruno Haible  <bruno@clisp.org>
42562
42563         * m4/csharp.m4: Don't mention gettext on the serial number line.
42564         * m4/csharpexec.m4: Likewise.
42565         * m4/eaccess.m4: Likewise.
42566         * m4/javaexec.m4: Likewise.
42567         * m4/sig_atomic_t.m4: Likewise.
42568         * m4/tmpdir.m4: Likewise.
42569         * m4/intldir.m4: Bump gettext version.
42570         * m4/lib-ld.m4: Likewise.
42571
42572 2009-01-14  Bruno Haible  <bruno@clisp.org>
42573
42574         * lib/progname.c (set_program_name): Add more comments.
42575         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42576
42577 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42578
42579         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42580         were sys/stat.h does not define it.
42581
42582 2009-01-14  Jim Meyering  <meyering@redhat.com>
42583
42584         many *.m4 files: improve m4 quoting
42585         99% of this change was performed by running the following commands:
42586         git ls-files | grep '\.m4$' | xargs perl -pi \
42587           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42588           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42589           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42590           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42591         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42592         The remainder were to add Copyright dates, increment serial numbers,
42593         undo some changes in comments, exclude m4/intl.m4, and add quotes
42594         around the "1" in ",1" where the unusual spacing prohibited the
42595         above regexps from doing the job.  For more details, see
42596         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42597         * m4/acl.m4: Modified.
42598         * m4/afs.m4: Likewise.
42599         * m4/alloca.m4: Likewise.
42600         * m4/argp.m4: Likewise.
42601         * m4/argz.m4: Likewise.
42602         * m4/atexit.m4: Likewise.
42603         * m4/bison-i18n.m4: Likewise.
42604         * m4/bison.m4: Likewise.
42605         * m4/byteswap.m4: Likewise.
42606         * m4/c-stack.m4: Likewise.
42607         * m4/c-strtod.m4: Likewise.
42608         * m4/calloc.m4: Likewise.
42609         * m4/canonicalize-lgpl.m4: Likewise.
42610         * m4/chown.m4: Likewise.
42611         * m4/clock_time.m4: Likewise.
42612         * m4/codeset.m4: Likewise.
42613         * m4/copy-file.m4: Likewise.
42614         * m4/csharp.m4: Likewise.
42615         * m4/csharpcomp.m4: Likewise.
42616         * m4/csharpexec.m4: Likewise.
42617         * m4/d-ino.m4: Likewise.
42618         * m4/d-type.m4: Likewise.
42619         * m4/dirfd.m4: Likewise.
42620         * m4/double-slash-root.m4: Likewise.
42621         * m4/eaccess.m4: Likewise.
42622         * m4/eealloc.m4: Likewise.
42623         * m4/environ.m4: Likewise.
42624         * m4/errno_h.m4: Likewise.
42625         * m4/euidaccess.m4: Likewise.
42626         * m4/execute.m4: Likewise.
42627         * m4/fatal-signal.m4: Likewise.
42628         * m4/fchdir.m4: Likewise.
42629         * m4/fcntl_h.m4: Likewise.
42630         * m4/fileblocks.m4: Likewise.
42631         * m4/filenamecat.m4: Likewise.
42632         * m4/findprog.m4: Likewise.
42633         * m4/flexmember.m4: Likewise.
42634         * m4/fnmatch.m4: Likewise.
42635         * m4/fopen.m4: Likewise.
42636         * m4/fpending.m4: Likewise.
42637         * m4/fprintf-posix.m4: Likewise.
42638         * m4/free.m4: Likewise.
42639         * m4/frexp.m4: Likewise.
42640         * m4/frexpl.m4: Likewise.
42641         * m4/fsusage.m4: Likewise.
42642         * m4/ftruncate.m4: Likewise.
42643         * m4/gc-camellia.m4: Likewise.
42644         * m4/gc-random.m4: Likewise.
42645         * m4/gc.m4: Likewise.
42646         * m4/getaddrinfo.m4: Likewise.
42647         * m4/getcwd-abort-bug.m4: Likewise.
42648         * m4/getcwd-path-max.m4: Likewise.
42649         * m4/getdate.m4: Likewise.
42650         * m4/getdomainname.m4: Likewise.
42651         * m4/getgroups.m4: Likewise.
42652         * m4/gethostname.m4: Likewise.
42653         * m4/gethrxtime.m4: Likewise.
42654         * m4/getline.m4: Likewise.
42655         * m4/getloadavg.m4: Likewise.
42656         * m4/getndelim2.m4: Likewise.
42657         * m4/getpass.m4: Likewise.
42658         * m4/gettext.m4: Likewise.
42659         * m4/gettime.m4: Likewise.
42660         * m4/gettimeofday.m4: Likewise.
42661         * m4/gnulib-common.m4: Likewise.
42662         * m4/group-member.m4: Likewise.
42663         * m4/host-os.m4: Likewise.
42664         * m4/iconv.m4: Likewise.
42665         * m4/iconv_open.m4: Likewise.
42666         * m4/inet_ntop.m4: Likewise.
42667         * m4/inet_pton.m4: Likewise.
42668         * m4/inline.m4: Likewise.
42669         * m4/intldir.m4: Likewise.
42670         * m4/intlmacosx.m4: Likewise.
42671         * m4/intmax.m4: Likewise.
42672         * m4/intmax_t.m4: Likewise.
42673         * m4/inttypes.m4: Likewise.
42674         * m4/inttypes_h.m4: Likewise.
42675         * m4/inttypes-pri.m4: Likewise.
42676         * m4/isapipe.m4: Likewise.
42677         * m4/isnand.m4: Likewise.
42678         * m4/isnanf.m4: Likewise.
42679         * m4/isnanl.m4: Likewise.
42680         * m4/javacomp.m4: Likewise.
42681         * m4/javaexec.m4: Likewise.
42682         * m4/jm-winsz1.m4: Likewise.
42683         * m4/jm-winsz2.m4: Likewise.
42684         * m4/lchown.m4: Likewise.
42685         * m4/lcmessage.m4: Likewise.
42686         * m4/ldexpl.m4: Likewise.
42687         * m4/lib-ld.m4: Likewise.
42688         * m4/lib-link.m4: Likewise.
42689         * m4/libsigsegv.m4: Likewise.
42690         * m4/link-follow.m4: Likewise.
42691         * m4/localcharset.m4: Likewise.
42692         * m4/locale-fr.m4: Likewise.
42693         * m4/locale-ja.m4: Likewise.
42694         * m4/locale-tr.m4: Likewise.
42695         * m4/locale-zh.m4: Likewise.
42696         * m4/lock.m4: Likewise.
42697         * m4/longlong.m4: Likewise.
42698         * m4/ls-mntd-fs.m4: Likewise.
42699         * m4/lstat.m4: Likewise.
42700         * m4/malloc.m4: Likewise.
42701         * m4/mathl.m4: Likewise.
42702         * m4/mbrtowc.m4: Likewise.
42703         * m4/mbstate_t.m4: Likewise.
42704         * m4/mbswidth.m4: Likewise.
42705         * m4/memchr.m4: Likewise.
42706         * m4/memcmp.m4: Likewise.
42707         * m4/memcpy.m4: Likewise.
42708         * m4/memmem.m4: Likewise.
42709         * m4/memmove.m4: Likewise.
42710         * m4/mempcpy.m4: Likewise.
42711         * m4/memrchr.m4: Likewise.
42712         * m4/memset.m4: Likewise.
42713         * m4/minmax.m4: Likewise.
42714         * m4/mkdir-slash.m4: Likewise.
42715         * m4/mkdtemp.m4: Likewise.
42716         * m4/mktime.m4: Likewise.
42717         * m4/mmap-anon.m4: Likewise.
42718         * m4/mountlist.m4: Likewise.
42719         * m4/nanosleep.m4: Likewise.
42720         * m4/nls.m4: Likewise.
42721         * m4/nocrash.m4: Likewise.
42722         * m4/open.m4: Likewise.
42723         * m4/openat.m4: Likewise.
42724         * m4/openmp.m4: Likewise.
42725         * m4/pathmax.m4: Likewise.
42726         * m4/perl.m4: Likewise.
42727         * m4/physmem.m4: Likewise.
42728         * m4/pipe.m4: Likewise.
42729         * m4/po.m4: Likewise.
42730         * m4/poll.m4: Likewise.
42731         * m4/posixtm.m4: Likewise.
42732         * m4/posixver.m4: Likewise.
42733         * m4/printf-frexp.m4: Likewise.
42734         * m4/printf-frexpl.m4: Likewise.
42735         * m4/printf-posix.m4: Likewise.
42736         * m4/printf-posix-rpl.m4: Likewise.
42737         * m4/printf.m4: Likewise.
42738         * m4/progtest.m4: Likewise.
42739         * m4/putenv.m4: Likewise.
42740         * m4/readline.m4: Likewise.
42741         * m4/readlink.m4: Likewise.
42742         * m4/readutmp.m4: Likewise.
42743         * m4/realloc.m4: Likewise.
42744         * m4/regex.m4: Likewise.
42745         * m4/relocatable.m4: Likewise.
42746         * m4/relocatable-lib.m4: Likewise.
42747         * m4/rename-dest-slash.m4: Likewise.
42748         * m4/rename.m4: Likewise.
42749         * m4/rmdir-errno.m4: Likewise.
42750         * m4/rmdir.m4: Likewise.
42751         * m4/roundf.m4: Likewise.
42752         * m4/roundl.m4: Likewise.
42753         * m4/rpmatch.m4: Likewise.
42754         * m4/save-cwd.m4: Likewise.
42755         * m4/selinux-selinux-h.m4: Likewise.
42756         * m4/setenv.m4: Likewise.
42757         * m4/settime.m4: Likewise.
42758         * m4/sig2str.m4: Likewise.
42759         * m4/sig_atomic_t.m4: Likewise.
42760         * m4/signalblocking.m4: Likewise.
42761         * m4/signbit.m4: Likewise.
42762         * m4/sigpipe.m4: Likewise.
42763         * m4/sockets.m4: Likewise.
42764         * m4/sockpfaf.m4: Likewise.
42765         * m4/st_dm_mode.m4: Likewise.
42766         * m4/stat-time.m4: Likewise.
42767         * m4/stdbool.m4: Likewise.
42768         * m4/stdint.m4: Likewise.
42769         * m4/stdint_h.m4: Likewise.
42770         * m4/stpcpy.m4: Likewise.
42771         * m4/stpncpy.m4: Likewise.
42772         * m4/strcase.m4: Likewise.
42773         * m4/strchrnul.m4: Likewise.
42774         * m4/strcspn.m4: Likewise.
42775         * m4/strdup.m4: Likewise.
42776         * m4/strftime.m4: Likewise.
42777         * m4/strndup.m4: Likewise.
42778         * m4/strnlen.m4: Likewise.
42779         * m4/strpbrk.m4: Likewise.
42780         * m4/strptime.m4: Likewise.
42781         * m4/strsep.m4: Likewise.
42782         * m4/strtod.m4: Likewise.
42783         * m4/strtoimax.m4: Likewise.
42784         * m4/strtok_r.m4: Likewise.
42785         * m4/strtol.m4: Likewise.
42786         * m4/strtoll.m4: Likewise.
42787         * m4/strtoul.m4: Likewise.
42788         * m4/strtoull.m4: Likewise.
42789         * m4/strtoumax.m4: Likewise.
42790         * m4/strverscmp.m4: Likewise.
42791         * m4/threadlib.m4: Likewise.
42792         * m4/timegm.m4: Likewise.
42793         * m4/tm_gmtoff.m4: Likewise.
42794         * m4/tmpdir.m4: Likewise.
42795         * m4/tmpfile.m4: Likewise.
42796         * m4/tzset.m4: Likewise.
42797         * m4/uintmax_t.m4: Likewise.
42798         * m4/unlinkdir.m4: Likewise.
42799         * m4/unlocked-io.m4: Likewise.
42800         * m4/uptime.m4: Likewise.
42801         * m4/userspec.m4: Likewise.
42802         * m4/utimbuf.m4: Likewise.
42803         * m4/utime.m4: Likewise.
42804         * m4/utimes-null.m4: Likewise.
42805         * m4/utimes.m4: Likewise.
42806         * m4/vararrays.m4: Likewise.
42807         * m4/vasnprintf.m4: Likewise.
42808         * m4/vfprintf-posix.m4: Likewise.
42809         * m4/vprintf-posix.m4: Likewise.
42810         * m4/wait-process.m4: Likewise.
42811         * m4/wchar_t.m4: Likewise.
42812         * m4/wint_t.m4: Likewise.
42813         * m4/write-any-file.m4: Likewise.
42814         * m4/yield.m4: Likewise.
42815
42816 2009-01-13  Bruno Haible  <bruno@clisp.org>
42817
42818         Avoid test-copy-file.sh failures when ACL support insufficient.
42819         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42820         TESTS_ENVIRONMENT.
42821         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42822         Reported by Jim Meyering.
42823
42824 2009-01-13  Bruno Haible  <bruno@clisp.org>
42825
42826         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42827         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42828         * modules/unistdio/u8-printf-parse (Files): Likewise.
42829         * modules/unistdio/u32-printf-parse (Files): Likewise.
42830         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42831
42832 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42833
42834         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42835         and m4/inttypes_h.m4 too.
42836
42837 2009-01-12  Eric Blake  <ebb9@byu.net>
42838
42839         tests: IRIX 6.2 cc can't compile -0.0 into .data
42840         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42841         rather than at compile-time.
42842         * tests/test-floorl.c (minus_zero): Likewise.
42843         * tests/test-frexpl.c (minus_zero): Likewise.
42844         * tests/test-isnan.c (minus_zerol): Likewise.
42845         * tests/test-isnanl.h (minus_zero): Likewise.
42846         * tests/test-ldexpl.c (minus_zero): Likewise.
42847         * tests/test-roundl.c (minus_zero): Likewise.
42848         * tests/test-signbit.c (minus_zerol): Likewise.
42849         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42850         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42851         * tests/test-truncl.c (minus_zero): Likewise.
42852         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42853         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42854         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42855
42856 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42857
42858         regex: fix glibc bug 9697
42859         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42860         handling.
42861
42862 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42863
42864         regex: fix glibc bug 697
42865         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42866         being NULL also if there are no backreferences.
42867
42868 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42869
42870         regex: merge glibc changes
42871         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42872         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42873         re_string_skip_chars, re_string_reconstruct): Likewise.
42874         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42875
42876 2009-01-07  Jim Meyering  <meyering@redhat.com>
42877
42878         poll: filter through cppi
42879         * lib/poll.c: Indent cpp directives to reflect nesting.
42880
42881 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42882
42883         poll: don't return uninitialized
42884         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42885
42886 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42887
42888         avoid compile failure on AIX 6.1
42889         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42890         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42891
42892 2009-01-04  Jim Meyering  <meyering@redhat.com>
42893
42894         remove duplicate inclusion of <stdio.h>
42895         * tests/test-fprintf-posix.c: Likewise.
42896         * tests/test-printf-posix.c: Likewise.
42897         * tests/test-snprintf-posix.c: Likewise.
42898         * tests/test-sprintf-posix.c: Likewise.
42899         * tests/test-vasprintf-posix.c: Likewise.
42900         * tests/test-vfprintf-posix.c: Likewise.
42901         * tests/test-vprintf-posix.c: Likewise.
42902         * tests/test-vsnprintf-posix.c: Likewise.
42903         * tests/test-vsprintf-posix.c: Likewise.
42904
42905 2009-01-03  Jim Meyering  <meyering@redhat.com>
42906
42907         gnulib-tool: fix sed-based filtering
42908         * gnulib-tool (func_filter_filelist): Remove extra backslash
42909         in sed_fff_filter definition.
42910
42911 2009-01-02  Jim Meyering  <meyering@redhat.com>
42912
42913         strftime: avoid compilation failure on Solaris 2.6
42914         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42915         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42916         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42917         be available.  Reported by Tom G. Christensen.  Details in
42918         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42919
42920 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42921             Bruno Haible  <bruno@clisp.org>
42922
42923         Speed up gnulib-tool by doing more string processing through shell
42924         built-ins.
42925         * gnulib-tool (fast_func_append): New variable.
42926         (func_remove_prefix, func_remove_suffix): New functions.
42927         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42928         (func_filter_filelist): New function.
42929         (func_get_dependencies): Use func_remove_suffix instead of sed.
42930         (func_get_automake_snippet): Use func_filter_filelist instead of a
42931         subshell and sed invocation.
42932
42933 2009-01-01  Bruno Haible  <bruno@clisp.org>
42934
42935         Fix a security bug.
42936         * gnulib-tool (func_import, import, update): Don't allow the characters
42937         '"', '$', '`', '\' in macro arguments that become part of commands that
42938         are evaluated.
42939
42940 2009-01-01  Bruno Haible  <bruno@clisp.org>
42941
42942         * gnulib-tool (func_reset_sigpipe): Add more comments.
42943
42944 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42945
42946         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42947         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42948         already know the answer.
42949
42950 2009-01-01  Jim Meyering  <meyering@redhat.com>
42951
42952         * lib/version-etc.c (version_etc_va): Update copyright year.
42953
42954 2008-12-30  Bruno Haible  <bruno@clisp.org>
42955
42956         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42957         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42958         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42959
42960 2008-12-29  Eric Blake  <ebb9@byu.net>
42961
42962         multiarch: avoid autoconf AC_REQUIRE bug
42963         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42964         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42965         2.63 and older.
42966         Reported by Bruno Haible, and analyzed in
42967         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42968
42969 2008-12-29  Bruno Haible  <bruno@clisp.org>
42970
42971         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42972         files in subdirectories correctly.
42973         Reported by Ralf Wildenhues.
42974
42975 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42976
42977         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42978         rather than 'join FILE -', for Solaris join.
42979
42980 2008-12-29  Bruno Haible  <bruno@clisp.org>
42981
42982         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42983         quoting.
42984         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42985         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42986         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42987         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42988         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42989         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42990         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42991         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42992         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42993         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42994         * m4/nls.m4 (AM_NLS): Likewise.
42995         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42996         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42997         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42998         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42999         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43000         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43001         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43002         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43003         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43004         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43005         * m4/xsize.m4 (gl_XSIZE): Likewise.
43006         Suggested by Jim Meyering.
43007
43008 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43009
43010         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43011         * lib/parse-duration.c: use a switch instead of cascading if's.
43012
43013 2008-12-29  Eric Blake  <ebb9@byu.net>
43014
43015         wchar.h: supply WEOF on Irix 5.3
43016         * lib/wchar.in.h (wint_t): Also supply WEOF.
43017         * lib/wctype.in.h (wint_t): Likewise.
43018         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43019         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43020         Reported by Tom G. Christensen.
43021
43022 2008-12-26  Bruno Haible  <bruno@clisp.org>
43023
43024         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43025         i486, i586, i686.
43026
43027 2008-12-26  Bruno Haible  <bruno@clisp.org>
43028
43029         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43030
43031 2008-12-26  Bruno Haible  <bruno@clisp.org>
43032
43033         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43034         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43035         not __STDC_CONSTANT_MACROS.
43036         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43037
43038 2008-12-25  Bruno Haible  <bruno@clisp.org>
43039
43040         Add support for universal builds to vasnprintf.
43041         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43042         universal builds, guess no.
43043         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43044         * modules/vasprintf-posix (Depends-on): Likewise.
43045         * modules/fprintf-posix (Depends-on): Likewise.
43046         * modules/vfprintf-posix (Depends-on): Likewise.
43047         * modules/snprintf-posix (Depends-on): Likewise.
43048         * modules/vsnprintf-posix (Depends-on): Likewise.
43049         * modules/sprintf-posix (Depends-on): Likewise.
43050         * modules/vsprintf-posix (Depends-on): Likewise.
43051         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43052         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43053         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43054         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43055         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43056         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43057         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43058
43059         Add support for universal builds to <inttypes.h>.
43060         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43061         _SCNu64_PREFIX): In Apple
43062         universal builds, define directly, using _LP64.
43063         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43064         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43065         * modules/inttypes (Depends-on): Add multiarch.
43066         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43067
43068         Add support for universal builds to <stdint.h>.
43069         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43070         universal builds, define directly, using _LP64.
43071         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43072         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43073         and size_t.
43074         * modules/stdint (Depends-on): Add multiarch.
43075         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43076
43077         New module 'multiarch'.
43078         * modules/multiarch: New file.
43079         * m4/multiarch.m4: New file.
43080
43081 2008-12-25  Bruno Haible  <bruno@clisp.org>
43082
43083         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43084
43085 2008-12-25  Bruno Haible  <bruno@clisp.org>
43086
43087         * modules/btowc (License): Relicense under LGPLv2+.
43088         * modules/mbsinit (License): Likewise.
43089         * modules/mbrtowc (License): Likewise.
43090         * modules/wcrtomb (License): Likewise.
43091         * modules/streq (License): Likewise.
43092         Reported by David Lutterkort <lutter@redhat.com>.
43093
43094 2008-12-23  Bruno Haible  <bruno@clisp.org>
43095
43096         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43097
43098 2008-12-23  Bruno Haible  <bruno@clisp.org>
43099
43100         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43101         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43102         GETADDRINFO_LIB, not in LIBS.
43103         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43104         * modules/canon-host (Link): Likewise.
43105         * NEWS: Mention the change.
43106         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43107         GETADDRINFO_LIB.
43108
43109 2008-12-22  Bruno Haible  <bruno@clisp.org>
43110
43111         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43112         * doc/posix-functions/iswalpha_l.texi: Likewise.
43113         * doc/posix-functions/iswblank_l.texi: Likewise.
43114         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43115         * doc/posix-functions/iswctype_l.texi: Likewise.
43116         * doc/posix-functions/iswdigit_l.texi: Likewise.
43117         * doc/posix-functions/iswgraph_l.texi: Likewise.
43118         * doc/posix-functions/iswlower_l.texi: Likewise.
43119         * doc/posix-functions/iswprint_l.texi: Likewise.
43120         * doc/posix-functions/iswpunct_l.texi: Likewise.
43121         * doc/posix-functions/iswspace_l.texi: Likewise.
43122         * doc/posix-functions/iswupper_l.texi: Likewise.
43123         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43124         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43125         * doc/posix-functions/open_wmemstream.texi: Likewise.
43126         * doc/posix-functions/swscanf.texi: Likewise.
43127         * doc/posix-functions/towctrans_l.texi: Likewise.
43128         * doc/posix-functions/towlower.texi: Likewise.
43129         * doc/posix-functions/towlower_l.texi: Likewise.
43130         * doc/posix-functions/towupper.texi: Likewise.
43131         * doc/posix-functions/towupper_l.texi: Likewise.
43132         * doc/posix-functions/vfwprintf.texi: Likewise.
43133         * doc/posix-functions/vfwscanf.texi: Likewise.
43134         * doc/posix-functions/vswscanf.texi: Likewise.
43135         * doc/posix-functions/vwprintf.texi: Likewise.
43136         * doc/posix-functions/vwscanf.texi: Likewise.
43137         * doc/posix-functions/wcpcpy.texi: Likewise.
43138         * doc/posix-functions/wcpncpy.texi: Likewise.
43139         * doc/posix-functions/wcscasecmp.texi: Likewise.
43140         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43141         * doc/posix-functions/wcscoll_l.texi: Likewise.
43142         * doc/posix-functions/wcsdup.texi: Likewise.
43143         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43144         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43145         * doc/posix-functions/wcsnlen.texi: Likewise.
43146         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43147         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43148         * doc/posix-functions/wctrans_l.texi: Likewise.
43149         * doc/posix-functions/wctype_l.texi: Likewise.
43150         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43151         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43152         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43153         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43154         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43155         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43156         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43157         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43158         * doc/glibc-functions/wcschrnul.texi: Likewise.
43159         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43160         * doc/glibc-functions/wcstod_l.texi: Likewise.
43161         * doc/glibc-functions/wcstof_l.texi: Likewise.
43162         * doc/glibc-functions/wcstol_l.texi: Likewise.
43163         * doc/glibc-functions/wcstold_l.texi: Likewise.
43164         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43165         * doc/glibc-functions/wcstoq.texi: Likewise.
43166         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43167         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43168         * doc/glibc-functions/wcstouq.texi: Likewise.
43169         * doc/glibc-functions/wmempcpy.texi: Likewise.
43170
43171 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43172             Eric Blake  <ebb9@byu.net>
43173             Paolo Bonzini  <bonzini@gnu.org>
43174             Bruno Haible  <bruno@clisp.org>
43175
43176         Make c-stack work on Haiku.
43177         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43178         (c_stack_action): Use SA_ONSTACK flag.
43179
43180 2008-12-22  Bruno Haible  <bruno@clisp.org>
43181
43182         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43183
43184 2008-12-22  Bruno Haible  <bruno@clisp.org>
43185
43186         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43187         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43188         being overridden.
43189         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43190         New macros.
43191         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43192         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43193         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43194         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43195
43196 2008-12-22  Bruno Haible  <bruno@clisp.org>
43197
43198         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43199         from test code.
43200
43201 2008-12-22  Eric Blake  <ebb9@byu.net>
43202
43203         Avoid gcc warnings on cygwin.
43204         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43205         Avoid unused variable.
43206         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43207         Likewise.
43208
43209 2008-12-22  Bruno Haible  <bruno@clisp.org>
43210
43211         Remove HAVE_MBRTOWC conditionals.
43212         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43213         (mbscasecmp): Assume mbrtowc function.
43214         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43215         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43216         * lib/mbschr.c: Include mbuiter.h unconditionally.
43217         (mbschr): Assume mbrtowc function.
43218         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43219         (mbscspn): Assume mbrtowc function.
43220         * lib/mbslen.c: Include mbuiter.h unconditionally.
43221         (mbslen): Assume mbrtowc function.
43222         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43223         (mbsncasecmp): Assume mbrtowc function.
43224         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43225         (mbsnlen): Assume mbrtowc function.
43226         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43227         (mbspbrk): Assume mbrtowc function.
43228         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43229         (mbspcasecmp): Assume mbrtowc function.
43230         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43231         (mbsrchr): Assume mbrtowc function.
43232         * lib/mbssep.c: Include mbuiter.h unconditionally.
43233         (mbssep): Assume mbrtowc function.
43234         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43235         (mbsspn): Assume mbrtowc function.
43236         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43237         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43238         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43239         (mbstok_r): Assume mbrtowc function.
43240         * lib/propername.c: Include mbuiter.h unconditionally.
43241         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43242         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43243         (trim2): Assume mbrtowc function.
43244         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43245         (mbsnwidth): Assume mbrtowc function.
43246         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43247         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43248         fallback definitions.
43249         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43250
43251 2008-12-22  Bruno Haible  <bruno@clisp.org>
43252
43253         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43254
43255 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43256
43257         * modules/regex: Request emulations for the mb*/wc* functions we need.
43258         * m4/regex.m4: Don't look for those functions here.
43259         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43260
43261 2008-12-22  Bruno Haible  <bruno@clisp.org>
43262
43263         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43264
43265 2008-12-21  Bruno Haible  <bruno@clisp.org>
43266
43267         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43268         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43269         (Include): Remove conditionalization.
43270         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43271         (Include): Remove conditionalization.
43272         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43273         (Include): Remove conditionalization.
43274         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43275         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43276         * NEWS: Mention the change.
43277         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43278         via Sergey Poznyakoff <gray@gnu.org.ua>.
43279
43280 2008-12-21  Bruno Haible  <bruno@clisp.org>
43281
43282         * MODULES.html.sh (Extended multibyte and wide character utilities
43283         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43284         wcrtomb, wcsrtombs.
43285         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43286         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43287         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43288         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43289
43290 2008-12-21  Bruno Haible  <bruno@clisp.org>
43291
43292         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43293
43294 2008-12-21  Bruno Haible  <bruno@clisp.org>
43295
43296         * modules/wcsnrtombs-tests: New file.
43297         * tests/test-wcsnrtombs1.sh: New file.
43298         * tests/test-wcsnrtombs2.sh: New file.
43299         * tests/test-wcsnrtombs3.sh: New file.
43300         * tests/test-wcsnrtombs4.sh: New file.
43301         * tests/test-wcsnrtombs.c: New file.
43302
43303         New module 'wcsnrtombs'.
43304         * lib/wchar.in.h (wcsnrtombs): New declaration.
43305         * lib/wcsnrtombs.c: New file.
43306         * lib/wcsrtombs-state.c: New file.
43307         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43308         (internal_state): Remove variable.
43309         * m4/wcsnrtombs.m4: New file.
43310         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43311         compilation units.
43312         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43313         HAVE_WCSNRTOMBS.
43314         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43315         HAVE_WCSNRTOMBS.
43316         * modules/wcsnrtombs: New file.
43317         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43318         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43319
43320 2008-12-21  Bruno Haible  <bruno@clisp.org>
43321
43322         * modules/wcsrtombs-tests: New file.
43323         * tests/test-wcsrtombs1.sh: New file.
43324         * tests/test-wcsrtombs2.sh: New file.
43325         * tests/test-wcsrtombs3.sh: New file.
43326         * tests/test-wcsrtombs4.sh: New file.
43327         * tests/test-wcsrtombs.c: New file.
43328
43329         New module 'wcsrtombs'.
43330         * lib/wchar.in.h (wcsrtombs): New declaration.
43331         * lib/wcsrtombs.c: New file.
43332         * m4/wcsrtombs.m4: New file.
43333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43334         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43335         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43336         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43337         * modules/wcsrtombs: New file.
43338         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43339         bugs.
43340
43341 2008-12-21  Bruno Haible  <bruno@clisp.org>
43342
43343         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43344         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43345         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43346         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43347         if not correct.
43348         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43349         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43350         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43351         m4/locale-zh.m4, m4/codeset.m4.
43352         * doc/posix-functions/wcrtomb.texi: Document the bug.
43353
43354 2008-12-21  Bruno Haible  <bruno@clisp.org>
43355
43356         Work around a btowc() bug on IRIX 6.5.
43357         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43358         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43359         REPLACE_WTOBC if not.
43360         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43361         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43362         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43363
43364 2008-12-21  Bruno Haible  <bruno@clisp.org>
43365
43366         * modules/wcrtomb-tests: New file.
43367         * tests/test-wcrtomb.sh: New file.
43368         * tests/test-wcrtomb.c: New file.
43369
43370         New module 'wcrtomb'.
43371         * lib/wchar.in.h (wcrtomb): New declaration.
43372         * lib/wcrtomb.c: New file.
43373         * m4/wcrtomb.m4: New file.
43374         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43375         HAVE_WCRTOMB.
43376         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43377         HAVE_WCRTOMB.
43378         * modules/wcrtomb: New file.
43379         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43380
43381 2008-12-21  Bruno Haible  <bruno@clisp.org>
43382
43383         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43384         * modules/mbsrtowcs (Files): Likewise.
43385         * modules/wctob (Files): Likewise.
43386         * modules/c-strcase-tests (Files): Likewise.
43387         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43388         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43389         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43390         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43391         * modules/vasnprintf-posix-tests (Files): Likewise.
43392
43393 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43394
43395         gitlog-to-changelog: pass all command-line arguments to git-log
43396         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43397         it is sometimes convenient to filter the commits in various ways.
43398         gitlog-to-changelog only allows --since to specify a start date,
43399         but git-log itself supports many other filtering mechanisms.
43400         At the moment, I want to filter by branch name.  Rather than
43401         adding a --branch option to gitlog-to-changelog, it seems more
43402         flexible to simply pass all options directly to git-log and let
43403         git do the work.  Notice that this effectively makes --since a
43404         redundant option for gitlog-to-changelog, but removing it would
43405         require current usage to change since calls would then require
43406         an additional '--'.
43407
43408 2008-12-21  Bruno Haible  <bruno@clisp.org>
43409
43410         * modules/mbsnrtowcs-tests: New file.
43411         * tests/test-mbsnrtowcs1.sh: New file.
43412         * tests/test-mbsnrtowcs2.sh: New file.
43413         * tests/test-mbsnrtowcs3.sh: New file.
43414         * tests/test-mbsnrtowcs4.sh: New file.
43415         * tests/test-mbsnrtowcs.c: New file.
43416
43417         New module 'mbsnrtowcs'.
43418         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43419         * lib/mbsnrtowcs.c: New file.
43420         * lib/mbsrtowcs-state.c: New file.
43421         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43422         (internal_state): Remove variable.
43423         * m4/mbsnrtowcs.m4: New file.
43424         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43425         compilation units.
43426         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43427         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43428         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43429         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43430         * modules/mbsnrtowcs: New file.
43431         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43432         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43433         portability problem.
43434
43435 2008-12-21  Bruno Haible  <bruno@clisp.org>
43436
43437         Work around mbsrtowcs bug.
43438         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43439         (gl_FUNC_MBSRTOWCS): Invoke it.
43440         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43441         m4/locale-zh.m4.
43442         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43443
43444 2008-12-21  Bruno Haible  <bruno@clisp.org>
43445
43446         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43447
43448 2008-12-21  Bruno Haible  <bruno@clisp.org>
43449
43450         Update doc for AIX.
43451         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43452         16-bit wchar_t type.
43453         * doc/posix-functions/btowc.texi: Likewise.
43454         * doc/posix-functions/fgetwc.texi: Likewise.
43455         * doc/posix-functions/fgetws.texi: Likewise.
43456         * doc/posix-functions/fputwc.texi: Likewise.
43457         * doc/posix-functions/fputws.texi: Likewise.
43458         * doc/posix-functions/fwide.texi: Likewise.
43459         * doc/posix-functions/fwprintf.texi: Likewise.
43460         * doc/posix-functions/fwscanf.texi: Likewise.
43461         * doc/posix-functions/getwchar.texi: Likewise.
43462         * doc/posix-functions/getwc.texi: Likewise.
43463         * doc/posix-functions/iswalnum.texi: Likewise.
43464         * doc/posix-functions/iswalpha.texi: Likewise.
43465         * doc/posix-functions/iswblank.texi: Likewise.
43466         * doc/posix-functions/iswcntrl.texi: Likewise.
43467         * doc/posix-functions/iswctype.texi: Likewise.
43468         * doc/posix-functions/iswdigit.texi: Likewise.
43469         * doc/posix-functions/iswgraph.texi: Likewise.
43470         * doc/posix-functions/iswlower.texi: Likewise.
43471         * doc/posix-functions/iswprint.texi: Likewise.
43472         * doc/posix-functions/iswpunct.texi: Likewise.
43473         * doc/posix-functions/iswspace.texi: Likewise.
43474         * doc/posix-functions/iswupper.texi: Likewise.
43475         * doc/posix-functions/iswxdigit.texi: Likewise.
43476         * doc/posix-functions/mbrtowc.texi: Likewise.
43477         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43478         * doc/posix-functions/mbstowcs.texi: Likewise.
43479         * doc/posix-functions/mbtowc.texi: Likewise.
43480         * doc/posix-functions/putwchar.texi: Likewise.
43481         * doc/posix-functions/putwc.texi: Likewise.
43482         * doc/posix-functions/swprintf.texi: Likewise.
43483         * doc/posix-functions/tolower.texi: Likewise.
43484         * doc/posix-functions/toupper.texi: Likewise.
43485         * doc/posix-functions/towctrans.texi: Likewise.
43486         * doc/posix-functions/ungetwc.texi: Likewise.
43487         * doc/posix-functions/vswprintf.texi: Likewise.
43488         * doc/posix-functions/wcrtomb.texi: Likewise.
43489         * doc/posix-functions/wcscat.texi: Likewise.
43490         * doc/posix-functions/wcschr.texi: Likewise.
43491         * doc/posix-functions/wcscmp.texi: Likewise.
43492         * doc/posix-functions/wcscoll.texi: Likewise.
43493         * doc/posix-functions/wcscpy.texi: Likewise.
43494         * doc/posix-functions/wcscspn.texi: Likewise.
43495         * doc/posix-functions/wcsftime.texi: Likewise.
43496         * doc/posix-functions/wcslen.texi: Likewise.
43497         * doc/posix-functions/wcsncat.texi: Likewise.
43498         * doc/posix-functions/wcsncmp.texi: Likewise.
43499         * doc/posix-functions/wcsncpy.texi: Likewise.
43500         * doc/posix-functions/wcspbrk.texi: Likewise.
43501         * doc/posix-functions/wcsrchr.texi: Likewise.
43502         * doc/posix-functions/wcsrtombs.texi: Likewise.
43503         * doc/posix-functions/wcsspn.texi: Likewise.
43504         * doc/posix-functions/wcsstr.texi: Likewise.
43505         * doc/posix-functions/wcstod.texi: Likewise.
43506         * doc/posix-functions/wcstof.texi: Likewise.
43507         * doc/posix-functions/wcstoimax.texi: Likewise.
43508         * doc/posix-functions/wcstok.texi: Likewise.
43509         * doc/posix-functions/wcstold.texi: Likewise.
43510         * doc/posix-functions/wcstoll.texi: Likewise.
43511         * doc/posix-functions/wcstol.texi: Likewise.
43512         * doc/posix-functions/wcstombs.texi: Likewise.
43513         * doc/posix-functions/wcstoull.texi: Likewise.
43514         * doc/posix-functions/wcstoul.texi: Likewise.
43515         * doc/posix-functions/wcstoumax.texi: Likewise.
43516         * doc/posix-functions/wcswidth.texi: Likewise.
43517         * doc/posix-functions/wcsxfrm.texi: Likewise.
43518         * doc/posix-functions/wctob.texi: Likewise.
43519         * doc/posix-functions/wctomb.texi: Likewise.
43520         * doc/posix-functions/wctrans.texi: Likewise.
43521         * doc/posix-functions/wctype.texi: Likewise.
43522         * doc/posix-functions/wcwidth.texi: Likewise.
43523         * doc/posix-functions/wmemchr.texi: Likewise.
43524         * doc/posix-functions/wmemcmp.texi: Likewise.
43525         * doc/posix-functions/wmemcpy.texi: Likewise.
43526         * doc/posix-functions/wmemmove.texi: Likewise.
43527         * doc/posix-functions/wmemset.texi: Likewise.
43528         * doc/posix-functions/wprintf.texi: Likewise.
43529         * doc/posix-functions/wscanf.texi: Likewise.
43530
43531 2008-12-21  Bruno Haible  <bruno@clisp.org>
43532
43533         Update doc for HP-UX 11.11.
43534         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43535         in HP-UX version 11.00, not in all versions of HP-UX 11.
43536         * doc/posix-functions/fwide.texi: Likewise.
43537         * doc/posix-functions/fwprintf.texi: Likewise.
43538         * doc/posix-functions/fwscanf.texi: Likewise.
43539         * doc/posix-functions/inet_ntop.texi: Likewise.
43540         * doc/posix-functions/inet_pton.texi: Likewise.
43541         * doc/posix-functions/mbrlen.texi: Likewise.
43542         * doc/posix-functions/mbrtowc.texi: Likewise.
43543         * doc/posix-functions/mbsinit.texi: Likewise.
43544         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43545         * doc/posix-functions/swprintf.texi: Likewise.
43546         * doc/posix-functions/swscanf.texi: Likewise.
43547         * doc/posix-functions/towctrans.texi: Likewise.
43548         * doc/posix-functions/vfwprintf.texi: Likewise.
43549         * doc/posix-functions/vswprintf.texi: Likewise.
43550         * doc/posix-functions/vwprintf.texi: Likewise.
43551         * doc/posix-functions/wcrtomb.texi: Likewise.
43552         * doc/posix-functions/wcsrtombs.texi: Likewise.
43553         * doc/posix-functions/wcsstr.texi: Likewise.
43554         * doc/posix-functions/wctob.texi: Likewise.
43555         * doc/posix-functions/wctrans.texi: Likewise.
43556         * doc/posix-functions/wmemchr.texi: Likewise.
43557         * doc/posix-functions/wmemcmp.texi: Likewise.
43558         * doc/posix-functions/wmemcpy.texi: Likewise.
43559         * doc/posix-functions/wmemmove.texi: Likewise.
43560         * doc/posix-functions/wmemset.texi: Likewise.
43561         * doc/posix-functions/wprintf.texi: Likewise.
43562         * doc/posix-functions/wscanf.texi: Likewise.
43563
43564 2008-12-21  Bruno Haible  <bruno@clisp.org>
43565
43566         Work around a portability problem.
43567         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43568         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43569
43570 2008-12-20  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43573         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43574         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43575         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43576         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43577
43578         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43579         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43580         set.
43581         (GNULIB_defined_mbstate_t): New macro.
43582         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43583         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43584         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43585         reuses the system's mbrtowc function but works around the bugs.
43586         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43587         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43588         macros.
43589         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43590         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43591         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43592         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43593         REPLACE_MBSINIT if mbsinit needs to be overridden.
43594         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43595         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43596         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43597         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43598         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43599         m4/locale-zh.m4.
43600         (Depends): Add mbsinit.
43601         * modules/mbsinit (Depends): Add mbrtowc.
43602         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43603
43604 2008-12-20  Bruno Haible  <bruno@clisp.org>
43605
43606         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43607         so that there are no conversion errors on AIX.
43608         * tests/test-mbsrtowcs.c (main): LIkewise.
43609
43610 2008-12-20  Bruno Haible  <bruno@clisp.org>
43611
43612         Work around wctob bug on Solaris <= 9.
43613         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43614         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43615         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43616         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43617         * modules/wctob (Files): Add m4/locale-fr.m4.
43618         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43619
43620 2008-12-20  Bruno Haible  <bruno@clisp.org>
43621
43622         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43623         /dev/null.
43624         * tests/test-select-in.sh: Likewise.
43625         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43626
43627 2008-12-20  Bruno Haible  <bruno@clisp.org>
43628
43629         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43630         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43631         Cygwin 1.5.x.
43632
43633 2008-12-20  Bruno Haible  <bruno@clisp.org>
43634
43635         Ensure mbstate_t is defined on HP-UX 11.11.
43636         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43637         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43638         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43639         AC_USE_SYSTEM_EXTENSIONS.
43640         * modules/fnmatch (Depends-on): Add extensions.
43641         * modules/mbrlen (Depends-on): Likewise.
43642         * modules/mbrtowc (Depends-on): Likewise.
43643         * modules/mbsinit (Depends-on): Likewise.
43644         * modules/mbsrtowcs (Depends-on): Likewise.
43645         * modules/mbswidth (Depends-on): Likewise.
43646         * modules/quotearg (Depends-on): Likewise.
43647         * modules/strftime (Depends-on): Likewise.
43648
43649 2008-12-20  Bruno Haible  <bruno@clisp.org>
43650
43651         Ensure wctob is declared on IRIX 6.5.
43652         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43653         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43654         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43655         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43656         of HAVE_WCTOB.
43657         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43658         HAVE_WCTOB.
43659         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43660
43661 2008-12-19  Bruno Haible  <bruno@clisp.org>
43662
43663         * modules/mbsrtowcs-tests: New file.
43664         * tests/test-mbsrtowcs1.sh: New file.
43665         * tests/test-mbsrtowcs2.sh: New file.
43666         * tests/test-mbsrtowcs3.sh: New file.
43667         * tests/test-mbsrtowcs4.sh: New file.
43668         * tests/test-mbsrtowcs.c: New file.
43669
43670         New module 'mbsrtowcs'.
43671         * lib/wchar.in.h (mbsrtowcs): New declaration.
43672         * lib/mbsrtowcs.c: New file.
43673         * m4/mbsrtowcs.m4: New file.
43674         * modules/mbsrtowcs: New file.
43675         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43676         HAVE_MBSRTOWCS.
43677         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43678         HAVE_MBSRTOWCS.
43679         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43680
43681 2008-12-19  Bruno Haible  <bruno@clisp.org>
43682
43683         New module 'mbrlen'.
43684         * lib/wchar.in.h (mbrlen): New declaration.
43685         * lib/mbrlen.c: New file.
43686         * m4/mbrlen.m4: New file.
43687         * modules/mbrlen: New file.
43688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43689         HAVE_MBRLEN.
43690         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43691         HAVE_MBRLEN.
43692         * doc/posix-functions/mbrlen.texi: Document the new module.
43693
43694 2008-12-19  Bruno Haible  <bruno@clisp.org>
43695
43696         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43697         * modules/mbrtowc (Depends-on): Add verify.
43698         Suggested by Paul Eggert.
43699
43700 2008-12-18  Bruno Haible  <bruno@clisp.org>
43701
43702         * modules/mbsinit-tests: New file.
43703         * tests/test-mbsinit.sh: New file.
43704         * tests/test-mbsinit.c: New file.
43705
43706 2008-12-18  Bruno Haible  <bruno@clisp.org>
43707
43708         * modules/mbrtowc-tests: New file.
43709         * tests/test-mbrtowc1.sh: New file.
43710         * tests/test-mbrtowc2.sh: New file.
43711         * tests/test-mbrtowc3.sh: New file.
43712         * tests/test-mbrtowc4.sh: New file.
43713         * tests/test-mbrtowc.c: New file.
43714
43715         New module 'mbrtowc'.
43716         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43717         mbsinit and mbrtowc.
43718         (mbrtowc): New declaration.
43719         * lib/mbrtowc.c: New file.
43720         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43721         * modules/mbrtowc: New file.
43722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43723         HAVE_MBRTOWC.
43724         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43725         HAVE_MBRTOWC.
43726         * doc/posix-functions/mbrtowc.texi: Document the new module.
43727
43728 2008-12-18  Bruno Haible  <bruno@clisp.org>
43729
43730         New module 'wctob'.
43731         * lib/wchar.in.h (wctob): New declaration.
43732         * lib/wctob.c: New file.
43733         * m4/wctob.m4: New file.
43734         * modules/wctob: New file.
43735         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43736         HAVE_WCTOB.
43737         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43738         * doc/posix-functions/wctob.texi: Document the new module.
43739
43740 2008-12-18  Bruno Haible  <bruno@clisp.org>
43741
43742         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43743         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43744
43745 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43746
43747         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43748         G. Christensen" <tgc@jupiterrise.com>.
43749
43750         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43751         G. Christensen" <tgc@jupiterrise.com>.
43752
43753         * lib/flock.c: Need to include string.h.  Reported by "Tom
43754         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43755         <ebb9@byu.net>.
43756
43757 2008-12-18  Bruno Haible  <bruno@clisp.org>
43758
43759         * m4/locale-ja.m4: New file, from GNU gettext.
43760
43761 2008-12-17  Bruno Haible  <bruno@clisp.org>
43762
43763         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43764         Suggested by Eric Blake.
43765
43766 2008-12-17  Bruno Haible  <bruno@clisp.org>
43767
43768         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43769
43770 2008-12-17  Bruno Haible  <bruno@clisp.org>
43771
43772         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43773         * modules/mbsinit (Depends-on): Add verify.
43774         Suggested by Paul Eggert.
43775
43776 2008-12-17  Bruno Haible  <bruno@clisp.org>
43777
43778         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43779         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43780         gl_FUNC_MBRTOWC.
43781         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43782         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43783         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43784         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43785         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43786         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43787         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43788         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43789         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43790         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43791         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43792         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43793         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43794         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43795         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43796         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43797         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43798         * modules/trim (configure.ac): Likewise.
43799
43800 2008-12-17  Bruno Haible  <bruno@clisp.org>
43801
43802         * modules/btowc-tests: New file.
43803         * tests/test-btowc1.sh: New file.
43804         * tests/test-btowc2.sh: New file.
43805         * tests/test-btowc.c: New file.
43806
43807         New module 'btowc'.
43808         * lib/wchar.in.h (btowc): New declaration.
43809         * lib/btowc.c: New file.
43810         * m4/btowc.m4: New file.
43811         * modules/btowc: New file.
43812         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43813         HAVE_BTOWC.
43814         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43815         * doc/posix-functions/btowc.texi: Document the new module.
43816
43817 2008-12-17  Bruno Haible  <bruno@clisp.org>
43818
43819         New module 'mbsinit'.
43820         * lib/wchar.in.h (mbsinit): New declaration.
43821         * lib/mbsinit.c: New file.
43822         * m4/mbsinit.m4: New file.
43823         * modules/mbsinit: New file.
43824         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43825         HAVE_MBSINIT.
43826         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43827         HAVE_MBSINIT.
43828         * doc/posix-functions/mbsinit.texi: Document the new module.
43829
43830 2008-12-16  Bruno Haible  <bruno@clisp.org>
43831
43832         * lib/unistd.in.h: Add comment.
43833         * tests/test-environ.c: Don't include <stdlib.h>.
43834
43835 2008-12-16  Bruno Haible  <bruno@clisp.org>
43836
43837         * lib/parse-duration.h (parse_duration): Document return value
43838         convention.
43839         * lib/parse-duration.c: Include specification header first. Add
43840         comments.
43841         (_): Remove macro.
43842         (parse_year_month_day, parse_hour_minute_second): Move side effects
43843         outside of strchr call.
43844         (parse_non_iso8601): Move side effects outside of isspace call.
43845         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43846         call.
43847
43848 2008-12-16  Bruno Haible  <bruno@clisp.org>
43849
43850         * tests/test-parse-duration.sh: Produce no output when the test
43851         succeeds.
43852
43853 2008-12-16  Bruno Haible  <bruno@clisp.org>
43854
43855         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43856         expressions.
43857
43858 2008-12-15  Bruno Haible  <bruno@clisp.org>
43859
43860         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43861         * doc/glibc-functions/flistxattr.texi: Likewise.
43862         * doc/glibc-functions/fopencookie.texi: Likewise.
43863         * doc/glibc-functions/fremovexattr.texi: Likewise.
43864         * doc/glibc-functions/fsetxattr.texi: Likewise.
43865         * doc/glibc-functions/getxattr.texi: Likewise.
43866         * doc/glibc-functions/lgetxattr.texi: Likewise.
43867         * doc/glibc-functions/listxattr.texi: Likewise.
43868         * doc/glibc-functions/llistxattr.texi: Likewise.
43869         * doc/glibc-functions/lremovexattr.texi: Likewise.
43870         * doc/glibc-functions/lsetxattr.texi: Likewise.
43871         * doc/glibc-functions/removexattr.texi: Likewise.
43872         * doc/glibc-functions/setxattr.texi: Likewise.
43873         * doc/posix-functions/open_memstream.texi: Likewise.
43874
43875 2008-12-15  Eric Blake  <ebb9@byu.net>
43876
43877         Update doc for cygwin 1.7.
43878         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43879         functions.
43880         * doc/posix-functions/fchmodat.texi: Likewise.
43881         * doc/posix-functions/fchownat.texi: Likewise.
43882         * doc/posix-functions/fdopendir.texi: Likewise.
43883         * doc/posix-functions/fmemopen.texi: Likewise.
43884         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43885         * doc/posix-functions/fstatat.texi: Likewise.
43886         * doc/posix-functions/futimens.texi: Likewise.
43887         * doc/posix-functions/gai_strerror.texi: Likewise.
43888         * doc/posix-functions/getaddrinfo.texi: Likewise.
43889         * doc/posix-functions/getnameinfo.texi: Likewise.
43890         * doc/posix-functions/if_freenameindex.texi: Likewise.
43891         * doc/posix-functions/if_indextoname.texi: Likewise.
43892         * doc/posix-functions/if_nameindex.texi: Likewise.
43893         * doc/posix-functions/if_nametoindex.texi: Likewise.
43894         * doc/posix-functions/insque.texi: Likewise.
43895         * doc/posix-functions/linkat.texi: Likewise.
43896         * doc/posix-functions/llrint.texi: Likewise.
43897         * doc/posix-functions/llrintf.texi: Likewise.
43898         * doc/posix-functions/llrintl.texi: Likewise.
43899         * doc/posix-functions/lockf.texi: Likewise.
43900         * doc/posix-functions/lrintl.texi: Likewise.
43901         * doc/posix-functions/mkdirat.texi: Likewise.
43902         * doc/posix-functions/mkfifoat.texi: Likewise.
43903         * doc/posix-functions/mknodat.texi: Likewise.
43904         * doc/posix-functions/mq_close.texi: Likewise.
43905         * doc/posix-functions/mq_getattr.texi: Likewise.
43906         * doc/posix-functions/mq_notify.texi: Likewise.
43907         * doc/posix-functions/mq_open.texi: Likewise.
43908         * doc/posix-functions/mq_receive.texi: Likewise.
43909         * doc/posix-functions/mq_send.texi: Likewise.
43910         * doc/posix-functions/mq_setattr.texi: Likewise.
43911         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43912         * doc/posix-functions/mq_timedsend.texi: Likewise.
43913         * doc/posix-functions/mq_unlink.texi: Likewise.
43914         * doc/posix-functions/open_memstream.texi: Likewise.
43915         * doc/posix-functions/openat.texi: Likewise.
43916         * doc/posix-functions/posix_fadvise.texi: Likewise.
43917         * doc/posix-functions/posix_fallocate.texi: Likewise.
43918         * doc/posix-functions/posix_madvise.texi: Likewise.
43919         * doc/posix-functions/posix_memalign.texi: Likewise.
43920         * doc/posix-functions/posix_openpt.texi: Likewise.
43921         * doc/posix-functions/readlinkat.texi: Likewise.
43922         * doc/posix-functions/remque.texi: Likewise.
43923         * doc/posix-functions/renameat.texi: Likewise.
43924         * doc/posix-functions/rintl.texi: Likewise.
43925         * doc/posix-functions/sem_unlink.texi: Likewise.
43926         * doc/posix-functions/shm_open.texi: Likewise.
43927         * doc/posix-functions/shm_unlink.texi: Likewise.
43928         * doc/posix-functions/signgam.texi: Likewise.
43929         * doc/posix-functions/sigset.texi: Likewise.
43930         * doc/posix-functions/stpcpy.texi: Likewise.
43931         * doc/posix-functions/stpncpy.texi: Likewise.
43932         * doc/posix-functions/strerror.texi: Likewise.
43933         * doc/posix-functions/strtod.texi: Likewise.
43934         * doc/posix-functions/symlinkat.texi: Likewise.
43935         * doc/posix-functions/unlinkat.texi: Likewise.
43936         * doc/posix-functions/utimensat.texi: Likewise.
43937         * doc/glibc-functions/bindresvport.texi: Likewise.
43938         * doc/glibc-functions/dn_expand.texi: Likewise.
43939         * doc/glibc-functions/exp10.texi: Likewise.
43940         * doc/glibc-functions/exp10f.texi: Likewise.
43941         * doc/glibc-functions/fgetxattr.texi: Likewise.
43942         * doc/glibc-functions/flistxattr.texi: Likewise.
43943         * doc/glibc-functions/fopencookie.texi: Likewise.
43944         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43945         * doc/glibc-functions/fremovexattr.texi: Likewise.
43946         * doc/glibc-functions/fsetxattr.texi: Likewise.
43947         * doc/glibc-functions/getifaddrs.texi: Likewise.
43948         * doc/glibc-functions/getxattr.texi: Likewise.
43949         * doc/glibc-functions/lgetxattr.texi: Likewise.
43950         * doc/glibc-functions/listxattr.texi: Likewise.
43951         * doc/glibc-functions/llistxattr.texi: Likewise.
43952         * doc/glibc-functions/lremovexattr.texi: Likewise.
43953         * doc/glibc-functions/lsetxattr.texi: Likewise.
43954         * doc/glibc-functions/pow10.texi: Likewise.
43955         * doc/glibc-functions/pow10f.texi: Likewise.
43956         * doc/glibc-functions/rcmd_af.texi: Likewise.
43957         * doc/glibc-functions/removexattr.texi: Likewise.
43958         * doc/glibc-functions/res_init.texi: Likewise.
43959         * doc/glibc-functions/res_mkquery.texi: Likewise.
43960         * doc/glibc-functions/res_query.texi: Likewise.
43961         * doc/glibc-functions/res_querydomain.texi: Likewise.
43962         * doc/glibc-functions/res_send.texi: Likewise.
43963         * doc/glibc-functions/rresvport_af.texi: Likewise.
43964         * doc/glibc-functions/setxattr.texi: Likewise.
43965         * doc/glibc-functions/strcasestr.texi: Likewise.
43966
43967 2008-12-15  Bruno Haible  <bruno@clisp.org>
43968
43969         Fix compilation error on OSF/1 4.0.
43970         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43971         <sys/time.h>, simply delegate to the system header.
43972         Reported by Daniel Richard G. <oss@teragram.com>.
43973
43974 2008-12-15  Bruno Haible  <bruno@clisp.org>
43975
43976         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43977         * doc/posix-functions/fchmodat.texi: Likewise.
43978         * doc/posix-functions/fchownat.texi: Likewise.
43979         * doc/posix-functions/fdopendir.texi: Likewise.
43980         * doc/posix-functions/fstatat.texi: Likewise.
43981         * doc/posix-functions/mkdirat.texi: Likewise.
43982         * doc/posix-functions/unlinkat.texi: Likewise.
43983
43984 2008-12-14  Bruno Haible  <bruno@clisp.org>
43985
43986         Update doc for POSIX:2008.
43987         * doc/posix-functions/faccessat.texi: New file.
43988         * doc/posix-functions/fchmodat.texi: New file.
43989         * doc/posix-functions/fchownat.texi: New file.
43990         * doc/posix-functions/fdopendir.texi: New file.
43991         * doc/posix-functions/fstatat.texi: New file.
43992         * doc/posix-functions/futimens.texi: New file.
43993         * doc/posix-functions/linkat.texi: New file.
43994         * doc/posix-functions/mkdirat.texi: New file.
43995         * doc/posix-functions/mkfifoat.texi: New file.
43996         * doc/posix-functions/mknodat.texi: New file.
43997         * doc/posix-functions/open_wmemstream.texi: New file.
43998         * doc/posix-functions/openat.texi: New file.
43999         * doc/posix-functions/psiginfo.texi: New file.
44000         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44001         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44002         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44003         * doc/posix-functions/readlinkat.texi: New file.
44004         * doc/posix-functions/renameat.texi: New file.
44005         * doc/posix-functions/strerror_l.texi: New file.
44006         * doc/posix-functions/symlinkat.texi: New file.
44007         * doc/posix-functions/unlinkat.texi: New file.
44008         * doc/posix-functions/utimensat.texi: New file.
44009         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44010
44011 2008-12-14  Bruno Haible  <bruno@clisp.org>
44012
44013         Update doc for POSIX:2008.
44014         * doc/posix-functions/alphasort.texi: Renamed from
44015         doc/glibc-functions/alphasort.texi.
44016         * doc/posix-functions/dirfd.texi: Renamed from
44017         doc/glibc-functions/dirfd.texi.
44018         * doc/posix-functions/dprintf.texi: Renamed from
44019         doc/glibc-functions/dprintf.texi.
44020         * doc/posix-functions/duplocale.texi: Renamed from
44021         doc/glibc-functions/duplocale.texi.
44022         * doc/posix-functions/fexecve.texi: Renamed from
44023         doc/glibc-functions/fexecve.texi.
44024         * doc/posix-functions/fmemopen.texi: Renamed from
44025         doc/glibc-functions/fmemopen.texi.
44026         * doc/posix-functions/freelocale.texi: Renamed from
44027         doc/glibc-functions/freelocale.texi.
44028         * doc/posix-functions/getdate_err.texi: Renamed from
44029         doc/glibc-functions/getdate_err.texi.
44030         * doc/posix-functions/isalnum_l.texi: Renamed from
44031         doc/glibc-functions/isalnum_l.texi.
44032         * doc/posix-functions/isalpha_l.texi: Renamed from
44033         doc/glibc-functions/isalpha_l.texi.
44034         * doc/posix-functions/isblank_l.texi: Renamed from
44035         doc/glibc-functions/isblank_l.texi.
44036         * doc/posix-functions/iscntrl_l.texi: Renamed from
44037         doc/glibc-functions/iscntrl_l.texi.
44038         * doc/posix-functions/isdigit_l.texi: Renamed from
44039         doc/glibc-functions/isdigit_l.texi.
44040         * doc/posix-functions/isgraph_l.texi: Renamed from
44041         doc/glibc-functions/isgraph_l.texi.
44042         * doc/posix-functions/islower_l.texi: Renamed from
44043         doc/glibc-functions/islower_l.texi.
44044         * doc/posix-functions/isprint_l.texi: Renamed from
44045         doc/glibc-functions/isprint_l.texi.
44046         * doc/posix-functions/ispunct_l.texi: Renamed from
44047         doc/glibc-functions/ispunct_l.texi.
44048         * doc/posix-functions/isspace_l.texi: Renamed from
44049         doc/glibc-functions/isspace_l.texi.
44050         * doc/posix-functions/isupper_l.texi: Renamed from
44051         doc/glibc-functions/isupper_l.texi.
44052         * doc/posix-functions/iswalnum_l.texi: Renamed from
44053         doc/glibc-functions/iswalnum_l.texi.
44054         * doc/posix-functions/iswalpha_l.texi: Renamed from
44055         doc/glibc-functions/iswalpha_l.texi.
44056         * doc/posix-functions/iswblank_l.texi: Renamed from
44057         doc/glibc-functions/iswblank_l.texi.
44058         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44059         doc/glibc-functions/iswcntrl_l.texi.
44060         * doc/posix-functions/iswctype_l.texi: Renamed from
44061         doc/glibc-functions/iswctype_l.texi.
44062         * doc/posix-functions/iswdigit_l.texi: Renamed from
44063         doc/glibc-functions/iswdigit_l.texi.
44064         * doc/posix-functions/iswgraph_l.texi: Renamed from
44065         doc/glibc-functions/iswgraph_l.texi.
44066         * doc/posix-functions/iswlower_l.texi: Renamed from
44067         doc/glibc-functions/iswlower_l.texi.
44068         * doc/posix-functions/iswprint_l.texi: Renamed from
44069         doc/glibc-functions/iswprint_l.texi.
44070         * doc/posix-functions/iswpunct_l.texi: Renamed from
44071         doc/glibc-functions/iswpunct_l.texi.
44072         * doc/posix-functions/iswspace_l.texi: Renamed from
44073         doc/glibc-functions/iswspace_l.texi.
44074         * doc/posix-functions/iswupper_l.texi: Renamed from
44075         doc/glibc-functions/iswupper_l.texi.
44076         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44077         doc/glibc-functions/iswxdigit_l.texi.
44078         * doc/posix-functions/isxdigit_l.texi: Renamed from
44079         doc/glibc-functions/isxdigit_l.texi.
44080         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44081         doc/glibc-functions/mbsnrtowcs.texi.
44082         * doc/posix-functions/mkdtemp.texi: Renamed from
44083         doc/glibc-functions/mkdtemp.texi.
44084         * doc/posix-functions/newlocale.texi: Renamed from
44085         doc/glibc-functions/newlocale.texi.
44086         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44087         doc/glibc-functions/nl_langinfo_l.texi.
44088         * doc/posix-functions/open_memstream.texi: Renamed from
44089         doc/glibc-functions/open_memstream.texi.
44090         * doc/posix-functions/opterr.texi: Renamed from
44091         doc/glibc-functions/opterr.texi.
44092         * doc/posix-functions/optind.texi: Renamed from
44093         doc/glibc-functions/optind.texi.
44094         * doc/posix-functions/optopt.texi: Renamed from
44095         doc/glibc-functions/optopt.texi.
44096         * doc/posix-functions/psignal.texi: Renamed from
44097         doc/glibc-functions/psignal.texi.
44098         * doc/posix-functions/scandir.texi: Renamed from
44099         doc/glibc-functions/scandir.texi.
44100         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44101         doc/glibc-functions/sched_get_priority_min.texi.
44102         * doc/posix-functions/signgam.texi: Renamed from
44103         doc/glibc-functions/signgam.texi.
44104         * doc/posix-functions/stpcpy.texi: Renamed from
44105         doc/glibc-functions/stpcpy.texi.
44106         * doc/posix-functions/stpncpy.texi: Renamed from
44107         doc/glibc-functions/stpncpy.texi.
44108         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44109         doc/glibc-functions/strcasecmp_l.texi.
44110         * doc/posix-functions/strcoll_l.texi: Renamed from
44111         doc/glibc-functions/strcoll_l.texi.
44112         * doc/posix-functions/strfmon_l.texi: Renamed from
44113         doc/glibc-functions/strfmon_l.texi.
44114         * doc/posix-functions/strftime_l.texi: Renamed from
44115         doc/glibc-functions/strftime_l.texi.
44116         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44117         doc/glibc-functions/strncasecmp_l.texi.
44118         * doc/posix-functions/strndup.texi: Renamed from
44119         doc/glibc-functions/strndup.texi.
44120         * doc/posix-functions/strnlen.texi: Renamed from
44121         doc/glibc-functions/strnlen.texi.
44122         * doc/posix-functions/strsignal.texi: Renamed from
44123         doc/glibc-functions/strsignal.texi.
44124         * doc/posix-functions/strxfrm_l.texi: Renamed from
44125         doc/glibc-functions/strxfrm_l.texi.
44126         * doc/posix-functions/timer_gettime.texi: Renamed from
44127         doc/glibc-functions/timer_gettime.texi.
44128         * doc/posix-functions/tolower_l.texi: Renamed from
44129         doc/glibc-functions/tolower_l.texi.
44130         * doc/posix-functions/toupper_l.texi: Renamed from
44131         doc/glibc-functions/toupper_l.texi.
44132         * doc/posix-functions/towctrans_l.texi: Renamed from
44133         doc/glibc-functions/towctrans_l.texi.
44134         * doc/posix-functions/towlower_l.texi: Renamed from
44135         doc/glibc-functions/towlower_l.texi.
44136         * doc/posix-functions/towupper_l.texi: Renamed from
44137         doc/glibc-functions/towupper_l.texi.
44138         * doc/posix-functions/uselocale.texi: Renamed from
44139         doc/glibc-functions/uselocale.texi.
44140         * doc/posix-functions/vdprintf.texi: Renamed from
44141         doc/glibc-functions/vdprintf.texi.
44142         * doc/posix-functions/wcpcpy.texi:
44143         Renamed from doc/glibc-functions/wcpcpy.texi.
44144         * doc/posix-functions/wcpncpy.texi: Renamed from
44145         doc/glibc-functions/wcpncpy.texi.
44146         * doc/posix-functions/wcscasecmp.texi: Renamed from
44147         doc/glibc-functions/wcscasecmp.texi.
44148         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44149         doc/glibc-functions/wcscasecmp_l.texi.
44150         * doc/posix-functions/wcscoll_l.texi: Renamed from
44151         doc/glibc-functions/wcscoll_l.texi.
44152         * doc/posix-functions/wcsdup.texi: Renamed from
44153         doc/glibc-functions/wcsdup.texi.
44154         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44155         doc/glibc-functions/wcsncasecmp.texi.
44156         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44157         doc/glibc-functions/wcsncasecmp_l.texi.
44158         * doc/posix-functions/wcsnlen.texi: Renamed from
44159         doc/glibc-functions/wcsnlen.texi.
44160         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44161         doc/glibc-functions/wcsnrtombs.texi.
44162         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44163         doc/glibc-functions/wcsxfrm_l.texi.
44164         * doc/posix-functions/wctrans_l.texi: Renamed from
44165         doc/glibc-functions/wctrans_l.texi.
44166         * doc/posix-functions/wctype_l.texi: Renamed from
44167         doc/glibc-functions/wctype_l.texi.
44168         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44169         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44170         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44171         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44172         these subsections.
44173         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44174         Remove sections.
44175
44176 2008-12-14  Bruno Haible  <bruno@clisp.org>
44177
44178         Update doc for POSIX:2008.
44179         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44180
44181 2008-12-14  Bruno Haible  <bruno@clisp.org>
44182
44183         Update doc for POSIX:2008.
44184         * doc/pastposix-functions/bcmp.texi: Renamed from
44185         doc/posix-functions/bcmp.texi.
44186         * doc/pastposix-functions/bcopy.texi: Renamed from
44187         doc/posix-functions/bcopy.texi.
44188         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44189         doc/posix-functions/bsd_signal.texi.
44190         * doc/pastposix-functions/bzero.texi: Renamed from
44191         doc/posix-functions/bzero.texi.
44192         * doc/pastposix-functions/ecvt.texi: Renamed from
44193         doc/posix-functions/ecvt.texi.
44194         * doc/pastposix-functions/fcvt.texi: Renamed from
44195         doc/posix-functions/fcvt.texi.
44196         * doc/pastposix-functions/ftime.texi: Renamed from
44197         doc/posix-functions/ftime.texi.
44198         * doc/pastposix-functions/gcvt.texi: Renamed from
44199         doc/posix-functions/gcvt.texi.
44200         * doc/pastposix-functions/getcontext.texi: Renamed from
44201         doc/posix-functions/getcontext.texi.
44202         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44203         doc/posix-functions/gethostbyaddr.texi.
44204         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44205         doc/posix-functions/gethostbyname.texi.
44206         * doc/pastposix-functions/getwd.texi: Renamed from
44207         doc/posix-functions/getwd.texi.
44208         * doc/pastposix-functions/h_errno.texi: Renamed from
44209         doc/posix-functions/h_errno.texi.
44210         * doc/pastposix-functions/index.texi: Renamed from
44211         doc/posix-functions/index.texi.
44212         * doc/pastposix-functions/makecontext.texi: Renamed from
44213         doc/posix-functions/makecontext.texi.
44214         * doc/pastposix-functions/mktemp.texi: Renamed from
44215         doc/posix-functions/mktemp.texi.
44216         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44217         doc/posix-functions/pthread_attr_getstackaddr.texi.
44218         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44219         doc/posix-functions/pthread_attr_setstackaddr.texi.
44220         * doc/pastposix-functions/rindex.texi: Renamed from
44221         doc/posix-functions/rindex.texi.
44222         * doc/pastposix-functions/scalb.texi: Renamed from
44223         doc/posix-functions/scalb.texi.
44224         * doc/pastposix-functions/setcontext.texi: Renamed from
44225         doc/posix-functions/setcontext.texi.
44226         * doc/pastposix-functions/swapcontext.texi: Renamed from
44227         doc/posix-functions/swapcontext.texi.
44228         * doc/pastposix-functions/ualarm.texi: Renamed from
44229         doc/posix-functions/ualarm.texi.
44230         * doc/pastposix-functions/usleep.texi: Renamed from
44231         doc/posix-functions/usleep.texi.
44232         * doc/pastposix-functions/vfork.texi: Renamed from
44233         doc/posix-functions/vfork.texi.
44234         * doc/pastposix-functions/wcswcs.texi: Renamed from
44235         doc/posix-functions/wcswcs.texi.
44236         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44237         (Function Substitutes): Update.
44238
44239 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44240
44241         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44242         m4/strerror.m4.
44243
44244 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44245             Bruno Haible  <bruno@clisp.org>
44246
44247         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44248
44249 2008-12-13  Bruno Haible  <bruno@clisp.org>
44250
44251         * modules/strtoull (Depends-on): Remove unistd.
44252
44253 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44254
44255         * modules/strtoull (Depends-on): Add stdlib.
44256
44257 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44258
44259         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44260
44261 2008-12-10  Jim Meyering  <meyering@redhat.com>
44262
44263         gl_ASSERT: don't say assertions are disabled when they're not
44264         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44265         "checking whether to enable assertions... no", when they are in
44266         fact enabled.  This is solely a bug in the output of configure.
44267         In spite of saying "no", NDEBUG was not defined in that case.
44268         Also, as noted by Eric Blake, leave assertions enabled upon
44269         --enable-assert=INVALID.
44270
44271 2008-12-10  Bruno Haible  <bruno@clisp.org>
44272
44273         Change MODULES.html to refer to POSIX:2008 where possible.
44274         * MODULES.html.sh (POSIX2008_URL): New variable.
44275         (posix_headers): Remove sys/timeb, ucontext.
44276         (posix2001_headers): New variable.
44277         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44278         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44279         index, makecontext, mktemp, pthread_attr_getstackaddr,
44280         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44281         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44282         (posix2001_functions): New variable.
44283         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44284         otherwise.
44285
44286 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44287
44288         add missing include to parse-duration.c
44289         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44290         * modules/parse-duration (Depends-on): Add xalloc.
44291
44292         fix sed script reading maint.mk
44293         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44294         (syntax-check-rules): Use it.
44295
44296 2008-12-09  Bruno Haible  <bruno@clisp.org>
44297
44298         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44299         MacOS X 10.4/PowerPC.
44300         Reported by Simon Josefsson.
44301
44302 2008-12-08  Jim Meyering  <meyering@redhat.com>
44303
44304         work around mingw's lack of some S_IF definitions
44305         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44306         Reported by Simon Josefsson.
44307
44308 2008-12-08  Bruno Haible  <bruno@clisp.org>
44309
44310         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44311         applied to variables. Needed on MacOS X 10.4/PowerPC.
44312         Reported by Simon Josefsson.
44313
44314 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44315         and Eric Blake  <ebb9@byu.net>
44316
44317         assert: honor --enable-assert
44318         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44319         order to honor --enable-assert, rather than treating it as a
44320         synonym for --disable-assert.
44321
44322 2008-12-08  Jim Meyering  <meyering@redhat.com>
44323
44324         * lib/posixtm.c: Remove now-useless declaration of mktime.
44325
44326         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44327
44328 2008-12-07  Bruno Haible  <bruno@clisp.org>
44329
44330         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44331         test_once): Mark functions as static.
44332         * tests/test-tls.c (test_tls): Likewise.
44333
44334 2008-12-07  Bruno Haible  <bruno@clisp.org>
44335
44336         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44337         iconv_register_autodetect.
44338
44339 2008-12-07  Jim Meyering  <meyering@redhat.com>
44340
44341         posixtm.c: avoid a warning
44342         * lib/posixtm.c (posixtime): Don't initialize tm0.
44343         It's no longer needed to placate gcc4's -Wuninitialized,
44344         and the attempt to placate would elicit a new warning.
44345
44346         unicodeio.c: mark unused parameters
44347         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44348         (fallback_failure_callback): Likewise.
44349
44350 2008-12-07  Bruno Haible  <bruno@clisp.org>
44351
44352         * gnulib-tool (func_create_testdir): When building the tests
44353         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44354         Reported by Simon Josefsson.
44355
44356 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44357
44358         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44359
44360 2008-12-06  Bruno Haible  <bruno@clisp.org>
44361
44362         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44363         Suggested by Eric Blake.
44364
44365 2008-12-06  Bruno Haible  <bruno@clisp.org>
44366
44367         Fix a c-stack test failure on MacOS X.
44368         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44369         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44370         handler for SIGBUS as well.
44371         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44372         install a signal handler for SIGBUS as well.
44373         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44374
44375 2008-12-06  Bruno Haible  <bruno@clisp.org>
44376
44377         Advocacy documentation.
44378         * doc/gnulib-intro.texi (Benefits): New section.
44379         * doc/gnulib.texi: Update.
44380
44381 2008-12-06  Bruno Haible  <bruno@clisp.org>
44382
44383         Document the 'manywarnings' module.
44384         * doc/manywarnings.texi: New file.
44385         * doc/gnulib.texi: Include it.
44386
44387 2008-12-05  Eric Blake  <ebb9@byu.net>
44388
44389         tests: silence some gcc warnings
44390         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44391         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44392         type mismatches.
44393
44394 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44395             Bruno Haible  <bruno@clisp.org>
44396
44397         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44398
44399 2008-11-29  Jim Meyering  <meyering@redhat.com>
44400
44401         unicodeio.c: mark unused parameters
44402         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44403         (fallback_failure_callback): Likewise.
44404
44405         fts: fix a thinko
44406         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44407         (set_stat_type): Return S_IF*-valued "type" directly.
44408         Prompted by James Youngman's spotting a related bug.
44409         Confirmed by further testing through find.
44410
44411         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44412         * lib/fts.c (D_TYPE): Define.
44413         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44414         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44415         (s_ifmt_shift_bits): New function.
44416         (set_stat_type): New function.
44417         (fts_build): When not calling fts_stat, call set_stat_type
44418         to propagate dirent.d_type info to fts_read caller.
44419         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44420         fts_statp->st_mode type information may be valid.
44421
44422 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44423
44424         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44425         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44426         <sds@gnu.org>.
44427
44428 2008-11-20  Bruno Haible  <bruno@clisp.org>
44429
44430         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44431         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44432         INCLUDE_NEXT.
44433         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44434         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44435         * modules/math (Makefile.am): Substitute
44436         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44437         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44438
44439 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44440             Bruno Haible  <bruno@clisp.org>
44441
44442         * lib/stdint.in.h: Define all type macros so that their expansion is
44443         a single typedef'ed token. Fixes a compilation failure in Boost which
44444         does "using ::int8_t;".
44445
44446 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44447
44448         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44449         gl_MANYWARN_ALL_GCC.
44450         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44451         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44452         * modules/manywarnings: New file.
44453         * MODULES.html.sh: Mention manywarnings module.
44454
44455 2008-11-18  Bruno Haible  <bruno@clisp.org>
44456
44457         * doc/gnulib-tool.texi (Unit tests): New section.
44458
44459 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44460
44461         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44462         paths like 'lib/po/foo.po'.
44463
44464 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44465
44466         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44467         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44468
44469 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44470
44471         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44472         parameter works.
44473
44474 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44475
44476         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44477
44478 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44479
44480         * modules/parse-duration-tests: New file.
44481         * tests/test-parse-duration.sh: New file.
44482         * tests/test-parse-duration.c: New file.
44483
44484         New module 'parse-duration'.
44485         * lib/parse-duration.h: New file.
44486         * lib/parse-duration.c: New file.
44487         * modules/parse-duration: New file.
44488
44489 2008-11-17  Bruno Haible  <bruno@clisp.org>
44490
44491         * tests/test-select-out.sh: Comment out the first pipe test.
44492         Reported by Simon Josefsson.
44493
44494 2008-11-17  Bruno Haible  <bruno@clisp.org>
44495
44496         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44497         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44498         gl_HOSTENT.
44499
44500 2008-11-17  Bruno Haible  <bruno@clisp.org>
44501
44502         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44503         -lnetwork and -lnet. Needed for Haiku and BeOS.
44504
44505 2008-11-16  Bruno Haible  <bruno@clisp.org>
44506
44507         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44508
44509 2008-11-16  Bruno Haible  <bruno@clisp.org>
44510
44511         Avoid test failure on Haiku.
44512         * tests/test-fsync.c: Include <errno.h>.
44513         (main): Don't require that fsync (0) fails.
44514
44515 2008-11-15  Bruno Haible  <bruno@clisp.org>
44516
44517         New module 'hostent'.
44518         * modules/hostent: New file.
44519         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44520
44521 2008-11-15  Bruno Haible  <bruno@clisp.org>
44522
44523         New module 'servent'.
44524         * modules/servent: New file.
44525         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44526
44527 2008-11-15  Bruno Haible  <bruno@clisp.org>
44528
44529         Avoid generating same test program with two different rules.
44530         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44531         test-frexp to test-frexp-nolibm.
44532         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44533         test-frexpl to test-frexpl-nolibm.
44534
44535 2008-11-15  Bruno Haible  <bruno@clisp.org>
44536
44537         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44538         $(FREXPL_LIBM).
44539
44540 2008-11-15  Bruno Haible  <bruno@clisp.org>
44541
44542         * lib/netdb.in.h: Activate the definitions also when the system's
44543         <netdb.h> has 'struct addrinfo'.
44544         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44545         EAI_OVERFLOW or AI_NUMERICSERV.
44546         * doc/posix-headers/netdb.texi: Document the problem.
44547
44548 2008-11-15  Bruno Haible  <bruno@clisp.org>
44549
44550         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44551
44552         Make the 'sched' module work on platforms where <sched.h> exists but
44553         is incomplete (such as Haiku).
44554         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44555         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44556         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44557         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44558         HAVE_STRUCT_SCHED_PARAM.
44559         * modules/sched (Depends-on): Add include_next.
44560         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44561         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44562         * doc/posix-headers/sched.texi: Document the issue.
44563
44564 2008-11-13  Jim Meyering  <meyering@redhat.com>
44565
44566         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44567         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44568         test would fail due to the difference in the Report bugs to ...
44569         line.  The expected address is empty, "<>", while the actual
44570         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44571
44572 2008-11-12  Bruno Haible  <bruno@clisp.org>
44573
44574         lstat: don't compile lstat.c on systems lacking lstat
44575         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44576         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44577         Reported by Daniel P. Berrange via Jim Meyering.
44578
44579 2008-11-12  Jim Meyering  <meyering@redhat.com>
44580
44581         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44582
44583 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44584
44585         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44586         instead.
44587
44588 2008-11-12  Bruno Haible  <bruno@clisp.org>
44589
44590         * lib/unicodeio.c: Include unistr.h.
44591         (utf8_wctomb): Remove function.
44592         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44593
44594 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44595
44596         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44597         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44598         <bruno@clisp.org>.
44599         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44600
44601 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44602
44603         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44604         * doc/gnulib.texi: Add section for warnings.
44605
44606 2008-11-11  Bruno Haible  <bruno@clisp.org>
44607
44608         * lib/sockets.h: Add a comment.
44609
44610 2008-11-11  Karl Berry  <karl@gnu.org>
44611
44612         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44613
44614 2008-11-11  Eric Blake  <ebb9@byu.net>
44615
44616         fdl.texi: avoid git symlinks
44617         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44618
44619 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44620
44621         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44622
44623 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44624
44625         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44626         (gl_WARN_ADD): Substitute $2 if literal.
44627
44628 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44629
44630         * m4/warning.m4: Remove.
44631
44632 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44633
44634         * m4/warnings.m4: Almost complete rewrite. :-)
44635
44636 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44637
44638         * modules/warnings: New module.
44639         * m4/warnings.m4: New file.
44640         * MODULES.html.sh: Mention warnings module.
44641         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44642         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44643
44644 2008-11-10  Eric Blake  <ebb9@byu.net>
44645
44646         fdl.texi: make a symlink to the latest version
44647         * doc/standards.texi: Revert today's earlier change.
44648         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44649         * doc/fdl.texi: ...and replace this with a symlink to the newer
44650         fdl-1.3.texi.
44651
44652 2008-11-10  Bruno Haible  <bruno@clisp.org>
44653
44654         * tests/test-select-fd.c (main): Accept the result file name as fourth
44655         argument.
44656         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44657         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44658
44659 2008-11-10  Bruno Haible  <bruno@clisp.org>
44660
44661         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44662         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44663         as autoconf-substituted macros.
44664         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44665         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44666         gl_NETDB_H_DEFAULTS. Set these variables.
44667         * modules/netdb (Makefile.am): Substitute these variables.
44668
44669 2008-11-10  Eric Blake  <ebb9@byu.net>
44670
44671         standards.texi: include correct file for FDL 1.3
44672         * doc/standards.texi (GNU Free Documentation License): Change
44673         include file to pull in FDL 1.3, not 1.2.
44674
44675         fdl.texi: revert accidental change to license
44676         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44677
44678 2008-11-10  Bruno Haible  <bruno@clisp.org>
44679
44680         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44681         cross-compiling guesses also when the native compile gives no result.
44682
44683 2008-11-10  Bruno Haible  <bruno@clisp.org>
44684
44685         * lib/spawni.c (__spawni): Force variable into the stack.
44686
44687 2008-11-10  Bruno Haible  <bruno@clisp.org>
44688
44689         Add support for Haiku.
44690         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44691         glibc and BeOS, but also on Haiku.
44692         * lib/fpurge.c (fpurge): Likewise.
44693         * lib/freadable.c (freadable): Likewise.
44694         * lib/freadahead.c (freadahead): Likewise.
44695         * lib/freading.c (freading): Likewise.
44696         * lib/freadptr.c (freadptr): Likewise.
44697         * lib/freadseek.c (freadptrinc): Likewise.
44698         * lib/fseeko.c (rpl_fseeko): Likewise.
44699         * lib/fseterr.c (fseterr): Likewise.
44700         * lib/fwritable.c (fwritable): Likewise.
44701         * lib/fwriting.c (fwriting): Likewise.
44702         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44703
44704 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44705
44706         * lib/config.charset: Treat Haiku like BeOS.
44707
44708 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44709
44710         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44711         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44712
44713 2008-11-08  Bruno Haible  <bruno@clisp.org>
44714
44715         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44716         AC_CACHE_CHECK.
44717
44718 2008-11-08  Bruno Haible  <bruno@clisp.org>
44719
44720         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44721
44722 2008-11-08  Bruno Haible  <bruno@clisp.org>
44723
44724         * tests/test-select-fd.c: New file.
44725         * tests/test-select-in.sh: New file.
44726         * tests/test-select-out.sh: New file.
44727         * tests/test-select-stdin.c: New file.
44728         * modules/select-tests (Files): Add the new files.
44729         (Depends-on): Add gettimeofday.
44730         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44731         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44732         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44733
44734 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44735             Bruno Haible  <bruno@clisp.org>
44736
44737         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44738
44739 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44740
44741         * build-aux/pmccabe2html: Added support for C++ source files.
44742
44743 2008-11-05  Ben Pfaff  <blp@gnu.org>
44744
44745         Fix lib/close.c build on Windows.
44746         * modules/close (Files): Add lib/w32sock.h.
44747
44748 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44749
44750         Accept Bison's NEWS format.
44751         * build-aux/announce-gen (print_news_deltas): Tweak
44752         $re_prefix.
44753
44754 2008-11-04  Bruno Haible  <bruno@clisp.org>
44755
44756         * modules/random_r (Maintainer): Add glibc.
44757
44758 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44759
44760         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44761         by karl@freefriends.org (Karl Berry).
44762         * doc/alloca.texi: Likewise.
44763         * doc/c-ctype.texi: Likewise.
44764         * doc/c-strcase.texi: Likewise.
44765         * doc/c-strcaseeq.texi: Likewise.
44766         * doc/c-strcasestr.texi: Likewise.
44767         * doc/c-strstr.texi: Likewise.
44768         * doc/c-strtod.texi: Likewise.
44769         * doc/c-strtold.texi: Likewise.
44770         * doc/ctime.texi: Likewise.
44771         * doc/error.texi: Likewise.
44772         * doc/fdl.texi: Likewise.
44773         * doc/gcd.texi: Likewise.
44774         * doc/getdate.texi: Likewise.
44775         * doc/gnulib-intro.texi: Likewise.
44776         * doc/gnulib-tool.texi: Likewise.
44777         * doc/gnulib.texi: Likewise.
44778         * doc/inet_ntoa.texi: Likewise.
44779         * doc/maintain.texi: Likewise.
44780         * doc/make-stds.texi: Likewise.
44781         * doc/quote.texi: Likewise.
44782         * doc/regexprops-generic.texi: Likewise.
44783         * doc/standards.texi: Likewise.
44784         * doc/verify.texi: Likewise.
44785         * doc/visibility.texi: Likewise.
44786         * doc/gnulib.texi (GNU Free Documentation License): Include
44787         fdl-1.3.texi instead of fdl.texi.
44788
44789 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44790
44791         * doc/fdl-1.3.texi: New file, from
44792         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44793         * modules/fdl-1.3: Add.
44794         * MODULES.html.sh: Add fdl-1.3.
44795
44796 2008-11-03  Bruno Haible  <bruno@clisp.org>
44797
44798         Make determination of absolute name of header file work with AIX xlc.
44799         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44800         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44801         preprocessing.
44802         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44803         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44804
44805 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44806
44807         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44808         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44809         <ludo@gnu.org>.
44810
44811 2008-11-02  Bruno Haible  <bruno@clisp.org>
44812
44813         Mark 'strpbrk' obsolete.
44814         * modules/strpbrk (Status, Notice): New sections.
44815         * modules/strtok_r (Depends-on): Add strpbrk.
44816
44817 2008-11-02  Bruno Haible  <bruno@clisp.org>
44818
44819         Mark 'strdup' obsolete.
44820         * modules/strdup (Status, Notice): New sections.
44821         * modules/findprog (Depends-on): Add strdup.
44822         * modules/getaddrinfo (Depends-on): Likewise.
44823         * modules/localename (Depends-on): Likewise.
44824         * modules/relocatable-lib (Depends-on): Likewise.
44825         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44826         * modules/relocatable-prog (Depends-on): Likewise.
44827         * modules/trim (Depends-on): Likewise.
44828         * modules/unictype/gen-ctype (Depends-on): Likewise.
44829         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44830
44831 2008-11-02  Bruno Haible  <bruno@clisp.org>
44832
44833         Mark 'strcspn' obsolete.
44834         * modules/strcspn (Status, Notice): New sections.
44835
44836 2008-11-02  Bruno Haible  <bruno@clisp.org>
44837
44838         Mark 'rmdir' obsolete.
44839         * modules/rmdir (Status, Notice): New sections.
44840         * modules/clean-temp (Depends-on): Add rmdir.
44841         * modules/openat (Depends-on): Likewise.
44842
44843 2008-11-02  Bruno Haible  <bruno@clisp.org>
44844
44845         Mark 'raise' obsolete.
44846         * modules/raise (Status, Notice): New sections.
44847         (Include): Specify <signal.h>.
44848         * modules/stdio (Depends-on): Add raise.
44849         * modules/write (Depends-on): Likewise.
44850
44851 2008-11-02  Bruno Haible  <bruno@clisp.org>
44852
44853         Mark 'memset' obsolete.
44854         * modules/memset (Status, Notice): New sections.
44855
44856 2008-11-02  Bruno Haible  <bruno@clisp.org>
44857
44858         Mark 'memmove' obsolete.
44859         * modules/memmove (Status, Notice): New sections.
44860         * modules/argp (Depends-on): Add memmove.
44861         * modules/argz (Depends-on): Likewise.
44862         * modules/canonicalize (Depends-on): Likewise.
44863         * modules/canonicalize-lgpl (Depends-on): Likewise.
44864         * modules/fts (Depends-on): Likewise.
44865         * modules/getcwd (Depends-on): Likewise.
44866         * modules/human (Depends-on): Likewise.
44867         * modules/regex (Depends-on): Likewise.
44868         * modules/striconveh (Depends-on): Likewise.
44869         * modules/trim (Depends-on): Likewise.
44870         * modules/unistr/u8-move (Depends-on): Likewise.
44871         * modules/unistr/u16-move (Depends-on): Likewise.
44872         * modules/unistr/u32-move (Depends-on): Likewise.
44873
44874 2008-11-02  Bruno Haible  <bruno@clisp.org>
44875
44876         Mark 'memcpy' obsolete.
44877         * modules/memcpy (Status, Notice): New sections.
44878
44879 2008-11-02  Bruno Haible  <bruno@clisp.org>
44880
44881         Mark 'memcmp' obsolete.
44882         * modules/memcmp (Status, Notice): New sections.
44883         * modules/argmatch (Depends-on): Add memchr.
44884         * modules/backupfile (Depends-on): Likewise.
44885         * modules/c-strcasestr (Depends-on): Likewise.
44886         * modules/crypto/des (Depends-on): Likewise.
44887         * modules/csharpcomp (Depends-on): Likewise.
44888         * modules/fnmatch (Depends-on): Likewise.
44889         * modules/git-merge-changelog (Depends-on): Likewise.
44890         * modules/isnand (Depends-on): Likewise.
44891         * modules/isnand-nolibm (Depends-on): Likewise.
44892         * modules/isnanf (Depends-on): Likewise.
44893         * modules/isnanf-nolibm (Depends-on): Likewise.
44894         * modules/isnanl (Depends-on): Likewise.
44895         * modules/isnanl-nolibm (Depends-on): Likewise.
44896         * modules/mbchar (Depends-on): Likewise.
44897         * modules/memcoll (Depends-on): Likewise.
44898         * modules/quotearg (Depends-on): Likewise.
44899         * modules/regex (Depends-on): Likewise.
44900         * modules/relocatable-prog (Depends-on): Likewise.
44901         * modules/same (Depends-on): Likewise.
44902         * modules/signbit (Depends-on): Likewise.
44903         * modules/strcasestr-simple (Depends-on): Likewise.
44904         * modules/unictype/gen-ctype (Depends-on): Likewise.
44905         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44906         * modules/uniname/uniname (Depends-on): Likewise.
44907         * modules/unistr/u8-cmp (Depends-on): Likewise.
44908
44909 2008-11-02  Bruno Haible  <bruno@clisp.org>
44910
44911         Mark 'memchr' obsolete.
44912         * modules/memchr (Status, Notice): New sections.
44913         * modules/argp (Depends-on): Add memchr.
44914         * modules/base64 (Depends-on): Likewise.
44915         * modules/c-strcasestr (Depends-on): Likewise.
44916         * modules/chdir-long (Depends-on): Likewise.
44917         * modules/fnmatch (Depends-on): Likewise.
44918         * modules/getsubopt (Depends-on): Likewise.
44919         * modules/git-merge-changelog (Depends-on): Likewise.
44920         * modules/glob (Depends-on): Likewise.
44921         * modules/strcasestr-simple (Depends-on): Likewise.
44922         * modules/strnlen (Depends-on): Likewise.
44923
44924 2008-11-02  Bruno Haible  <bruno@clisp.org>
44925
44926         Mark 'atexit' obsolete.
44927         * modules/atexit (Status, Notice): New sections.
44928         * modules/chdir-long (Depends-on): Add atexit.
44929         * modules/wait-process (Depends-on): Likewise.
44930
44931 2008-11-02  Bruno Haible  <bruno@clisp.org>
44932
44933         * gnulib-tool: New option --with-obsolete.
44934         (func_usage): Document it.
44935         (func_modules_transitive_closure): Drop obsolete dependencies if
44936         incobsolete is not true.
44937         (func_import): Read and save the incobsolete variable to the cache.
44938
44939 2008-11-02  Bruno Haible  <bruno@clisp.org>
44940
44941         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44942         * gnulib-tool: New option --extract-status.
44943         (func_usage): Document it.
44944         (sed_extract_prog): Recognize it.
44945         (func_get_status): New function.
44946
44947 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44948
44949         * modules/sockets (License): Change from LGPL to LGPLv2+.
44950
44951 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44952
44953         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44954
44955 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44956
44957         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44958         Mention times and sys_times.
44959         * modules/sys_times, modules/sys_times-tests: New modules.
44960         * modules/times, modules/times-tests: Likewise
44961         * m4/sys_times_h.m4: New file.
44962         * lib/sys_times.in.h: Likewise
44963         * lib/times.c: Likewise.
44964         * tests/test-sys_times.c: Likewise.
44965         * tests/test-times.c: Likewise.
44966         * doc/posix-headers/sys_times.texi: Update.
44967         * doc/posix-functions/times.texi: Update.
44968
44969 2008-10-28  Jim Meyering  <meyering@redhat.com>
44970
44971         * modules/tempname (Depends-on): Add lstat.
44972
44973         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44974
44975 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44976
44977         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44978         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44979         using idiom used elsewhere in gnulib.
44980
44981 2008-10-27  Jim Meyering  <meyering@redhat.com>
44982
44983         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44984
44985 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44986
44987         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44988         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44989         programs.
44990         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44991
44992 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44993
44994         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44995
44996 2008-10-27  Bruno Haible  <bruno@clisp.org>
44997
44998         * tests/test-lstat.c: Include <stdio.h>.
44999
45000 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45001
45002         * modules/lstat-tests: New module.
45003         * tests/test-lstat.c: New file.
45004
45005 2008-10-26  Jim Meyering  <meyering@redhat.com>
45006
45007         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45008
45009 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45010             Bruno Haible  <bruno@clisp.org>
45011
45012         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45013         * modules/configmake (Include): Add a note that the include must come
45014         after all system headers.
45015         * lib/javaversion.c: Include configmake.h after all other includes.
45016
45017 2008-10-26  Bruno Haible  <bruno@clisp.org>
45018
45019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45020         HAVE_STRUCT_RANDOM_DATA to 1.
45021         (gl_STDLIB_H): Simplify.
45022
45023 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45024
45025         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45026         substitute HAVE_STRUCT_RANDOM_DATA.
45027         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45028         random_data.
45029         * modules/stdlib (Makefile.am): Substitute
45030         HAVE_STRUCT_RANDOM_DATA.
45031
45032 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45033
45034         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45035         * doc/gnulib-intro.texi (Copyright): Likewise.
45036
45037 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45038
45039         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45040         findings.
45041
45042 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45043             Bruno Haible  <bruno@clisp.org>
45044
45045         * lib/unistd.in.h: Include <winsock2.h>.
45046         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45047         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45048         Provide dummy declarations.
45049         (gethostname): Override.
45050         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45051         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45052         gl_PREREQ_SYS_H_WINSOCK2.
45053         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45054         * doc/posix-functions/gethostname.texi: More details.
45055
45056 2008-10-25  Bruno Haible  <bruno@clisp.org>
45057
45058         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45059         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45060         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45061
45062         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45063         here ...
45064         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45065         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45066         gl_UNISTD_H_DEFAULTS.
45067
45068 2008-10-25  Eric Blake  <ebb9@byu.net>
45069
45070         signbit: avoid spurious compiler failure
45071         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45072         declarations inside function.
45073
45074 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45075             Bruno Haible  <bruno@clisp.org>
45076
45077         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45078         * modules/random_r (Depends-on): Add stdint.
45079
45080 2008-10-24  Bruno Haible  <bruno@clisp.org>
45081
45082         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45083         Eggert.
45084         * modules/strerror (License): Likewise.
45085
45086 2008-10-24  Jim Meyering  <meyering@redhat.com>
45087
45088         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45089         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45090
45091 2008-10-24  Eric Blake  <ebb9@byu.net>
45092
45093         getgroups: fix compilation when getgroups is available
45094         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45095         but with <config.h> override of getgroups disabled.
45096
45097 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45098
45099         * doc/gnulib.texi (Header files): Add note about C++ problems.
45100         Explained by Bruno Haible <bruno@clisp.org>.
45101
45102 2008-10-23  Bruno Haible  <bruno@clisp.org>
45103
45104         Define a dummy SA_NODEFER macro on Interix.
45105         * lib/signal.in.h (SA_NODEFER): Define fallback.
45106         Reported by Aleksey Cheusov <cheusov@tut.by> via
45107         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45108
45109 2008-10-23  Bruno Haible  <bruno@clisp.org>
45110
45111         * modules/freadahead (License): Change to LGPLv2+.
45112         Suggested by Simon Josefsson.
45113
45114 2008-10-23  Jim Meyering  <meyering@redhat.com>
45115
45116         random_r: new module
45117         * modules/random_r: New file.
45118         * m4/random_r.m4: New file.
45119         * lib/random_r.c: New file, from glibc.
45120         * modules/random_r-tests: New file.
45121         * tests/test-random_r.c: New file.
45122         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45123          Declare.
45124         (RAND_MAX): Define.
45125         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45126         * modules/stdlib: Substitute them, too.
45127         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45128         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45129         * doc/glibc-functions/random_r.texi: Likewise.
45130         * doc/glibc-functions/setstate_r.texi: Likewise.
45131         * doc/glibc-functions/srandom_r.texi: Likewise.
45132         * config/srclist.txt: Mention it.
45133
45134 2008-10-23  David Lutterkort  <lutter@redhat.com>
45135
45136         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45137         link requirement
45138
45139 2008-10-23  Jim Meyering  <meyering@redhat.com>
45140
45141         selinux-h: mark parameters of stub functions as intentionally unused
45142         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45143         * lib/se-context.in.h: Likewise.
45144
45145 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45146
45147         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45148
45149 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45150
45151         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45152
45153 2008-10-22  Eric Blake  <ebb9@byu.net>
45154
45155         glthread/thread: avoid compiler warning
45156         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45157         Add unreachable abort to silence compiler.
45158
45159 2008-10-22  Eric Blake  <ebb9@byu.net>
45160
45161         netdb: also supply struct addrinfo for cygwin 1.5.x
45162         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45163         older cygwin.
45164         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45165         cygwin.
45166         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45167
45168 2008-10-22  Bruno Haible  <bruno@clisp.org>
45169
45170         * users.txt: Update entry about pspp.
45171
45172 2008-10-21  Bruno Haible  <bruno@clisp.org>
45173
45174         Simplification.
45175         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45176         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45177
45178         Simplification.
45179         * lib/ioctl.c (ioctl): Don't undefine.
45180         * lib/socket.c (socket): Don't undefine.
45181
45182         Remove unused module indicator macros.
45183         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45184         GNULIB_$1 as a C macro.
45185
45186         * doc/posix-functions/close.texi: Undo last change.
45187         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45188         Windows platforms.
45189
45190 2008-10-21  Bruno Haible  <bruno@clisp.org>
45191
45192         Add gethostname() declaration to <unistd.h>.
45193         * lib/unistd.in.h (gethostname): New declaration.
45194         * lib/gethostname.c: Include <unistd.h>.
45195         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45196         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45198         and HAVE_GETHOSTNAME.
45199         * modules/gethostname (Depends-on): Add unistd.
45200         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45201         (Include): Specify <unistd.h>.
45202         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45203         HAVE_GETHOSTNAME.
45204         * tests/test-gethostname.c: Include <unistd.h> first.
45205
45206 2008-10-21  Bruno Haible  <bruno@clisp.org>
45207
45208         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45209         * modules/select-tests (Depends-on): Likewise.
45210         Reported by Simon Josefsson.
45211
45212 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45213
45214         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45215         * lib/accept.c: New file, based on winsock.c.
45216         * lib/bind.c: New file, based on winsock.c.
45217         * lib/connect.c: New file, based on winsock.c.
45218         * lib/getpeername.c: New file, based on winsock.c.
45219         * lib/getsockname.c: New file, based on winsock.c.
45220         * lib/getsockopt.c: New file, based on winsock.c.
45221         * lib/ioctl.c: New file, based on winsock.c.
45222         * lib/listen.c: New file, based on winsock.c.
45223         * lib/recv.c: New file, based on winsock.c.
45224         * lib/recvfrom.c: New file, based on winsock.c.
45225         * lib/send.c: New file, based on winsock.c.
45226         * lib/sendto.c: New file, based on winsock.c.
45227         * lib/setsockopt.c: New file, based on winsock.c.
45228         * lib/shutdown.c: New file, based on winsock.c.
45229         * lib/socket.c: New file, based on winsock.c.
45230         * lib/w32sock.h: New file, based on winsock.c.
45231         * lib/winsock.c: Remove file.
45232         * modules/accept: Likewise.
45233         * modules/bind: Likewise.
45234         * modules/connect: Likewise.
45235         * modules/getpeername: Likewise.
45236         * modules/getsockname: Likewise.
45237         * modules/getsockopt: Likewise.
45238         * modules/ioctl: Likewise.
45239         * modules/listen: Likewise.
45240         * modules/recv: Likewise.
45241         * modules/recvfrom: Likewise.
45242         * modules/send: Likewise.
45243         * modules/sendto: Likewise.
45244         * modules/setsockopt: Likewise.
45245         * modules/shutdown: Likewise.
45246         * modules/socket: Use socket.c instead of winsock.c.
45247         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45248         * doc/posix-functions/accept.texi: Doc fix.
45249         * doc/posix-functions/bind.texi: Doc fix.
45250         * doc/posix-functions/close.texi: Doc fix.
45251         * doc/posix-functions/connect.texi: Doc fix.
45252         * doc/posix-functions/getpeername.texi: Doc fix.
45253         * doc/posix-functions/getsockname.texi: Doc fix.
45254         * doc/posix-functions/getsockopt.texi: Doc fix.
45255         * doc/posix-functions/ioctl.texi: Doc fix.
45256         * doc/posix-functions/listen.texi: Doc fix.
45257         * doc/posix-functions/recv.texi: Doc fix.
45258         * doc/posix-functions/recvfrom.texi: Doc fix.
45259         * doc/posix-functions/send.texi: Doc fix.
45260         * doc/posix-functions/sendto.texi: Doc fix.
45261         * doc/posix-functions/setsockopt.texi: Doc fix.
45262         * doc/posix-functions/shutdown.texi: Doc fix.
45263         * doc/posix-functions/socket.texi: Doc fix.
45264
45265 2008-10-20  Bruno Haible  <bruno@clisp.org>
45266
45267         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45268         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45269         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45270         as an alias for SIGABRT.
45271         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45272         (sigaction): Map it to SIGABRT.
45273         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45274
45275 2008-10-20  Bruno Haible  <bruno@clisp.org>
45276
45277         * lib/fts.c: Don't include lstat.h.
45278         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45279
45280         Move the lstat() declaration to <sys/stat.h>.
45281         * lib/lstat.h: Remove file.
45282         * lib/sys_stat.in.h: Add special invocation convention.
45283         (lstat): New declaration.
45284         * lib/lstat.c (orig_lstat): New function.
45285         (rpl_lstat): Use orig_lstat instead of lstat.
45286         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45287         AC_C_INLINE. Set REPLACE_LSTAT.
45288         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45289         and REPLACE_LSTAT.
45290         * modules/lstat (Files): Remove lib/lstat.h.
45291         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45292         (Include): Specify <sys/stat.h> instead of lstat.h.
45293         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45294         REPLACE_LSTAT.
45295         * NEWS: Mention the change.
45296
45297 2008-10-20  Bruno Haible  <bruno@clisp.org>
45298
45299         * modules/posix_spawn-tests: New file.
45300         * tests/test-posix_spawn3.c: New file.
45301
45302 2008-10-20  Bruno Haible  <bruno@clisp.org>
45303
45304         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45305         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45306         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45307         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45308         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45309
45310 2008-10-20  Bruno Haible  <bruno@clisp.org>
45311
45312         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45313         of posix_spawn on AIX 5.3.
45314
45315 2008-10-20  Bruno Haible  <bruno@clisp.org>
45316
45317         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45318
45319 2008-10-20  Bruno Haible  <bruno@clisp.org>
45320
45321         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45322         of AC_LANG_PROGRAM.
45323
45324 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45325
45326         * lib/netdb.in.h: Don't define GNU specific constants until they
45327         are supported or needed.  Reported by Bruno Haible
45328         <bruno@clisp.org>.
45329
45330 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45331
45332         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45333
45334 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45335
45336         * lib/getaddrinfo.h: Remove file.
45337         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45338         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45339         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45340         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45341         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45342         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45343         * tests/test-getaddrinfo.c: Likewise.
45344         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45345         * NEWS: Mention change.
45346
45347 2008-10-19  Bruno Haible  <bruno@clisp.org>
45348
45349         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45350
45351 2008-10-19  Bruno Haible  <bruno@clisp.org>
45352
45353         * lib/wait-process.c: Include simply <sys/wait.h>.
45354         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45355         WIFSTOPPED): Remove fallback definitions.
45356         * modules/wait-process (Depends-on): Add sys_wait.
45357
45358         New module 'sys_wait'.
45359         * modules/sys_wait: New file.
45360         * lib/sys_wait.in.h: New file, partially copied from
45361         lib/wait-process.c.
45362         * m4/sys_wait_h.m4: New file.
45363         * doc/posix-headers/sys_wait.texi: Mention the new module.
45364
45365 2008-10-19  Bruno Haible  <bruno@clisp.org>
45366
45367         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45368
45369 2008-10-19  Bruno Haible  <bruno@clisp.org>
45370
45371         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45372         * lib/wait-process.c (WAIT_T): Remove type.
45373         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45374         (wait_subprocess): Update.
45375
45376 2008-10-19  Bruno Haible  <bruno@clisp.org>
45377
45378         New module 'atoll'.
45379         * modules/atoll: New file.
45380         * lib/stdlib.in.h (atoll): New declaration.
45381         * lib/atoll.c: New file, from glibc with modifications.
45382         * m4/atoll.m4: New file.
45383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45384         HAVE_ATOLL.
45385         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45386         * doc/posix-functions/atoll.texi: Mention the new module.
45387
45388 2008-10-19  Bruno Haible  <bruno@clisp.org>
45389
45390         Add strtoull() declaration to <stdlib.h>.
45391         * lib/stdlib.in.h (strtoull): New declaration.
45392         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45393         Set HAVE_STRTOULL.
45394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45395         HAVE_STRTOULL.
45396         * modules/strtoull (Depends-on): Add stdlib.
45397         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45398         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45399         HAVE_STRTOULL.
45400
45401 2008-10-19  Bruno Haible  <bruno@clisp.org>
45402
45403         Add strtoll() declaration to <stdlib.h>.
45404         * lib/stdlib.in.h (strtoll): New declaration.
45405         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45406         Set HAVE_STRTOLL.
45407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45408         HAVE_STRTOLL.
45409         * modules/strtoll (Depends-on): Add stdlib.
45410         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45411         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45412
45413 2008-10-19  Bruno Haible  <bruno@clisp.org>
45414
45415         * modules/bcopy (Depends-on): Add strings.
45416         (Include): Specify <strings.h>.
45417
45418 2008-10-19  Bruno Haible  <bruno@clisp.org>
45419
45420         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45421
45422 2008-10-19  Bruno Haible  <bruno@clisp.org>
45423
45424         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45425         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45426         mingw.
45427
45428 2008-10-19  Bruno Haible  <bruno@clisp.org>
45429
45430         * lib/atanl.c: Don't include isnanl.h.
45431         * lib/cosl.c: Likewise.
45432         * lib/ldexpl.c: Likewise.
45433         * lib/logl.c: Likewise.
45434         * lib/sinl.c: Likewise.
45435         * lib/sqrtl.c: Likewise.
45436         * lib/tanl.c: Likewise.
45437
45438         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45439         * lib/isnanf.h: Remove file.
45440         * lib/isnand.h: Remove file.
45441         * lib/isnanl.h: Remove file.
45442         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45443         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45444         macros.
45445         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45446         HAVE_ISNANF, don't define it as a C macro.
45447         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45448         HAVE_ISNAND, don't define it as a C macro.
45449         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45450         HAVE_ISNANL, don't define it as a C macro.
45451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45452         HAVE_ISNAN[FDL].
45453         * modules/isnanf (Files): Remove lib/isnanf.h.
45454         (Depends-on): Add math.
45455         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45456         (Include): Specify <math.h> instead of isnanf.h.
45457         * modules/isnand (Files): Remove lib/isnand.h.
45458         (Depends-on): Add math.
45459         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45460         (Include): Specify <math.h> instead of isnand.h.
45461         * modules/isnanl (Files): Remove lib/isnanl.h.
45462         (Depends-on): Add math.
45463         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45464         (Include): Specify <math.h> instead of isnanl.h.
45465         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45466         HAVE_ISNAN[FDL].
45467         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45468         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45469         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45470         * NEWS: Mention the change.
45471
45472 2008-10-18  Bruno Haible  <bruno@clisp.org>
45473
45474         Add getusershell(), setusershell(), endusershell() declarations to
45475         <unistd.h>.
45476         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45477         declarations.
45478         * lib/getusershell.c: Include unistd.h.
45479         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45480         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45481         HAVE_GETUSERSHELL.
45482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45483         and HAVE_GETUSERSHELL.
45484         * modules/getusershell (Depends-on): Add unistd, extensions.
45485         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45486         (Include): Specify <unistd.h>.
45487         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45488         HAVE_GETUSERSHELL.
45489
45490 2008-10-18  Bruno Haible  <bruno@clisp.org>
45491
45492         Add a getloadavg() declaration to <stdlib.h>.
45493         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45494         getloadavg declaration.
45495         (getloadavg): New declaration.
45496         * lib/getloadavg.c: Include <stdlib.h> first.
45497         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45498         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45499         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45500         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45501         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45502         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45503         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45504         (Include): Specify <stdlib.h>.
45505         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45506         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45507
45508 2008-10-18  Bruno Haible  <bruno@clisp.org>
45509
45510         * lib/dirchownmod.c: Don't include lchmod.h.
45511
45512         Move the lchmod() declaration to <sys/stat.h>.
45513         * lib/lchmod.h: Remove file.
45514         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45515         (lchmod): New declaration, moved here from lib/lchown.h.
45516         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45517         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45518         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45519         and HAVE_LCHMOD.
45520         * modules/lchmod (Files): Remove lib/lchmod.h.
45521         (Depends-on): Add sys_stat, extensions.
45522         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45523         (Include): Specify <sys/stat.h> instead of lchmod.h.
45524         * modules/sys_stat (Depends-on): Add link-warning.
45525         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45526         definition of GL_LINK_WARNING.
45527         * NEWS: Mention the change.
45528
45529 2008-10-18  Bruno Haible  <bruno@clisp.org>
45530
45531         * lib/fchdir.c: Don't include dirfd.h.
45532         * lib/fts.c: Likewise.
45533         * lib/getcwd.c: Likewise.
45534         * lib/glob.c: Likewise.
45535
45536         Move the dirfd() declaration to <dirent.h>.
45537         * lib/dirfd.h: Remove file.
45538         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45539         (dirfd): New declaration.
45540         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45541         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45542         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45543         HAVE_DECL_DIRFD.
45544         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45545         HAVE_DECL_DIRFD.
45546         * modules/dirfd (Files): Remove lib/dirfd.h.
45547         (Depends-on): Add dirent, extensions.
45548         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45549         (Include): Specify <dirent.h> instead of dirfd.h.
45550         * modules/dirent (Depends-on): Add link-warning.
45551         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45552         definition of GL_LINK_WARNING.
45553         * NEWS: Mention the change.
45554
45555 2008-10-18  Bruno Haible  <bruno@clisp.org>
45556
45557         Move the euidaccess() declaration to <unistd.h>.
45558         * lib/euidaccess.h: Remove file.
45559         * lib/unistd.in.h (euidaccess): New declaration.
45560         * lib/euidaccess.c: Don't include euidaccess.h.
45561         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45562         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45564         and HAVE_EUIDACCESS.
45565         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45566         (Depends-on): Add unistd.
45567         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45568         (Include): Specify <unistd.h> instead of euidaccess.h.
45569         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45570         HAVE_EUIDACCESS.
45571         * NEWS: Mention the change.
45572
45573 2008-10-18  Bruno Haible  <bruno@clisp.org>
45574
45575         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45576
45577         Move the getdomainname() declaration to <unistd.h>.
45578         * lib/getdomainname.h: Remove file.
45579         * lib/unistd.in.h (getdomainname): New declaration.
45580         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45581         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45582         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45583         HAVE_GETDOMAINNAME.
45584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45585         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45586         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45587         (Depends-on): Add unistd, extensions.
45588         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45589         (Includes): Specify <unistd.h> instead of getdomainname.h.
45590         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45591         HAVE_GETDOMAINNAME.
45592         * NEWS: Mention the change.
45593
45594 2008-10-18  Bruno Haible  <bruno@clisp.org>
45595
45596         * modules/dirent: New file.
45597         * m4/dirent_h.m4: New file.
45598         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45599         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45600         * modules/fchdir (Files): Remove lib/dirent.in.h.
45601         (Depends-on): Add dirent.
45602         (Makefile.am): Move rules to modules/dirent.
45603         * doc/posix-headers/dirent.texi: Mention the new module.
45604
45605 2008-10-18  Bruno Haible  <bruno@clisp.org>
45606
45607         Avoid -Wunused-parameter warnings in public gnulib header files.
45608         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45609         macro.
45610         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45611
45612 2008-10-18  Bruno Haible  <bruno@clisp.org>
45613
45614         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45615         * doc/glibc-functions/error.texi: Mention the module 'error'.
45616         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45617         * doc/glibc-functions/getdomainname.texi: Mention the module
45618         'getdomainname'.
45619         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45620         * doc/glibc-functions/getpagesize.texi: Mention the module
45621         'getpagesize'.
45622         * doc/glibc-functions/getusershell.texi: Mention the module
45623         'getusershell'.
45624         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45625         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45626         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45627         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45628         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45629         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45630         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45631         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45632         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45633         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45634         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45635         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45636         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45637         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45638
45639 2008-10-17  Bruno Haible  <bruno@clisp.org>
45640
45641         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45642         HP-UX and IRIX, use -0.0L.
45643         * tests/test-ceill.c (minus_zero): Likewise.
45644         * tests/test-floorl.c (minus_zero): Likewise.
45645         * tests/test-frexpl.c (minus_zero): Likewise.
45646         * tests/test-isnan.c (minus_zerol): Likewise.
45647         * tests/test-isnanl.h (minus_zero): Likewise.
45648         * tests/test-ldexpl.c (minus_zero): Likewise.
45649         * tests/test-roundl.c (minus_zero): Likewise.
45650         * tests/test-signbit.c (minus_zerol): Likewise.
45651         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45652         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45653         * tests/test-truncl.c (minus_zero): Likewise.
45654         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45655         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45656         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45657         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45658
45659 2008-10-17  Bruno Haible  <bruno@clisp.org>
45660
45661         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45662         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45663         that it gets activated only for gcc >= 3.0.
45664         * lib/dirent.in.h: Likewise.
45665         * lib/errno.in.h: Likewise.
45666         * lib/fcntl.in.h: Likewise.
45667         * lib/float.in.h: Likewise.
45668         * lib/iconv.in.h: Likewise.
45669         * lib/inttypes.in.h: Likewise.
45670         * lib/locale.in.h: Likewise.
45671         * lib/math.in.h: Likewise.
45672         * lib/netdb.in.h: Likewise.
45673         * lib/netinet_in.in.h: Likewise.
45674         * lib/search.in.h: Likewise.
45675         * lib/signal.in.h: Likewise.
45676         * lib/spawn.in.h: Likewise.
45677         * lib/stdarg.in.h: Likewise.
45678         * lib/stdint.in.h: Likewise.
45679         * lib/stdio.in.h: Likewise.
45680         * lib/stdlib.in.h: Likewise.
45681         * lib/string.in.h: Likewise.
45682         * lib/strings.in.h: Likewise.
45683         * lib/sys_file.in.h: Likewise.
45684         * lib/sys_ioctl.in.h: Likewise.
45685         * lib/sys_select.in.h: Likewise.
45686         * lib/sys_socket.in.h: Likewise.
45687         * lib/sys_stat.in.h: Likewise.
45688         * lib/sys_time.in.h: Likewise.
45689         * lib/sysexits.in.h: Likewise.
45690         * lib/time.in.h: Likewise.
45691         * lib/unistd.in.h: Likewise.
45692         * lib/wchar.in.h: Likewise.
45693         * lib/wctype.in.h: Likewise.
45694         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45695
45696 2008-10-17  Jim Meyering  <meyering@redhat.com>
45697
45698         ignore-value: don't depend on inline module
45699         * modules/ignore-value (Depends-on): Remove 'inline'.
45700         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45701         Suggestion from Bruno Haible.
45702
45703 2008-10-17  Bruno Haible  <bruno@clisp.org>
45704
45705         New implementation of condition variables for Win32.
45706         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45707         (gl_linked_waitqueue_t): New type.
45708         (gl_cond_t): Use it.
45709         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45710         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45711         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45712         (glthread_cond_init_func, glthread_cond_wait_func,
45713         glthread_cond_timedwait_func, glthread_cond_signal_func,
45714         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45715         Reimplemented on the basis of gl_linked_waitqueue_t.
45716         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45717         gl_waitqueue_t.
45718         (gl_rwlock_t): Update.
45719         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45720
45721 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45722
45723         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45724         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45725
45726 2008-10-17  Jim Meyering  <meyering@redhat.com>
45727
45728         ignore-value: new module
45729         * modules/ignore-value: New file.
45730         * lib/ignore-value.h: New file.
45731         * MODULES.html.sh (Compiler warning management): New section,
45732         just for this module.  More to come.
45733
45734 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45735
45736         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45737         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45738         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45739
45740 2008-10-16  Jim Meyering  <meyering@redhat.com>
45741
45742         openat-die.c: avoid 'no previous prototype' warning
45743         * lib/openat-die.c: Include "openat.h".
45744         Reported by Reuben Thomas <rrt@sc3d.org>.
45745
45746 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45747
45748         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45749         * lib/netdb.in.h: Fix typo.
45750         Reported by Bruno Haible  <bruno@clisp.org>
45751
45752         * lib/netdb.in.h: Include sys/socket.h for platforms without
45753         netdb.h, to get structures like hostent on MinGW.
45754         * modules/netdb (Depends-on): Add sys_socket.
45755
45756 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45757
45758         * modules/netdb, modules/netdb-tests: New file.
45759         * m4/netdb_h.m4: New file.
45760         * lib/netdb.in.h: Add, currently just an empty file pending
45761         definitions.
45762         * tests/test-netdb.c: New file.
45763         * doc/posix-headers/netdb.texi: Mention that we replace it if
45764         needed.
45765         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45766         netdb.
45767
45768 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45769
45770         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45771         with code.
45772
45773 2008-10-13  Bruno Haible  <bruno@clisp.org>
45774
45775         * lib/glthread/cond.c (glthread_cond_wait_func,
45776         glthread_cond_timedwait_func): Add a comment.
45777
45778 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45779
45780         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45781         * tests/test-select.c: Likewise,
45782
45783 2008-10-13  Bruno Haible  <bruno@clisp.org>
45784
45785         * lib/glthread/cond.c (glthread_cond_wait_func,
45786         glthread_cond_timedwait_func): Fix variable name.
45787         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45788
45789 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45790
45791         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45792         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45793         struct sockaddr.sa_len.
45794         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45795
45796 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45797
45798         * build-aux/pmccabe2html: Add css and css_url parameters.
45799
45800 2008-10-12  Bruno Haible  <bruno@clisp.org>
45801
45802         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45803         calling aclx_get.
45804         Reported by Rainer Tammer <tammer@tammer.net>.
45805
45806 2008-10-12  Bruno Haible  <bruno@clisp.org>
45807
45808         Use msvcrt aware primitives for creation/termination of Win32 threads.
45809         * lib/glthread/thread.c: Include <process.h>.
45810         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45811         (wrapper_func): Update signature.
45812         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45813
45814 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45815             Bruno Haible  <bruno@clisp.org>
45816
45817         Provide a Win32 implementation of the 'cond' module.
45818         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45819         * lib/glthread/cond.c (glthread_cond_init_func,
45820         glthread_cond_wait_func, glthread_cond_timedwait_func,
45821         glthread_cond_signal_func, glthread_cond_broadcast_func,
45822         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45823         * modules/cond (Dependencies): Add gettimeofday.
45824
45825 2008-10-11  Bruno Haible  <bruno@clisp.org>
45826
45827         Make sleep work on older versions of mingw.
45828         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45829         only whether it exists.
45830         * doc/posix-functions/sleep.texi: Mention the problem with older
45831         versions of mingw.
45832
45833 2008-10-11  Bruno Haible  <bruno@clisp.org>
45834
45835         New module 'shutdown'.
45836         * modules/shutdown: New file.
45837         * lib/sys_socket.in.h (shutdown): New declaration.
45838         * lib/winsock.c (shutdown): New function.
45839         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45840         GNULIB_SHUTDOWN.
45841         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45842         * doc/posix-functions/shutdown.texi: Document the new module.
45843
45844 2008-10-11  Jim Meyering  <meyering@redhat.com>
45845
45846         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45847
45848 2008-10-11  Bruno Haible  <bruno@clisp.org>
45849
45850         New module 'fclose'.
45851         * modules/fclose: New file.
45852         * lib/stdio.in.h (fclose): New declaration.
45853         * lib/fclose.c: New file.
45854         * m4/fclose.m4: New file.
45855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45856         REPLACE_FCLOSE.
45857         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45858         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45859         REPLACE_FCLOSE.
45860         * modules/close (Depends-on): fclose.
45861         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45862
45863 2008-10-11  Bruno Haible  <bruno@clisp.org>
45864
45865         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45866         set errno and don't call _close.
45867
45868 2008-10-10  Bruno Haible  <bruno@clisp.org>
45869
45870         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45871         ACL, not afterwards. Fixes test failure on Cygwin.
45872
45873 2008-10-09  Ben Pfaff  <blp@gnu.org>
45874
45875         * build-aux/announce-gen: Fix gnulib version related part of usage
45876         message.  Die with a useful error message if no tarballs are
45877         found.
45878
45879 2008-10-10  Jim Meyering  <meyering@redhat.com>
45880
45881         bootstrap: use git's --depth=N option only if it's supported
45882         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45883         recognize the --depth option.  Reported by Pádraig Brady.
45884
45885 2008-10-09  Bruno Haible  <bruno@clisp.org>
45886
45887         New module 'ioctl'.
45888         * modules/ioctl: New file.
45889         * lib/sys_socket.in.h (ioctl): Remove declaration.
45890         * lib/winsock.c: Include <sys/ioctl.h>.
45891         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45892         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45893         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45894         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45895         * doc/posix-functions/ioctl.texi: Mention the new module.
45896
45897 2008-10-09  Bruno Haible  <bruno@clisp.org>
45898
45899         New module 'sys_ioctl'.
45900         * lib/sys_ioctl.in.h: New file.
45901         * m4/sys_ioctl_h.m4: New file.
45902         * modules/sys_ioctl: New file.
45903         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45904
45905 2008-10-09  Bruno Haible  <bruno@clisp.org>
45906
45907         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45908         * lib/winsock.c: Include <stdarg.h>.
45909         (rpl_ioctl): Change to second argument 'int' and then varargs.
45910
45911 2008-10-09  Bruno Haible  <bruno@clisp.org>
45912
45913         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45914         when the sys_socket module is present and the system has <winsock2.h>.
45915
45916 2008-10-09  Bruno Haible  <bruno@clisp.org>
45917
45918         * doc/posix-functions/close.texi: Mention module 'close' instead of
45919         module 'sys_socket'.
45920
45921 2008-10-09  Bruno Haible  <bruno@clisp.org>
45922
45923         * doc/glibc-headers/sys_ioctl.texi: New file.
45924         * doc/gnulib.texi: Include it.
45925
45926 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45927             Bruno Haible  <bruno@clisp.org>
45928
45929         Combine the two replacements of 'close'.
45930         * lib/sys_socket.in.h (close): Define to a reminder to include
45931         <unistd.h>.
45932         (_gl_close_fd_maybe_socket): New declaration.
45933         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45934         * lib/winsock.c (close): Remove undefinition.
45935         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45936         needed for the gnulib module 'close'.
45937         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45938         define to an error symbol or to a warning, if suitable.
45939         * lib/close.c: Include <sys/socket.h>.
45940         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45941         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45942         UNISTD_H_HAVE_WINSOCK2_H.
45943         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45945         UNISTD_H_HAVE_WINSOCK2_H.
45946         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45947         (configure.ac): Set a module indicator.
45948         (Makefile.am): Substitute GNULIB_CLOSE.
45949         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45950         * modules/poll-tests (Depends-on): Add close.
45951         * modules/select-tests (Depends-on): Likewise.
45952
45953 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45954             Bruno Haible  <bruno@clisp.org>
45955
45956         New module 'close'.
45957         * modules/close: New file.
45958         * lib/unistd.in.h (close): Move declaration out of the
45959         FCHDIR_REPLACEMENT scope.
45960         (_gl_unregister_fd): New declaration.
45961         * lib/close.c: New file.
45962         * lib/fchdir.c (rpl_close): Remove function.
45963         * m4/close.m4: New file.
45964         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45965         close.
45966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45967         REPLACE_CLOSE.
45968         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45969         REPLACE_CLOSE.
45970         * modules/fchdir (Depends-on): Add close.
45971
45972 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45973             Bruno Haible  <bruno@clisp.org>
45974
45975         * lib/fcntl.in.h (open): Simplify conditionals.
45976         (_gl_register_fd): New declaration.
45977         * lib/fchdir.c (rpl_open): Remove function.
45978         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45979         also.
45980         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45982         open.
45983
45984 2008-10-09  Jim Meyering  <meyering@redhat.com>
45985
45986         GNUmakefile: use the more name-space-friendly "_version"
45987         * top/GNUmakefile (_dummy): Update.
45988         (_version): Rename from "version".
45989
45990 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45991             Bruno Haible  <bruno@clisp.org>
45992
45993         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45994         rpl_close.
45995         (_gl_register_fd): New function, extracted from rpl_open.
45996         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45997         (rpl_open, rpl_opendir): Use _gl_register_fd.
45998
45999 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46000
46001         Fix organization of 'open' replacement.
46002         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46003         (gl_FUNC_OPEN): Use it.
46004         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46005
46006 2008-10-08  Bruno Haible  <bruno@clisp.org>
46007
46008         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46009
46010 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46011
46012         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46013         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46014         listen).
46015
46016 2008-10-08  Eric Blake  <ebb9@byu.net>
46017
46018         GNUmakefile: add 'make version' target
46019         * top/GNUmakefile (_curr-ver): Split version update rules...
46020         (version): ...into a target.
46021
46022 2008-10-07  Bruno Haible  <bruno@clisp.org>
46023
46024         Use a more portable replacement expression for -0.0L.
46025         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46026         instead of -0.0L. Fix m4 quotation.
46027
46028         * tests/test-signbit.c: Include <float.h>.
46029         (minus_zero): New variable.
46030         (test_signbitl): Use minus_zero instead of -zero.
46031         * modules/signbit-tests (Depends-on): Add float.
46032
46033         * tests/test-ceill.c: Include <float.h>.
46034         (zero): Remove variable.
46035         (minus_zero): New variable.
46036         (main): Use minus_zero instead of -zero.
46037         * modules/ceill-tests (Depends-on): Add float.
46038
46039         * tests/test-floorl.c: Include <float.h>.
46040         (zero): Remove variable.
46041         (minus_zero): New variable.
46042         (main): Use minus_zero instead of -zero.
46043         * modules/floorl-tests (Depends-on): Add float.
46044
46045         * tests/test-roundl.c: Include <float.h>.
46046         (zero): Remove variable.
46047         (minus_zero): New variable.
46048         (main): Use minus_zero instead of -zero.
46049         * modules/roundl-tests (Depends-on): Add float.
46050
46051         * tests/test-truncl.c: Include <float.h>.
46052         (zero): Remove variable.
46053         (minus_zero): New variable.
46054         (main): Use minus_zero instead of -zero.
46055         * modules/truncl-tests (Depends-on): Add float.
46056
46057         * tests/test-frexpl.c (zero): Remove variable.
46058         (minus_zero): New variable.
46059         (main): Use minus_zero instead of -zero.
46060         * modules/frexpl-tests (Depends-on): Add float.
46061
46062         * tests/test-isnan.c (zerol): Remove variable.
46063         (minus_zerol): New variable.
46064         (test_long_double): Use minus_zerol instead of -zerol.
46065         * modules/isnan-tests (Depends-on): Add float.
46066
46067         * tests/test-isnanl.h (zero): Remove variable.
46068         (minus_zero): New variable.
46069         (main): Use minus_zero instead of -zero.
46070         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46071         * modules/isnanl-tests (Depends-on): Add float.
46072
46073         * tests/test-ldexpl.c (zero): Remove variable.
46074         (minus_zero): New variable.
46075         (main): Use minus_zero instead of -zero.
46076         * modules/ldexpl-tests (Depends-on): Add float.
46077
46078         * tests/test-snprintf-posix.h (zerol): Remove variable.
46079         (minus_zerol): New variable.
46080         (test_function): Use minus_zerol instead of -zerol.
46081         * modules/snprintf-posix-tests (Depends-on): Add float.
46082         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46083
46084         * tests/test-sprintf-posix.h (zerol): Remove variable.
46085         (minus_zerol): New variable.
46086         (test_function): Use minus_zerol instead of -zerol.
46087         * modules/sprintf-posix-tests (Depends-on): Add float.
46088         * modules/vsprintf-posix-tests (Depends-on): Add float.
46089
46090         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46091         (minus_zerol): New variable.
46092         (test_function): Use minus_zerol instead of -zerol.
46093         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46094
46095         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46096         (minus_zerol): New variable.
46097         (test_function): Use minus_zerol instead of -zerol.
46098         * modules/vasprintf-posix-tests (Depends-on): Add float.
46099
46100 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46101
46102         * MODULES.html.sh (Support for building documentation): Mention
46103         pmccabe2html.  Sort entries.
46104
46105         Add pmccabe2html module, from gnupdf.
46106         * build-aux/pmccabe.css: New file.
46107         * build-aux/pmccabe2html: New file.
46108         * m4/pmccabe2html.m4: New file.
46109         * modules/pmccabe2html: New file.
46110
46111 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46112
46113         flock: new module
46114         * MODULES.html.sh: Add to list of modules.
46115         * lib/flock.c: flock implementation for Windows and Unix systems
46116         which have fcntl.
46117         * doc/glibc-functions/flock.texi: Update documentation.
46118         * lib/sys_file.in.h: <sys/file.h> header file.
46119         * m4/flock.m4: M4 macros.
46120         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46121         * modules/flock: flock module.
46122         * modules/flock-tests: flock tests module.
46123         * modules/sys_file: sys/file.h module.
46124         * tests/test-flock.c: test suite for flock.
46125
46126 2008-10-06  Jim Meyering  <meyering@redhat.com>
46127
46128         bootstrap: check for LT_INIT more portably still ;-)
46129         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46130         Spotted by Bruno Haible.
46131
46132 2008-10-06  Eric Blake  <ebb9@byu.net>
46133
46134         test-signbit: avoid tripping Irix cc bug on -0.0L
46135         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46136         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46137         entire testsuite consistent and avoids an Irix 6.2 bug.
46138
46139 2008-10-05  Bruno Haible  <bruno@clisp.org>
46140             Jim Meyering  <jim@meyering.net>
46141
46142         Add an option for ignoring EPIPE during close_stdout.
46143         * lib/closeout.h: Include <stdbool.h>.
46144         (close_stdout_set_ignore_EPIPE): New declaration.
46145         * lib/closeout.c: Include <stdbool.h>.
46146         (ignore_EPIPE): New variable.
46147         (close_stdout_set_ignore_EPIPE): New function.
46148         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46149         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46150         failure.
46151         * modules/closeout (Depends-on): Add stdbool.
46152
46153 2008-10-05  Bruno Haible  <bruno@clisp.org>
46154
46155         * modules/accept: New file.
46156         * modules/bind: New file.
46157         * modules/connect: New file.
46158         * modules/getpeername: New file.
46159         * modules/getsockname: New file.
46160         * modules/getsockopt: New file.
46161         * modules/listen: New file.
46162         * modules/recv: New file.
46163         * modules/recvfrom: New file.
46164         * modules/send: New file.
46165         * modules/sendto: New file.
46166         * modules/setsockopt: New file.
46167         * modules/socket: New file.
46168         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46169         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46170         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46171         the particular module is requested. Add a link warning when the
46172         particular module is not requested.
46173         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46174         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46175         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46176         the particular module is requested.
46177         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46178         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46179         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46180         * modules/sys_socket (Depends-on): Add link-warning.
46181         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46182         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46183         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46184         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46185         GL_LINK_WARNING.
46186         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46187         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46188         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46189         * doc/posix-functions/getpeername.texi: Mention the new module
46190         'getpeername'.
46191         * doc/posix-functions/getsockname.texi: Mention the new module
46192         'getsockname'.
46193         * doc/posix-functions/getsockopt.texi: Mention the new module
46194         'getsockopt'.
46195         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46196         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46197         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46198         * doc/posix-functions/send.texi: Mention the new module 'send'.
46199         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46200         * doc/posix-functions/setsockopt.texi: Mention the new module
46201         'setsockopt'.
46202         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46203         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46204         listen, connect, accept.
46205         * modules/select-tests (Depends-on): Likewise.
46206
46207 2008-10-05  Bruno Haible  <bruno@clisp.org>
46208
46209         * lib/winsock.c (strerror): Remove unused #undef.
46210         (rpl_close): Remove unused local variable.
46211
46212         * modules/sys_socket (Depends-on); Add errno.
46213
46214 2008-10-05  Bruno Haible  <bruno@clisp.org>
46215
46216         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46217         (select): Add a link warning when the 'select' module is not used.
46218         * modules/sys_select (Depends-on): Add link-warning.
46219         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46220         Suggested by Paolo Bonzini.
46221
46222 2008-10-05  Jim Meyering  <meyering@redhat.com>
46223
46224         bootstrap: check for LT_INIT more portably
46225         * build-aux/bootstrap: Avoid using grep -E, since it's not
46226         portable enough.  Suggestion from Bruno Haible.
46227
46228 2008-10-05  Bruno Haible  <bruno@clisp.org>
46229
46230         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46231         as being fixed by gnulib.
46232
46233 2008-10-05  Bruno Haible  <bruno@clisp.org>
46234
46235         * modules/select-tests: New file, mostly copied from
46236         modules/sys_select-tests.
46237         * tests/test-select.c: New file, mostly copied from
46238         tests/test-sys_select.c.
46239         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46240         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46241         (Makefile.am): Remove test_sys_select_LDADD.
46242
46243         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46244         to an undefined symbol, for an error message.
46245         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46246         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46247         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46248         winsock-select.c here.
46249         * modules/sys_select (Files): Remove lib/winsock-select.c.
46250         (Depends-on): Remove alloca.
46251         (Makefile.am): Substitute GNULIB_SELECT.
46252         * modules/select: New file.
46253         * doc/posix-functions/select.texi: Update.
46254
46255 2008-10-05  Bruno Haible  <bruno@clisp.org>
46256
46257         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46258         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46259         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46260         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46261         getdtablesize.
46262         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46263         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46264
46265 2008-10-05  Bruno Haible  <bruno@clisp.org>
46266
46267         * modules/getdtablesize-tests: New file.
46268         * tests/test-getdtablesize.c: New file.
46269
46270         New module 'getdtablesize'.
46271         * lib/unistd.in.h (getdtablesize): New declaration.
46272         * lib/getdtablesize.c: New file.
46273         * m4/getdtablesize.m4: New file.
46274         * modules/getdtablesize: New file.
46275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46276         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46277         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46278         HAVE_GETDTABLESIZE.
46279         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46280
46281 2008-10-05  Bruno Haible  <bruno@clisp.org>
46282
46283         * modules/sched (Makefile.am): Fix typo.
46284         Reported by Simon Josefsson.
46285
46286 2008-10-05  Jim Meyering  <meyering@redhat.com>
46287
46288         bootstrap: check for LT_INIT, too
46289         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46290         are deprecated.  Suggestion from Ralf Wildenhues.
46291
46292 2008-10-05  Bruno Haible  <bruno@clisp.org>
46293
46294         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46295         overriding them by ours.
46296         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46297
46298 2008-10-05  Jim Meyering  <meyering@redhat.com>
46299
46300         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46301         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46302         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46303
46304 2008-10-04  Bruno Haible  <bruno@clisp.org>
46305
46306         * modules/dup2 (License): Change to LGPLv2+.
46307         * modules/sleep (License): Likewise.
46308         * modules/perror (License): Likewise.
46309         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46310         Blake.
46311         * modules/signal (License): Likewise.
46312         * modules/sigprocmask (License): Likewise.
46313         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46314         Meyering.
46315
46316 2008-10-04  Bruno Haible  <bruno@clisp.org>
46317
46318         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46319         Reported by Rainer Tammer <tammer@tammer.net>.
46320
46321 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46322             Bruno Haible  <bruno@clisp.org>
46323
46324         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46325         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46326         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46327
46328 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46329
46330         filevercmp: new module
46331         * lib/filevercmp.h: New function filevercmp comparing version strings.
46332         * lib/filevercmp.c: Implementation of filevercmp function.
46333         * modules/filevercmp: Module metadata.
46334         * tests/test-filevercmp.c: Unit test for new module.
46335         * modules/filevercmp-tests: Unit test metadata.
46336         * MODULES.html.sh: Add filevercmp module.
46337
46338 2008-10-03  Bruno Haible  <bruno@clisp.org>
46339
46340         * lib/c-ctype.h: Add comment.
46341         Reported by Jim Meyering.
46342
46343 2008-10-02  Bruno Haible  <bruno@clisp.org>
46344
46345         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46346
46347 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46348
46349         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46350         name of bootstrap.conf accordingly.
46351
46352 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46353
46354         * build-aux/bootstrap: Install git-merge-changelog configuration
46355         items into .gitconfig if needed.
46356
46357 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46358
46359         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46360         git repository, and initialize/update it accordingly.
46361
46362 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46363
46364         * modules/fsync-tests: New file.
46365         * tests/test-fsync.c: New file.
46366
46367         New module 'fsync'.
46368         * lib/fsync.c: New file.
46369         * m4/fsync.m4: New file.
46370         * modules/fsync: New file.
46371         * lib/unistd.in.h (fsync): New declaration.
46372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46373         GNULIB_FSYNC and HAVE_FSYNC.
46374         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46375         * MODULES.html.sh (posix_functions): Add fsync.
46376         * doc/posix-functions/fsync.texi: Mention the new module.
46377
46378 2008-10-02  Jim Meyering  <meyering@redhat.com>
46379
46380         fts.c: sync with similar code from coreutils' remove.c
46381         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46382         Guard also with "#if defined __linux__", since for now at least,
46383         this code is Linux-kernel-specific.
46384
46385 2008-10-02  Jim Meyering  <meyering@redhat.com>
46386
46387         fts: bug fixes
46388         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46389         Include <sys/vfs.h>, not <sys/statfs.h>.
46390
46391         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46392         Include <sys/vfs.h>, not <sys/statfs.h>.
46393
46394 2008-10-01  Bruno Haible  <bruno@clisp.org>
46395
46396         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46397         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46398         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46399         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46400         * doc/posix-functions/posix_spawnp.texi: Likewise.
46401         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46402         whether posix_spawn actually works.
46403         * m4/pipe.m4 (gl_PIPE): Likewise.
46404         * modules/execute (Files): Add m4/posix_spawn.m4.
46405         * modules/pipe (Files): Add m4/posix_spawn.m4.
46406         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46407
46408 2008-10-01  Jim Meyering  <meyering@redhat.com>
46409
46410         remove trailing spaces
46411         * NEWS: Likewise.
46412         * lib/poll.c (poll): Likewise.
46413         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46414         * lib/winsock.c (rpl_close): Likewise.
46415         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46416         * modules/yield: Likewise.
46417         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46418         * tests/test-sys_select.c (connect_to_socket): Likewise.
46419
46420         fts.c: adjust a new interface to be more generally useful
46421         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46422         (fts_build): Adjust caller.
46423
46424 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46425
46426         * modules/cond-tests: New file.
46427         * tests/test-cond.c: New file.
46428
46429 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46430             Bruno Haible  <bruno@clisp.org>
46431
46432         * modules/cond (Dependencies): Add errno, time.
46433         * lib/glthread/cond.h: Include <time.h>.
46434         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46435         across platforms.
46436
46437 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46438             Bruno Haible  <bruno@clisp.org>
46439
46440         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46441
46442 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46443             Bruno Haible  <bruno@clisp.org>
46444
46445         * modules/tls-tests (Depends-on): Add thread, yield.
46446         (configure.ac): Remove all checks.
46447         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46448         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46449         gl_thread_self): Remove definitions. Include glthread/thread.h and
46450         glthread/yield.h instead.
46451         (test_tls): Pass an additional NULL argument to gl_thread_join.
46452
46453 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46454             Bruno Haible  <bruno@clisp.org>
46455
46456         * modules/lock-tests (Depends-on): Add thread, yield.
46457         (configure.ac): Remove all checks.
46458         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46459         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46460         gl_thread_self): Remove definitions. Include glthread/thread.h and
46461         glthread/yield.h instead.
46462         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46463         additional NULL argument to gl_thread_join.
46464
46465 2008-09-30  Bruno Haible  <bruno@clisp.org>
46466
46467         Fix the Win32 implementation of the 'thread' module.
46468         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46469         pointer type.
46470         (gl_thread_self): Invoke gl_thread_self_func.
46471         (gl_thread_self_func): New declaration.
46472         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46473         (do_init_self_key, init_self_key): New functions.
46474         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46475         Remove some fields.
46476         (running_threads, running_lock): Remove variables.
46477         (get_current_thread_handle): New function.
46478         (gl_thread_self_func, wrapper_func, glthread_create_func,
46479         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46480         simplified.
46481
46482 2008-09-30  Bruno Haible  <bruno@clisp.org>
46483
46484         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46485         files.
46486
46487 2008-09-30  Jim Meyering  <meyering@redhat.com>
46488
46489         fts.m4: correct the test for statfs.f_type
46490         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46491         when checking for statfs.f_type.
46492
46493 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46494
46495         tests: avoid some compiler warnings
46496         * tests/test-memchr.c (main): Pass NULL indirectly.
46497         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46498
46499 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46500
46501         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46502         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46503         exactly specified dayshifts.
46504         (dayshift): New rule.
46505         (rel): Add dayshift.
46506         (relative_time_table) [tomorrow, yesterday, today, now]:
46507         Use tDAY_SHIFT in place of tDAY_UNIT.
46508         * tests/test-getdate.c: Add tests for now-disallowed countable
46509         dayshifts, e.g., "4 yesterday ago".
46510
46511 2008-09-29  Bruno Haible  <bruno@clisp.org>
46512
46513         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46514         * tests/test-posix_spawn1.in.sh: Renamed from
46515         tests/test-posix_spawn.in.sh.
46516         * tests/test-posix_spawn2.c: New file.
46517         * tests/test-posix_spawn2.in.sh: New file.
46518         * modules/posix_spawnp-tests (Files): Update.
46519         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46520
46521 2008-09-29  Bruno Haible  <bruno@clisp.org>
46522
46523         Propagate effects of putenv/setenv/unsetenv to child processes.
46524         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46525         * lib/pipe.c (create_pipe): Likewise.
46526
46527 2008-09-29  Bruno Haible  <bruno@clisp.org>
46528
46529         Enable use of shell scripts as executables in mingw.
46530         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46531         run the program as a shell script.
46532         * lib/pipe.c (create_pipe): Likewise.
46533         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46534         resulting array.
46535
46536 2008-09-29  Eric Blake  <ebb9@byu.net>
46537
46538         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46539
46540 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46541
46542         * doc/posix-functions/accept.texi: Update mingw problems.
46543         * doc/posix-functions/bind.texi: Update mingw problems.
46544         * doc/posix-functions/close.texi: Update mingw problems.
46545         * doc/posix-functions/connect.texi: Update mingw problems.
46546         * doc/posix-functions/getpeername.texi: Update mingw problems.
46547         * doc/posix-functions/getsockname.texi: Update mingw problems.
46548         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46549         * doc/posix-functions/ioctl.texi: Update mingw problems.
46550         * doc/posix-functions/listen.texi: Update mingw problems.
46551         * doc/posix-functions/recv.texi: Update mingw problems.
46552         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46553         * doc/posix-functions/select.texi: Update mingw problems.
46554         * doc/posix-functions/send.texi: Update mingw problems.
46555         * doc/posix-functions/sendto.texi: Update mingw problems.
46556         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46557         * doc/posix-functions/socket.texi: Update mingw problems.
46558
46559 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46560             Bruno Haible  <bruno@clisp.org>
46561
46562         * lib/sys_select.in.h: Include sys/time.h.
46563         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46564         * modules/sys_select: Depend on sys_time.
46565         * tests/test-sys_select.c: Test that sys/select.h defines struct
46566         timeval fully.
46567
46568 2008-09-29  Bruno Haible  <bruno@clisp.org>
46569
46570         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46571         * lib/sys_select.in.h: Likewise.
46572
46573 2008-09-29  Bruno Haible  <bruno@clisp.org>
46574
46575         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46576
46577 2008-09-29  Bruno Haible  <bruno@clisp.org>
46578
46579         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46580         Set LIBSOCKET instead of augmenting LIBS.
46581         * modules/sockets (Link): New section.
46582         * modules/sockets-tests (test_sockets_LDADD): New variable.
46583         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46584         * modules/poll-tests (test_poll_LDADD): New variable.
46585         * NEWS: Document the change.
46586
46587 2008-09-29  Bruno Haible  <bruno@clisp.org>
46588
46589         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46590         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46591         ARPA_INET_H directly.
46592         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46593
46594 2008-09-28  Bruno Haible  <bruno@clisp.org>
46595
46596         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46597         from gl_HEADER_SYS_SOCKET.
46598         (gl_HEADER_SYS_SOCKET): Invoke it.
46599         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46600
46601 2008-09-28  Bruno Haible  <bruno@clisp.org>
46602
46603         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46604         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46605         Needed on OSF/1 4.0.
46606
46607 2008-09-28  Bruno Haible  <bruno@clisp.org>
46608
46609         Override open more carefully.
46610         * lib/open.c (orig_open): New function.
46611         (rpl_open): Use orig_open instead of open.
46612         * lib/fcntl.in.h: Add special invocation convention.
46613         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46614         (gl_FUNC_OPEN): Invoke it.
46615
46616         Override freopen more carefully.
46617         * lib/freopen.c (orig_freopen): New function.
46618         (rpl_freopen): Use orig_freopen instead of freopen.
46619         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46620         (gl_FUNC_FREOPEN): Invoke it.
46621
46622         Override fopen more carefully.
46623         * lib/fopen.c (orig_fopen): New function.
46624         (rpl_fopen): Use orig_fopen instead of fopen.
46625         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46626         (gl_FUNC_FOPEN): Invoke it.
46627         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46628
46629 2008-09-28  Bruno Haible  <bruno@clisp.org>
46630
46631         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46632         SIGPIPE.
46633
46634 2008-09-28  Bruno Haible  <bruno@clisp.org>
46635
46636         * tests/test-sigaction.c (handler, main): Disable the check whether
46637         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46638         glibc systems with LinuxThreads.
46639
46640 2008-09-28  Bruno Haible  <bruno@clisp.org>
46641
46642         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46643
46644         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46645         with AIX xlc.
46646         * lib/fcntl.in.h (open): Likewise.
46647         Reported by Rainer Tammer <tammer@tammer.net>.
46648
46649 2008-09-28  Bruno Haible  <bruno@clisp.org>
46650
46651         * modules/posix_spawnp-tests: New file.
46652         * tests/test-posix_spawn.c: New file.
46653         * tests/test-posix_spawn.in.sh: New file.
46654
46655         New module 'posix_spawnp'.
46656         * modules/posix_spawnp: New file.
46657         * lib/spawnp.c: New file, from GNU libc with modifications.
46658         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46659
46660         New module 'posix_spawn'.
46661         * modules/posix_spawn: New file.
46662         * lib/spawn.c: New file, from GNU libc with modifications.
46663         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46664
46665         New module 'posix_spawnattr_destroy'.
46666         * modules/posix_spawnattr_destroy: New file.
46667         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46668         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46669         module.
46670
46671         New module 'posix_spawnattr_setsigmask'.
46672         * modules/posix_spawnattr_setsigmask: New file.
46673         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46674         modifications.
46675         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46676         new module.
46677
46678         New module 'posix_spawnattr_getsigmask'.
46679         * modules/posix_spawnattr_getsigmask: New file.
46680         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46681         modifications.
46682         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46683         new module.
46684
46685         New module 'posix_spawnattr_setsigdefault'.
46686         * modules/posix_spawnattr_setsigdefault: New file.
46687         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46688         modifications.
46689         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46690         new module.
46691
46692         New module 'posix_spawnattr_getsigdefault'.
46693         * modules/posix_spawnattr_getsigdefault: New file.
46694         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46695         modifications.
46696         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46697         new module.
46698
46699         New module 'posix_spawnattr_setschedpolicy'.
46700         * modules/posix_spawnattr_setschedpolicy: New file.
46701         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46702         modifications.
46703         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46704         new module.
46705
46706         New module 'posix_spawnattr_getschedpolicy'.
46707         * modules/posix_spawnattr_getschedpolicy: New file.
46708         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46709         modifications.
46710         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46711         new module.
46712
46713         New module 'posix_spawnattr_setschedparam'.
46714         * modules/posix_spawnattr_setschedparam: New file.
46715         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46716         modifications.
46717         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46718         new module.
46719
46720         New module 'posix_spawnattr_getschedparam'.
46721         * modules/posix_spawnattr_getschedparam: New file.
46722         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46723         modifications.
46724         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46725         new module.
46726
46727         New module 'posix_spawnattr_setpgroup'.
46728         * modules/posix_spawnattr_setpgroup: New file.
46729         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46730         modifications.
46731         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46732         module.
46733
46734         New module 'posix_spawnattr_getpgroup'.
46735         * modules/posix_spawnattr_getpgroup: New file.
46736         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46737         modifications.
46738         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46739         module.
46740
46741         New module 'posix_spawnattr_setflags'.
46742         * modules/posix_spawnattr_setflags: New file.
46743         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46744         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46745         module.
46746
46747         New module 'posix_spawnattr_getflags'.
46748         * modules/posix_spawnattr_getflags: New file.
46749         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46750         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46751         module.
46752
46753         New module 'posix_spawnattr_init'.
46754         * modules/posix_spawnattr_init: New file.
46755         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46756         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46757         module.
46758
46759         New module 'posix_spawn_file_actions_destroy'.
46760         * modules/posix_spawn_file_actions_destroy: New file.
46761         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46762         modifications.
46763         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46764         the new module.
46765
46766         New module 'posix_spawn_file_actions_addopen'.
46767         * modules/posix_spawn_file_actions_addopen: New file.
46768         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46769         modifications.
46770         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46771         the new module.
46772
46773         New module 'posix_spawn_file_actions_adddup2'.
46774         * modules/posix_spawn_file_actions_adddup2: New file.
46775         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46776         modifications.
46777         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46778         the new module.
46779
46780         New module 'posix_spawn_file_actions_addclose'.
46781         * modules/posix_spawn_file_actions_addclose: New file.
46782         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46783         modifications.
46784         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46785         the new module.
46786
46787         New module 'posix_spawn_file_actions_init'.
46788         * modules/posix_spawn_file_actions_init: New file.
46789         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46790         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46791         new module.
46792
46793         New module 'posix_spawn-internal'.
46794         * modules/posix_spawn-internal: New file.
46795         * lib/spawn_int.h: New file, from GNU libc with modifications.
46796         * lib/spawni.c: New file, from GNU libc with modifications.
46797         * m4/posix_spawn.m4: New file.
46798
46799         New module 'spawn'.
46800         * modules/spawn: New file.
46801         * lib/spawn.in.h: New file, from GNU libc with modifications.
46802         * m4/spawn_h.m4: New file.
46803         * doc/posix-headers/spawn.texi: Mention the new module.
46804
46805 2008-09-28  Bruno Haible  <bruno@clisp.org>
46806
46807         * modules/sched-tests: New file.
46808         * tests/test-sched.c: New file.
46809
46810         New module 'sched'.
46811         * modules/sched: New file.
46812         * lib/sched.in.h: New file.
46813         * m4/sched_h.m4: New file.
46814         * doc/posix-headers/sched.texi: Mention the new module.
46815
46816 2008-09-27  Eric Blake  <ebb9@byu.net>
46817
46818         Fix previous patch, and tweak references to $0.
46819         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46820         (func_version, func_gnulib_dir): Don't call this program
46821         gnulib-tool.
46822         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46823         with using $0 in function.
46824         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46825         (func_fatal_error): Reuse the name the user invoked us with.
46826
46827 2008-09-27  Bruno Haible  <bruno@clisp.org>
46828
46829         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46830         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46831         (gl_ICONV_H): Not here.
46832         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46833         instead of assigning ICONV_H directly.
46834
46835         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46837         WCHAR_H directly.
46838
46839 2008-09-27  Bruno Haible  <bruno@clisp.org>
46840
46841         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46842         * modules/arpa_inet (Depends-on): Add link-warning.
46843         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46844         * modules/unistd (Makefile.am): Likewise.
46845
46846 2008-09-26  Bruno Haible  <bruno@clisp.org>
46847
46848         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46849         variables.
46850         (func_version): Essentially copied from gnulib-tool.
46851         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46852         func_readlink): Copied from gnulib-tool.
46853
46854 2008-09-26  Bruno Haible  <bruno@clisp.org>
46855
46856         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46857         invoking git-version-gen.
46858
46859 2008-09-26  Bruno Haible  <bruno@clisp.org>
46860
46861         * posix-modules: Update to directory names changed on 2008-01-19.
46862         Remove commas in output before splitting into words. No more need to
46863         avoid 'ftruncate' since 2007-02-19.
46864
46865 2008-09-26  Bruno Haible  <bruno@clisp.org>
46866
46867         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46868
46869 2008-09-26  Bruno Haible  <bruno@clisp.org>
46870
46871         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46872         * modules/fwriteerror (Depends-on): Add errno.
46873
46874 2008-09-26  Bruno Haible  <bruno@clisp.org>
46875
46876         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46877         * tests/test-vc-list-files-cvs.sh: Likewise.
46878
46879 2008-09-26  Bruno Haible  <bruno@clisp.org>
46880
46881         * doc/posix-headers/sys_resource.texi: Reorder items.
46882
46883 2008-09-26  Jim Meyering  <meyering@redhat.com>
46884
46885         fts: tweak inode comparison function
46886         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46887         inode numbers, as documented.
46888
46889         fts: sort dirent entries on inode number before traversing
46890         This avoids a quadratic, seek-related performance penalty when
46891         operating on a directory containing many entries (measurable at 10k;
46892         3.5 hours at 2 million entries with a cold cache) on certain types
46893         of file systems, including ext3 and ext4, but not tmpfs.
46894         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46895         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46896         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46897         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46898         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46899         (fts_build): Set the stat.st_ino member from D_INO.
46900         If it is likely to be useful, sort dirent entries on inode number.
46901
46902         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46903         and the struct statfs.f_type member.
46904         * modules/fts (Depends-on): Add d-ino.
46905
46906 2008-09-26  Bruno Haible  <bruno@clisp.org>
46907
46908         * modules/sigpipe-die (Depends-on): Add sigpipe.
46909
46910         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46911         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46912         and GNULIB_STDIO_H_SIGPIPE are set.
46913         * lib/stdio-write.c: New file.
46914         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46915         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46916         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46917         REPLACE_STDIO_WRITE_FUNCS.
46918         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46919         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46920         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46921         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46922         * modules/stdio (Files): Add lib/stdio-write.c.
46923         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46924         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46925         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46926         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46927         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46928         REPLACE_FPRINTF_POSIX.
46929         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46930         REPLACE_PRINTF_POSIX.
46931         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46932         REPLACE_VFPRINTF_POSIX.
46933         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46934         REPLACE_VPRINTF_POSIX.
46935         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46936         SIGPIPE issue.
46937         * doc/posix-functions/fputc.texi: Likewise.
46938         * doc/posix-functions/fputs.texi: Likewise.
46939         * doc/posix-functions/fwrite.texi: Likewise.
46940         * doc/posix-functions/printf.texi: Likewise.
46941         * doc/posix-functions/putc.texi: Likewise.
46942         * doc/posix-functions/putchar.texi: Likewise.
46943         * doc/posix-functions/puts.texi: Likewise.
46944         * doc/posix-functions/vfprintf.texi: Likewise.
46945         * doc/posix-functions/vprintf.texi: Likewise.
46946
46947         * modules/safe-write (Depends-on): Add write.
46948
46949         * modules/sigpipe-tests: New file.
46950         * tests/test-sigpipe.c: New file.
46951         * tests/test-sigpipe.sh: New file.
46952
46953         * modules/write: New file.
46954         * lib/unistd.in.h: Include <sys/types.h>.
46955         (write): New declaration.
46956         * lib/write.c: New file.
46957         * m4/write.m4: New file.
46958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46959         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46960         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46961         GNULIB_WRITE, REPLACE_WRITE.
46962         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46963         and the SIGPIPE issue.
46964
46965         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46966         (raise): New declaration.
46967         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46968         (ext_signal): New function.
46969         (rpl_raise): New function.
46970         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46971         GNULIB_SIGNAL_H_SIGPIPE.
46972         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46973         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46974
46975         * modules/sigpipe: New file.
46976         * m4/sigpipe.m4: New file.
46977
46978 2008-09-25  Derek Price  <derek@ximbiot.com>
46979             Bruno Haible  <bruno@clisp.org>
46980
46981         * gnulib-tool (func_import): Report all license incompatibilities, not
46982         just the first one.
46983
46984 2008-09-25  Bruno Haible  <bruno@clisp.org>
46985
46986         * gnulib-tool (func_import): When computing the edits, consider not
46987         only the Makefile.ams that exist but also those that will be generated.
46988
46989 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46990
46991         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46992         fixes gnulib-tool --test warning about duplicate dependency.
46993
46994 2008-09-25  Bruno Haible  <bruno@clisp.org>
46995
46996         * gnulib-tool: Don't ask the user to perform edits in the generated
46997         Makefile.ams.
46998         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46999         apply to the Makefile.am being generated.
47000         (func_emit_tests_Makefile_am): Execute edits that apply to the
47001         Makefile.am being generated.
47002         (func_import): Setup list of Makefile.am edits before emitting the
47003         Makefile.ams, not at the end.
47004         (func_create_testdir): Update.
47005         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47006
47007 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47008
47009         * gnulib-tool (func_import): Store the --tests-base option in the
47010         comment in gnulib-cache.m4.
47011
47012 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47013
47014         * NEWS: Document increased portability that sys_select now provides.
47015
47016         * lib/sys_select.in.h: Install select wrapper.
47017         * lib/sys_socket.in.h: Use more descriptive name when there is no
47018         select wrapper.
47019         * lib/winsock-select.c: New.
47020         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47021         Require gl_HEADER_SYS_SOCKET.
47022         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47023         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47024         * tests/test-sys_select.c: Add functional tests.
47025
47026 2008-09-24  Eric Blake  <ebb9@byu.net>
47027
47028         open, fopen: close fd leak in last patch
47029         * lib/open.c (rpl_open): Close fd before returning error.
47030         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47031         * doc/posix-functions/open.texi (open): Document that Irix also
47032         has the bug.
47033         * doc/posix-functions/fopen.texi (fopen): Likewise.
47034         Reported by Paolo Bonzini.
47035
47036 2008-09-24  Bruno Haible  <bruno@clisp.org>
47037
47038         Ensure that a filename ending in a slash cannot be used to access a
47039         non-directory.
47040         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47041         to check whether it's really a directory.
47042         * lib/fopen.c: Include fcntl.h, unistd.h.
47043         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47044         and fdopen().
47045         * modules/fopen (Depends-on): Add unistd.
47046         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47047         * tests/test-fopen.c (main): Likewise.
47048         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47049         * doc/posix-functions/fopen.texi: Likewise.
47050         Reported by Eric Blake.
47051
47052 2008-09-23  Eric Blake  <ebb9@byu.net>
47053
47054         c-stack: avoid compiler optimizations when provoking overflow
47055         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47056         recursion harder to optimize, to ensure a stack overflow occurs.
47057         * tests/test-c-stack.c (recurse): Likewise.
47058         Borrowed from libsigsegv.
47059
47060         c-stack: work around Irix sigaltstack bug
47061         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47062         whether sigaltstack uses wrong end of stack_t (copied in part from
47063         libsigsegv).
47064         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47065         Irix bug, without requiring an over-allocation.
47066         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47067         bug.
47068
47069         fopen: document mingw bug on directories
47070         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47071         not allowing a stream visiting a directory, even though reading
47072         from such a stream is not portable.
47073
47074 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47075
47076         * lib/poll.c: Rewrite.
47077         * modules/poll: Depend on alloca.
47078
47079 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47080
47081         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47082         instead define prototypes for a full set of wrappers.  Ensure
47083         that Cygwin does not use the compatibility code, which is only
47084         for MinGW.
47085         * lib/winsock.c: New.
47086         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47087         * modules/sys_socket: Add lib/winsock.c.
47088
47089         * modules/poll-tests: Add errno and perror.
47090         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47091
47092 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47093
47094         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47095
47096 2008-09-23  Bruno Haible  <bruno@clisp.org>
47097
47098         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47099         * doc/glibc-functions/*: Likewise.
47100
47101 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47102
47103         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47104         success.
47105
47106 2008-09-22  Eric Blake  <ebb9@byu.net>
47107             Bruno Haible  <bruno@clisp.org>
47108
47109         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47110         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47111         supply %A but mishandle pseudo-NaN.
47112         Reported by Simon Josefsson.
47113
47114 2008-09-21  Bruno Haible  <bruno@clisp.org>
47115
47116         * tests/test-lock.c (main): Tweak skip message.
47117         * tests/test-tls.c (main): Likewise.
47118
47119 2008-09-21  Bruno Haible  <bruno@clisp.org>
47120
47121         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47122         whether 'struct sigaction' has sa_sigaction here...
47123         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47124         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47125
47126 2008-09-21  Bruno Haible  <bruno@clisp.org>
47127
47128         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47129         section.
47130         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47131         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47132         the new section.
47133         (Support for obsolete systems lacking POSIX:2001): New section.
47134         (String handling <string.h>): Move strdup to the new section.
47135         Suggested by Simon Josefsson and Paolo Bonzini.
47136
47137 2008-09-21  Bruno Haible  <bruno@clisp.org>
47138
47139         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47140         exponents in %e and %g results on 'long double'. Needed for mingw's
47141         improved *printf functions.
47142         * tests/test-vasprintf-posix.c (test_function): Likewise.
47143         * tests/test-snprintf-posix.h (test_function): Likewise.
47144         * tests/test-sprintf-posix.h (test_function): Likewise.
47145         Reported by Eric Blake.
47146
47147 2008-09-21  Bruno Haible  <bruno@clisp.org>
47148
47149         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47150         * tests/test-sprintf-posix.h (test_function): Likewise.
47151
47152 2008-09-21  Bruno Haible  <bruno@clisp.org>
47153
47154         * modules/getpass (Depends-on): Add strdup-posix.
47155
47156         New module 'strdup-posix'.
47157         * modules/strdup-posix: New file.
47158         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47159         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47160         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47161         REPLACE_STRDUP.
47162         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47163         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47164         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47165         strdup-posix.
47166
47167         * modules/strdup (Depends-on): Remove malloc-posix.
47168
47169 2008-09-20  Bruno Haible  <bruno@clisp.org>
47170
47171         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47172         Wildenhues.
47173
47174 2008-09-20  Bruno Haible  <bruno@clisp.org>
47175
47176         Ensure that wint_t gets defined on IRIX 5.3.
47177         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47178         * lib/wctype.in.h (wint_t): Likewise.
47179         (__wctype_wint_t): Remove type.
47180         (isw*): Use wint_t instead of __wctype_wint_t.
47181         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47182         * modules/wchar (Files): Add m4/wint_t.m4.
47183         (Makefile.am): Substitute HAVE_WINT_T.
47184         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47185         * tests/test-wctype.c: Check that wint_t is defined.
47186         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47187         * doc/posix-headers/wctype.texi: Likewise.
47188         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47189
47190 2008-09-18  Bruno Haible  <bruno@clisp.org>
47191
47192         * gnulib-tool (func_exit): Update comment.
47193
47194 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47195
47196         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47197         assumes strdup exists and does not depend on strdup to return
47198         ENOMEM on out of memory conditions.
47199
47200 2008-09-18  Bruno Haible  <bruno@clisp.org>
47201
47202         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
47203         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47204         digits for the exponent.
47205
47206 2008-09-18  Jim Meyering  <meyering@redhat.com>
47207             Bruno Haible  <bruno@clisp.org>
47208
47209         * lib/vasnprintf.c (decimal_point_char): Define also if
47210         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47211
47212 2008-09-16  Bruno Haible  <bruno@clisp.org>
47213         and Eric Blake  <ebb9@byu.net>
47214
47215         vasnprintf: support Irix 5.3
47216         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47217         that mishandle long double infinity.
47218         Reported by Tom G. Christensen.
47219
47220 2008-09-16  Bruno Haible  <bruno@clisp.org>
47221
47222         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47223         Solaris 9.
47224         * doc/glibc-functions/alphasort.texi: Likewise.
47225         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47226
47227 2008-09-16  Jim Meyering  <meyering@redhat.com>
47228
47229         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47230         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47231         a umask modification leak out of a subshell.  Otherwise, the
47232         opensolaris /bin/sh would be accepted and thus cause unwarranted
47233         failures in the coreutils test suite.
47234
47235 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47236
47237         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47238         to succeed.
47239
47240 2008-09-16  Jim Meyering  <meyering@redhat.com>
47241
47242         avoid spurious test failure when library is built without ACL support
47243         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47244         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47245         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47246         * tests/test-copy-acl.sh: Likewise.
47247
47248 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47249
47250         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47251         based on character occurrence counts.
47252
47253 2008-09-15  Eric Blake  <ebb9@byu.net>
47254
47255         tests: avoid some compiler warnings
47256         * tests/test-memchr.c (main): Pass NULL indirectly.
47257         * tests/test-closein.c (main): Avoid unused variable.
47258
47259 2008-09-15  Bruno Haible  <bruno@clisp.org>
47260
47261         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47262         are missing on OpenBSD 4.0 individually.
47263         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47264
47265 2008-09-15  Bruno Haible  <bruno@clisp.org>
47266
47267         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47268         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47269         * doc/posix-functions/perror.texi: Likewise.
47270         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47271         is missing.
47272         Reported by Eric Blake.
47273
47274         * lib/errno.in.h: Use replacement values >= 2000.
47275         Reported by Eric Blake.
47276
47277 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47278
47279         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47280         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47281         limit.
47282         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47283         compareseq was aborted.
47284
47285 2008-09-14  Bruno Haible  <bruno@clisp.org>
47286
47287         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47288         yvec_edit_count.
47289         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47290         (fstrcmp_bounded): Simplify result computation accordingly.
47291
47292 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47293
47294         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47295         (fstrcmp): Define in terms of fstrcmp_bounded.
47296         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47297         lower_bound argument.
47298         Return quickly if the result is certainly < lower_bound.
47299         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47300
47301 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47302
47303         * lib/diffseq.h (EARLY_ABORT): New macro.
47304         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47305         evaluates to true.
47306
47307 2008-09-14  Bruno Haible  <bruno@clisp.org>
47308
47309         * modules/perror-tests: New file.
47310         * tests/test-perror.sh: New file.
47311         * tests/test-perror.c: New file.
47312
47313         New module 'perror'.
47314         * lib/stdio.in.h (perror): New declaration.
47315         * lib/perror.c: New file.
47316         * m4/perror.m4: New file.
47317         * modules/perror: New file.
47318         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47319         * doc/posix-functions/perror.texi: Mention the perror module.
47320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47321         REPLACE_PERROR.
47322         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47323         REPLACE_PERROR.
47324
47325 2008-09-14  Bruno Haible  <bruno@clisp.org>
47326
47327         * modules/stdio (Makefile.am): Reorder to match the order in
47328         lib/stdio.in.h.
47329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47330
47331 2008-09-13  Bruno Haible  <bruno@clisp.org>
47332
47333         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47334
47335 2008-09-13  Bruno Haible  <bruno@clisp.org>
47336
47337         Extend strerror to cover the added errno values.
47338         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47339         (rpl_strerror): Provide error messages for the added errno values and
47340         for the WSA* values.
47341         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47342         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47343         strerror.
47344         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47345         * modules/strerror (Depends-on): Add errno.
47346         * doc/posix-functions/strerror.texi: Document the change.
47347         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47348         and EOVERFLOW.
47349
47350 2008-09-13  Bruno Haible  <bruno@clisp.org>
47351
47352         * modules/EOVERFLOW: Remove file.
47353         * m4/eoverflow.m4: Remove file.
47354         * modules/EOVERFLOW-tests: Remove file.
47355         * tests/test-EOVERFLOW.c: Remove file.
47356         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47357         * modules/ftell (Depends-on): Likewise.
47358         * modules/getdelim (Depends-on): Likewise.
47359         * modules/getugroups (Depends-on): Likewise.
47360         * modules/poll (Depends-on): Likewise.
47361         * modules/snprintf (Depends-on): Likewise.
47362         * modules/sprintf-posix (Depends-on): Likewise.
47363         * modules/vasnprintf (Depends-on): Likewise.
47364         * modules/vasprintf (Depends-on): Likewise.
47365         * modules/vfprintf-posix (Depends-on): Likewise.
47366         * modules/vsnprintf (Depends-on): Likewise.
47367         * modules/vsprintf-posix (Depends-on): Likewise.
47368         * modules/xvasprintf (Depends-on): Likewise.
47369         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47370         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47371         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47372         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47373         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47374         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47375         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47376         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47377         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47378         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47379         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47380         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47381         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47382         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47383         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47384         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47385         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47386         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47387         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47388         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47389         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47390         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47391         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47392         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47393         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47394         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47395         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47396         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47397         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47398         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47399         * MODULES.html.sh: Remove EOVERFLOW.
47400         * NEWS: Mention the change.
47401
47402 2008-09-13  Bruno Haible  <bruno@clisp.org>
47403
47404         * modules/errno-tests: New file.
47405         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47406
47407         * lib/errno.in.h: New file.
47408         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47409         * modules/errno: New file.
47410         * doc/posix-headers/errno.texi: Update documentation.
47411         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47412
47413 2008-09-13  Bruno Haible  <bruno@clisp.org>
47414
47415         * tests/test-poll.c: Use #if for native Windows, rather than testing
47416         __MSVCRT__.
47417
47418 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47419             Bruno Haible  <bruno@clisp.org>
47420
47421         * lib/glob.c: Don't include <pwd.h> on native Windows.
47422         (WINDOWS32): New macro.
47423         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47424
47425 2008-09-13  Bruno Haible  <bruno@clisp.org>
47426
47427         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47428         (ETIMEDOUT): Remove macro.
47429         (glthread_cond_timedwait_multithreaded): New declaration.
47430         (glthread_cond_timedwait): Use it.
47431         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47432         (glthread_cond_timedwait_multithreaded): New function.
47433
47434 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47435
47436         * modules/poll-tests: Do not check for io.h.
47437         * tests/test-poll.c: Check for __MSVCRT__ instead.
47438
47439 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47440
47441         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47442         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47443         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47444
47445 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47446
47447         * modules/poll-tests: New.
47448         * tests/test-poll.c: New.
47449
47450 2008-09-12  Eric Blake  <ebb9@byu.net>
47451
47452         frexp: test for NetBSD failure on -0.0
47453         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47454         not all, bugs from NetBSD 3.0 have been fixed.
47455         * doc/posix-functions/frexp.texi (frexp): Document bug.
47456         Reported by Thomas Klausner.
47457
47458         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47459         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47460         literal -0.0.
47461         Reported by Jonathan C. Patschke <jp@centtech.com>.
47462
47463 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47464
47465         * lib/glthread/cond.h: Use dummy implementation also if
47466         USE_WIN32_THREADS.
47467
47468 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47469
47470         * modules/fnmatch-posix (License): Change to LGPLv2+.
47471         * modules/fnmatch-gnu (License): Likewise.
47472
47473 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47474
47475         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47476
47477 2008-09-11  Jim Meyering  <meyering@redhat.com>
47478
47479         * users.txt: Add gtk-vnc.
47480
47481 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47482
47483         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47484         rotate amounts.
47485
47486         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47487         required for 16-bit and 8-bit rotates.
47488         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47489         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47490         UINT8_MAX instead of hard-coded constants.
47491         Suggested by Paul Eggert.
47492
47493 2008-09-07  Bruno Haible  <bruno@clisp.org>
47494
47495         * tests/test-striconveh.c (main): Check behaviour when converting from
47496         UTF-7.
47497
47498         Make striconveh work better with stateful encodings.
47499         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47500         that iconv does not increment the inptr when returning -1/EINVAL.
47501
47502 2008-09-07  Bruno Haible  <bruno@clisp.org>
47503
47504         * build-aux/config.rpath: Update according to libtool-2.2.6.
47505         * build-aux/config.libpath: Likewise.
47506
47507 2008-09-06  Bruno Haible  <bruno@clisp.org>
47508
47509         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47510         * lib/freadptr.c (freadptr): Likewise.
47511         * lib/freadseek.c (freadptrinc): Likewise.
47512         Reported by Simon Josefsson.
47513
47514 2008-09-06  Bruno Haible  <bruno@clisp.org>
47515
47516         * modules/freadptr (License): Change to LGPLv2+.
47517         * modules/freadseek (License): Likewise.
47518         Suggested by Eric Blake.
47519
47520         * modules/memchr2 (License): Change to LGPLv2+.
47521         Approved by Eric Blake.
47522
47523 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47524             Bruno Haible  <bruno@clisp.org>
47525
47526         Make gnulib-tool work with native 'sed' on AIX.
47527         * gnulib-tool (sed_noop): New variable.
47528         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47529         func_add_or_update, func_create_testdir): Use it to initialize sed
47530         script variables.
47531         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47532
47533 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47534             Bruno Haible  <bruno@clisp.org>
47535
47536         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47537         also works after #include directives.
47538
47539 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47540
47541         getdate.y: reject an out-of-range timezone value
47542         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47543         the range [-24...+24].  When specified with only one or two digits,
47544         * tests/test-getdate.c: Tests for the fix.
47545         * doc/getdate.texi: Document this change.
47546
47547 2008-09-03  Bruno Haible  <bruno@clisp.org>
47548
47549         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47550
47551 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47552
47553         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47554         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47555         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47556         Blake <ebb9@byu.net>.
47557
47558         * tests/test-bitrotate.c: Add more test vectors.
47559
47560 2008-09-02  Eric Blake  <ebb9@byu.net>
47561
47562         vasnprintf-posix: handle large precision via %.*d
47563         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47564         when handling it ourselves.
47565         * tests/test-vasnprintf-posix.c (test_function): Add test.
47566         * tests/test-snprintf-posix.h (test_function): Likewise.
47567         * tests/test-sprintf-posix.h (test_function): Likewise.
47568         * tests/test-vasprintf-posix.c (test_function): Likewise.
47569         Reported by Alain Guibert.
47570
47571 2008-09-01  Eric Blake  <ebb9@byu.net>
47572
47573         c-stack: make configure-time check more robust
47574         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47575         successful sigaction call.
47576         Reported by Tom G. Christensen.
47577
47578 2008-09-01  Bruno Haible  <bruno@clisp.org>
47579
47580         New module 'findprog-lgpl'.
47581         * modules/findprog-lgpl: New file.
47582         * lib/findprog-lgpl.c: New file.
47583         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47584         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47585         to decide whether to use strdup or xstrdup, concatenated_filename or
47586         xconcatenated_filename.
47587
47588 2008-09-01  Bruno Haible  <bruno@clisp.org>
47589
47590         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47591         'xconcat-filename' (GPL).
47592         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47593         (License): Change to LGPLv2+.
47594         * modules/xconcat-filename: New file.
47595         * lib/concat-filename.h (concatenated_filename): Change specification.
47596         (xconcatenated_filename): New declaration.
47597         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47598         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47599         memory situations.
47600         * lib/xconcat-filename.c: New file.
47601         * NEWS: Mention the change.
47602         * lib/findprog.c: Include concat-filename.h, not filename.h.
47603         (find_in_path): Use xconcatenated_filename instead of
47604         concatenated_filename.
47605         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47606         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47607         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47608         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47609         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47610         instead of concatenated_filename.
47611         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47612         (execute_java_class): Use xconcatenated_filename instead of
47613         concatenated_filename.
47614         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47615         * modules/javacomp (Depends-on): Likewise.
47616         * modules/javaexec (Depends-on): Likewise.
47617
47618 2008-09-01  Bruno Haible  <bruno@clisp.org>
47619
47620         Split module 'filename' into 'filename' and 'concat-filename'.
47621         * modules/filename: Keep only lib/filename.h.
47622         (License): Change to LGPLv2+.
47623         * modules/concat-filename: New file, extracted from modules/filename.
47624         * lib/filename.h (concatenated_filename): Remove declaration.
47625         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47626         * lib/concat-filename.c: Include concat-filename.h.
47627         * NEWS: Mention the change.
47628
47629 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47630
47631         * lib/bitrotate.h (rotl8, rotr8): Add.
47632
47633         * modules/bitrotate (configure.ac): Need
47634         AC_REQUIRE([AC_C_INLINE]).
47635         (Description): Mention stdint.h.  Reported by Bruno Haible
47636         <bruno@clisp.org>.
47637
47638         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47639         Paolo Bonzini <bonzini@gnu.org>.
47640
47641 2008-08-31  Bruno Haible  <bruno@clisp.org>
47642
47643         Assume Solaris specific bi-arch conventions on Solaris systems.
47644         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47645         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47646         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47647         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47648         like acl_libdirstem.
47649         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47650         acl_libdirstem.
47651         * NEWS: Mention the change.
47652         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47653
47654 2008-08-31  Jim Meyering  <meyering@redhat.com>
47655
47656         * lib/strftime.h: Add comments describing the two added arguments.
47657
47658         remove duplicate #include directives
47659         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47660         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47661
47662 2008-08-31  Bruno Haible  <bruno@clisp.org>
47663
47664         New module 'sigpipe-die'.
47665         * modules/sigpipe-die: New file.
47666         * lib/sigpipe-die.h: New file.
47667         * lib/sigpipe-die.c: New file.
47668         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47669
47670 2008-08-31  Bruno Haible  <bruno@clisp.org>
47671
47672         Don't override previously installed signal handlers.
47673         * lib/fatal-signal.c (saved_sigactions): New variable.
47674         (uninstall_handlers): Reset the signal to the saved handler, not
47675         to SIG_DFL (except when ignored).
47676         (install_handlers): Save the previous handlers.
47677
47678 2008-08-30  Bruno Haible  <bruno@clisp.org>
47679
47680         * gnulib-tool (func_reset_sigpipe): New function.
47681         (func_get_automake_snippet, func_modules_transitive_closure,
47682         func_import): Invoke it before a join command that reads from stdin,
47683         to avoid "echo: write error: Broken pipe" error messages on stderr.
47684         Reported by Sam Steingold <sds@gnu.org>.
47685
47686 2008-08-30  Bruno Haible  <bruno@clisp.org>
47687
47688         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47689         Code copied from m4/open.m4.
47690         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47691         access and the filename ends in a slash. Code copied from lib/open.c.
47692         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47693         * tests/test-fopen.c (main): Check against bug with trailing slash.
47694
47695 2008-08-29  Bruno Haible  <bruno@clisp.org>
47696
47697         Avoid some "gcc -pedantic" warnings.
47698         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47699         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47700         * lib/dirent.in.h: Likewise.
47701         * lib/fcntl.in.h: Likewise.
47702         * lib/float.in.h: Likewise.
47703         * lib/iconv.in.h: Likewise.
47704         * lib/inttypes.in.h: Likewise.
47705         * lib/locale.in.h: Likewise.
47706         * lib/math.in.h: Likewise.
47707         * lib/netinet_in.in.h: Likewise.
47708         * lib/search.in.h: Likewise.
47709         * lib/signal.in.h: Likewise.
47710         * lib/stdarg.in.h: Likewise.
47711         * lib/stdint.in.h: Likewise.
47712         * lib/stdio.in.h: Likewise.
47713         * lib/stdlib.in.h: Likewise.
47714         * lib/string.in.h: Likewise.
47715         * lib/strings.in.h: Likewise.
47716         * lib/sys_select.in.h: Likewise.
47717         * lib/sys_socket.in.h: Likewise.
47718         * lib/sys_stat.in.h: Likewise.
47719         * lib/sys_time.in.h: Likewise.
47720         * lib/sysexits.in.h: Likewise.
47721         * lib/time.in.h: Likewise.
47722         * lib/unistd.in.h: Likewise.
47723         * lib/wchar.in.h: Likewise.
47724         * lib/wctype.in.h: Likewise.
47725         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47726         * modules/fchdir (Makefile.am): Likewise.
47727         * modules/fcntl (Makefile.am): Likewise.
47728         * modules/float (Makefile.am): Likewise.
47729         * modules/iconv_open (Makefile.am): Likewise.
47730         * modules/inttypes (Makefile.am): Likewise.
47731         * modules/locale (Makefile.am): Likewise.
47732         * modules/math (Makefile.am): Likewise.
47733         * modules/netinet_in (Makefile.am): Likewise.
47734         * modules/search (Makefile.am): Likewise.
47735         * modules/signal (Makefile.am): Likewise.
47736         * modules/stdarg (Makefile.am): Likewise.
47737         * modules/stdint (Makefile.am): Likewise.
47738         * modules/stdio (Makefile.am): Likewise.
47739         * modules/stdlib (Makefile.am): Likewise.
47740         * modules/string (Makefile.am): Likewise.
47741         * modules/strings (Makefile.am): Likewise.
47742         * modules/sys_select (Makefile.am): Likewise.
47743         * modules/sys_socket (Makefile.am): Likewise.
47744         * modules/sys_stat (Makefile.am): Likewise.
47745         * modules/sys_time (Makefile.am): Likewise.
47746         * modules/sysexits (Makefile.am): Likewise.
47747         * modules/time (Makefile.am): Likewise.
47748         * modules/unistd (Makefile.am): Likewise.
47749         * modules/wchar (Makefile.am): Likewise.
47750         * modules/wctype (Makefile.am): Likewise.
47751         Reported by Reuben Thomas <rrt@sc3d.org>.
47752
47753 2008-08-29  Bruno Haible  <bruno@clisp.org>
47754
47755         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47756         any more.
47757
47758 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47759
47760         * MODULES.html.sh (Misc): Add bitrotate.
47761
47762         * modules/bitrotate: New file.
47763
47764         * lib/bitrotate.h: New file.
47765
47766         * modules/bitrotate-tests: New file.
47767
47768         * tests/test-bitrotate.c: New file.
47769
47770         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47771         on the bitrotate module.
47772
47773         * lib/arctwo.c: Use new bitrotate module.
47774
47775 2008-08-29  Jim Meyering  <meyering@redhat.com>
47776
47777         bootstrap: merge changes from coreutils
47778         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47779         of copied files.  Remove a kludge, now that this is fixed.
47780         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47781         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47782         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47783
47784 2008-08-29  Bruno Haible  <bruno@clisp.org>
47785
47786         * MODULES.html.sh: Remove --cvs-urls option.
47787
47788 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47789
47790         maint.mk: adjust to file name change
47791         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47792
47793 2008-08-28  Jim Meyering  <meyering@redhat.com>
47794
47795         * modules/getndelim2 (License): Relicense to LGPLv2+.
47796         Approved by Richard Stallman for the version of 1995, and by
47797         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47798
47799 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47800
47801         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47802         dummy if one is not available.  Do not touch them if
47803         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47804         (getc_maybe_unlocked): New.
47805         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47806
47807 2008-08-26  Eric Blake  <ebb9@byu.net>
47808
47809         doc/INSTALL: resync from autoconf
47810         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47811         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47812         moving...
47813         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47814         * INSTALL: Regenerate.
47815         * INSTALL.ISO: New file.
47816         * INSTALL.UTF-8: Likewise.
47817
47818 2008-08-26  Jim Meyering  <meyering@redhat.com>
47819
47820         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47821         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47822         these definitions conditional, so that they may be overridden, too.
47823
47824 2008-08-26  Bruno Haible  <bruno@clisp.org>
47825
47826         Generate INSTALL file variants with prettier quotes.
47827         * doc/Makefile (INSTALL_PRELUDE): New macro.
47828         (INSTALL): Use it.
47829         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47830
47831 2008-08-26  Bruno Haible  <bruno@clisp.org>
47832
47833         Run makeinfo in an English locale.
47834         * doc/Makefile (MAKEINFO): New variable.
47835
47836 2008-08-26  Bruno Haible  <bruno@clisp.org>
47837
47838         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47839         Suggested by Eric Blake.
47840
47841 2008-08-25  Bruno Haible  <bruno@clisp.org>
47842
47843         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47844
47845 2008-08-25  Eric Blake  <ebb9@byu.net>
47846
47847         c-stack: test that stack overflow can be caught
47848         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47849         that platform allows handling stack overflow; at least OS/2 EMX
47850         has sigaltstack, but crashes before transferring control to
47851         handler on stack overflow.
47852         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47853         check for HAVE_STACK_OVERFLOW_HANDLING.
47854         Reported by Elbert Pol.
47855
47856 2008-08-25  Bruno Haible  <bruno@clisp.org>
47857
47858         * doc/posix-functions/strftime.texi: Fix description of strftime
47859         module.
47860
47861 2008-08-24  Bruno Haible  <bruno@clisp.org>
47862
47863         * tests/uniwidth/test-uc_width2.c: New file.
47864         * tests/uniwidth/test-uc_width2.sh: New file.
47865         * modules/uniwidth/width-tests (Files): Add the new files.
47866         (TESTS): Add uniwidth/test-uc_width2.sh.
47867         (TESTS_ENVIRONMENT): New variable.
47868         (check_PROGRAMS): Add test-uc_width2.
47869         (test_uc_width2_SOURCES): New variable.
47870
47871         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47872         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47873         not 0x00AB.
47874         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47875
47876 2008-08-22  Eric Blake  <ebb9@byu.net>
47877
47878         test-lock, test-tls: mention why a test is skipped
47879         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47880         skipped.
47881         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47882
47883         count-one-bits: relax license
47884         * modules/count-one-bits (License): Relicense to LGPLv2+.
47885         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47886
47887 2008-08-22  Andreas Schwab  <schwab@suse.de>
47888
47889         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47890         Remove spurious space in assignment.
47891
47892 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47893
47894         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47895         Paul Eggert <eggert@CS.UCLA.EDU>.
47896
47897 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47898
47899         * modules/gettext: Add m4/threadlib.m4.
47900
47901 2008-08-19  Eric Blake  <ebb9@byu.net>
47902
47903         test-c-stack: fix compilation failure on FreeBSD 5.0
47904         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47905         headers before <sys/resource.h>.
47906         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47907         the bug.
47908         Reported by Nelson H. F. Beebe.
47909
47910         strverscmp: migrate from "strverscmp.h" to <string.h>
47911         * modules/string (Makefile.am): Add new hooks.
47912         * modules/strverscmp (Files): Remove strverscmp.h.
47913         (Depends-on): Add string.
47914         (configure.ac): Add indicator.
47915         (Include): Mention new header.
47916         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47917         defaults.
47918         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47919         results.
47920         * lib/strverscmp.h: Delete.
47921         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47922         * tests/test-strverscmp.c (includes): Adjust client.
47923         * lib/check-version.c (includes): Likewise.
47924         * NEWS: Document the change.
47925
47926         strverscmp: add unit test
47927         * modules/strverscmp-tests: New file.
47928         * tests/test-strverscmp.c: Likewise.
47929
47930 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47931
47932         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47933         regarding Windows crypto stuff, from Mono.
47934
47935 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47936
47937         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47938         if present, for intel RND.  Return error on failures.
47939
47940 2008-08-18  Ben Pfaff  <blp@gnu.org>
47941
47942         gitlog-to-changelog: give better diagnostic for failed pipe-open
47943         * build-aux/gitlog-to-changelog: Improve error message: suggest
47944         that the version of Git may be too old.
47945
47946 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47947
47948         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47949         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47950
47951 2008-08-18  Bruno Haible  <bruno@clisp.org>
47952
47953         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47954         pthread_in_use().
47955
47956 2008-08-18  Bruno Haible  <bruno@clisp.org>
47957
47958         * lib/glthread/threadlib.c: Include <pthread.h>.
47959
47960 2008-08-18  Bruno Haible  <bruno@clisp.org>
47961
47962         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47963         glthread_recursive_lock_* macros.
47964         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47965         Fix syntax error.
47966
47967 2008-08-18  Bruno Haible  <bruno@clisp.org>
47968
47969         * lib/glthread/thread.c: Avoid forcing a context switch right after
47970         thread creation.
47971
47972 2008-08-17  Bruno Haible  <bruno@clisp.org>
47973
47974         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47975         * lib/glthread/thread.h: Provide Win32 specific implementation.
47976         * modules/thread (Files): Add lib/glthread/thread.c.
47977         (Depends-on): Add lock.
47978         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47979
47980 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47981
47982         New module 'yield'.
47983         * modules/yield: New file.
47984         * lib/glthread/yield.h: New file.
47985         * m4/yield.m4: New file.
47986         * MODULES.html.sh (Multithreading): Add yield.
47987
47988 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47989
47990         New module 'thread'.
47991         * modules/thread: New file.
47992         * lib/glthread/thread.h: New file.
47993         * m4/thread.m4: New file.
47994         * MODULES.html.sh (Multithreading): Add thread.
47995
47996 2008-08-17  Bruno Haible  <bruno@clisp.org>
47997
47998         * lib/glthread/lock.h: Include <stdlib.h> always.
47999         * lib/glthread/tls.h: Likewise.
48000         * lib/glthread/cond.h: Likewise.
48001
48002 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48003
48004         New module 'cond'.
48005         * modules/cond: New file.
48006         * lib/glthread/cond.h: New file.
48007         * lib/glthread/cond.c: New file.
48008         * m4/cond.m4: New file.
48009         * MODULES.html.sh (Multithreading): Add cond.
48010
48011 2008-08-16  Eric Blake  <ebb9@byu.net>
48012
48013         c-stack: fix regression on Irix 5.3 from 2008-06-21
48014         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48015         sa_sigaction...
48016         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48017         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48018         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48019         * modules/signal (Makefile.am): Use the value.
48020         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48021         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48022         * doc/posix-headers/signal.texi (signal.h): Document this
48023         portability issue.
48024         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48025         Reported by Tom G. Christensen.
48026
48027 2008-08-17  Bruno Haible  <bruno@clisp.org>
48028
48029         New module 'threadlib'.
48030         * modules/threadlib: New file.
48031         * lib/glthread/threadlib.c: New file, extracted from
48032         lib/glthread/lock.c.
48033         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48034         functions.
48035         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48036         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48037         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48038         macros.
48039         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48040         (gl_DISABLE_THREADS): Remove macro.
48041         * modules/lock (Files): Remove build-aux/config.rpath.
48042         (Depends-on): Remove havelib. Add threadlib.
48043         (configure.ac-early): Remove section.
48044         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48045         * modules/tls (Depends-on): Remove lock. Add threadlib.
48046         (Link): New section, copied from threadlib.
48047         * MODULES.html.sh (Multithreading): Add threadlib.
48048
48049 2008-08-14  Bruno Haible  <bruno@clisp.org>
48050
48051         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48052         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48053         glthread_rwlock_unlock, glthread_rwlock_destroy,
48054         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48055         glthread_recursive_lock_destroy): Define as macros always.
48056         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48057         glthread_lock_lock.
48058         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48059         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48060         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48061         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48062         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48063         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48064         (glthread_recursive_lock_lock_func): Renamed from
48065         glthread_recursive_lock_lock.
48066         (glthread_recursive_lock_unlock_func): Renamed from
48067         glthread_recursive_lock_unlock.
48068         (glthread_recursive_lock_destroy_func): Renamed from
48069         glthread_recursive_lock_destroy.
48070
48071 2008-08-14  Bruno Haible  <bruno@clisp.org>
48072
48073         * lib/glthread/lock.h: Renamed from lib/lock.h.
48074         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48075         * lib/glthread/tls.h: Renamed from lib/tls.h.
48076         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48077         * lib/fstrcmp.c: Update includes.
48078         * lib/strsignal.c: Update includes.
48079         * modules/lock (Files, Makefile.am): Update.
48080         (Include): Change to "glthread/lock.h".
48081         * modules/tls (Files, Makefile.am): Update.
48082         (Include): Change to "glthread/tls.h".
48083         * tests/test-lock.c: Update includes.
48084         * tests/test-tls.c: Update includes.
48085         * NEWS: Mention the renamed header files.
48086
48087 2008-08-11  Jim Meyering  <meyering@redhat.com>
48088
48089         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48090
48091 2008-08-11  Eric Blake  <ebb9@byu.net>
48092
48093         test-c-stack: avoid C99-ism
48094         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48095         before statement.
48096         Reported by Alain Guibert.
48097
48098 2008-08-10  Jim Meyering  <meyering@redhat.com>
48099
48100         ensure that return value of uinttostr et al are not ignored
48101         * lib/inttostr.h (__GNUC_PREREQ): Define.
48102         (__attribute_warn_unused_result__): Define.
48103         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48104
48105 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48106
48107         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48108         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48109
48110 2008-08-07  Jim Meyering  <meyering@redhat.com>
48111
48112         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48113
48114         * modules/mkstemp (License): Relicense under LGPLv2+.
48115         * modules/tempname (License): Likewise.
48116
48117 2008-08-06  Bruno Haible  <bruno@clisp.org>
48118
48119         * lib/poll.c (poll): Further micro-optimization.
48120
48121 2008-08-06  Jim Meyering  <meyering@redhat.com>
48122
48123         inet_pton.c: use locale-independent tolower
48124         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48125         (inet_pton6): Use c_tolower rather than tolower.
48126         * modules/inet_pton (Depends-on): Add c-ctype.
48127
48128 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48129
48130         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48131         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48132
48133 2008-08-06  Jim Meyering  <meyering@redhat.com>
48134
48135         * modules/inet_pton (License): Relicense under LGPLv2+.
48136
48137 2008-08-03  Bruno Haible  <bruno@clisp.org>
48138
48139         Additional non-aborting API for lock and tls.
48140         * lib/lock.h: Include <errno.h>.
48141         (glthread_lock_init): New macro/function.
48142         (gl_lock_init): Define as wrapper around glthread_lock_init.
48143         (glthread_lock_lock): New macro/function.
48144         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48145         (glthread_lock_unlock): New macro/function.
48146         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48147         (glthread_lock_destroy): New macro/function.
48148         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48149         (glthread_rwlock_init): New macro/function.
48150         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48151         (glthread_rwlock_rdlock): New macro/function.
48152         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48153         (glthread_rwlock_wrlock): New macro/function.
48154         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48155         (glthread_rwlock_unlock): New macro/function.
48156         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48157         (glthread_rwlock_destroy): New macro/function.
48158         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48159         (glthread_recursive_lock_init): New macro/function.
48160         (gl_recursive_lock_init): Define as wrapper around
48161         glthread_recursive_lock_init.
48162         (glthread_recursive_lock_lock): New macro/function.
48163         (gl_recursive_lock_lock): Define as wrapper around
48164         glthread_recursive_lock_lock.
48165         (glthread_recursive_lock_unlock): New macro/function.
48166         (gl_recursive_lock_unlock): Define as wrapper around
48167         glthread_recursive_lock_unlock.
48168         (glthread_recursive_lock_destroy): New macro/function.
48169         (gl_recursive_lock_destroy): Define as wrapper around
48170         glthread_recursive_lock_destroy.
48171         (glthread_once): New macro/function.
48172         (gl_once): Define as wrapper around glthread_once.
48173         Update function declarations.
48174         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48175         glthread_rwlock_init. Return error code.
48176         (glthread_rwlock_rdlock_multithreaded): Renamed from
48177         glthread_rwlock_rdlock. Return error code.
48178         (glthread_rwlock_wrlock_multithreaded): Renamed from
48179         glthread_rwlock_wrlock. Return error code.
48180         (glthread_rwlock_unlock_multithreaded): Renamed from
48181         glthread_rwlock_unlock. Return error code.
48182         (glthread_rwlock_destroy_multithreaded): Renamed from
48183         glthread_rwlock_destroy. Return error code.
48184         (glthread_recursive_lock_init_multithreaded): Renamed from
48185         glthread_recursive_lock_init. Return error code.
48186         (glthread_recursive_lock_lock_multithreaded): Renamed from
48187         glthread_recursive_lock_lock. Return error code.
48188         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48189         glthread_recursive_lock_unlock. Return error code.
48190         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48191         glthread_recursive_lock_destroy. Return error code.
48192         (glthread_once_call): Make static.
48193         (glthread_once_multithreaded): Renamed from glthread_once.
48194         * lib/tls.h: Include <errno.h>.
48195         (glthread_tls_key_init): New macro/function.
48196         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48197         (glthread_tls_set): New macro/function.
48198         (gl_tls_set): Define as wrapper around glthread_tls_set.
48199         (glthread_tls_key_destroy): New macro/function.
48200         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48201         Update function declarations.
48202         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48203         glthread_tls_get.
48204         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48205
48206 2008-08-04  Eric Blake  <ebb9@byu.net>
48207
48208         gnumakefile: use space, not TAB, outside of targets
48209         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48210
48211 2008-08-02  Jim Meyering  <meyering@redhat.com>
48212
48213         getdate.y: avoid locale-dependent date parsing failure
48214         In Turkish locales, getdate would fail to recognize keywords
48215         containing a lowercase "i".  The solution is not to rely on
48216         locale-sensitive case-conversion.
48217         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48218         (lookup_word): Use c_toupper in place of toupper.
48219         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48220         Reported by Vefa Bicakci <bicave@superonline.com> in
48221         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48222         * modules/getdate (Depends-on): Add c-ctype.
48223
48224 2008-08-02  Bruno Haible  <bruno@clisp.org>
48225
48226         * gnulib-tool (func_import): When updating or creating a .gitignore
48227         file, prepend each added line with a slash, and ignore leading slashes
48228         from the existing lines.
48229         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48230
48231 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48232
48233         Portability fix for GNU make 3.79.1.
48234         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48235         versions do not understand.
48236
48237 2008-08-01  Bruno Haible  <bruno@clisp.org>
48238
48239         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48240         * tests/test-isnanf.h (zero): New variable.
48241         (main): Avoid literal -0.0f.
48242         * tests/test-isnand.h (zero): New variable.
48243         (main): Avoid literal -0.0.
48244         * tests/test-isnanl.h (zero): New variable.
48245         (main): Avoid literal -0.0L.
48246         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48247         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48248         -0.0, -0.0L.
48249         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48250         (test_signbitd): Avoid literal -0.0.
48251         (test_signbitl): Avoid literal -0.0L.
48252         * tests/test-ceilf1.c (zero): New variable.
48253         (main): Avoid literal -0.0f.
48254         * tests/test-ceill.c (zero): New variable.
48255         (main): Avoid literal -0.0L.
48256         * tests/test-floorf1.c (zero): New variable.
48257         (main): Avoid literal -0.0f.
48258         * tests/test-floorl.c (zero): New variable.
48259         (main): Avoid literal -0.0L.
48260         * tests/test-roundf1.c (zero): New variable.
48261         (main): Avoid literal -0.0f.
48262         * tests/test-round1.c (zero): New variable.
48263         (main): Avoid literal -0.0.
48264         * tests/test-roundl.c (zero): New variable.
48265         (main): Avoid literal -0.0L.
48266         * tests/test-truncf1.c (zero): New variable.
48267         (main): Avoid literal -0.0f.
48268         * tests/test-trunc1.c (zero): New variable.
48269         (main): Avoid literal -0.0.
48270         * tests/test-truncl.c (zero): New variable.
48271         (main): Avoid literal -0.0L.
48272         * tests/test-frexp.c (zero): New variable.
48273         (main): Avoid literal -0.0.
48274         * tests/test-frexpl.c (zero): New variable.
48275         (main): Avoid literal -0.0L.
48276         * tests/test-ldexpl.c (zero): New variable.
48277         (main): Avoid literal -0.0L.
48278         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48279         (zerod, zerol): New variables.
48280         (test_function): Avoid literals -0.0, -0.0L.
48281         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48282         (zerod, zerol): New variables.
48283         (test_function): Avoid literals -0.0, -0.0L.
48284         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48285         (zerod, zerol): New variables.
48286         (test_function): Avoid literals -0.0, -0.0L.
48287         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48288         (zerod, zerol): New variables.
48289         (test_function): Avoid literals -0.0, -0.0L.
48290         * tests/test-strtod.c (zero): New variable.
48291         (main): Avoid literal -0.0.
48292         Reported by Jonathan C. Patschke <jp@centtech.com>.
48293
48294 2008-07-31  Jim Meyering  <meyering@redhat.com>
48295
48296         sha256.h: correct definition of SHA224_DIGEST_SIZE
48297         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48298         Reported by Paulie Pena IV <paulie4@gmail.com>.
48299         Define as 224 / 8, rather than as a literal.
48300         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48301         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48302         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48303
48304 2008-07-31  Bruno Haible  <bruno@clisp.org>
48305
48306         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48307         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48308         Reported by Jonathan Patschke <jp@centtech.com>.
48309
48310 2008-07-31  Bruno Haible  <bruno@clisp.org>
48311
48312         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48313         Reported by Paolo Bonzini <bonzini@gnu.org>.
48314
48315 2008-07-30  Eric Blake  <ebb9@byu.net>
48316
48317         test-strtod: allow compilation without -lm
48318         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48319         Reported by Dennis Clarke <blastwave@gmail.com>.
48320
48321 2008-07-28  Jim Meyering  <meyering@redhat.com>
48322
48323         bootstrap: work also when there are no .po files in po/
48324         * build-aux/bootstrap (update_po_files): Complete the change
48325         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48326
48327 2008-07-27  Jim Meyering  <meyering@redhat.com>
48328
48329         * users.txt: Add zile.
48330
48331 2008-07-26  Ben Pfaff  <blp@gnu.org>
48332
48333         Add missing dependencies on new m4/exponent[fdl].m4 files.
48334         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48335         * modules/isnand-nolibm: Add m4/exponentd.m4.
48336         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48337         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48338         m4/isnan[fdl].m4, because the macros actually used moved.
48339         Reported by Jim Meyering.
48340
48341 2008-07-14  Ben Pfaff  <blp@gnu.org>
48342
48343         Add isinf module.
48344         * lib/isinf.c: New file.
48345         * lib/math.in.h: Define isinf macro if we have decided to replace
48346         it.
48347         * m4/isinf.m4: New file.
48348         * m4/math_h.m4: Initialize and substitute variables for isinf
48349         module.
48350         * modules/isinf: New file.
48351         * modules/isinf-tests: New file.
48352         * modules/math: Add substitutions for new module.
48353         * tests/test-isinf.c: New file.
48354         * doc/posix-functions/isinf.texi: Mention new module.
48355         * MODULES.html.sh: Mention new module.
48356
48357 2008-07-14  Ben Pfaff  <blp@gnu.org>
48358
48359         Factor out some macros for use by additional modules.
48360         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48361         exponentf.m4.
48362         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48363         exponentd.m4.
48364         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48365         file exponentl.m4.
48366         * m4/exponentf.m4: New file.
48367         * m4/exponentd.m4: New file.
48368         * m4/exponentl.m4: New file.
48369         * modules/isnanf: Use new file m4/exponentf.m4.
48370         * modules/isnand: Use new file m4/exponentd.m4.
48371         * modules/isnanl: Use new file m4/exponentl.m4.
48372
48373 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48374
48375         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48376         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48377         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48378         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48379
48380         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48381         readlink on platforms without PATH_MAX.
48382
48383 2008-07-21  Eric Blake  <ebb9@byu.net>
48384
48385         Warn, not fail, on stale version.
48386         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48387
48388         Don't allow installation with stale devel version number.
48389         * top/GNUmakefile (_is-install-target): New macro.
48390         (_curr-ver): Forbid installation with stale version number.
48391
48392 2008-07-20  Bruno Haible  <bruno@clisp.org>
48393
48394         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48395         TESTS_ENVIRONMENT.
48396         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48397
48398 2008-07-20  Bruno Haible  <bruno@clisp.org>
48399
48400         * lib/c-stack.h (c_stack_action): Add documentation.
48401         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48402
48403 2008-07-20  Bruno Haible  <bruno@clisp.org>
48404
48405         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48406         * modules/readlink (License): Likewise.
48407
48408 2008-07-17  Eric Blake  <ebb9@byu.net>
48409
48410         * modules/c-stack (Link): Fix typo.
48411
48412         Make c-stack use libsigsegv, when available.
48413         * modules/c-stack (Depends-on): Add libsigsegv.
48414         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48415         needed.
48416         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48417         (segv_handler, overflow_handler, c_stack_action)
48418         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48419         implementation when libsigsegv is available, but only when using
48420         the library is necessary.
48421         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48422         comment, explaining why XSI check fails on Linux.
48423         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48424         * tests/test-c-stack2.sh: Tweak skip message.
48425         * NEWS: Document new link-time requirements.
48426
48427 2008-07-16  Eric Blake  <ebb9@byu.net>
48428
48429         c-stack: Expose false positives when not using libsigsegv.
48430         * modules/c-stack-tests (Files): Expand test.
48431         * tests/test-c-stack.c (main): Add means to conditionally trigger
48432         non-overflow SIGSEGV.
48433         * tests/test-c-stack2.sh: New file.
48434
48435 2008-07-14  Bruno Haible  <bruno@clisp.org>
48436
48437         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48438         Reported by Eric Blake.
48439
48440 2008-07-14  Sam Steingold  <sds@gnu.org>
48441             Bruno Haible  <bruno@clisp.org>
48442
48443         New module libsigsegv.
48444         * modules/libsigsegv: New file.
48445         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48446         modifications.
48447         * MODULES.html.sh (Signal handling): New section.
48448
48449 2008-07-14  Bruno Haible  <bruno@clisp.org>
48450
48451         * modules/unictype/ctype-* (Description): Add the word "function".
48452         Improves the resulting doc in MODULES.html.
48453
48454 2008-07-12  Ben Pfaff  <blp@gnu.org>
48455
48456         Add longlong module.
48457         * modules/longlong: New file.
48458
48459 2008-07-12  Bruno Haible  <bruno@clisp.org>
48460
48461         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48462         to empty.
48463
48464 2008-07-10  Ben Pfaff  <blp@gnu.org>
48465
48466         Add isnan module.
48467         * doc/posix-functions/isnan.texi: Mention new module.
48468         * lib/math.in.h: Define isnan macro if we have decided to replace
48469         it.
48470         * m4/isnan.m4: New file.
48471         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48472         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48473         also.
48474         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48475         redundancy.
48476         * m4/math_h.m4: Initialize and substitute variables for isnan
48477         module.
48478         * modules/isnan: New file.
48479         * modules/isnan-tests: New file.
48480         * modules/math: Add substitutions for new module.
48481         * tests/test-isnan.c: New file.
48482         * MODULES.html.sh: Mention new module.
48483
48484 2008-07-10  Ben Pfaff  <blp@gnu.org>
48485
48486         Add isnanf module.
48487         * lib/isnanf.m4: New file.
48488         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48489         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48490         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48491         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48492         * modules/isnanf: New file.
48493         * modules/isnanf-tests: New file.
48494         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48495         files.
48496         * tests/test-isnanf-nolibm.c: factored most of its contents into
48497         new file tests/test-isnanf.h.
48498         * tests/test-isnanf.h: New file.
48499         * tests/test-isnanf.c: New file.
48500         * MODULES.html.sh: Mention new module.
48501         * doc/glibc-functions/isnanf.texi: Mention new module.
48502
48503 2008-07-10  Ben Pfaff  <blp@gnu.org>
48504
48505         Add isnand module.
48506         * lib/isnand.h: New file.
48507         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48508         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48509         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48510         functionality also.
48511         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48512         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48513         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48514         * modules/isnand: New file.
48515         * modules/isnand-tests: New file.
48516         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48517         files.
48518         * tests/test-isnand-nolibm.c: factored most of its contents into
48519         new file tests/test-isnand.h.
48520         * tests/test-isnand.h: New file.
48521         * tests/test-isnand.c: New file.
48522         * MODULES.html.sh: Mention new module.
48523
48524 2008-07-10  Ben Pfaff  <blp@gnu.org>
48525
48526         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48527         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48528         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48529         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48530         * modules/isnanf-nolibm: Update references to renamed files.
48531         * modules/isnand-nolibm: Likewise.
48532         * modules/isnanf-nolibm-tests: Likewise.
48533         * modules/isnand-nolibm-tests: Likewise.
48534         * lib/frexp.c: Likewise.
48535         * lib/isfinite.c: Likewise.
48536         * lib/signbitd.c: Likewise.
48537         * lib/signbitf.c: Likewise.
48538         * lib/vasnprintf.c: Likewise.
48539         * tests/test-ceilf1.c: Likewise.
48540         * tests/test-ceilf2.c: Likewise.
48541         * tests/test-floorf1.c: Likewise.
48542         * tests/test-floorf2.c: Likewise.
48543         * tests/test-frexp.c: Likewise.
48544         * tests/test-round1.c: Likewise.
48545         * tests/test-round2.c: Likewise.
48546         * tests/test-roundf1.c: Likewise.
48547         * tests/test-strtod.c: Likewise.
48548         * tests/test-trunc1.c: Likewise.
48549         * tests/test-trunc2.c: Likewise.
48550         * tests/test-truncf1.c: Likewise.
48551         * tests/test-truncf2.c: Likewise.
48552         * NEWS: Mention the renamed header files.
48553
48554 2008-07-11  Jim Meyering  <meyering@redhat.com>
48555
48556         vc-list-files: make the last-resort awk code more portable
48557         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48558         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48559         does not support it.
48560
48561 2008-07-10  Eric Blake  <ebb9@byu.net>
48562
48563         Work with tar's bootstrap.
48564         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48565         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48566         an m4 comment.
48567
48568 2008-07-09  Jim Meyering  <meyering@redhat.com>
48569
48570         posix-shell.m4: fix typo that made this test malfunction
48571         * m4/posix-shell.m4: Remove capitalization in variable name.
48572
48573 2008-07-08  Bruno Haible  <bruno@clisp.org>
48574
48575         * m4/onceonly.m4: Update comments.
48576         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48577
48578 2008-07-04  Jim Meyering  <meyering@redhat.com>
48579
48580         * users.txt: Add vc-dwim.
48581         (bison, coreutils): Use the gitweb URL.
48582
48583 2008-07-03  Jim Meyering  <meyering@redhat.com>
48584
48585         * users.txt: Add libffcall.  From Sam Steingold.
48586
48587 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48588
48589         getdate.y: do not ignore TZ with relative day, month or year offset
48590         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48591         relative-date-handling, since otherwise, the latter would clobber the
48592         sole output (an updated Start value) of the tz-handling block.
48593         * tests/test-getdate.c: Tests for the fix
48594
48595 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48596
48597         Recognize 'foo_LIBRARIES += libgnu.a'.
48598         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48599         makefile snippet has already specified an installation location,
48600         also using '+='.
48601
48602 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48603
48604         getdate.y: factor out common actions
48605         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48606         Use them in place of open-coded actions.
48607
48608 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48609
48610         Add self-test for getdate module.
48611         * modules/getdate-tests: New file.
48612         * tests/test-getdate.c: New file.
48613
48614 2008-06-29  Bruno Haible  <bruno@clisp.org>
48615
48616         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48617         .gitignore.
48618         Reported by Sylvain Beucler <beuc@beuc.net>.
48619
48620 2008-06-29  Bruno Haible  <bruno@clisp.org>
48621
48622         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48623         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48624
48625 2008-06-29  Bruno Haible  <bruno@clisp.org>
48626
48627         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48628         EXTRA_DIST.
48629         Reported by Sylvain Beucler <beuc@beuc.net>.
48630
48631 2008-06-26  Jim Meyering  <meyering@redhat.com>
48632
48633         make several modules depend on the "open" module
48634         This provides slightly increased consistency when opening-for-write
48635         the name of a non-directory spelled with a trailing slash.
48636         * modules/chdir-safer: Likewise.
48637         * modules/chown: Likewise.
48638         * modules/clean-temp: Likewise.
48639         * modules/copy-file: Likewise.
48640         * modules/fchdir: Likewise.
48641         * modules/fcntl-safer: Likewise.
48642         * modules/pipe: Likewise.
48643         * modules/utime: Likewise.
48644         Prompted by Eric Blake and Bruno Haible.
48645
48646 2008-06-24  Andreas Schwab  <schwab@suse.de>
48647
48648         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48649         literals can be used as initializers for global variables.
48650
48651 2008-06-23  Eric Blake  <ebb9@byu.net>
48652
48653         Make gnulib-cache.m4 easier to diff.
48654         * gnulib-tool (func_import): Allow newlines when reading cached
48655         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48656
48657 2008-06-23  Bruno Haible  <bruno@clisp.org>
48658
48659         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48660         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48661         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48662         m4/signalblocking.m4.
48663         (gl_PREREQ_SIGACTION): Don't invoke it.
48664         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48665         gl_PREREQ_SIG_HANDLER_H.
48666         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48667         Don't check for sigaction here.
48668
48669 2008-06-23  Bruno Haible  <bruno@clisp.org>
48670
48671         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48672         (install_handlers): Don't set the SA_RESETHAND flag.
48673
48674 2008-06-23  Bruno Haible  <bruno@clisp.org>
48675
48676         * m4/sigaction.m4: Comment fixes.
48677         * lib/signal.in.h: Likewise.
48678
48679 2008-06-23  Eric Blake  <ebb9@byu.net>
48680
48681         Fix typo.
48682         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48683
48684         Avoid SA_ namespace.
48685         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48686         Reported by Ralf Wildenhues.
48687
48688         Avoid test failure due to SA_RESTORER.
48689         * tests/test-sigaction.c (SA_MASK): New macro.
48690         (main): Avoid failing due to extension flags being set.
48691         Reported by Jim Meyering.
48692
48693         Revert use of sig-handler.h in sigprocmask.c.
48694         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48695         it requires the existence of struct sigaction.
48696         * lib/sigprocmask.c (handler_t): Restore typedef.
48697         (rpl_signal, old_handlers): Use local type.
48698
48699 2008-06-22  Bruno Haible  <bruno@clisp.org>
48700
48701         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48702         conditionally.
48703         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48704
48705 2008-06-22  Bruno Haible  <bruno@clisp.org>
48706
48707         * doc/posix-functions/siginterrupt.texi: Move note.
48708
48709         * lib/signal.in.h (SA_RESTART): New macro.
48710         * lib/sigaction.c: Update comment.
48711
48712         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48713
48714         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48715         (gl_PREREQ_SIGPROCMASK): Invoke it.
48716         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48717
48718         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48719
48720         * lib/sigprocmask.c: Update a comment.
48721
48722 2008-06-21  Eric Blake  <ebb9@byu.net>
48723
48724         Use sigaction module rather than signal().
48725         * modules/c-stack (Depends-on): Add sigaction.
48726         * modules/fatal-signal (Depends-on): Likewise.
48727         * modules/nanosleep (Depends-on): Likewise.
48728         * modules/sigprocmask (Files): Add sig-handler.h.
48729         * modules/sigaction (Files): Likewise.
48730         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48731         Eggert.
48732         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48733         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48734         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48735         (init_fatal_signals): Likewise.
48736         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48737         (siginterrupt): Delete fallback.
48738         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48739         instead.
48740         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48741         siginterrupt.
48742
48743         New module sigaction, for mingw.
48744         * modules/sigaction: New module...
48745         * modules/sigaction-tests: ...and its test.
48746         * m4/sigaction.m4: New file.
48747         * lib/sigaction.c: Likewise.
48748         * tests/test-sigaction.c: Likewise.
48749         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48750         * modules/signal (Makefile.am): Likewise.
48751         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48752         needed.
48753         * doc/posix-headers/signal.texi (signal.h): Mention provided
48754         types.
48755         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48756         that sigaction is preferable.
48757         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48758         module.
48759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48760         sigaction.
48761
48762         Improve robustness of sigprocmask by overriding signal.
48763         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48764         is in use.
48765         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48766         (SIGKILL, SIGSTOP): Provide fallbacks.
48767         (rpl_signal): Implement.
48768         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48769         signal can be called inside handlers.
48770
48771         Fix nanosleep module on mingw.
48772         * modules/nanosleep (Depends-on): Add sys_select.
48773         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48774
48775         Fix licensing of sigprocmask.
48776         * modules/raise (License): Relicense as LGPL.
48777
48778 2008-06-21  Bruno Haible  <bruno@clisp.org>
48779
48780         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48781         result if it contains question marks.
48782         Reported by Michael Geng <linux@michaelgeng.de>.
48783
48784 2008-06-19  Bruno Haible  <bruno@clisp.org>
48785
48786         Fix CVS-ism.
48787         * doc/gnulib.texi: Include updated-stamp.texi.
48788         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48789         (updated-stamp.texi): New rule.
48790         (gnulib.info): Depend on it.
48791         * doc/.gitignore: Add updated-stamp.texi.
48792         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48793
48794 2008-06-19  Bruno Haible  <bruno@clisp.org>
48795
48796         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48797         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48798
48799 2008-06-19  Eric Blake  <ebb9@byu.net>
48800
48801         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48802         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48803         Reported by Stepan Kasal.
48804
48805 2008-06-18  Bruno Haible  <bruno@clisp.org>
48806
48807         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48808         Reported by Eric Blake.
48809
48810 2008-06-18  Eric Blake  <ebb9@byu.net>
48811
48812         Work around cygwin 1.5.25 strsignal bug.
48813         * tests/test-strsignal.c: Allow for const char *.
48814         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48815
48816 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48817
48818         * users.txt: Update URL to article and add author/date
48819         information.
48820
48821 2008-06-17  Bruno Haible  <bruno@clisp.org>
48822
48823         New macro gl_DISABLE_THREADS.
48824         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48825         if the user did not pass --enable-threads or --disable-threads option.
48826         (gl_DISABLE_THREADS): New macro.
48827         Reported by Eric Blake <ebb9@byu.net>.
48828
48829 2008-06-17  Bruno Haible  <bruno@clisp.org>
48830
48831         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48832         when the macro ignores it.
48833         Based on a patch by Eric Blake <ebb9@byu.net>.
48834
48835 2008-06-17  Bruno Haible  <bruno@clisp.org>
48836
48837         * modules/tls (License): Change to LGPLv2+.
48838         Reported by Eric Blake.
48839
48840 2008-06-17  Eric Blake  <ebb9@byu.net>
48841
48842         Simplify c-stack prerequisites.
48843         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48844         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48845         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48846         check.
48847         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48848         <sys/resource.h>.
48849
48850         Move c-stack test into testsuite.
48851         * modules/c-stack-tests: New file.
48852         * lib/c-stack.c [DEBUG]: Move test program...
48853         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48854         fail test if sigaltstack is lacking.
48855         * tests/test-c-stack.sh: New driver file.
48856
48857 2008-06-16  Eric Blake  <ebb9@byu.net>
48858
48859         Use raise module consistently.
48860         * modules/fatal-signal (Depends-on): Add raise.
48861         * modules/sigprocmask (Depends-on): Likewise.
48862         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48863         * lib/sigprocmask.c (sigprocmask): Likewise.
48864         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48865         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48866
48867         Fix compliance bug in sigpending.
48868         * lib/sigprocmask.c (sigpending): Return pending array via
48869         parameter, not return value.
48870
48871 2008-06-14  Eric Blake  <ebb9@byu.net>
48872
48873         Improve obstack-printf test code.
48874         * tests/test-obstack-printf.c (test_function): Fix comment, and
48875         simplify usage of obstack_* in macros.  Add a test for coverage.
48876         Reported by Bruno Haible.
48877
48878 2008-06-14  Bruno Haible  <bruno@clisp.org>
48879
48880         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48881         array size as a constant, not as a const variable.
48882         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48883         AC_USE_SYSTEM_EXTENSIONS.
48884         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48885         Test whether the obstack_printf function actually exists.
48886         * modules/obstack-printf (Depends-on): Add extensions.
48887         (Include): Remove obstack.h.
48888         * modules/obstack-printf-posix (Depends-on): Add extensions.
48889         (Include): Remove obstack.h.
48890
48891 2008-06-13  Eric Blake  <ebb9@byu.net>
48892
48893         Add obstack-printf and obstack-printf-posix modules.
48894         * modules/obstack-printf: New file.
48895         * modules/obstack-printf-posix: Likewise.
48896         * MODULES.html.sh (Misc): Mention them.
48897         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48898         Likewise.
48899         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48900         Likewise.
48901         * modules/stdio (Makefile.am): Accomodate new modules.
48902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48903         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48904         Declare.
48905         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48906         functions.
48907         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48908         (gl_REPLACE_OBSTACK_PRINTF): New macros
48909         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48910         * tests/test-obstack-printf.c: New file.
48911         * modules/obstack-printf-tests: Likewise.
48912         * modules/obstack-printf-posix-tests: Likewise.
48913
48914 2008-06-11  Bruno Haible  <bruno@clisp.org>
48915
48916         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48917         * lib/open.c: Include errno.h.
48918         (open): Fail when attempting to write to a file that has a trailing
48919         slash.
48920         * tests/test-open.c (main): Test against trailing slash bug.
48921         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48922
48923 2008-06-10  Bruno Haible  <bruno@clisp.org>
48924
48925         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48926         for $? to work inside the trap command, with various /bin/sh-s.
48927         * tests/test-vc-list-files-cvs.sh: Likewise.
48928
48929 2008-06-10  Bruno Haible  <bruno@clisp.org>
48930
48931         * lib/acl-internal.h: Don't include gettext.h here.
48932         * lib/set-mode-acl.c: Include gettext.h here.
48933         * lib/copy-acl.c: Likewise.
48934
48935 2008-06-10  Bruno Haible  <bruno@clisp.org>
48936
48937         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48938         * lib/wait-process.c (wait_subprocess): Likewise.
48939         * lib/execute.h (execute): Add termsigp argument.
48940         * lib/execute.c (execute): Likewise.
48941         * lib/csharpcomp.c (compile_csharp_using_pnet,
48942         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48943         * lib/csharpexec.c (execute_csharp_using_pnet,
48944         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48945         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48946         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48947         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48948         is_jikes_present): Update.
48949         * lib/javaexec.c (execute_java_class): Update.
48950         * lib/javaversion.c (execute_and_read_line): Update.
48951         * NEWS: Document the changes.
48952         Reported by Eric Blake.
48953
48954 2008-06-10  Eric Blake  <ebb9@byu.net>
48955
48956         Add missing include.
48957         * tests/test-strstr.c (includes): Add <signal.h>.
48958         * tests/test-strcasestr.c (includes): Likewise.
48959         * tests/test-memmem.c (includes): Likewise.
48960
48961 2008-06-10  Bruno Haible  <bruno@clisp.org>
48962
48963         * lib/wait-process.c (wait_subprocess): Add an assertion.
48964
48965 2008-06-10  Bruno Haible  <bruno@clisp.org>
48966
48967         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48968
48969 2008-06-10  Bruno Haible  <bruno@clisp.org>
48970
48971         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48972         using alarm().
48973         * tests/test-strcasestr.c (main): Likewise.
48974         * tests/test-strstr.c (main): Likewise.
48975
48976 2008-06-09  Bruno Haible  <bruno@clisp.org>
48977
48978         Work around the Solaris 10 ACE ACLs ABI change.
48979         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48980         declare if ACL_NO_TRIVIAL is present.
48981         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48982         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48983         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48984         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48985         define if ACL_NO_TRIVIAL is present.
48986         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48987         and use the current ABI.
48988         (file_has_acl): Use same #if condition as elsewhere.
48989         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48990         in use, and use the current ABI.
48991         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48992         Reported by Jim Meyering.
48993
48994 2008-06-09  Eric Blake  <ebb9@byu.net>
48995
48996         Work around environments that (stupidly) ignore SIGALRM.
48997         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48998         before using alarm().
48999         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49000         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49001         Reported by Ian Beckwith <ianb@erislabs.net>.
49002
49003         Produce autobuild blurb earlier in log.
49004         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49005
49006 2008-06-09  Jim Meyering  <meyering@redhat.com>
49007         and OndÅ™ej Vašík  <ovasik@redhat.com>
49008
49009         utimens.c: correct kernel bug work-around
49010         OndÅ™ej Vašík found that the invalid return value of 280 indicates
49011         failure, not success, and the kernel bug we're trying to work
49012         around affects not just the utimensat call, but also the fallback
49013         futimens call.
49014         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49015         not success.
49016         [HAVE_FUTIMENS]: Use the same work-around, here.
49017
49018 2008-06-09  Jim Meyering  <meyering@redhat.com>
49019
49020         add more guards around definition of ACE_-related code
49021         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49022         ALLOW and ACE_OWNER are also defined.
49023
49024 2008-06-08  Bruno Haible  <bruno@clisp.org>
49025
49026         * lib/acl-internal.h: Add me as co-author.
49027         * lib/file-has-acl.c: Likewise.
49028         * lib/set-mode-acl.c: Likewise.
49029         * lib/copy-acl.c: Likewise.
49030
49031 2008-06-08  Bruno Haible  <bruno@clisp.org>
49032
49033         Add support for AIX ACLs.
49034         * lib/acl-internal.h (acl_nontrivial): New declaration.
49035         * lib/file-has-acl.c (acl_nontrivial): New function.
49036         (file_has_acl): Add implementation using AIX 4 ACL API.
49037         * lib/set-mode-acl.c (qset_acl): Likewise.
49038         * lib/copy-acl.c (qcopy_acl): Likewise.
49039
49040 2008-06-08  Bruno Haible  <bruno@clisp.org>
49041
49042         Add support for HP-UX ACLs.
49043         * lib/acl-internal.h (acl_nontrivial): New declaration.
49044         * lib/file-has-acl.c (acl_nontrivial): New function.
49045         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49046         * lib/set-mode-acl.c (qset_acl): Likewise.
49047         * lib/copy-acl.c (qcopy_acl): Likewise.
49048
49049 2008-06-08  Bruno Haible  <bruno@clisp.org>
49050
49051         Add support for Cygwin ACLs.
49052         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49053         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49054         the chmod_or_fchmod call.
49055         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49056
49057 2008-06-08  Bruno Haible  <bruno@clisp.org>
49058
49059         Fix bug with setuid modes in Solaris 10+ code.
49060         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49061         succeeded, when the mode contains some special bits.
49062
49063 2008-06-08  Bruno Haible  <bruno@clisp.org>
49064
49065         Add support for Solaris 7..10 ACLs.
49066         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49067         declarations.
49068         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49069         functions.
49070         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49071         * lib/set-mode-acl.c (qset_acl): Likewise.
49072         * lib/copy-acl.c (qcopy_acl): Likewise.
49073
49074 2008-06-08  Bruno Haible  <bruno@clisp.org>
49075
49076         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49077         declaration.
49078         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49079         (acl_access_nontrivial): Remove MacOS X case.
49080         (file_has_acl): Use acl_extended_nontrivial.
49081         * lib/copy-acl.c (qcopy_acl): Likewise.
49082
49083 2008-06-08  Bruno Haible  <bruno@clisp.org>
49084
49085         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49086
49087 2008-06-08  Jim Meyering  <meyering@redhat.com>
49088
49089         * modules/acl (Maintainer): Add Bruno Haible.
49090
49091 2008-06-07  Bruno Haible  <bruno@clisp.org>
49092
49093         Improve support for Tru64 ACLs.
49094         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49095         ACL on OSF/1.
49096
49097 2008-06-07  Bruno Haible  <bruno@clisp.org>
49098
49099         Add support for MacOS X ACLs.
49100         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49101         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49102         * lib/set-mode-acl.c (qset_acl): Likewise.
49103         * lib/copy-acl.c (qcopy_acl): Likewise.
49104
49105 2008-06-07  Bruno Haible  <bruno@clisp.org>
49106
49107         Fix memory leak introduced on 2008-05-22.
49108         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49109         use.
49110
49111 2008-06-07  Bruno Haible  <bruno@clisp.org>
49112
49113         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49114         to construct an empty ACL.
49115
49116 2008-06-07  Bruno Haible  <bruno@clisp.org>
49117
49118         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49119         precisely.
49120         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49121
49122 2008-06-07  Bruno Haible  <bruno@clisp.org>
49123
49124         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49125         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49126
49127 2008-06-07  Bruno Haible  <bruno@clisp.org>
49128
49129         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49130         regardless of POSIX.
49131         * doc/posix-functions/_longjmp.texi: Likewise.
49132         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49133         SystemV platform in this case.
49134
49135 2008-06-06  Eric Blake  <ebb9@byu.net>
49136
49137         Document abort() bugs.
49138         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49139
49140         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49141         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49142         sigsetjmp.
49143         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49144         siglongjmp, but only as a macro.
49145         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49146         is obsolete.
49147         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49148
49149         Tweak documentation to cover cygwin argz bugs.
49150         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49151         argz bug fix; no code change needed since no cygwin releases
49152         occurred between the last fix and the bug being tested.
49153         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49154         module and recently fixed cygwin bugs.
49155         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49156         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49157         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49158         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49159         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49160         Likewise.
49161         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49162         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49163         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49164         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49165         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49166         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49167         Likewise.
49168
49169         Avoid gcc warning on cygwin.
49170         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49171         !ACL_NO_TRIVIAL]: Avoid unused variable.
49172
49173 2008-06-05  Eric Blake  <ebb9@byu.net>
49174
49175         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49176         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49177         git-version-gen fails to come up with a version.
49178         Reported by Simon Josefsson.
49179
49180 2008-06-05  Jim Meyering  <meyering@redhat.com>
49181             Paul Eggert  <eggert@cs.ucla.edu>
49182
49183         utimens.c: work around a probable Linux kernel bug
49184         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49185         appears to be a kernel bug that causes utimensat to return 280
49186         instead of 0, indicating success.
49187
49188 2008-06-04  Bruno Haible  <bruno@clisp.org>
49189
49190         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49191         2008-06-01 commit.
49192
49193 2008-06-04  Bruno Haible  <bruno@clisp.org>
49194
49195         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49196         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49197         (file_has_acl): Use it. Save errno afterwards.
49198         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49199
49200 2008-06-03  Bruno Haible  <bruno@clisp.org>
49201
49202         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49203         draft code. Simplify #ifs.
49204         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49205         Put Solaris code after POSIX-draft code. Fix comments regarding
49206         Solaris 10, HP-UX. Mention Cygwin.
49207         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49208
49209 2008-06-03  Eric Blake  <ebb9@byu.net>
49210
49211         Provide fallback for older kernels.
49212         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49213         Provide runtime fallback if kernel lacks support.
49214         Reported by Mike Frysinger.
49215
49216 2008-06-02  Bruno Haible  <bruno@clisp.org>
49217
49218         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49219         it exists.
49220
49221 2008-06-02  Bruno Haible  <bruno@clisp.org>
49222
49223         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49224         * lib/copy-acl.c (qcopy_acl): Update comment.
49225
49226 2008-06-02  Bruno Haible  <bruno@clisp.org>
49227
49228         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49229         like ACL APIs.
49230
49231 2008-06-02  Bruno Haible  <bruno@clisp.org>
49232
49233         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49234         * tests/test-set-mode-acl.sh: Likewise.
49235         * tests/test-copy-acl.sh: Likewise.
49236         * tests/test-copy-file.sh: Likewise.
49237
49238 2008-06-02  Bruno Haible  <bruno@clisp.org>
49239
49240         * tests/test-file-has-acl.sh: Remove unused code.
49241
49242 2008-06-01  Bruno Haible  <bruno@clisp.org>
49243
49244         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49245         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49246         messages.
49247         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49248
49249 2008-06-01  Bruno Haible  <bruno@clisp.org>
49250
49251         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49252         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49253         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49254         APIs.
49255         * modules/acl-tests (configure.ac): Remove tests now contained in
49256         m4/acl.m4.
49257
49258 2008-06-02  Jim Meyering  <meyering@redhat.com>
49259
49260         announce-gen: use a better key-server host name
49261         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49262         it may be more consistently reliable.  Suggested by Werner Koch
49263         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49264
49265 2008-06-01  Bruno Haible  <bruno@clisp.org>
49266
49267         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49268         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49269
49270 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49271
49272         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49273
49274 2008-06-01  Bruno Haible  <bruno@clisp.org>
49275
49276         New ACL tests.
49277         * tests/test-file-has-acl.sh: New file.
49278         * tests/test-file-has-acl.c: New file.
49279         * tests/test-set-mode-acl.sh: New file.
49280         * tests/test-set-mode-acl.c: New file.
49281         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49282         * tests/test-copy-acl.c: New file.
49283         * modules/acl-tests: New file, based on modules/copy-file-tests.
49284         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49285         (Depends-on): Add acl-tests.
49286         (configure.ac): Remove checks.
49287         (Makefile.am): Don't create test-sameacls program here any more.
49288
49289 2008-06-01  Bruno Haible  <bruno@clisp.org>
49290
49291         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49292         * tests/test-sameacls.c: Include progname.h.
49293         (main): Invoke set_program_name. Portability fixes for MacOS X,
49294         Solaris, HP-UX.
49295
49296 2008-06-01  Bruno Haible  <bruno@clisp.org>
49297
49298         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49299         function.
49300         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49301
49302 2008-06-01  Bruno Haible  <bruno@clisp.org>
49303
49304         * modules/rpmatch (Depends-on): Add strdup.
49305
49306 2008-06-01  Bruno Haible  <bruno@clisp.org>
49307
49308         * lib/pipe.c: Include unistd-safer.h.
49309         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49310         * modules/pipe (Depends-on): Add unistd-safer.
49311
49312 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49313
49314         * modules/autobuild (configure.ac): Call AB_INIT.
49315
49316 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49317
49318         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49319         Suggested by Bruno Haible <bruno@clisp.org>.
49320
49321 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49322
49323         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49324         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49325         <bruno@clisp.org>.
49326
49327 2008-05-29  Eric Blake  <ebb9@byu.net>
49328
49329         Prefer new POSIX 200x interfaces over futimesat.
49330         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49331         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49332         when available.
49333         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49334
49335 2008-05-28  Bruno Haible  <bruno@clisp.org>
49336
49337         * modules/stpcpy (License): Change to LGPLv2+.
49338         Requested by David Lutterkort <dlutter@redhat.com>.
49339
49340 2008-05-27  Bruno Haible  <bruno@clisp.org>
49341
49342         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49343         current mingw.
49344         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49345
49346 2008-05-27  Bruno Haible  <bruno@clisp.org>
49347
49348         * modules/iconv_open (Link): New section, from module 'iconv'.
49349         * modules/striconv (Link): Likewise.
49350         * modules/striconveh (Link): Likewise.
49351         * modules/xstriconv (Link): Likewise.
49352         * modules/unicodeio (Link): Likewise.
49353         * modules/propername (Link): Likewise.
49354         Reported by Jim Meyering.
49355
49356 2008-05-26  Jim Meyering  <meyering@redhat.com>
49357
49358         sha256: do not artificially restrict buffer length to be < 2^32
49359         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49360         uint32_t to size_t.
49361         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49362         to match.
49363
49364         avoid unaligned access errors, e.g., on sparc
49365         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49366         direct access through a possibly-unaligned uint64* pointer.
49367         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49368         direct access through a possibly-unaligned uint32* pointer.
49369         Prompted by this patch from Tom "spot" Callaway:
49370         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49371
49372         sha512.c: fix typo in comment
49373         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49374
49375 2008-05-25  Bruno Haible  <bruno@clisp.org>
49376
49377         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49378         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49379         (Makefile.am): Update lib_SOURCES.
49380
49381 2008-05-25  Bruno Haible  <bruno@clisp.org>
49382
49383         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49384
49385 2008-05-25  Jim Meyering  <meyering@redhat.com>
49386
49387         useless-if-before-free: freed expr may have white-space differences
49388         * build-aux/useless-if-before-free: Recognize cases in which the
49389         freed expression differs from the tested one in embedded white
49390         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49391         $1 was used, so we can't make any regexp shy.  Improved tests now
49392         detect this.
49393
49394         useless-if-before-free: accept white space in the expression.
49395         * build-aux/useless-if-before-free: For now, any white space
49396         in the expression must be identical in the free argument.
49397
49398         useless-if-before-free: efficiency tweak
49399         * build-aux/useless-if-before-free: Make the expression-matching
49400         regexp "shy".
49401         Make the *outer* regexp shy, not the expr-matching one.
49402
49403         update code-in-comment to accept cast of free arg
49404         * build-aux/useless-if-before-free: Update regexp.
49405
49406 2008-05-25  Bruno Haible  <bruno@clisp.org>
49407
49408         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49409         * modules/copy-file-tests (Files, Makefile.am): Update.
49410         * tests/test-copy-file.c (func_test_copy): Update.
49411
49412 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49413
49414         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49415
49416 2008-05-23  Bruno Haible  <bruno@clisp.org>
49417
49418         Improve support for ACLs on OSF/1.
49419         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49420         Remove fallback for unknown flavors of ACLs.
49421
49422 2008-05-22  Bruno Haible  <bruno@clisp.org>
49423
49424         Add support for ACLs on OSF/1.
49425         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49426         replacements.
49427         (acl_free_text): New macro fallback.
49428         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49429         acl_free.
49430         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49431         acl_free_text function. Require AC_C_INLINE.
49432
49433 2008-05-22  Bruno Haible  <bruno@clisp.org>
49434
49435         Make copy_acl work on MacOS X 10.5.
49436         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49437         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49438         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49439         If MODE_INSIDE_ACL, don't assume that every system has the same text
49440         representation for ACLs as FreeBSD.
49441         * lib/copy-acl.c (copy_acl): Add support for platforms with
49442         !MODE_INSIDE_ACL.
49443         * lib/file-has-acl.c (file_has_acl): Likewise.
49444         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49445         FreeBSD, MacOS X, or IRIX, respectively.
49446
49447 2008-05-22  Bruno Haible  <bruno@clisp.org>
49448
49449         * lib/acl.h: Don't include <sys/acl.h>.
49450         (GETACLCNT): Move fallback to lib/acl-internal.h.
49451         * lib/acl-internal.h: Include <sys/acl.h> here.
49452         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49453
49454 2008-05-22  Bruno Haible  <bruno@clisp.org>
49455
49456         Split off copy_acl function to separate file.
49457         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49458         * lib/acl.c (copy_acl): Moved function to separate file.
49459         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49460         * modules/acl (Files): Add lib/copy-acl.c.
49461         (Makefiles.am): Augment lib_SOURCES.
49462
49463 2008-05-22  Bruno Haible  <bruno@clisp.org>
49464
49465         * modules/copy-file-tests: New file.
49466         * tests/test-copy-file.sh: New file.
49467         * tests/test-copy-file.c: New file.
49468         * tests/test-copy-file-sameacls.c: New file.
49469
49470 2008-05-22  Eric Blake  <ebb9@byu.net>
49471
49472         Avoid gcc warning.
49473         * tests/test-memcmp.c (main): Pass NULL indirectly.
49474
49475 2008-05-21  Bruno Haible  <bruno@clisp.org>
49476
49477         Add reference doc about ACLs.
49478         * doc/acl-resources.txt: New file.
49479         * doc/acl-cygwin.txt: New file.
49480
49481 2008-05-21  Bruno Haible  <bruno@clisp.org>
49482
49483         Avoid one more warning from gcc.
49484         * lib/vasnprintf.c (IF_LINT): Update comments.
49485         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49486
49487 2008-05-21  Jim Meyering  <meyering@redhat.com>
49488
49489         avoid a warning from gcc
49490         * lib/vasnprintf.c (IF_LINT): Define.
49491         (scale10_round_decimal_long_double):
49492         Use it to avoid a "may be used uninitialized" warning.
49493         (scale10_round_decimal_double): Likewise.
49494
49495 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49496
49497         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49498         declared.
49499
49500 2008-05-20  Bruno Haible  <bruno@clisp.org>
49501
49502         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49503         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49504
49505 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49506
49507         * modules/memcmp-tests: New file.
49508         * tests/test-memcmp.c: New file.
49509
49510 2008-05-19  Bruno Haible  <bruno@clisp.org>
49511
49512         * modules/propername (Notice, configure.ac): Put quoted "..." into
49513         --keyword option.
49514         * lib/propername.h: Update comments accordingly.
49515         Reported by Eric Blake.
49516
49517 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49518
49519         * modules/getpass-gnu (Depends-on): Add fseeko.
49520
49521 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49522
49523         * modules/base64-tests: New file.
49524
49525 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49526
49527         * lib/base64.c (base64_decode_ctx): If a decode context structure
49528         was passed in use it to ignore newlines.  If a context structure
49529         was _not_ passed in, continue to treat newlines as garbage (this
49530         is the historical behavior).  Formerly base64_decode.
49531         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49532         takes a decode context structure.
49533         * lib/base64.h (base64_decode): Macro for four-argument calls.
49534         (base64_decode_alloc): Likewise.
49535         * lib/base64.c (base64_decode_ctx): If a decode context structure
49536         was passed in use it to ignore newlines.  If a context structure
49537         was _not_ passed in, continue to treat newlines as garbage (this
49538         is the historical behavior).  Formerly base64_decode.
49539         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49540         takes a decode context structure.
49541         * lib/base64.h (base64_decode): Macro for four-argument calls.
49542         (base64_decode_alloc): Likewise.
49543
49544 2008-05-19  Jim Meyering  <meyering@redhat.com>
49545
49546         avoid a warning from gcc
49547         * lib/trim.c (IF_LINT): Define.
49548         (trim2): Use it to avoid a "may be used uninitialized" warning.
49549
49550         Fix doc typo.
49551         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49552
49553 2008-05-19  Bruno Haible  <bruno@clisp.org>
49554
49555         * doc/glibc-functions/getpass.texi: Document limits of other
49556         implementations.
49557
49558 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49559             Bruno Haible <bruno@clisp.org>
49560
49561         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49562
49563 2008-05-18  Bruno Haible  <bruno@clisp.org>
49564
49565         * modules/propername: New file, from GNU gettext.
49566         * lib/propername.h: New file, from GNU gettext.
49567         * lib/propername.c: New file, from GNU gettext.
49568         * MODULES.html.sh (Internationalization functions): Add propername.
49569
49570 2008-05-16  Jim Meyering  <meyering@redhat.com>
49571             Bruno Haible  <bruno@clisp.org>
49572
49573         Avoid some warnings from "gcc -Wshadow".
49574         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49575
49576 2008-05-15  Eric Blake  <ebb9@byu.net>
49577
49578         Extend previous patch to cygwin 1.7.0.
49579         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49580         fast implementation in cygwin >= 1.7.0.
49581         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49582         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49583
49584 2008-05-15  Bruno Haible  <bruno@clisp.org>
49585
49586         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49587         implementation in glibc >= 2.9.
49588         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49589         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49590
49591 2008-05-15  Bruno Haible  <bruno@clisp.org>
49592
49593         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49594         (Unicode string functions): Add unilbrk/*.
49595         Reported by Karl Berry.
49596
49597 2008-05-15  Eric Blake  <ebb9@byu.net>
49598
49599         Fix violation of <stdbool.h> replacement in regex.
49600         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49601         * lib/regexec.c (re_search_internal): Likewise.
49602         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49603
49604 2008-05-15  Jim Meyering  <meyering@redhat.com>
49605
49606         avoid distracting test output when git or cvs is not found
49607         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49608         * tests/test-vc-list-files-git.sh: Likewise.
49609
49610 2008-05-15  Eric Blake  <ebb9@byu.net>
49611
49612         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49613         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49614         glibc version.
49615         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49616         * doc/posix-functions/strstr.texi (strstr): Likewise.
49617         * lib/str-two-way.h (MAX): Sychronize with glibc.
49618
49619 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49620
49621         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49622         opr.ctx_type.
49623         (calc_first): Initialize constraint field.
49624         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49625         Fix grammar.
49626         (duplicate_node): Merge constraint field for all node types.
49627         (calc_eclosure_iter): Look at constraint field for all node types.
49628         * lib/regex_internal.c (create_cd_newstate): Don't look at
49629         opr.ctx_type.
49630
49631 2008-05-14  Bruno Haible  <bruno@clisp.org>
49632
49633         Help GCC to do better code generation.
49634         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49635         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49636         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49637         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49638         Declare with attribute 'malloc' if supported.
49639
49640 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49641
49642         use "echo STR|wc -c" rather than unportable "expr length STR"
49643         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49644         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49645
49646 2008-05-14  Jim Meyering  <meyering@redhat.com>
49647
49648         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49649         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49650         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49651         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49652         via Collin Lasse.
49653
49654 2008-05-14  Eric Blake  <ebb9@byu.net>
49655
49656         Avoid quadratic growth in gl_LIBSOURCES.
49657         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49658         Suggested by Bruno Haible.
49659
49660         Test xmemdup0.
49661         * modules/xmemdup0-tests: New file.
49662         * tests/test-xmemdup0.c: Likewise.
49663
49664 2008-05-13  Eric Blake  <ebb9@byu.net>
49665
49666         Split xmemdup0 into its own module.
49667         * modules/xmemdup0: New file.
49668         * lib/xmemdup0.h: Likewise.
49669         * lib/xmemdup0.c: Likewise.
49670         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49671         * lib/xalloc.h (xmemdup0): Remove.
49672         * lib/xmalloc.c (xmemdup0): Likewise.
49673
49674 2008-05-13  Eric Blake  <ebb9@byu.net>
49675             Bruno Haible  <bruno@clisp.org>
49676
49677         Reduce number of forks required during autoconf.
49678         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49679         and gl_LIBSOURCES_DIR.
49680         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49681         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49682         m4_syscmd per file.
49683         <m4_foreach_w>: Move...
49684         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49685
49686 2008-05-13  Eric Blake  <ebb9@byu.net>
49687
49688         * gnulib-tool: Fix various comment typos.
49689
49690 2008-05-12  Bruno Haible  <bruno@clisp.org>
49691
49692         Tailor the linebreaking algorithm.
49693         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49694
49695 2008-05-12  Bruno Haible  <bruno@clisp.org>
49696
49697         Update to Unicode 5.0.0.
49698         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49699         LBP_JV, LBP_JT. Redistribute values.
49700         (unilbrk_table): Change size.
49701         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49702         Unicode TR#14 rev. 22.
49703         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49704         LBP_JV, LBP_JT. Redistribute values.
49705         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49706         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49707         Update.
49708         * lib/unilbrk/lbrkprop1.h: Regenerated.
49709         * lib/unilbrk/lbrkprop2.h: Regenerated.
49710         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49711         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49712         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49713         Likewise.
49714         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49715         Likewise.
49716         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49717         result.
49718         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49719         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49720         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49721         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49722         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49723         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49724
49725 2008-05-11  Bruno Haible  <bruno@clisp.org>
49726
49727         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49728
49729 2008-05-11  Bruno Haible  <bruno@clisp.org>
49730
49731         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49732         * modules/unilbrk/gen-lbrk: New file.
49733
49734 2008-05-11  Bruno Haible  <bruno@clisp.org>
49735
49736         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49737         * m4/sha512.m4 (gl_SHA512): Likewise.
49738
49739 2008-05-11  Jim Meyering  <meyering@redhat.com>
49740
49741         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49742         * modules/crypto/sha256: New file.
49743         * modules/crypto/sha512: Likewise.
49744         * lib/sha256.c: Likewise.
49745         * lib/sha256.h: Likewise.
49746         * lib/sha512.c: Likewise.
49747         * lib/sha512.h: Likewise.
49748         * lib/u64.h: Likewise.
49749         * m4/sha256.m4: Likewise.
49750         * m4/sha512.m4: Likewise.
49751         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49752
49753 2008-05-10  Bruno Haible  <bruno@clisp.org>
49754
49755         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49756         (Input/Output <stdio.h>): Add xprintf.
49757         (Signal handling <signal.h>): Add strsignal.
49758         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49759         (Core language properties): Add func.
49760         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49761         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49762         strings.
49763         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49764         (Input/output): New section.
49765         (File system functions): Add openat-die, stat-macros.
49766         (Networking functions): Add sockets.
49767         (Unicode string functions): Add unictype/*.
49768         (Support for building libraries and executables): Add gperf.
49769         (Support for building documentation): Add agpl-3.0.
49770         (Misc): Add nocrash.
49771
49772 2008-05-10  Bruno Haible  <bruno@clisp.org>
49773
49774         * modules/unictype/gen-ctype: New file.
49775
49776 2008-05-10  Jim Meyering  <meyering@redhat.com>
49777
49778         Make chdir-safer.c more efficient on a system with no symlinks.
49779         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49780         also if ELOOP is zero.  Suggested by Bruno Haible.
49781
49782         Make chdir-safer.c slightly safer.
49783         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49784         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49785
49786         Avoid compile failure on systems without ELOOP (like mingw).
49787         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49788         Reported by Bruno Haible.
49789
49790 2008-05-10  Bruno Haible  <bruno@clisp.org>
49791
49792         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49793         (is_utf8_encoding): Use a case-insensitive comparison.
49794         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49795         streq.
49796
49797 2008-05-10  Bruno Haible  <bruno@clisp.org>
49798
49799         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49800         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49801         * lib/unilbrk/ulc-common.h (iconv_string_length,
49802         iconv_string_keeping_offsets): Remove declarations.
49803         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49804         Don't include <iconv.h>, streq.h, xsize.h.
49805         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49806         conversion.
49807         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49808         <iconv.h>, streq.h, xsize.h.
49809         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49810         conversion.
49811         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49812         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49813         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49814         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49815
49816 2008-05-10  Bruno Haible  <bruno@clisp.org>
49817
49818         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49819         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49820
49821         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49822         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49823
49824         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49825         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49826
49827         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49828         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49829
49830         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49831         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49832
49833         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49834         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49835
49836         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49837         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49838
49839         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49840         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49841
49842 2008-05-10  Bruno Haible  <bruno@clisp.org>
49843
49844         Split up 'linebreak' module.
49845         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49846         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49847         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49848         modifications.
49849         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49850         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49851         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49852         lib/linebreak.c.
49853         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49854         lib/linebreak.c.
49855         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49856         lib/linebreak.c.
49857         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49858         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49859         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49860         lib/linebreak.c.
49861         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49862         lib/linebreak.c.
49863         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49864         lib/linebreak.c.
49865         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49866         lib/linebreak.c.
49867         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49868         lib/linebreak.c.
49869         * modules/unilbrk/base: New file.
49870         * modules/unilbrk/tables: New file.
49871         * modules/unilbrk/u8-possible-linebreaks: New file.
49872         * modules/unilbrk/u16-possible-linebreaks: New file.
49873         * modules/unilbrk/u32-possible-linebreaks: New file.
49874         * modules/unilbrk/ulc-common: New file.
49875         * modules/unilbrk/ulc-possible-linebreaks: New file.
49876         * modules/unilbrk/u8-width-linebreaks: New file.
49877         * modules/unilbrk/u16-width-linebreaks: New file.
49878         * modules/unilbrk/u32-width-linebreaks: New file.
49879         * modules/unilbrk/ulc-width-linebreaks: New file.
49880         * lib/linebreak.h: Remove file.
49881         * lib/linebreak.c: Remove file.
49882         * m4/linebreak.m4: Remove file.
49883         * modules/linebreak: Remove file.
49884         * NEWS: Mention the changes.
49885
49886 2008-05-09  Eric Blake  <ebb9@byu.net>
49887
49888         Add xmemdup0.
49889         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49890         implementation.
49891         * lib/xmalloc.c (xmemdup0): New C implementation.
49892
49893 2008-05-08  Bruno Haible  <bruno@clisp.org>
49894
49895         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49896
49897 2008-05-07  Eric Blake  <ebb9@byu.net>
49898
49899         Support cross-compilation of <wctype.h>.
49900         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49901         AC_CACHE_CHECK.
49902
49903 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49904
49905         * build-aux/vc-list-files: Add support for bzr.
49906
49907 2008-05-03  Jim Meyering  <meyering@redhat.com>
49908
49909         avoid failed assertion with tight malloc
49910         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49911
49912 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49913
49914         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49915         are needed from arpa/inet.h.
49916         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49917         Reported by Bruno Haible.
49918
49919 2008-05-02  Jim Meyering  <meyering@redhat.com>
49920
49921         avoid compilation error on FreeBSD 6
49922         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49923
49924 2008-05-01  Jim Meyering  <meyering@redhat.com>
49925
49926         useless-if-before-free: correct --help's exit status description
49927         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49928         for one or more matches, etc.  Reported by Bruno Haible.
49929
49930         vc-list-files: make the stand-alone gnulib test work
49931         * modules/vc-list-files-tests (configure.ac):
49932         Define and AC_SUBST abs_aux_dir.
49933         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49934         $(abs_top_srcdir) to each script and having each of them
49935         duplicate the work of setting PATH, set PATH here, using
49936         the new variable, abs_aux_dir instead.
49937         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49938         * tests/test-vc-list-files-git.sh: Likewise.
49939         Reported by Bruno Haible.
49940
49941 2008-05-01  Bruno Haible  <bruno@clisp.org>
49942
49943         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49944         reallocation. Rename 'done' to 'found_delimiter'.
49945
49946 2008-05-01  Jim Meyering  <meyering@redhat.com>
49947
49948         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49949         * build-aux/vc-list-files: Use `...`, not $(...).
49950
49951 2008-04-30  Jim Meyering  <meyering@redhat.com>
49952
49953         add tests for vc-list-files
49954         * modules/vc-list-files-tests: New module.
49955         * tests/test-vc-list-files-cvs.sh: New file.
49956         * tests/test-vc-list-files-git.sh: New file.
49957
49958         avoid a warning from gcc
49959         * lib/getndelim2.c (IF_LINT): Define.
49960         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49961
49962         vc-list-files: work properly with build-aux/cvsu, too
49963         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49964         to all cvs-based clauses.
49965
49966         vc-list-files: work properly in the CVS+awk case, too
49967         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49968
49969         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49970         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49971         take more than one file argument, so .  Add quotes, just in case $dir
49972         ever contains a shell meta-character.  Prompted by Soren Hansen in
49973         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49974
49975 2008-04-29  Eric Blake  <ebb9@byu.net>
49976
49977         Optimize getndelim2 to use block operations when possible.
49978         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49979         freadseek, and memchr2.
49980         * lib/getndelim2.c (getndelim2): Use them for block reads.
49981
49982 2008-04-29  Bruno Haible  <bruno@clisp.org>
49983
49984         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49985         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49986         * modules/inet_ntop (Depends-on): Add extensions.
49987         * modules/inet_pton (Depends-on): Likewise.
49988         Reported by Simon Josefsson.
49989
49990 2008-04-29  Jim Meyering  <meyering@redhat.com>
49991
49992         When the is more than one match in a block, match all of them.
49993         * build-aux/useless-if-before-free: Iterate through each block
49994         until there are no more matches.
49995
49996         Fix broken useless-if-before-free script.
49997         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49998         the expression to match cast of argument to free-like function.
49999
50000 2008-04-29  Eric Blake  <ebb9@byu.net>
50001
50002         Use new header.
50003         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50004
50005 2008-04-29  Jim Meyering  <meyering@redhat.com>
50006
50007         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50008         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50009         by gnulib to exist and to declare e.g., inet_ntop.
50010         Don't include "inet_ntop.h", now removed.
50011
50012         * m4/arpa_inet_h.m4: Remove trailing blanks.
50013
50014 2008-04-29  Eric Blake  <ebb9@byu.net>
50015
50016         Silence valgrind on safe reads beyond potential array bounds.
50017         * lib/rawmemchr.valgrind: New file.
50018         * lib/strchrnul.valgrind: Likewise.
50019         * modules/rawmemchr (Files): Distribute new file.
50020         * modules/strchrnul (Files): Likewise.
50021         Suggested by Bruno Haible.
50022
50023 2008-04-29  Bruno Haible  <bruno@clisp.org>
50024
50025         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50026         (inet_ntop, inet_pton): Change portability warning's wording.
50027         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50028         Invoke gl_CHECK_NEXT_HEADERS.
50029         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50030         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50031         set ARPA_INET_H.
50032         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50033         * modules/arpa_inet (Description): No longer only for systems that
50034         lack it.
50035         (Depends-on): Add include_next.
50036         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50037         HAVE_ARPA_INET_H.
50038
50039 2008-04-29  Jim Meyering  <meyering@redhat.com>
50040
50041         * modules/mkdir (License): Re-license as LGPLv2+.
50042
50043 2008-04-29  Bruno Haible  <bruno@clisp.org>
50044
50045         * modules/rawmemchr (Maintainer): Set to Eric.
50046         * modules/strchrnul (Maintainer): Likewise.
50047
50048 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50049
50050         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50051         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50052
50053         * modules/arpa_inet (arpa/inet.h): Use them.
50054
50055 2008-04-28  Eric Blake  <ebb9@byu.net>
50056
50057         Test getndelim2.
50058         * modules/getndelim2-tests: New file.
50059         * tests/test-getndelim2.c: Likewise.
50060         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50061         stream.
50062         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50063
50064         * MODULES.html.sh: Document new module.
50065
50066 2008-04-20  Bruno Haible  <bruno@clisp.org>
50067
50068         * lib/c-stack.c (die): Use raise.
50069         * modules/c-stack (Depends-on): Add raise.
50070
50071 2008-04-28  Bruno Haible  <bruno@clisp.org>
50072
50073         Expect rpmatch to be declared.
50074         * lib/yesno.c (rpmatch): Remove declaration.
50075
50076         Declare rpmatch.
50077         * lib/stdlib.in.h (rpmatch): New declaration.
50078         * lib/rpmatch.c: Include <stdlib.h> first.
50079         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50080         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50082         HAVE_RPMATCH.
50083         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50084         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50085         (Include): Set to <stdlib.h>.
50086         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50087         HAVE_RPMATCH.
50088         * NEWS: Document the change.
50089
50090 2008-04-28  Bruno Haible  <bruno@clisp.org>
50091
50092         Change rpmatch to use nl_langinfo when appropriate.
50093         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50094         (N_): New macro.
50095         (localized_pattern): New function/macro.
50096         (try): Remove match, nomatch arguments. Copy the pattern into safe
50097         memory before caching it.
50098         (rpmatch): Use localized_pattern. Add translator comments.
50099         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50100         Suggested by Eric Blake.
50101         * modules/rpmatch (Depends-on): Add stdbool.
50102
50103 2008-04-28  Eric Blake  <ebb9@byu.net>
50104
50105         Add rawmemchr module, matching glibc.
50106         * modules/string (Makefile.am): New indicator.
50107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50108         * lib/string.in.h (rawmemchr): Declare when appropriate.
50109         * modules/rawmemchr: New file.
50110         * m4/rawmemchr.m4: Likewise.
50111         * lib/rawmemchr.c: Likewise.
50112         * modules/rawmemchr-tests: Likewise.
50113         * tests/test-rawmemchr.c: Likewise.
50114         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50115         module.
50116         * modules/strchrnul (Depends-on): Add rawmemchr.
50117         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50118
50119         Whitespace cleanup.
50120         * tests/test-strchrnul.c: Reindent.
50121         * lib/strchrnul.c: Likewise.
50122
50123         Optimize and test strchrnul.
50124         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50125         * modules/strchrnul-tests: New file.
50126         * tests/test-strchrnul.c: Likewise.
50127
50128         Remove intprops dependency.
50129         * modules/memchr (Depends-on): Remove intprops.
50130         * modules/memrchr (Depends-on): Likewise.
50131         * modules/memchr2 (Depends-on): Likewise.
50132         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50133         * lib/memrchr.c (__memrchr): Likewise.
50134         * lib/memrchr2.c (memchr2): Likewise.
50135         Reported by Simon Josefsson.
50136
50137 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50138
50139         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50140         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50141
50142 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50143
50144         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50145
50146         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50147
50148         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50149
50150         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50151         declarations.
50152         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50153
50154         * m4/inet_pton.m4: Don't check for header files.
50155
50156         * m4/inet_ntop.m4: Don't check for header files.
50157
50158 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50159
50160         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50161         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50162         trigger for cygwin).
50163         Reported by Bruno Haible  <bruno@clisp.org>.
50164
50165 2008-04-28  Bruno Haible  <bruno@clisp.org>
50166
50167         * doc/posix-functions/strdup.texi: Mention mingw problem.
50168
50169 2008-04-27  Bruno Haible  <bruno@clisp.org>
50170
50171         * modules/stat-time-tests (Depends-on): Add sleep.
50172         * tests/test-stat-time.c (force_unlink): New function.
50173         (cleanup): Use it.
50174         (test_mtime): Remove the ctime related tests.
50175         (test_ctime): New function, containing the ctime related tests.
50176         (main): Call test_ctime, except on native Windows platforms.
50177
50178 2008-04-27  Bruno Haible  <bruno@clisp.org>
50179
50180         * lib/rpmatch.c (rpmatch): Add some comments.
50181         Reported by James Youngman <jay@gnu.org>.
50182
50183 2008-04-27  Bruno Haible  <bruno@clisp.org>
50184
50185         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50186         quiet NaNs.
50187
50188 2008-04-27  Bruno Haible  <bruno@clisp.org>
50189
50190         Make test-yesno.sh work on mingw.
50191         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50192         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50193         (main): Set stdin to binary mode.
50194         * modules/yesno-tests (Depends-on): Add binary-io.
50195
50196 2008-04-27  Bruno Haible  <bruno@clisp.org>
50197
50198         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50199         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50200         argument that lie outside the IEEE 854 domain.
50201         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50202         (gl_ISFINITE): Use it.
50203         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50204
50205 2008-04-27  Bruno Haible  <bruno@clisp.org>
50206
50207         Allow local renaming in config.h.
50208         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50209
50210 2008-04-27  Bruno Haible  <bruno@clisp.org>
50211
50212         * lib/memchr.c (__memchr): Change type of 'i'.
50213         * lib/memchr2.c (memchr2): Likewise.
50214
50215 2008-04-26  Eric Blake  <ebb9@byu.net>
50216         and Bruno Haible  <bruno@clisp.org>
50217
50218         Optimize and test memrchr.
50219         * modules/memrchr (Depends-on): Add intprops.
50220         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50221         * modules/memrchr-tests: New file.
50222         * tests/test-memrchr.c: New file.
50223
50224 2008-04-26  Bruno Haible  <bruno@clisp.org>
50225
50226         Add tentative support for DragonFly BSD.
50227         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50228         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50229         fp.
50230         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50231         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50232         * lib/fpurge.c (fpurge): Likewise.
50233         * lib/freadable.c (freaadable): Likewise.
50234         * lib/freadahead.c (freadahead): Likewise.
50235         * lib/freading.c (freading): Likewise.
50236         * lib/freadptr.c (freadptr): Likewise.
50237         * lib/freadseek.c (freadptrinc): Likewise.
50238         * lib/fseeko.c (fseeko): Likewise.
50239         * lib/fseterr.c (fseterr): Likewise.
50240         * lib/fwritable.c (fwritable): Likewise.
50241         * lib/fwriting.c (fwriting): Likewise.
50242
50243 2008-04-26  Bruno Haible  <bruno@clisp.org>
50244
50245         * lib/stdio-impl.h: New file.
50246         * lib/fbufmode.c: Include stdio-impl.h.
50247         (fbufmode): Use fp_, remove redundant #defines.
50248         * lib/fflush.c: Include stdio-impl.h.
50249         (clear_ungetc_buffer): Remove redundant #defines.
50250         * lib/fpurge.c: Include stdio-impl.h.
50251         (fpurge): Remove redundant #defines.
50252         * lib/freadable.c: Include stdio-impl.h.
50253         (freadable): Remove redundant #defines.
50254         * lib/freadahead.c: Include stdio-impl.h.
50255         (freadahead): Remove redundant #defines.
50256         * lib/freading.c: Include stdio-impl.h.
50257         (freading): Remove redundant #defines.
50258         * lib/freadptr.c: Include stdio-impl.h.
50259         (freadptr): Remove redundant #defines.
50260         * lib/freadseek.c: Include stdio-impl.h.
50261         (freadptrinc): Remove redundant #defines.
50262         * lib/fseeko.c: Include stdio-impl.h.
50263         (rpl_fseeko): Remove redundant #defines.
50264         * lib/fseterr.c: Include stdio-impl.h.
50265         (fseterr): Remove redundant #defines.
50266         * lib/fwritable.c: Include stdio-impl.h.
50267         (fwritable: Remove redundant #defines.
50268         * lib/fwriting.c: Include stdio-impl.h.
50269         (fwriting): Remove redundant #defines.
50270         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50271         * modules/fflush (Files): Likewise.
50272         * modules/fpurge (Files): Likewise.
50273         * modules/freadable (Files): Likewise.
50274         * modules/freadahead (Files): Likewise.
50275         * modules/freading (Files): Likewise.
50276         * modules/freadptr (Files): Likewise.
50277         * modules/freadseek (Files): Likewise.
50278         * modules/fseeko (Files): Likewise.
50279         * modules/fseterr (Files): Likewise.
50280         * modules/fwritable (Files): Likewise.
50281         * modules/fwriting (Files): Likewise.
50282
50283 2008-04-26  Bruno Haible  <bruno@clisp.org>
50284
50285         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50286         restore_seek_optimization, update_fpos_cache): New functions, extracted
50287         from rpl_fflush.
50288         (rpl_fflush): Use them.
50289         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50290         (gl_REPLACE_FFLUSH): Use it.
50291
50292 2008-04-26  Bruno Haible  <bruno@clisp.org>
50293
50294         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50295         on Solaris.
50296         * tests/test-xstrtoimax.sh: Likewise.
50297         * tests/test-xstrtoumax.sh: Likewise.
50298         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50299
50300 2008-04-26  Bruno Haible  <bruno@clisp.org>
50301
50302         * modules/memchr-tests: New file.
50303         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50304
50305 2008-04-26  Eric Blake  <ebb9@byu.net>
50306             Bruno Haible  <bruno@clisp.org>
50307
50308         * lib/memchr.c: Include intprops.h.
50309         (__memchr): Optimize parallel detection of matching bytes. Rename local
50310         variables. Add explanatory comments.
50311
50312 2008-04-26  Bruno Haible  <bruno@clisp.org>
50313
50314         Fix module 'memchr', broken since 2000-10-28.
50315         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50316
50317 2008-04-26  Bruno Haible  <bruno@clisp.org>
50318
50319         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50320         comments.
50321
50322 2008-04-25  Eric Blake  <ebb9@byu.net>
50323
50324         Use native fstatat on cygwin 1.7.0.
50325         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50326         first.
50327
50328 2008-04-23  Eric Blake  <ebb9@byu.net>
50329
50330         Improve memchr2 performance.
50331         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50332         NUL bytes.
50333         * modules/memchr2 (Depends-on): Use intprops.h.
50334
50335 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50336
50337         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50338         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50339         <blp@cs.stanford.edu>.
50340
50341 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50342
50343         * lib/arpa_inet.in.h: New file.
50344
50345         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50346         (Makefile.am): Sed in substitute header file.
50347
50348         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50349         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50350
50351         * modules/inet_ntop (configure.ac): Use
50352         gl_ARPA_INET_MODULE_INDICATOR.
50353
50354         * modules/inet_pton (configure.ac): Use
50355         gl_ARPA_INET_MODULE_INDICATOR.
50356
50357 2008-04-22  Jim Meyering  <meyering@redhat.com>
50358
50359         * modules/verify (License): Re-license as LGPLv2+.
50360
50361 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50362
50363         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50364         parameter to void* as per POSIX standard (MinGW uses char*).
50365
50366 2008-04-21  Bruno Haible  <bruno@clisp.org>
50367
50368         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50369         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50370         Define to replacements if REPLACE_ISWCNTRL is 1.
50371         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50372         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50373         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50374         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50375         what it fixes.
50376         * doc/posix-functions/iswalpha.texi: Likewise.
50377         * doc/posix-functions/iswblank.texi: Likewise.
50378         * doc/posix-functions/iswcntrl.texi: Likewise.
50379         * doc/posix-functions/iswdigit.texi: Likewise.
50380         * doc/posix-functions/iswgraph.texi: Likewise.
50381         * doc/posix-functions/iswlower.texi: Likewise.
50382         * doc/posix-functions/iswprint.texi: Likewise.
50383         * doc/posix-functions/iswpunct.texi: Likewise.
50384         * doc/posix-functions/iswspace.texi: Likewise.
50385         * doc/posix-functions/iswupper.texi: Likewise.
50386         * doc/posix-functions/iswxdigit.texi: Likewise.
50387         Reported by Alain Guibert.
50388
50389 2008-04-21  Bruno Haible  <bruno@clisp.org>
50390
50391         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50392         Patch by Alain Guibert.
50393
50394 2008-04-21  Bruno Haible  <bruno@clisp.org>
50395
50396         Fix test failures on mingw.
50397         * tests/test-xstrtol.c (print_no_progname): New function.
50398         (main): Install it in error_print_progname hook.
50399         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50400         * tests/test-xstrtoimax.sh: Likewise.
50401         * tests/test-xstrtoumax.sh: Likewise.
50402
50403 2008-04-21  Bruno Haible  <bruno@clisp.org>
50404
50405         Fix test failure on mingw.
50406         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50407
50408 2008-04-21  Bruno Haible  <bruno@clisp.org>
50409
50410         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50411         Actually assign a value.
50412
50413 2008-04-20  Bruno Haible  <bruno@clisp.org>
50414
50415         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50416         take 2.
50417         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50418         'canonicalize-lgpl' module is also used.
50419         * lib/canonicalize-lgpl.c: Undo last change.
50420         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50421
50422 2008-04-20  Bruno Haible  <bruno@clisp.org>
50423
50424         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50425         config.h. Provide _mkdir based fallback for mingw.
50426         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50427         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50428         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50429         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50430         rather than defining mkdir in config.h.
50431         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50432         (gl_SYS_STAT_H_DEFAULTS): New macro.
50433         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50434         HAVE_IO_H any more.
50435         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50436         HAVE_DECL_MKDIR and HAVE_IO_H.
50437
50438 2008-04-20  Bruno Haible  <bruno@clisp.org>
50439
50440         * lib/isapipe.c: Port to native Windows platforms.
50441
50442 2008-04-20  Bruno Haible  <bruno@clisp.org>
50443
50444         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50445
50446 2008-04-21  Eric Blake  <ebb9@byu.net>
50447
50448         Work around preprocessors that don't handle UINTMAX_MAX.
50449         * lib/memchr2.c (memchr2): Avoid embedded #if.
50450         Reported by Alain Guibert, fix suggested by Bruno Haible.
50451
50452 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50453
50454         * doc/posix-functions/strftime.texi (strftime): Explain better
50455         Windows incompatibility.  Suggested by Micah Cowan
50456         <micah@cowan.name>.
50457
50458 2008-04-20  Bruno Haible  <bruno@clisp.org>
50459
50460         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50461         unistr/u8-mblen.
50462
50463 2008-04-20  Bruno Haible  <bruno@clisp.org>
50464
50465         Fix test failure on platforms with non-GNU iconv.
50466         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50467         (U_TO_U8): Use it, rather than u16_to_u8.
50468         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50469         units at the end of the input string.
50470         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50471
50472 2008-04-20  Bruno Haible  <bruno@clisp.org>
50473
50474         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50475         when the resulting length is 0.
50476         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50477
50478 2008-04-20  Bruno Haible  <bruno@clisp.org>
50479
50480         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50481         works.
50482         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50483
50484 2008-04-20  Bruno Haible  <bruno@clisp.org>
50485
50486         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50487         * modules/tsearch-tests (configure.ac): Test for initstate function.
50488
50489 2008-04-20  Bruno Haible  <bruno@clisp.org>
50490
50491         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50492         for nlink_t if missing.
50493         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50494
50495 2008-04-19  Bruno Haible  <bruno@clisp.org>
50496
50497         Work around snprintf bug on Linux libc5.
50498         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50499         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50500         gl_SNPRINTF_SIZE1.
50501         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50502         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50503         that test failed.
50504         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50505         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50506         * modules/snprintf (Files): Add m4/printf.m4.
50507         * modules/vsnprintf (Files): Likewise.
50508         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50509         * doc/posix-functions/vsnprintf.texi: Likewise.
50510
50511 2008-04-19  Bruno Haible  <bruno@clisp.org>
50512
50513         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50514         from 0.0058 to less than 10^-7.
50515
50516 2008-04-19  Bruno Haible  <bruno@clisp.org>
50517
50518         Fix rounding when a precision is given.
50519         * lib/vasnprintf.c (is_borderline): New function.
50520         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50521         9...9x.
50522         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50523         %e, %g.
50524         * tests/test-vasprintf-posix.c (test_function): Likewise.
50525         * tests/test-snprintf-posix.h (test_function): Likewise.
50526         * tests/test-sprintf-posix.h (test_function): Likewise.
50527         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50528         * tests/test-printf-posix.h (test_function): Likewise.
50529         * tests/test-printf-posix.output: Update.
50530         Reported by John Darrington <john@darrington.wattle.id.au> via
50531         Ben Pfaff <blp@cs.stanford.edu>.
50532
50533 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50534
50535         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50536         Suggested by Bruno Haible <bruno@clisp.org>.
50537
50538 2008-04-17  Bruno Haible  <bruno@clisp.org>
50539
50540         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50541         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50542         implementation.
50543         Patch by Bruce Merry <bmerry@gmail.com>.
50544
50545 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50546
50547         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50548         doesn't work under Windows.
50549
50550 2008-04-16  Bruno Haible  <bruno@clisp.org>
50551
50552         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50553         New macros.
50554         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50555         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50556         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50557         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50558         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50559         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50560         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50561         macros.
50562         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50563         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50564         Northern Sotho, Uighur.
50565
50566 2008-04-16  Bruno Haible  <bruno@clisp.org>
50567
50568         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50569         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50570         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50571         Reported by Daniel Bergström <daniel@octocode.com>.
50572
50573 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50574             Bruno Haible  <bruno@clisp.org>
50575
50576         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50577         function.
50578         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50579         New functions, mostly extracted from gl_locale_name_default.
50580         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50581
50582 2008-04-16  Eric Blake  <ebb9@byu.net>
50583
50584         Adjust strtod detection to catch glibc 2.7 bug.
50585         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50586         Reported by John Gatewood Ham.
50587
50588 2008-04-16  Bruno Haible  <bruno@clisp.org>
50589
50590         Add tentative support for Linux libc5.
50591         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50592         * lib/fpurge.c (fpurge): Likewise.
50593         * lib/freadable.c (freadable): Likewise.
50594         * lib/freadahead.c (freadahead): Likewise.
50595         * lib/freading.c (freading): Likewise.
50596         * lib/freadptr.c (freadptr): Likewise.
50597         * lib/freadseek.c (freadptrinc): Likewise.
50598         * lib/fseeko.c (rpl_fseeko): Likewise.
50599         * lib/fseterr.c (fseterr): Likewise.
50600         * lib/fwritable.c (fwritable): Likewise.
50601         * lib/fwriting.c (fwriting): Likewise.
50602         Reported by Alain Guibert <alguibert+bts@free.fr>.
50603
50604 2008-04-15  Bruno Haible  <bruno@clisp.org>
50605
50606         * modules/mathl (configure.ac): Define module indicator.
50607
50608 2008-04-15  Bruno Haible  <bruno@clisp.org>
50609
50610         * lib/logl.c (logl): Remove unused variables.
50611
50612 2008-04-15  Bruno Haible  <bruno@clisp.org>
50613
50614         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50615         fails.
50616
50617 2008-04-15  Bruno Haible  <bruno@clisp.org>
50618
50619         * lib/trim.c (trim2): Fix argument of isspace() macro.
50620
50621 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50622
50623         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50624         to 0.
50625         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50626
50627 2008-04-14  Bruno Haible  <bruno@clisp.org>
50628
50629         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50630         AC_LANG_PROGRAM argument.
50631         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50632         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50633         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50634         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50635         * m4/math_h.m4 (gl_MATH_H): Likewise.
50636         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50637         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50638         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50639         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50640         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50641         * m4/regex.m4 (gl_REGEX): Likewise.
50642         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50643         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50644         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50645         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50646         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50647         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50648         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50649         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50650
50651 2008-04-14  Jim Meyering  <meyering@redhat.com>
50652
50653         test-strtod: fix typos: s/abs/fabs/
50654         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50655
50656 2008-04-13  Bruno Haible  <bruno@clisp.org>
50657
50658         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50659         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50660         module is also used and while not building the reloc-wrapper.
50661
50662 2008-04-13  Bruno Haible  <bruno@clisp.org>
50663
50664         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50665
50666 2008-04-13  Bruno Haible  <bruno@clisp.org>
50667
50668         Fix AIX compilation failure introduced on 2008-04-02.
50669         * tests/test-frexp.c (exp): Undefine before redefining.
50670         * tests/test-frexpl.c (exp): Likewise.
50671
50672 2008-04-13  Bruno Haible  <bruno@clisp.org>
50673
50674         Work around a HP-UX stdio bug.
50675         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50676         * tests/test-ftello.c (main): Likewise.
50677         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50678         * doc/posix-functions/ftello.texi: Likewise.
50679
50680 2008-04-13  Bruno Haible  <bruno@clisp.org>
50681
50682         Make test-signbit pass on HP-UX/hppa.
50683         * tests/test-signbit.c (minus_zerol): New variable.
50684         (test_signbitl): Use it.
50685
50686 2008-04-13  Bruno Haible  <bruno@clisp.org>
50687
50688         Make truncl work on OSF/1 4.0.
50689         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50690         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50691         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50693         HAVE_DECL_TRUNCL.
50694         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50695         HAVE_DECL_TRUNCL.
50696         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50697
50698 2008-04-13  Bruno Haible  <bruno@clisp.org>
50699
50700         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50701
50702 2008-04-13  Bruno Haible  <bruno@clisp.org>
50703
50704         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50705         expression, so as to avoid HP-UX 11 cc compiler bug.
50706
50707 2008-04-13  Bruno Haible  <bruno@clisp.org>
50708
50709         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50710
50711 2008-04-13  Bruno Haible  <bruno@clisp.org>
50712
50713         * lib/git-merge-changelog.c: Remove empty declaration outside of
50714         functions.
50715
50716 2008-04-13  Bruno Haible  <bruno@clisp.org>
50717
50718         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50719
50720 2008-04-13  Bruno Haible  <bruno@clisp.org>
50721
50722         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50723         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50724         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50725         also if it exists but lacks definitions of the SHUT_* macros.
50726         * modules/sys_socket (Description): Update.
50727         Reported by Elbert Pol <e.pol@chello.nl>.
50728
50729 2008-04-13  Bruno Haible  <bruno@clisp.org>
50730
50731         * lib/localcharset.c (OS2): Don't redefine if already defined.
50732         Reported by Elbert Pol <e.pol@chello.nl>.
50733
50734 2008-04-13  Bruno Haible  <bruno@clisp.org>
50735
50736         * lib/binary-io.h [__EMX__]: Include <io.h>.
50737         Reported by Elbert Pol <e.pol@chello.nl>.
50738
50739 2008-04-12  Bruno Haible  <bruno@clisp.org>
50740
50741         * lib/fpucw.h: Enable the definitions also for x86_64.
50742         Needed for NetBSD/x86_64.
50743         Reported by Thomas Klausner <tk@giga.or.at>.
50744
50745 2008-04-12  Bruno Haible  <bruno@clisp.org>
50746
50747         * tests/test-strtod.c: Include isnand.h.
50748         (main): Use isnand instead of isnan.
50749         Reported by Jim Meyering.
50750
50751 2008-04-12  Bruno Haible  <bruno@clisp.org>
50752
50753         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50754         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50755
50756 2008-04-12  Jim Meyering  <meyering@redhat.com>
50757
50758         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50759
50760 2008-04-12  Bruno Haible  <bruno@clisp.org>
50761
50762         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50763         Reported by Elbert Pol <e.pol@chello.nl>.
50764
50765 2008-04-12  Eric Blake  <ebb9@byu.net>
50766
50767         Work around Solaris 10 math.h bug.
50768         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50769         (gl_MATH_H_DEFAULTS): Set up default.
50770         * modules/math (Makefile.am): Replace new indicators.
50771         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50772         * tests/test-math.c (main): Test this.
50773         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50774         * doc/posix-headers/math.texi (math.h): Mention bug.
50775         Reported by Nelson H. F. Beebe and Jim Meyering.
50776
50777 2008-04-11  Bruno Haible  <bruno@clisp.org>
50778
50779         Adapt to future versions of Apple GCC.
50780         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50781         Reported by Peter O'Gorman <peter@pogma.com>.
50782
50783 2008-04-11  Bruno Haible  <bruno@clisp.org>
50784
50785         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50786
50787 2008-04-11  Bruno Haible  <bruno@clisp.org>
50788
50789         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50790
50791         * modules/getaddrinfo-tests (Makefile.am): Define
50792         test_getaddrinfo_LDADD.
50793
50794 2008-04-11  Bruno Haible  <bruno@clisp.org>
50795
50796         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50797         (init): Fix syntax error.
50798         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50799         is declared.
50800
50801 2008-04-11  Bruno Haible  <bruno@clisp.org>
50802
50803         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50804         * modules/glob (Depends-on): Add stdbool.
50805
50806 2008-04-11  Bruno Haible  <bruno@clisp.org>
50807
50808         * lib/trim.c: Include <string.h>.
50809
50810 2008-04-11  Eric Blake  <ebb9@byu.net>
50811
50812         Avoid compile failure on OS/2.
50813         * lib/regex_internal.h (internal_function): Disable optimization
50814         on OS/2 (__EMX__), where it caused compiler error.
50815         Reported by Elbert Pol.
50816
50817 2008-04-11  Bruno Haible  <bruno@clisp.org>
50818
50819         Flush the standard error stream before aborting. Needed on mingw.
50820         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50821         * tests/test-array_list.c (ASSERT): Likewise.
50822         * tests/test-array_oset.c (ASSERT): Likewise.
50823         * tests/test-avltree_list.c (ASSERT): Likewise.
50824         * tests/test-avltree_oset.c (ASSERT): Likewise.
50825         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50826         * tests/test-binary-io.c (ASSERT): Likewise.
50827         * tests/test-byteswap.c (ASSERT): Likewise.
50828         * tests/test-c-ctype.c (ASSERT): Likewise.
50829         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50830         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50831         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50832         * tests/test-c-strstr.c (ASSERT): Likewise.
50833         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50834         * tests/test-canonicalize.c (ASSERT): Likewise.
50835         * tests/test-carray_list.c (ASSERT): Likewise.
50836         * tests/test-ceilf1.c (ASSERT): Likewise.
50837         * tests/test-ceilf2.c (ASSERT): Likewise.
50838         * tests/test-ceill.c (ASSERT): Likewise.
50839         * tests/test-count-one-bits.c (ASSERT): Likewise.
50840         * tests/test-fbufmode.c (ASSERT): Likewise.
50841         * tests/test-fflush2.c (ASSERT): Likewise.
50842         * tests/test-floorf1.c (ASSERT): Likewise.
50843         * tests/test-floorf2.c (ASSERT): Likewise.
50844         * tests/test-floorl.c (ASSERT): Likewise.
50845         * tests/test-fopen.c (ASSERT): Likewise.
50846         * tests/test-fpending.c (ASSERT): Likewise.
50847         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50848         * tests/test-fpurge.c (ASSERT): Likewise.
50849         * tests/test-freadable.c (ASSERT): Likewise.
50850         * tests/test-freadahead.c (ASSERT): Likewise.
50851         * tests/test-freading.c (ASSERT): Likewise.
50852         * tests/test-freadptr.c (ASSERT): Likewise.
50853         * tests/test-freadptr2.c (ASSERT): Likewise.
50854         * tests/test-freadseek.c (ASSERT): Likewise.
50855         * tests/test-freopen.c (ASSERT): Likewise.
50856         * tests/test-frexp.c (ASSERT): Likewise.
50857         * tests/test-frexpl.c (ASSERT): Likewise.
50858         * tests/test-fseek.c (ASSERT): Likewise.
50859         * tests/test-fseeko.c (ASSERT): Likewise.
50860         * tests/test-fstrcmp.c (ASSERT): Likewise.
50861         * tests/test-ftell.c (ASSERT): Likewise.
50862         * tests/test-ftello.c (ASSERT): Likewise.
50863         * tests/test-func.c (ASSERT): Likewise.
50864         * tests/test-fwritable.c (ASSERT): Likewise.
50865         * tests/test-fwriting.c (ASSERT): Likewise.
50866         * tests/test-getdelim.c (ASSERT): Likewise.
50867         * tests/test-getline.c (ASSERT): Likewise.
50868         * tests/test-i-ring.c (ASSERT): Likewise.
50869         * tests/test-iconv-utf.c (ASSERT): Likewise.
50870         * tests/test-iconv.c (ASSERT): Likewise.
50871         * tests/test-isfinite.c (ASSERT): Likewise.
50872         * tests/test-isnand.c (ASSERT): Likewise.
50873         * tests/test-isnanf.c (ASSERT): Likewise.
50874         * tests/test-isnanl.h (ASSERT): Likewise.
50875         * tests/test-ldexpl.c (ASSERT): Likewise.
50876         * tests/test-linked_list.c (ASSERT): Likewise.
50877         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50878         * tests/test-localename.c (ASSERT): Likewise.
50879         * tests/test-lseek.c (ASSERT): Likewise.
50880         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50881         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50882         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50883         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50884         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50885         * tests/test-mbschr.c (ASSERT): Likewise.
50886         * tests/test-mbscspn.c (ASSERT): Likewise.
50887         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50888         * tests/test-mbspbrk.c (ASSERT): Likewise.
50889         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50890         * tests/test-mbsrchr.c (ASSERT): Likewise.
50891         * tests/test-mbsspn.c (ASSERT): Likewise.
50892         * tests/test-mbsstr1.c (ASSERT): Likewise.
50893         * tests/test-mbsstr2.c (ASSERT): Likewise.
50894         * tests/test-mbsstr3.c (ASSERT): Likewise.
50895         * tests/test-memchr2.c (ASSERT): Likewise.
50896         * tests/test-memmem.c (ASSERT): Likewise.
50897         * tests/test-open.c (ASSERT): Likewise.
50898         * tests/test-printf-frexp.c (ASSERT): Likewise.
50899         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50900         * tests/test-printf-posix.c (ASSERT): Likewise.
50901         * tests/test-quotearg.c (ASSERT): Likewise.
50902         * tests/test-rbtree_list.c (ASSERT): Likewise.
50903         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50904         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50905         * tests/test-round1.c (ASSERT): Likewise.
50906         * tests/test-roundf1.c (ASSERT): Likewise.
50907         * tests/test-roundl.c (ASSERT): Likewise.
50908         * tests/test-signbit.c (ASSERT): Likewise.
50909         * tests/test-sleep.c (ASSERT): Likewise.
50910         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50911         * tests/test-snprintf.c (ASSERT): Likewise.
50912         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50913         * tests/test-stat-time.c (ASSERT): Likewise.
50914         * tests/test-strcasestr.c (ASSERT): Likewise.
50915         * tests/test-strerror.c (ASSERT): Likewise.
50916         * tests/test-striconv.c (ASSERT): Likewise.
50917         * tests/test-striconveh.c (ASSERT): Likewise.
50918         * tests/test-striconveha.c (ASSERT): Likewise.
50919         * tests/test-strsignal.c (ASSERT): Likewise.
50920         * tests/test-strstr.c (ASSERT): Likewise.
50921         * tests/test-strtod.c (ASSERT): Likewise.
50922         * tests/test-trunc1.c (ASSERT): Likewise.
50923         * tests/test-trunc2.c (ASSERT): Likewise.
50924         * tests/test-truncf1.c (ASSERT): Likewise.
50925         * tests/test-truncf2.c (ASSERT): Likewise.
50926         * tests/test-truncl.c (ASSERT): Likewise.
50927         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50928         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50929         * tests/test-vasnprintf.c (ASSERT): Likewise.
50930         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50931         * tests/test-vasprintf.c (ASSERT): Likewise.
50932         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50933         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50934         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50935         * tests/test-vsnprintf.c (ASSERT): Likewise.
50936         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50937         * tests/test-wcwidth.c (ASSERT): Likewise.
50938         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50939         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50940         * tests/test-xvasprintf.c (ASSERT): Likewise.
50941         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50942         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50943         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50944         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50945         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50946         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50947         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50948         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50949         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50950         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50951         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50952         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50953         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50954         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50955         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50956         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50957         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50958         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50959         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50960         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50961         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50962         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50963         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50964         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50965         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50966         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50967         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50968         * tests/unictype/test-combining.c (ASSERT): Likewise.
50969         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50970         * tests/unictype/test-digit.c (ASSERT): Likewise.
50971         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50972         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50973         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50974         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50975         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50976         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50977         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50978         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50979         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50980         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50981         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50982         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50983         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50984         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50985         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50986         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50987         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50988         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50989         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50990         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50991         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50992         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50993         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50994         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50995         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50996         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50997         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50998         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50999         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51000         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51001         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51002         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51003         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51004         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51005         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51006         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51007         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51008         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51009         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51010         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51011         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51012         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51013         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51014         Reported by Eric Blake.
51015
51016 2008-04-11  Bruno Haible  <bruno@clisp.org>
51017
51018         * lib/wchar.in.h: Tweak comment.
51019
51020 2008-04-11  Bruno Haible  <bruno@clisp.org>
51021
51022         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51023         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51024         gl_COMMON.
51025         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51026
51027 2008-04-11  Bruno Haible  <bruno@clisp.org>
51028
51029         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51030
51031 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51032
51033         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51034         of attempting to use non-existing /dev/*random.  Based on patch
51035         from Adam Strzelecki <ono@java.pl> in
51036         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51037
51038 2008-04-08  Bruno Haible  <bruno@clisp.org>
51039
51040         Add tentative support for emx+gcc.
51041         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51042         * lib/fpurge.c (fpurge): Likewise.
51043         * lib/freadable.c (freadable): Likewise.
51044         * lib/freadahead.c (freadahead): Likewise.
51045         * lib/freading.c (freading): Likewise.
51046         * lib/freadptr.c (freadptr): Likewise.
51047         * lib/freadseek.c (freadptrinc): Likewise.
51048         * lib/fseeko.c (rpl_fseeko): Likewise.
51049         * lib/fseterr.c (fseterr): Likewise.
51050         * lib/fwritable.c (fwritable): Likewise.
51051         * lib/fwriting.c (fwriting): Likewise.
51052         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51053
51054 2008-04-09  Eric Blake  <ebb9@byu.net>
51055
51056         Avoid some autoconf warnings.
51057         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51058         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51059         * m4/afs.m4 (gl_AFS): Likewise.
51060         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51061         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51062         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51063         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51064         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51065         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51066         (AC_CHECK_DECLS_ONCE): Likewise.
51067         Rename file...
51068         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51069         gnulib-tool requires autoconf 2.59 or better.
51070         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51071
51072 2008-04-08  Eric Blake  <ebb9@byu.net>
51073
51074         Use 'git describe --match' if present (added in git 1.5.5).
51075         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51076         if possible.
51077
51078 2008-04-08  Bruno Haible  <bruno@clisp.org>
51079
51080         Add tentative support for OpenServer.
51081         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51082         _ptr, _cnt.
51083         * lib/fpurge.c (fpurge): Likewise.
51084         * lib/freadable.c (freadable): Likewise.
51085         * lib/freadahead.c (freadahead): Likewise.
51086         * lib/freading.c (freading): Likewise.
51087         * lib/freadptr.c (freadptr): Likewise.
51088         * lib/freadseek.c (freadptrinc): Likewise.
51089         * lib/fseeko.c (rpl_fseeko): Likewise.
51090         * lib/fseterr.c (fseterr): Likewise.
51091         * lib/fwritable.c (fwritable): Likewise.
51092         * lib/fwriting.c (fwriting): Likewise.
51093         Reported by Roger Cornelius <rac@tenzing.org> and
51094         Brian K. White <brian@aljex.com>.
51095
51096 2008-04-06  Jim Meyering  <meyering@redhat.com>
51097
51098         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51099
51100 2008-04-06  Bruno Haible  <bruno@clisp.org>
51101
51102         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51103         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51104         * tests/test-printf-posix.sh: Likewise.
51105         * tests/test-vfprintf-posix.sh: Likewise.
51106         * tests/test-vprintf-posix.sh: Likewise.
51107         * tests/test-xprintf-posix.sh: Likewise.
51108
51109 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51110
51111         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51112         hide error from 'ls', needed on OS/2.
51113         Report by Elbert Pol <elbert.pol@gmail.com>.
51114
51115 2008-04-04  Eric Blake  <ebb9@byu.net>
51116
51117         Make test-fseeko.c failures meaningful.
51118         * tests/test-fseeko.c: Print line number on failure.
51119         * tests/test-fseek.c: Likewise.
51120         Reported by Nelson H. F. Beebe.
51121
51122         Improve strtod bug detection check.
51123         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51124         required for Solaris 10.
51125         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51126
51127 2008-04-04  Bruno Haible  <bruno@clisp.org>
51128
51129         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51130         by m4/setenv.m4.
51131
51132 2008-04-03  Eric Blake  <ebb9@byu.net>
51133
51134         Ensure sane .version contents.
51135         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51136         version string.
51137         * build-aux/git-version-gen: Improve documentation.
51138
51139         Make GNU make output nicer.
51140         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51141         MAKECMDGOALS to enforce message for all command line targets.  Set
51142         srcdir for use in maint.mk.
51143
51144         Another maintainer tweak.
51145         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51146         a target that regenerates version.
51147
51148 2008-04-03  Jim Meyering  <meyering@redhat.com>
51149
51150         vc-list-files: don't cause coreutils "make po-check" failure
51151         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51152
51153 2008-04-03  Eric Blake  <ebb9@byu.net>
51154
51155         Allow VPATH usage of vc-list-files.
51156         * build-aux/vc-list-files (scriptversion): Add timestamp.
51157         (options): Add --help, --version, -C.
51158         (CVS): Support installed cvsu.
51159
51160 2008-04-02  Bruno Haible  <bruno@clisp.org>
51161
51162         Avoid some "statement with no effect" warnings from gcc.
51163         * tests/test-wctype.c (main): Explicitly ignore unused values.
51164         Reported by Jim Meyering.
51165
51166 2008-04-02  Jim Meyering  <meyering@redhat.com>
51167
51168         Avoid some warnings from "gcc -Wshadow".
51169         * tests/test-frexp.c (exp): Define to a different identifier.
51170         * tests/test-frexpl.c (exp): Likewise.
51171
51172 2008-04-03  Jim Meyering  <meyering@redhat.com>
51173
51174         bootstrap: remove dangling *.[ch] symlinks from lib
51175         * build-aux/bootstrap [dangling symlink removal]: Move find's
51176         -depth option to precede all others, to avoid a warning.
51177         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51178
51179 2008-04-02  Bruno Haible  <bruno@clisp.org>
51180
51181         Avoid some warnings from "gcc -Wshadow".
51182         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51183         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51184         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51185         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51186         Reported by Jim Meyering.
51187
51188 2008-04-01  Bruno Haible  <bruno@clisp.org>
51189
51190         Fix test to work on IRIX 6.5 with cc.
51191         * tests/test-math.c (numeric_equal): New function.
51192         (main): Use it.
51193
51194 2008-04-01  Bruno Haible  <bruno@clisp.org>
51195
51196         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51197
51198 2008-04-01  Bruno Haible  <bruno@clisp.org>
51199
51200         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51201         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51202         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51203         (Depends-on): Remove math.
51204
51205         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51206         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51207         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51208         (Depends-on): Remove math.
51209
51210         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51211         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51212         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51213         (Depends-on): Remove math.
51214         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51215         (Depends-on): Remove math.
51216
51217         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51218         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51219         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51220         (Depends-on): Remove math.
51221         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51222         (Depends-on): Remove math.
51223
51224         * tests/test-round1.c: Include nan.h.
51225         (main): Use NaNd instead of NAN.
51226         * modules/round-tests (Files): Add tests/nan.h.
51227
51228         * tests/test-trunc1.c: Include nan.h.
51229         (main): Use NaNd instead of NAN.
51230         * modules/trunc-tests (Files): Add tests/nan.h.
51231
51232         * tests/test-roundf1.c: Include nan.h.
51233         (main): Use NaNf instead of NAN.
51234         * modules/roundf-tests (Files): Add tests/nan.h.
51235
51236         * tests/test-truncf1.c: Include nan.h.
51237         (main): Use NaNf instead of NAN.
51238         * modules/truncf-tests (Files): Add tests/nan.h.
51239
51240         * tests/test-ceilf1.c: Include nan.h.
51241         (main): Use NaNf instead of NAN.
51242         * modules/ceilf-tests (Files): Add tests/nan.h.
51243
51244         * tests/test-floorf1.c: Include nan.h.
51245         (main): Use NaNf instead of NAN.
51246         * modules/floorf-tests (Files): Add tests/nan.h.
51247
51248         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51249         (main): Use NaNf instead of NAN.
51250         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51251
51252         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51253         (main): Use NaNd instead of NAN.
51254         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51255
51256         * tests/test-frexp.c: Include nan.h.
51257         (main): Use NaNd instead of NAN.
51258         * modules/frexp-tests (Files): Add tests/nan.h.
51259
51260         * lib/isnan.c: Don't include <math.h>.
51261         (FUNC): Don't use NAN macro.
51262         * modules/isnand-nolibm (Depends-on): Remove math.
51263         * modules/isnanf-nolibm (Depends-on): Remove math.
51264         * modules/isnanl (Depends-on): Remove math.
51265         * modules/isnanl-nolibm (Depends-on): Remove math.
51266
51267         * tests/nan.h: New file.
51268
51269 2008-04-01  Eric Blake  <ebb9@byu.net>
51270
51271         Fix typos.
51272         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51273         values to be the right type.
51274
51275         For now, cater to gnulib strtod inaccuracies.
51276         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51277         fractional results.  While not as nice from a QoI perspective, it
51278         is a quicker patch than correctly implementing decimal to binary
51279         rounding.
51280
51281 2008-03-31  Eric Blake  <ebb9@byu.net>
51282
51283         Guarantee a definition of NAN.
51284         * lib/math.in.h (NAN): Define if missing.
51285         * tests/test-math.c (main): Test it.
51286         * doc/posix-headers/math.texi (math.h): Document this.
51287         * lib/isnan.c (rpl_isnand): Use it.
51288         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51289         * tests/test-floorf1.c (NaN): Likewise.
51290         * tests/test-frexp.c (NaN): Likewise.
51291         * tests/test-isnand.c (NaN): Likewise.
51292         * tests/test-isnanf.c (NaN): Likewise.
51293         * tests/test-round1.c (NaN): Likewise.
51294         * tests/test-roundf1.c (NaN): Likewise.
51295         * tests/test-snprintf-posix.h (NaN): Likewise.
51296         * tests/test-sprintf-posix.h (NaN): Likewise.
51297         * tests/test-trunc1.c (NaN): Likewise.
51298         * tests/test-truncf1.c (NaN): Likewise.
51299         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51300         * tests/test-vasprintf-posix.c (NaN): Likewise.
51301         * modules/isnand-nolibm (Depends-on): Add math.
51302         * modules/isnanf-nolibm (Depends-on): Likewise.
51303         * modules/isnanl (Depends-on): Likewise.
51304         * modules/isnanl-nolibm (Depends-on): Likewise.
51305         * modules/snprintf-posix-tests (Depends-on): Likewise.
51306         * modules/sprintf-posix-tests (Depends-on): Likewise.
51307         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51308         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51309         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51310         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51311
51312 2008-03-31  Bruno Haible  <bruno@clisp.org>
51313
51314         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51315         * doc/posix-functions/strtod.texi: Likewise.
51316
51317 2008-03-31  Bruno Haible  <bruno@clisp.org>
51318
51319         * tests/test-strtod.c (main): Don't use C99 syntax.
51320
51321 2008-03-31  Bruno Haible  <bruno@clisp.org>
51322
51323         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51324         Reported by Eric Blake.
51325
51326 2008-03-31  Jim Meyering  <meyering@redhat.com>
51327
51328         Don't compare actual signbit return values.
51329         * tests/test-strtod.c (main): Rather, compare only their
51330         zero/non-zero nature.
51331
51332 2008-03-31  Eric Blake  <ebb9@byu.net>
51333
51334         More strtod documentation.
51335         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51336         failures as distinct bugs.
51337
51338 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51339
51340         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51341         Problem reported by Erik Benada in
51342         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51343
51344 2008-03-30  Bruno Haible  <bruno@clisp.org>
51345
51346         * tests/test-strtod.c: Add comments about which assertion fails on which
51347         platform.
51348         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51349
51350 2008-03-30  Eric Blake  <ebb9@byu.net>
51351
51352         Test signbit behavior on zeros.
51353         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51354         (test_signbitd, test_signbitl): Likewise.
51355
51356         More strtod touchups.
51357         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51358         sign of negative underflow, for now.  Use .5, not .1.
51359         * doc/posix-functions/strtod.texi (strtod): Mention these
51360         limitations.
51361         Reported by Jim Meyering.
51362
51363 2008-03-30  Bruno Haible  <bruno@clisp.org>
51364
51365         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51366         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51367
51368 2008-03-30  Bruno Haible  <bruno@clisp.org>
51369
51370         Avoid failure when attempting to return empty iconv results on some
51371         platforms.
51372         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51373         allocation, don't report ENOMEM when the resulting string is empty.
51374
51375 2008-03-30  Bruno Haible  <bruno@clisp.org>
51376
51377         Fix buffer overrun.
51378         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51379         Don't consider the width for tmp_length. Check count against tmp_length
51380         before doing the padding. Ensure enough allocation during padding.
51381
51382 2008-03-30  Eric Blake  <ebb9@byu.net>
51383
51384         strtod touchups.
51385         * lib/strtod.c (strtod): Avoid compiler warnings.
51386         Reported by Jim Meyering.
51387
51388 2008-03-30  Bruno Haible  <bruno@clisp.org>
51389
51390         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51391         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51392         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51393         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51394         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51395         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51396         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51397         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51398
51399         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51400         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51401         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51402         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51403         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51404         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51405         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51406         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51407
51408         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51409         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51410         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51411         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51412         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51413         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51414         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51415         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51416
51417         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51418         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51419
51420         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51421         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51422
51423         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51424         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51425
51426         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51427         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51428         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51429
51430         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51431         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51432         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51433
51434         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51435         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51436         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51437
51438         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51439         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51440         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51441
51442         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51443         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51444         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51445         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51446         (Depends-on): Add EOVERFLOW.
51447         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51448         (Depends-on): Add EOVERFLOW.
51449         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51450         (Depends-on): Add EOVERFLOW.
51451         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51452         (Depends-on): Add EOVERFLOW.
51453         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51454         (Depends-on): Add EOVERFLOW.
51455         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51456         (Depends-on): Add EOVERFLOW.
51457         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51458         (Depends-on): Add EOVERFLOW.
51459         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51460         (Depends-on): Add EOVERFLOW.
51461
51462         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51463         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51464         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51465
51466         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51468         * modules/snprintf (Depends-on): Add EOVERFLOW.
51469
51470         * lib/poll.c (EOVERFLOW): Remove fallback.
51471         * modules/poll (Depends-on): Add EOVERFLOW.
51472
51473         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51474         * modules/getugroups (Depends-on): Add EOVERFLOW.
51475
51476         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51477         * modules/getdelim (Depends-on): Add EOVERFLOW.
51478
51479         * lib/ftell.c (EOVERFLOW): Remove fallback.
51480         * modules/ftell (Depends-on): Add EOVERFLOW.
51481
51482         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51483         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51484         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51485
51486         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51487
51488         * modules/EOVERFLOW-tests: New file.
51489         * tests/test-EOVERFLOW.c: New file.
51490
51491         * modules/EOVERFLOW: New file.
51492         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51493
51494 2008-03-30  Bruno Haible  <bruno@clisp.org>
51495
51496         Fix bug introduced on 2007-06-10.
51497         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51498         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51499
51500 2008-03-30  Bruno Haible  <bruno@clisp.org>
51501
51502         Improve freadseek's efficiency after ungetc.
51503         * lib/freadseek.c: Include freadahead.h.
51504         (freadptrinc): New function, extracted from freadseek.
51505         (freadseek): Use it in a loop. Use freadahead to determine the number
51506         of loop iterations.
51507         * modules/freadseek (Depends-on): Add freadahead.
51508         (configure.ac): Require AC_C_INLINE.
51509
51510 2008-03-30  Bruno Haible  <bruno@clisp.org>
51511
51512         * lib/freadseek.c (freadseek): Don't ignore the return value of
51513         freadptr.
51514
51515 2008-03-29  Eric Blake  <ebb9@byu.net>
51516
51517         Add hex float support.
51518         * modules/strtod (Depends-on): Add c-ctype.
51519         (Link): Mention POW_LIB.
51520         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51521         whitespace between 'e' and exponent.
51522         * tests/test-strtod.c (main): Enable hex float tests.
51523         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51524         now provides.
51525
51526         Document various strtod bugs, with some fixes.
51527         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51528         "-0x", "inf", "nan", and hex constants.
51529         * doc/posix-functions/atof.texi (atof): Likewise.
51530         * modules/stdlib (Makefile.am): Support strtod.
51531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51532         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51533         detect additional strtod bugs.
51534         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51535         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51536         bool where appropriate.  Parse 'inf' and 'nan'.
51537         * tests/test-strtod.c: New file.
51538         * modules/strtod (Depends-on): Add stdbool, stdlib.
51539         (configure.ac): Turn on module indicator.
51540         * modules/strtod-tests: New module.
51541
51542 2008-03-29  Eric Blake  <ebb9@byu.net>
51543
51544         Fix ftell on mingw.
51545         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51546         * modules/ftell-tests (Depends-on): Add binary-io.
51547         * modules/ftello-tests (Depends-on): Likewise.
51548         * tests/test-ftell.c (main): Enhance test to cover behavior after
51549         ungetc.  Enforce binary mode.
51550         * tests/test-ftello.c (main): Likewise.
51551
51552         Pass test-freadseek on cygwin.
51553         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51554         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51555         ungetc buffer.
51556
51557         * tests/test-fflush2.c (main): Fix typo.
51558
51559 2008-03-29  Bruno Haible  <bruno@clisp.org>
51560
51561         * tests/test-fflush2.c (main): Temporarily disable the contents of
51562         this test.
51563         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51564         Reported by Eric Blake.
51565
51566 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51567
51568         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51569         (GC_SHA224_DIGEST_SIZE): Add.
51570
51571         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51572         (gc_hash_digest_length): Likewise.
51573         (gc_hash_buffer): Likewise.
51574
51575 2008-03-25  Bruno Haible  <bruno@clisp.org>
51576
51577         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51578         detail which gettext release to use.
51579         Reported by Simon Josefsson.
51580
51581 2008-03-26  Jim Meyering  <meyering@redhat.com>
51582
51583         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51584         * modules/gnumakefile (clean-GNUmakefile): Also, use
51585         test ... && ... || : syntax rather than if-then ... fi.
51586
51587         gnumakefile: Don't double-quote-expand $(VPATH) value.
51588         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51589
51590 2008-03-24  Eric Blake  <ebb9@byu.net>
51591
51592         Alter GNUmakefile to install into top directory.
51593         * modules/maintainer-makefile: Split, and add dependency...
51594         * modules/gnumakefile: to this new module.
51595         * build-aux/GNUmakefile: Move...
51596         * top/GNUmakefile: ...here.
51597         * build-aux/maint.mk: Move...
51598         * top/maint.mk: ...here.
51599         * MODULES.html.sh (Support for maintaining...): Document new
51600         module.
51601
51602 2008-03-23  Bruno Haible  <bruno@clisp.org>
51603
51604         * gnulib-tool: New options --vc-files, --no-vc-files.
51605         (func_usage): Document them.
51606         (vc_files): New variable.
51607         (func_import): Consider vc_files.
51608         (func_create_testdir): Set vc_files to empty.
51609         Suggested by Jim Meyering and Karl Berry.
51610
51611 2008-03-23  Bruno Haible  <bruno@clisp.org>
51612
51613         Fix regex compilation error on HP-UX 11.
51614         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51615         * modules/regex (Files): Add m4/mbstate_t.m4.
51616         Reported by Ton Voon <ton.voon@altinity.com>.
51617
51618 2008-03-23  Bruno Haible  <bruno@clisp.org>
51619
51620         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51621
51622 2008-03-23  Eric Blake  <ebb9@byu.net>
51623             Bruno Haible  <bruno@clisp.org>
51624
51625         Install files from top/ in the destination directory.
51626         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51627         augmentation also for the files from top/.
51628         (func_import, func_create_testdir): Rewrite file names:
51629         top/filename -> filename.
51630
51631 2008-03-23  Bruno Haible  <bruno@clisp.org>
51632
51633         Tweak "gnulib --version" output.
51634         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51635
51636 2008-03-23  Bruno Haible  <bruno@clisp.org>
51637
51638         Tweak "gnulib --version" output.
51639         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51640         rather than contents of ChangeLog, when possible.
51641
51642 2008-03-21  Eric Blake  <ebb9@byu.net>
51643
51644         More --version tweaks.
51645         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51646         date of last ChangeLog entry.
51647
51648 2008-03-21  Jim Meyering  <meyering@redhat.com>
51649
51650         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51651
51652 2008-03-20  Eric Blake  <ebb9@byu.net>
51653
51654         VPATH fix.
51655         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51656
51657 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51658
51659         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51660         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51661
51662 2008-03-20  Eric Blake  <ebb9@byu.net>
51663
51664         Sync GNUmakefile with coreutils.
51665         * build-aux/GNUmakefile (have-Makefile): Rename...
51666         (_have-Makefile): ...to this, for namespace consideration.
51667         (GNUmakefile.cfg): Include, if present.
51668         (_autoreconf): Define a default.
51669         (_is-dist-target): New rule for rebuilds to pick up intra-release
51670         version.
51671         (maint-cfg.mk): Rename...
51672         (cfg.mk): ...to this.
51673
51674 2008-03-18  Jim Meyering  <meyering@redhat.com>
51675
51676         New script and module: mktempd
51677         * MODULES.html.sh (maint+release support): Add mktempd.
51678         * build-aux/mktempd: New file.
51679         * modules/mktempd: New file.
51680
51681 2008-03-15  Jim Meyering  <meyering@redhat.com>
51682
51683         Undo last change.
51684         * lib/sha1.c, lib/md5.c: 63 != ~63.
51685         Reported by Andreas Schwab.
51686
51687         sha1.c, md5.c: Hoist a redundant expression.
51688         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51689         "ctx->buflen" only once, before calling *_process_block.
51690         * lib/md5.c (md5_process_bytes): Likewise.
51691
51692 2008-03-14  Eric Blake  <ebb9@byu.net>
51693
51694         Bump copyright year in files generated by gnulib-tool.
51695         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51696         gnulib-tool, rather than hard-coding it.
51697
51698         Fix 'gnulib-tool --version' output to work with git.
51699         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51700         (startup): ...here.
51701         (func_version): Use it to invoke git-version-gen, rather than
51702         relying on CVS keyword expansion.  Modernize wording.
51703         (cvsdatestamp, last_checkin_date, version): Kill unused
51704         variables.
51705
51706 2008-03-12  Jim Meyering  <meyering@redhat.com>
51707
51708         Recognize optional cast of the argument to free.
51709         * build-aux/useless-if-before-free: Update regexps.
51710
51711         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51712
51713 2008-03-11  Bruno Haible  <bruno@clisp.org>
51714
51715         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51716         by a single package.
51717         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51718         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51719         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51720         Reported by Sam Steingold <sds@gnu.org>.
51721
51722 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51723
51724         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51725         repositories.
51726
51727 2008-03-11  Bruno Haible  <bruno@clisp.org>
51728
51729         Avoid conflicts between local macro definitions.
51730         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51731         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51732
51733 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51734             Bruno Haible  <bruno@clisp.org>
51735
51736         Make va_copy work with some version of xlc on AIX 5.1.
51737         * lib/stdarg.in.h: New file.
51738         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51739         On AIX, use a <stdarg.h> file substitute.
51740         * modules/stdarg (Files): Add lib/stdarg.in.h.
51741         (Depends-on): Add include_next.
51742         (Makefile.am): Build a stdarg.h substitute if requested.
51743         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51744
51745 2008-03-10  Bruno Haible  <bruno@clisp.org>
51746
51747         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51748         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51749         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51750
51751 2008-03-10  Bruno Haible  <bruno@clisp.org>
51752
51753         * modules/stdlib (Depends-on): Add include_next, remove
51754         absolute-header.
51755
51756 2008-03-09  Bruno Haible  <bruno@clisp.org>
51757
51758         * lib/freadahead.h (freadahead): Document more precisely.
51759         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51760         the sum of both buffer sizes.
51761         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51762         * NEWS: Document the change.
51763
51764 2008-03-09  Bruno Haible  <bruno@clisp.org>
51765
51766         Extend freadptr to return also the buffer size.
51767         * lib/freadptr.h (freadptr): Add sizep argument.
51768         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51769         (freadptr): Add sizep argument. Determine buffer size like freadahead
51770         does.
51771         * tests/test-freadptr.c: Don't include freadahead.h.
51772         (main): Adapt for new calling convention of freadptr.
51773         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51774         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51775         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51776         tests/test-freadptr2.sh.
51777         (Depends): Remove freadahead.
51778         (TESTS): Add test-freadptr2.sh.
51779         (check_PROGRAMS): Add test-freadptr2.
51780
51781 2008-03-09  Bruno Haible  <bruno@clisp.org>
51782
51783         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51784         Report and solution by Simon Josefsson.
51785
51786 2008-03-06  Bruno Haible  <bruno@clisp.org>
51787
51788         Make fflush after ungetc work on BSD platforms.
51789         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51790         * tests/test-fflush2.c: New file.
51791         * tests/test-fflush2.sh: New file.
51792         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51793         tests/test-fflush2.c.
51794         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51795         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51796
51797 2008-03-06  Eric Blake  <ebb9@byu.net>
51798
51799         Likewise for ftello.
51800         * modules/ftello (Dependencies): Add extensions.
51801         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51802
51803 2008-03-06  Bruno Haible  <bruno@clisp.org>
51804
51805         * modules/fseeko (Dependencies): Add extensions.
51806         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51807         Needed on glibc systems.
51808
51809 2008-03-06  Bruno Haible  <bruno@clisp.org>
51810
51811         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51812         email address.
51813         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51814
51815 2008-03-06  Bruno Haible  <bruno@clisp.org>
51816
51817         * users.txt: Add libgnupdf.
51818
51819 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51820
51821         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51822         (Header File Substitutes, Function Substitutes,
51823         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51824         (Build robot for gnulib): Fix typo.
51825
51826 2008-03-06  Bruno Haible  <bruno@clisp.org>
51827
51828         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51829         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51830
51831 2008-03-06  Bruno Haible  <bruno@clisp.org>
51832
51833         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51834         * doc/gnulib.texi: Include it.
51835
51836 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51837
51838         * modules/func (License): Change license to unlimited; there was
51839         no LGPL parts in the module anyway.
51840
51841 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51842
51843         * modules/__func__: Renamed to modules/func.
51844         * modules/__func__-tests: Renamed to modules/func-tests.
51845         * tests/test-__func__.c: Renamed to tests/test-func.c.
51846         * m4/__func__.m4: Renamed to m4/func.m4.
51847         * doc/gnulib.texi (__func__): Section renamed to func.
51848         Suggested by Eric Blake <ebb9@byu.net>.
51849
51850 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51851
51852         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51853         about __func__.  Make example self-contained.  Suggested by Eric
51854         Blake <ebb9@byu.net>.
51855
51856         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51857         Suggested by Eric Blake <ebb9@byu.net>.
51858
51859 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51860
51861         * modules/__func__: New file.
51862         * modules/__func__-tests: New file.
51863         * tests/test-__func__.c: New file.
51864         * m4/__func__.m4: New file.
51865         * doc/gnulib.texi (__func__): Document __func__ module.
51866
51867 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51868
51869         * modules/byteswap (License): Re-license as LGPLv2+.
51870
51871 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51872
51873         * doc/Makefile: Add pdf target.
51874
51875 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51876
51877         * modules/inline (License): Use 'unlimited', since there are only
51878         *.m4 files in this module.
51879
51880 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51881             Bruno Haible  <bruno@clisp.org>
51882
51883         Add support for HP C 7.1 on OpenVMS 8.3.
51884         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51885
51886 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51887
51888         Update VMS specifics.
51889         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51890
51891 2008-03-02  Jim Meyering  <meyering@redhat.com>
51892
51893         Remove the last dependency on the "free" module.
51894         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51895         Reported by Bob Proulx.
51896
51897         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51898
51899         Remove useless "if" tests before free.  Deprecate "free" module.
51900         * doc/posix-functions/free.texi: Mention that this
51901         module is no longer useful.
51902         * modules/free (Notice): Say this module is obsolete.
51903         * modules/readutmp (Depends-on): Remove free.
51904         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51905         * lib/putenv.c (putenv): Likewise.
51906         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51907         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51908         * tests/test-c-strcasestr.c (main): Likewise.
51909         * tests/test-c-strstr.c (main): Likewise.
51910         * tests/test-mbscasestr1.c (main): Likewise.
51911         * tests/test-mbscasestr2.c (main): Likewise.
51912         * tests/test-mbsstr1.c (main): Likewise.
51913         * tests/test-mbsstr2.c (main): Likewise.
51914         * tests/test-memmem.c (main): Likewise.
51915         * tests/test-strcasestr.c (main): Likewise.
51916         * tests/test-striconv.c (main): Likewise.
51917         * tests/test-striconveh.c (main): Likewise.
51918         * tests/test-striconveha.c (main): Likewise.
51919         * tests/test-strstr.c (main): Likewise.
51920
51921         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51922
51923         bootstrap: sync from coreutils again
51924         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51925
51926 2008-03-01  Jim Meyering  <meyering@redhat.com>
51927
51928         bootstrap: sync from coreutils
51929         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51930         also when the target doesn't exist.
51931
51932 2008-03-01  Eric Blake  <ebb9@byu.net>
51933
51934         Fix bugs in last patch.
51935         * lib/memchr2.c (memchr2): Fix typo.
51936         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51937         extension.
51938         Reported by Bruce Korb.
51939
51940         New module 'memchr2'.
51941         * modules/memchr2: New file.
51942         * modules/memchr2-tests: Likewise.
51943         * lib/memchr2.h: Likewise.
51944         * lib/memchr2.c: Likewise, based on memchr.c.
51945         * tests/test-memchr2.c: New test.
51946         * MODULES.html.sh (String handling): Add memchr2.
51947
51948 2008-02-29  Bruno Haible  <bruno@clisp.org>
51949
51950         * modules/freadseek-tests: New file.
51951         * tests/test-freadseek.sh: New file.
51952         * tests/test-freadseek.c: New file.
51953
51954         New module 'freadseek'.
51955         * modules/freadseek: New file.
51956         * lib/freadseek.h: New file.
51957         * lib/freadseek.c: New file.
51958         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51959
51960 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51961
51962         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51963         wydawca.
51964
51965         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51966         program_invocation_name and program_invocation_short_name are
51967         present.
51968
51969 2008-02-28  Bruno Haible  <bruno@clisp.org>
51970
51971         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51972         * tests/test-freadptr.sh: Also test non-seekable stdin.
51973
51974 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51975
51976         * build-aux/bootstrap (source_base, m4_base)
51977         (doc_base, tests_base): New variables.
51978         (gnulib_tool_options): Do not hardcode base directories, use
51979         the above variables instead.
51980
51981 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51982
51983         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51984
51985 2008-02-28  Bruno Haible  <bruno@clisp.org>
51986
51987         * modules/freadptr-tests: New file.
51988         * tests/test-freadptr.sh: New file.
51989         * tests/test-freadptr.c: New file.
51990
51991         New module 'freadptr'.
51992         * modules/freadptr: New file.
51993         * lib/freadptr.h: New file.
51994         * lib/freadptr.c: New file.
51995         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51996
51997 2008-02-26  Karl Berry  <karl@freefriends.org>
51998
51999         Sync from Libtool:
52000         * libltdl/argz.c (argz_add, argz_count): New functions.
52001         * libltdl/argz.in.h: Declare them.
52002         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52003
52004 2008-02-22  Bruno Haible  <bruno@clisp.org>
52005
52006         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52007         is a pointer type.  Needed for HP-UX 10.
52008         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52009         * doc/posix-functions/gmtime_r.texi: Likewise.
52010         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52011
52012 2008-02-24  Bruno Haible  <bruno@clisp.org>
52013
52014         * modules/environ-tests: New file.
52015         * tests/test-environ.c: New file.
52016
52017         New module 'environ'.
52018         * modules/environ: New file.
52019         * lib/unistd.in.h (environ): New declaration.
52020         * m4/environ.m4: New file.
52021         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52022         after use.
52023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52024         HAVE_DECL_ENVIRON.
52025         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52026         HAVE_DECL_ENVIRON.
52027         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52028         wrong claim that 'environ' is missing on some systems.
52029         * modules/execute (Depends-on): Add environ.
52030         * lib/execute.c (environ): Remove fallback declaration.
52031         * modules/pipe (Depends-on): Add environ.
52032         * lib/pipe.c (environ): Remove fallback declaration.
52033         * modules/setenv (Depends-on): Add environ.
52034         * lib/setenv.c (environ): Remove fallback declaration.
52035         * modules/unsetenv (Depends-on): Add environ.
52036         * lib/unsetenv.c (environ): Remove fallback declaration.
52037         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52038         m4/environ.m4.
52039         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52040         (gl_PREREQ_UNSETENV): Likewise.
52041
52042 2008-02-24  Bruno Haible  <bruno@clisp.org>
52043
52044         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52045
52046 2008-02-20  Bob Proulx  <bob@proulx.com>
52047
52048         Enable use of older two part flavor 'git describe'.
52049         * build-aux/git-version-gen: If using the older two part flavor of
52050         git version then recreate the third part now present in the
52051         newer three part flavor of git describe.
52052
52053 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52054
52055         * lib/fts.c (fts_build): Typo correction to comment.
52056
52057 2008-02-17  Bruno Haible  <bruno@clisp.org>
52058
52059         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52060         generating no-op conflicts.
52061
52062 2008-02-17  Bruno Haible  <bruno@clisp.org>
52063
52064         Speed up by 10%.
52065         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52066         result_entries, rather than an index-based loop.
52067
52068 2008-02-17  Bruno Haible  <bruno@clisp.org>
52069
52070         Speed up by 25%.
52071         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52072         'hashcode_cached'.
52073         (entry_create): New function.
52074         (entry_hashcode): Use the cached hashcode if possible.
52075         (read_changelog_file, try_split_merged_entry): Use entry_create.
52076
52077 2008-02-17  Bruno Haible  <bruno@clisp.org>
52078
52079         Speed up from O(n^2) to O(n) for long ChangeLog files.
52080         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52081         (read_changelog_file): Change implementation of entries_reversed list
52082         to rbtreehash.
52083         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52084
52085 2008-02-17  Bruno Haible  <bruno@clisp.org>
52086
52087         New option --split-merged-entry.
52088         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52089         (find_paragraph_end, try_split_merged_entry): New functions.
52090         (long_options): Add option --split-merged-entry.
52091         (usage): Document option --split-merged-entry.
52092         (main): Implement option --split-merged-entry.
52093         Reported by Eric Blake.
52094
52095 2008-02-17  Bruno Haible  <bruno@clisp.org>
52096
52097         * lib/git-merge-changelog.c: Include c-strstr.h.
52098         (main): Support the "git pull --rebase" situation.
52099         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52100         Reported by Eric Blake.
52101
52102 2008-02-16  Eric Blake  <ebb9@byu.net>
52103
52104         Avoid doubling \ in common case of "c-maybe" quoting style.
52105         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52106         eliding outer quotes.
52107         * lib/quotearg.h: Document this.
52108         * tests/test-quotearg.c (result_strings, inputs, results_g)
52109         (flag_results, locale_results): Test it by adding a new string to
52110         each test group.
52111         (compare_strings): Test new string.
52112
52113 2008-02-13  Eric Blake  <ebb9@byu.net>
52114
52115         Avoid trigraph quoting in default output.
52116         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52117         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52118         unless explicitly requested.
52119         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52120
52121 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52122
52123         Don't rely on signed integer overflowing to negative value.
52124         * lib/getugroups.c (getugroups): Include <limits.h>.
52125         Instead, compare against INT_MAX, and increment only if the test passes.
52126
52127 2008-02-13  Jim Meyering  <meyering@redhat.com>
52128         and Eric Blake  <ebb9@byu.net>
52129
52130         Avoid shadowing warning and compile errors on Linux.
52131         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52132         forwarding macros on Linux.
52133         (dcgettext): Define a stub, for Linux.
52134         (results_g, main): Avoid warnings.
52135
52136 2008-02-12  Eric Blake  <ebb9@byu.net>
52137
52138         Silence warning in last patch.
52139         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52140
52141         Quotearg part 4: add tests, fix c-maybe colon quoting.
52142         * lib/quotearg.h: Improve documentation.
52143         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52144         escapes when adding outer quotes.  When quoting trigraphs, use
52145         valid C notation.  When quoting NUL, omit extra characters if next
52146         character is not digit.  Alter prototype.
52147         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52148         callers.
52149         * modules/quotearg-tests: New module.
52150         * tests/test-quotearg.c: New test.
52151
52152 2008-02-07  Eric Blake  <ebb9@byu.net>
52153
52154         Quotearg part 3: add flag to control outer quote elision.
52155         * lib/quotearg.h (c_maybe_quoting_style): New style.
52156         (enum quoting_flags): Better documentation of flags.
52157         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52158         c-maybe style.
52159         (quotearg_buffer_restyled): Handle new flag to elide outer
52160         quotes.
52161
52162         Quotearg part 2: add flag that can control NUL elision.
52163         * lib/quotearg.h (set_quoting_flags): New prototype.
52164         * lib/quotearg.c (struct quoting_options): Add flag field.
52165         (set_quoting_flags): New function.
52166         (quotearg_buffer_restyled): Add flags parameter.
52167         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52168         (quotearg_n_options): Set the flag, since length cannot be
52169         returned.
52170         (quoting_options_from_style): Default flags correctly.
52171
52172         Quotearg part 1: more wrappers, restore quotearg_char state.
52173         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52174         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52175         (quotearg_colon_mem): New wrappers.
52176         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52177         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52178         functions.
52179         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52180         (quotearg_colon_mem): New functions.
52181
52182 2008-02-11  Bruno Haible  <bruno@clisp.org>
52183
52184         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52185         library in the current directory: it does not work with parallel make.
52186         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52187
52188 2008-02-11  Bruno Haible  <bruno@clisp.org>
52189
52190         * .gitattributes: New file.
52191
52192 2008-02-11  Jim Meyering  <meyering@redhat.com>
52193
52194         useless-if-before-free: Fix reversed exit values.
52195         * build-aux/useless-if-before-free: Use correct values
52196         for EXIT_MATCH and EXIT_NO_MATCH.
52197
52198         * build-aux/useless-if-before-free: Close stdout carefully.
52199
52200 2008-02-10  Bruno Haible  <bruno@clisp.org>
52201
52202         New module 'git-merge-changelog'.
52203         * modules/git-merge-changelog: New file.
52204         * lib/git-merge-changelog.c: New file.
52205
52206 2008-02-10  Jim Meyering  <meyering@redhat.com>
52207
52208         useless-if-before-free: New option: --list (-l).
52209
52210         useless-if-before-free: Don't exit immediately upon open failure.
52211         * build-aux/useless-if-before-free: Exit 2 for errors.
52212         Upon failure to open a file, don't exit immediately.
52213         Rather, just warn and continue with any remaining files.
52214
52215 2008-02-10  Bruno Haible  <bruno@clisp.org>
52216
52217         New abstract list operation 'node_set_value'.
52218         * lib/gl_list.h (gl_list_node_set_value): New function.
52219         (struct gl_list_implementation): New field node_set_value.
52220         * lib/gl_list.c (gl_list_node_set_value): New function.
52221         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52222         (gl_array_list_implementation): Update.
52223         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52224         (gl_carray_list_implementation): Update.
52225         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52226         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52227         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52228         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52229         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52230         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52231         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52232         Update.
52233         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52234         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52235         (gl_sublist_list_implementation): Update.
52236
52237 2008-02-10  Bruno Haible  <bruno@clisp.org>
52238
52239         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52240         Needed when ELEMENT is #defined to 'some_type *'.
52241
52242 2008-02-10  Jim Meyering  <meyering@redhat.com>
52243
52244         New script and module: useless-if-before-free
52245         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52246         * build-aux/useless-if-before-free: New file.
52247         * modules/useless-if-before-free: New file.
52248
52249         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52250
52251         xstrtol_error: Fix typo.
52252         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52253         s/exit_failure/exit_status/.
52254
52255 2008-02-09  Jim Meyering  <meyering@redhat.com>
52256
52257         New script and module: gitlog-to-changelog
52258         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52259         * modules/gitlog-to-changelog: New file.
52260         * build-aux/gitlog-to-changelog: New file.
52261
52262 2008-02-08  Jim Meyering  <meyering@redhat.com>
52263
52264         Avoid two "parameter unused" warnings.
52265         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52266         Mark "st" as used.
52267
52268         Use "git COMMAND", not "git-COMMAND".
52269         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52270         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52271         * build-aux/git-version-gen: Use "git status", not "git-status".
52272
52273 2008-02-07  Bruno Haible  <bruno@clisp.org>
52274
52275         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52276         Avoids a crash on Windows Vista.
52277         Reported by Adam Strzelecki <ono@java.pl> via
52278         Simon Josefsson <simon@josefsson.org>.
52279
52280 2008-02-06  Bruno Haible  <bruno@clisp.org>
52281
52282         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52283         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52284         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52285         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52286         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52287         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52288         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52289         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52290         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52291         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52292         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52293         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52294         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52296         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52297         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52298         left-adjust flag.
52299         * tests/test-snprintf-posix.h (test_function): Likewise.
52300         * tests/test-sprintf-posix.h (test_function): Likewise.
52301         * tests/test-vasprintf-posix.c (test_function): Likewise.
52302         * doc/posix-functions/fprintf.texi: Update.
52303         * doc/posix-functions/printf.texi: Update.
52304         * doc/posix-functions/snprintf.texi: Update.
52305         * doc/posix-functions/sprintf.texi: Update.
52306         * doc/posix-functions/vfprintf.texi: Update.
52307         * doc/posix-functions/vprintf.texi: Update.
52308         * doc/posix-functions/vsnprintf.texi: Update.
52309         * doc/posix-functions/vsprintf.texi: Update.
52310         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52311
52312 2008-02-06  Bruno Haible  <bruno@clisp.org>
52313
52314         Fix bug introduced on 2008-01-26.
52315         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52316
52317 2008-02-06  Bruno Haible  <bruno@clisp.org>
52318
52319         Fix bug introduced on 2007-06-10.
52320         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52321         !NEED_PRINTF_FLAG_ZERO.
52322
52323 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52324
52325         getloadavg: use libperfstat on AIX5
52326         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52327
52328 2008-02-03  Bruno Haible  <bruno@clisp.org>
52329
52330         * lib/diffseq.h: Add comments about required #includes.
52331         Reported by Michael Biggs <gnulib@doubleplum.net>.
52332
52333 2008-02-01  Bruno Haible  <bruno@clisp.org>
52334
52335         * users.txt: Add gnuit.
52336
52337 2008-01-31  Bruno Haible  <bruno@clisp.org>
52338
52339         * lib/md4.c (set_uint32): Mark as inline.
52340         * lib/md5.c (set_uint32): Likewise.
52341         * lib/sha1.c (set_uint32): Likewise.
52342         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52343         * m4/md5.m4 (gl_MD5): Likewise.
52344         * m4/sha1.m4 (gl_SHA1): Likewise.
52345
52346 2008-01-31  Jim Meyering  <meyering@redhat.com>
52347
52348         Use "sizeof VAR", rather than a literal "4".
52349         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52350         * lib/md4.c (md4_read_ctx): Likewise.
52351         * lib/sha1.c (sha1_read_ctx): Likewise.
52352
52353 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52354
52355         * tests/test-sha1.c: New file, based on test-md5.c.
52356
52357         * modules/crypto/sha1-tests: New file.
52358
52359 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52360
52361         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52362
52363 2008-01-31  Jim Meyering  <meyering@redhat.com>
52364
52365         Prefer "sizeof v" over the equivalent "4".
52366         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52367         * lib/md5.c (set_uint32): Likewise.
52368         * lib/sha1.c (set_uint32): Likewise.
52369
52370 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52371
52372         * lib/sha1.c (set_uint32): Mark function as static.
52373
52374 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52375
52376         md2: clarify comments to say that alignment is not required.
52377         * lib/md2.h: Remove warning about alignment in comment.
52378         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52379         never been required.
52380
52381 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52382
52383         md4: adapt alignment constraint fix from sha1.
52384         * lib/md4.c (set_uint32): New function, from sha1.c
52385         (md4_read_ctx): Use it.
52386         (md4_finish_ctx): Doc fix.
52387         * lib/md4.h: Doc fix.
52388
52389 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52390
52391         md5: adapt alignment constraint fix from sha1.
52392         * lib/md5.c (set_uint32): New function, from sha1.c
52393         (md5_read_ctx): Use it.
52394         (md5_finish_ctx): Doc fix.
52395         * lib/md5.h: Doc fix.
52396
52397 2008-01-30  Peter Palfrader  <weasel@debian.org>
52398
52399         sha1: remove the result buffer alignment constraint
52400         * lib/sha1.c (set_uint32): New function.
52401         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52402         constraint.
52403         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52404         * lib/sha1.h: Likewise.
52405
52406 2008-01-30  Andreas Schwab  <schwab@suse.de>
52407             Bruno Haible  <bruno@clisp.org>
52408
52409         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52410         correct definition of LDBL_MIN_EXP.
52411
52412 2008-01-30  Karl Berry  <karl@gnu.org>
52413
52414         * config/srclist-update: try to preserve x bit on updates.
52415         * config/srclistvars.sh: update for karl.
52416
52417 2008-01-29  Jim Meyering  <meyering@redhat.com>
52418
52419         vasnprintf.c: Avoid warning about unused label
52420         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52421         "overflow" label definition and associated code with the
52422         same cpp condition that guards the sole use of that label.
52423
52424 2008-01-26  Bruno Haible  <bruno@clisp.org>
52425
52426         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52427         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52428         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52429         * lib/isnanl-nolibm.h (isnanl): Likewise.
52430         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52431
52432 2008-01-26  Bruno Haible  <bruno@clisp.org>
52433
52434         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52435         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52436
52437 2008-01-26  Bruno Haible  <bruno@clisp.org>
52438
52439         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52440         GCC >= 4.0 built-in.
52441         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52442
52443 2008-01-26  Bruno Haible  <bruno@clisp.org>
52444
52445         Rename isnan, applicable to 'double' only, to isnand.
52446         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52447         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52448         (configure.ac): Update.
52449         (Include): Replace "isnan.h" with "isnand.h".
52450         * m4/isnand.m4: Renamed from m4/isnan.m4.
52451         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52452         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52453         instead of isnan.c.
52454         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52455         instead of HAVE_ISNAN_IN_LIBC.
52456         (isnand): Renamed from isnan.
52457         * lib/isnand.c: New file.
52458         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52459         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52460         (Makefile.am): Update.
52461         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52462         Include isnand.h instead of isnan.h.
52463         (main): Test isnand instead of isnan.
52464         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52465         isnan-nolibm.
52466         * modules/frexp (Depends-on): Likewise.
52467         * modules/frexp-tests (Depends-on): Likewise.
52468         * modules/frexp-nolibm (Depends-on): Likewise.
52469         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52470         * modules/isfinite (Depends-on): Likewise.
52471         * modules/round-tests (Depends-on): Likewise.
52472         * modules/signbit (Depends-on): Likewise.
52473         * modules/signbit-tests (Depends-on): Likewise.
52474         * modules/snprintf-posix (Depends-on): Likewise.
52475         * modules/sprintf-posix (Depends-on): Likewise.
52476         * modules/trunc-tests (Depends-on): Likewise.
52477         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52478         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52479         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52480         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52481         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52482         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52483         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52484         * modules/vasnprintf-posix (Depends-on): Likewise.
52485         * modules/vasprintf-posix (Depends-on): Likewise.
52486         * modules/vfprintf-posix (Depends-on): Likewise.
52487         * modules/vsnprintf-posix (Depends-on): Likewise.
52488         * modules/vsprintf-posix (Depends-on): Likewise.
52489         * lib/frexp.c: Include isnand.h instead of isnan.h.
52490         (ISNAN): Set to isnand instead of isnan.
52491         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52492         (gl_isfinited): Use isnand instead of isnan.
52493         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52494         (gl_signbitd): Use isnand instead of isnan.
52495         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52496         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52497         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52498         (main): Use isnand instead of isnan.
52499         * tests/test-round1.c: Include isnand.h.
52500         (main): Use isnand instead of isnan.
52501         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52502         (ISNAN): Set to isnand instead of isnan.
52503         * tests/test-trunc1.c: Include isnand.h.
52504         (main): Use isnand instead of isnan.
52505         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52506         (equal): Use isnand instead of isnan.
52507         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52508         isnand-nolibm.
52509         * NEWS: Mention the change.
52510
52511 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52512             Bruno Haible  <bruno@clisp.org>
52513
52514         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52515         the GCC builtins for signbits are present and set
52516         REPLACE_SIGNBIT_USING_GCC if so.
52517         * lib/math.in.h (signbit): Define using GCC builtins if
52518         REPLACE_SIGNBIT_USING_GCC is set.
52519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52520         REPLACE_SIGNBIT_USING_GCC.
52521         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52522
52523 2008-01-25  Jim Meyering  <meyering@redhat.com>
52524
52525         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52526         * lib/poll.c: Include <config.h>, not "config.h".
52527         * tests/test-getaddrinfo.c: Likewise.
52528
52529 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52530
52531         * modules/sockets-tests: New file.
52532
52533 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52534
52535         * modules/sockets: New module, can be used to call WSA_Startup and
52536         WSA_Cleanup when needed.
52537
52538         * lib/sockets.h, lib/sockets.c: New files.
52539
52540         * m4/sockets.m4: New file.
52541
52542         * tests/test-sockets.c: New file.
52543
52544 2008-01-19  Bruno Haible  <bruno@clisp.org>
52545
52546         * doc/posix-headers: Renamed from doc/headers.
52547         * doc/posix-functions: Renamed from doc/functions.
52548         * doc/gnulib.texi: Update.
52549
52550 2008-01-19  Bruno Haible  <bruno@clisp.org>
52551
52552         * doc/glibc-functions/strcasestr.texi: Include contents of
52553         doc/functions/strcasestr.texi, fixing the list of platforms.
52554         * doc/functions/strcasestr.texi: Remove file.
52555
52556 2008-01-19  Bruno Haible  <bruno@clisp.org>
52557
52558         * doc/glibc-functions/memmem.texi: Include contents of
52559         doc/functions/memmem.texi.
52560         * doc/functions/memmem.texi: Remove file.
52561
52562 2008-01-18  Bruno Haible  <bruno@clisp.org>
52563
52564         * doc/glibc-functions/*.texi: New files.
52565         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52566         to use the new files.
52567
52568 2008-01-17  Bruno Haible  <bruno@clisp.org>
52569
52570         * tests/test-gethostname.c (main): Fix printf statement.
52571
52572 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52573
52574         * modules/gethostname-tests: New file.
52575
52576         * tests/test-gethostname.c: New file.
52577
52578 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52579
52580         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52581         used by the UNAME case.  Reported by Bruno Haible
52582         <bruno@clisp.org>.
52583
52584 2008-01-17  Eric Blake  <ebb9@byu.net>
52585
52586         Convert c-strcasestr to be more efficient.
52587         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52588         (Depends-on): Add c-strcase, remove malloca, strnlen.
52589         * tests/test-c-strcasestr.c (main): Enhance test.
52590         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52591
52592 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52593
52594         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52595         Use it in creating po/Makevars.
52596
52597 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52598
52599         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52600         Applications that requires it should initialize libgcrypt
52601         manually.
52602
52603 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52604
52605         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52606
52607 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52608
52609         Fix problem with getdate on mingw32 reported by Simon Josefsson
52610         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52611         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52612         tzname", when deciding whether to declare tzname.
52613         * lib/strftime.c (tzname): Likewise.
52614
52615 2008-01-15  Bruno Haible  <bruno@clisp.org>
52616
52617         Work around a MacOS X 10.5 bug in frexpl().
52618         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52619         * doc/functions/frexpl.texi: Document the bug.
52620         Reported by Elias Pipping <pipping@gentoo.org>.
52621
52622 2008-01-14  Eric Blake  <ebb9@byu.net>
52623
52624         Touch up previous patch.
52625         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52626         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52627
52628         Convert strcasestr module to use Two-Way algorithm.
52629         * modules/strcasestr-simple: New module, based on the old
52630         strcasestr, but with Two-Way rather than KMP.
52631         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52632         * lib/string.in.h (rpl_strcasestr): Declare.
52633         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52634         performance.
52635         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52636         * modules/string (Makefile.am): Support strcasestr.
52637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52638         * modules/strcasestr-tests (Depends-on): Check for alarm.
52639         * tests/test-strcasestr.c: Augment test.
52640         * lib/str-two-way.h: Clean up stray macro.
52641         * NEWS: Document new module.
52642         * MODULES.html.sh (string handling): Likewise.
52643         * doc/functions/strcasestr.texi: New file.
52644         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52645         here, since it is not a POSIX function.
52646
52647 2008-01-14  Colin Watson  <cjwatson@debian.org>
52648             Bruno Haible  <bruno@clisp.org>
52649
52650         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52651         works fine; if not, set REPLACE_STRSIGNAL.
52652         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52654         REPLACE_STRSIGNAL.
52655         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52656         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52657         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52658
52659 2008-01-14  Bruno Haible  <bruno@clisp.org>
52660
52661         * modules/strsignal (Include): Change to <string.h>.
52662
52663 2008-01-14  Colin Watson  <cjwatson@debian.org>
52664
52665         * modules/argp (Notice): Add a notice recommending to change
52666         XGETTEXT_OPTIONS.
52667         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52668
52669 2008-01-13  Colin Watson  <cjwatson@debian.org>
52670
52671         * modules/strsignal-tests: New file.
52672         * tests/test-strsignal.c: New file.
52673
52674         * lib/strsignal.c: New file, from glibc with modifications.
52675         * lib/siglist.h: New file, from glibc with modifications.
52676         * lib/string.in.h (strsignal): New declaration.
52677         * m4/strsignal.m4: New file.
52678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52679         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52680         * modules/strsignal: New file.
52681         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52682         HAVE_DECL_STRSIGNAL.
52683
52684 2008-01-13  Bruno Haible  <bruno@clisp.org>
52685
52686         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52687         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52688         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52689         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52690
52691 2008-01-13  Bruno Haible  <bruno@clisp.org>
52692
52693         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52694         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52695         * lib/argp.h (__attribute__): Likewise.
52696         * lib/c-stack.c (__attribute__): Likewise.
52697         * lib/error.h (__attribute__): Likewise.
52698         * lib/fts.c (__attribute__): Likewise.
52699         * lib/openat.h (__attribute__): Likewise.
52700         * lib/stdio.in.h (__attribute__): Likewise.
52701         * lib/string.in.h (__attribute__): Likewise.
52702         * lib/utimens.c (__attribute__): Likewise.
52703         * lib/vasnprintf.h (__attribute__): Likewise.
52704         * lib/xalloc.h (__attribute__): Likewise.
52705         * lib/xprintf.h (__attribute__): Likewise.
52706         * lib/xstrtol.h (__attribute__): Likewise.
52707         * lib/xvasprintf.h (__attribute__): Likewise.
52708
52709 2008-01-12  Bruno Haible  <bruno@clisp.org>
52710
52711         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52712         * doc/glibc-headers/a.out.texi: New file.
52713         * doc/glibc-headers/aliases.texi: New file.
52714         * doc/glibc-headers/alloca.texi: New file.
52715         * doc/glibc-headers/ar.texi: New file.
52716         * doc/glibc-headers/argp.texi: New file.
52717         * doc/glibc-headers/argz.texi: New file.
52718         * doc/glibc-headers/byteswap.texi: New file.
52719         * doc/glibc-headers/crypt.texi: New file.
52720         * doc/glibc-headers/endian.texi: New file.
52721         * doc/glibc-headers/envz.texi: New file.
52722         * doc/glibc-headers/err.texi: New file.
52723         * doc/glibc-headers/error.texi: New file.
52724         * doc/glibc-headers/execinfo.texi: New file.
52725         * doc/glibc-headers/fpu_control.texi: New file.
52726         * doc/glibc-headers/fstab.texi: New file.
52727         * doc/glibc-headers/fts.texi: New file.
52728         * doc/glibc-headers/getopt.texi: New file.
52729         * doc/glibc-headers/ieee754.texi: New file.
52730         * doc/glibc-headers/ifaddrs.texi: New file.
52731         * doc/glibc-headers/libintl.texi: New file.
52732         * doc/glibc-headers/mcheck.texi: New file.
52733         * doc/glibc-headers/mntent.texi: New file.
52734         * doc/glibc-headers/obstack.texi: New file.
52735         * doc/glibc-headers/paths.texi: New file.
52736         * doc/glibc-headers/printf.texi: New file.
52737         * doc/glibc-headers/pty.texi: New file.
52738         * doc/glibc-headers/resolv.texi: New file.
52739         * doc/glibc-headers/shadow.texi: New file.
52740         * doc/glibc-headers/sysexits.texi: New file.
52741         * doc/glibc-headers/ttyent.texi: New file.
52742
52743 2008-01-12  Jim Meyering  <meyering@redhat.com>
52744
52745         announce-gen: emit Gnulib's git-based version string.
52746         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52747         New option --gnulib-version=V, where V is expected to be
52748         the output of running git describe in the gnulib directory.
52749         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52750         not useful, and plan to stop publishing an xdelta file with each
52751         coreutils release.
52752
52753         * build-aux/announce-gen: Also check for lzma-compressed files.
52754
52755 2008-01-11  Bruno Haible  <bruno@clisp.org>
52756
52757         * tests/test-memmem.c (main): Increase maximum allowed time.
52758         * tests/test-strstr.c (main): Likewise.
52759
52760 2008-01-11  Bruno Haible  <bruno@clisp.org>
52761
52762         * doc/functions/memmem.texi: Add more precisions about platforms.
52763         * doc/functions/strstr.texi: Likewise.
52764
52765 2008-01-10  Eric Blake  <ebb9@byu.net>
52766
52767         * m4/strstr.m4: Delete cruft from copy-n-paste.
52768         Reported by Bruno Haible.
52769
52770 2008-01-10  Bruno Haible  <bruno@clisp.org>
52771
52772         Make c-strstr rely on strstr.
52773         * lib/c-strstr.c: Don't include str-kmp.h.
52774         (c_strstr): Define in terms of strstr.
52775         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52776         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52777
52778 2008-01-10  Bruno Haible  <bruno@clisp.org>
52779
52780         * doc/gnulib.texi (String Functions in C Locale): New section.
52781         * doc/c-ctype.texi: New file.
52782         * doc/c-strcase.texi: New file.
52783         * doc/c-strcaseeq.texi: New file.
52784         * doc/c-strcasestr.texi: New file.
52785         * doc/c-strstr.texi: New file.
52786         * doc/c-strtod.texi: New file.
52787         * doc/c-strtold.texi: New file.
52788
52789 2008-01-10  Eric Blake  <ebb9@byu.net>
52790
52791         * lib/relocatable.h: Fix a comment.
52792
52793 2008-01-10  Eric Blake  <ebb9@byu.net>
52794
52795         Share two-way algorithm.
52796         * lib/str-two-way.h: New file, merged from...
52797         * lib/memmem.c: ...here...
52798         * lib/strstr.c: ...and here.
52799         * modules/memmem (Files): Use it.
52800         * modules/strstr (Files): Likewise.
52801
52802         Avoid quadratic strstr implementations.
52803         * lib/strstr.c: New file.
52804         * m4/strstr.m4: Likewise.
52805         * modules/strstr: Likewise.
52806         * modules/strstr-tests: Likewise.
52807         * tests/test-strstr.c: Likewise.
52808         * lib/string.in.h (rpl_strstr): Declare.
52809         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52811         * modules/string (Makefile.am): Likewise.
52812         * MODULES.html.sh (string handling): Mention new module.
52813         * doc/functions/strstr.texi (strstr): Document the bug.
52814
52815 2008-01-10  Bruno Haible  <bruno@clisp.org>
52816
52817         * lib/relocatable.h (relocate): State whether result is freshly
52818         allocated or not.
52819         * lib/relocatable.c (relocate): Return a freshly allocated string
52820         instead of a pointer to a privately held string.
52821         Reported by Sylvain Beucler <beuc@gnu.org>.
52822
52823 2008-01-10  Colin Watson  <cjwatson@debian.org>
52824
52825         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52826         s/S_ISNLK/S_ISLNK/.
52827
52828 2008-01-09  Bruno Haible  <bruno@clisp.org>
52829
52830         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52831         and other files.
52832         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52833         if it's only a guess.
52834         * modules/memmem: Simplify by depending on memmem-simple.
52835
52836 2008-01-09  Bruno Haible  <bruno@clisp.org>
52837
52838         Work around OpenBSD 4.0 tdelete() bug.
52839         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52840         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52841         macros and don't redefine the enum values.
52842         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52843         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52844         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52845
52846 2008-01-09  Bruno Haible  <bruno@clisp.org>
52847
52848         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52849         (main): Don't perform the tests if setlocale did not install a UTF-8
52850         locale. Needed on OpenBSD 4.0.
52851         * modules/wcwidth-tests (Depends-on): Add localcharset.
52852
52853 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52854
52855         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52856         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52857         * NEWS: announce this.
52858         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52859
52860 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52861         and Eric Blake  <ebb9@byu.net>
52862
52863         Add memmem-simple module.
52864         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52865         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52866         * modules/memmem-simple: New file.
52867         * modules/memmem (Description): Tweak.
52868         * MODULES.html.sh (string handling): Mention new module.
52869         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52870         addressed by memmem-simple.
52871         * NEWS: Document the difference.
52872
52873 2008-01-09  Eric Blake  <ebb9@byu.net>
52874
52875         Give gcc some memmem optimization hints.
52876         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52877         (strcasestr): Declare as pure.
52878         * modules/memmem (Maintainer): Claim my implementation.
52879
52880 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52881
52882         Support AIX 6.1 and higher.
52883         * build-aux/config.libpath: Likewise.
52884         * build-aux/config.rpath: Likewise.
52885
52886 2008-01-08  Jim Meyering  <meyering@redhat.com>
52887             Bruno Haible  <bruno@clisp.org>
52888
52889         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52890         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52891         Reported by Peter Fales in
52892         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52893
52894 2008-01-08  Bruno Haible  <bruno@clisp.org>
52895
52896         * modules/unictype/category-of (Depends-on): Add
52897         unictype/category-none.
52898         * modules/unictype/category-and-tests (Depends-on): Add
52899         unictype/category-{L,N,Lu,Nd}.
52900         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52901         * modules/unictype/category-or-tests (Depends-on): Add
52902         unictype/category-{L,N}.
52903         * modules/unictype/category-name-tests (Depends-on): Add
52904         unictype/category-{Z,Nl}.
52905         Reported by Simon Josefsson.
52906
52907 2008-01-08  Bruno Haible  <bruno@clisp.org>
52908
52909         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52910         convention better.
52911         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52912         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52913         Reported by Peter Miller <millerp@canb.auug.org.au>.
52914
52915 2008-01-08  Eric Blake  <ebb9@byu.net>
52916
52917         Rewrite memmem to guarantee linear complexity without malloc.
52918         * lib/memmem.c (memmem): Use Two-Way rather than
52919         Knuth-Morris-Pratt, to allow O(1) space usage.
52920         (critical_factorization, two_way_short_needle)
52921         (two_way_long_needle): New functions.
52922         (knuth_morris_pratt): Delete.
52923         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52924         Add stdint.
52925         * tests/test-memmem.c (main): Add tests for periodic needle and
52926         sublinear performance.
52927         * doc/functions/memmem.texi (memmem): Document other deficiencies
52928         in cygwin and older glibc.
52929
52930 2008-01-08  Bruno Haible  <bruno@clisp.org>
52931
52932         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52933         augmentation.
52934
52935 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52936
52937         Add a configure time option: --disable-acl.
52938         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52939         AC_ARG_ENABLE(acl).
52940
52941 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52942
52943         * tests/test-localename.c: Don't include obsolete "setenv.h".
52944
52945         * modules/localename-tests (Depends-on): Need unsetenv.
52946
52947 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52948
52949         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52950
52951 2008-01-06  Colin Watson  <cjwatson@debian.org>
52952
52953         * users.txt: Add man-db.
52954
52955 2008-01-07  Bruno Haible  <bruno@clisp.org>
52956
52957         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52958         previous section name.
52959
52960 2008-01-07  Bruno Haible  <bruno@clisp.org>
52961
52962         * lib/progname.c (set_program_name): Don't strip off a leading
52963         "lt-" prefix outside a .libs directory.
52964         Suggested by Paul Eggert.
52965
52966 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52967             Bruno Haible  <bruno@clisp.org>
52968
52969         Improve memory cleanup in 'relocatable' module.
52970         * lib/relocatable.h (compute_curr_prefix): Change return type to
52971         'char *'.
52972         * lib/relocatable.c (compute_curr_prefix): Change return type to
52973         'char *'. Free curr_installdir after use.
52974         (relocate): Free curr_prefix_better after use.
52975         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52976
52977 2008-01-01  Bruno Haible  <bruno@clisp.org>
52978
52979         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52980         failure on older glibc systems.
52981         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52982
52983 2008-01-05  Eric Blake  <ebb9@byu.net>
52984
52985         Avoid quadratic system memmem.
52986         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52987         Reported by Ralf Wildenhues.
52988
52989         Fix memmem test for mingw.
52990         * modules/memmem-tests (configure.ac): Check for alarm.
52991         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52992         it.
52993         * doc/functions/memmem.texi: New file.
52994         * doc/gnulib.texi (Function Substitutes): Add memmem.
52995         Reported by Bruno Haible.
52996
52997 2008-01-04  Bruno Haible  <bruno@clisp.org>
52998
52999         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53000         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53001         gl_HEADER_STRING_H_DEFAULTS.
53002
53003 2008-01-04  Eric Blake  <ebb9@byu.net>
53004
53005         Shorten duration of memmem test.
53006         * tests/test-memmem.c (main): Use alarm to declare failure if test
53007         is taking too long.
53008         Reported by Ralf Wildenhues.
53009
53010 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53011
53012         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53013         string, needed by strerror.
53014
53015 2008-01-03  Colin Watson  <cjwatson@debian.org>
53016             Bruno Haible  <bruno@clisp.org>
53017
53018         * doc/gnulib-tool.texi (Localization): New section.
53019
53020 2008-01-02  Bruno Haible  <bruno@clisp.org>
53021
53022         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53023         variables to 'unsigned char *' type.
53024         Reported by Paul Eggert.
53025
53026 2008-01-02  Jim Meyering  <jim@meyering.net>
53027
53028         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53029
53030 2007-12-31  Jim Meyering  <jim@meyering.net>
53031
53032         Avoid use of private FTS type name.
53033         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53034
53035 2007-12-30  Karl Berry  <karl@gnu.org>
53036
53037         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53038         work around defect in Texinfo and/or the standalone Info browser.
53039
53040 2007-12-30  Bruno Haible  <bruno@clisp.org>
53041
53042         Unify 5 copies of the KMP code.
53043         * lib/str-kmp.h: New file.
53044         * lib/c-strcasestr.c: Include str-kmp.h.
53045         (knuth_morris_pratt): Remove function.
53046         (c_strcasestr): Update.
53047         * lib/c-strstr.c: Include str-kmp.h.
53048         (knuth_morris_pratt): Remove function.
53049         (c_strcasestr): Update.
53050         * lib/mbscasestr.c: Include str-kmp.h.
53051         (knuth_morris_pratt_unibyte): Remove function.
53052         * lib/mbsstr.c: Include str-kmp.h.
53053         (knuth_morris_pratt_unibyte): Remove function.
53054         * lib/strcasestr.c: Include str-kmp.h.
53055         (knuth_morris_pratt): Remove function.
53056         (strcasestr): Update.
53057         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53058         * modules/c-strstr (Files): Likewise.
53059         * modules/mbscasestr (Files): Likewise.
53060         * modules/mbsstr (Files): Likewise.
53061         * modules/strcasestr (Files): Likewise.
53062         Suggested by Paul Eggert.
53063
53064 2007-12-30  Bruno Haible  <bruno@clisp.org>
53065
53066         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53067         defined.
53068
53069 2007-12-30  Bruno Haible  <bruno@clisp.org>
53070
53071         * lib/xmalloca.h: Include xalloc.h.
53072         (xnmalloca): New macro.
53073
53074 2007-12-30  Bruno Haible  <bruno@clisp.org>
53075
53076         * lib/malloca.h (nmalloca): New macro.
53077         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53078         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53079         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53080         knuth_morris_pratt_multibyte): Likewise.
53081         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53082         knuth_morris_pratt_multibyte): Likewise.
53083         * lib/memmem.c (knuth_morris_pratt): Likewise.
53084         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53085
53086 2007-12-25  Bruno Haible  <bruno@clisp.org>
53087
53088         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53089         * lib/glob.c: Don't include openat.h.
53090         (link_exists2_p): Add back the code that deals with the
53091         !GLOB_ALTDIRFUNC case.
53092         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53093         let it do the filename concatenation.
53094         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53095         * modules/glob (Depends-on): Remove openat.
53096
53097 2007-12-31  Bruno Haible  <bruno@clisp.org>
53098
53099         * modules/dirfd (License): Change to LGPLv2+.
53100         Approved by Jim Meyering.
53101
53102 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53103
53104         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53105         when multiplying M by sizeof (size_t).
53106
53107 2007-12-10  Martin Lambers  <marlam@marlam.de>
53108
53109         Override getpagesize on mingw.
53110         * lib/getpagesize.c: New file.
53111         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53112         * modules/getpagesize (Files): Add lib/getpagesize.c.
53113         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53115         REPLACE_GETPAGESIZE.
53116         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53117
53118 2007-12-25  Bruno Haible  <bruno@clisp.org>
53119
53120         * modules/localcharset (Notice): New field.
53121         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53122         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53123
53124 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53125             Bruno Haible  <bruno@clisp.org>
53126
53127         Avoid using the syntax symbol() in formatted documentation.
53128         * MODULES.html.sh (func_module): When replacing symbol() with a
53129         hyperlink, remove the parentheses. Show an error if some remain.
53130         Recognize and render the '...' syntax.
53131         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53132         Rework. Add paragraph about GCC's inlining.
53133         * doc/alloca.texi: Likewise.
53134         * doc/error.texi: Remove parentheses from symbol reference.
53135         * doc/gnulib-intro.texi: Likewise.
53136         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53137         * modules/fnmatch (Description): Reword to say "the ... function".
53138         * modules/full-read (Description): Likewise.
53139         * modules/full-write (Description): Likewise.
53140         * modules/safe-read (Description): Likewise.
53141         * modules/safe-write (Description): Likewise.
53142         * modules/strchrnul (Description): Likewise.
53143         * modules/trim (Description): Likewise.
53144         * modules/error (Description): Remove parentheses from symbol
53145         references.
53146         * modules/verror (Description): Likewise.
53147         Reported by Karl Berry.
53148
53149 2007-12-25  Bruno Haible  <bruno@clisp.org>
53150
53151         Fixup after 2007-10-16 commit.
53152         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53153
53154 2007-12-24  Bruno Haible  <bruno@clisp.org>
53155
53156         Make --enable-relocatable work with DESTDIR.
53157         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53158         to compute installdir from destprog.
53159         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53160         also set the RELOC_DESTDIR variable.
53161         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53162
53163 2007-12-24  Bruno Haible  <bruno@clisp.org>
53164
53165         Fix link error due to xalloc_die().
53166         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53167         of xreadlink.
53168         * lib/relocwrapper.c: Update comments.
53169         * build-aux/install-reloc: Remove xreadlink.c from file list.
53170         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53171         xreadlink.c.
53172         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53173
53174 2007-12-24  Bruno Haible  <bruno@clisp.org>
53175
53176         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53177         * lib/setenv.h: Remove file.
53178         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53179         lib/setenv.h.
53180         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53181         (Depends-on): Add stdlib.
53182         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53183         gl_FUNC_UNSETENV.
53184         (Include): Replace setenv.h with <stdlib.h>.
53185         * modules/unsetenv: New file.
53186         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53187         * lib/unsetenv.c: Include <stdlib.h> first.
53188         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53189         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53190         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53191         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53192         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53193         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53195         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53196         * doc/functions/unsetenv.texi: Update.
53197         * modules/xsetenv (Depends-on): Add unsetenv.
53198         * modules/getdate (Depends-on): Likewise.
53199         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53200         * lib/xsetenv.c: Don't include setenv.h.
53201         * lib/getdate.y: Likewise.
53202         * lib/relocwrapper.c: Likewise.
53203         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53204         (Depends-on): Add stdlib.
53205         * NEWS: Mention the changes.
53206         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53207
53208 2007-12-23  Bruno Haible  <bruno@clisp.org>
53209
53210         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53211         indentation.
53212
53213 2007-12-23  Bruno Haible  <bruno@clisp.org>
53214
53215         * lib/c-strcasestr.c: Add more comments.
53216         * lib/c-strstr.c: Likewise.
53217         * lib/mbscasestr.c: Likewise.
53218         * lib/mbsstr.c: Likewise.
53219         * lib/strcasestr.c: Likewise.
53220         * lib/memmem.c: Likewise.
53221
53222 2007-12-23  Bruno Haible  <bruno@clisp.org>
53223
53224         * tests/test-memmem.c: Include <string.h> first.
53225
53226 2007-12-22  Bruno Haible  <bruno@clisp.org>
53227
53228         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53229         the contents of $testsbase.
53230         Reported by Ralf Wildenhues.
53231
53232 2007-12-22  Bruno Haible  <bruno@clisp.org>
53233
53234         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53235         two variables local_ldadd_before, local_ldadd_last.
53236
53237 2007-12-20  Eric Blake  <ebb9@byu.net>
53238
53239         Work around circular library issue when cross-compiling.
53240         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53241         that progname.o does not need to pull in rpl_memcmp.
53242
53243 2007-12-19  Eric Blake  <ebb9@byu.net>
53244
53245         Fix memmem to avoid O(n^2) worst-case complexity.
53246         * lib/memmem.c (knuth_morris_pratt): New function.
53247         (memmem): Use it if first few naive iterations fail.
53248         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53249         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53250         * modules/memchr (License): Likewise.
53251         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53252         malloca.
53253         * tests/test-memmem.c: Rewrite, borrowing ideas from
53254         test-mbsstr1.c; the old version wouldn't even compile!
53255         * modules/memmem-tests: New file.
53256         * lib/string.in.h (rpl_memmem): Add declaration.
53257         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53258         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53259         REPLACE_MEMMEM.
53260
53261 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53262
53263         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53264         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53265         before any system include files, and undef after them all.  This
53266         should fix a problem on VMS reported by John E. Malmberg in
53267         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53268
53269 2007-12-17  Eric Blake  <ebb9@byu.net>
53270
53271         Revert addition of verify, for BSD/OS.
53272         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53273         can't handle large files, for the sake of obsolete platforms.
53274         * modules/fseeko (Depends-on): Remove verify.
53275         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53276         * doc/functions/ftello.texi (ftello): Likewise.
53277         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53278         Reported by Larry Jones.
53279
53280 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53281
53282         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53283         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53284
53285 2007-12-17  Jim Meyering  <meyering@redhat.com>
53286
53287         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53288         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53289         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53290         * modules/getcwd (Depends-on): Add openat.
53291         Reported by Petr Salinger.
53292
53293 2007-12-17  Bruno Haible  <bruno@clisp.org>
53294
53295         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53296         avoid a segmentation fault of the configure test on x86_64 systems.
53297
53298 2007-12-15  Jim Meyering  <meyering@redhat.com>
53299
53300         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53301
53302 2007-12-13  Eric Blake  <ebb9@byu.net>
53303
53304         Another fseek test.
53305         * tests/test-fseek.c (main): Also test ungetc handling.
53306         * tests/test-fseeko.c (main): Likewise.
53307         * modules/fseeko (Depends-on): Add verify.
53308         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53309         large.
53310         Reported by Larry Jones.
53311
53312         Fix fseeko on mingw.
53313         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53314         seek.
53315
53316         Beef up fseek tests.
53317         * tests/test-fseek.c (main): Also test eof handling.
53318         * tests/test-fseeko.c (main): Likewise.
53319         Reported by Larry Jones.
53320
53321 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53322
53323         Fix fseeko on BSD-based platforms.
53324         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53325         successful seek.
53326
53327 2007-12-12  Eric Blake  <ebb9@byu.net>
53328
53329         Allow circular dependency of separate libtests.a
53330         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53331         when use_libtests.
53332
53333 2007-12-11  Eric Blake  <ebb9@byu.net>
53334
53335         Fix bug with -0.0L in previous patch.
53336         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53337         * tests/test-isnan.c (main): Also test on zeroes.
53338         * tests/test-isnanf.c (main): Likewise.
53339         * tests/test-isnanl.h (main): Likewise.
53340
53341         Detect pseudo-denormals on x86 even when cross-compiling.
53342         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53343         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53344         invalid bit patterns that happen to satisfy ==.
53345
53346         Avoid link failures with separate libtests.a.
53347         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53348         last, to satisfy circular dependencies.
53349
53350 2007-12-11  Eric Blake  <ebb9@byu.net>
53351         and Bruno Haible  <bruno@clisp.org>
53352
53353         Fix OpenBSD 4.0 <float.h> handling of long double.
53354         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53355         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53356         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53357
53358 2007-12-11  Jim Meyering  <meyering@redhat.com>
53359
53360         * users.txt: Add libvirt.
53361
53362         Support versions of autoconf prior to 2.59c.
53363         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53364         if it is not already defined.
53365
53366 2007-12-09  Bruno Haible  <bruno@clisp.org>
53367
53368         Let 'gnulib-tool --import' collect sources needed for the tests in
53369         tests/ rather than in lib/.
53370         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53371         argument. If true, add rules to generate libtests.a, and put libtests.a
53372         into $(LDADD). Consider source files in subdirectories and set
53373         uses_subdirs.
53374         (func_emit_initmacro_start, func_emit_initmacro_end,
53375         func_emit_initmacro_done): Pass all arguments explicitly.
53376         (func_import): Determine two module lists main_modules,
53377         testsrelated_modules. Determine use_libtests. Determine two variables
53378         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53379         instead of just sed_transform_lib_file. Determine two variables
53380         main_files and testsrelated_files. Compute 'files' as the union of
53381         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53382         func_add_or_update. In the generated gnulib-comp.m4, collect the
53383         object files for tests/ in different variables than those for lib/.
53384         Substitute LIBTESTS_LIBDEPS.
53385         (func_create_testdir): Combine the uses_subdirs results from
53386         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53387
53388 2007-12-09  Bruno Haible  <bruno@clisp.org>
53389
53390         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53391         the build-aux directory.
53392
53393 2007-12-09  Bruno Haible  <bruno@clisp.org>
53394
53395         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53396         introduced on 2006-09-09.
53397
53398 2007-12-07  Jim Meyering  <meyering@redhat.com>
53399
53400         Let these macros work also with autoconf-2.59.
53401         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53402         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53403         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53404
53405 2007-12-06  Jim Meyering  <meyering@redhat.com>
53406
53407         Avoid a configure-time syntax error in gl_FUNC_ACL.
53408         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53409         function in each branch, before testing the cache variable.
53410
53411 2007-12-04  Eric Blake  <ebb9@byu.net>
53412
53413         Make scripts executable.
53414         * build-aux/config.guess: Add execute permissions.
53415         * build-aux/config.sub: Likewise.
53416         * build-aux/gendocs.sh: Likewise.
53417
53418         Fix frexp on mingw.
53419         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53420         cross-compiling.
53421         * doc/functions/frexp.texi (frexp): Document the bug.
53422
53423         Make cygwin fseeko check more reliable.
53424         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53425         version numbers, rather than unrelated feature check.
53426         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53427         * doc/functions/ftello.texi (ftello): Likewise.
53428         Reported by Bruno Haible.
53429
53430         * m4/strerror.m4: Bump version number.
53431
53432 2007-12-03  Bruno Haible  <bruno@clisp.org>
53433
53434         * doc/functions/mprotect.texi: Mention the mingw problem.
53435
53436 2007-12-03  Eric Blake  <ebb9@byu.net>
53437
53438         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53439         REPLACE_STRERROR is initialized before this macro.
53440
53441 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53442
53443         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53444         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53445         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53446         put -lsec in even for programs other than 'ls'.  This fixes a problem
53447         for gettext reported by Bruno Haible in
53448         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53449         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53450         Add support for Solaris 10.  This isn't efficient, but should get the
53451         job done for now.
53452
53453 2007-12-03  James Youngman  <jay@gnu.org>
53454
53455         * doc/regexprops-generic.texi: change "an close-group" to "a
53456         close-group" and "illegal" to "not allowed".
53457
53458 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53459
53460         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53461         pr_byname.h. Needed for the rare case when the maintainer has done
53462         "make maintainer-clean" in the source directory and then attempts a
53463         build outside the source directory.
53464         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53465         scripts_byname.h.
53466
53467 2007-12-02  Martin Lambers <marlam@marlam.de>
53468             Bruno Haible  <bruno@clisp.org>
53469
53470         * lib/getpagesize.h: Remove file.
53471         * lib/unistd.in.h: Include declaration of getpagesize here.
53472         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53473         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53474         HAVE_SYS_PARAM_H.
53475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53476         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53477         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53478         (Depends-on): Add unistd.
53479         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53480         (Include): Use <unistd.h> instead of getpagesize.h.
53481         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53482         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53483         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53484         gl_GETPAGESIZE invocation, already handled by module dependency.
53485         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53486
53487 2007-12-02  Bruno Haible  <bruno@clisp.org>
53488
53489         * modules/strings-tests: New file.
53490         * tests/test-strings.c: New file.
53491
53492         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53493         * lib/strings.in.h: New file.
53494         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53495         * m4/strings_h.m4: New file.
53496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53497         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53498         * modules/strings: New file.
53499         * modules/string (Makefile.am): Update.
53500         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53501         Reported by Karl Berry.
53502
53503 2007-12-01  Eric Blake  <ebb9@byu.net>
53504
53505         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53506         accomodate fix in cygwin 1.5.25.
53507
53508 2007-12-01  Jim Meyering  <meyering@redhat.com>
53509
53510         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53511         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53512         that would inhibit utf8-optimization of a regexp containing line-
53513         or buffer-anchors, e.g., `^', `$'.
53514
53515 2007-11-30  Bruno Haible  <bruno@clisp.org>
53516
53517         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53518         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53519         glthread_recursive_lock_init.
53520         * lib/lock.c (glthread_recursive_lock_init)
53521         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53522         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53523
53524 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53525
53526         New function qset_acl, like set_acl but with syscall semantics.
53527         * lib/acl.h (qset_acl): New decl.
53528         * lib/acl.c (qset_acl): New function.
53529         (set_acl): Use new function.  Use more-consistent diagnostics.
53530
53531 2007-11-28  Jim Meyering  <meyering@redhat.com>
53532
53533         * modules/physmem (License): Change from GPL to LGPLv2+.
53534
53535 2007-11-26  Bruno Haible  <bruno@clisp.org>
53536
53537         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53538         'long double' type has excess precision.
53539         Reported by Jim Meyering in
53540         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53541
53542 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53543
53544         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53545         Sync from <http://gnu.org/licenses>.
53546         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53547         with license text from same location.
53548         * doc/maintain.texi, doc/standards.texi:  Sync from
53549         <http://savannah.gnu.org/projects/gnustandards>.
53550
53551 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53552         and Jim Meyering  <meyering@redhat.com>
53553
53554         Adjust getdate' grammar to accept a slightly more regular language.
53555         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53556         Before, the former was rejected.
53557         * lib/getdate.y (digits_to_date_time): New function, factored
53558         out of ...
53559         (number): ...here.  Just call digits_to_date_time.
53560         (hybrid): New non-terminal to handle an <unsigned number,
53561         signed relative offset> sequence consistently.
53562
53563 2007-11-18  Jim Meyering  <meyering@redhat.com>
53564
53565         Pull my changes from coreutils:
53566         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53567         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53568         use of $gnulib_tool_option_extras, so that it's separated from the
53569         preceding argument.
53570
53571         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53572         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53573         parent destination directories before copying a file into place.
53574
53575 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53576
53577         bootstrap: work also with 4-argument variant of AC_INIT
53578         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53579
53580 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53581
53582         Port test-getaddrinfo to Solaris.
53583         Problem reported by Bruno Haible in
53584         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53585         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53586         explanation of setting 'hints'.
53587         Don't reject an implementation merely because it returns EAI_SERVICE.
53588         (EAI_SERVICE): Define to 0 if not defined.
53589
53590 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53591
53592         The license of gnu-make and posix-shell is now "GPLed build tool".
53593         * modules/gnu-make (License): Likewise.
53594         * modules/posix-shell (License): Likewise.
53595
53596         New module posix-shell, for determining a POSIX shell
53597         or perhaps something that is close enough to a POSIX shell.
53598         * m4/posix-shell.m4: New file.
53599         * modules/posix-shell: New file.
53600
53601         * MODULES.html.sh: Mention new module.
53602
53603         New module gnu-make, for determining whether we're using GNU Make.
53604         * m4/gnu-make.m4: New file.
53605         * modules/gnu-make: New file.
53606         * MODULES.html.sh: Mention new module.
53607
53608 2007-11-14  Jim Meyering  <meyering@redhat.com>
53609
53610         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53611         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53612         use this macro to create a function _definition_.
53613         Remove useless "#undef ARGMATCH_DIE".
53614
53615 2007-11-14  Bruno Haible  <bruno@clisp.org>
53616
53617         * lib/config.charset: Update for OpenBSD 4.1.
53618         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53619
53620 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53621
53622         Document 64-bit #if problems in stdint.texi.
53623         * doc/headers/stdint.texi (stdint.h): Mention problems with
53624         64-bit-#if, and how to work around them.
53625
53626         Don't insist on 'long long int' support in the preprocessor.  It
53627         breaks too many things.  For example, PRIdMAX still uses a 'long
53628         long int' format with the latest Sun compiler, even though
53629         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53630         preprocessor problem.  This causes the latest coreutils to dump
53631         core on Solaris 10 sparc with the Sun C compiler.
53632         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53633         the troublesome expressions at configure-time, not at #if-time.
53634         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53635         preprocessor.
53636         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53637         compile-time C checks, done at 'configure'-time.
53638         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53639         * modules/inttypes (Makefile): Substitute the new symbols that
53640         gl_INTTYPES_H now generates.
53641         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53642
53643 2007-11-12  Bruno Haible  <bruno@clisp.org>
53644
53645         Tests for Unicode character classification functions.
53646
53647         * modules/unictype/bidicategory-byname-tests: New file.
53648         * modules/unictype/bidicategory-name-tests: New file.
53649         * modules/unictype/bidicategory-of-tests: New file.
53650         * modules/unictype/bidicategory-test-tests: New file.
53651         * modules/unictype/block-list-tests: New file.
53652         * modules/unictype/block-of-tests: New file.
53653         * modules/unictype/block-test-tests: New file.
53654         * modules/unictype/category-C-tests: New file.
53655         * modules/unictype/category-Cc-tests: New file.
53656         * modules/unictype/category-Cf-tests: New file.
53657         * modules/unictype/category-Cn-tests: New file.
53658         * modules/unictype/category-Co-tests: New file.
53659         * modules/unictype/category-Cs-tests: New file.
53660         * modules/unictype/category-L-tests: New file.
53661         * modules/unictype/category-Ll-tests: New file.
53662         * modules/unictype/category-Lm-tests: New file.
53663         * modules/unictype/category-Lo-tests: New file.
53664         * modules/unictype/category-Lt-tests: New file.
53665         * modules/unictype/category-Lu-tests: New file.
53666         * modules/unictype/category-M-tests: New file.
53667         * modules/unictype/category-Mc-tests: New file.
53668         * modules/unictype/category-Me-tests: New file.
53669         * modules/unictype/category-Mn-tests: New file.
53670         * modules/unictype/category-N-tests: New file.
53671         * modules/unictype/category-Nd-tests: New file.
53672         * modules/unictype/category-Nl-tests: New file.
53673         * modules/unictype/category-No-tests: New file.
53674         * modules/unictype/category-P-tests: New file.
53675         * modules/unictype/category-Pc-tests: New file.
53676         * modules/unictype/category-Pd-tests: New file.
53677         * modules/unictype/category-Pe-tests: New file.
53678         * modules/unictype/category-Pf-tests: New file.
53679         * modules/unictype/category-Pi-tests: New file.
53680         * modules/unictype/category-Po-tests: New file.
53681         * modules/unictype/category-Ps-tests: New file.
53682         * modules/unictype/category-S-tests: New file.
53683         * modules/unictype/category-Sc-tests: New file.
53684         * modules/unictype/category-Sk-tests: New file.
53685         * modules/unictype/category-Sm-tests: New file.
53686         * modules/unictype/category-So-tests: New file.
53687         * modules/unictype/category-Z-tests: New file.
53688         * modules/unictype/category-Zl-tests: New file.
53689         * modules/unictype/category-Zp-tests: New file.
53690         * modules/unictype/category-Zs-tests: New file.
53691         * modules/unictype/category-and-not-tests: New file.
53692         * modules/unictype/category-and-tests: New file.
53693         * modules/unictype/category-byname-tests: New file.
53694         * modules/unictype/category-name-tests: New file.
53695         * modules/unictype/category-none-tests: New file.
53696         * modules/unictype/category-of-tests: New file.
53697         * modules/unictype/category-or-tests: New file.
53698         * modules/unictype/category-test-withtable-tests: New file.
53699         * modules/unictype/combining-class-tests: New file.
53700         * modules/unictype/ctype-alnum-tests: New file.
53701         * modules/unictype/ctype-alpha-tests: New file.
53702         * modules/unictype/ctype-blank-tests: New file.
53703         * modules/unictype/ctype-cntrl-tests: New file.
53704         * modules/unictype/ctype-digit-tests: New file.
53705         * modules/unictype/ctype-graph-tests: New file.
53706         * modules/unictype/ctype-lower-tests: New file.
53707         * modules/unictype/ctype-print-tests: New file.
53708         * modules/unictype/ctype-punct-tests: New file.
53709         * modules/unictype/ctype-space-tests: New file.
53710         * modules/unictype/ctype-upper-tests: New file.
53711         * modules/unictype/ctype-xdigit-tests: New file.
53712         * modules/unictype/decimal-digit-tests: New file.
53713         * modules/unictype/digit-tests: New file.
53714         * modules/unictype/mirror-tests: New file.
53715         * modules/unictype/numeric-tests: New file.
53716         * modules/unictype/property-alphabetic-tests: New file.
53717         * modules/unictype/property-ascii-hex-digit-tests: New file.
53718         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53719         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53720         * modules/unictype/property-bidi-block-separator-tests: New file.
53721         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53722         * modules/unictype/property-bidi-common-separator-tests: New file.
53723         * modules/unictype/property-bidi-control-tests: New file.
53724         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53725         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53726         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53727         * modules/unictype/property-bidi-european-digit-tests: New file.
53728         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53729         * modules/unictype/property-bidi-left-to-right-tests: New file.
53730         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53731         * modules/unictype/property-bidi-other-neutral-tests: New file.
53732         * modules/unictype/property-bidi-pdf-tests: New file.
53733         * modules/unictype/property-bidi-segment-separator-tests: New file.
53734         * modules/unictype/property-bidi-whitespace-tests: New file.
53735         * modules/unictype/property-byname-tests: New file.
53736         * modules/unictype/property-combining-tests: New file.
53737         * modules/unictype/property-composite-tests: New file.
53738         * modules/unictype/property-currency-symbol-tests: New file.
53739         * modules/unictype/property-dash-tests: New file.
53740         * modules/unictype/property-decimal-digit-tests: New file.
53741         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53742         * modules/unictype/property-deprecated-tests: New file.
53743         * modules/unictype/property-diacritic-tests: New file.
53744         * modules/unictype/property-extender-tests: New file.
53745         * modules/unictype/property-format-control-tests: New file.
53746         * modules/unictype/property-grapheme-base-tests: New file.
53747         * modules/unictype/property-grapheme-extend-tests: New file.
53748         * modules/unictype/property-grapheme-link-tests: New file.
53749         * modules/unictype/property-hex-digit-tests: New file.
53750         * modules/unictype/property-hyphen-tests: New file.
53751         * modules/unictype/property-id-continue-tests: New file.
53752         * modules/unictype/property-id-start-tests: New file.
53753         * modules/unictype/property-ideographic-tests: New file.
53754         * modules/unictype/property-ids-binary-operator-tests: New file.
53755         * modules/unictype/property-ids-trinary-operator-tests: New file.
53756         * modules/unictype/property-ignorable-control-tests: New file.
53757         * modules/unictype/property-iso-control-tests: New file.
53758         * modules/unictype/property-join-control-tests: New file.
53759         * modules/unictype/property-left-of-pair-tests: New file.
53760         * modules/unictype/property-line-separator-tests: New file.
53761         * modules/unictype/property-logical-order-exception-tests: New file.
53762         * modules/unictype/property-lowercase-tests: New file.
53763         * modules/unictype/property-math-tests: New file.
53764         * modules/unictype/property-non-break-tests: New file.
53765         * modules/unictype/property-not-a-character-tests: New file.
53766         * modules/unictype/property-numeric-tests: New file.
53767         * modules/unictype/property-other-alphabetic-tests: New file.
53768         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53769         * modules/unictype/property-other-grapheme-extend-tests: New file.
53770         * modules/unictype/property-other-id-continue-tests: New file.
53771         * modules/unictype/property-other-id-start-tests: New file.
53772         * modules/unictype/property-other-lowercase-tests: New file.
53773         * modules/unictype/property-other-math-tests: New file.
53774         * modules/unictype/property-other-uppercase-tests: New file.
53775         * modules/unictype/property-paired-punctuation-tests: New file.
53776         * modules/unictype/property-paragraph-separator-tests: New file.
53777         * modules/unictype/property-pattern-syntax-tests: New file.
53778         * modules/unictype/property-pattern-white-space-tests: New file.
53779         * modules/unictype/property-private-use-tests: New file.
53780         * modules/unictype/property-punctuation-tests: New file.
53781         * modules/unictype/property-quotation-mark-tests: New file.
53782         * modules/unictype/property-radical-tests: New file.
53783         * modules/unictype/property-sentence-terminal-tests: New file.
53784         * modules/unictype/property-soft-dotted-tests: New file.
53785         * modules/unictype/property-space-tests: New file.
53786         * modules/unictype/property-terminal-punctuation-tests: New file.
53787         * modules/unictype/property-test-tests: New file.
53788         * modules/unictype/property-titlecase-tests: New file.
53789         * modules/unictype/property-unassigned-code-value-tests: New file.
53790         * modules/unictype/property-unified-ideograph-tests: New file.
53791         * modules/unictype/property-uppercase-tests: New file.
53792         * modules/unictype/property-variation-selector-tests: New file.
53793         * modules/unictype/property-white-space-tests: New file.
53794         * modules/unictype/property-xid-continue-tests: New file.
53795         * modules/unictype/property-xid-start-tests: New file.
53796         * modules/unictype/property-zero-width-tests: New file.
53797         * modules/unictype/scripts-tests: New file.
53798         * modules/unictype/syntax-c-ident-tests: New file.
53799         * modules/unictype/syntax-c-whitespace-tests: New file.
53800         * modules/unictype/syntax-java-ident-tests: New file.
53801         * modules/unictype/syntax-java-whitespace-tests: New file.
53802         * tests/unictype/test-bidi_byname.c: New file.
53803         * tests/unictype/test-bidi_name.c: New file.
53804         * tests/unictype/test-bidi_of.c: New file.
53805         * tests/unictype/test-bidi_test.c: New file.
53806         * tests/unictype/test-block_list.c: New file.
53807         * tests/unictype/test-block_of.c: New file.
53808         * tests/unictype/test-block_test.c: New file.
53809         * tests/unictype/test-categ_and.c: New file.
53810         * tests/unictype/test-categ_and_not.c: New file.
53811         * tests/unictype/test-categ_byname.c: New file.
53812         * tests/unictype/test-categ_name.c: New file.
53813         * tests/unictype/test-categ_none.c: New file.
53814         * tests/unictype/test-categ_of.c: New file.
53815         * tests/unictype/test-categ_or.c: New file.
53816         * tests/unictype/test-categ_test_withtable.c: New file.
53817         * tests/unictype/test-combining.c: New file.
53818         * tests/unictype/test-decdigit.c: New file.
53819         * tests/unictype/test-digit.c: New file.
53820         * tests/unictype/test-mirror.c: New file.
53821         * tests/unictype/test-numeric.c: New file.
53822         * tests/unictype/test-pr_byname.c: New file.
53823         * tests/unictype/test-pr_test.c: New file.
53824         * tests/unictype/test-predicate-part1.h: New file.
53825         * tests/unictype/test-predicate-part2.h: New file.
53826         * tests/unictype/test-scripts.c: New file.
53827         * tests/unictype/test-sy_c_ident.c: New file.
53828         * tests/unictype/test-sy_java_ident.c: New file.
53829
53830         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53831         for Unicode 5.0.0.
53832         * tests/unictype/test-categ_Cc.c: Likewise.
53833         * tests/unictype/test-categ_Cf.c: Likewise.
53834         * tests/unictype/test-categ_Cn.c: Likewise.
53835         * tests/unictype/test-categ_Co.c: Likewise.
53836         * tests/unictype/test-categ_Cs.c: Likewise.
53837         * tests/unictype/test-categ_L.c: Likewise.
53838         * tests/unictype/test-categ_Ll.c: Likewise.
53839         * tests/unictype/test-categ_Lm.c: Likewise.
53840         * tests/unictype/test-categ_Lo.c: Likewise.
53841         * tests/unictype/test-categ_Lt.c: Likewise.
53842         * tests/unictype/test-categ_Lu.c: Likewise.
53843         * tests/unictype/test-categ_M.c: Likewise.
53844         * tests/unictype/test-categ_Mc.c: Likewise.
53845         * tests/unictype/test-categ_Me.c: Likewise.
53846         * tests/unictype/test-categ_Mn.c: Likewise.
53847         * tests/unictype/test-categ_N.c: Likewise.
53848         * tests/unictype/test-categ_Nd.c: Likewise.
53849         * tests/unictype/test-categ_Nl.c: Likewise.
53850         * tests/unictype/test-categ_No.c: Likewise.
53851         * tests/unictype/test-categ_P.c: Likewise.
53852         * tests/unictype/test-categ_Pc.c: Likewise.
53853         * tests/unictype/test-categ_Pd.c: Likewise.
53854         * tests/unictype/test-categ_Pe.c: Likewise.
53855         * tests/unictype/test-categ_Pf.c: Likewise.
53856         * tests/unictype/test-categ_Pi.c: Likewise.
53857         * tests/unictype/test-categ_Po.c: Likewise.
53858         * tests/unictype/test-categ_Ps.c: Likewise.
53859         * tests/unictype/test-categ_S.c: Likewise.
53860         * tests/unictype/test-categ_Sc.c: Likewise.
53861         * tests/unictype/test-categ_Sk.c: Likewise.
53862         * tests/unictype/test-categ_Sm.c: Likewise.
53863         * tests/unictype/test-categ_So.c: Likewise.
53864         * tests/unictype/test-categ_Z.c: Likewise.
53865         * tests/unictype/test-categ_Zl.c: Likewise.
53866         * tests/unictype/test-categ_Zp.c: Likewise.
53867         * tests/unictype/test-categ_Zs.c: Likewise.
53868         * tests/unictype/test-ctype_alnum.c: Likewise.
53869         * tests/unictype/test-ctype_alpha.c: Likewise.
53870         * tests/unictype/test-ctype_blank.c: Likewise.
53871         * tests/unictype/test-ctype_cntrl.c: Likewise.
53872         * tests/unictype/test-ctype_digit.c: Likewise.
53873         * tests/unictype/test-ctype_graph.c: Likewise.
53874         * tests/unictype/test-ctype_lower.c: Likewise.
53875         * tests/unictype/test-ctype_print.c: Likewise.
53876         * tests/unictype/test-ctype_punct.c: Likewise.
53877         * tests/unictype/test-ctype_space.c: Likewise.
53878         * tests/unictype/test-ctype_upper.c: Likewise.
53879         * tests/unictype/test-ctype_xdigit.c: Likewise.
53880         * tests/unictype/test-decdigit.h: Likewise.
53881         * tests/unictype/test-digit.h: Likewise.
53882         * tests/unictype/test-numeric.h: Likewise.
53883         * tests/unictype/test-pr_alphabetic.c: Likewise.
53884         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53885         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53886         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53887         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53888         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53889         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53890         * tests/unictype/test-pr_bidi_control.c: Likewise.
53891         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53892         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53893         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53894         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53895         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53896         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53897         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53898         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53899         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53900         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53901         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53902         * tests/unictype/test-pr_combining.c: Likewise.
53903         * tests/unictype/test-pr_composite.c: Likewise.
53904         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53905         * tests/unictype/test-pr_dash.c: Likewise.
53906         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53907         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53908         * tests/unictype/test-pr_deprecated.c: Likewise.
53909         * tests/unictype/test-pr_diacritic.c: Likewise.
53910         * tests/unictype/test-pr_extender.c: Likewise.
53911         * tests/unictype/test-pr_format_control.c: Likewise.
53912         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53913         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53914         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53915         * tests/unictype/test-pr_hex_digit.c: Likewise.
53916         * tests/unictype/test-pr_hyphen.c: Likewise.
53917         * tests/unictype/test-pr_id_continue.c: Likewise.
53918         * tests/unictype/test-pr_id_start.c: Likewise.
53919         * tests/unictype/test-pr_ideographic.c: Likewise.
53920         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53921         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53922         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53923         * tests/unictype/test-pr_iso_control.c: Likewise.
53924         * tests/unictype/test-pr_join_control.c: Likewise.
53925         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53926         * tests/unictype/test-pr_line_separator.c: Likewise.
53927         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53928         * tests/unictype/test-pr_lowercase.c: Likewise.
53929         * tests/unictype/test-pr_math.c: Likewise.
53930         * tests/unictype/test-pr_non_break.c: Likewise.
53931         * tests/unictype/test-pr_not_a_character.c: Likewise.
53932         * tests/unictype/test-pr_numeric.c: Likewise.
53933         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53934         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53935         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53936         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53937         * tests/unictype/test-pr_other_id_start.c: Likewise.
53938         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53939         * tests/unictype/test-pr_other_math.c: Likewise.
53940         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53941         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53942         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53943         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53944         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53945         * tests/unictype/test-pr_private_use.c: Likewise.
53946         * tests/unictype/test-pr_punctuation.c: Likewise.
53947         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53948         * tests/unictype/test-pr_radical.c: Likewise.
53949         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53950         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53951         * tests/unictype/test-pr_space.c: Likewise.
53952         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53953         * tests/unictype/test-pr_titlecase.c: Likewise.
53954         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53955         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53956         * tests/unictype/test-pr_uppercase.c: Likewise.
53957         * tests/unictype/test-pr_variation_selector.c: Likewise.
53958         * tests/unictype/test-pr_white_space.c: Likewise.
53959         * tests/unictype/test-pr_xid_continue.c: Likewise.
53960         * tests/unictype/test-pr_xid_start.c: Likewise.
53961         * tests/unictype/test-pr_zero_width.c: Likewise.
53962         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53963         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53964
53965 2007-11-12  Bruno Haible  <bruno@clisp.org>
53966
53967         Unicode character classification functions.
53968         * lib/unictype.h: New file.
53969         * modules/unictype/base: New file.
53970         * modules/unictype/category-L: New file.
53971         * modules/unictype/category-Lu: New file.
53972         * modules/unictype/category-Ll: New file.
53973         * modules/unictype/category-Lt: New file.
53974         * modules/unictype/category-Lm: New file.
53975         * modules/unictype/category-Lo: New file.
53976         * modules/unictype/category-M: New file.
53977         * modules/unictype/category-Mn: New file.
53978         * modules/unictype/category-Mc: New file.
53979         * modules/unictype/category-Me: New file.
53980         * modules/unictype/category-N: New file.
53981         * modules/unictype/category-Nd: New file.
53982         * modules/unictype/category-Nl: New file.
53983         * modules/unictype/category-No: New file.
53984         * modules/unictype/category-P: New file.
53985         * modules/unictype/category-Pc: New file.
53986         * modules/unictype/category-Pd: New file.
53987         * modules/unictype/category-Ps: New file.
53988         * modules/unictype/category-Pe: New file.
53989         * modules/unictype/category-Pi: New file.
53990         * modules/unictype/category-Pf: New file.
53991         * modules/unictype/category-Po: New file.
53992         * modules/unictype/category-S: New file.
53993         * modules/unictype/category-Sm: New file.
53994         * modules/unictype/category-Sc: New file.
53995         * modules/unictype/category-Sk: New file.
53996         * modules/unictype/category-So: New file.
53997         * modules/unictype/category-Z: New file.
53998         * modules/unictype/category-Zs: New file.
53999         * modules/unictype/category-Zl: New file.
54000         * modules/unictype/category-Zp: New file.
54001         * modules/unictype/category-C: New file.
54002         * modules/unictype/category-Cc: New file.
54003         * modules/unictype/category-Cf: New file.
54004         * modules/unictype/category-Cs: New file.
54005         * modules/unictype/category-Co: New file.
54006         * modules/unictype/category-Cn: New file.
54007         * modules/unictype/category-or: New file.
54008         * modules/unictype/category-of: New file.
54009         * modules/unictype/category-test: New file.
54010         * modules/unictype/category-test-withtable: New file.
54011         * modules/unictype/category-byname: New file.
54012         * modules/unictype/category-none: New file.
54013         * modules/unictype/category-and: New file.
54014         * modules/unictype/category-and-not: New file.
54015         * modules/unictype/category-name: New file.
54016         * modules/unictype/combining-class: New file.
54017         * modules/unictype/category-all: New file.
54018         * modules/unictype/bidicategory-all: New file.
54019         * modules/unictype/bidicategory-byname: New file.
54020         * modules/unictype/bidicategory-name: New file.
54021         * modules/unictype/bidicategory-of: New file.
54022         * modules/unictype/bidicategory-test: New file.
54023         * modules/unictype/decimal-digit: New file.
54024         * modules/unictype/digit: New file.
54025         * modules/unictype/numeric: New file.
54026         * modules/unictype/mirror: New file.
54027         * modules/unictype/property-white-space: New file.
54028         * modules/unictype/property-alphabetic: New file.
54029         * modules/unictype/property-other-alphabetic: New file.
54030         * modules/unictype/property-not-a-character: New file.
54031         * modules/unictype/property-default-ignorable-code-point: New file.
54032         * modules/unictype/property-other-default-ignorable-code-point: New
54033         file.
54034         * modules/unictype/property-deprecated: New file.
54035         * modules/unictype/property-logical-order-exception: New file.
54036         * modules/unictype/property-variation-selector: New file.
54037         * modules/unictype/property-private-use: New file.
54038         * modules/unictype/property-unassigned-code-value: New file.
54039         * modules/unictype/property-uppercase: New file.
54040         * modules/unictype/property-other-uppercase: New file.
54041         * modules/unictype/property-lowercase: New file.
54042         * modules/unictype/property-other-lowercase: New file.
54043         * modules/unictype/property-titlecase: New file.
54044         * modules/unictype/property-soft-dotted: New file.
54045         * modules/unictype/property-id-start: New file.
54046         * modules/unictype/property-other-id-start: New file.
54047         * modules/unictype/property-id-continue: New file.
54048         * modules/unictype/property-other-id-continue: New file.
54049         * modules/unictype/property-xid-start: New file.
54050         * modules/unictype/property-xid-continue: New file.
54051         * modules/unictype/property-pattern-white-space: New file.
54052         * modules/unictype/property-pattern-syntax: New file.
54053         * modules/unictype/property-join-control: New file.
54054         * modules/unictype/property-grapheme-base: New file.
54055         * modules/unictype/property-grapheme-extend: New file.
54056         * modules/unictype/property-other-grapheme-extend: New file.
54057         * modules/unictype/property-grapheme-link: New file.
54058         * modules/unictype/property-bidi-control: New file.
54059         * modules/unictype/property-bidi-left-to-right: New file.
54060         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54061         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54062         * modules/unictype/property-bidi-european-digit: New file.
54063         * modules/unictype/property-bidi-eur-num-separator: New file.
54064         * modules/unictype/property-bidi-eur-num-terminator: New file.
54065         * modules/unictype/property-bidi-arabic-digit: New file.
54066         * modules/unictype/property-bidi-common-separator: New file.
54067         * modules/unictype/property-bidi-block-separator: New file.
54068         * modules/unictype/property-bidi-segment-separator: New file.
54069         * modules/unictype/property-bidi-whitespace: New file.
54070         * modules/unictype/property-bidi-non-spacing-mark: New file.
54071         * modules/unictype/property-bidi-boundary-neutral: New file.
54072         * modules/unictype/property-bidi-pdf: New file.
54073         * modules/unictype/property-bidi-embedding-or-override: New file.
54074         * modules/unictype/property-bidi-other-neutral: New file.
54075         * modules/unictype/property-hex-digit: New file.
54076         * modules/unictype/property-ascii-hex-digit: New file.
54077         * modules/unictype/property-ideographic: New file.
54078         * modules/unictype/property-unified-ideograph: New file.
54079         * modules/unictype/property-radical: New file.
54080         * modules/unictype/property-ids-binary-operator: New file.
54081         * modules/unictype/property-ids-trinary-operator: New file.
54082         * modules/unictype/property-zero-width: New file.
54083         * modules/unictype/property-space: New file.
54084         * modules/unictype/property-non-break: New file.
54085         * modules/unictype/property-iso-control: New file.
54086         * modules/unictype/property-format-control: New file.
54087         * modules/unictype/property-dash: New file.
54088         * modules/unictype/property-hyphen: New file.
54089         * modules/unictype/property-punctuation: New file.
54090         * modules/unictype/property-line-separator: New file.
54091         * modules/unictype/property-paragraph-separator: New file.
54092         * modules/unictype/property-quotation-mark: New file.
54093         * modules/unictype/property-sentence-terminal: New file.
54094         * modules/unictype/property-terminal-punctuation: New file.
54095         * modules/unictype/property-currency-symbol: New file.
54096         * modules/unictype/property-math: New file.
54097         * modules/unictype/property-other-math: New file.
54098         * modules/unictype/property-paired-punctuation: New file.
54099         * modules/unictype/property-left-of-pair: New file.
54100         * modules/unictype/property-combining: New file.
54101         * modules/unictype/property-composite: New file.
54102         * modules/unictype/property-decimal-digit: New file.
54103         * modules/unictype/property-numeric: New file.
54104         * modules/unictype/property-diacritic: New file.
54105         * modules/unictype/property-extender: New file.
54106         * modules/unictype/property-ignorable-control: New file.
54107         * modules/unictype/property-test: New file.
54108         * modules/unictype/property-byname: New file.
54109         * modules/unictype/property-all: New file.
54110         * modules/unictype/scripts: New file.
54111         * modules/unictype/scripts-all: New file.
54112         * modules/unictype/block-of: New file.
54113         * modules/unictype/block-test: New file.
54114         * modules/unictype/block-list: New file.
54115         * modules/unictype/block-all: New file.
54116         * modules/unictype/syntax-c-whitespace: New file.
54117         * modules/unictype/syntax-java-whitespace: New file.
54118         * modules/unictype/syntax-c-ident: New file.
54119         * modules/unictype/syntax-java-ident: New file.
54120         * modules/unictype/ctype-alnum: New file.
54121         * modules/unictype/ctype-alpha: New file.
54122         * modules/unictype/ctype-cntrl: New file.
54123         * modules/unictype/ctype-digit: New file.
54124         * modules/unictype/ctype-graph: New file.
54125         * modules/unictype/ctype-lower: New file.
54126         * modules/unictype/ctype-print: New file.
54127         * modules/unictype/ctype-punct: New file.
54128         * modules/unictype/ctype-space: New file.
54129         * modules/unictype/ctype-upper: New file.
54130         * modules/unictype/ctype-xdigit: New file.
54131         * modules/unictype/ctype-blank: New file.
54132         * lib/unictype/bidi_byname.c: New file.
54133         * lib/unictype/bidi_name.c: New file.
54134         * lib/unictype/bidi_of.c: New file.
54135         * lib/unictype/bidi_test.c: New file.
54136         * lib/unictype/bitmap.h: New file.
54137         * lib/unictype/block_test.c: New file.
54138         * lib/unictype/blocks.c: New file.
54139         * lib/unictype/categ_C.c: New file.
54140         * lib/unictype/categ_Cc.c: New file.
54141         * lib/unictype/categ_Cf.c: New file.
54142         * lib/unictype/categ_Cn.c: New file.
54143         * lib/unictype/categ_Co.c: New file.
54144         * lib/unictype/categ_Cs.c: New file.
54145         * lib/unictype/categ_L.c: New file.
54146         * lib/unictype/categ_Ll.c: New file.
54147         * lib/unictype/categ_Lm.c: New file.
54148         * lib/unictype/categ_Lo.c: New file.
54149         * lib/unictype/categ_Lt.c: New file.
54150         * lib/unictype/categ_Lu.c: New file.
54151         * lib/unictype/categ_M.c: New file.
54152         * lib/unictype/categ_Mc.c: New file.
54153         * lib/unictype/categ_Me.c: New file.
54154         * lib/unictype/categ_Mn.c: New file.
54155         * lib/unictype/categ_N.c: New file.
54156         * lib/unictype/categ_Nd.c: New file.
54157         * lib/unictype/categ_Nl.c: New file.
54158         * lib/unictype/categ_No.c: New file.
54159         * lib/unictype/categ_P.c: New file.
54160         * lib/unictype/categ_Pc.c: New file.
54161         * lib/unictype/categ_Pd.c: New file.
54162         * lib/unictype/categ_Pe.c: New file.
54163         * lib/unictype/categ_Pf.c: New file.
54164         * lib/unictype/categ_Pi.c: New file.
54165         * lib/unictype/categ_Po.c: New file.
54166         * lib/unictype/categ_Ps.c: New file.
54167         * lib/unictype/categ_S.c: New file.
54168         * lib/unictype/categ_Sc.c: New file.
54169         * lib/unictype/categ_Sk.c: New file.
54170         * lib/unictype/categ_Sm.c: New file.
54171         * lib/unictype/categ_So.c: New file.
54172         * lib/unictype/categ_Z.c: New file.
54173         * lib/unictype/categ_Zl.c: New file.
54174         * lib/unictype/categ_Zp.c: New file.
54175         * lib/unictype/categ_Zs.c: New file.
54176         * lib/unictype/categ_and.c: New file.
54177         * lib/unictype/categ_and_not.c: New file.
54178         * lib/unictype/categ_byname.c: New file.
54179         * lib/unictype/categ_name.c: New file.
54180         * lib/unictype/categ_none.c: New file.
54181         * lib/unictype/categ_of.c: New file.
54182         * lib/unictype/categ_or.c: New file.
54183         * lib/unictype/categ_test.c: New file.
54184         * lib/unictype/combining.c: New file.
54185         * lib/unictype/ctype_alnum.c: New file.
54186         * lib/unictype/ctype_alpha.c: New file.
54187         * lib/unictype/ctype_blank.c: New file.
54188         * lib/unictype/ctype_cntrl.c: New file.
54189         * lib/unictype/ctype_digit.c: New file.
54190         * lib/unictype/ctype_graph.c: New file.
54191         * lib/unictype/ctype_lower.c: New file.
54192         * lib/unictype/ctype_print.c: New file.
54193         * lib/unictype/ctype_punct.c: New file.
54194         * lib/unictype/ctype_space.c: New file.
54195         * lib/unictype/ctype_upper.c: New file.
54196         * lib/unictype/ctype_xdigit.c: New file.
54197         * lib/unictype/decdigit.c: New file.
54198         * lib/unictype/digit.c: New file.
54199         * lib/unictype/identsyntaxmap.h: New file.
54200         * lib/unictype/mirror.c: New file.
54201         * lib/unictype/numeric.c: New file.
54202         * lib/unictype/pr_alphabetic.c: New file.
54203         * lib/unictype/pr_ascii_hex_digit.c: New file.
54204         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54205         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54206         * lib/unictype/pr_bidi_block_separator.c: New file.
54207         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54208         * lib/unictype/pr_bidi_common_separator.c: New file.
54209         * lib/unictype/pr_bidi_control.c: New file.
54210         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54211         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54212         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54213         * lib/unictype/pr_bidi_european_digit.c: New file.
54214         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54215         * lib/unictype/pr_bidi_left_to_right.c: New file.
54216         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54217         * lib/unictype/pr_bidi_other_neutral.c: New file.
54218         * lib/unictype/pr_bidi_pdf.c: New file.
54219         * lib/unictype/pr_bidi_segment_separator.c: New file.
54220         * lib/unictype/pr_bidi_whitespace.c: New file.
54221         * lib/unictype/pr_byname.c: New file.
54222         * lib/unictype/pr_byname.gperf: New file.
54223         * lib/unictype/pr_combining.c: New file.
54224         * lib/unictype/pr_composite.c: New file.
54225         * lib/unictype/pr_currency_symbol.c: New file.
54226         * lib/unictype/pr_dash.c: New file.
54227         * lib/unictype/pr_decimal_digit.c: New file.
54228         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54229         * lib/unictype/pr_deprecated.c: New file.
54230         * lib/unictype/pr_diacritic.c: New file.
54231         * lib/unictype/pr_extender.c: New file.
54232         * lib/unictype/pr_format_control.c: New file.
54233         * lib/unictype/pr_grapheme_base.c: New file.
54234         * lib/unictype/pr_grapheme_extend.c: New file.
54235         * lib/unictype/pr_grapheme_link.c: New file.
54236         * lib/unictype/pr_hex_digit.c: New file.
54237         * lib/unictype/pr_hyphen.c: New file.
54238         * lib/unictype/pr_id_continue.c: New file.
54239         * lib/unictype/pr_id_start.c: New file.
54240         * lib/unictype/pr_ideographic.c: New file.
54241         * lib/unictype/pr_ids_binary_operator.c: New file.
54242         * lib/unictype/pr_ids_trinary_operator.c: New file.
54243         * lib/unictype/pr_ignorable_control.c: New file.
54244         * lib/unictype/pr_iso_control.c: New file.
54245         * lib/unictype/pr_join_control.c: New file.
54246         * lib/unictype/pr_left_of_pair.c: New file.
54247         * lib/unictype/pr_line_separator.c: New file.
54248         * lib/unictype/pr_logical_order_exception.c: New file.
54249         * lib/unictype/pr_lowercase.c: New file.
54250         * lib/unictype/pr_math.c: New file.
54251         * lib/unictype/pr_non_break.c: New file.
54252         * lib/unictype/pr_not_a_character.c: New file.
54253         * lib/unictype/pr_numeric.c: New file.
54254         * lib/unictype/pr_other_alphabetic.c: New file.
54255         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54256         * lib/unictype/pr_other_grapheme_extend.c: New file.
54257         * lib/unictype/pr_other_id_continue.c: New file.
54258         * lib/unictype/pr_other_id_start.c: New file.
54259         * lib/unictype/pr_other_lowercase.c: New file.
54260         * lib/unictype/pr_other_math.c: New file.
54261         * lib/unictype/pr_other_uppercase.c: New file.
54262         * lib/unictype/pr_paired_punctuation.c: New file.
54263         * lib/unictype/pr_paragraph_separator.c: New file.
54264         * lib/unictype/pr_pattern_syntax.c: New file.
54265         * lib/unictype/pr_pattern_white_space.c: New file.
54266         * lib/unictype/pr_private_use.c: New file.
54267         * lib/unictype/pr_punctuation.c: New file.
54268         * lib/unictype/pr_quotation_mark.c: New file.
54269         * lib/unictype/pr_radical.c: New file.
54270         * lib/unictype/pr_sentence_terminal.c: New file.
54271         * lib/unictype/pr_soft_dotted.c: New file.
54272         * lib/unictype/pr_space.c: New file.
54273         * lib/unictype/pr_terminal_punctuation.c: New file.
54274         * lib/unictype/pr_test.c: New file.
54275         * lib/unictype/pr_titlecase.c: New file.
54276         * lib/unictype/pr_unassigned_code_value.c: New file.
54277         * lib/unictype/pr_unified_ideograph.c: New file.
54278         * lib/unictype/pr_uppercase.c: New file.
54279         * lib/unictype/pr_variation_selector.c: New file.
54280         * lib/unictype/pr_white_space.c: New file.
54281         * lib/unictype/pr_xid_continue.c: New file.
54282         * lib/unictype/pr_xid_start.c: New file.
54283         * lib/unictype/pr_zero_width.c: New file.
54284         * lib/unictype/scripts.c: New file.
54285         * lib/unictype/sy_c_ident.c: New file.
54286         * lib/unictype/sy_c_whitespace.c: New file.
54287         * lib/unictype/sy_java_ident.c: New file.
54288         * lib/unictype/sy_java_whitespace.c: New file.
54289
54290         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54291         Unicode 5.0.0.
54292         * lib/unictype/blocks.h: Likewise.
54293         * lib/unictype/categ_C.h: Likewise.
54294         * lib/unictype/categ_Cc.h: Likewise.
54295         * lib/unictype/categ_Cf.h: Likewise.
54296         * lib/unictype/categ_Cn.h: Likewise.
54297         * lib/unictype/categ_Co.h: Likewise.
54298         * lib/unictype/categ_Cs.h: Likewise.
54299         * lib/unictype/categ_L.h: Likewise.
54300         * lib/unictype/categ_Ll.h: Likewise.
54301         * lib/unictype/categ_Lm.h: Likewise.
54302         * lib/unictype/categ_Lo.h: Likewise.
54303         * lib/unictype/categ_Lt.h: Likewise.
54304         * lib/unictype/categ_Lu.h: Likewise.
54305         * lib/unictype/categ_M.h: Likewise.
54306         * lib/unictype/categ_Mc.h: Likewise.
54307         * lib/unictype/categ_Me.h: Likewise.
54308         * lib/unictype/categ_Mn.h: Likewise.
54309         * lib/unictype/categ_N.h: Likewise.
54310         * lib/unictype/categ_Nd.h: Likewise.
54311         * lib/unictype/categ_Nl.h: Likewise.
54312         * lib/unictype/categ_No.h: Likewise.
54313         * lib/unictype/categ_P.h: Likewise.
54314         * lib/unictype/categ_Pc.h: Likewise.
54315         * lib/unictype/categ_Pd.h: Likewise.
54316         * lib/unictype/categ_Pe.h: Likewise.
54317         * lib/unictype/categ_Pf.h: Likewise.
54318         * lib/unictype/categ_Pi.h: Likewise.
54319         * lib/unictype/categ_Po.h: Likewise.
54320         * lib/unictype/categ_Ps.h: Likewise.
54321         * lib/unictype/categ_S.h: Likewise.
54322         * lib/unictype/categ_Sc.h: Likewise.
54323         * lib/unictype/categ_Sk.h: Likewise.
54324         * lib/unictype/categ_Sm.h: Likewise.
54325         * lib/unictype/categ_So.h: Likewise.
54326         * lib/unictype/categ_Z.h: Likewise.
54327         * lib/unictype/categ_Zl.h: Likewise.
54328         * lib/unictype/categ_Zp.h: Likewise.
54329         * lib/unictype/categ_Zs.h: Likewise.
54330         * lib/unictype/categ_of.h: Likewise.
54331         * lib/unictype/combining.h: Likewise.
54332         * lib/unictype/ctype_alnum.h: Likewise.
54333         * lib/unictype/ctype_alpha.h: Likewise.
54334         * lib/unictype/ctype_blank.h: Likewise.
54335         * lib/unictype/ctype_cntrl.h: Likewise.
54336         * lib/unictype/ctype_digit.h: Likewise.
54337         * lib/unictype/ctype_graph.h: Likewise.
54338         * lib/unictype/ctype_lower.h: Likewise.
54339         * lib/unictype/ctype_print.h: Likewise.
54340         * lib/unictype/ctype_punct.h: Likewise.
54341         * lib/unictype/ctype_space.h: Likewise.
54342         * lib/unictype/ctype_upper.h: Likewise.
54343         * lib/unictype/ctype_xdigit.h: Likewise.
54344         * lib/unictype/decdigit.h: Likewise.
54345         * lib/unictype/digit.h: Likewise.
54346         * lib/unictype/mirror.h: Likewise.
54347         * lib/unictype/numeric.h: Likewise.
54348         * lib/unictype/pr_alphabetic.h: Likewise.
54349         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54350         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54351         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54352         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54353         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54354         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54355         * lib/unictype/pr_bidi_control.h: Likewise.
54356         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54357         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54358         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54359         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54360         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54361         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54362         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54363         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54364         * lib/unictype/pr_bidi_pdf.h: Likewise.
54365         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54366         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54367         * lib/unictype/pr_combining.h: Likewise.
54368         * lib/unictype/pr_composite.h: Likewise.
54369         * lib/unictype/pr_currency_symbol.h: Likewise.
54370         * lib/unictype/pr_dash.h: Likewise.
54371         * lib/unictype/pr_decimal_digit.h: Likewise.
54372         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54373         * lib/unictype/pr_deprecated.h: Likewise.
54374         * lib/unictype/pr_diacritic.h: Likewise.
54375         * lib/unictype/pr_extender.h: Likewise.
54376         * lib/unictype/pr_format_control.h: Likewise.
54377         * lib/unictype/pr_grapheme_base.h: Likewise.
54378         * lib/unictype/pr_grapheme_extend.h: Likewise.
54379         * lib/unictype/pr_grapheme_link.h: Likewise.
54380         * lib/unictype/pr_hex_digit.h: Likewise.
54381         * lib/unictype/pr_hyphen.h: Likewise.
54382         * lib/unictype/pr_id_continue.h: Likewise.
54383         * lib/unictype/pr_id_start.h: Likewise.
54384         * lib/unictype/pr_ideographic.h: Likewise.
54385         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54386         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54387         * lib/unictype/pr_ignorable_control.h: Likewise.
54388         * lib/unictype/pr_iso_control.h: Likewise.
54389         * lib/unictype/pr_join_control.h: Likewise.
54390         * lib/unictype/pr_left_of_pair.h: Likewise.
54391         * lib/unictype/pr_line_separator.h: Likewise.
54392         * lib/unictype/pr_logical_order_exception.h: Likewise.
54393         * lib/unictype/pr_lowercase.h: Likewise.
54394         * lib/unictype/pr_math.h: Likewise.
54395         * lib/unictype/pr_non_break.h: Likewise.
54396         * lib/unictype/pr_not_a_character.h: Likewise.
54397         * lib/unictype/pr_numeric.h: Likewise.
54398         * lib/unictype/pr_other_alphabetic.h: Likewise.
54399         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54400         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54401         * lib/unictype/pr_other_id_continue.h: Likewise.
54402         * lib/unictype/pr_other_id_start.h: Likewise.
54403         * lib/unictype/pr_other_lowercase.h: Likewise.
54404         * lib/unictype/pr_other_math.h: Likewise.
54405         * lib/unictype/pr_other_uppercase.h: Likewise.
54406         * lib/unictype/pr_paired_punctuation.h: Likewise.
54407         * lib/unictype/pr_paragraph_separator.h: Likewise.
54408         * lib/unictype/pr_pattern_syntax.h: Likewise.
54409         * lib/unictype/pr_pattern_white_space.h: Likewise.
54410         * lib/unictype/pr_private_use.h: Likewise.
54411         * lib/unictype/pr_punctuation.h: Likewise.
54412         * lib/unictype/pr_quotation_mark.h: Likewise.
54413         * lib/unictype/pr_radical.h: Likewise.
54414         * lib/unictype/pr_sentence_terminal.h: Likewise.
54415         * lib/unictype/pr_soft_dotted.h: Likewise.
54416         * lib/unictype/pr_space.h: Likewise.
54417         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54418         * lib/unictype/pr_titlecase.h: Likewise.
54419         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54420         * lib/unictype/pr_unified_ideograph.h: Likewise.
54421         * lib/unictype/pr_uppercase.h: Likewise.
54422         * lib/unictype/pr_variation_selector.h: Likewise.
54423         * lib/unictype/pr_white_space.h: Likewise.
54424         * lib/unictype/pr_xid_continue.h: Likewise.
54425         * lib/unictype/pr_xid_start.h: Likewise.
54426         * lib/unictype/pr_zero_width.h: Likewise.
54427         * lib/unictype/scripts.h: Likewise.
54428         * lib/unictype/scripts_byname.gperf: Likewise.
54429         * lib/unictype/sy_c_ident.h: Likewise.
54430         * lib/unictype/sy_c_whitespace.h: Likewise.
54431         * lib/unictype/sy_java_ident.h: Likewise.
54432         * lib/unictype/sy_java_whitespace.h: Likewise.
54433
54434         * lib/unictype/Makefile: New file.
54435         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54436         glibc.
54437         * lib/unictype/3level.h: New file, copied from glibc.
54438         * lib/unictype/3levelbit.h: New file.
54439
54440 2007-11-11  Bruno Haible  <bruno@clisp.org>
54441
54442         * modules/gperf: New file.
54443         * modules/iconv_open (Depends-on): Add it.
54444         (Makefile.am): Remove the GPERF definition.
54445
54446 2007-11-11  Bruno Haible  <bruno@clisp.org>
54447
54448         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54449         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54450
54451 2007-11-11  Bruno Haible  <bruno@clisp.org>
54452
54453         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54454         (usage): Remove function.
54455
54456 2007-11-11  Bruno Haible  <bruno@clisp.org>
54457
54458         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54459         gl_FUNC_CEILF_LIBS.
54460         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54461         gl_FUNC_CEIL_LIBS.
54462         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54463         gl_FUNC_CEILL_LIBS.
54464         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54465         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54466         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54467
54468 2007-11-11  Bruno Haible  <bruno@clisp.org>
54469
54470         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54471         roundf were declared but do not exist on functions.
54472         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54473         roundl were declared but do not exist on functions.
54474         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54475         HAVE_FLOORL_AND_CEILL, respectively.
54476         Needed for Sun C on Solaris 10.
54477
54478 2007-11-11  Bruno Haible  <bruno@clisp.org>
54479
54480         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54481         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54482         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54483         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54484         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54485         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54486         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54487         HAVE_DECL_ROUNDF.
54488         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54489         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54491         of HAVE_DECL_ROUND*.
54492         * modules/math (Makefile.am): Update.
54493
54494 2007-11-10  Bruno Haible  <bruno@clisp.org>
54495
54496         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54497         ptrdiff_t as m4/intl.m4.
54498
54499 2007-11-10  Jim Meyering  <meyering@redhat.com>
54500
54501         Avoid link failure for the argmatch test.
54502         * tests/test-argmatch.c (usage): Define function to avoid a link
54503         failure: argmatch_die requires a usage function.
54504
54505 2007-11-09  Bruno Haible  <bruno@clisp.org>
54506
54507         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54508         * doc/functions/vsnprintf.texi: Likewise.
54509         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54510         with a size argument < 2.
54511
54512 2007-11-09  Bruno Haible  <bruno@clisp.org>
54513
54514         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54515         buffer. Fixes an inefficiency introduced on 2007-11-03.
54516
54517 2007-11-09  Bruno Haible  <bruno@clisp.org>
54518
54519         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54520         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54521
54522 2007-11-08  Jim Meyering  <meyering@redhat.com>
54523
54524         Change cache variable name prefix "jm_" to "gl_" everywhere.
54525         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54526         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54527         * m4/uptime.m4: s/gl_/jm_/
54528
54529 2007-11-07  Bruno Haible  <bruno@clisp.org>
54530
54531         Update to GNU gettext 0.17.
54532         * m4/intl.m4: Update to GNU gettext 0.17.
54533         * m4/po.m4: Likewise.
54534         * modules/gettext (Files): Remove m4/ulonglong.m4.
54535         (configure.ac): Require gettext infrastructure from version 0.17.
54536
54537 2007-11-06  Bruno Haible  <bruno@clisp.org>
54538
54539         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54540         symbolic values are not defined in a public header.
54541         * lib/freadable.c (freadable) [QNX]: Likewise.
54542         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54543         * lib/freading.c (freading) [QNX]: Likewise.
54544         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54545         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54546         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54547         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54548         Reported by Alain Magloire.
54549
54550         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54551
54552 2007-11-05  Bruno Haible  <bruno@clisp.org>
54553
54554         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54555         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54556         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54557         Reported by Eric Blake.
54558
54559 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54560             Bruno Haible  <bruno@clisp.org>
54561
54562         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54563         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54564         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54565         (malloc): Undefine also before including <stdlib.h>.
54566         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54567         Needed on OSF/1 4.0.
54568
54569 2007-11-05  Jim Meyering  <meyering@redhat.com>
54570
54571         git-version-gen: sync from coreutils.
54572         * build-aux/git-version-gen: Add comments.
54573         Change the first '-' to '.' in the snapshot version string,
54574         e.g., 6.9-377-08144 -> 6.9.377-08144
54575         Remove first parameter.
54576         Don't declare a version "-dirty" merely because a time
54577         stamp has changed.
54578
54579 2007-11-04  Bruno Haible  <bruno@clisp.org>
54580
54581         * lib/lock.h: Protect all macro definitions containing an 'if'
54582         statement through a "do { ... } while (0)".
54583         * lib/tls.h: Likewise.
54584
54585 2007-11-04  Bruno Haible  <bruno@clisp.org>
54586
54587         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54588
54589 2007-11-04  Bruno Haible  <bruno@clisp.org>
54590
54591         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54592         * modules/fprintf-posix (Depends-on): Add nocrash.
54593         * modules/snprintf-posix (Depends-on): Likewise.
54594         * modules/sprintf-posix (Depends-on): Likewise.
54595         * modules/vasnprintf-posix (Depends-on): Likewise.
54596         * modules/vasprintf-posix (Depends-on): Likewise.
54597         * modules/vfprintf-posix (Depends-on): Likewise.
54598         * modules/vsnprintf-posix (Depends-on): Likewise.
54599         * modules/vsprintf-posix (Depends-on): Likewise.
54600         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54601         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54602         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54603         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54604         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54605         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54606         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54607
54608 2007-11-04  Bruno Haible  <bruno@clisp.org>
54609
54610         * modules/nocrash: New file.
54611         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54612         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54613
54614 2007-11-04  Bruno Haible  <bruno@clisp.org>
54615
54616         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54617         precision handling.
54618         * tests/test-vasprintf-posix.c (test_function): Likewise.
54619         * tests/test-snprintf-posix.h (test_function): Likewise.
54620         * tests/test-sprintf-posix.h (test_function): Likewise.
54621
54622         Fix *printf behaviour for large precisions on mingw and BeOS.
54623         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54624         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54625         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54626         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54627         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54628         gl_PRINTF_PRECISION and test its result. Invoke
54629         gl_PREREQ_VASNPRINTF_PRECISION.
54630         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54631         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54632         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54633         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54634         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54636         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54637         * doc/functions/fprintf.texi: Update.
54638         * doc/functions/printf.texi: Update.
54639         * doc/functions/snprintf.texi: Update.
54640         * doc/functions/sprintf.texi: Update.
54641         * doc/functions/vfprintf.texi: Update.
54642         * doc/functions/vprintf.texi: Update.
54643         * doc/functions/vsnprintf.texi: Update.
54644         * doc/functions/vsprintf.texi: Update.
54645
54646 2007-11-04  Bruno Haible  <bruno@clisp.org>
54647
54648         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54649
54650 2007-11-04  Bruno Haible  <bruno@clisp.org>
54651
54652         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54653         Reported by Sylvain Beucler <beuc@gnu.org>.
54654
54655 2007-11-03  Bruno Haible  <bruno@clisp.org>
54656
54657         * tests/test-fprintf-posix2.sh: New file.
54658         * tests/test-fprintf-posix2.c: New file.
54659         * modules/fprintf-posix-tests (Files): Add them.
54660         (TESTS): Add test-fprintf-posix2.sh.
54661         (configure.ac): Check for getrlimit and setrlimit.
54662         (check_PROGRAMS): Add test-fprintf-posix2.
54663
54664         * tests/test-printf-posix2.sh: New file.
54665         * tests/test-printf-posix2.c: New file.
54666         * modules/printf-posix-tests (Files): Add them.
54667         (TESTS): Add test-printf-posix2.sh.
54668         (configure.ac): Check for getrlimit and setrlimit.
54669         (check_PROGRAMS): Add test-printf-posix2.
54670
54671         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54672         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54673         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54674         (decode_double): New function, copied from decode_long_double.
54675         (scale10_round_decimal_decoded): New function, extracted from
54676         scale10_round_decimal_long_double.
54677         (scale10_round_decimal_long_double): Use it.
54678         (scale10_round_decimal_double): New function.
54679         (floorlog10): New function.
54680         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54681         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54682         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54683         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54684         gl_PRINTF_ENOMEM and test its result. Invoke
54685         gl_PREREQ_VASNPRINTF_ENOMEM.
54686         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54687         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54688         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54689         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54690         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54691         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54692         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54693         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54694         * modules/snprintf-posix (Depends-on): Likewise.
54695         * modules/sprintf-posix (Depends-on): Likewise.
54696         * modules/vasnprintf-posix (Depends-on): Likewise.
54697         * modules/vasprintf-posix (Depends-on): Likewise.
54698         * modules/vfprintf-posix (Depends-on): Likewise.
54699         * modules/vsnprintf-posix (Depends-on): Likewise.
54700         * modules/vsprintf-posix (Depends-on): Likewise.
54701         * doc/functions/fprintf.texi: Update.
54702         * doc/functions/printf.texi: Update.
54703         * doc/functions/snprintf.texi: Update.
54704         * doc/functions/sprintf.texi: Update.
54705         * doc/functions/vfprintf.texi: Update.
54706         * doc/functions/vprintf.texi: Update.
54707         * doc/functions/vsnprintf.texi: Update.
54708         * doc/functions/vsprintf.texi: Update.
54709
54710 2007-11-03  Bruno Haible  <bruno@clisp.org>
54711
54712         * modules/frexp-nolibm-tests: New file.
54713
54714         * modules/frexp-nolibm: New file.
54715         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54716
54717 2007-11-03  Bruno Haible  <bruno@clisp.org>
54718
54719         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54720         value is C99 compliant.
54721         Needed for OSF/1 5.1.
54722
54723 2007-11-03  Bruno Haible  <bruno@clisp.org>
54724
54725         Fix out-of-memory handling of vasnprintf.
54726         * lib/printf-parse.c: Include <errno.h>.
54727         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54728         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54729         is already set.
54730
54731 2007-11-02  Eric Blake  <ebb9@byu.net>
54732
54733         Fix tests on cygwin.
54734         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54735
54736 2007-11-01  Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54739         warning.
54740         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54741         needed for POSIX compatibility.
54742
54743 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54744
54745         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54746         for compatibility with GNU.
54747
54748 2007-11-01  Bruno Haible  <bruno@clisp.org>
54749
54750         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54751         (putenv): Renamed from rpl_putenv. Change argument type from
54752         'const char *' to 'char *'.
54753         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54754         of defining putenv in config.h, just set REPLACE_PUTENV.
54755         * modules/putenv (Depends-on): Add stdlib.
54756         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54757         (Include): Use <stdlib.h>.
54758         * lib/stdlib.in.h (putenv): New declaration.
54759         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54760         REPLACE_PUTENV.
54761         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54762         REPLACE_PUTENV.
54763         Needed for MacOS X 10.5.0.
54764         Reported by Peter O'Gorman <peter@pogma.com>.
54765
54766 2007-11-01  Jim Meyering  <meyering@redhat.com>
54767
54768         Treat an empty date string exactly like "0".
54769         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54770         if the remaining date string (to be parsed) is empty, use "0".
54771         Reported by Mischa Molhoek and discussed in this thread:
54772         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54773
54774 2007-10-31  Bruno Haible  <bruno@clisp.org>
54775
54776         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54777         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54778         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54779         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54780         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54781         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54782
54783 2007-10-31  Bruno Haible  <bruno@clisp.org>
54784
54785         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54786         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54787         (AC_TYPE_LONG_LONG_INT): Use it.
54788         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54789         it as well.
54790         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54791         to m4/longlong.m4.
54792         * modules/stdint (Files): Remove m4/ulonglong.m4.
54793         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54794         m4/ulonglong.m4.
54795         * modules/strtoumax (Files): Likewise.
54796
54797 2007-10-30  Bruno Haible  <bruno@clisp.org>
54798
54799         * modules/xvasprintf-posix: New file.
54800         Suggested by Eric Blake.
54801
54802 2007-10-30  Bruno Haible  <bruno@clisp.org>
54803
54804         * modules/xprintf-posix-tests: New file.
54805         * tests/test-xprintf-posix.sh: New file.
54806         * tests/test-xprintf-posix.c: New file.
54807         * tests/test-xfprintf-posix.c: New file.
54808
54809         * modules/xprintf-posix: New file.
54810
54811 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54812
54813         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54814         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54815         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54816
54817 2007-10-29  Bruno Haible  <bruno@clisp.org>
54818
54819         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54820         contain the special marker '_cv_'.
54821         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54822         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54823         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54824         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54825         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54826         Reported by Ralf Wildenhues.
54827
54828 2007-10-29  Bruno Haible  <bruno@clisp.org>
54829
54830         * gnulib-tool (func_import): When --lgpl is not specified, set
54831         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54832         GPLv3.
54833         Reported by Simon Josefsson.
54834
54835 2007-10-28  Bruno Haible  <bruno@clisp.org>
54836
54837         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54838         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54839         HAVE_DECL_ISFINITE.
54840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54841         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54842         HAVE_DECL_ISFINITE.
54843
54844 2007-10-28  Bruno Haible  <bruno@clisp.org>
54845
54846         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54847         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54848
54849 2007-10-28  Bruno Haible  <bruno@clisp.org>
54850
54851         Fix link errors with Sun C 5.0 on Solaris 10.
54852         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54853         function is declared but not present in the compiler's libm.
54854         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54855         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54856         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54857         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54858         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54859         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54860         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54862         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54863         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54864         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54865         HAVE_DECL_FLOORL.
54866
54867 2007-10-28  Bruno Haible  <bruno@clisp.org>
54868
54869         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54870         gl_FUNC_FLOORL. Cache the result.
54871         (gl_FUNC_FLOORL): Use it.
54872         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54873         gl_FUNC_CEILL. Cache the result.
54874         (gl_FUNC_CEILL): Use it.
54875
54876         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54877         gl_FUNC_FLOOR. Cache the result.
54878         (gl_FUNC_FLOOR): Use it.
54879         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54880         gl_FUNC_CEIL. Cache the result.
54881         (gl_FUNC_CEIL): Use it.
54882
54883         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54884         gl_FUNC_FLOORF. Cache the result.
54885         (gl_FUNC_FLOORF): Use it.
54886         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54887         gl_FUNC_CEILF. Cache the result.
54888         (gl_FUNC_CEILF): Use it.
54889
54890 2007-10-28  Bruno Haible  <bruno@clisp.org>
54891
54892         * gnulib-tool: Allow specifying the LGPL version number through
54893         --lgpl=2 or --lgpl=3.
54894         (func_usage): Document --lgpl with argument.
54895         Handle --lgpl=... arguments.
54896         (func_import): Recognize also gl_LGPL calls with an argument. When
54897         --lgpl=2 is used and the module's license is just LGPL, report an
54898         error. Set sed_transform_lib_file according to the lgpl variable. In
54899         the generated files, use --lgpl or gl_LGPL invocations with argument,
54900         if necessary.
54901         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54902         an LGPv2+ license.
54903         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54904         gl_LGPL macro.
54905
54906 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54907             Bruno Haible  <bruno@clisp.org>
54908
54909         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54910         (u16_uctomb_aux): Likewise.
54911         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54912         !HAVE_INLINE.
54913         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54914
54915 2007-10-28  Bruno Haible  <bruno@clisp.org>
54916
54917         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54918         Invoke AM_GETTEXT_OPTION if it exists.
54919         * modules/vasprintf: Likewise.
54920         * modules/verror: Likewise.
54921         * modules/xprintf: Likewise.
54922         * modules/xvasprintf: Likewise.
54923
54924 2007-10-27  Ben Pfaff  <blp@gnu.org>
54925
54926         * lib/math.in.h: Define isfinite macro and prototypes for
54927         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54928         implementations.
54929         * m4/math_h.m4: New substitutions for isfinite module.
54930         * lib/isfinite.c: New file.
54931         * m4/isfinite.m4: New file.
54932         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54933         * modules/isfinite: New file.
54934         * modules/isfinite-tests: New file.
54935         * tests/tests-isfinite.c: New file.
54936         * doc/functions/isfinite.texi: Mention isfinite module.
54937         * MODULES.html.sh: Mention new module.
54938
54939 2007-10-27  Ben Pfaff  <blp@gnu.org>
54940
54941         Ralf Wildenhues reported that Tru64 4.0D declares the round
54942         functions but does not have definitions.
54943         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54944         cannot be found in any library, set the output variable to
54945         "missing" instead of "".
54946         * m4/round.m4: Also use our substitute if we cannot find round in
54947         any library, even if it is declared.
54948         * m4/roundf.m4: Likewise for roundf.
54949         * m4/roundl.m4: Likewise for roundl.
54950         * lib/math.in.h: Undefine roundf, round, roundl before defining
54951         their replacements, to allow for hypothetical systems where these
54952         may be defined as macros but not available in libraries.
54953
54954 2007-10-27  Bruno Haible  <bruno@clisp.org>
54955
54956         * doc/gnulib.texi: Invoke @firstparagraphindent.
54957         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54958         changes in gnulib.
54959         (Source changes): New section.
54960
54961 2007-10-26  Bruno Haible  <bruno@clisp.org>
54962
54963         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54964         borrowed from autoconf.
54965
54966 2007-10-26  Bruno Haible  <bruno@clisp.org>
54967
54968         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54969         strerror returned the empty string. Needed on HP-UX 11.00.
54970
54971 2007-10-24  Micah Cowan  <micah@cowan.name>
54972
54973         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54974         * build-aux/bootstrap: Remove support for now-unnecessary option,
54975         --cvs-user, and envvars CVS_USER, CVS_RSH.
54976
54977 2007-10-24  Jim Meyering  <meyering@redhat.com>
54978
54979         Avoid diagnostics from sha1sum when there is no cached checksum.
54980         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54981         if the po.s1 file hasn't been created yet.
54982
54983         * build-aux/bootstrap: Sync from coreutils:
54984         2007-10-24  Jim Meyering  <meyering@redhat.com>
54985         Get gnulib from the git repository, not from an obsolete cvs one.
54986         * build-aux/bootstrap: Suggestion from Micah Cowan.
54987         2007-10-04  Jim Meyering  <jim@meyering.net>
54988         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54989         (update_po_files): Work also when there are no .po files in po/.
54990
54991 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54992
54993         * README: Append ".git" to git and cg examples.
54994         Problem reported by Benoit Sigoure.
54995
54996 2007-10-23  Micah Cowan  <micah@cowan.name>
54997
54998         * users.txt: Add wget.
54999
55000 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55001
55002         Fix linking of some unistdio tests on FreeBSD.
55003         * modules/unistdio/u16-vsnprintf-tests
55004         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55005         * modules/unistdio/u16-vsprintf-tests
55006         (test_u16_vsnprintf1_LDADD): Likewise.
55007         * modules/unistdio/u32-vsnprintf-tests
55008         (test_u32_vsnprintf1_LDADD): Likewise.
55009         * modules/unistdio/u32-vsprintf-tests
55010         (test_u32_vsprintf1_LDADD): Likewise.
55011         * modules/unistdio/u8-vsnprintf-tests
55012         (test_u8_vsnprintf1_LDADD): Likewise.
55013         * modules/unistdio/u8-vsprintf-tests
55014         (test_u8_vsprintf1_LDADD): Likewise.
55015         * modules/unistdio/ulc-vsnprintf-tests
55016         (test_ulc_vsnprintf1_LDADD): Likewise.
55017         * modules/unistdio/ulc-vsprintf-tests
55018         (test_ulc_vsprintf1_LDADD): Likewise.
55019
55020         Fix linking of some uniconv tests on FreeBSD.
55021         * modules/uniconv/u16-conv-from-enc-tests
55022         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55023         * modules/uniconv/u16-conv-to-enc-tests
55024         (test_u16_conv_to_enc_LDADD): Likewise.
55025         * modules/uniconv/u16-strconv-from-enc-tests
55026         (test_u16_strconv_from_enc_LDADD): Likewise.
55027         * modules/uniconv/u16-strconv-to-enc-tests
55028         (test_u16_strconv_to_enc_LDADD): Likewise.
55029         * modules/uniconv/u32-conv-from-enc-tests
55030         (test_u32_conv_from_enc_LDADD): Likewise.
55031         * modules/uniconv/u32-conv-to-enc-tests
55032         (test_u32_conv_to_enc_LDADD): Likewise.
55033         * modules/uniconv/u32-strconv-from-enc-tests
55034         (test_u32_strconv_from_enc_LDADD): Likewise.
55035         * modules/uniconv/u32-strconv-to-enc-tests
55036         (test_u32_strconv_to_enc_LDADD): Likewise.
55037         * modules/uniconv/u8-conv-from-enc-tests
55038         (test_u8_conv_from_enc_LDADD): Likewise.
55039         * modules/uniconv/u8-conv-to-enc-tests
55040         (test_u8_conv_to_enc_LDADD): Likewise.
55041         * modules/uniconv/u8-strconv-from-enc-tests
55042         (test_u8_strconv_from_enc_LDADD): Likewise.
55043         * modules/uniconv/u8-strconv-to-enc-tests
55044         (test_u8_strconv_to_enc_LDADD): Likewise.
55045
55046 2007-10-22  Bruno Haible  <bruno@clisp.org>
55047
55048         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55049         size.
55050
55051 2007-10-22  Eric Blake  <ebb9@byu.net>
55052
55053         Tweak x*printf documentation.
55054         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55055         variable name and comments.
55056         Suggested by Bruno Haible.
55057
55058 2007-10-22  Bruno Haible  <bruno@clisp.org>
55059
55060         * lib/acl.c (copy_acl): Fix file name in comment.
55061
55062 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55063
55064         Fix Tru64 problem with stdbool.h.
55065         * lib/stdbool.in.h (false, true):
55066         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55067         Don't declare as an enum in this situation; it runs afoul of Tru64.
55068         Problem reported by Steven M. Schweda in
55069         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55070
55071 2007-10-22  Eric Blake  <ebb9@byu.net>
55072
55073         Also wrap vf?printf.
55074         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55075         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55076         (xvprintf, xvfprintf): New functions.
55077
55078 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55079
55080         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55081         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55082
55083         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55084         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55085
55086 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55087
55088         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55089         by Bruno Haible.
55090
55091 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55092
55093         * lib/getloadavg.c
55094         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55095         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55096
55097         * tests/test-i-ring.c: Work for C89.
55098
55099 2007-10-22  Bruno Haible  <bruno@clisp.org>
55100
55101         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55102         -1u, in preprocessor expression, so that we don't test for the bug
55103         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55104         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55105
55106 2007-10-22  Eric Blake  <ebb9@byu.net>
55107
55108         * tests/test-yesno.sh: Silence stderr during test.
55109
55110 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55111
55112         * modules/crypto/gc-camellia: New file.
55113
55114         * m4/gc-camellia.m4: New file.
55115
55116         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55117
55118         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55119
55120 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55121
55122         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55123         --help to stdout.  Reported by sms@antinode.org (Steven
55124         M. Schweda).
55125
55126 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55127
55128         * users.txt: Fix link to libksba.
55129
55130 2007-10-21  Ben Pfaff  <blp@gnu.org>
55131
55132         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55133         round.c roundf implementation that depends on floorf and ceilf to
55134         be tested unconditionally.
55135
55136 2007-10-21  Ben Pfaff  <blp@gnu.org>
55137
55138         * m4/check-libm-func.m4: Removed.
55139         * m4/check-math-lib.m4: New file.
55140         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55141         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55142         definition and lack of AC_LIBOBJ([roundf]).
55143         * m4/roundl.m4: Ditto, and similarly for roundl.
55144         * modules/round: Reference new m4 file.
55145         * modules/roundf: Ditto.
55146         * modules/roundl: Ditto.
55147         * tests/test-round2.c (main): Use ROUND instead of round.
55148         Bug report from Bruno Haible.
55149
55150 2007-10-21  Bruno Haible  <bruno@clisp.org>
55151
55152         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55153         context.
55154
55155 2007-10-21  Bruno Haible  <bruno@clisp.org>
55156
55157         * tests/test-wcwidth.c (main): Allow negative result for some control
55158         characters.
55159
55160         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55161         Needed on OSF/1 5.1.
55162
55163 2007-10-21  Bruno Haible  <bruno@clisp.org>
55164
55165         * tests/test-floorf1.c: Include isnanf.h.
55166         (main): Use isnanf() instead of isnan().
55167         * tests/test-ceilf1.c: Include isnanf.h.
55168         (main): Use isnanf() instead of isnan().
55169         * tests/test-truncf1.c: Include isnanf.h.
55170         (main): Use isnanf() instead of isnan().
55171         * tests/test-roundf1.c: Include isnanf.h.
55172         (main): Use isnanf() instead of isnan().
55173
55174 2007-10-21  Eric Blake  <ebb9@byu.net>
55175
55176         * users.txt: Update URL for m4.
55177
55178 2007-10-21  Bruno Haible  <bruno@clisp.org>
55179
55180         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55181
55182 2007-10-21  Bruno Haible  <bruno@clisp.org>
55183
55184         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55185         Git's management files if the CVS files are not present.
55186
55187 2007-10-20  Bruno Haible  <bruno@clisp.org>
55188
55189         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55190         gcc-3.4.x.
55191
55192 2007-10-20  Ben Pfaff  <blp@gnu.org>
55193
55194         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55195         implementations.
55196         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55197         * lib/round.c: New file.
55198         * lib/roundf.c: New file.
55199         * lib/roundl.c: New file.
55200         * m4/round.m4: New file.
55201         * m4/roundf.m4: New file.
55202         * m4/roundl.m4: New file.
55203         * m4/check-libm-func-m4: New file.
55204         * modules/math: Replace round, roundf, roundl related @VARS@ in
55205         math.in.h.
55206         * modules/round: New file.
55207         * modules/round-tests: New file.
55208         * modules/roundf: New file.
55209         * modules/roundf-tests: New file.
55210         * modules/roundl: New file.
55211         * modules/roundl-tests: New file.
55212         * tests/test-round1.c: New file.
55213         * tests/test-round2.c: New file.
55214         * tests/test-roundf1.c: New file.
55215         * tests/test-roundf2.c: New file.
55216         * tests/test-roundl.c: New file.
55217         * doc/functions/round.texi: Mention round module.
55218         * doc/functions/roundf.texi: Mention roundf module.
55219         * doc/functions/roundl.texi: Mention roundl module.
55220         * MODULES.html.sh: Mention new modules.
55221         Thanks to Bruno Haible for suggestions.
55222
55223 2007-10-20  Jim Meyering  <meyering@redhat.com>
55224
55225         * lib/xprintf.c: Include <config.h> unconditionally.
55226
55227         Change xprintf's license to GPL.
55228         * modules/xprintf (License): s/LGPL/GPL/, since this module
55229         depends on modules (exit and exitfail) which are GPL.
55230         Suggestion from Bruno Haible.
55231
55232         xprintf fixes.
55233         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55234         Use a clearer diagnostic.
55235         Patch from Bruno Haible.
55236
55237 2007-10-20  Bruno Haible  <bruno@clisp.org>
55238
55239         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55240         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55241         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55242
55243 2007-10-20  Bruno Haible  <bruno@clisp.org>
55244
55245         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55246         precision in the comparison result > x - 1 or similar.
55247         * tests/test-ceilf2.c (correct_result_p): Likewise.
55248         * tests/test-truncf2.c (correct_result_p): Likewise.
55249         * tests/test-trunc2.c (correct_result_p): Likewise.
55250         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55251
55252 2007-10-20  Bruno Haible  <bruno@clisp.org>
55253
55254         * modules/ceil: New file.
55255         * m4/ceil.m4: New file.
55256         * doc/functions/ceil.texi: Mention the 'ceil' module.
55257
55258 2007-10-20  Bruno Haible  <bruno@clisp.org>
55259
55260         * modules/floor: New file.
55261         * m4/floor.m4: New file.
55262         * doc/functions/floor.texi: Mention the 'floor' module.
55263
55264 2007-10-20  Bruno Haible  <bruno@clisp.org>
55265
55266         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55267         of %a.
55268         * modules/floorf-tests (Depends-on): Likewise.
55269         * modules/truncf-tests (Depends-on): Likewise.
55270         * modules/trunc-tests (Depends-on): Likewise.
55271         Reported by Ben Pfaff.
55272
55273 2007-10-19  Jim Meyering  <meyering@redhat.com>
55274
55275         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55276         Don't bother testing specific errno values.  Just test ferror.
55277
55278         New module: xprintf
55279         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55280
55281 2007-10-19  Bruno Haible  <bruno@clisp.org>
55282
55283         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55284         syntax.
55285         * modules/javaexec (Makefile.am): Likewise.
55286         * modules/relocatable-prog (Makefile.am): Likewise.
55287         Suggested by Jim Meyering.
55288
55289 2007-10-18  Bruno Haible  <bruno@clisp.org>
55290
55291         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55292         Reported by Jim Meyering.
55293
55294 2007-10-18  Eric Blake  <ebb9@byu.net>
55295
55296         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55297
55298 2007-10-18  Bruno Haible  <bruno@clisp.org>
55299
55300         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55301         the format string into writable memory. Needed in Fortify conditions.
55302
55303 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55304             Bruno Haible  <bruno@clisp.org>
55305
55306         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55307         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55308         * modules/trim (Depends-on): Add mbchar.
55309         (configure.ac): Add gl_FUNC_MBRTOWC.
55310         (Makefile.am): Augment lib_SOURCES.
55311
55312 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55313
55314         Modify glob.c to use fstatat and dirfd, to simplify it.
55315         Suggested by Eric Blake.
55316         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55317         Don't include <stdbool.h>; not used.
55318         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55319         (link_exists_p): Simplify implementation, since we can now assume
55320         dirfd and fstatat.
55321         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55322
55323 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55324
55325         * gnulib-tool (func_get_dependencies): Fix sed script to
55326         match only tests.
55327
55328 2007-10-17  Bruno Haible  <bruno@clisp.org>
55329
55330         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55331         allow locale names without encoding suffix.
55332         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55333         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55334
55335 2007-10-16  Bruno Haible  <bruno@clisp.org>
55336
55337         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55338         * lib/getgroups.c (getgroups): Likewise.
55339         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55340
55341 2007-10-16  Bruno Haible  <bruno@clisp.org>
55342
55343         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55344         * modules/malloc-posix (License): Likewise.
55345         * modules/realloc-posix (License): Likewise.
55346         * modules/calloc-posix (License): Likewise.
55347         * modules/intprops (License): Change from GPL to LGPL, with
55348         Paul Eggert's approval.
55349
55350 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55351
55352         Merge glibc changes into lib/glob.c.
55353
55354         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55355         2007-10-15 04:59:03 UTC.  Here are the changes:
55356
55357         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55358
55359         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55360
55361         * lib/glob.c: Add some branch prediction throughout.
55362
55363         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55364
55365         [BZ #5103]
55366         * lib/glob.c (glob): Recognize patterns starting \/.
55367
55368         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55369
55370         [BZ #3996]
55371         * lib/glob.c (attribute_hidden): Define if not defined.
55372         (glob): Unescape dirname, filename or username when needed and not
55373         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55374         is NULL.  Handle unescaped [ in pattern without closing ].
55375         Don't pass GLOB_CHECK down to recursive glob for directories.
55376         (__glob_pattern_type): New function.
55377         (__glob_pattern_p): Implement using __glob_pattern_type.
55378         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55379         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55380         Remove unreachable code.
55381
55382         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55383
55384         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55385         explain why there are no leaks.
55386
55387         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55388
55389         [BZ #3253]
55390         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55391         time, rather allocate increasingly bigger arrays of pointers, if
55392         possible with alloca, if too large with malloc.
55393
55394 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55395
55396         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55397         Problem reported by H.Merijn Brand in
55398         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55399         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55400         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55401
55402 2007-10-15  Bruno Haible  <bruno@clisp.org>
55403
55404         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55405         with explicit rpl_ prefix.
55406         * lib/fopen.c (fopen): Likewise.
55407         * lib/freopen.c (freopen): Likewise.
55408         * lib/iconv.c (iconv): Likewise.
55409         * lib/iconv_close.c (iconv_close): Likewise.
55410
55411 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55412
55413         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55414
55415 2007-10-15  Bruno Haible  <bruno@clisp.org>
55416
55417         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55418         <stddef.h> instead of <stdlib.h> since we only need NULL.
55419         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55420
55421 2007-10-15  Bruno Haible  <bruno@clisp.org>
55422
55423         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55424         Replace paragraph talking about LIBOBJS.
55425         Reported by Colin Watson <cjwatson@debian.org>.
55426
55427 2007-10-15  Bruno Haible  <bruno@clisp.org>
55428
55429         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55430         <stdlib.h> before using NULL.
55431
55432 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55433
55434         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55435         Reported by Albert Chin <china@thewrittenword.com>.
55436
55437 2007-10-14  Bruno Haible  <bruno@clisp.org>
55438
55439         * modules/iconv_open-utf-tests: New file.
55440         * tests/test-iconv-utf.c: New file.
55441
55442         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55443         * modules/iconv_open-utf: New file.
55444         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55445         (iconv, iconv_close): New declarations.
55446         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55447         be defined.
55448         (iconv_open): Add special handling of conversion between UTF-8 and
55449         UTF-{16,32}{BE,LE}.
55450         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55451         * lib/iconv_close.c: New file.
55452         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55453         gl_FUNC_ICONV_OPEN.
55454         (gl_FUNC_ICONV_OPEN): Use it.
55455         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55456         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55457         and REPLACE_ICONV_UTF.
55458         * modules/iconv_open (Depends-on): Add c-strcase.
55459         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55460         ICONV_CONST.
55461         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55462
55463 2007-10-13  Albert Chin  <china@thewrittenword.com>
55464             Bruno Haible  <bruno@clisp.org>
55465
55466         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55467         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55468
55469 2007-10-13  Bruno Haible  <bruno@clisp.org>
55470
55471         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55472         defined, use the ISO C99 inline semantics.
55473         * lib/argp.h (ARGP_EI): Likewise.
55474
55475 2007-10-13  Bruno Haible  <bruno@clisp.org>
55476
55477         Handle 'inline' change in gcc 4.3.0.
55478         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55479         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55480         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55481         argp_fmtstream_point): Disable 'extern' declaration if the function
55482         definition is going to be provided inline.
55483         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55484         semantics, not the ISO C99 inline semantics.
55485         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55486         'extern' declaration if the function definition is going to be provided
55487         inline.
55488         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55489         the GNU C inline semantics, not the ISO C99 inline semantics. With
55490         GCC 4.2, avoid a warning.
55491
55492 2007-10-13  Bruno Haible  <bruno@clisp.org>
55493
55494         * lib/freading.h (freading): Enable the use of __freading for
55495         glibc >= 2.7.
55496         * lib/freading.c (freading): Likewise.
55497
55498 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55499
55500         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55501         "warning: C99 inline functions are not supported; using GNU89".
55502
55503 2007-10-12  Bruno Haible  <bruno@clisp.org>
55504
55505         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55506         of 2.
55507         * tests/test-ceilf2.c: New file.
55508         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55509
55510         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55511         * modules/ceilf-tests: Update.
55512
55513 2007-10-12  Bruno Haible  <bruno@clisp.org>
55514
55515         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55516         of 2.
55517         * tests/test-floorf2.c: New file.
55518         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55519
55520         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55521         * modules/floorf-tests: Update.
55522
55523 2007-10-12  Bruno Haible  <bruno@clisp.org>
55524
55525         * tests/test-trunc2.c: New file.
55526         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55527
55528         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55529         * modules/trunc-tests: Update.
55530
55531 2007-10-12  Bruno Haible  <bruno@clisp.org>
55532
55533         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55534         of 2.
55535         * tests/test-truncf2.c: New file.
55536         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55537
55538         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55539         * modules/truncf-tests: Update.
55540
55541 2007-10-11  Eric Blake  <ebb9@byu.net>
55542
55543         Don't claim strerror is broken on Interix.
55544         * doc/functions/strerror.texi (strerror): Known broken systems are
55545         now Solaris 8, and not Interix.
55546         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55547         Interix on cross-compile.
55548         Reported by Martin Koeppe in
55549         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55550
55551 2007-10-11  Bruno Haible  <bruno@clisp.org>
55552
55553         * modules/i-ring-tests: New file.
55554         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55555         instead of assert.
55556
55557 2007-10-11  Bruno Haible  <bruno@clisp.org>
55558
55559         * modules/filenamecat-tests: New file.
55560         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55561         * lib/filenamecat.c: Remove test code.
55562
55563 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55564
55565         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55566
55567         * lib/strerror.c: Include <string.h> always, to test interface,
55568         and to remove the need for the dummy.
55569         Include intprops.h to compute width instead of doing it ourselves
55570         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55571         (strerror): Define it to return NULL if there's no system strerror.
55572         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55573         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55574         ancient pre-strerror Unix systems well any more.  Saying "unknown
55575         system error" is enough.
55576         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55577         simpler strerror.c implementation.
55578         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55579         Simplify the tests to reflect the simpler strerror implementation.
55580         * modules/strerror (Depends-on): Add intprops.
55581
55582 2007-10-09  Eric Blake  <ebb9@byu.net>
55583
55584         Silence test-fpending.
55585         * modules/fpending-tests (Files): Add wrapper script.
55586         * tests/test-fpending.sh: New file.
55587
55588 2007-10-09  Bruno Haible  <bruno@clisp.org>
55589
55590         * MODULES.html.sh (func_module): Don't create a hyperlink for
55591         function names like 'printf_frexp'.
55592         (Misc): Add crc, memxor.
55593         (Characteristics of floating types): New section.
55594         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55595         isnanf-nolibm, signbit, trunc, truncf, truncl.
55596         (Enhancements for ISO C 99 functions): New subsection Input/output.
55597         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55598         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55599         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55600         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55601         (Enhancements for POSIX:2001 functions): Add chdir-long.
55602         (File system functions): Add areadlink, chdir-safer, read-file.
55603         Remove cycle-check.
55604         (File system as inode set): New section.
55605         (Date and time): Add gethrxtime.
55606         (Multithreading): Add openmp.
55607         (Internationalization functions): Add localename.
55608         (Unicode string functions): Add unistr/u*-mbsnlen.
55609         (Support for maintaining and releasing projects): Add git-version-gen.
55610         (Lone files): Remove directories.
55611
55612 2007-10-08  Ben Pfaff  <blp@gnu.org>
55613
55614         * lib/xmalloca.h: Fix typo in comment.
55615
55616 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55617
55618         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55619         when avoiding problems with integer overflow.  Use a portable test
55620         instead.
55621
55622 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55623
55624         * modules/dummy (License): Change to LGPLv2+.
55625         * modules/float (License): Likewise
55626         * modules/realloc (License): Likewise
55627         * modules/stdlib (License): Likewise
55628
55629 2007-10-07  Bruno Haible  <bruno@clisp.org>
55630
55631         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55632         * floor.c (TWO_MANT_DIG): Likewise.
55633         * ceil.c (TWO_MANT_DIG): Likewise.
55634         Reported by Ben Pfaff.
55635
55636 2007-10-07  Bruno Haible  <bruno@clisp.org>
55637
55638         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55639         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55640         * lib/frexp.c (FUNC): Likewise.
55641         * lib/printf-frexp.h (printf_frexp): Likewise.
55642         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55643         * lib/printf-frexp.c (FUNC): Likewise.
55644         Suggested by Jim Meyering.
55645
55646 2007-10-07  Jim Meyering  <meyering@redhat.com>
55647
55648         Make xnanosleep's integer overflow test more robust.
55649         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55650         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55651
55652 2007-10-07  Bruno Haible  <bruno@clisp.org>
55653
55654         * NEWS: Mention the license change.
55655
55656         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55657         abbreviations in the modules files.
55658
55659         Change copyright notice from GPLv2+ to GPLv3+.
55660         * README: Change copyright notice.
55661         * MODULES.html.sh: Likewise.
55662         * build-aux/bootstrap.conf: Likewise.
55663         * build-aux/config.libpath: Likewise.
55664         * build-aux/csharpcomp.sh.in: Likewise.
55665         * build-aux/csharpexec.sh.in: Likewise.
55666         * build-aux/install-reloc: Likewise.
55667         * build-aux/javacomp.sh.in: Likewise.
55668         * build-aux/javaexec.sh.in: Likewise.
55669         * build-aux/ldd.sh.in: Likewise.
55670         * build-aux/reloc-ldflags: Likewise.
55671         * build-aux/relocatable.sh.in: Likewise.
55672         * build-aux/x-to-1.in: Likewise.
55673         * check-module: Likewise.
55674         * config/srclistvars.sh: Likewise.
55675         * gnulib-tool: Likewise.
55676         * lib/acl-internal.h: Likewise.
55677         * lib/acl.c: Likewise.
55678         * lib/acl.h: Likewise.
55679         * lib/acl_entries.c: Likewise.
55680         * lib/areadlink-with-size.c: Likewise.
55681         * lib/areadlink.c: Likewise.
55682         * lib/areadlink.h: Likewise.
55683         * lib/argmatch.c: Likewise.
55684         * lib/argmatch.h: Likewise.
55685         * lib/argp-ba.c: Likewise.
55686         * lib/argp-eexst.c: Likewise.
55687         * lib/argp-fmtstream.c: Likewise.
55688         * lib/argp-fmtstream.h: Likewise.
55689         * lib/argp-fs-xinl.c: Likewise.
55690         * lib/argp-help.c: Likewise.
55691         * lib/argp-namefrob.h: Likewise.
55692         * lib/argp-parse.c: Likewise.
55693         * lib/argp-pin.c: Likewise.
55694         * lib/argp-pv.c: Likewise.
55695         * lib/argp-pvh.c: Likewise.
55696         * lib/argp-xinl.c: Likewise.
55697         * lib/argp.h: Likewise.
55698         * lib/at-func.c: Likewise.
55699         * lib/atanl.c: Likewise.
55700         * lib/backupfile.c: Likewise.
55701         * lib/backupfile.h: Likewise.
55702         * lib/basename.c: Likewise.
55703         * lib/binary-io.h: Likewise.
55704         * lib/byteswap.in.h: Likewise.
55705         * lib/c-stack.c: Likewise.
55706         * lib/c-stack.h: Likewise.
55707         * lib/c-strcasestr.c: Likewise.
55708         * lib/c-strcasestr.h: Likewise.
55709         * lib/c-strstr.c: Likewise.
55710         * lib/c-strstr.h: Likewise.
55711         * lib/c-strtod.c: Likewise.
55712         * lib/calloc.c: Likewise.
55713         * lib/canon-host.c: Likewise.
55714         * lib/canon-host.h: Likewise.
55715         * lib/canonicalize-lgpl.c: Likewise.
55716         * lib/canonicalize.c: Likewise.
55717         * lib/canonicalize.h: Likewise.
55718         * lib/ceil.c: Likewise.
55719         * lib/ceilf.c: Likewise.
55720         * lib/ceill.c: Likewise.
55721         * lib/chdir-long.c: Likewise.
55722         * lib/chdir-long.h: Likewise.
55723         * lib/chdir-safer.c: Likewise.
55724         * lib/chdir-safer.h: Likewise.
55725         * lib/chown.c: Likewise.
55726         * lib/classpath.c: Likewise.
55727         * lib/classpath.h: Likewise.
55728         * lib/clean-temp.c: Likewise.
55729         * lib/clean-temp.h: Likewise.
55730         * lib/cloexec.c: Likewise.
55731         * lib/close-stream.c: Likewise.
55732         * lib/closein.c: Likewise.
55733         * lib/closein.h: Likewise.
55734         * lib/closeout.c: Likewise.
55735         * lib/closeout.h: Likewise.
55736         * lib/concat-filename.c: Likewise.
55737         * lib/copy-file.c: Likewise.
55738         * lib/copy-file.h: Likewise.
55739         * lib/count-one-bits.h: Likewise.
55740         * lib/crc.c: Likewise.
55741         * lib/crc.h: Likewise.
55742         * lib/creat-safer.c: Likewise.
55743         * lib/csharpcomp.c: Likewise.
55744         * lib/csharpcomp.h: Likewise.
55745         * lib/csharpexec.c: Likewise.
55746         * lib/csharpexec.h: Likewise.
55747         * lib/cycle-check.c: Likewise.
55748         * lib/cycle-check.h: Likewise.
55749         * lib/diacrit.c: Likewise.
55750         * lib/diacrit.h: Likewise.
55751         * lib/diffseq.h: Likewise.
55752         * lib/dirchownmod.c: Likewise.
55753         * lib/dirent.in.h: Likewise.
55754         * lib/dirfd.c: Likewise.
55755         * lib/dirfd.h: Likewise.
55756         * lib/dirname.c: Likewise.
55757         * lib/dirname.h: Likewise.
55758         * lib/dummy.c: Likewise.
55759         * lib/dup-safer.c: Likewise.
55760         * lib/dup2.c: Likewise.
55761         * lib/eealloc.h: Likewise.
55762         * lib/error.c: Likewise.
55763         * lib/error.h: Likewise.
55764         * lib/euidaccess.c: Likewise.
55765         * lib/exclude.c: Likewise.
55766         * lib/exclude.h: Likewise.
55767         * lib/execute.c: Likewise.
55768         * lib/execute.h: Likewise.
55769         * lib/exitfail.c: Likewise.
55770         * lib/exitfail.h: Likewise.
55771         * lib/expl.c: Likewise.
55772         * lib/fatal-signal.c: Likewise.
55773         * lib/fatal-signal.h: Likewise.
55774         * lib/fbufmode.c: Likewise.
55775         * lib/fbufmode.h: Likewise.
55776         * lib/fchdir.c: Likewise.
55777         * lib/fchmodat.c: Likewise.
55778         * lib/fchownat.c: Likewise.
55779         * lib/fcntl--.h: Likewise.
55780         * lib/fcntl-safer.h: Likewise.
55781         * lib/fcntl.in.h: Likewise.
55782         * lib/fd-safer.c: Likewise.
55783         * lib/fflush.c: Likewise.
55784         * lib/file-has-acl.c: Likewise.
55785         * lib/file-set.c: Likewise.
55786         * lib/file-type.c: Likewise.
55787         * lib/file-type.h: Likewise.
55788         * lib/fileblocks.c: Likewise.
55789         * lib/filemode.c: Likewise.
55790         * lib/filemode.h: Likewise.
55791         * lib/filename.h: Likewise.
55792         * lib/filenamecat.c: Likewise.
55793         * lib/filenamecat.h: Likewise.
55794         * lib/findprog.c: Likewise.
55795         * lib/findprog.h: Likewise.
55796         * lib/float.in.h: Likewise.
55797         * lib/floor.c: Likewise.
55798         * lib/floorf.c: Likewise.
55799         * lib/floorl.c: Likewise.
55800         * lib/fopen-safer.c: Likewise.
55801         * lib/fopen.c: Likewise.
55802         * lib/fpending.c: Likewise.
55803         * lib/fpending.h: Likewise.
55804         * lib/fprintf.c: Likewise.
55805         * lib/fprintftime.h: Likewise.
55806         * lib/fpucw.h: Likewise.
55807         * lib/fpurge.c: Likewise.
55808         * lib/fpurge.h: Likewise.
55809         * lib/freadable.c: Likewise.
55810         * lib/freadable.h: Likewise.
55811         * lib/freadahead.c: Likewise.
55812         * lib/freadahead.h: Likewise.
55813         * lib/freading.c: Likewise.
55814         * lib/freading.h: Likewise.
55815         * lib/free.c: Likewise.
55816         * lib/freopen.c: Likewise.
55817         * lib/frexp.c: Likewise.
55818         * lib/frexpl.c: Likewise.
55819         * lib/fseek.c: Likewise.
55820         * lib/fseterr.c: Likewise.
55821         * lib/fseterr.h: Likewise.
55822         * lib/fstatat.c: Likewise.
55823         * lib/fstrcmp.c: Likewise.
55824         * lib/fstrcmp.h: Likewise.
55825         * lib/fsusage.c: Likewise.
55826         * lib/fsusage.h: Likewise.
55827         * lib/ftell.c: Likewise.
55828         * lib/ftello.c: Likewise.
55829         * lib/fts-cycle.c: Likewise.
55830         * lib/fts.c: Likewise.
55831         * lib/fts_.h: Likewise.
55832         * lib/full-read.c: Likewise.
55833         * lib/full-read.h: Likewise.
55834         * lib/full-write.c: Likewise.
55835         * lib/full-write.h: Likewise.
55836         * lib/fwritable.c: Likewise.
55837         * lib/fwritable.h: Likewise.
55838         * lib/fwriteerror.c: Likewise.
55839         * lib/fwriteerror.h: Likewise.
55840         * lib/fwriting.c: Likewise.
55841         * lib/fwriting.h: Likewise.
55842         * lib/gcd.c: Likewise.
55843         * lib/gcd.h: Likewise.
55844         * lib/getcwd.c: Likewise.
55845         * lib/getdate.h: Likewise.
55846         * lib/getdate.y: Likewise.
55847         * lib/getdomainname.c: Likewise.
55848         * lib/getdomainname.h: Likewise.
55849         * lib/getgroups.c: Likewise.
55850         * lib/gethostname.c: Likewise.
55851         * lib/gethrxtime.c: Likewise.
55852         * lib/gethrxtime.h: Likewise.
55853         * lib/getloadavg.c: Likewise.
55854         * lib/getndelim2.c: Likewise.
55855         * lib/getndelim2.h: Likewise.
55856         * lib/getnline.c: Likewise.
55857         * lib/getnline.h: Likewise.
55858         * lib/getopt.c: Likewise.
55859         * lib/getopt.in.h: Likewise.
55860         * lib/getopt1.c: Likewise.
55861         * lib/getopt_int.h: Likewise.
55862         * lib/getpagesize.h: Likewise.
55863         * lib/getsubopt.c: Likewise.
55864         * lib/gettime.c: Likewise.
55865         * lib/getugroups.c: Likewise.
55866         * lib/getugroups.h: Likewise.
55867         * lib/getusershell.c: Likewise.
55868         * lib/gl_anyavltree_list1.h: Likewise.
55869         * lib/gl_anyavltree_list2.h: Likewise.
55870         * lib/gl_anyhash_list1.h: Likewise.
55871         * lib/gl_anyhash_list2.h: Likewise.
55872         * lib/gl_anylinked_list1.h: Likewise.
55873         * lib/gl_anylinked_list2.h: Likewise.
55874         * lib/gl_anyrbtree_list1.h: Likewise.
55875         * lib/gl_anyrbtree_list2.h: Likewise.
55876         * lib/gl_anytree_list1.h: Likewise.
55877         * lib/gl_anytree_list2.h: Likewise.
55878         * lib/gl_anytree_oset.h: Likewise.
55879         * lib/gl_anytreehash_list1.h: Likewise.
55880         * lib/gl_anytreehash_list2.h: Likewise.
55881         * lib/gl_array_list.c: Likewise.
55882         * lib/gl_array_list.h: Likewise.
55883         * lib/gl_array_oset.c: Likewise.
55884         * lib/gl_array_oset.h: Likewise.
55885         * lib/gl_avltree_list.c: Likewise.
55886         * lib/gl_avltree_list.h: Likewise.
55887         * lib/gl_avltree_oset.c: Likewise.
55888         * lib/gl_avltree_oset.h: Likewise.
55889         * lib/gl_avltreehash_list.c: Likewise.
55890         * lib/gl_avltreehash_list.h: Likewise.
55891         * lib/gl_carray_list.c: Likewise.
55892         * lib/gl_carray_list.h: Likewise.
55893         * lib/gl_linked_list.c: Likewise.
55894         * lib/gl_linked_list.h: Likewise.
55895         * lib/gl_linkedhash_list.c: Likewise.
55896         * lib/gl_linkedhash_list.h: Likewise.
55897         * lib/gl_list.c: Likewise.
55898         * lib/gl_list.h: Likewise.
55899         * lib/gl_oset.c: Likewise.
55900         * lib/gl_oset.h: Likewise.
55901         * lib/gl_rbtree_list.c: Likewise.
55902         * lib/gl_rbtree_list.h: Likewise.
55903         * lib/gl_rbtree_oset.c: Likewise.
55904         * lib/gl_rbtree_oset.h: Likewise.
55905         * lib/gl_rbtreehash_list.c: Likewise.
55906         * lib/gl_rbtreehash_list.h: Likewise.
55907         * lib/gl_sublist.c: Likewise.
55908         * lib/gl_sublist.h: Likewise.
55909         * lib/group-member.c: Likewise.
55910         * lib/group-member.h: Likewise.
55911         * lib/hard-locale.c: Likewise.
55912         * lib/hard-locale.h: Likewise.
55913         * lib/hash-pjw.c: Likewise.
55914         * lib/hash-pjw.h: Likewise.
55915         * lib/hash-triple.c: Likewise.
55916         * lib/hash.c: Likewise.
55917         * lib/hash.h: Likewise.
55918         * lib/human.c: Likewise.
55919         * lib/human.h: Likewise.
55920         * lib/i-ring.c: Likewise.
55921         * lib/i-ring.h: Likewise.
55922         * lib/idcache.c: Likewise.
55923         * lib/imaxabs.c: Likewise.
55924         * lib/imaxdiv.c: Likewise.
55925         * lib/inet_pton.c: Likewise.
55926         * lib/inet_pton.h: Likewise.
55927         * lib/intprops.h: Likewise.
55928         * lib/inttostr.c: Likewise.
55929         * lib/inttostr.h: Likewise.
55930         * lib/inttypes.in.h: Likewise.
55931         * lib/isapipe.c: Likewise.
55932         * lib/isdir.c: Likewise.
55933         * lib/isnan.c: Likewise.
55934         * lib/isnan.h: Likewise.
55935         * lib/isnanf.c: Likewise.
55936         * lib/isnanf.h: Likewise.
55937         * lib/isnanl-nolibm.h: Likewise.
55938         * lib/isnanl.c: Likewise.
55939         * lib/isnanl.h: Likewise.
55940         * lib/javacomp.c: Likewise.
55941         * lib/javacomp.h: Likewise.
55942         * lib/javaexec.c: Likewise.
55943         * lib/javaexec.h: Likewise.
55944         * lib/javaversion.c: Likewise.
55945         * lib/javaversion.h: Likewise.
55946         * lib/javaversion.java: Likewise.
55947         * lib/lbrkprop.h: Likewise.
55948         * lib/lchmod.h: Likewise.
55949         * lib/lchown.c: Likewise.
55950         * lib/ldexpl.c: Likewise.
55951         * lib/linebreak.c: Likewise.
55952         * lib/linebreak.h: Likewise.
55953         * lib/linebuffer.c: Likewise.
55954         * lib/linebuffer.h: Likewise.
55955         * lib/locale.in.h: Likewise.
55956         * lib/logl.c: Likewise.
55957         * lib/long-options.c: Likewise.
55958         * lib/long-options.h: Likewise.
55959         * lib/lstat.c: Likewise.
55960         * lib/lstat.h: Likewise.
55961         * lib/math.in.h: Likewise.
55962         * lib/mbchar.c: Likewise.
55963         * lib/mbchar.h: Likewise.
55964         * lib/mbfile.h: Likewise.
55965         * lib/mbiter.h: Likewise.
55966         * lib/mbscasecmp.c: Likewise.
55967         * lib/mbscasestr.c: Likewise.
55968         * lib/mbschr.c: Likewise.
55969         * lib/mbscspn.c: Likewise.
55970         * lib/mbslen.c: Likewise.
55971         * lib/mbsncasecmp.c: Likewise.
55972         * lib/mbsnlen.c: Likewise.
55973         * lib/mbspbrk.c: Likewise.
55974         * lib/mbspcasecmp.c: Likewise.
55975         * lib/mbsrchr.c: Likewise.
55976         * lib/mbssep.c: Likewise.
55977         * lib/mbsspn.c: Likewise.
55978         * lib/mbsstr.c: Likewise.
55979         * lib/mbstok_r.c: Likewise.
55980         * lib/mbswidth.c: Likewise.
55981         * lib/mbswidth.h: Likewise.
55982         * lib/mbuiter.h: Likewise.
55983         * lib/memcasecmp.c: Likewise.
55984         * lib/memcasecmp.h: Likewise.
55985         * lib/memchr.c: Likewise.
55986         * lib/memcmp.c: Likewise.
55987         * lib/memcoll.c: Likewise.
55988         * lib/memcoll.h: Likewise.
55989         * lib/memcpy.c: Likewise.
55990         * lib/memrchr.c: Likewise.
55991         * lib/mkancesdirs.c: Likewise.
55992         * lib/mkdir-p.c: Likewise.
55993         * lib/mkdir-p.h: Likewise.
55994         * lib/mkdir.c: Likewise.
55995         * lib/mkdirat.c: Likewise.
55996         * lib/mkdtemp.c: Likewise.
55997         * lib/mkstemp-safer.c: Likewise.
55998         * lib/mkstemp.c: Likewise.
55999         * lib/modechange.c: Likewise.
56000         * lib/modechange.h: Likewise.
56001         * lib/mountlist.c: Likewise.
56002         * lib/mountlist.h: Likewise.
56003         * lib/mpsort.c: Likewise.
56004         * lib/nanosleep.c: Likewise.
56005         * lib/obstack.c: Likewise.
56006         * lib/obstack.h: Likewise.
56007         * lib/open-safer.c: Likewise.
56008         * lib/open.c: Likewise.
56009         * lib/openat-die.c: Likewise.
56010         * lib/openat-priv.h: Likewise.
56011         * lib/openat-proc.c: Likewise.
56012         * lib/openat.c: Likewise.
56013         * lib/openat.h: Likewise.
56014         * lib/pagealign_alloc.c: Likewise.
56015         * lib/pagealign_alloc.h: Likewise.
56016         * lib/physmem.c: Likewise.
56017         * lib/physmem.h: Likewise.
56018         * lib/pipe-safer.c: Likewise.
56019         * lib/pipe.c: Likewise.
56020         * lib/pipe.h: Likewise.
56021         * lib/posixtm.c: Likewise.
56022         * lib/posixtm.h: Likewise.
56023         * lib/posixver.c: Likewise.
56024         * lib/printf-frexp.c: Likewise.
56025         * lib/printf-frexp.h: Likewise.
56026         * lib/printf-frexpl.c: Likewise.
56027         * lib/printf-frexpl.h: Likewise.
56028         * lib/printf.c: Likewise.
56029         * lib/progname.c: Likewise.
56030         * lib/progname.h: Likewise.
56031         * lib/progreloc.c: Likewise.
56032         * lib/putenv.c: Likewise.
56033         * lib/quote.c: Likewise.
56034         * lib/quote.h: Likewise.
56035         * lib/quotearg.c: Likewise.
56036         * lib/quotearg.h: Likewise.
56037         * lib/raise.c: Likewise.
56038         * lib/readline.c: Likewise.
56039         * lib/readline.h: Likewise.
56040         * lib/readlink.c: Likewise.
56041         * lib/readtokens.c: Likewise.
56042         * lib/readtokens.h: Likewise.
56043         * lib/readtokens0.c: Likewise.
56044         * lib/readtokens0.h: Likewise.
56045         * lib/readutmp.c: Likewise.
56046         * lib/readutmp.h: Likewise.
56047         * lib/realloc.c: Likewise.
56048         * lib/relocwrapper.c: Likewise.
56049         * lib/rename-dest-slash.c: Likewise.
56050         * lib/rename.c: Likewise.
56051         * lib/rmdir.c: Likewise.
56052         * lib/rpmatch.c: Likewise.
56053         * lib/safe-read.c: Likewise.
56054         * lib/safe-read.h: Likewise.
56055         * lib/safe-write.c: Likewise.
56056         * lib/safe-write.h: Likewise.
56057         * lib/same-inode.h: Likewise.
56058         * lib/same.c: Likewise.
56059         * lib/same.h: Likewise.
56060         * lib/save-cwd.c: Likewise.
56061         * lib/save-cwd.h: Likewise.
56062         * lib/savedir.c: Likewise.
56063         * lib/savedir.h: Likewise.
56064         * lib/savewd.c: Likewise.
56065         * lib/savewd.h: Likewise.
56066         * lib/search.in.h: Likewise.
56067         * lib/setenv.c: Likewise.
56068         * lib/setenv.h: Likewise.
56069         * lib/settime.c: Likewise.
56070         * lib/sh-quote.c: Likewise.
56071         * lib/sh-quote.h: Likewise.
56072         * lib/sig2str.c: Likewise.
56073         * lib/sig2str.h: Likewise.
56074         * lib/signal.in.h: Likewise.
56075         * lib/signbitd.c: Likewise.
56076         * lib/signbitf.c: Likewise.
56077         * lib/signbitl.c: Likewise.
56078         * lib/sigprocmask.c: Likewise.
56079         * lib/sincosl.c: Likewise.
56080         * lib/sleep.c: Likewise.
56081         * lib/sprintf.c: Likewise.
56082         * lib/sqrtl.c: Likewise.
56083         * lib/stat-time.h: Likewise.
56084         * lib/stdio--.h: Likewise.
56085         * lib/stdio-safer.h: Likewise.
56086         * lib/stdlib--.h: Likewise.
56087         * lib/stdlib-safer.h: Likewise.
56088         * lib/stdlib.in.h: Likewise.
56089         * lib/stpcpy.c: Likewise.
56090         * lib/stpncpy.c: Likewise.
56091         * lib/strchrnul.c: Likewise.
56092         * lib/strcspn.c: Likewise.
56093         * lib/strerror.c: Likewise.
56094         * lib/strftime.c: Likewise.
56095         * lib/strftime.h: Likewise.
56096         * lib/striconveh.c: Likewise.
56097         * lib/striconveh.h: Likewise.
56098         * lib/striconveha.c: Likewise.
56099         * lib/striconveha.h: Likewise.
56100         * lib/stripslash.c: Likewise.
56101         * lib/strnlen1.c: Likewise.
56102         * lib/strnlen1.h: Likewise.
56103         * lib/strtod.c: Likewise.
56104         * lib/strtoimax.c: Likewise.
56105         * lib/strtok_r.c: Likewise.
56106         * lib/strtol.c: Likewise.
56107         * lib/strtoll.c: Likewise.
56108         * lib/strtoul.c: Likewise.
56109         * lib/strtoull.c: Likewise.
56110         * lib/sysexits.in.h: Likewise.
56111         * lib/tempname.c: Likewise.
56112         * lib/tempname.h: Likewise.
56113         * lib/timespec.h: Likewise.
56114         * lib/tls.c: Likewise.
56115         * lib/tls.h: Likewise.
56116         * lib/tmpdir.c: Likewise.
56117         * lib/tmpdir.h: Likewise.
56118         * lib/tmpfile-safer.c: Likewise.
56119         * lib/tmpfile.c: Likewise.
56120         * lib/trigl.c: Likewise.
56121         * lib/trigl.h: Likewise.
56122         * lib/trim.c: Likewise.
56123         * lib/trim.h: Likewise.
56124         * lib/trunc.c: Likewise.
56125         * lib/truncf.c: Likewise.
56126         * lib/truncl.c: Likewise.
56127         * lib/tsearch.c: Likewise.
56128         * lib/unicodeio.c: Likewise.
56129         * lib/unicodeio.h: Likewise.
56130         * lib/unistd--.h: Likewise.
56131         * lib/unistd-safer.h: Likewise.
56132         * lib/unistdio/ulc-fprintf.c: Likewise.
56133         * lib/unistdio/ulc-vfprintf.c: Likewise.
56134         * lib/unlinkdir.c: Likewise.
56135         * lib/unlinkdir.h: Likewise.
56136         * lib/unlocked-io.h: Likewise.
56137         * lib/unsetenv.c: Likewise.
56138         * lib/userspec.c: Likewise.
56139         * lib/utime.c: Likewise.
56140         * lib/utimecmp.c: Likewise.
56141         * lib/utimecmp.h: Likewise.
56142         * lib/utimens.c: Likewise.
56143         * lib/verify.h: Likewise.
56144         * lib/verror.c: Likewise.
56145         * lib/verror.h: Likewise.
56146         * lib/version-etc-fsf.c: Likewise.
56147         * lib/version-etc.c: Likewise.
56148         * lib/version-etc.h: Likewise.
56149         * lib/vfprintf.c: Likewise.
56150         * lib/vprintf.c: Likewise.
56151         * lib/vsprintf.c: Likewise.
56152         * lib/w32spawn.h: Likewise.
56153         * lib/wait-process.c: Likewise.
56154         * lib/wait-process.h: Likewise.
56155         * lib/wcwidth.c: Likewise.
56156         * lib/write-any-file.c: Likewise.
56157         * lib/xalloc-die.c: Likewise.
56158         * lib/xalloc.h: Likewise.
56159         * lib/xasprintf.c: Likewise.
56160         * lib/xgetcwd.c: Likewise.
56161         * lib/xgetcwd.h: Likewise.
56162         * lib/xgetdomainname.c: Likewise.
56163         * lib/xgetdomainname.h: Likewise.
56164         * lib/xgethostname.c: Likewise.
56165         * lib/xmalloc.c: Likewise.
56166         * lib/xmalloca.c: Likewise.
56167         * lib/xmalloca.h: Likewise.
56168         * lib/xmemcoll.c: Likewise.
56169         * lib/xnanosleep.c: Likewise.
56170         * lib/xreadlink.c: Likewise.
56171         * lib/xreadlink.h: Likewise.
56172         * lib/xsetenv.c: Likewise.
56173         * lib/xsetenv.h: Likewise.
56174         * lib/xstriconv.c: Likewise.
56175         * lib/xstriconv.h: Likewise.
56176         * lib/xstrndup.c: Likewise.
56177         * lib/xstrndup.h: Likewise.
56178         * lib/xstrtod.c: Likewise.
56179         * lib/xstrtod.h: Likewise.
56180         * lib/xstrtol-error.c: Likewise.
56181         * lib/xstrtol.c: Likewise.
56182         * lib/xstrtol.h: Likewise.
56183         * lib/xtime.h: Likewise.
56184         * lib/xvasprintf.c: Likewise.
56185         * lib/xvasprintf.h: Likewise.
56186         * lib/yesno.c: Likewise.
56187         * lib/yesno.h: Likewise.
56188         * posix-modules: Likewise.
56189         * tests/test-alloca-opt.c: Likewise.
56190         * tests/test-arcfour.c: Likewise.
56191         * tests/test-arctwo.c: Likewise.
56192         * tests/test-argmatch.c: Likewise.
56193         * tests/test-argp-2.sh: Likewise.
56194         * tests/test-argp.c: Likewise.
56195         * tests/test-arpa_inet.c: Likewise.
56196         * tests/test-array_list.c: Likewise.
56197         * tests/test-array_oset.c: Likewise.
56198         * tests/test-atexit.c: Likewise.
56199         * tests/test-avltree_list.c: Likewise.
56200         * tests/test-avltree_oset.c: Likewise.
56201         * tests/test-avltreehash_list.c: Likewise.
56202         * tests/test-base64.c: Likewise.
56203         * tests/test-binary-io.c: Likewise.
56204         * tests/test-byteswap.c: Likewise.
56205         * tests/test-c-ctype.c: Likewise.
56206         * tests/test-c-strcasecmp.c: Likewise.
56207         * tests/test-c-strcasestr.c: Likewise.
56208         * tests/test-c-strncasecmp.c: Likewise.
56209         * tests/test-c-strstr.c: Likewise.
56210         * tests/test-canonicalize-lgpl.c: Likewise.
56211         * tests/test-canonicalize.c: Likewise.
56212         * tests/test-carray_list.c: Likewise.
56213         * tests/test-ceilf.c: Likewise.
56214         * tests/test-ceill.c: Likewise.
56215         * tests/test-count-one-bits.c: Likewise.
56216         * tests/test-crc.c: Likewise.
56217         * tests/test-dirname.c: Likewise.
56218         * tests/test-fbufmode.c: Likewise.
56219         * tests/test-fcntl.c: Likewise.
56220         * tests/test-fflush.c: Likewise.
56221         * tests/test-floorf.c: Likewise.
56222         * tests/test-floorl.c: Likewise.
56223         * tests/test-fopen.c: Likewise.
56224         * tests/test-fprintf-posix.c: Likewise.
56225         * tests/test-fprintf-posix.h: Likewise.
56226         * tests/test-fpurge.c: Likewise.
56227         * tests/test-freadable.c: Likewise.
56228         * tests/test-freadahead.c: Likewise.
56229         * tests/test-freading.c: Likewise.
56230         * tests/test-freopen.c: Likewise.
56231         * tests/test-frexp.c: Likewise.
56232         * tests/test-frexpl.c: Likewise.
56233         * tests/test-fseek.c: Likewise.
56234         * tests/test-fseeko.c: Likewise.
56235         * tests/test-fseterr.c: Likewise.
56236         * tests/test-fstrcmp.c: Likewise.
56237         * tests/test-ftell.c: Likewise.
56238         * tests/test-ftello.c: Likewise.
56239         * tests/test-fwritable.c: Likewise.
56240         * tests/test-fwriting.c: Likewise.
56241         * tests/test-getaddrinfo.c: Likewise.
56242         * tests/test-getpass.c: Likewise.
56243         * tests/test-gettimeofday.c: Likewise.
56244         * tests/test-hmac-md5.c: Likewise.
56245         * tests/test-hmac-sha1.c: Likewise.
56246         * tests/test-iconv.c: Likewise.
56247         * tests/test-iconvme.c: Likewise.
56248         * tests/test-inttypes.c: Likewise.
56249         * tests/test-isnan.c: Likewise.
56250         * tests/test-isnanf.c: Likewise.
56251         * tests/test-isnanl-nolibm.c: Likewise.
56252         * tests/test-isnanl.c: Likewise.
56253         * tests/test-isnanl.h: Likewise.
56254         * tests/test-ldexpl.c: Likewise.
56255         * tests/test-linked_list.c: Likewise.
56256         * tests/test-linkedhash_list.c: Likewise.
56257         * tests/test-locale.c: Likewise.
56258         * tests/test-localename.c: Likewise.
56259         * tests/test-lock.c: Likewise.
56260         * tests/test-lseek.c: Likewise.
56261         * tests/test-malloca.c: Likewise.
56262         * tests/test-math.c: Likewise.
56263         * tests/test-mbscasecmp.c: Likewise.
56264         * tests/test-mbscasestr1.c: Likewise.
56265         * tests/test-mbscasestr2.c: Likewise.
56266         * tests/test-mbscasestr3.c: Likewise.
56267         * tests/test-mbscasestr4.c: Likewise.
56268         * tests/test-mbschr.c: Likewise.
56269         * tests/test-mbscspn.c: Likewise.
56270         * tests/test-mbsncasecmp.c: Likewise.
56271         * tests/test-mbspbrk.c: Likewise.
56272         * tests/test-mbspcasecmp.c: Likewise.
56273         * tests/test-mbsrchr.c: Likewise.
56274         * tests/test-mbsspn.c: Likewise.
56275         * tests/test-mbsstr1.c: Likewise.
56276         * tests/test-mbsstr2.c: Likewise.
56277         * tests/test-mbsstr3.c: Likewise.
56278         * tests/test-md5.c: Likewise.
56279         * tests/test-memmem.c: Likewise.
56280         * tests/test-netinet_in.c: Likewise.
56281         * tests/test-open.c: Likewise.
56282         * tests/test-printf-frexp.c: Likewise.
56283         * tests/test-printf-frexpl.c: Likewise.
56284         * tests/test-printf-posix.c: Likewise.
56285         * tests/test-printf-posix.h: Likewise.
56286         * tests/test-rbtree_list.c: Likewise.
56287         * tests/test-rbtree_oset.c: Likewise.
56288         * tests/test-rbtreehash_list.c: Likewise.
56289         * tests/test-read-file.c: Likewise.
56290         * tests/test-rijndael.c: Likewise.
56291         * tests/test-search.c: Likewise.
56292         * tests/test-signbit.c: Likewise.
56293         * tests/test-sleep.c: Likewise.
56294         * tests/test-snprintf-posix.c: Likewise.
56295         * tests/test-snprintf-posix.h: Likewise.
56296         * tests/test-snprintf.c: Likewise.
56297         * tests/test-sprintf-posix.c: Likewise.
56298         * tests/test-sprintf-posix.h: Likewise.
56299         * tests/test-stat-time.c: Likewise.
56300         * tests/test-stdbool.c: Likewise.
56301         * tests/test-stdint.c: Likewise.
56302         * tests/test-stdio.c: Likewise.
56303         * tests/test-stdlib.c: Likewise.
56304         * tests/test-stpncpy.c: Likewise.
56305         * tests/test-strcasestr.c: Likewise.
56306         * tests/test-striconv.c: Likewise.
56307         * tests/test-striconveh.c: Likewise.
56308         * tests/test-striconveha.c: Likewise.
56309         * tests/test-string.c: Likewise.
56310         * tests/test-sys_select.c: Likewise.
56311         * tests/test-sys_socket.c: Likewise.
56312         * tests/test-sys_stat.c: Likewise.
56313         * tests/test-sys_time.c: Likewise.
56314         * tests/test-sysexits.c: Likewise.
56315         * tests/test-time.c: Likewise.
56316         * tests/test-tls.c: Likewise.
56317         * tests/test-trunc.c: Likewise.
56318         * tests/test-truncf.c: Likewise.
56319         * tests/test-truncl.c: Likewise.
56320         * tests/test-unistd.c: Likewise.
56321         * tests/test-vasnprintf-posix.c: Likewise.
56322         * tests/test-vasnprintf-posix2.c: Likewise.
56323         * tests/test-vasnprintf.c: Likewise.
56324         * tests/test-vasprintf-posix.c: Likewise.
56325         * tests/test-vasprintf.c: Likewise.
56326         * tests/test-verify.c: Likewise.
56327         * tests/test-vfprintf-posix.c: Likewise.
56328         * tests/test-vprintf-posix.c: Likewise.
56329         * tests/test-vsnprintf-posix.c: Likewise.
56330         * tests/test-vsnprintf.c: Likewise.
56331         * tests/test-vsprintf-posix.c: Likewise.
56332         * tests/test-wchar.c: Likewise.
56333         * tests/test-wctype.c: Likewise.
56334         * tests/test-wcwidth.c: Likewise.
56335         * tests/test-xstrtol.c: Likewise.
56336         * tests/test-xvasprintf.c: Likewise.
56337         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56338         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56339         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56340         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56341         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56342         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56343         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56344         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56345         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56346         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56347         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56348         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56349         * tests/uniname/test-uninames.c: Likewise.
56350         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56351         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56352         * tests/unistdio/test-u16-printf1.h: Likewise.
56353         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56354         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56355         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56356         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56357         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56358         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56359         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56360         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56361         * tests/unistdio/test-u32-printf1.h: Likewise.
56362         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56363         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56364         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56365         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56366         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56367         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56368         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56369         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56370         * tests/unistdio/test-u8-printf1.h: Likewise.
56371         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56372         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56373         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56374         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56375         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56376         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56377         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56378         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56379         * tests/unistdio/test-ulc-printf1.h: Likewise.
56380         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56381         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56382         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56383         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56384         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56385         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56386         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56387         * tests/uniwidth/test-u16-width.c: Likewise.
56388         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56389         * tests/uniwidth/test-u32-width.c: Likewise.
56390         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56391         * tests/uniwidth/test-u8-width.c: Likewise.
56392         * tests/uniwidth/test-uc_width.c: Likewise.
56393         * config/srclist-update: Likewise.
56394         (fixlicense): Update to GPLv3+.
56395
56396         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56397         * tests/test-tsearch.c: Change copyright notice.
56398
56399         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56400         * lib/c-strcaseeq.h: Change copyright notice.
56401         * lib/streq.h: Likewise.
56402         * lib/uniconv.h: Likewise.
56403         * lib/uniconv/u-conv-from-enc.h: Likewise.
56404         * lib/uniconv/u-conv-to-enc.h: Likewise.
56405         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56406         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56407         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56408         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56409         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56410         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56411         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56412         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56413         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56414         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56415         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56416         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56417         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56418         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56419         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56420         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56421         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56422         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56423         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56424         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56425         * lib/uniname.h: Likewise.
56426         * lib/uniname/uniname.c: Likewise.
56427         * lib/unistdio.h: Likewise.
56428         * lib/unistdio/u-asnprintf.h: Likewise.
56429         * lib/unistdio/u-asprintf.h: Likewise.
56430         * lib/unistdio/u-printf-args.c: Likewise.
56431         * lib/unistdio/u-printf-args.h: Likewise.
56432         * lib/unistdio/u-printf-parse.h: Likewise.
56433         * lib/unistdio/u-snprintf.h: Likewise.
56434         * lib/unistdio/u-sprintf.h: Likewise.
56435         * lib/unistdio/u-vasprintf.h: Likewise.
56436         * lib/unistdio/u-vsnprintf.h: Likewise.
56437         * lib/unistdio/u-vsprintf.h: Likewise.
56438         * lib/unistdio/u16-asnprintf.c: Likewise.
56439         * lib/unistdio/u16-asprintf.c: Likewise.
56440         * lib/unistdio/u16-printf-parse.c: Likewise.
56441         * lib/unistdio/u16-snprintf.c: Likewise.
56442         * lib/unistdio/u16-sprintf.c: Likewise.
56443         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56444         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56445         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56446         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56447         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56448         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56449         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56450         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56451         * lib/unistdio/u16-vasnprintf.c: Likewise.
56452         * lib/unistdio/u16-vasprintf.c: Likewise.
56453         * lib/unistdio/u16-vsnprintf.c: Likewise.
56454         * lib/unistdio/u16-vsprintf.c: Likewise.
56455         * lib/unistdio/u32-asnprintf.c: Likewise.
56456         * lib/unistdio/u32-asprintf.c: Likewise.
56457         * lib/unistdio/u32-printf-parse.c: Likewise.
56458         * lib/unistdio/u32-snprintf.c: Likewise.
56459         * lib/unistdio/u32-sprintf.c: Likewise.
56460         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56461         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56462         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56463         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56464         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56465         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56466         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56467         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56468         * lib/unistdio/u32-vasnprintf.c: Likewise.
56469         * lib/unistdio/u32-vasprintf.c: Likewise.
56470         * lib/unistdio/u32-vsnprintf.c: Likewise.
56471         * lib/unistdio/u32-vsprintf.c: Likewise.
56472         * lib/unistdio/u8-asnprintf.c: Likewise.
56473         * lib/unistdio/u8-asprintf.c: Likewise.
56474         * lib/unistdio/u8-printf-parse.c: Likewise.
56475         * lib/unistdio/u8-snprintf.c: Likewise.
56476         * lib/unistdio/u8-sprintf.c: Likewise.
56477         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56478         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56479         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56480         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56481         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56482         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56483         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56484         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56485         * lib/unistdio/u8-vasnprintf.c: Likewise.
56486         * lib/unistdio/u8-vasprintf.c: Likewise.
56487         * lib/unistdio/u8-vsnprintf.c: Likewise.
56488         * lib/unistdio/u8-vsprintf.c: Likewise.
56489         * lib/unistdio/ulc-asnprintf.c: Likewise.
56490         * lib/unistdio/ulc-asprintf.c: Likewise.
56491         * lib/unistdio/ulc-printf-parse.c: Likewise.
56492         * lib/unistdio/ulc-snprintf.c: Likewise.
56493         * lib/unistdio/ulc-sprintf.c: Likewise.
56494         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56495         * lib/unistdio/ulc-vasprintf.c: Likewise.
56496         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56497         * lib/unistdio/ulc-vsprintf.c: Likewise.
56498         * lib/unistr.h: Likewise.
56499         * lib/unistr/u-cpy-alloc.h: Likewise.
56500         * lib/unistr/u-cpy.h: Likewise.
56501         * lib/unistr/u-endswith.h: Likewise.
56502         * lib/unistr/u-move.h: Likewise.
56503         * lib/unistr/u-set.h: Likewise.
56504         * lib/unistr/u-startswith.h: Likewise.
56505         * lib/unistr/u-stpcpy.h: Likewise.
56506         * lib/unistr/u-stpncpy.h: Likewise.
56507         * lib/unistr/u-strcat.h: Likewise.
56508         * lib/unistr/u-strcpy.h: Likewise.
56509         * lib/unistr/u-strcspn.h: Likewise.
56510         * lib/unistr/u-strdup.h: Likewise.
56511         * lib/unistr/u-strlen.h: Likewise.
56512         * lib/unistr/u-strncat.h: Likewise.
56513         * lib/unistr/u-strncpy.h: Likewise.
56514         * lib/unistr/u-strnlen.h: Likewise.
56515         * lib/unistr/u-strpbrk.h: Likewise.
56516         * lib/unistr/u-strspn.h: Likewise.
56517         * lib/unistr/u-strstr.h: Likewise.
56518         * lib/unistr/u-strtok.h: Likewise.
56519         * lib/unistr/u16-check.c: Likewise.
56520         * lib/unistr/u16-chr.c: Likewise.
56521         * lib/unistr/u16-cmp.c: Likewise.
56522         * lib/unistr/u16-cpy-alloc.c: Likewise.
56523         * lib/unistr/u16-cpy.c: Likewise.
56524         * lib/unistr/u16-endswith.c: Likewise.
56525         * lib/unistr/u16-mblen.c: Likewise.
56526         * lib/unistr/u16-mbsnlen.c: Likewise.
56527         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56528         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56529         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56530         * lib/unistr/u16-mbtouc.c: Likewise.
56531         * lib/unistr/u16-mbtoucr.c: Likewise.
56532         * lib/unistr/u16-move.c: Likewise.
56533         * lib/unistr/u16-next.c: Likewise.
56534         * lib/unistr/u16-prev.c: Likewise.
56535         * lib/unistr/u16-set.c: Likewise.
56536         * lib/unistr/u16-startswith.c: Likewise.
56537         * lib/unistr/u16-stpcpy.c: Likewise.
56538         * lib/unistr/u16-stpncpy.c: Likewise.
56539         * lib/unistr/u16-strcat.c: Likewise.
56540         * lib/unistr/u16-strchr.c: Likewise.
56541         * lib/unistr/u16-strcmp.c: Likewise.
56542         * lib/unistr/u16-strcpy.c: Likewise.
56543         * lib/unistr/u16-strcspn.c: Likewise.
56544         * lib/unistr/u16-strdup.c: Likewise.
56545         * lib/unistr/u16-strlen.c: Likewise.
56546         * lib/unistr/u16-strmblen.c: Likewise.
56547         * lib/unistr/u16-strmbtouc.c: Likewise.
56548         * lib/unistr/u16-strncat.c: Likewise.
56549         * lib/unistr/u16-strncmp.c: Likewise.
56550         * lib/unistr/u16-strncpy.c: Likewise.
56551         * lib/unistr/u16-strnlen.c: Likewise.
56552         * lib/unistr/u16-strpbrk.c: Likewise.
56553         * lib/unistr/u16-strrchr.c: Likewise.
56554         * lib/unistr/u16-strspn.c: Likewise.
56555         * lib/unistr/u16-strstr.c: Likewise.
56556         * lib/unistr/u16-strtok.c: Likewise.
56557         * lib/unistr/u16-to-u32.c: Likewise.
56558         * lib/unistr/u16-to-u8.c: Likewise.
56559         * lib/unistr/u16-uctomb-aux.c: Likewise.
56560         * lib/unistr/u16-uctomb.c: Likewise.
56561         * lib/unistr/u32-check.c: Likewise.
56562         * lib/unistr/u32-chr.c: Likewise.
56563         * lib/unistr/u32-cmp.c: Likewise.
56564         * lib/unistr/u32-cpy-alloc.c: Likewise.
56565         * lib/unistr/u32-cpy.c: Likewise.
56566         * lib/unistr/u32-endswith.c: Likewise.
56567         * lib/unistr/u32-mblen.c: Likewise.
56568         * lib/unistr/u32-mbsnlen.c: Likewise.
56569         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56570         * lib/unistr/u32-mbtouc.c: Likewise.
56571         * lib/unistr/u32-mbtoucr.c: Likewise.
56572         * lib/unistr/u32-move.c: Likewise.
56573         * lib/unistr/u32-next.c: Likewise.
56574         * lib/unistr/u32-prev.c: Likewise.
56575         * lib/unistr/u32-set.c: Likewise.
56576         * lib/unistr/u32-startswith.c: Likewise.
56577         * lib/unistr/u32-stpcpy.c: Likewise.
56578         * lib/unistr/u32-stpncpy.c: Likewise.
56579         * lib/unistr/u32-strcat.c: Likewise.
56580         * lib/unistr/u32-strchr.c: Likewise.
56581         * lib/unistr/u32-strcmp.c: Likewise.
56582         * lib/unistr/u32-strcpy.c: Likewise.
56583         * lib/unistr/u32-strcspn.c: Likewise.
56584         * lib/unistr/u32-strdup.c: Likewise.
56585         * lib/unistr/u32-strlen.c: Likewise.
56586         * lib/unistr/u32-strmblen.c: Likewise.
56587         * lib/unistr/u32-strmbtouc.c: Likewise.
56588         * lib/unistr/u32-strncat.c: Likewise.
56589         * lib/unistr/u32-strncmp.c: Likewise.
56590         * lib/unistr/u32-strncpy.c: Likewise.
56591         * lib/unistr/u32-strnlen.c: Likewise.
56592         * lib/unistr/u32-strpbrk.c: Likewise.
56593         * lib/unistr/u32-strrchr.c: Likewise.
56594         * lib/unistr/u32-strspn.c: Likewise.
56595         * lib/unistr/u32-strstr.c: Likewise.
56596         * lib/unistr/u32-strtok.c: Likewise.
56597         * lib/unistr/u32-to-u16.c: Likewise.
56598         * lib/unistr/u32-to-u8.c: Likewise.
56599         * lib/unistr/u32-uctomb.c: Likewise.
56600         * lib/unistr/u8-check.c: Likewise.
56601         * lib/unistr/u8-chr.c: Likewise.
56602         * lib/unistr/u8-cmp.c: Likewise.
56603         * lib/unistr/u8-cpy-alloc.c: Likewise.
56604         * lib/unistr/u8-cpy.c: Likewise.
56605         * lib/unistr/u8-endswith.c: Likewise.
56606         * lib/unistr/u8-mblen.c: Likewise.
56607         * lib/unistr/u8-mbsnlen.c: Likewise.
56608         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56609         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56610         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56611         * lib/unistr/u8-mbtouc.c: Likewise.
56612         * lib/unistr/u8-mbtoucr.c: Likewise.
56613         * lib/unistr/u8-move.c: Likewise.
56614         * lib/unistr/u8-next.c: Likewise.
56615         * lib/unistr/u8-prev.c: Likewise.
56616         * lib/unistr/u8-set.c: Likewise.
56617         * lib/unistr/u8-startswith.c: Likewise.
56618         * lib/unistr/u8-stpcpy.c: Likewise.
56619         * lib/unistr/u8-stpncpy.c: Likewise.
56620         * lib/unistr/u8-strcat.c: Likewise.
56621         * lib/unistr/u8-strchr.c: Likewise.
56622         * lib/unistr/u8-strcmp.c: Likewise.
56623         * lib/unistr/u8-strcpy.c: Likewise.
56624         * lib/unistr/u8-strcspn.c: Likewise.
56625         * lib/unistr/u8-strdup.c: Likewise.
56626         * lib/unistr/u8-strlen.c: Likewise.
56627         * lib/unistr/u8-strmblen.c: Likewise.
56628         * lib/unistr/u8-strmbtouc.c: Likewise.
56629         * lib/unistr/u8-strncat.c: Likewise.
56630         * lib/unistr/u8-strncmp.c: Likewise.
56631         * lib/unistr/u8-strncpy.c: Likewise.
56632         * lib/unistr/u8-strnlen.c: Likewise.
56633         * lib/unistr/u8-strpbrk.c: Likewise.
56634         * lib/unistr/u8-strrchr.c: Likewise.
56635         * lib/unistr/u8-strspn.c: Likewise.
56636         * lib/unistr/u8-strstr.c: Likewise.
56637         * lib/unistr/u8-strtok.c: Likewise.
56638         * lib/unistr/u8-to-u16.c: Likewise.
56639         * lib/unistr/u8-to-u32.c: Likewise.
56640         * lib/unistr/u8-uctomb-aux.c: Likewise.
56641         * lib/unistr/u8-uctomb.c: Likewise.
56642         * lib/unitypes.h: Likewise.
56643         * lib/uniwidth.h: Likewise.
56644         * lib/uniwidth/cjk.h: Likewise.
56645         * lib/uniwidth/u16-strwidth.c: Likewise.
56646         * lib/uniwidth/u16-width.c: Likewise.
56647         * lib/uniwidth/u32-strwidth.c: Likewise.
56648         * lib/uniwidth/u32-width.c: Likewise.
56649         * lib/uniwidth/u8-strwidth.c: Likewise.
56650         * lib/uniwidth/u8-width.c: Likewise.
56651         * lib/uniwidth/width.c: Likewise.
56652
56653 2007-10-07  Bruno Haible  <bruno@clisp.org>
56654
56655         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56656         The file is still under LGPL (see modules/inttypes).
56657
56658 2007-10-06  Bruno Haible  <bruno@clisp.org>
56659
56660         * modules/trunc (Dependencies): Add 'extensions'.
56661         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56662         Reported by Ben Pfaff <blp@gnu.org>.
56663
56664 2007-10-06  Bruno Haible  <bruno@clisp.org>
56665
56666         * modules/freopen-tests: New file.
56667         * tests/test-freopen.c: New file.
56668
56669         * modules/fopen-tests: New file.
56670         * tests/test-fopen.c: New file.
56671
56672         * modules/fopen: New file.
56673         * lib/fopen.c: New file.
56674         * m4/fopen.m4: New file.
56675         * modules/freopen: New file.
56676         * lib/freopen.c: New file.
56677         * m4/freopen.m4: New file.
56678         * lib/stdio.in.h (fopen, freopen): New declarations.
56679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56680         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56681         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56682         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56683         * doc/functions/fopen.texi: Mention the 'fopen' module.
56684         * doc/functions/freopen.texi: Mention the 'freopen' module.
56685
56686 2007-10-06  Bruno Haible  <bruno@clisp.org>
56687
56688         * modules/open-tests: New file.
56689         * tests/test-open.c: New file.
56690
56691         * modules/open: New file.
56692         * lib/open.c: New file.
56693         * m4/open.m4: New file.
56694         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56695         lib/open.c does.
56696         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56697         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56698         macros.
56699         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56700         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56701         REPLACE_OPEN.
56702         * doc/functions/open.texi: Mention the 'open' module.
56703
56704 2007-10-04  Bruno Haible  <bruno@clisp.org>
56705
56706         * modules/ceill-tests: New file.
56707         * tests/test-ceill.c: New file.
56708
56709         * modules/ceill: New file.
56710         * lib/ceill.c: Replace entire file.
56711         * m4/ceill.m4: New file.
56712         * lib/math.in.h (ceill): Replace declaration.
56713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56714         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56715         * doc/functions/ceill.texi: Mention the 'ceill' module.
56716         * modules/mathl (Files): Remove lib/ceill.c.
56717         (Depends-on): Add ceill.
56718
56719 2007-10-04  Bruno Haible  <bruno@clisp.org>
56720
56721         * modules/ceilf-tests: New file.
56722         * tests/test-ceilf.c: New file.
56723
56724         * modules/ceilf: New file.
56725         * lib/ceil.c: New file.
56726         * lib/ceilf.c: New file.
56727         * m4/ceilf.m4: New file.
56728         * lib/math.in.h (ceilf): New declaration.
56729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56730         HAVE_DECL_CEILF.
56731         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56732         HAVE_DECL_CEILF.
56733         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56734
56735 2007-10-04  Bruno Haible  <bruno@clisp.org>
56736
56737         * modules/floorl-tests: New file.
56738         * tests/test-floorl.c: New file.
56739
56740         * modules/floorl: New file.
56741         * lib/floorl.c: Replace entire file.
56742         * m4/floorl.m4: New file.
56743         * lib/math.in.h (floorl): Replace declaration.
56744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56745         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56746         * doc/functions/floorl.texi: Mention the 'floorl' module.
56747         * modules/mathl (Files): Remove lib/floorl.c.
56748         (Depends-on): Add floorl.
56749
56750 2007-10-04  Bruno Haible  <bruno@clisp.org>
56751
56752         * modules/floorf-tests: New file.
56753         * tests/test-floorf.c: New file.
56754
56755         * modules/floorf: New file.
56756         * lib/floor.c: New file.
56757         * lib/floorf.c: New file.
56758         * m4/floorf.m4: New file.
56759         * lib/math.in.h (floorf): New declaration.
56760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56761         HAVE_DECL_FLOORF.
56762         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56763         HAVE_DECL_FLOORF.
56764         * doc/functions/floorf.texi: Mention the 'floorf' module.
56765
56766 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56767             Bruno Haible  <bruno@clisp.org>
56768
56769         Advertise for the Git server instead of the CVS server.
56770         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56771         repository instead of the CVS one.
56772         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56773         about all VCS systems generically.
56774         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56775
56776 2007-10-04  Bruno Haible  <bruno@clisp.org>
56777
56778         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56779         means.
56780         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56781
56782 2007-10-04  Bruno Haible  <bruno@clisp.org>
56783
56784         * modules/truncl-tests: New file.
56785         * tests/test-truncl.c: New file.
56786
56787         * modules/truncl: New file.
56788         * lib/truncl.c: New file.
56789         * m4/truncl.m4: New file.
56790         * lib/math.in.h (truncl): New declaration.
56791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56792         HAVE_DECL_TRUNCL.
56793         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56794         HAVE_DECL_TRUNCL.
56795         * doc/functions/truncl.texi: Mention the 'truncl' module.
56796
56797 2007-10-04  Bruno Haible  <bruno@clisp.org>
56798
56799         * modules/truncf-tests: New file.
56800         * tests/test-truncf.c: New file.
56801
56802         * modules/truncf: New file.
56803         * lib/trunc.c: Make paramerizable through USE_* macros.
56804         * lib/truncf.c: New file.
56805         * m4/truncf.m4: New file.
56806         * lib/math.in.h (truncf): New declaration.
56807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56808         HAVE_DECL_TRUNCF.
56809         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56810         HAVE_DECL_TRUNCF.
56811         * doc/functions/truncf.texi: Mention the 'truncf' module.
56812
56813 2007-10-03  Bruno Haible  <bruno@clisp.org>
56814
56815         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56816         augmentation also for tests modules.
56817         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56818         * modules/atexit-tests (Makefile.am): Likewise.
56819         * modules/binary-io-tests (Makefile.am): Likewise.
56820         * modules/c-strcase-tests (Makefile.am): Likewise.
56821         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56822         * modules/canonicalize-tests (Makefile.am): Likewise.
56823         * modules/closein-tests (Makefile.am): Likewise.
56824         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56825         * modules/freadahead-tests (Makefile.am): Likewise.
56826         * modules/fseek-tests (Makefile.am): Likewise.
56827         * modules/fseeko-tests (Makefile.am): Likewise.
56828         * modules/ftell-tests (Makefile.am): Likewise.
56829         * modules/ftello-tests (Makefile.am): Likewise.
56830         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56831         * modules/isnanl-tests (Makefile.am): Likewise.
56832         * modules/lseek-tests (Makefile.am): Likewise.
56833         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56834         * modules/mbscasestr-tests (Makefile.am): Likewise.
56835         * modules/mbschr-tests (Makefile.am): Likewise.
56836         * modules/mbscspn-tests (Makefile.am): Likewise.
56837         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56838         * modules/mbspbrk-tests (Makefile.am): Likewise.
56839         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56840         * modules/mbsrchr-tests (Makefile.am): Likewise.
56841         * modules/mbsspn-tests (Makefile.am): Likewise.
56842         * modules/mbsstr-tests (Makefile.am): Likewise.
56843         * modules/printf-posix-tests (Makefile.am): Likewise.
56844         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56845         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56846         * modules/tsearch-tests (Makefile.am): Likewise.
56847         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56848         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56849         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56850         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56851         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56852         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56853         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56854         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56855         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56856         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56857         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56858         * modules/xstrtol-tests (Makefile.am): Likewise.
56859         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56860         * modules/yesno-tests (Makefile.am): Likewise.
56861
56862 2007-10-03  Bruno Haible  <bruno@clisp.org>
56863
56864         * modules/trunc-tests: New file.
56865         * tests/test-trunc.c: New file.
56866
56867         * modules/trunc: New file.
56868         * lib/trunc.c: New file.
56869         * m4/trunc.m4: New file.
56870         * lib/math.in.h (trunc): New declaration.
56871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56872         HAVE_DECL_TRUNC.
56873         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56874         HAVE_DECL_TRUNC.
56875         * doc/functions/trunc.texi: Mention the 'trunc' module.
56876
56877 2007-10-03  Bruno Haible  <bruno@clisp.org>
56878
56879         * tests/test-fpending.c: New file, mostly copied
56880         from coreutils/lib/t-fpending.c.
56881         * modules/fpending-tests: New file.
56882
56883 2007-10-03  Bruno Haible  <bruno@clisp.org>
56884
56885         Port the stdio extensions to QNX (untested).
56886         * lib/fseterr.c (fseterr): Add support for QNX.
56887         * lib/fbufmode.c (fbufmode): Likewise.
56888         * lib/freadable.c (freadable): Likewise.
56889         * lib/fwritable.c (fwritable): Likewise.
56890         * lib/freading.c (freading): Likewise.
56891         * lib/fwriting.c (fwriting): Likewise.
56892         * lib/freadahead.c (freadahed): Likewise.
56893         * lib/fpurge.c (fpurge): Likewise.
56894         * lib/fseeko.c (rpl_fseeko): Likewise.
56895
56896 2007-10-03  Bruno Haible  <bruno@clisp.org>
56897             Jim Meyering  <jim@meyering.net>
56898             Eric Blake  <ebb9@byu.net>
56899
56900         * doc/relocatable.texi: Use @command instead of @program.
56901
56902 2007-10-02  Jim Meyering  <jim@meyering.net>
56903
56904         Perform one more "_.h" -> ".in.h" substitution.
56905         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56906         instead of unistd_.h here, too.
56907
56908 2007-10-01  Bruno Haible  <bruno@clisp.org>
56909
56910         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56911         Needed for the alloca-opt module.
56912
56913 2007-09-30  Bruno Haible  <bruno@clisp.org>
56914
56915         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56916         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56917         alloca_.h.
56918         * lib/argz.in.h: Renamed from lib/argz_.h.
56919         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56920         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56921         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56922         byteswap_.h.
56923         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56924         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56925         dirent_.h.
56926         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56927         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56928         fcntl_.h.
56929         * lib/float.in.h: Renamed from lib/float_.h.
56930         * modules/float (Files, Makefile.am): Use float.in.h instead of
56931         float_.h.
56932         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56933         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56934         fnmatch_.h.
56935         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56936         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56937         getopt_.h.
56938         * lib/glob.in.h: Renamed from lib/glob_.h.
56939         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56940         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56941         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56942         iconv_.h.
56943         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56944         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56945         inttypes_.h.
56946         * lib/locale.in.h: Renamed from lib/locale_.h.
56947         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56948         locale_.h.
56949         * lib/math.in.h: Renamed from lib/math_.h.
56950         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56951         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56952         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56953         of netinet_in_.h. Add dependency.
56954         * lib/poll.in.h: Renamed from lib/poll_.h.
56955         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56956         * lib/search.in.h: Renamed from lib/search_.h.
56957         * modules/search (Files, Makefile.am): Use search.in.h instead of
56958         search_.h.
56959         * lib/signal.in.h: Renamed from lib/signal_.h.
56960         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56961         _signal.h.
56962         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56963         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56964         stdbool_.h.
56965         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56966         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56967         stdint_.h.
56968         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56969         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56970         stdio_.h.
56971         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56972         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56973         stdlib_.h.
56974         * lib/string.in.h: Renamed from lib/string_.h.
56975         * modules/string (Files, Makefile.am): Use string.in.h instead of
56976         string_.h.
56977         * doc/gnulib-tool.texi (Initial import): Update.
56978         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56979         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56980         of sys_select_.h. Add dependency.
56981         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56982         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56983         of sys_socket_.h.
56984         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56985         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56986         sys_stat_.h.
56987         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56988         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56989         sys_time_.h.
56990         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56991         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56992         sysexits_.h.
56993         * lib/time.in.h: Renamed from lib/time_.h.
56994         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56995         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56996         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56997         unistd_.h.
56998         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56999         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57000         wchar_.h.
57001         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57002         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57003         wctype_.h.
57004         * build-aux/bootstrap (slurp): Update.
57005         * lib/.cppi-disable: Update.
57006
57007 2007-09-30  Bruno Haible  <bruno@clisp.org>
57008
57009         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57010         Needed on BeOS.
57011
57012 2007-09-30  Bruno Haible  <bruno@clisp.org>
57013
57014         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57015
57016 2007-09-29  Bruno Haible  <bruno@clisp.org>
57017
57018         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57019
57020 2007-09-29  Bruno Haible  <bruno@clisp.org>
57021
57022         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57023         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57024         * build-aux/install-reloc: Compile also areadlink.c.
57025         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57026
57027 2007-09-29  Bruno Haible  <bruno@clisp.org>
57028
57029         * gnulib-tool (func_emit_initmacro_done): Indentation.
57030
57031 2007-09-29  Bruno Haible  <bruno@clisp.org>
57032
57033         * README: Add CVS checkout update instructions.
57034         Info from Bob Proulx <bob@proulx.com>.
57035
57036 2007-09-28  Eric Blake  <ebb9@byu.net>
57037
57038         Provide move-if-change.
57039         * build-aux/move-if-change: New file, based on best practice
57040         rather than any canonical upstream location.
57041
57042 2007-09-28  Jim Meyering  <jim@meyering.net>
57043
57044         Fix canonicalize loop-detection corner case.
57045         Do not attempt to stat the symlink values stored via seen_triple.
57046         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57047         on linux-2.6.18, (but not 2.6.22).
57048         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57049         triple_compare.  The former compares dev,ino,filename, while the latter
57050         would actually stat dirname(filename) when dev and ino were equal.
57051         * lib/hash-triple.c: Install <string.h>.
57052         (STREQ): Define.
57053         (triple_compare_ino_str): New function.
57054         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57055
57056 2007-09-28  Eric Blake  <ebb9@byu.net>
57057
57058         Enforce that AC_REPLACE_FUNCS files exist.
57059         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57060         override check for typos.
57061
57062         Fix test-closein on Solaris 10.
57063         * tests/test-closein.c (main): Don't assume stdin can be inherited
57064         closed on all systems.
57065         * tests/test-closein.sh: Likewise.
57066         Reported by Piotr Tarnowski.
57067
57068 2007-09-28  Jim Meyering  <jim@meyering.net>
57069
57070         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57071
57072 2007-09-27  Jim Meyering  <jim@meyering.net>
57073
57074         canonicalize: Avoid a false-positive cycle failure.
57075         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57076         Sort.  Remove cycle-check.
57077         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57078         not cycle-check.h.
57079         (seen_triple): New function.
57080         (canonicalize_filename_mode): Use it instead of cycle-check.
57081         * tests/test-canonicalize.c: Add a test for this bug.
57082         * tests/test-canonicalize.sh: Set up and run the test.
57083
57084         New module, file-set, from coreutils.
57085         * modules/file-set: Define it.
57086         * lib/file-set.c, lib/file-set.h: Implement.
57087
57088         New module, hash-triple, from coreutils.
57089         * modules/hash-triple: Define it.
57090         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57091
57092 2007-09-25  Eric Blake  <ebb9@byu.net>
57093
57094         Fix strerror on Interix.
57095         * lib/string_.h (strerror): Declare replacement.
57096         * doc/functions/strerror.texi (strerror): Document the Interix
57097         shortcoming.
57098         * modules/string (Makefile.am): Support new hooks.
57099         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57100         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57101         gl_FUNC_STRERROR_SEPARATE.
57102         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57103         * lib/strerror.c (rpl_strerror): Provide replacement.
57104         * modules/strerror (Depends-on): Add string.
57105         (configure.ac): Detect use of module.
57106         * tests/test-strerror.c: New file.
57107         * modules/strerror-tests: New test module.
57108         * modules/argp (Depends-on): Add strerror.
57109         * modules/error (Depends-on): Likewise.
57110         Reported by Martin Koeppe.
57111
57112 2007-09-24  Bruno Haible  <bruno@clisp.org>
57113
57114         * README: Update git instructions.
57115
57116 2007-09-24  Eric Blake  <ebb9@byu.net>
57117
57118         Revert fpending breakage from 2007-09-08.
57119         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57120         __fpending.c.
57121
57122 2007-09-24  Jim Meyering  <jim@meyering.net>
57123
57124         filenamecat.c: Add a test.
57125         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57126         showing how the function works when DIR is the empty string.
57127
57128 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57129
57130         * tests/test-canonicalize.sh: Turn on executable bit.
57131
57132 2007-09-19  Eric Blake  <ebb9@byu.net>
57133
57134         * README: Update CVS instructions.
57135
57136 2007-09-18  Bruno Haible  <bruno@clisp.org>
57137
57138         * modules/areadlink: New file.
57139         * lib/areadlink.h (areadlink): New declaration.
57140         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57141
57142 2007-09-17  Jim Meyering  <jim@meyering.net>
57143
57144         * lib/savewd.c (ESTALE) [!defined]: Define.
57145         Reported to be required on Interix by Martin Koeppe.
57146
57147 2007-09-17  Bruno Haible  <bruno@clisp.org>
57148
57149         * gnulib-tool (func_version): Use $version.
57150
57151 2007-09-16  Bruno Haible  <bruno@clisp.org>
57152
57153         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57154         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57155         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57156         Reported by Greg Schafer <gschafer@zip.com.au>.
57157
57158 2007-09-15  Bruno Haible  <bruno@clisp.org>
57159
57160         * gnulib-tool (sed): Try a little harder to make bash understand the
57161         alias.
57162         Reported by Bruce Korb <bruce.korb@gmail.com>.
57163
57164 2007-09-13  Eric Blake  <ebb9@byu.net>
57165
57166         * ChangeLog: Remove conflict markers.
57167
57168 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57169
57170         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57171         Reported by Bruno Haible <bruno@clisp.org>.
57172
57173 2007-09-12  Bruno Haible  <bruno@clisp.org>
57174
57175         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57176         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57177         is not defined.
57178
57179 2007-09-12  Eric Blake  <ebb9@byu.net>
57180
57181         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57182         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57183         Autoconf definition.
57184         * modules/euidaccess (Depends-on): Add extensions, for
57185         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57186         * modules/fnmatch (Depends-on): Likewise.
57187         * modules/getaddrinfo (Depends-on): Likewise.
57188         * modules/getdelim (Depends-on): Likewise.
57189         * modules/getline (Depends-on): Likewise.
57190         * modules/getsubopt (Depends-on): Likewise.
57191         * modules/gettext (Depends-on): Likewise.
57192         * modules/group-member (Depends-on): Likewise.
57193         * modules/mbchar (Depends-on): Likewise.
57194         * modules/memmem (Depends-on): Likewise.
57195         * modules/mempcpy (Depends-on): Likewise.
57196         * modules/memrchr (Depends-on): Likewise.
57197         * modules/pagealign_alloc (Depends-on): Likewise.
57198         * modules/readutmp (Depends-on): Likewise.
57199         * modules/stpcpy (Depends-on): Likewise.
57200         * modules/stpncpy (Depends-on): Likewise.
57201         * modules/strchrnul (Depends-on): Likewise.
57202         * modules/strndup (Depends-on): Likewise.
57203         * modules/strsep (Depends-on): Likewise.
57204         * modules/strverscmp (Depends-on): Likewise.
57205         * modules/vasprintf (Depends-on): Likewise.
57206         * modules/wcwidth (Depends-on): Likewise.
57207         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57208         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57209         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57210         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57211         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57212         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57213         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57214         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57215         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57216         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57217         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57218         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57219         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57220         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57221         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57222         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57223         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57224         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57225         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57226         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57227         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57228         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57229         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57230         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57231         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57233         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57234         so that lock.m4 can be used in gettext without extensions module.
57235
57236 2007-09-11  Bruno Haible  <bruno@clisp.org>
57237
57238         * m4/isc-posix.m4: Remove file.
57239         Suggested by Eric Blake.
57240
57241 2007-09-11  Eric Blake  <ebb9@byu.net>
57242
57243         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57244
57245 2007-09-10  Bruno Haible  <bruno@clisp.org>
57246
57247         * posix-modules: Fix typo in error message.
57248         Reported by Matt <mkraai@beckman.com>.
57249
57250 2007-09-09  Bruno Haible  <bruno@clisp.org>
57251
57252         * doc/functions/getdelim.texi: Update list of platforms lacking the
57253         function.
57254         * doc/functions/getline.texi: Likewise.
57255
57256 2007-09-09  Jim Meyering  <jim@meyering.net>
57257
57258         * lib/hash.c (hash_initialize): Detect calloc failure.
57259         Reported by Bruno Haible.
57260
57261 2007-09-09  Bruno Haible  <bruno@clisp.org>
57262
57263         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57264         malloc or realloc fails.
57265
57266 2007-09-09  Bruno Haible  <bruno@clisp.org>
57267
57268         * modules/getcwd (Depends-on): Add malloc-posix.
57269         * modules/glob (Depends-on): Likewise.
57270         * modules/putenv (Depends-on): Likewise.
57271         * modules/strdup (Depends-on): Likewise.
57272         * modules/getdelim (Depends-on): Add realloc-posix.
57273         * modules/read-file (Depends-on): Likewise.
57274
57275 2007-09-09  Bruno Haible  <bruno@clisp.org>
57276
57277         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57278         (gl_FUNC_MALLOC_POSIX): Require it.
57279         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57280         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57281         * modules/realloc (Files): Add m4/malloc.m4.
57282         * modules/calloc (Files): Likewise.
57283
57284 2007-09-09  Bruno Haible  <bruno@clisp.org>
57285
57286         * modules/malloc-posix: New file.
57287         * modules/malloc (Depends-on): Add malloc-posix.
57288         * lib/malloc.c: Include errno.h.
57289         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57290         and a POSIX-compatible malloc into a single function. Set ENOMEM
57291         when returning NULL.
57292         * m4/malloc.m4: New file.
57293         * doc/functions/malloc.texi: Mention the malloc-posix module.
57294         * lib/stdlib_.h (malloc): New declaration.
57295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57296         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57297         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57298         and HAVE_MALLOC_POSIX.
57299
57300 2007-09-09  Bruno Haible  <bruno@clisp.org>
57301
57302         * modules/realloc-posix: New file.
57303         * modules/realloc (Depends-on): Add realloc-posix.
57304         * lib/realloc.c: Include errno.h.
57305         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57306         and a POSIX-compatible realloc into a single function. Set ENOMEM
57307         when returning NULL.
57308         * m4/realloc.m4: New file.
57309         * doc/functions/realloc.texi: Mention the realloc-posix module.
57310         * lib/stdlib_.h (realloc): New declaration.
57311         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57312         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57313         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57314         and HAVE_REALLOC_POSIX.
57315
57316 2007-09-09  Bruno Haible  <bruno@clisp.org>
57317
57318         * modules/calloc-posix: New file.
57319         * modules/calloc (Depends-on): Add calloc-posix.
57320         * lib/calloc.c: Include errno.h.
57321         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57322         and a POSIX-compatible calloc into a single function. Set ENOMEM
57323         when returning NULL.
57324         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57325         * doc/functions/calloc.texi: Mention the calloc-posix module.
57326         * lib/stdlib_.h (calloc): New declaration.
57327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57328         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57329         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57330         and HAVE_CALLOC_POSIX.
57331
57332 2007-09-09  Bruno Haible  <bruno@clisp.org>
57333
57334         Allow for modules to show an arbitrary notice.
57335         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57336         * gnulib-tool: New option --extract-notice.
57337         (func_usage): Document it.
57338         (sed_extract_prog): Update.
57339         (func_get_notice): New function.
57340         (func_modules_notice): New function.
57341         (func_import, func_create_testdir): Invoke it.
57342         Suggested by Jim Meyering.
57343
57344 2007-09-09  Bruno Haible  <bruno@clisp.org>
57345
57346         * gnulib-tool: New options --verbose, --quiet.
57347         (func_usage): Document them.
57348         (verbose): New variable.
57349         (func_execute_command): New function.
57350         (func_import): Don't show the module list and the file list if
57351         $verbose < 0.
57352         (func_create_testdir): Likewise. Use func_execute_command.
57353         (func_create_megatestdir): Use func_execute_command.
57354
57355 2007-09-08  Bruno Haible  <bruno@clisp.org>
57356
57357         * gnulib-tool (func_import): Prefer rsync over wget when available,
57358         for fetching the PO files.
57359
57360 2007-09-08  Bruno Haible  <bruno@clisp.org>
57361
57362         * posix-modules: New file. Portions copied from gnulib-tool.
57363         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57364
57365 2007-09-08  Jim Meyering  <jim@meyering.net>
57366
57367         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57368         * lib/fpending.h: Rename from __fpending.h.
57369         * lib/fpending.c: Rename from __fpending.c.
57370         Include "fpending.h", not "__fpending.h".
57371         * lib/__fpending.h, lib/__fpending.c: Remove files.
57372         * modules/fpending (Files): Reflect new file names.
57373         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57374
57375 2007-09-08  Bruno Haible  <bruno@clisp.org>
57376
57377         * m4/inttypes-h.m4: Remove stub file.
57378
57379 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57380
57381         * doc/headers/stdint.texi: Discuss #include_next issue.
57382
57383 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57384
57385         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57386
57387 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57388
57389         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57390         in variable name.
57391
57392 2007-09-03  Jim Meyering  <jim@meyering.net>
57393
57394         New module: git-version-gen.
57395         * modules/git-version-gen: New file.
57396
57397         Import changes from coreutils for bootstrap script.
57398
57399         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57400
57401         bootstrap: uses rsync to download the .po files
57402         * build-aux/bootstrap (po_download_command_format): New global.
57403         (download_po_files): Use rsync.
57404         (update_po_files): Don't remove .po files after download,
57405         so future rsync runs can take advantage of the copies.
57406
57407         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57408
57409         Solve the unnecessary-.po-file-regeneration problem once and for all.
57410         * build-aux/bootstrap (download_po_files): New function, renamed from
57411         get_translations.  Now, downloads, but doesn't update LINGUAS.
57412         (update_po_files): New function.
57413
57414         bootstrap: Ignore more.
57415         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57416         uniwidth to e.g., lib/.gitignore.
57417         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57418
57419         * build-aux/bootstrap: New setting: vc_ignore.
57420         (insert_sorted_if_absent): Create $file if absent.
57421         Adapt to new, possibly empty, list: $vc_ignore.
57422
57423         bootstrap: generate more ignorable names
57424         * build-aux/bootstrap (slurp): When generating ignorable names,
57425         also map .sin to .sed, .gperf to .c, and .y to .c.
57426
57427 2007-09-03  Jim Meyering  <jim@meyering.net>
57428
57429         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57430         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57431
57432 2007-09-02  Bruno Haible  <bruno@clisp.org>
57433
57434         Fix mis-recognition of 'mcs' on QNX 6.
57435         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57436         output contains the string "Mono".
57437         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57438         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57439
57440 2007-09-01  Bruno Haible  <bruno@clisp.org>
57441
57442         Fix collision between uniwidth/* and linebreak modules.
57443         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57444         u32_width): Remove declarations.
57445         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57446         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57447         streq3, streq2, streq1, streq0): Remove functions.
57448         (STREQ): Remove macro.
57449         (is_cjk_encoding): Remove function.
57450         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57451         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57452         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57453         * NEWS: Document the change.
57454
57455 2007-09-01  Bruno Haible  <bruno@clisp.org>
57456
57457         * lib/streq.h: Add double-inclusion guard.
57458
57459 2007-09-01  Karl Berry  <karl@gnu.org>
57460
57461         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57462
57463 2007-08-28  Jim Meyering  <jim@meyering.net>
57464
57465         Rename mreadlink_with_size to areadlink_with_size.
57466         * NEWS: Document the change.
57467         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57468         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57469         * lib/mreadlink.h: Rename this to...
57470         * lib/areadlink.h: ...this.
57471         * modules/mreadlink-with-size: Rename this to...
57472         * modules/areadlink-with-size: ...this.
57473         * lib/canonicalize.c: Reflect the renaming.
57474         * modules/canonicalize: Likewise.
57475
57476 2007-08-26  Bruno Haible  <bruno@clisp.org>
57477
57478         * gnulib-tool (func_import): When deciding which files to remove,
57479         consider also dangling symbolic links.
57480         Reported by Eric Blake.
57481
57482 2007-08-26  Bruno Haible  <bruno@clisp.org>
57483
57484         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57485
57486 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57487
57488         * lib/readline.c: Don't include getline.h, the prototype is now
57489         found in stdio.h.
57490
57491 2007-08-23  Jim Meyering  <jim@meyering.net>
57492
57493         Getdelim touchup.
57494         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57495         around the funlockfile call, since funlockfile never sets errno.
57496         Don't set errno upon failed realloc.
57497
57498 2007-08-22  Eric Blake  <ebb9@byu.net>
57499
57500         Getline touchups.
57501         * lib/getdelim.c (getdelim): Revert regression that required *n to
57502         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57503         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57504         getdelim, rather than whether implementation is missing.
57505         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57506         * lib/stdio_.h (getline): Also declare if replacement is
57507         required.
57508         * doc/functions/getdelim.texi: New file.
57509         * doc/functions/getline.texi: Likewise.
57510         * doc/gnulib.texi (Function Substitutes): Add new files.
57511         Reported by Bruno Haible.
57512
57513 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57514
57515         * users.txt: Add Guile.
57516
57517 2007-08-22  Eric Blake  <ebb9@byu.net>
57518
57519         * tests/test-getdelim.c (main): Use remove, not unlink.
57520         * tests/test-getline.c (main): Likewise.
57521
57522         Move getline and getdelim into stdio.h, per POSIX 200x.
57523         * modules/getline (Files): Remove getline.h.
57524         (Depends-on): Add stdio.
57525         (configure.ac): Add module indicator.
57526         * modules/getdelim (Files): Remove getdelim.h.
57527         (Depends-on): Add stdio.
57528         (configure.ac): Add module indicator.
57529         * modules/stdio (Makefile.am): Work with new indicators.
57530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57531         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57532         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57533         * lib/getdelim.h: Delete.
57534         * lib/getline.h: Delete.
57535         * lib/stdio_.h (getdelim, getline): Declare.
57536         * modules/getdelim-tests: New module.
57537         * modules/getline-tests: Likewise.
57538         * tests/test-getdelim.c: New file.
57539         * tests/test-getline.c: Likewise.
57540         * NEWS: Document the change.
57541         * lib/getline.c: Update choice of header.
57542         * lib/csharpcomp.c: Likewise.
57543         * lib/getpass.c: Likewise.
57544         * lib/javacomp.c: Likewise.
57545         * lib/javaversion.c: Likewise.
57546         * lib/yesno.c: Likewise.
57547         * lib/getdelim.c: Likewise.
57548         (getdelim): Set errno on failure, and avoid memory leak.
57549
57550 2007-08-19  Bruno Haible  <bruno@clisp.org>
57551
57552         * modules/closein (Depends-on): Add freadahead.
57553         * lib/closein.c: Include freadahead.h.
57554         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57555         is zero.
57556
57557 2007-08-19  Bruno Haible  <bruno@clisp.org>
57558
57559         * modules/freadahead-tests: New file.
57560         * tests/test-freadahead.sh: New file.
57561         * tests/test-freadahead.c: New file.
57562
57563         * modules/freadahead: New file.
57564         * lib/freadahead.h: New file.
57565         * lib/freadahead.c: New file.
57566         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57567         fbufmode, fpurge, freadable, fwritable.
57568
57569 2007-08-19  Eric Blake  <ebb9@byu.net>
57570
57571         Test yesno in combination with closein.
57572         * lib/yesno.c (yesno): Document use of stdin.
57573         * modules/yesno-tests (Files): New module.
57574         * tests/test-yesno.c (main): New file.
57575         * tests/test-yesno.sh: Likewise.
57576
57577 2007-08-19  Bruno Haible  <bruno@clisp.org>
57578
57579         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57580         * lib/fseeko.c (rpl_fseeko): Likewise.
57581         * lib/fseterr.c (fseterr): Likewise.
57582
57583 2007-08-19  Bruno Haible  <bruno@clisp.org>
57584
57585         * tests/test-lseek.c (main): Disable a test for BeOS.
57586         * doc/functions/lseek.texi: Document the BeOS bug.
57587
57588 2007-08-19  Bruno Haible  <bruno@clisp.org>
57589             Eric Blake  <ebb9@byu.net>
57590
57591         * lib/lseek.c: Include <sys/stat.h>.
57592         (rpl_lseek): Add workaround code also for Unix platforms.
57593         Needed for BeOS.
57594         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57595         * doc/functions/lseek.texi: Document BeOS definiency.
57596
57597 2007-08-18  Bruno Haible  <bruno@clisp.org>
57598
57599         * modules/fstrcmp-tests: New file.
57600         * tests/test-fstrcmp.c: New file.
57601
57602 2007-08-18  Bruno Haible  <bruno@clisp.org>
57603
57604         * modules/fstrcmp: New file, from GNU gettext with modifications.
57605         * lib/fstrcmp.h: New file, from GNU gettext.
57606         * lib/fstrcmp.c: New file, from GNU gettext.
57607         * MODULES.html.sh (String handling): Add fstrcmp.
57608
57609 2007-08-18  Bruno Haible  <bruno@clisp.org>
57610
57611         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57612         'bool'.
57613         (diag, compareseq): Remove const from the ctxt argument.
57614         (USE_HEURISTIC): Undefine at the end.
57615
57616 2007-08-18  Jim Meyering  <jim@meyering.net>
57617
57618         New file: lib/idcache.h
57619         * NEWS: Mention the addition.
57620         * modules/idcache (Files): Add lib/idcache.h
57621         * lib/idcache.c: Include "idcache.h".
57622         Don't include <sys/types.h>.
57623         Add a FIXME comment.
57624         Move file-scoped "static" declarations to the top.
57625         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57626
57627 2007-08-17  Bruno Haible  <bruno@clisp.org>
57628         and Paul Eggert  <eggert@cs.ucla.edu>
57629
57630         * MODULES.html.sh: Add diffseq.
57631         * modules/diffseq: New file.
57632         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57633         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57634
57635 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57636
57637         Import changes from coreutils for bootstrap script.
57638
57639         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57640
57641         * build-aux/bootstrap (slurp): Work even in environments where
57642         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57643         current code does not slurp files whose names start with ".", and
57644         this looks like it might be a troublesome area.
57645
57646         2007-07-11  Jim Meyering  <jim@meyering.net>
57647
57648         If there's a GPL vN copyright comment, require that N == 3.
57649
57650         2007-07-08  Jim Meyering  <jim@meyering.net>
57651
57652         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57653         * build-aux/bootstrap (mam_template): Move definition out of loop.
57654
57655         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57656
57657         * build-aux/bootstrap (symlink_to_dir): Rename function from
57658         symlink_to_gnulib.  Add a directory parameter.  Update all
57659         callers.
57660         (cp_mark_as_generated): Also check for -- and link to -- files in
57661         gl/.
57662
57663         2007-07-08  Jim Meyering  <jim@meyering.net>
57664
57665         Adapt to deeper hierarchy in gnulib.
57666         * build-aux/bootstrap (symlink_to_dir): If the destination
57667         directory doesn't exist, create it. This is required at least for
57668         "lib/uniwidth/cjk.h".
57669
57670         2007-05-15  Jim Meyering  <jim@meyering.net>
57671
57672         * build-aux/bootstrap: Now that generated Makefile.am files
57673         are no longer under version control, they must be created at
57674         bootstrap time.
57675
57676 2007-08-14  Ben Pfaff  <blp@gnu.org>
57677
57678         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57679
57680 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57681
57682         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57683         given the changes below.
57684         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57685         even on hosts that have padding bits beyond the supported 64.
57686
57687 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57688
57689         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57690         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57691         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57692         depends on it.
57693         (xstrtol_error): Remove.
57694         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57695         but with a different signature.
57696         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57697         * lib/xstrtol-error.c: Include exitfail.h.
57698         (xstrtol_fatal): New function, with a different signature from the
57699         old xstrtol_error, so that the caller need not worry about passing
57700         in an exit status, or about storage management of the option argument.
57701         (xstrtol_error): Now a static function.  Redo signature to
57702         implement xstrtol_fatal.  Output the correct number of hyphens in
57703         front of the option so that the caller need not worry about
57704         storage management.
57705         (N_): New macro.
57706         (_): Remove; not used now.
57707         * modules/xstrtol: Depend on getopt.
57708         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57709         of old STRTOL_FATAL_ERROR macro.
57710         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57711         of test program.
57712         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57713         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57714
57715 2007-08-08  Eric Blake  <ebb9@byu.net>
57716
57717         * lib/xstrtol-error.c: Add missing include.
57718
57719         Move xstrtol messages into gnulib domain, when --pobase is used.
57720         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57721         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57722         * modules/xstrtol (Files): Distribute new file.
57723         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57724         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57725         * tests/test-xstrtol.c: ...into new file.
57726         * tests/test-xstrtoul.c: Also test xstrtoul.
57727         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57728         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57729         * tests/test-xstrtol.sh: Drive the tests.
57730         * tests/test-xstrtoimax.sh: Likewise.
57731         * tests/test-xstrtoumax.sh: Likewise.
57732         * modules/xstrtol-tests: New module.
57733         * modules/xstrtoimax-tests: Likewise.
57734         * modules/xstrtoumax-tests: Likewise.
57735
57736 2007-08-08  Jim Meyering  <jim@meyering.net>
57737
57738         New function: mfile_name_concat.
57739         * lib/filenamecat.c (mfile_name_concat): New function, just like
57740         file_name_concat, but return NULL upon failure rather than exiting
57741         with a diagnostic.
57742         * lib/filenamecat.h: Declare it.
57743
57744 2007-08-07  Bruno Haible  <bruno@clisp.org>
57745
57746         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57747         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57748         warning from gcc.
57749         Reported by Eric Blake.
57750
57751 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57752
57753         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57754         * modules/crypto/arcfour (License): Likewise.
57755         * modules/crypto/des-tests (License): Likewise.
57756         * modules/crypto/gc-arctwo-tests (License): Likewise.
57757         * modules/crypto/gc-des-tests (License): Likewise.
57758         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57759         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57760         * modules/crypto/gc-md2-tests (License): Likewise.
57761         * modules/crypto/gc-md4-tests (License): Likewise.
57762         * modules/crypto/gc-md5-tests (License): Likewise.
57763         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57764         * modules/crypto/gc-rijndael-tests (License): Likewise.
57765         * modules/crypto/gc-sha1-tests (License): Likewise.
57766         * modules/crypto/gc-tests (License): Likewise.
57767         * modules/crypto/hmac-md5 (License): Likewise.
57768         * modules/crypto/hmac-sha1 (License): Likewise.
57769         * modules/crypto/md2-tests (License): Likewise.
57770         * modules/crypto/md4-tests (License): Likewise.
57771         * modules/crypto/md5 (License): Likewise.
57772         * modules/crypto/rijndael (License): Likewise.
57773         * modules/crypto/sha1 (License): Likewise.
57774         * modules/memxor (License): Likewise.
57775
57776 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57777         and Bruno Haible  <bruno@clisp.org>
57778
57779         * NEWS: Describe interface changes to human, xstrtol.
57780         * lib/human.h: Include <xstrtol.h>.
57781         (human_options): Return enum strtol_error, not int.  Remove
57782         bool arg; take int * instead.
57783         * lib/human.c: Don't include "gettext.h".
57784         (_): Remove; no longer used.
57785         Don't include <xstrtol.h>, since human.h does it.
57786         (human_options): Adjust to abovementioned interface changes.
57787         Do not report error to stderr; that's now the caller's
57788         responsibility.
57789         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57790         interface change.
57791         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57792         Str, Argument_type_string.  All uses changed.  Put " argument"
57793         in diagnostics to make them clearer.  Change wording of suffix
57794         message for clarity.
57795         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57796         Argument_type_string.
57797         (STRTOL_FATAL_WARN): Remove; no longer used.
57798         * modules/human (Depends-on): Remove gettext-h.
57799
57800 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57801
57802         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57803
57804 2007-07-31  Bruno Haible  <bruno@clisp.org>
57805
57806         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57807         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57808         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57809
57810 2007-07-31  Bruno Haible  <bruno@clisp.org>
57811
57812         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57813         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57814
57815 2007-07-30  Bruno Haible  <bruno@clisp.org>
57816
57817         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57818         * modules/c-ctype (License): Likewise.
57819         * modules/c-strcase (License): Likewise.
57820         * modules/check-version (License): Likewise.
57821         * modules/iconv (License): Likewise.
57822         * modules/iconv_open (License): Likewise.
57823         * modules/read-file (License): Likewise.
57824         * modules/striconv (License): Likewise.
57825         * modules/strverscmp (License): Likewise.
57826         * modules/vasprintf (License): Likewise.
57827         * modules/crypto/des (License): Likewise.
57828         * modules/crypto/gc (License): Likewise.
57829         * modules/crypto/gc-arcfour (License): Likewise.
57830         * modules/crypto/gc-arctwo (License): Likewise.
57831         * modules/crypto/gc-des (License): Likewise.
57832         * modules/crypto/gc-hmac-md5 (License): Likewise.
57833         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57834         * modules/crypto/gc-md2 (License): Likewise.
57835         * modules/crypto/gc-md4 (License): Likewise.
57836         * modules/crypto/gc-md5 (License): Likewise.
57837         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57838         * modules/crypto/gc-random (License): Likewise.
57839         * modules/crypto/gc-rijndael (License): Likewise.
57840         * modules/crypto/gc-sha1 (License): Likewise.
57841         * modules/crypto/md2 (License): Likewise.
57842         * modules/crypto/md4 (License): Likewise.
57843
57844 2007-07-30  Jim Meyering  <jim@meyering.net>
57845
57846         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57847         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57848         it has valid stat data.  This bug would cause du not to count the
57849         sizes of inaccessible directories.
57850         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57851         in <http://bugzilla.redhat.com/250077>.
57852
57853 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57854             Bruno Haible  <bruno@clisp.org>
57855
57856         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57857         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57858         #include_next, gives a diagnostic about it, but reports no error in
57859         the exit code.
57860         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57861
57862 2007-07-24  Ben Pfaff  <blp@gnu.org>
57863
57864         Improve name: "count-one-bits" is better than "popcount".
57865         * MODULES.html.sh: Update name.
57866         * lib/popcount.h: Renamed lib/count-one-bits.h.
57867         (popcount): Renamed count_one_bits.
57868         (popcountl): Renamed count_one_bits_l.
57869         (popcountll): Renamed count_one_bits_ll.
57870         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57871         * modules/popcount: Renamed module/count-one-bits.
57872         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57873         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57874
57875 2007-07-23  Ben Pfaff  <blp@gnu.org>
57876
57877         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57878         better code generation, and add U to large constants to avoid
57879         warnings, in non-GCC case.
57880         Suggested by Bruno Haible.
57881
57882 2007-07-23  Ben Pfaff  <blp@gnu.org>
57883
57884         * lib/popcount.h: Use verify_true instead of if...abort.
57885         * modules/popcount: Depend on verify module.
57886         Suggested by Jim Meyering.
57887
57888 2007-07-23  Bruno Haible  <bruno@clisp.org>
57889
57890         * gnulib-tool (func_import): Create a .cvsignore file also when the
57891         directory is not yet in CVS but the toplevel directory is. When
57892         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57893         Reported by Karl Berry.
57894
57895 2007-07-22  Ben Pfaff  <blp@gnu.org>
57896
57897         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57898         case.
57899         Suggested by Eric Blake.
57900
57901 2007-07-22  Ben Pfaff  <blp@gnu.org>
57902
57903         New module: popcount.
57904         * MODULES.html.sh: Add popcount.
57905         * modules/popcount: New file.
57906         * modules/popcount-tests: New file.
57907         * tests/test-popcount.c: New file.
57908         * lib/popcount.h: New file.
57909         * m4/popcount.m4: New file.
57910
57911 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57912
57913         * build-aux/announce-gen: Update to GPLv3.
57914
57915         * build-aux/config.guess: Update from config.
57916
57917 2007-07-21  Bruno Haible  <bruno@clisp.org>
57918
57919         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57920         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57921
57922 2007-07-20  Jim Meyering  <jim@meyering.net>
57923
57924         * check-module: Diagnose a self-dependency.
57925
57926 2007-07-19  Bruno Haible  <bruno@clisp.org>
57927
57928         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57929         empty.
57930         Reported by Eric Blake.
57931
57932 2007-07-18  Bruno Haible  <bruno@clisp.org>
57933
57934         * gnulib-tool: New options --po-base, --po-domain.
57935         (func_usage): Document them.
57936         (pobase, po_domain): New variables.
57937         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57938         DEFAULT_TEXT_DOMAIN.
57939         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57940         (func_import): Consider pobase and po_domain. Create a po/ directory.
57941         (func_create_testdir): Set pobase and po_domain to empty.
57942         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57943         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57944
57945 2007-07-18  Bruno Haible  <bruno@clisp.org>
57946
57947         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57948         EXTRA_DIST augmentation for files in build-aux/.
57949
57950 2007-07-16  Bruno Haible  <bruno@clisp.org>
57951
57952         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57953         * modules/getdelim (License): Likewise.
57954
57955 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57956
57957         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57958         * modules/d-type (License): Likewise.
57959         * modules/extensions (License): Likewise.
57960         * modules/fnmatch (License): Likewise.
57961         * modules/fseeko (License): Likewise.
57962         * modules/getaddrinfo (License): Likewise.
57963         * modules/getline (License): Likewise.
57964         * modules/getlogin_r (License): Likewise.
57965         * modules/getpass (License): Likewise.
57966         * modules/gettimeofday (License): Likewise.
57967         * modules/glob (License): Likewise.
57968         * modules/inet_ntop (License): Likewise.
57969         * modules/malloc (License): Likewise.
57970         * modules/malloca (License): Likewise.
57971         * modules/memmem (License): Likewise.
57972         * modules/mempcpy (License): Likewise.
57973         * modules/memset (License): Likewise.
57974         * modules/minmax (License): Likewise.
57975         * modules/mktime (License): Likewise.
57976         * modules/netinet_in (License): Likewise.
57977         * modules/pathmax (License): Likewise.
57978         * modules/poll (License): Likewise.
57979         * modules/regex (License): Likewise.
57980         * modules/snprintf (License): Likewise.
57981         * modules/stdbool (License): Likewise.
57982         * modules/stdint (License): Likewise.
57983         * modules/stdio (License): Likewise.
57984         * modules/strcase (License): Likewise.
57985         * modules/strcasestr (License): Likewise.
57986         * modules/strdup (License): Likewise.
57987         * modules/string (License): Likewise.
57988         * modules/strndup (License): Likewise.
57989         * modules/strnlen (License): Likewise.
57990         * modules/strpbrk (License): Likewise.
57991         * modules/strptime (License): Likewise.
57992         * modules/strsep (License): Likewise.
57993         * modules/sys_select (License): Likewise.
57994         * modules/sys_socket (License): Likewise.
57995         * modules/sys_stat (License): Likewise.
57996         * modules/sys_time (License): Likewise.
57997         * modules/time (License): Likewise.
57998         * modules/time_r (License): Likewise.
57999         * modules/timegm (License): Likewise.
58000         * modules/unistd (License): Likewise.
58001         * modules/vsnprintf (License): Likewise.
58002         * modules/wctype (License): Likewise.
58003
58004 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58005
58006         * modules/argz (License): LGPLv2+.
58007
58008 2007-07-15  Karl Berry  <karl@gnu.org>
58009
58010         * doc/gnulib.texi: revise node structure per new fdl.texi.
58011
58012 2007-07-14  Bruno Haible  <bruno@clisp.org>
58013
58014         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58015         the output file.
58016         * lib/uniname/uninames.h: Regenerated.
58017
58018 2007-07-14  Karl Berry  <karl@gnu.org>
58019
58020         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58021         omitting sectioning and index commands.
58022
58023 2007-07-13  Bruno Haible  <bruno@clisp.org>
58024
58025         New gnulib-tool option --more-symlinks.
58026         * gnulib-tool (func_usage): Document --more-symlinks.
58027         (do_copyrights): New variable.
58028         Recognize option --more-symlinks.
58029         (func_import): Don't add a copyright notice transform to
58030         sed_transform_lib_file if do_copyrights is empty.
58031
58032 2007-07-13  Bruno Haible  <bruno@clisp.org>
58033
58034         * lib/vasnprintf.c (decimal_point_char): Define also if
58035         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58036         && !NEED_PRINTF_DIRECTIVE_A.
58037         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58038         Gary V. Vaughan <gary@gnu.org>.
58039
58040 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58041
58042         * lib/inttypes_.h: Undo previous change, since it was fixed
58043         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58044
58045 2007-07-13  Bruno Haible  <bruno@clisp.org>
58046
58047         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58048         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58049
58050 2007-07-13  Jim Meyering  <jim@meyering.net>
58051
58052         df: Don't fail for Tru64's "file-on-file mount".
58053         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58054         so we fall through and use statfs instead.  Details here:
58055         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58056         Reported by Albert Chin.
58057
58058 2007-07-13  Bruno Haible  <bruno@clisp.org>
58059
58060         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58061         * modules/configmake (License): Likewise.
58062         * modules/gettext (License): Likewise.
58063         * modules/gettext-h (License): Likewise.
58064         * modules/include_next (License): Likewise.
58065         * modules/link-warning (License): Likewise.
58066         * modules/localcharset (License): Likewise.
58067         * modules/localename (License): Likewise.
58068         * modules/lock (License): Likewise.
58069         * modules/relocatable-lib-lgpl (License): Likewise.
58070         * modules/size_max (License): Likewise.
58071         * modules/vasnprintf (License): Likewise.
58072         * modules/wchar (License): Likewise.
58073         * modules/xsize (License): Likewise.
58074
58075 2007-07-13  Bruno Haible  <bruno@clisp.org>
58076
58077         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58078         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58079
58080 2007-07-12  Bruno Haible  <bruno@clisp.org>
58081
58082         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58083         in the modules files.
58084
58085 2007-07-11  Karl Berry  <karl@gnu.org>
58086
58087         * MODULES.html.sh (func_module): use
58088          sed -e '\|^'"${includefile}"'$|d'
58089          instead of /.../d, to avoid errors on $includefile's containing /.
58090
58091 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58092
58093         * gnulib-tool (func_import): Avoid duplication of --avoid
58094         statements
58095         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58096         names to `_' in variable names.
58097
58098 2007-07-10  Eric Blake  <ebb9@byu.net>
58099
58100         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58101         * NEWS: Document this change.
58102
58103 2007-07-08  Bruno Haible  <bruno@clisp.org>
58104
58105         Update to Unicode 5.0.
58106         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58107         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58108         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58109         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58110         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58111         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58112         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58113         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58114         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58115         U+10A3F, U+1D242..U+1D244.
58116         (nonspacing_table_ind): Update.
58117         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58118         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58119
58120 2007-07-08  Bruno Haible  <bruno@clisp.org>
58121
58122         Update to Unicode 5.0.
58123         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58124         code transform. Extend the name index field of unicode_name_to_code and
58125         unicode_code_to_name from 16 to 24 bits.
58126         * lib/uniname/uniname.c (unicode_character_name,
58127         unicode_name_character): Add the range 0x12xxx to the code transform.
58128         * lib/uniname/uninames.h: Regenerated.
58129         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58130
58131 2007-07-07  Bruno Haible  <bruno@clisp.org>
58132
58133         * modules/wcwidth-tests: New file.
58134         * tests/test-wcwidth.c: New file.
58135
58136         Work around MacOS X wcwidth() bug.
58137         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58138         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58139         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58140         original wcwidth in non-UTF-8 locales.
58141         * modules/wcwidth (Depends-on): Add localcharset, streq,
58142         uniwidth/width.
58143         * doc/functions/wcwidth.texi: Update.
58144
58145 2007-07-07  Bruno Haible  <bruno@clisp.org>
58146
58147         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58148         (wcwidth): New declaration.
58149         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58150         macros.
58151         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58152         here. Prepare for creating <wchar.h> unconditionally.
58153         * modules/wchar (Depends-on): Add link-warning.
58154         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58155         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58156         * lib/wcwidth.h: Remove file.
58157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58158         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58159         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58160         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58161         (Include): Replace wcwidth.h with <wchar.h>.
58162         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58163         * lib/mbchar.h: Don't include wcwidth.h.
58164         * lib/mbswidth.c: Likewise.
58165         * NEWS: Mention the change.
58166
58167 2007-07-07  Bruno Haible  <bruno@clisp.org>
58168
58169         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58170         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58171         definition with an external declaration.
58172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58173         defined as a function. Remove AC_C_INLINE requirement.
58174         * modules/wcwidth (Files): Add lib/wcwidth.c.
58175         (Makefile.am): Remove redundant statement.
58176
58177 2007-07-07  Bruno Haible  <bruno@clisp.org>
58178
58179         * MODULES.html.sh (Unicode string functions): Add the new modules.
58180
58181         * tests/uniwidth/test-u32-strwidth.c: New file.
58182         * modules/uniwidth/u32-strwidth-tests: New file.
58183
58184         * lib/uniwidth/u32-strwidth.c: New file.
58185         * modules/uniwidth/u32-strwidth: New file.
58186
58187         * tests/uniwidth/test-u16-strwidth.c: New file.
58188         * modules/uniwidth/u16-strwidth-tests: New file.
58189
58190         * lib/uniwidth/u16-strwidth.c: New file.
58191         * modules/uniwidth/u16-strwidth: New file.
58192
58193         * tests/uniwidth/test-u8-strwidth.c: New file.
58194         * modules/uniwidth/u8-strwidth-tests: New file.
58195
58196         * lib/uniwidth/u8-strwidth.c: New file.
58197         * modules/uniwidth/u8-strwidth: New file.
58198
58199         * tests/uniwidth/test-u32-width.c: New file.
58200         * modules/uniwidth/u32-width-tests: New file.
58201
58202         * lib/uniwidth/u32-width.c: New file.
58203         * modules/uniwidth/u32-width: New file.
58204
58205         * tests/uniwidth/test-u16-width.c: New file.
58206         * modules/uniwidth/u16-width-tests: New file.
58207
58208         * lib/uniwidth/u16-width.c: New file.
58209         * modules/uniwidth/u16-width: New file.
58210
58211         * tests/uniwidth/test-u8-width.c: New file.
58212         * modules/uniwidth/u8-width-tests: New file.
58213
58214         * lib/uniwidth/u8-width.c: New file.
58215         * modules/uniwidth/u8-width: New file.
58216
58217         * tests/uniwidth/test-uc_width.c: New file.
58218         * modules/uniwidth/width-tests: New file.
58219
58220         * lib/uniwidth/width.c: New file, from GNU libiconv.
58221         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58222         * modules/uniwidth/width: New file.
58223
58224         * lib/uniwidth.h: New file, from GNU libiconv.
58225         * modules/uniwidth/base: New file.
58226
58227 2007-07-07  Bruno Haible  <bruno@clisp.org>
58228
58229         * lib/uniname.h: New file, from GNU gettext.
58230         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58231         * lib/uniname/uninames.h: New file, from GNU gettext.
58232         * lib/uniname/uniname.c: New file, from GNU gettext.
58233         * tests/uniname/test-uninames.sh: New file.
58234         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58235         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58236         * modules/uniname/base: New file.
58237         * modules/uniname/uniname: New file.
58238         * modules/uniname/uniname-tests: New file.
58239         * MODULES.html.sh (Unicode string functions): Add the new modules.
58240
58241 2007-07-06  Bruno Haible  <bruno@clisp.org>
58242
58243         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58244
58245 2007-07-06  Bruno Haible  <bruno@clisp.org>
58246
58247         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58248         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58249         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58250         include <sys/time.h>.
58251         Reported by Eric Blake.
58252
58253 2007-07-06  Eric Blake  <ebb9@byu.net>
58254
58255         Fix testing canonicalize on cygwin.
58256         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58257         Revert patch from 2007-06-19.
58258         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58259         canonicalize module is also in use.
58260         * tests/test-canonicalize.c: New file.
58261         * tests/test-canonicalize.sh: Likewise.
58262         * modules/canonicalize-tests: Likewise.
58263
58264 2007-07-06  Jim Meyering  <jim@meyering.net>
58265
58266         * lib/getugroups.c (getugroups): Detect getgrent failure.
58267         Adjust comment to reflect reality: this function may return -1.
58268
58269 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58270
58271         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58272         the new TP address.
58273         (usage): Fix typo
58274         (gnulib_mk): New variable.
58275
58276 2007-07-05  Jim Meyering  <jim@meyering.net>
58277
58278         Don't let endgrent clobber errno, no matter how improbable.
58279         * lib/getugroups.c (getugroups): Save and restore errno around
58280         endgrent call.
58281
58282         Close the group DB even when failing with 2^31 or more members.
58283         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58284
58285 2007-07-04  Jim Meyering  <jim@meyering.net>
58286
58287         * lib/getugroups.h: New file.
58288         * lib/getugroups.c: Include "getugroups.h".
58289         Remove uses of "register" keyword.
58290         Move local variable, "cp", down into scope where used.
58291         Give "username" parameter the "const" attribute.
58292         * modules/getugroups (Files): Add lib/getugroups.h
58293
58294 2007-07-04  Karl Berry  <karl@gnu.org>
58295
58296         * MODULES.html.sh (func_all_modules): Complete rename of
58297         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58298
58299 2007-07-02  Bruno Haible  <bruno@clisp.org>
58300
58301         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58302         mode, when inttypes.h comes from gnulib.
58303         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58304
58305 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58306
58307         * NEWS: Mention lgpl module name change.
58308
58309         * modules/lgpl-2.1: Renamed from lgpl.
58310
58311         * NEWS: Mention gpl module name change.
58312
58313         * modules/gpl-3.0: New file, based on gpl-2.0.
58314
58315         * modules/gpl-2.0: Renamed from gpl.
58316
58317         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58318         doc/gpl-2.0.texi.
58319
58320 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58321
58322         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58323         #define __STDC_LIMIT_MACROS temporarily while including
58324         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58325         Problem reported by Joel E. Denny in
58326         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58327
58328 2007-07-01  Bruno Haible  <bruno@clisp.org>
58329
58330         * lib/unistdio.h: New file.
58331         * lib/unistdio/u-asnprintf.h: New file.
58332         * lib/unistdio/u-asprintf.h: New file.
58333         * lib/unistdio/u-printf-args.c: New file.
58334         * lib/unistdio/u-printf-args.h: New file.
58335         * lib/unistdio/u-printf-parse.h: New file.
58336         * lib/unistdio/u-snprintf.h: New file.
58337         * lib/unistdio/u-sprintf.h: New file.
58338         * lib/unistdio/u-vasprintf.h: New file.
58339         * lib/unistdio/u-vsnprintf.h: New file.
58340         * lib/unistdio/u-vsprintf.h: New file.
58341         * lib/unistdio/ulc-asnprintf.c: New file.
58342         * lib/unistdio/ulc-asprintf.c: New file.
58343         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58344         * lib/unistdio/ulc-printf-parse.c: New file.
58345         * lib/unistdio/ulc-snprintf.c: New file.
58346         * lib/unistdio/ulc-sprintf.c: New file.
58347         * lib/unistdio/ulc-vasnprintf.c: New file.
58348         * lib/unistdio/ulc-vasprintf.c: New file.
58349         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58350         * lib/unistdio/ulc-vsnprintf.c: New file.
58351         * lib/unistdio/ulc-vsprintf.c: New file.
58352         * lib/unistdio/u8-asnprintf.c: New file.
58353         * lib/unistdio/u8-asprintf.c: New file.
58354         * lib/unistdio/u8-printf-parse.c: New file.
58355         * lib/unistdio/u8-snprintf.c: New file.
58356         * lib/unistdio/u8-sprintf.c: New file.
58357         * lib/unistdio/u8-vasnprintf.c: New file.
58358         * lib/unistdio/u8-vasprintf.c: New file.
58359         * lib/unistdio/u8-vsnprintf.c: New file.
58360         * lib/unistdio/u8-vsprintf.c: New file.
58361         * lib/unistdio/u8-u8-asnprintf.c: New file.
58362         * lib/unistdio/u8-u8-asprintf.c: New file.
58363         * lib/unistdio/u8-u8-snprintf.c: New file.
58364         * lib/unistdio/u8-u8-sprintf.c: New file.
58365         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58366         * lib/unistdio/u8-u8-vasprintf.c: New file.
58367         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58368         * lib/unistdio/u8-u8-vsprintf.c: New file.
58369         * lib/unistdio/u16-asnprintf.c: New file.
58370         * lib/unistdio/u16-asprintf.c: New file.
58371         * lib/unistdio/u16-printf-parse.c: New file.
58372         * lib/unistdio/u16-snprintf.c: New file.
58373         * lib/unistdio/u16-sprintf.c: New file.
58374         * lib/unistdio/u16-vasnprintf.c: New file.
58375         * lib/unistdio/u16-vasprintf.c: New file.
58376         * lib/unistdio/u16-vsnprintf.c: New file.
58377         * lib/unistdio/u16-vsprintf.c: New file.
58378         * lib/unistdio/u16-u16-asnprintf.c: New file.
58379         * lib/unistdio/u16-u16-asprintf.c: New file.
58380         * lib/unistdio/u16-u16-snprintf.c: New file.
58381         * lib/unistdio/u16-u16-sprintf.c: New file.
58382         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58383         * lib/unistdio/u16-u16-vasprintf.c: New file.
58384         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58385         * lib/unistdio/u16-u16-vsprintf.c: New file.
58386         * lib/unistdio/u32-asnprintf.c: New file.
58387         * lib/unistdio/u32-asprintf.c: New file.
58388         * lib/unistdio/u32-printf-parse.c: New file.
58389         * lib/unistdio/u32-snprintf.c: New file.
58390         * lib/unistdio/u32-sprintf.c: New file.
58391         * lib/unistdio/u32-vasnprintf.c: New file.
58392         * lib/unistdio/u32-vasprintf.c: New file.
58393         * lib/unistdio/u32-vsnprintf.c: New file.
58394         * lib/unistdio/u32-vsprintf.c: New file.
58395         * lib/unistdio/u32-u32-asnprintf.c: New file.
58396         * lib/unistdio/u32-u32-asprintf.c: New file.
58397         * lib/unistdio/u32-u32-snprintf.c: New file.
58398         * lib/unistdio/u32-u32-sprintf.c: New file.
58399         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58400         * lib/unistdio/u32-u32-vasprintf.c: New file.
58401         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58402         * lib/unistdio/u32-u32-vsprintf.c: New file.
58403         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58404         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58405         * tests/unistdio/test-ulc-printf1.h: New file.
58406         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58407         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58408         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58409         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58410         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58411         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58412         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58413         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58414         * tests/unistdio/test-u8-asnprintf1.c: New file.
58415         * tests/unistdio/test-u8-asnprintf1.h: New file.
58416         * tests/unistdio/test-u8-printf1.h: New file.
58417         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58418         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58419         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58420         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58421         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58422         * tests/unistdio/test-u8-vasprintf1.c: New file.
58423         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58424         * tests/unistdio/test-u8-vsprintf1.c: New file.
58425         * tests/unistdio/test-u16-asnprintf1.c: New file.
58426         * tests/unistdio/test-u16-asnprintf1.h: New file.
58427         * tests/unistdio/test-u16-printf1.h: New file.
58428         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58429         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58430         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58431         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58432         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58433         * tests/unistdio/test-u16-vasprintf1.c: New file.
58434         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58435         * tests/unistdio/test-u16-vsprintf1.c: New file.
58436         * tests/unistdio/test-u32-asnprintf1.c: New file.
58437         * tests/unistdio/test-u32-asnprintf1.h: New file.
58438         * tests/unistdio/test-u32-printf1.h: New file.
58439         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58440         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58441         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58442         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58443         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58444         * tests/unistdio/test-u32-vasprintf1.c: New file.
58445         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58446         * tests/unistdio/test-u32-vsprintf1.c: New file.
58447         * modules/unistdio/base: New file.
58448         * modules/unistdio/u-printf-args: New file.
58449         * modules/unistdio/ulc-asnprintf: New file.
58450         * modules/unistdio/ulc-asprintf: New file.
58451         * modules/unistdio/ulc-fprintf: New file.
58452         * modules/unistdio/ulc-printf-parse: New file.
58453         * modules/unistdio/ulc-snprintf: New file.
58454         * modules/unistdio/ulc-sprintf: New file.
58455         * modules/unistdio/ulc-vasnprintf: New file.
58456         * modules/unistdio/ulc-vasprintf: New file.
58457         * modules/unistdio/ulc-vfprintf: New file.
58458         * modules/unistdio/ulc-vsnprintf: New file.
58459         * modules/unistdio/ulc-vsprintf: New file.
58460         * modules/unistdio/u8-asnprintf: New file.
58461         * modules/unistdio/u8-asprintf: New file.
58462         * modules/unistdio/u8-printf-parse: New file.
58463         * modules/unistdio/u8-snprintf: New file.
58464         * modules/unistdio/u8-sprintf: New file.
58465         * modules/unistdio/u8-vasnprintf: New file.
58466         * modules/unistdio/u8-vasprintf: New file.
58467         * modules/unistdio/u8-vsnprintf: New file.
58468         * modules/unistdio/u8-vsprintf: New file.
58469         * modules/unistdio/u8-u8-asnprintf: New file.
58470         * modules/unistdio/u8-u8-asprintf: New file.
58471         * modules/unistdio/u8-u8-snprintf: New file.
58472         * modules/unistdio/u8-u8-sprintf: New file.
58473         * modules/unistdio/u8-u8-vasnprintf: New file.
58474         * modules/unistdio/u8-u8-vasprintf: New file.
58475         * modules/unistdio/u8-u8-vsnprintf: New file.
58476         * modules/unistdio/u8-u8-vsprintf: New file.
58477         * modules/unistdio/u16-asnprintf: New file.
58478         * modules/unistdio/u16-asprintf: New file.
58479         * modules/unistdio/u16-printf-parse: New file.
58480         * modules/unistdio/u16-snprintf: New file.
58481         * modules/unistdio/u16-sprintf: New file.
58482         * modules/unistdio/u16-vasnprintf: New file.
58483         * modules/unistdio/u16-vasprintf: New file.
58484         * modules/unistdio/u16-vsnprintf: New file.
58485         * modules/unistdio/u16-vsprintf: New file.
58486         * modules/unistdio/u16-u16-asnprintf: New file.
58487         * modules/unistdio/u16-u16-asprintf: New file.
58488         * modules/unistdio/u16-u16-snprintf: New file.
58489         * modules/unistdio/u16-u16-sprintf: New file.
58490         * modules/unistdio/u16-u16-vasnprintf: New file.
58491         * modules/unistdio/u16-u16-vasprintf: New file.
58492         * modules/unistdio/u16-u16-vsnprintf: New file.
58493         * modules/unistdio/u16-u16-vsprintf: New file.
58494         * modules/unistdio/u32-asnprintf: New file.
58495         * modules/unistdio/u32-asprintf: New file.
58496         * modules/unistdio/u32-printf-parse: New file.
58497         * modules/unistdio/u32-snprintf: New file.
58498         * modules/unistdio/u32-sprintf: New file.
58499         * modules/unistdio/u32-vasnprintf: New file.
58500         * modules/unistdio/u32-vasprintf: New file.
58501         * modules/unistdio/u32-vsnprintf: New file.
58502         * modules/unistdio/u32-vsprintf: New file.
58503         * modules/unistdio/u32-u32-asnprintf: New file.
58504         * modules/unistdio/u32-u32-asprintf: New file.
58505         * modules/unistdio/u32-u32-snprintf: New file.
58506         * modules/unistdio/u32-u32-sprintf: New file.
58507         * modules/unistdio/u32-u32-vasnprintf: New file.
58508         * modules/unistdio/u32-u32-vasprintf: New file.
58509         * modules/unistdio/u32-u32-vsnprintf: New file.
58510         * modules/unistdio/u32-u32-vsprintf: New file.
58511         * modules/unistdio/ulc-asnprintf-tests: New file.
58512         * modules/unistdio/ulc-vasnprintf-tests: New file.
58513         * modules/unistdio/ulc-vasprintf-tests: New file.
58514         * modules/unistdio/ulc-vsnprintf-tests: New file.
58515         * modules/unistdio/ulc-vsprintf-tests: New file.
58516         * modules/unistdio/u8-asnprintf-tests: New file.
58517         * modules/unistdio/u8-vasnprintf-tests: New file.
58518         * modules/unistdio/u8-vasprintf-tests: New file.
58519         * modules/unistdio/u8-vsnprintf-tests: New file.
58520         * modules/unistdio/u8-vsprintf-tests: New file.
58521         * modules/unistdio/u16-asnprintf-tests: New file.
58522         * modules/unistdio/u16-vasnprintf-tests: New file.
58523         * modules/unistdio/u16-vasprintf-tests: New file.
58524         * modules/unistdio/u16-vsnprintf-tests: New file.
58525         * modules/unistdio/u16-vsprintf-tests: New file.
58526         * modules/unistdio/u32-asnprintf-tests: New file.
58527         * modules/unistdio/u32-vasnprintf-tests: New file.
58528         * modules/unistdio/u32-vasprintf-tests: New file.
58529         * modules/unistdio/u32-vsnprintf-tests: New file.
58530         * modules/unistdio/u32-vsprintf-tests: New file.
58531         * MODULES.html.sh (Unicode string functions): Add the new modules.
58532
58533 2007-07-01  Bruno Haible  <bruno@clisp.org>
58534
58535         * lib/sprintf.c (sprintf): Limit the available length estimation,
58536         to avoid address wraparound.
58537         * lib/vsprintf.c (vsprintf): Likewise.
58538         * modules/sprintf-posix (Dependencies): Add stdint.
58539         * modules/vsprintf-posix (Dependencies): Likewise.
58540
58541 2007-07-01  Bruno Haible  <bruno@clisp.org>
58542
58543         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58544         Windows PATH as well. Conservative double-quoting. Comments.
58545
58546 2007-07-01  Bruno Haible  <bruno@clisp.org>
58547             Eric Blake  <ebb9@byu.net>
58548             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58549
58550         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58551         empty components in $PATH, denoting '.'.
58552
58553 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58554
58555         * gnulib-tool: Fix indentation.
58556         (func_create_megatestdir): Likewise.
58557         Report by Bruno Haible.
58558
58559 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58560
58561         Sync from Automake.
58562         * build-aux/gnupload: Fix shell portability issues with for loops.
58563         Report by Karl Berry.
58564
58565 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58566
58567         * build-aux/maint.mk (POURL): Use translationproject.org.
58568
58569 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58570             Bruno Haible  <bruno@clisp.org>
58571
58572         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58573         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58574         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58575         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58576         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58577
58578 2007-06-27  Bruno Haible  <bruno@clisp.org>
58579
58580         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58581         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58582
58583 2007-06-26  Karl Berry  <karl@gnu.org>
58584
58585         * MODULES.html.sh: remove xreadlink-with-size.
58586
58587 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58588
58589         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58590         method that I hope also handles the double-include problem noted
58591         by Bruno Haible in
58592         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58593
58594 2007-06-23  Bruno Haible  <bruno@clisp.org>
58595
58596         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58597         Don't let the 'mostlyclean' target fail if the last subdirectory could
58598         not be removed.
58599         Reported by Karl Berry.
58600
58601 2007-06-23  Bruno Haible  <bruno@clisp.org>
58602
58603         * gnulib-tool (echo): Add a speedier workaround for ksh.
58604         * tests/test-echo.sh: Likewise.
58605
58606 2007-06-23  Bruno Haible  <bruno@clisp.org>
58607
58608         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58609         * tests/test-echo.sh: Likewise.
58610
58611 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58612
58613         * gnulib-tool (IFS): Initialize early, so we don't set it to
58614         empty later.
58615         (self_abspathname): Rewrite algorithm to set it, reindent.
58616         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58617         (func_create_megatestdir): Merge some sed scripts.
58618
58619 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58620
58621         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58622         exposed by Sun Studio 11 cc on Solaris 8.
58623
58624 2007-06-22  Bruno Haible  <bruno@clisp.org>
58625
58626         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58627         backslashes.
58628         * tests/test-echo.sh: New file.
58629
58630 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58631
58632         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58633         simplify `sed_replace_build_aux' scripts, they are portable but
58634         echoing them with `echo' is not.
58635         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58636
58637 2007-06-21  Karl Berry  <karl@gnu.org>
58638
58639         * config/srclist.txt: guess we can't handle the licenses via
58640         srclist at the moment.
58641
58642 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58643
58644         * MODULES.html.sh: Add include_next.
58645         * modules/include_next: New file.
58646
58647 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58648
58649         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58650         INCLUDE_NEXT.
58651         (gl_CHECK_NEXT_HEADERS): New macro.
58652         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58653         the obsolescent gl_ABSOLUTE_HEADER.
58654         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58655         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58656         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58657         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58658         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58659         * m4/math_h.m4 (gl_MATH_H): Likewise.
58660         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58661         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58662         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58663         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58664         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58665         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58666         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58667         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58668         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58669         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58670         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58671         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58672         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58673         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58674         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58675         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58676         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58677         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58678         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58679         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58680         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58681         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58682         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58683         * lib/float_.h: Likewise.
58684         * lib/inttypes_.h: Likewise.
58685         * lib/math_.h: Likewise.
58686         * lib/search_.h: Likewise.
58687         * lib/signal_.h: Likewise.
58688         * lib/stdint_.h: Likewise.
58689         * lib/stdio_.h: Likewise.
58690         * lib/stdlib_.h: Likewise.
58691         * lib/string_.h: Likewise.
58692         * lib/sys_stat_.h: Likewise.
58693         * lib/sys_time_.h: Likewise.
58694         * lib/time_.h: Likewise.
58695         * lib/unistd_.h: Likewise.
58696         * lib/wchar_.h: Likewise.
58697         * lib/wctype_.h: Likewise.
58698         * lib/dirent_.h: Likewise.
58699         * lib/iconv_.h: Likewise.
58700         * lib/locale_.h: Likewise.
58701         * lib/netinet_in_.h: Likewise.
58702         * lib/sys_select_.h: Likewise.
58703         * lib/sys_socket_.h: Likewise.
58704         * lib/sysexits_.h: Likewise.
58705         * modules/fcntl (Depends-on): Depend on include_next, not
58706         absolute_header.
58707         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58708         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58709         * modules/fchdir: Likewise.
58710         * modules/float: Likewise.
58711         * modules/iconv_open: Likewise.
58712         * modules/inttypes: Likewise.
58713         * modules/locale: Likewise.
58714         * modules/math: Likewise.
58715         * modules/netinet_in: Likewise.
58716         * modules/search: Likewise.
58717         * modules/signal: Likewise.
58718         * modules/stdint: Likewise.
58719         * modules/stdio: Likewise.
58720         * modules/stdlib: Likewise.
58721         * modules/string: Likewise.
58722         * modules/sys_select: Likewise.
58723         * modules/sys_socket: Likewise.
58724         * modules/sys_stat: Likewise.
58725         * modules/sys_time: Likewise.
58726         * modules/sysexits: Likewise.
58727         * modules/time: Likewise.
58728         * modules/unistd: Likewise.
58729         * modules/wchar: Likewise.
58730         * modules/wctype: Likewise.
58731         * modules/sys_stat: Change maintainer to "all".
58732         * modules/unistd: Likewise.
58733
58734 2007-06-20  Karl Berry  <karl@gnu.org>
58735
58736         * config/srclist.txt: track www changes in license files.
58737
58738 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58739
58740         * build-aux/bootstrap: Remove stray dot.
58741         Make sure build_aux settings are honored when linking
58742         gnulib_extra_files.
58743
58744 2007-06-19  Eric Blake  <ebb9@byu.net>
58745
58746         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58747         Allow compilation on cygwin.
58748
58749 2007-06-19  Jim Meyering  <jim@meyering.net>
58750
58751         xreadlink-with-size: Remove module.  No longer used.
58752         Ex-callers now use xreadlink or mreadlink-with-size.
58753         * modules/xreadlink-with-size: Remove module.
58754         * lib/xreadlink-with-size.c: Remove file.
58755         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58756         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58757         just before the function definition *is* accurate.
58758
58759         Eliminate one way canonicalize_filename_mode could exit.
58760         * lib/canonicalize.c (canonicalize_filename_mode):
58761         Use mreadlink_with_size, not xreadlink_with_size.
58762
58763 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58764
58765         Detect porting problems to FreeBSD/arm, which has time_t wider than
58766         long int.  Original problem reported for GNU diff by Xin Li in
58767         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58768         * modules/getdate (Depends-on): Add intprops, verify.
58769         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58770         is an integer type no wider than long int.
58771
58772 2007-06-18  Jim Meyering  <jim@meyering.net>
58773
58774         New module: mreadlink-with-size.
58775         * MODULES.html.sh: Add mreadlink-with-size.
58776         * modules/mreadlink-with-size: New module
58777         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58778         not xreadlink-with-size.
58779         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58780
58781 2007-06-16  Bruno Haible  <bruno@clisp.org>
58782
58783         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58784         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58785         Reported by Gary V. Vaughan <gary@gnu.org>.
58786
58787 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58788
58789         Revamp lchown so that it lives in unistd.h where it belongs.
58790         * lib/lchown.h: Remove.
58791         * lib/dirchownmod.c: Don't include lib/lchown.h.
58792         * lib/fchownat.c: Likewise.
58793         * lib/openat.c: Likewise.
58794         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58795         does not follow symlinks.
58796         (EOPNOTSUPP): Define if not defined.
58797         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58798         is defined to 0.
58799         (lchown): New decl.
58800         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58801         Do not check for lchown decl.
58802         Set REPLACE_LCHOWN.
58803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58804         REPLACE_LCHOWN.
58805         * modules/chown: Make it clear it follows symlinks.
58806         * modules/lchown: Make it clear it doesn't follow symlinks.
58807         (Files): Remove lib/lchown.h
58808         (Depends-on): Add unistd.
58809         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58810         (Include): Include <unistd.h>, not "lchown.h".
58811         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58812         REPLACE_LCHOWN.
58813
58814 2007-06-15  Jim Meyering  <jim@meyering.net>
58815
58816         Change license (GPL to LGPL) of fsusage and dependents.
58817         * modules/fsusage (License): Change to LGPL.
58818         * modules/full-read (License): Likewise.
58819         * modules/full-write (License): Likewise.
58820         * modules/safe-read (License): Likewise.
58821         * modules/safe-write (License): Likewise.
58822
58823 2007-06-14  Ben Pfaff  <blp@gnu.org>
58824
58825         Missing part of allocsa -> malloca transition.
58826         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58827         gl_MALLOCA.
58828
58829 2007-06-12  Bruno Haible  <bruno@clisp.org>
58830
58831         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58832         to ia64, x86_64, i386.
58833         Reported by Eric Blake.
58834
58835 2007-06-12  Bruno Haible  <bruno@clisp.org>
58836
58837         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58838         cross-compiling to x86_64.
58839
58840 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58841
58842         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58843         glitch reported by Ralf Wildenhues in
58844         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58845
58846         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58847         Vin Shelton.
58848
58849 2007-06-11  Bruno Haible  <bruno@clisp.org>
58850
58851         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58852         replacement string.
58853         Reported by Eric Blake.
58854
58855 2007-06-10  Bruno Haible  <bruno@clisp.org>
58856
58857         Prepare vasnprintf code for use with Unicode strings.
58858         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58859         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58860         TYPE_U32_STRING.
58861         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58862         a_u32_string variants.
58863         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58864         * lib/printf-args.c: Don't include config.h and the specification
58865         header if PRINTF_FETCHARGS is already defined.
58866         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58867         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58868         TYPE_U16_STRING, TYPE_U32_STRING.
58869         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58870         u16_directive, u16_directives, u32_directive, u32_directives): New
58871         types.
58872         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58873         New declarations.
58874         * lib/printf-parse.c: Don't include config.h and the specification
58875         header if PRINTF_PARSE is already defined. Eliminate the set of
58876         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58877         them now. Include c-ctype.h.
58878         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58879         directive and CHAR_T_ONLY_ASCII.
58880         * lib/vasnprintf.c: Don't include config.h and the specification header
58881         if VASNPRINTF is already defined.
58882         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58883         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58884         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58885         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58886         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58887         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58888         code accordingly.
58889         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58890         pad_ourselves also in this case, with the 'c' and 's' directives, and
58891         with a different notion of "width".
58892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58893
58894 2007-06-10  Bruno Haible  <bruno@clisp.org>
58895
58896         * modules/unistr/u32-mbsnlen: New file.
58897         * lib/unistr/u32-mbsnlen.c: New file.
58898
58899         * modules/unistr/u16-mbsnlen: New file.
58900         * lib/unistr/u16-mbsnlen.c: New file.
58901
58902         * modules/unistr/u8-mbsnlen: New file.
58903         * lib/unistr/u8-mbsnlen.c: New file.
58904
58905         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58906         declarations.
58907
58908 2007-06-10  Bruno Haible  <bruno@clisp.org>
58909
58910         * lib/string_.h (mbsnlen): New declaration.
58911         * lib/mbsnlen.c: New file.
58912         * m4/mbsnlen.m4: New file.
58913         * modules/mbsnlen: New file.
58914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58915         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58916         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58917
58918 2007-06-10  Bruno Haible  <bruno@clisp.org>
58919
58920         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58921
58922 2007-06-10  Bruno Haible  <bruno@clisp.org>
58923
58924         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58925         * lib/mbuiter.h: Likewise.
58926
58927 2007-06-10  Bruno Haible  <bruno@clisp.org>
58928
58929         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58930         declaration.
58931
58932 2007-06-10  Karl Berry  <karl@gnu.org>
58933
58934         * config/srclist.txt: remove gettext entries, Bruno prefers
58935         to update individually.
58936
58937 2007-06-10  Bruno Haible  <bruno@clisp.org>
58938
58939         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58940         'maxlen'. Ensure only length + width bytes are allocated, not
58941         length + 1 + width.
58942
58943 2007-06-09  Bruno Haible  <bruno@clisp.org>
58944
58945         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58946         (CHAR_T): Remove macro.
58947         (VASNPRINTF): Update.
58948
58949 2007-06-09  Bruno Haible  <bruno@clisp.org>
58950
58951         * MODULES.html.sh (Unicode string functions): Add the new modules.
58952
58953         * modules/uniconv/u32-conv-to-enc: New file.
58954         * lib/uniconv/u32-conv-to-enc.c: New file.
58955         * modules/uniconv/u32-conv-to-enc-tests: New file.
58956         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58957
58958         * modules/uniconv/u16-conv-to-enc: New file.
58959         * lib/uniconv/u16-conv-to-enc.c: New file.
58960         * lib/uniconv/u-conv-to-enc.h: New file.
58961         * modules/uniconv/u16-conv-to-enc-tests: New file.
58962         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58963
58964         * modules/uniconv/u8-conv-to-enc: New file.
58965         * lib/uniconv/u8-conv-to-enc.c: New file.
58966         * modules/uniconv/u8-conv-to-enc-tests: New file.
58967         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58968
58969         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58970         u32_conv_to_encoding): New declarations.
58971
58972 2007-06-09  Bruno Haible  <bruno@clisp.org>
58973
58974         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58975
58976 2007-06-09  Bruno Haible  <bruno@clisp.org>
58977
58978         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58979         * modules/malloca: Renamed from modules/allocsa, updated.
58980         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58981         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58982         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58983         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58984         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58985         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58986         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58987         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58988         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58989         * modules/c-strcasestr (Depends-on): Update.
58990         * lib/c-strcasestr.c: Update.
58991         * modules/c-strstr (Depends-on): Update.
58992         * lib/c-strstr.c: Update.
58993         * modules/canonicalize-lgpl (Depends-on): Update.
58994         * lib/canonicalize-lgpl.c: Update.
58995         * modules/clean-temp (Depends-on): Update.
58996         * lib/clean-temp.c: Update.
58997         * modules/csharpcomp (Depends-on): Update.
58998         * lib/csharpcomp.c: Update.
58999         * modules/csharpexec (Depends-on): Update.
59000         * lib/csharpexec.c: Update.
59001         * modules/javacomp (Depends-on): Update.
59002         * lib/javacomp.c: Update.
59003         * modules/javaexec (Depends-on): Update.
59004         * lib/javaexec.c: Update.
59005         * modules/mbscasestr (Depends-on): Update.
59006         * lib/mbscasestr.c: Update.
59007         * modules/mbsstr (Depends-on): Update.
59008         * lib/mbsstr.c: Update.
59009         * modules/setenv (Depends-on): Update.
59010         * lib/setenv.c: Update.
59011         * modules/strcasestr (Depends-on): Update.
59012         * lib/strcasestr.c: Update.
59013         * modules/striconveha (Depends-on): Update.
59014         * lib/striconveha.c: Update.
59015         * modules/relocatable-prog-wrapper (Files): Update.
59016         * lib/relocwrapper.c: Update.
59017         * build-aux/install-reloc: Update.
59018         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59019
59020 2007-06-08  Bruno Haible  <bruno@clisp.org>
59021
59022         Port to uClibc.
59023         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59024         * lib/fpurge.c (fpurge): Likewise.
59025         * lib/freading.c (freading): Likewise.
59026         * lib/fseeko.c (rpl_fseeko): Likewise.
59027         * lib/fseterr.c (fseterr): Likewise.
59028         * lib/fwriting.c (fwriting): Likewise.
59029         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59030
59031 2007-06-08  Bruno Haible  <bruno@clisp.org>
59032
59033         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59034         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59035         * modules/gettext (Files): Add m4/intlmacosx.m4.
59036
59037 2007-06-07  Bruno Haible  <bruno@clisp.org>
59038
59039         * modules/localename-tests: New file.
59040         * tests/test-localename.c: New file.
59041
59042         New module 'localename'.
59043         * lib/localename.h: New file.
59044         * lib/localename.c: New file, from GNU gettext.
59045         * m4/localename.m4: New file.
59046         * modules/localename: New file.
59047
59048 2007-06-07  Bruno Haible  <bruno@clisp.org>
59049
59050         Work around the lack of <wchar.h> on some builds of uClibc.
59051         * doc/headers/wchar.texi: Update.
59052         * lib/wchar_.h: Include <wchar.h> only if it exists.
59053         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59054         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59055         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59056         doesn't exist.
59057         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59058         * modules/mbfile (Depends-on): Add wchar.
59059         * modules/mbiter (Depends-on): Likewise.
59060         * modules/mbuiter (Depends-on): Likewise.
59061         Reported by Simon Josefsson.
59062
59063 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59064
59065         Work around problem reported by Steven M. Schweda in
59066         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59067         Tru64 5.1B with the Compaq compiler environment installed declares
59068         an 'isblank' function but does not define it in the C library.
59069         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59070         * lib/regex_internal.h (isblank): Likewise.
59071         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59072         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59073
59074 2007-06-05  Bruno Haible  <bruno@clisp.org>
59075
59076         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59077         ia64.
59078         * modules/printf-safe: New file.
59079         * modules/fprintf-posix (Depends-on): Add printf-safe.
59080         * modules/printf-posix (Depends-on): Likewise.
59081         * modules/snprintf-posix (Depends-on): Likewise.
59082         * modules/sprintf-posix (Depends-on): Likewise.
59083         * modules/vasnprintf-posix (Depends-on): Likewise.
59084         * modules/vasprintf-posix (Depends-on): Likewise.
59085         * modules/vfprintf-posix (Depends-on): Likewise.
59086         * modules/vprintf-posix (Depends-on): Likewise.
59087         * modules/vsnprintf-posix (Depends-on): Likewise.
59088         * modules/vsprintf-posix (Depends-on): Likewise.
59089         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59090         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59091         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59092         "no" on i386, x86_64, ia64.
59093         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59094         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59095         on i386, x86_64, ia64.
59096         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59097         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59098         on i386, x86_64, ia64.
59099         * tests/test-vasnprintf-posix.c: Include float.h.
59100         (LDBL80_WORDS): New macro.
59101         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59102         on i386, x86_64, ia64.
59103         * tests/test-vasprintf-posix.c: Include float.h.
59104         (LDBL80_WORDS): New macro.
59105         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59106         on i386, x86_64, ia64.
59107         * tests/test-snprintf-posix.c: Include float.h.
59108         * tests/test-sprintf-posix.c: Likewise.
59109         * tests/test-vsnprintf-posix.c: Likewise.
59110         * tests/test-vsprintf-posix.c: Likewise.
59111
59112 2007-06-05  Bruno Haible  <bruno@clisp.org>
59113
59114         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59115         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59116         non-IEEE numbers on i386, x86_64, ia64.
59117         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59118         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59119         * tests/test-isnanl.h: Include float.h.
59120         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59121
59122 2007-06-05  Bruno Haible  <bruno@clisp.org>
59123
59124         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59125         also the %a / %A. Handle the %a / %A code before this extra handling.
59126
59127 2007-06-05  Bruno Haible  <bruno@clisp.org>
59128
59129         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59130         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59131
59132 2007-06-05  Bruno Haible  <bruno@clisp.org>
59133
59134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59135         typo in variable name.
59136
59137 2007-06-05  Eric Blake  <ebb9@byu.net>
59138
59139         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59140         Reported by Simon Josefsson.
59141
59142 2007-06-04  Bruno Haible  <bruno@clisp.org>
59143
59144         Avoid test failures on some PowerPC platforms.
59145         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59146         Define differently for PowerPC.
59147         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59148         Reported by Gary V. Vaughan <gary@gnu.org>.
59149
59150 2007-06-02  Bruno Haible  <bruno@clisp.org>
59151
59152         Fix test-stdint failure on FreeBSD/ia64.
59153         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59154         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59155         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59156         * doc/headers/stdint.texi: Update.
59157
59158 2007-06-01  Bruno Haible  <bruno@clisp.org>
59159
59160         * tests/test-binary-io.c (main): Pass a third argument to open().
59161         Reported by Gary V. Vaughan <gary@gnu.org>.
59162
59163 2007-06-01  Bruno Haible  <bruno@clisp.org>
59164
59165         * doc/functions/frexpl.texi: Update for mingw.
59166
59167 2007-06-01  Bruno Haible  <bruno@clisp.org>
59168
59169         * tests/test-lseek.c (main): Disable test of errno for invalid third
59170         argument.
59171         * doc/functions/lseek.texi: Update.
59172         Reported by Gary V. Vaughan <gary@gnu.org>.
59173
59174 2007-05-28  Bruno Haible  <bruno@clisp.org>
59175
59176         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59177
59178 2007-05-31  Eric Blake  <ebb9@byu.net>
59179
59180         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59181         cross compiling.
59182
59183 2007-05-30  Eric Blake  <ebb9@byu.net>
59184         and Bruno Haible  <bruno@clisp.org>
59185
59186         Work around mingw test failures exposed by m4-1.4.9b.
59187         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59188         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59189         moment.
59190
59191 2007-05-30  Bruno Haible  <bruno@clisp.org>
59192
59193         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59194         assuming that they are closed. Needed on HP-UX 11.
59195
59196 2007-05-29  Bruno Haible  <bruno@clisp.org>
59197
59198         Fix a problem with #include_next.
59199         * lib/dirent_.h: Split the double-inclusion guard.
59200         * lib/fcntl_.h: Likewise.
59201         * lib/float_.h: Likewise.
59202         * lib/iconv_.h: Likewise.
59203         * lib/inttypes_.h: Likewise.
59204         * lib/locale_.h: Likewise.
59205         * lib/math_.h: Likewise.
59206         * lib/netinet_in_.h: Likewise.
59207         * lib/search_.h: Likewise.
59208         * lib/signal_.h: Likewise.
59209         * lib/stdint_.h: Likewise.
59210         * lib/stdio_.h: Likewise.
59211         * lib/stdlib_.h: Likewise.
59212         * lib/string_.h: Likewise.
59213         * lib/sys_select_.h: Likewise.
59214         * lib/sys_socket_.h: Likewise.
59215         * lib/sys_stat_.h: Likewise.
59216         * lib/sys_time_.h: Likewise.
59217         * lib/sysexits_.h: Likewise.
59218         * lib/time_.h: Likewise.
59219         * lib/unistd_.h: Likewise.
59220         * lib/wchar_.h: Likewise.
59221         * lib/wctype_.h: Likewise.
59222
59223 2007-05-29  Bruno Haible  <bruno@clisp.org>
59224
59225         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59226         for the moment.
59227
59228 2007-05-29  Bruno Haible  <bruno@clisp.org>
59229
59230         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59231         invocation.
59232         Reported by Eric Blake.
59233
59234 2007-05-29  Bruno Haible  <bruno@clisp.org>
59235
59236         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59237         compiling case.
59238
59239 2007-05-29  Eric Blake  <ebb9@byu.net>
59240             Bruno Haible  <bruno@clisp.org>
59241
59242         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59243         cross compiles.
59244
59245 2007-05-28  Eric Blake  <ebb9@byu.net>
59246
59247         * modules/closein-tests (test_closein_LDADD): Support test on
59248         cygwin with libtool.
59249
59250 2007-05-28  Bruno Haible  <bruno@clisp.org>
59251
59252         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59253         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59254         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59255         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59256         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59257         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59258         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59259         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59260         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59261
59262 2007-05-28  Eric Blake  <ebb9@byu.net>
59263
59264         Unconditionally include <config.h> in unit tests.
59265         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59266         * tests/test-allocsa.c, tests/test-arcfour.c,
59267         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59268         tests/test-array_list.c, tests/test-array_oset.c,
59269         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59270         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59271         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59272         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59273         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59274         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59275         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59276         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59277         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59278         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59279         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59280         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59281         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59282         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59283         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59284         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59285         test-md5.c, test-memmem.c, test-printf-posix.c,
59286         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59287         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59288         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59289         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59290         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59291         test-vasnprintf-posix2.c, test-vasnprintf.c,
59292         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59293         test-vfprintf-posix.c, test-vprintf-posix.c,
59294         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59295         test-xvasprintf.c: Likewise.
59296
59297 2007-05-28  Bruno Haible  <bruno@clisp.org>
59298
59299         * gnulib-tool (func_import): Remember the --with-tests command-line
59300         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59301         Reported by Eric Blake.
59302
59303 2007-05-28  Bruno Haible  <bruno@clisp.org>
59304
59305         * modules/ftell-tests: New file.
59306         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59307         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59308
59309         * lib/ftell.c: New file.
59310         * modules/ftell: New file.
59311         * m4/ftell.m4: New file.
59312         * doc/functions/ftell.texi: Update.
59313         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59314         REPLACE_FTELL.
59315         * lib/stdio_.h (rpl_ftell): New declaration.
59316         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59317         REPLACE_FTELL.
59318
59319 2007-05-28  Eric Blake  <ebb9@byu.net>
59320
59321         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59322
59323 2007-05-28  Bruno Haible  <bruno@clisp.org>
59324
59325         * modules/fseek-tests: New file.
59326         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59327         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59328
59329         * lib/fseek.c: New file.
59330         * modules/fseek: New file.
59331         * m4/fseek.m4: New file.
59332         * doc/functions/fseek.texi: Update.
59333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59334         REPLACE_FSEEK.
59335         * lib/stdio_.h (rpl_fseek): New declaration.
59336         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59337         REPLACE_FSEEK.
59338
59339 2007-05-28  Bruno Haible  <bruno@clisp.org>
59340
59341         * lib/stdio_.h (fflush): More comments.
59342
59343 2007-05-28  Bruno Haible  <bruno@clisp.org>
59344
59345         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59346         runtime test.
59347
59348 2007-05-28  Eric Blake  <ebb9@byu.net>
59349
59350         Improve lseek module.
59351         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59352         * lib/unistd_.h (lseek): Scale back link warning message.
59353         * tests/test-lseek.c: Beef up test.
59354         * tests/test-lseek.sh: Exercise more facets of lseek.
59355         Reported by Bruno Haible.
59356
59357 2007-05-28  Bruno Haible  <bruno@clisp.org>
59358
59359         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59360         to define.
59361
59362 2007-05-27  Bruno Haible  <bruno@clisp.org>
59363
59364         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59365
59366 2007-05-27  Bruno Haible  <bruno@clisp.org>
59367
59368         * modules/openmp: New file.
59369         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59370         Noah Misch.
59371
59372 2007-05-26  Bruno Haible  <bruno@clisp.org>
59373
59374         * modules/chdir-long (Depends-on): Add fchdir.
59375         * modules/chdir-safer (Depends-on): Likewise.
59376         * modules/fts (Depends-on): Likewise.
59377         * modules/fts-lgpl (Depends-on): Likewise.
59378         * modules/openat (Depends-on): Likewise.
59379         * modules/savewd (Depends-on): Likewise.
59380
59381 2007-05-24  Eric Blake  <ebb9@byu.net>
59382
59383         Fix lseek on mingw.
59384         * modules/lseek: New module.
59385         * m4/lseek.m4: New file.
59386         * lib/lseek.c: New file.
59387         * modules/lseek-tests: New file.
59388         * tests/test-lseek.c: New file.
59389         * tests/test-lseek.sh: New file.
59390         * MODULES.html.sh: Document lseek module.
59391         * modules/fflush (Depends-on): Add lseek, fseeko.
59392         * modules/fseeko (Depends-on): Likewise.
59393         * modules/ftello (Depends-on): Likewise.
59394         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59395         broken.
59396         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59397         broken.
59398         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59399         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59400         * lib/ftello.c (rpl_ftello): Likewise.
59401         * tests/test-fseeko.c (main): Test this.
59402         * tests/test-fseeko.sh: Likewise.
59403         * tests/test-ftello.c (main): Likewise.
59404         * tests/test-ftello.sh: Likewise.
59405         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59406         implies replacing fseek.
59407         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59408         HAVE_FTELLO.
59409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59410         * modules/unistd (Makefile.am): Likewise.
59411         * lib/unistd_.h (lseek): Declare a replacement.
59412         * doc/functions/lseek.texi (lseek): Document this fix.
59413         * doc/functions/fseek.texi (fseek): Likewise.
59414         * doc/functions/ftell.texi (ftell): Likewise.
59415
59416 2007-05-24  Bruno Haible  <bruno@clisp.org>
59417
59418         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59419         in the printed representation of a NaN.
59420         * tests/test-vasprintf-posix.c (test_function): Likewise.
59421         * tests/test-snprintf-posix.h (test_function): Likewise.
59422         * tests/test-sprintf-posix.h (test_function): Likewise.
59423         Reported by Eric Blake.
59424
59425 2007-05-23  Eric Blake  <ebb9@byu.net>
59426
59427         Fix fseeko/ftello on cygwin 1.5.24.
59428         * doc/functions/fseeko.texi (fseeko): Document the fix.
59429         * doc/functions/ftello.texi (ftello): Document the fix.
59430         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59431         * doc/functions/stdout.text (stdout): New file.
59432         * doc/functions/stderr.text (stderr): New file.
59433         * doc/gnulib.texi (Function Substitutes): Use new files.
59434         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59435         prior to 1.7.0.
59436         * tests/test-ftello.c (main): Likewise for ftello.
59437         * tests/test-fseeko.sh: New file.
59438         * tests/test-ftello.sh: New file.
59439         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59440         with seekable stdin.
59441         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59442         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59443         (gl_REPLACE_FSEEKO): New macro.
59444         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59445         * modules/fseeko (Files): Distribute fseeko.c.
59446         * modules/ftello (Files): Distribute ftello.c.
59447         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59448         mode.
59449         * lib/ftello.c (rpl_ftello): New file.
59450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59451         fseeko, ftello.
59452         (gl_STDIN_LARGE_OFFSET): New macro.
59453         * modules/stdio (Makefile.am): Perform the replacement.
59454         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59455
59456 2007-05-23  Bruno Haible  <bruno@clisp.org>
59457
59458         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59459         GNULIB_POSIXCHECK is defined.
59460
59461 2007-05-21  Bruno Haible  <bruno@clisp.org>
59462
59463         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59464         Check also the output for NaN arguments. When cross-compiling, guess
59465         no on IRIX.
59466         * lib/vasnprintf.c: Update comments.
59467         * tests/test-vasnprintf-posix.c (strisnan): New function.
59468         (test_function): Use it.
59469         * tests/test-vasprintf-posix.c (strisnan): New function.
59470         (test_function): Use it.
59471         * tests/test-snprintf-posix.h (strisnan): New function.
59472         (test_function): Use it.
59473         * tests/test-sprintf-posix.h (strisnan): New function.
59474         (test_function): Use it.
59475         Reported by Eric Blake.
59476
59477 2007-05-20  Bruno Haible  <bruno@clisp.org>
59478
59479         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59480         numbers that fails on BeOS.
59481         * doc/functions/frexpl.texi: Update.
59482
59483 2007-05-20  Jim Meyering  <jim@meyering.net>
59484
59485         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59486         forced upon us by glibc-2.6.
59487
59488 2007-05-20  Bruno Haible  <bruno@clisp.org>
59489
59490         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59491         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59492         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59493         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59494         NEED_PRINTF_INFINITE.
59495         (is_infinitel): New function.
59496         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59497         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59498         gl_PREREQ_VASNPRINTF_INFINITE.
59499         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59500         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59501         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59502         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59503         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59504         gl_PREREQ_VASNPRINTF_INFINITE.
59505         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59506         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59507         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59508         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59509         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59510         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59511         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59512         * doc/functions/fprintf.texi: Update.
59513         * doc/functions/printf.texi: Update.
59514         * doc/functions/snprintf.texi: Update.
59515         * doc/functions/sprintf.texi: Update.
59516         * doc/functions/vfprintf.texi: Update.
59517         * doc/functions/vprintf.texi: Update.
59518         * doc/functions/vsnprintf.texi: Update.
59519         * doc/functions/vsprintf.texi: Update.
59520
59521 2007-05-20  Bruno Haible  <bruno@clisp.org>
59522
59523         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59524         was not found in libc.
59525         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59526
59527 2007-05-20  Bruno Haible  <bruno@clisp.org>
59528
59529         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59530         printed as "-nan" instead of "nan".
59531         * tests/test-vasprintf-posix.c (test_function): Likewise.
59532         * tests/test-snprintf-posix.h (test_function): Likewise.
59533         * tests/test-sprintf-posix.h (test_function): Likewise.
59534         Needed for HP-UX 11.
59535
59536 2007-05-20  Jim Meyering  <jim@meyering.net>
59537
59538         Fix buggy test for the fchownat-deref bug.
59539         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59540         symlink required for the run-test.  Without it, this test would
59541         always declare that fchownat doesn't work, and client code would
59542         unnecessarily use the replacement function with fixed libc.
59543         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59544         Reported by Greg Schafer.
59545
59546 2007-05-19  Bruno Haible  <bruno@clisp.org>
59547
59548         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59549         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59550         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59551         Needed for IRIX 6.5 and Solaris 2.5.1.
59552
59553 2007-05-19  Bruno Haible  <bruno@clisp.org>
59554
59555         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59556         (test_function): Skip tests involving -0.0 on platforms where
59557         -0.0 = 0.0.
59558         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59559         (test_function): Skip tests involving -0.0 on platforms where
59560         -0.0 = 0.0.
59561         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59562         (test_function): Skip tests involving -0.0 on platforms where
59563         -0.0 = 0.0.
59564         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59565         (test_function): Skip tests involving -0.0 on platforms where
59566         -0.0 = 0.0.
59567         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59568         tests.
59569         * tests/test-printf-posix.h (test_function): Likewise.
59570         * tests/test-printf-posix.output: Remove all -0.0 related results.
59571         Needed for IRIX 6.5.
59572
59573 2007-05-19  Bruno Haible  <bruno@clisp.org>
59574
59575         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59576         printed as "nan0x7fffffff" instead of "nan".
59577         * tests/test-vasprintf-posix.c (test_function): Likewise.
59578         * tests/test-snprintf-posix.h (test_function): Likewise.
59579         * tests/test-sprintf-posix.h (test_function): Likewise.
59580         * tests/test-fprintf-posix.h (NaN): Remove macro.
59581         (test_function): Remove all NaN related tests.
59582         * tests/test-printf-posix.h (NaN): Remove macro.
59583         (test_function): Remove all NaN related tests.
59584         * tests/test-printf-posix.output: Remove all NaN related results.
59585         Needed for IRIX 6.5.
59586
59587 2007-05-19  Bruno Haible  <bruno@clisp.org>
59588
59589         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59590         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59591
59592 2007-05-19  Bruno Haible  <bruno@clisp.org>
59593
59594         * lib/float_.h: New file.
59595         * m4/float_h.m4: New file.
59596         * modules/float: New file.
59597         * modules/isnanl (Dependencies): Add float.
59598         * modules/isnanl-nolibm (Dependencies): Likewise.
59599         * modules/mathl (Dependencies): Likewise.
59600         * modules/printf-frexpl (Dependencies): Likewise.
59601         * modules/signbit (Dependencies): Likewise.
59602         * modules/vasnprintf (Dependencies): Likewise.
59603         * doc/headers/float.texi: Update.
59604
59605 2007-05-19  Jim Meyering  <jim@meyering.net>
59606
59607         * lib/utimens.c (gl_futimens): Rename from futimens,
59608         now that glibc-2.6 declares futimens.
59609         * lib/utimens.h: Likewise.
59610
59611 2007-05-19  Bruno Haible  <bruno@clisp.org>
59612
59613         Avoid test failures on mingw.
59614         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59615         * tests/test-printf-posix.sh: Likewise.
59616         * tests/test-vfprintf-posix.sh: Likewise.
59617         * tests/test-vprintf-posix.sh: Likewise.
59618
59619 2007-05-19  Bruno Haible  <bruno@clisp.org>
59620
59621         Fix *printf result for NaN, Inf, -0.0 on mingw.
59622         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59623         * lib/vasnprintf.c: Include math.h and isnan.h.
59624         (is_infinite_or_zero): New function.
59625         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59626         values in the %f, %F, %e, %E, %g, %G directives.
59627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59628         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59629         gl_PRINTF_INFINITE and test its result. Invoke
59630         gl_PREREQ_VASNPRINTF_INFINITE.
59631         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59632         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59633         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59635         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59637         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59638         * doc/functions/fprintf.texi: Update.
59639         * doc/functions/printf.texi: Update.
59640         * doc/functions/snprintf.texi: Update.
59641         * doc/functions/sprintf.texi: Update.
59642         * doc/functions/vfprintf.texi: Update.
59643         * doc/functions/vprintf.texi: Update.
59644         * doc/functions/vsnprintf.texi: Update.
59645         * doc/functions/vsprintf.texi: Update.
59646
59647 2007-05-19  Bruno Haible  <bruno@clisp.org>
59648
59649         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59650         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59651         Instead of multiplying with 10^k, set extra_zeroes to k.
59652         (scale10_round_long_double): Remove function.
59653
59654 2007-05-18  Bruno Haible  <bruno@clisp.org>
59655
59656         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59657         introduced on 2007-05-06.
59658
59659 2007-05-18  Bruno Haible  <bruno@clisp.org>
59660
59661         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59662         %g directives.
59663         * tests/test-vasprintf-posix.c (test_function): Likewise.
59664         * tests/test-snprintf-posix.h (test_function): Likewise.
59665         * tests/test-sprintf-posix.h (test_function): Likewise.
59666
59667 2007-05-18  Bruno Haible  <bruno@clisp.org>
59668
59669         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59670         (strmatch): New function.
59671         (test_function): Test the %f directive on numbers of various exponents.
59672         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59673         (strmatch): New function.
59674         (test_function): Test the %f directive on numbers of various exponents.
59675         * tests/test-snprintf-posix.h (strmatch): New function.
59676         (test_function): Test the %f directive on numbers of various exponents.
59677         * tests/test-sprintf-posix.h (strmatch): New function.
59678         (test_function): Test the %f directive on numbers of various exponents.
59679         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59680         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59681         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59682         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59683
59684 2007-05-18  Bruno Haible  <bruno@clisp.org>
59685
59686         Add support for 'long double' number output.
59687         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59688         * lib/vasnprintf.c: Include math.h and float+.h.
59689         (mp_limb_t): New type.
59690         (GMP_LIMB_BITS): New macro.
59691         (mp_twolimb_t): New type.
59692         (GMP_TWOLIMB_BITS): New macro.
59693         (mpn_t): New type.
59694         (multiply, divide, convert_to_decimal, decode_long_double,
59695         scale10_round_long_double, scale10_round_decimal_long_double,
59696         floorlog10l): New functions.
59697         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59698         for the %f, %F, %e, %E, %g, %G directives.
59699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59700         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59701         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59702         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59703         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59704         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59705         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59706         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59707         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59708         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59709         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59710         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59711         * modules/snprintf-posix (Depends-on): Likewise.
59712         * modules/sprintf-posix (Depends-on): Likewise.
59713         * modules/vasnprintf-posix (Depends-on): Likewise.
59714         * modules/vasprintf-posix (Depends-on): Likewise.
59715         * modules/vfprintf-posix (Depends-on): Likewise.
59716         * modules/vsnprintf-posix (Depends-on): Likewise.
59717         * modules/vsprintf-posix (Depends-on): Likewise.
59718         * modules/vasnprintf (Files): Add lib/float+.h.
59719         * doc/functions/fprintf.texi: Update.
59720         * doc/functions/printf.texi: Update.
59721         * doc/functions/snprintf.texi: Update.
59722         * doc/functions/sprintf.texi: Update.
59723         * doc/functions/vfprintf.texi: Update.
59724         * doc/functions/vprintf.texi: Update.
59725         * doc/functions/vsnprintf.texi: Update.
59726         * doc/functions/vsprintf.texi: Update.
59727
59728 2007-05-18  Bruno Haible  <bruno@clisp.org>
59729
59730         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59731
59732 2007-05-18  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59735         for printing 64-bit integers. Needed for mingw.
59736
59737 2007-05-18  Bruno Haible  <bruno@clisp.org>
59738
59739         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59740         gl_FUNC_FREXPL_WORKS.
59741         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59742
59743 2007-05-18  Bruno Haible  <bruno@clisp.org>
59744
59745         * modules/frexpl-nolibm-tests: New file.
59746
59747         * modules/frexpl-nolibm: New file.
59748         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59749
59750 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59751
59752         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59753         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59754         GCC 4.2, which otherwise issues a lot of warnings.
59755         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59756         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59757         Likewise.
59758         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59759         * modules/iconv_open (iconv.h): Likewise.
59760         * modules/locale (locale.h): Likewise.
59761         * modules/netinet_in (netinet/in.h): Likewise.
59762         * modules/sys_select (sys_select.h): Likewise.
59763         * modules/sys_socket (sys/socket.h): Likewise.
59764         * modules/sys_stat (sys/stat.h): Likewise.
59765         * modules/sysexits (sysexits.h): Likewise.
59766         * modules/unistd (unistd.h): Likewise.
59767
59768 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59769
59770         * modules/closein-tests (Makefile.am): Distribute
59771         `test-closein.sh'.
59772
59773 2007-05-17  Bruno Haible  <bruno@clisp.org>
59774
59775         * tests/test-printf-posix.output: Renamed from
59776         tests/test-fprintf-posix.out.
59777         * modules/fprintf-posix-tests: Update.
59778         * modules/printf-posix-tests: Update.
59779         * modules/vfprintf-posix-tests: Update.
59780         * modules/vprintf-posix-tests: Update.
59781         * tests/test-fprintf-posix.sh: Update.
59782         * tests/test-printf-posix.sh: Update.
59783         * tests/test-vfprintf-posix.sh: Update.
59784         * tests/test-vprintf-posix.sh: Update.
59785         Reported by Ralf Wildenhues.
59786
59787 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59788
59789         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59790         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59791         GCC 4.2, which otherwise issues a lot of warnings.
59792         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59793         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59794         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59795         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59796         it should no longer be needed.
59797         * lib/string_.h: Likewise.
59798         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59799         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59800         * modules/inttypes (inttypes.h): Likewise.
59801         * modules/math (math.h): Likewise.
59802         * modules/search (search.h): Likewise.
59803         * modules/signal (signal.h): Likewise.
59804         * modules/stdint (stdint.h): Likewise.
59805         * modules/stdio (stdio.h): Likewise.
59806         * modules/stdlib (stdlib.h): Likewise.
59807         * modules/string (string.h): Likewise.
59808         * modules/sys_time (sys/time.h): Likewise.
59809         * modules/time (time.h): Likewise.
59810         * modules/wchar (wchar.h): Likewise.
59811         * modules/wctype (wtype.h): Likewise.
59812
59813 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59814
59815         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59816
59817 2007-05-13  Bruno Haible  <bruno@clisp.org>
59818
59819         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59820         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59821         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59822         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59823         (gl_PREREQ_STRTOK_R): Don't require it here.
59824
59825 2007-05-13  Bruno Haible  <bruno@clisp.org>
59826
59827         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59828         when used in C++ mode.
59829
59830 2007-05-12  Bruno Haible  <bruno@clisp.org>
59831
59832         * lib/linebuffer.h: Tweak doc.
59833         * lib/linebuffer.c: Likewise.
59834
59835 2007-05-12  James Youngman  <jay@gnu.org>
59836
59837         * lib/linebuffer.c (readlinebuffer_delim): New function,
59838         like readlinebuffer, but use a caller-specified delimiter.
59839         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59840         as the delimiter.
59841         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59842
59843 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59844
59845         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59846         * modules/openat (Files): Remove openat-die.c.
59847         (Depends-on): Add openat-die.
59848         * modules/openat-die: New module.
59849
59850 2007-05-06  Bruno Haible  <bruno@clisp.org>
59851
59852         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59853         Update with info about Cygwin.
59854         * doc/functions/fprintf.texi: Update.
59855         * doc/functions/printf.texi: Update.
59856         * doc/functions/snprintf.texi: Update.
59857         * doc/functions/sprintf.texi: Update.
59858         * doc/functions/vfprintf.texi: Update.
59859         * doc/functions/vprintf.texi: Update.
59860         * doc/functions/vsnprintf.texi: Update.
59861         * doc/functions/vsprintf.texi: Update.
59862         Reported by Eric Blake.
59863
59864 2007-05-06  Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59867         padding ourselves for the floating-point directives.
59868         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59870         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59871         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59872         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59873         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59874         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59875         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59876         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59877         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59878         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59879         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59880         * tests/test-snprintf-posix.h (test_function): Also check the width
59881         and some flags in the %f directive.
59882         * tests/test-sprintf-posix.h (test_function): Likewise.
59883         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59884         * tests/test-vasprintf-posix.c (test_function): Likewise.
59885         * doc/functions/fprintf.texi: Update.
59886         * doc/functions/printf.texi: Update.
59887         * doc/functions/snprintf.texi: Update.
59888         * doc/functions/sprintf.texi: Update.
59889         * doc/functions/vfprintf.texi: Update.
59890         * doc/functions/vprintf.texi: Update.
59891         * doc/functions/vsnprintf.texi: Update.
59892         * doc/functions/vsprintf.texi: Update.
59893
59894 2007-05-06  Bruno Haible  <bruno@clisp.org>
59895
59896         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59897         pass the ' flag character to sprintf or snprintf.
59898         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59900         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59901         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59902         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59903         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59904         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59905         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59906         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59907         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59908         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59909         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59910         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59911         flag.
59912         * tests/test-sprintf-posix.h (test_function): Likewise.
59913         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59914         * tests/test-vasprintf-posix.c (test_function): Likewise.
59915         * doc/functions/fprintf.texi: Update.
59916         * doc/functions/printf.texi: Update.
59917         * doc/functions/snprintf.texi: Update.
59918         * doc/functions/sprintf.texi: Update.
59919         * doc/functions/vfprintf.texi: Update.
59920         * doc/functions/vprintf.texi: Update.
59921         * doc/functions/vsnprintf.texi: Update.
59922         * doc/functions/vsprintf.texi: Update.
59923
59924 2007-05-01  Bruno Haible  <bruno@clisp.org>
59925
59926         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59927
59928 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59929
59930         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59931         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59932
59933 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59934
59935         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59936         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59937         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59938
59939 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59940
59941         * lib/argp-help.c (struct hol_entry): New member `ord'.
59942         (HOL_ENTRY_PTRCMP): Use ord for comparison
59943         (hol_sort): Initialize ord.
59944
59945 2007-05-01  Bruno Haible  <bruno@clisp.org>
59946
59947         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59948         Reported by Eric Blake.
59949         * doc/gnulib.texi (Function Substitutes): Update.
59950
59951 2007-05-01  Bruno Haible  <bruno@clisp.org>
59952
59953         * doc/functions.texi: Remove file, now redundant through
59954         doc/functions/*.texi.
59955
59956 2007-05-01  Bruno Haible  <bruno@clisp.org>
59957
59958         * modules/argp (Depends-on): Add sleep.
59959
59960 2007-05-01  Bruno Haible  <bruno@clisp.org>
59961
59962         * modules/sleep-tests: New file.
59963         * tests/test-sleep.c: New file.
59964
59965         * modules/sleep: New file.
59966         * lib/sleep.c: New file.
59967         * m4/sleep.m4: New file.
59968         * lib/unistd_.h (sleep): New declaration.
59969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59970         HAVE_SLEEP.
59971         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59972         * doc/functions/sleep.texi: Document the sleep module.
59973
59974 2007-05-01  Bruno Haible  <bruno@clisp.org>
59975
59976         * lib/sigprocmask.h: Remove file.
59977         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59978         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59979         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59980         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59981         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59982         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59983         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59984         HAVE_SIGSET_T as a shell variable.
59985         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59986         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59987         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59988         (Depends-on): Add signal. Remove verify.
59989         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59990         (Include): Mention <signal.h> instead of sigprocmask.h.
59991         * NEWS: Mention the change.
59992         * lib/fatal-signal.c: Don't include sigprocmask.h.
59993
59994 2007-05-01  Bruno Haible  <bruno@clisp.org>
59995
59996         * modules/signal: New file.
59997         * lib/signal_.h: New file.
59998         * m4/signal_h.m4: New file.
59999
60000 2007-05-01  Bruno Haible  <bruno@clisp.org>
60001
60002         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60003         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60004         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60005         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60006
60007 2007-05-01  Bruno Haible  <bruno@clisp.org>
60008
60009         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60010         configure time.
60011         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60012         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60013         * modules/sys_stat (Makefile.am): Substitute their values into
60014         sys/stat.h.
60015
60016 2007-05-01  Bruno Haible  <bruno@clisp.org>
60017
60018         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60019         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60020         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60021
60022 2007-05-01  Bruno Haible  <bruno@clisp.org>
60023
60024         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60025         'assert' module here.
60026
60027 2007-05-01  Bruno Haible  <bruno@clisp.org>
60028
60029         * doc/functions/*.texi: New files.
60030         * doc/functions/google-ranking.txt: New file.
60031         * doc/gnulib.texi (Function Substitutes): New chapter.
60032         (ctime, inet_ntoa): Remove sections.
60033         * doc/ctime.texi: Remove file.
60034         * doc/inet_ntoa.texi: Remove file.
60035         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60036         dependencies.
60037         (%.info): New rule, specifying a --reference-limit.
60038
60039 2007-05-01  Bruno Haible  <bruno@clisp.org>
60040
60041         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60042
60043 2007-05-01  Bruno Haible  <bruno@clisp.org>
60044
60045         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60046         the portability of 'mkdir' to mingw systems.
60047
60048 2007-05-01  Bruno Haible  <bruno@clisp.org>
60049
60050         * doc/headers/google-ranking.txt: New file.
60051
60052 2007-04-30  Eric Blake  <ebb9@byu.net>
60053
60054         Prefer fseeko to fseek.
60055         * modules/getpass (Depends-on): Add fseeko.
60056         * lib/getpass.c (getpass): Use fseeko, not fseek.
60057
60058 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60059
60060         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60061         assumes the sorting is stable, while most qsort implementations
60062         are not.  Use argument addresses to ensure they never compare as
60063         equal.
60064
60065         * tests/test-argp-2.sh (usage-indent test): Fix output
60066         (func_compare): Restore diff options
60067         * tests/test-argp.c: Restore #include "progname.h"
60068
60069 2007-04-29  Bruno Haible  <bruno@clisp.org>
60070
60071         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60072         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60073         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60074         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60075         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60076         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60077         (TESTS, check_PROGRAMS): Add test-snprintf.
60078         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60079         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60080         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60081         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60082         assertions that fail on HP-UX, OSF/1, or IRIX.
60083         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60084
60085 2007-04-29  Bruno Haible  <bruno@clisp.org>
60086
60087         * MODULES.html.sh (posix_functions): Remove 'contents'.
60088
60089 2007-04-29  Karl Berry  <karl@gnu.org>
60090
60091         * config/srclist.txt (gendocs_template_min): new entry.
60092
60093 2007-04-29  Bruno Haible  <bruno@clisp.org>
60094
60095         Work around fpurge bug on BSD systems.
60096         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60097         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60098         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60099         fpurge to rpl_fpurge if the system already has this function.
60100         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60101         the case where the system already has this function. Correct invariants
60102         on BSD systems.
60103         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60104         BSD systems.
60105
60106 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60107
60108         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60109         proposed by Sven Verdoolaege.
60110
60111         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60112         options.
60113         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60114         (usage and help tests): Update
60115
60116 2007-04-29  Bruno Haible  <bruno@clisp.org>
60117
60118         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60119         Print more information in case of failure. Disable a test on BeOS.
60120
60121 2007-04-29  Bruno Haible  <bruno@clisp.org>
60122
60123         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60124         This helps debugging on systems on which no gdb is available.
60125
60126 2007-04-29  Bruno Haible  <bruno@clisp.org>
60127
60128         * lib/freading.h: Improve comments.
60129         * lib/fwriting.h: Likewise.
60130         * tests/test-freading.c (main): Don't check freading immediately after
60131         repositioning. Needed for glibc.
60132
60133 2007-04-29  Bruno Haible  <bruno@clisp.org>
60134
60135         * lib/freading.c (freading): Trivial simplification.
60136
60137 2007-04-28  Bruno Haible  <bruno@clisp.org>
60138
60139         * tests/test-fwriting.c (main): Also test the interaction between
60140         fflush and fwriting.
60141         * modules/fwriting-tests (Depends-on): Add fflush.
60142
60143         * tests/test-freading.c (main): Also test the interaction between
60144         fflush and freading.
60145         * modules/freading-tests (Depends-on): Add fflush.
60146
60147 2007-04-28  Bruno Haible  <bruno@clisp.org>
60148
60149         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60150         fseeko and ftello.
60151         Suggested by Eric Blake.
60152
60153 2007-04-28  Jim Meyering  <jim@meyering.net>
60154
60155         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60156         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60157         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60158
60159 2007-04-27  Eric Blake  <ebb9@byu.net>
60160
60161         * doc/headers/assert.texi (assert.h): Document assert module use.
60162
60163 2007-04-27  Bruno Haible  <bruno@clisp.org>
60164
60165         * doc/headers/*.texi: New files.
60166         * doc/gnulib.texi (Header File Substitutes): New chapter.
60167         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60168         dependencies.
60169         (standards.info ,standards.html, standards.dvi): Update dependencies.
60170         (mostlyclean, clean): New targets.
60171
60172 2007-04-27  Bruno Haible  <bruno@clisp.org>
60173
60174         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60175         * modules/sysexits (Files, Makefile.am): Update.
60176
60177         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60178         * modules/sys_socket (Files, Makefile.am): Update.
60179
60180         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60181         * modules/sys_stat (Files, Makefile.am): Update.
60182
60183 2007-04-27  Eric Blake  <ebb9@byu.net>
60184
60185         * lib/freading.h: Improve comments.
60186         * lib/fwriting.h: Likewise.
60187         * lib/fflush.c: Likewise.
60188
60189         Fix closein for mingw.
60190         * modules/closein-tests: Add tests for closein.
60191         * tests/test-closein.c: New file.
60192         * tests/test-closein.sh: Likewise.
60193         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60194         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60195
60196 2007-04-27  Bruno Haible  <bruno@clisp.org>
60197
60198         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60199         version is < 6.
60200         * lib/math_.h [__DECC]: Likewise.
60201         * lib/stdio_.h [__DECC]: Likewise.
60202         * lib/stdlib_.h [__DECC]: Likewise.
60203         * lib/string_.h [__DECC]: Likewise.
60204         * lib/time_.h [__DECC]: Likewise.
60205         * lib/wchar_.h [__DECC]: Likewise.
60206         * lib/wctype_.h [__DECC]: Likewise.
60207
60208 2007-04-27  Bruno Haible  <bruno@clisp.org>
60209
60210         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60211
60212 2007-04-27  Bruno Haible  <bruno@clisp.org>
60213
60214         * lib/fflush.c: Add comments.
60215         * modules/fpurge-tests (Depends-on): Add fflush.
60216         * modules/freadable-tests (Depends-on): Likewise.
60217         * modules/fwritable-tests (Depends-on): Likewise.
60218
60219 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60220
60221         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60222         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60223         Report by Bruno Haible <bruno@clisp.org>.
60224
60225 2007-04-26  Eric Blake  <ebb9@byu.net>
60226
60227         Fix fflush on mingw.
60228         * modules/fflush (Depends-on): Add freading.
60229         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60230         but unread data.
60231
60232 2007-04-26  Eric Blake  <ebb9@byu.net>
60233         and Bruno Haible  <bruno@clisp.org>
60234
60235         Implement freading and fwriting.
60236         * lib/freading.c: New file.
60237         * lib/freading.h: Likewise.
60238         * m4/freading.m4: Likewise.
60239         * modules/freading: Likewise.
60240         * modules/freading-tests: Likewise.
60241         * tests/test-freading.c: Likewise.
60242         * lib/fwriting.c: New file.
60243         * lib/fwriting.h: Likewise.
60244         * m4/fwriting.m4: Likewise.
60245         * modules/fwriting: Likewise.
60246         * modules/fwriting-tests: Likewise.
60247         * tests/test-fwriting.c: Likewise.
60248         * MODULES.html.sh (File stream based Input/Output): Mention them.
60249
60250 2007-04-26  Bruno Haible  <bruno@clisp.org>
60251
60252         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60253         'long' when we assume it.
60254         Suggested by Eric Blake.
60255
60256 2007-04-26  Bruno Haible  <bruno@clisp.org>
60257
60258         Ensure fseeko, ftello are declared on glibc systems.
60259         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60260         * modules/fseeko (configure.ac-early): Likewise.
60261         * modules/ftello (configure.ac-early): Likewise.
60262         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60263         AC_FUNC_FSEEKO for this.
60264         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60265         (gl_CHECK_FSEEKO): Remove macro.
60266
60267 2007-04-26  Bruno Haible  <bruno@clisp.org>
60268
60269         * tests/test-fflush.c (main): Also check the ftell result after
60270         fflush and fseek/fseeko.
60271         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60272         file descriptor position cache in the stream.
60273         * lib/fseeko.c (rpl_fseeko): Likewise.
60274
60275 2007-04-26  Bruno Haible  <bruno@clisp.org>
60276
60277         * modules/fflush-tests (Depends-on): Add fseeko.
60278
60279 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60280             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60281
60282         * lib/argz_.h: ensure error_t definition is obtained in same
60283         mechanism system argz.h would have.
60284         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60285         argz facilities are known bad.  Err on the side of caution if
60286         cross-compiling.
60287
60288 2007-04-25  Eric Blake  <ebb9@byu.net>
60289
60290         * lib/fpurge.c (includes): Use stdlib.h for free.
60291         * tests/test-fflush.c (main): Also test fflush-fseeko.
60292
60293 2007-04-25  Bruno Haible  <bruno@clisp.org>
60294
60295         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60296         * lib/fseeko.c: New file.
60297         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60298         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60299         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60300         gl_FUNC_FSEEKO.
60301         (gl_FUNC_FSEEKO): Invoke it.
60302         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60303         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60304         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60305
60306 2007-04-25  Bruno Haible  <bruno@clisp.org>
60307
60308         * modules/fflush (Depends-on): Add ftello.
60309
60310 2007-04-25  Bruno Haible  <bruno@clisp.org>
60311
60312         * modules/ftello-tests: New file.
60313         * tests/test-ftello.c: New file.
60314
60315         * modules/ftello: New file.
60316         * m4/ftello.m4: New file.
60317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60318         HAVE_FTELLO.
60319         * lib/stdio_.h (ftello): New declaration.
60320         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60321         HAVE_FTELLO.
60322
60323 2007-04-25  Bruno Haible  <bruno@clisp.org>
60324
60325         * modules/fseeko-tests: New file.
60326         * tests/test-fseeko.c: New file.
60327
60328         * modules/fseeko: New file.
60329         * m4/fseeko.m4: New file.
60330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60331         HAVE_FSEEKO.
60332         * lib/stdio_.h (fseeko): New declaration.
60333         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60334         HAVE_FSEEKO.
60335
60336 2007-04-25  Bruno Haible  <bruno@clisp.org>
60337
60338         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60339
60340 2007-04-25  Bruno Haible  <bruno@clisp.org>
60341
60342         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60343         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60344         * tests/test-unistd.c: Likewise.
60345         * tests/test-fcntl.c: Likewise.
60346
60347 2007-04-23  Eric Blake  <ebb9@byu.net>
60348
60349         * lib/fflush.c: Fix missing include.
60350         Reported by Bruno Haible.
60351
60352 2007-04-23  Bruno Haible  <bruno@clisp.org>
60353
60354         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60355         Reported by Eric Blake.
60356
60357 2007-04-23  Bruno Haible  <bruno@clisp.org>
60358
60359         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60360
60361 2007-04-23  Bruno Haible  <bruno@clisp.org>
60362
60363         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60364
60365 2007-04-23  Bruno Haible  <bruno@clisp.org>
60366
60367         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60368         Needed on HP-UX 11.
60369
60370 2007-04-16  Eric Blake  <ebb9@byu.net>
60371
60372         Make fflush rely on fpurge.
60373         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60374         open coding all variants.
60375         * modules/fflush (Depends-on): Add fpurge and unistd.
60376         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60377         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60378
60379         Fix --with-tests compilation on cygwin.
60380         * modules/argmatch-tests (Makefile.am): List gnulib library first
60381         in LDADD.
60382         * modules/argp-tests (Makefile.am): Likewise.
60383         * modules/array-list-tests (Makefile.am): Likewise.
60384         * modules/array-oset-tests (Makefile.am): Likewise.
60385         * modules/avltree-list-tests (Makefile.am): Likewise.
60386         * modules/avltree-oset-tests (Makefile.am): Likewise.
60387         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60388         * modules/carray-list-tests (Makefile.am): Likewise.
60389         * modules/dirname-tests (Makefile.am): Likewise.
60390         * modules/frexp-tests (Makefile.am): Likewise.
60391         * modules/isnanl-tests (Makefile.am): Likewise.
60392         * modules/linked-list-tests (Makefile.am): Likewise.
60393         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60394         * modules/lock-tests (Makefile.am): Likewise.
60395         * modules/rbtree-list-tests (Makefile.am): Likewise.
60396         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60397         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60398         * modules/tls-tests (Makefile.am): Likewise.
60399         * modules/tsearch-tests (Makefile.am): Likewise.
60400         * modules/xvasprintf-tests (Makefile.am): Likewise.
60401
60402         Fix fpurge for cygwin.
60403         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60404         value.
60405         * modules/fpurge-tests (Depends-on): Clean up trash.
60406
60407 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60408
60409         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60410
60411         * m4/autobuild.m4: Re-indent.
60412
60413 2007-04-13  Bruno Haible  <bruno@clisp.org>
60414
60415         * modules/fpurge-tests: New file.
60416         * tests/test-fpurge.c: New file.
60417
60418         * modules/fpurge: New file.
60419         * lib/fpurge.h: New file.
60420         * lib/fpurge.c: New file.
60421         * m4/fpurge.m4: New file.
60422
60423 2007-04-13  Bruno Haible  <bruno@clisp.org>
60424
60425         * modules/fbufmode-tests: New file.
60426         * tests/test-fbufmode.c: New file.
60427
60428         * modules/fbufmode: New file.
60429         * lib/fbufmode.h: New file.
60430         * lib/fbufmode.c: New file.
60431         * m4/fbufmode.m4: New file.
60432
60433 2007-04-13  Bruno Haible  <bruno@clisp.org>
60434
60435         * modules/fwritable-tests: New file.
60436         * tests/test-fwritable.c: New file.
60437
60438         * modules/fwritable: New file.
60439         * lib/fwritable.h: New file.
60440         * lib/fwritable.c: New file.
60441         * m4/fwritable.m4: New file.
60442
60443 2007-04-13  Bruno Haible  <bruno@clisp.org>
60444
60445         * modules/freadable-tests: New file.
60446         * tests/test-freadable.c: New file.
60447
60448         * modules/freadable: New file.
60449         * lib/freadable.h: New file.
60450         * lib/freadable.c: New file.
60451         * m4/freadable.m4: New file.
60452
60453 2007-04-13  Bruno Haible  <bruno@clisp.org>
60454
60455         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60456         MOSTLYCLEANFILES.
60457
60458 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60459
60460         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60461         gzip bootstrap.conf to avoid dragging in i18n machinery.
60462         (gnulib_tool_option): Use it.
60463
60464 2007-04-13  Bruno Haible  <bruno@clisp.org>
60465
60466         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60467         %F directives.
60468         * tests/test-vasprintf-posix.c (test_function): Likewise.
60469         * tests/test-snprintf-posix.h (test_function): Likewise.
60470         * tests/test-sprintf-posix.h (test_function): Likewise.
60471         * tests/test-fprintf-posix.h (test_function): Likewise.
60472         * tests/test-printf-posix.h (test_function): Likewise.
60473         * tests/test-fprintf-posix.out: Likewise.
60474
60475 2007-04-13  Bruno Haible  <bruno@clisp.org>
60476
60477         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60478         * modules/tls-tests (configure.ac): Likewise.
60479         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60480
60481 2007-04-13  Bruno Haible  <bruno@clisp.org>
60482
60483         * lib/tls.c (glthread_tls_get): Fix return type.
60484         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60485
60486 2007-04-12  Eric Blake  <ebb9@byu.net>
60487
60488         * modules/gettime (Depends-on): Remove gettime.
60489         Reported by Dmitry V. Levin.
60490
60491 2007-04-12  Bruno Haible  <bruno@clisp.org>
60492
60493         * modules/fflush (Include): Mention <stdio.h>.
60494         * modules/strtoimax (Include): Mention <inttypes.h>.
60495         * modules/strtoumax (Include): Likewise.
60496
60497 2007-04-12  Eric Blake  <ebb9@byu.net>
60498
60499         * .cvsignore: New file.
60500         * .gitignore: Likewise.
60501
60502 2007-04-12  Bruno Haible  <bruno@clisp.org>
60503
60504         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60505         not before, since $(LDADD) often contains libgnu.a.
60506         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60507         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60508         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60509         Needed on Cygwin.
60510
60511 2007-04-12  Eric Blake  <ebb9@byu.net>
60512
60513         Work around glibc's failure to flush stdin on fclose.
60514         * lib/closein.c (close_stdin): Flush stdin before closing.
60515
60516         Work around glibc's failure to reset seekable stdin on exit.
60517         * modules/closein: New module.
60518         * lib/closein.c: New file.
60519         * lib/closein.h: Likewise.
60520         * m4/closein.m4: Likewise.
60521         * MODULES.html.sh (File stream based Input/Output): Document it.
60522
60523 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60524
60525         * gnulib-tool: Rename generated 'autobuild' script to
60526         'do-autobuild' in --create-megatestdir output.
60527
60528         * doc/gnulib.texi (Build robot for gnulib): Fix.
60529
60530 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60531
60532         * modules/sysexits (Depends-on): Add absolute-header.
60533
60534 2007-04-12  Eric Blake  <ebb9@byu.net>
60535
60536         No need to preserve errno on success.
60537         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60538         Reported by Bruno Haible.
60539
60540 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60541
60542         * MODULES.html.sh (Support for maintaining and releasing
60543         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60544
60545 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60546
60547         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60548
60549 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60550
60551         * modules/autobuild: New module.
60552
60553         * m4/autobuild.m4: New file.
60554
60555 2007-04-11  Bruno Haible  <bruno@clisp.org>
60556
60557         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60558         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60559         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60560         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60561         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60562         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60563         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60564         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60565         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60566         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60567         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60568         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60569         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60570         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60571         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60572         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60573         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60574         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60575         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60576         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60577         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60578         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60579         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60580         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60581         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60583         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60584         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60585         Reported by Eric Blake.
60586
60587 2007-04-11  Bruno Haible  <bruno@clisp.org>
60588
60589         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60590
60591 2007-04-10  Bruno Haible  <bruno@clisp.org>
60592
60593         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60594         for NaN and Infinity. Needed on FreeBSD 6.1.
60595         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60596         regarding results for "%010a" of Infinity and NaN.
60597         * tests/test-vasprintf-posix.c (test_function): Likewise.
60598         * tests/test-snprintf-posix.h (test_function): Likewise.
60599         * tests/test-sprintf-posix.h (test_function): Likewise.
60600         * tests/test-fprintf-posix.h (test_function): Likewise.
60601         * tests/test-printf-posix.h (test_function): Likewise.
60602         * tests/test-fprintf-posix.out: Likewise.
60603
60604 2007-04-10  Bruno Haible  <bruno@clisp.org>
60605
60606         * modules/locale-tests: New file.
60607         * tests/test-locale.c: New file.
60608
60609         * modules/locale: New file.
60610         * lib/locale_.h: New file.
60611         * m4/locale_h.m4: New file.
60612
60613 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60614             Bruno Haible  <bruno@clisp.org>
60615
60616         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60617         be determined, test for availability of the copysignf, copysign,
60618         copysignl functions.
60619         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60620         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60621         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60622
60623 2007-04-09  Eric Blake  <ebb9@byu.net>
60624
60625         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60626         * modules/stdio (Makefile.am): Support fflush.
60627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60628         * modules/fflush: New file.
60629         * lib/fflush.c: Likewise.
60630         * m4/fflush.m4: Likewise.
60631         * modules/fflush-tests: New test.
60632         * tests/test-fflush.c: Likewise.
60633         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60634
60635 2007-04-06  Bruno Haible  <bruno@clisp.org>
60636
60637         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60638         (VASNPRINTF): Use signbit for faster determination whether to print a
60639         minus sign.
60640         * modules/vasnprintf (Files): Remove lib/float+.h.
60641         * modules/fprintf-posix (Depends-on): Add signbit.
60642         * modules/snprintf-posix (Depends-on): Likewise.
60643         * modules/sprintf-posix (Depends-on): Likewise.
60644         * modules/vasnprintf-posix (Depends-on): Likewise.
60645         * modules/vasprintf-posix (Depends-on): Likewise.
60646         * modules/vfprintf-posix (Depends-on): Likewise.
60647         * modules/vsnprintf-posix (Depends-on): Likewise.
60648         * modules/vsprintf-posix (Depends-on): Likewise.
60649
60650 2007-04-06  Bruno Haible  <bruno@clisp.org>
60651
60652         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60653         * tests/test-frexpl.c (main): Likewise.
60654         * tests/test-ldexpl.c (main): Likewise.
60655         * modules/frexp-tests (Depends-on): Add signbit.
60656         * modules/frexpl-tests (Depdends-on): Likewise.
60657         * modules/ldexpl-tests (Depdends-on): Likewise.
60658
60659 2007-04-06  Bruno Haible  <bruno@clisp.org>
60660
60661         * modules/signbit-tests: New file.
60662         * tests/test-signbit.c: New file.
60663
60664         * modules/signbit: New file.
60665         * lib/signbitf.c: New file.
60666         * lib/signbitd.c: New file.
60667         * lib/signbitl.c: New file.
60668         * m4/signbit.m4: New file.
60669         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60670         (signbit): New macro.
60671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60672         REPLACE_SIGNBIT.
60673         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60674         REPLACE_FREXPL into math.h.
60675
60676 2007-04-06  Bruno Haible  <bruno@clisp.org>
60677
60678         * modules/isnanf-nolibm-tests: New file.
60679         * tests/test-isnanf.c: New file.
60680
60681         * modules/isnanf-nolibm: New file.
60682         * lib/isnanf.h: New file.
60683         * lib/isnanf.c: New file.
60684         * lib/isnan.c: Consider the USE_FLOAT macro.
60685         * m4/isnanf.m4: New file.
60686
60687 2007-04-06  Bruno Haible  <bruno@clisp.org>
60688
60689         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60690         (Link): New section.
60691
60692         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60693
60694 2007-04-06  Bruno Haible  <bruno@clisp.org>
60695
60696         Assume the 'long double' type.
60697         * m4/longdouble.m4: Remove file.
60698         * config/srclist.txt: Don't mention longdouble.m4.
60699         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60700         * lib/float+.h: Likewise.
60701         * lib/frexp.c: Likewise.
60702         * lib/printf-args.h: Likewise.
60703         * lib/printf-args.c: Likewise.
60704         * lib/printf-frexp.c: Likewise.
60705         * lib/printf-parse.c: Likewise.
60706         * lib/vasnprintf.c: Likewise.
60707         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60708         * m4/intl.m4: Likewise.
60709         * m4/isnanl.m4: Likewise.
60710         * m4/printf.m4: Likewise.
60711         * m4/printf-frexpl.m4: Likewise.
60712         * m4/vasnprintf.m4: Likewise.
60713         * modules/allocsa (Files): Remove m4/longdouble.m4.
60714         * modules/gettext (Files): Likewise.
60715         * modules/relocatable-prog-wrapper (Files): Likewise.
60716         * modules/vasnprintf (Files): Likewise.
60717         * modules/isnanl (Files): Likewise.
60718         (Include): Simplify.
60719         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60720         (Include): Simplify.
60721         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60722         (Include): Simplify.
60723         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60724         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60725         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60726         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60727         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60728         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60729         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60730         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60731         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60732         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60733         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60734         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60735         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60736         * tests/test-isnanl.c: Likewise.
60737         * tests/test-snprintf-posix.h: Likewise.
60738         * tests/test-sprintf-posix.h: Likewise.
60739         * tests/test-vasnprintf-posix.c: Likewise.
60740         * tests/test-vasnprintf-posix2.c: Likewise.
60741         * tests/test-vasprintf-posix.c: Likewise.
60742
60743 2007-04-06  Bruno Haible  <bruno@clisp.org>
60744
60745         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60746         * lib/math_.h [__DECC]: Include the overridden include file through
60747         #include_next, outside the double-inclusion guard.
60748         * lib/stdio_.h [__DECC]: Likewise.
60749         * lib/stdlib_.h [__DECC]: Likewise.
60750         * lib/string_.h [__DECC]: Likewise.
60751         * lib/time_.h [__DECC]: Likewise.
60752         * lib/wchar_.h [__DECC]: Likewise.
60753         * lib/wctype_.h [__DECC]: Likewise.
60754         * lib/inttypes_.h [__DECC]: Likewise.
60755         Reported by Albert Chin <china@thewrittenword.com> in
60756         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60757
60758 2007-04-04  Eric Blake  <ebb9@byu.net>
60759
60760         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60761         1.5.x.
60762
60763 2007-04-04  Bruno Haible  <bruno@clisp.org>
60764
60765         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60766         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60767
60768 2007-04-04  Bruno Haible  <bruno@clisp.org>
60769
60770         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60771         results for "%010a" of Infinity and NaN.
60772         * tests/test-vasprintf-posix.c (test_function): Likewise.
60773         * tests/test-snprintf-posix.h (test_function): Likewise.
60774         * tests/test-sprintf-posix.h (test_function): Likewise.
60775         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60776         * tests/test-printf-posix.h (test_function): Likewise.
60777         * tests/test-fprintf-posix.out: Update.
60778         Needed for FreeBSD 6.1.
60779
60780 2007-04-04  Bruno Haible  <bruno@clisp.org>
60781
60782         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60783         directly used by the gnulib modules nor by gnulib-tool.
60784
60785 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60786
60787         * DEPENDENCIES: Give overall description of version dependency
60788         desirability.  Use more-typical names for apps.
60789         Add shell, coreutils, diffutils, grep, tar, gzip.
60790
60791 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60792
60793         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60794
60795 2007-04-04  Karl Berry  <karl@gnu.org>
60796
60797         * MODULES.html.sh (func_module): missing '.
60798
60799 2007-04-03  Bruno Haible  <bruno@clisp.org>
60800
60801         * modules/argmatch-tests (Makefile.am): New variable
60802         test_argmatch_LDADD.
60803         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60804         * modules/array-list-tests (Makefile.am): New variable
60805         test_array_list_LDADD.
60806         * modules/array-oset-tests (Makefile.am): New variable
60807         test_array_oset_LDADD.
60808         * modules/avltree-list-tests (Makefile.am): New variable
60809         test_avltree_list_LDADD.
60810         * modules/avltree-oset-tests (Makefile.am): New variable
60811         test_avltree_oset_LDADD.
60812         * modules/avltreehash-list-tests (Makefile.am): New variable
60813         test_avltreehash_list_LDADD.
60814         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60815         test_canonicalize_lgpl_LDADD.
60816         * modules/carray-list-tests (Makefile.am): New variable
60817         test_carray_list_LDADD.
60818         * modules/dirname-tests (Makefile.am): New variable
60819         test_dirname_LDADD.
60820         * modules/linked-list-tests (Makefile.am): New variable
60821         test_linked_list_LDADD.
60822         * modules/linkedhash-list-tests (Makefile.am): New variable
60823         test_linkedhash_list_LDADD.
60824         * modules/rbtree-list-tests (Makefile.am): New variable
60825         test_rbtree_list_LDADD.
60826         * modules/rbtree-oset-tests (Makefile.am): New variable
60827         test_rbtree_oset_LDADD.
60828         * modules/rbtreehash-list-tests (Makefile.am): New variable
60829         test_rbtreehash_list_LDADD.
60830         * modules/xvasprintf-tests (Makefile.am): New variable
60831         test_xvasprintf_LDADD.
60832         Reported by Eric Blake.
60833
60834 2007-04-03  Eric Blake  <ebb9@byu.net>
60835
60836         * DEPENDENCIES: Weaken m4 requirements.
60837
60838 2007-04-03  Bruno Haible  <bruno@clisp.org>
60839
60840         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60841         * modules/isnanl-tests (configure.ac): Likewise.
60842
60843 2007-04-03  Ben Pfaff  <blp@gnu.org>
60844
60845         * modules/iconv_open: Add $(srcdir)/ to source directory
60846         references in Makefile fragments that call gperf, to fix VPATH
60847         builds.
60848
60849 2007-04-03  Bruno Haible  <bruno@clisp.org>
60850
60851         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60852         * lib/ldexpl.c: Undo last change.
60853
60854 2007-04-03  Bruno Haible  <bruno@clisp.org>
60855
60856         * modules/printf-frexpl (Depends-on): Undo last change.
60857         (Files): Add m4/ldexpl.m4.
60858
60859 2007-04-03  Bruno Haible  <bruno@clisp.org>
60860
60861         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60862         * modules/isnanl (Link): New section.
60863
60864         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60865         * modules/frexp (Link): New section.
60866
60867         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60868         * modules/frexpl (Link): New section.
60869
60870         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60871         * modules/ldexpl (Link): New section.
60872
60873 2007-04-03  Bruno Haible  <bruno@clisp.org>
60874
60875         * modules/TEMPLATE-EXTENDED: New file.
60876         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60877
60878 2007-04-03  Bruno Haible  <bruno@clisp.org>
60879
60880         * DEPENDENCIES: New file.
60881         Suggested by Simon Josefsson.
60882
60883 2007-04-03  Bruno Haible  <bruno@clisp.org>
60884
60885         * doc/gnulib.texi: Escape @.
60886
60887 2007-04-03  James Youngman  <jay@gnu.org>
60888         and Paul Eggert  <eggert@cs.ucla.edu>
60889
60890         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60891         birthtime on all systems that have birthtime, not just those which
60892         use st_birthtimensec rather than st_birthtim.  Putting zero in
60893         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60894         that the birth time is not available for files on an NFS mount.
60895
60896 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60897
60898         * modules/memxor: Move back from crypto/, suggested by Bruno.
60899         * modules/crypto/hmac-sha1: Fix memxor dependency.
60900
60901         * modules/crypto/gc: Moved from ../.
60902
60903 2007-04-02  Eric Blake  <ebb9@byu.net>
60904
60905         * lib/ldexpl.c (includes): Avoid libm.
60906
60907         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60908
60909 2007-04-02  Bruno Haible  <bruno@clisp.org>
60910
60911         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60912         on IRIX.
60913
60914 2007-04-02  Bruno Haible  <bruno@clisp.org>
60915
60916         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60917         x86 or x86_64 platforms running MacOS X.
60918         Reported by Ryan Schmidt <@ryandesign.com>.
60919
60920 2007-04-02  Bruno Haible  <bruno@clisp.org>
60921
60922         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60923         i386.
60924
60925 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60926
60927         * modules/crypto/arcfour: Moved from ../.
60928         * modules/crypto/arcfour-tests: Moved from ../.
60929         * modules/crypto/arctwo: Moved from ../.
60930         * modules/crypto/arctwo-tests: Moved from ../.
60931         * modules/crypto/des: Moved from ../.
60932         * modules/crypto/des-tests: Moved from ../.
60933         * modules/crypto/gc-arcfour: Moved from ../.
60934         * modules/crypto/gc-arcfour-tests: Moved from ../.
60935         * modules/crypto/gc-arctwo: Moved from ../.
60936         * modules/crypto/gc-arctwo-tests: Moved from ../.
60937         * modules/crypto/gc-des: Moved from ../.
60938         * modules/crypto/gc-des-tests: Moved from ../.
60939         * modules/crypto/gc-hmac-md5: Moved from ../.
60940         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60941         * modules/crypto/gc-hmac-sha1: Moved from ../.
60942         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60943         * modules/crypto/gc-md2: Moved from ../.
60944         * modules/crypto/gc-md2-tests: Moved from ../.
60945         * modules/crypto/gc-md4: Moved from ../.
60946         * modules/crypto/gc-md4-tests: Moved from ../.
60947         * modules/crypto/gc-md5: Moved from ../.
60948         * modules/crypto/gc-md5-tests: Moved from ../.
60949         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60950         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60951         * modules/crypto/gc-random: Moved from ../.
60952         * modules/crypto/gc-rijndael: Moved from ../.
60953         * modules/crypto/gc-rijndael-tests: Moved from ../.
60954         * modules/crypto/gc-sha1: Moved from ../.
60955         * modules/crypto/gc-sha1-tests: Moved from ../.
60956         * modules/crypto/gc-tests: Moved from ../.
60957         * modules/crypto/hmac-md5: Moved from ../.
60958         * modules/crypto/hmac-md5-tests: Moved from ../.
60959         * modules/crypto/hmac-sha1: Moved from ../.
60960         * modules/crypto/hmac-sha1-tests: Moved from ../.
60961         * modules/crypto/md2: Moved from ../.
60962         * modules/crypto/md2-tests: Moved from ../.
60963         * modules/crypto/md4: Moved from ../.
60964         * modules/crypto/md4-tests: Moved from ../.
60965         * modules/crypto/md5: Moved from ../.
60966         * modules/crypto/md5-tests: Moved from ../.
60967         * modules/crypto/memxor: Moved from ../.
60968         * modules/crypto/rijndael: Moved from ../.
60969         * modules/crypto/rijndael-tests: Moved from ../.
60970         * modules/crypto/sha1: Moved from ../.
60971
60972 2007-03-30  James Youngman  <jay@gnu.org>
60973
60974         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60975         rename() to change the ctime of a file (because ctime is unaffected
60976         by rename on jfs2 on AIX 5.1).
60977         (main): Start by doing cleanup, in case a previous run failed leaving
60978         test files behind.
60979
60980 2007-03-31  Bruno Haible  <bruno@clisp.org>
60981
60982         Support old proprietary implementations of iconv.
60983         * modules/iconv_open: New file.
60984         * lib/iconv_.h: New file.
60985         * m4/iconv_h.m4: New file.
60986         * lib/iconv_open.c: New file.
60987         * lib/iconv_open-aix.gperf: New file.
60988         * lib/iconv_open-hpux.gperf: New file.
60989         * lib/iconv_open-irix.gperf: New file.
60990         * lib/iconv_open-osf.gperf: New file.
60991         * m4/iconv_open.m4: New file.
60992         * modules/linebreak (Depends-on): Add iconv_open.
60993         * modules/striconv (Depends-on): Likewise.
60994         * modules/striconveh (Depends-on): Likewise.
60995         * modules/unicodeio (Depends-on): Likewise.
60996         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60997         (iconv_t)(-1).
60998         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60999         conversion if cd is (iconv_t)(-1).
61000         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61001         is not possible.
61002
61003 2007-03-31  Bruno Haible  <bruno@clisp.org>
61004
61005         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61006         work on Solaris either. Protect also second use of "autodetect_jp".
61007
61008 2007-03-31  Bruno Haible  <bruno@clisp.org>
61009
61010         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61011         the function is not present.
61012
61013 2007-03-31  Bruno Haible  <bruno@clisp.org>
61014
61015         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61016         the function is not present.
61017
61018 2007-03-31  Bruno Haible  <bruno@clisp.org>
61019
61020         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61021         a bug in HP-UX iconv_open().
61022
61023 2007-03-31  Bruno Haible  <bruno@clisp.org>
61024
61025         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61026         (Mathematics <math.h>): New section, add fpieee.
61027         (Input/output <stdio.h>): Add fseterr.
61028         (Mathematics <math.h>): New section, add printf-frexp.
61029         (Container data structures): Add sublist.
61030         (Core language properties): Add fpucw, inline.
61031         (Functions for greatest-width integer types <inttypes.h>): Add
61032         imaxabs, imaxdiv, inttypes.
61033         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61034         isnanl-nolibm, ldexp.
61035         (Mathematics <math.h>): New section, add printf-frexpl.
61036         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61037         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61038         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61039         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61040         (Unicode string functions): Add unistr/u*-mbtoucr.
61041         (Java): Add javacomp-script, javaexec-script.
61042         (C#): Add csharpcomp-script, csharpexec-script.
61043         (Support for building libraries and executables): Add havelib,
61044         relocatable-*.
61045         (Support for maintaining and releasing projects): Renamed from
61046         'Support for maintaining and release projects'. Add announce-gen.
61047
61048 2007-03-31  Bruno Haible  <bruno@clisp.org>
61049
61050         * README: Talk primarily about git.
61051         (git and CVS): Renamed from CVS.
61052         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61053         gnulib is available through git.
61054         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61055
61056 2007-03-30  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61059         * lib/poll_.h: Likewise.
61060         * lib/stat_.h: Likewise.
61061         * lib/sys_time_.h: Likewise.
61062         * lib/sysexit_.h: Likewise.
61063         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61064         * lib/stdbool_.h: Likewise.
61065         * lib/byteswap_.h: Add double-inclusion guard.
61066
61067 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61068
61069         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61070
61071 2007-03-30  Karl Berry  <karl@gnu.org>
61072
61073         * config/srclist-update: double space after USA in the license
61074         substitution, since that's how it's usually (?) written.
61075
61076 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61077
61078         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61079         reported by Bruno Haible.
61080
61081 2007-03-29  Bruno Haible  <bruno@clisp.org>
61082
61083         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61084         a bug in AIX iconv().
61085
61086 2007-03-29  Bruno Haible  <bruno@clisp.org>
61087
61088         * modules/ldexpl-tests: New file.
61089         * tests/test-ldexpl.c: New file.
61090
61091 2007-03-29  Bruno Haible  <bruno@clisp.org>
61092
61093         * lib/ldexpl.c: Include fpucw.h.
61094         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61095         multiplication.
61096         * modules/ldexpl (Depends-on): Add fpucw.
61097
61098 2007-03-29  Bruno Haible  <bruno@clisp.org>
61099
61100         * modules/ldexpl: New file.
61101         * m4/ldexpl.m4: New file.
61102         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61103         set.
61104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61105         REPLACE_LDEXPL.
61106         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61107         REPLACE_LDEXPL.
61108         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61109         gl_FUNC_LDEXPL_WORKS.
61110         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61111         * modules/mathl (Files): Remove lib/ldexpl.c.
61112         (Depends-on): Add ldexpl.
61113
61114 2007-03-29  Bruno Haible  <bruno@clisp.org>
61115
61116         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61117
61118 2007-03-29  Bruno Haible  <bruno@clisp.org>
61119
61120         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61121         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61122         and possibly also HP-UX.
61123         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61124         work on AIX, IRIX, HP-UX, OSF/1.
61125         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61126         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61127         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61128         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61129         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61130         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61131
61132 2007-03-29  Bruno Haible  <bruno@clisp.org>
61133
61134         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61135
61136 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61137
61138         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61139         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61140
61141 2007-03-29  Eric Blake  <ebb9@byu.net>
61142
61143         * lib/acl-internal.h: Remove redundant include.
61144         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61145         Cygwin when a file is locked.
61146
61147 2007-03-29  Bruno Haible  <bruno@clisp.org>
61148
61149         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61150         file.
61151         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61152
61153 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61154
61155         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61156         try to remove a parent directory if the child couldn't be removed
61157         (except for the first rmdir, which could fail because the child
61158         doesn't exist).  Problem reported by Jeff Blaine in
61159         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61160
61161 2007-03-28  Bruno Haible  <bruno@clisp.org>
61162
61163         * lib/striconveh.c (utf8conv_carefully): New function.
61164         (mem_cd_iconveh_internal): Invoke it.
61165
61166 2007-03-28  Bruno Haible  <bruno@clisp.org>
61167
61168         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61169         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61170         input.
61171         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61172         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61173         unistr/u8-uctomb.
61174
61175 2007-03-28  Bruno Haible  <bruno@clisp.org>
61176
61177         * modules/unistr/u8-mbtoucr: New file.
61178         * lib/unistr/u8-mbtoucr.c: New file.
61179         * modules/unistr/u16-mbtoucr: New file.
61180         * lib/unistr/u16-mbtoucr.c: New file.
61181         * modules/unistr/u16-mbtoucr: New file.
61182         * lib/unistr/u16-mbtoucr.c: New file.
61183         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61184
61185 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61186             Bruno Haible  <bruno@clisp.org>
61187
61188         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61189         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61190         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61191
61192         * m4/stdio_h.m4: Add stubs for vasprintf too.
61193
61194         * modules/stdio: Support vasprintf in sed command.
61195
61196         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61197         vasprintf.h.  Add stdio module indicator.
61198
61199         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61200         vasprintf.h.
61201
61202         * lib/vasprintf.h: File removed.
61203
61204         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61205         * lib/vasprintf.c: Ditto.
61206         * lib/xvasprintf.c: Ditto.
61207         * tests/test-vasprintf-posix.c: Ditto.
61208         * tests/test-vasprintf.c: Ditto.
61209
61210 2007-03-27  Bruno Haible  <bruno@clisp.org>
61211
61212         Make vasnprintf multithread-safe.
61213         * lib/vasnprintf.c (decimal_point_char): New function.
61214         (VASNPRINTF): Use it.
61215         Suggested by Simon Josefsson.
61216
61217 2007-03-27  Eric Blake  <ebb9@byu.net>
61218
61219         Support sub-second birthtime on cygwin.
61220         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61221         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61222         (get_stat_birthtime): Also work with st_birthtim.
61223
61224 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61225
61226         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61227         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61228         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61229         (get_stat_birthtime_ns): Simplify compile-time tests.
61230         (get_stat_birthtime): Change the API to look like
61231         get_stat_mtime etc., except return a negative tv_nsec on error.
61232         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61233         Don't check for "spare" fields.
61234         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61235         or for struct stat.st_birthtime, as these tests aren't used.
61236         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61237
61238 2007-03-27  Bruno Haible  <bruno@clisp.org>
61239
61240         * lib/stat-time.h: Include <sys/stat.h>.
61241
61242 2007-03-27  James Youngman  <jay@gnu.org>
61243
61244         * lib/stat-time.h (get_stat_birthtime): New function for
61245           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61246         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61247           and its variants.
61248         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61249         * modules/stat-time-test: New file.
61250         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61251
61252 2007-03-26  Bruno Haible  <bruno@clisp.org>
61253
61254         Better support of signalling NaNs.
61255         * lib/atanl.c: Include isnanl.h.
61256         (atanl): Perform test for NaN at the beginning of the function and
61257         through a call to isnanl.
61258         * lib/cosl.c: Include isnanl.h.
61259         (cosl): Perform test for NaN at the beginning of the function and
61260         through a call to isnanl.
61261         * lib/ldexpl.c: Include isnanl.h.
61262         (ldexpl): Perform test for NaN through a call to isnanl.
61263         * lib/logl.c: Include isnanl.h.
61264         (logl): Perform test for NaN at the beginning of the function and
61265         through a call to isnanl.
61266         * lib/sinl.c: Include isnanl.h.
61267         (sinl): Perform test for NaN at the beginning of the function and
61268         through a call to isnanl.
61269         * lib/sqrtl.c: Include isnanl.h.
61270         (sqrtl): Perform test for NaN at the beginning of the function and
61271         through a call to isnanl.
61272         * lib/tanl.c: Include isnanl.h.
61273         (tanl): Perform test for NaN at the beginning of the function and
61274         through a call to isnanl.
61275         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61276         * modules/mathl (Depends-on): Add isnanl.
61277
61278 2007-03-26  Eric Blake  <ebb9@byu.net>
61279
61280         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61281         regression in logic sense of previous patch.
61282
61283 2007-03-26  Bruno Haible  <bruno@clisp.org>
61284
61285         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61286         unportable shell command "if ! ...".
61287         Reported by Ralf Wildenhues.
61288
61289 2007-03-25  Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61292         <sysexits.h> file, and only add EX_CONFIG.
61293         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61294         absolute file name and whether it is sufficient. Substitute also
61295         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61296         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61297         ABSOLUTE_SYSEXITS_H into sysexits.h.
61298
61299 2007-03-25  Bruno Haible  <bruno@clisp.org>
61300
61301         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61302         hints is NULL.
61303
61304 2007-03-25  Bruno Haible  <bruno@clisp.org>
61305
61306         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61307         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61308
61309 2007-03-25  Bruno Haible  <bruno@clisp.org>
61310
61311         * lib/vasnprintf.c: Include langinfo.h.
61312         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61313         multithread-safe.
61314         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61315         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61316         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61317         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61318         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61319         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61320         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61321         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61322         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61323         Reported by Simon Josefsson.
61324
61325 2007-03-25  Bruno Haible  <bruno@clisp.org>
61326
61327         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61328         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61329         * modules/vasnprintf (Depends-on): Add stdint.
61330
61331 2007-03-25  Bruno Haible  <bruno@clisp.org>
61332
61333         * modules/fpieee: New file.
61334         * m4/fpieee.m4: New file.
61335         * modules/isnan-nolibm (Depends-on): Add fpieee.
61336         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61337         * modules/isnanl (Depends-on): Add fpieee.
61338
61339 2007-03-25  Bruno Haible  <bruno@clisp.org>
61340
61341         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61342
61343 2007-03-25  Bruno Haible  <bruno@clisp.org>
61344
61345         Avoid test failures on IRIX 6.5.
61346         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61347         (main): Use it.
61348         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61349         macros.
61350         (main): Use them.
61351
61352 2007-03-25  Bruno Haible  <bruno@clisp.org>
61353
61354         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61355         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61356         exists but doesn't work.
61357         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61358         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61360         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61361         math.h.
61362
61363 2007-03-25  Bruno Haible  <bruno@clisp.org>
61364
61365         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61366         returns inf. Needed on IRIX 6.5.
61367
61368 2007-03-25  Bruno Haible  <bruno@clisp.org>
61369
61370         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61371         (main): Use isnanl instead of x != x idiom.
61372         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61373
61374         * tests/test-frexp.c: Include isnan.h.
61375         (main): Use isnan instead of x != x idiom.
61376         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61377
61378 2007-03-25  Bruno Haible  <bruno@clisp.org>
61379
61380         * tests/test-frexp.c (NaN): New function/macro.
61381         (main): Use it instead of 0.0 / 0.0.
61382         * tests/test-isnan.c (NaN): New function/macro.
61383         (main): Use it instead of 0.0 / 0.0.
61384         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61385         (test_function): Use it instead of 0.0 / 0.0.
61386         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61387         (test_function): Use it instead of 0.0 / 0.0.
61388         * tests/test-snprintf-posix.h (NaN): New function/macro.
61389         (test_function): Use it instead of 0.0 / 0.0.
61390         * tests/test-sprintf-posix.h (NaN): New function/macro.
61391         (test_function): Use it instead of 0.0 / 0.0.
61392         * tests/test-fprintf-posix.h (NaN): New function/macro.
61393         (test_function): Use it instead of 0.0 / 0.0.
61394         * tests/test-printf-posix.h (NaN): New function/macro.
61395         (test_function): Use it instead of 0.0 / 0.0.
61396
61397         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61398
61399 2007-03-25  Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61402
61403 2007-03-25  Bruno Haible  <bruno@clisp.org>
61404
61405         * lib/regexec.c (merge_state_with_log): Make static.
61406
61407 2007-03-25  Bruno Haible  <bruno@clisp.org>
61408
61409         * lib/trigl.c (kernel_rem_pio2): Make static.
61410
61411 2007-03-25  Bruno Haible  <bruno@clisp.org>
61412
61413         * lib/sincosl.c (sincosl_table): Make static.
61414
61415 2007-03-25  Bruno Haible  <bruno@clisp.org>
61416
61417         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61418         if the compiler does not support C99.
61419
61420 2007-03-25  Bruno Haible  <bruno@clisp.org>
61421
61422         * modules/time (Makefile.am): Ensure all rule action lines start with a
61423         tab.
61424
61425 2007-03-24  Bruno Haible  <bruno@clisp.org>
61426
61427         * modules/tsearch-tests: New file.
61428         * tests/test-tsearch.sh: New file.
61429         * tests/test-tsearch.c: New file, mostly copied from glibc.
61430
61431         * modules/search-tests: New file.
61432         * tests/test-search.c: New file.
61433
61434         * modules/search: New file.
61435         * lib/search_.h: New file, incorporating lib/tsearch.h.
61436         * m4/search_h.m4: New file.
61437         * lib/tsearch.h: Remove file.
61438         * lib/tsearch.c: Include search.h instead of tsearch.h.
61439         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61440         HAVE_TSEARCH.
61441         * modules/tsearch (Files): Remove lib/tsearch.h.
61442         (Depends-on): Add search.
61443         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61444         (Include): Change tsearch.h into search.h.
61445
61446 2007-03-24  Bruno Haible  <bruno@clisp.org>
61447
61448         * modules/fpucw: New file.
61449         * lib/fpucw.h: New file.
61450         * lib/frexp.c: Include fpucw.h.
61451         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61452         (FUNC): Use them.
61453         * lib/printf-frexp.c: Include fpucw.h.
61454         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61455         (FUNC): Use them.
61456         * lib/vasnprintf.c: Include fpucw.h.
61457         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61458         'long double' calculations.
61459         * tests/test-frexpl.c: Include fpucw.h.
61460         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61461         * tests/test-printf-frexpl.c: Include fpucw.h.
61462         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61463         * modules/frexpl (Depends-on): Add fpucw.
61464         * modules/printf-frexpl (Depends-on): Likewise.
61465         * modules/fprintf-posix (Depends-on): Likewise.
61466         * modules/snprintf-posix (Depends-on): Likewise.
61467         * modules/sprintf-posix (Depends-on): Likewise.
61468         * modules/vasnprintf-posix (Depends-on): Likewise.
61469         * modules/vasprintf-posix (Depends-on): Likewise.
61470         * modules/vfprintf-posix (Depends-on): Likewise.
61471         * modules/vsnprintf-posix (Depends-on): Likewise.
61472         * modules/vsprintf-posix (Depends-on): Likewise.
61473         * modules/frexpl-tests (Depends-on): Likewise.
61474         * modules/printf-frexpl-tests (Depends-on): Likewise.
61475
61476 2007-03-24  Bruno Haible  <bruno@clisp.org>
61477
61478         * lib/float+.h: New file.
61479         * lib/isnan.c: Include float+.h.
61480         (SIZE): New macro.
61481         (FUNC): Compare only SIZE bytes of the value.
61482         * lib/vasnprintf.c: Include float+.h.
61483         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61484         SIZEOF_LDBL or SIZEOF_DBL bytes.
61485         * modules/isnan-nolibm (Files): Add lib/float+.h.
61486         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61487         * modules/isnanl (Files): Add lib/float+.h.
61488         * modules/vasnprintf (Files): Add lib/float+.h.
61489
61490 2007-03-24  Bruno Haible  <bruno@clisp.org>
61491
61492         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61493         include isnanl-nolibm.h.
61494
61495 2007-03-24  Bruno Haible  <bruno@clisp.org>
61496
61497         * tests/test-read-file.c (main): Don't produce spurious output for
61498         expected situations. Make the test fail if it encountered unexpected
61499         results.
61500
61501 2007-03-24  Bruno Haible  <bruno@clisp.org>
61502
61503         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61504         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61505
61506 2007-03-24  Bruno Haible  <bruno@clisp.org>
61507
61508         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61509
61510 2007-03-24  Bruno Haible  <bruno@clisp.org>
61511
61512         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61513         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61514
61515         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61516         * modules/utf8-ucs4: Turn into a symbolic link to module
61517         unistr/u8-mbtouc.
61518
61519         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61520         utf8-ucs4-unsafe.
61521         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61522         unistr/u8-mbtouc-unsafe.
61523
61524         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61525         * modules/utf16-ucs4: Turn into a symbolic link to module
61526         unistr/u16-mbtouc.
61527
61528         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61529         utf16-ucs4-unsafe.
61530         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61531         unistr/u16-mbtouc-unsafe.
61532
61533         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61534         * modules/ucs4-utf8: Turn into a symbolic link to module
61535         unistr/u8-ubtomb.
61536
61537         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61538         * modules/ucs4-utf16: Turn into a symbolic link to module
61539         unistr/u16-ubtomb.
61540
61541 2007-03-24  Bruno Haible  <bruno@clisp.org>
61542
61543         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61544         Enable the function only if HAVE_INLINE.
61545         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61546         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61547         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61548         Enable the function only if HAVE_INLINE.
61549         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61550         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61551         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61552         Enable the function only if HAVE_INLINE.
61553         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61554         Enable the function only if HAVE_INLINE.
61555         * modules/utf8-ucs4: Update.
61556         * modules/utf8-ucs4-unsafe: Update.
61557         * modules/utf16-ucs4: Update.
61558         * modules/utf16-ucs4-unsafe: Update.
61559         * modules/ucs4-utf8: Update.
61560         * modules/ucs4-utf16: Update.
61561
61562 2007-03-24  Bruno Haible  <bruno@clisp.org>
61563
61564         * lib/utf8-ucs4.h: Remove file.
61565         * lib/utf8-ucs4-unsafe.h: Remove file.
61566         * lib/utf16-ucs4.h: Remove file.
61567         * lib/utf16-ucs4-unsafe.h: Remove file.
61568         * lib/ucs4-utf8.h: Remove file.
61569         * lib/ucs4-utf16.h: Remove file.
61570         * lib/unistr.h: Include their previous contents.
61571         * m4/utf-ucs4.m4: Remove file.
61572         * m4/ucs4-utf.m4: Remove file.
61573         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61574         (Depends-on): Add unistr/base.
61575         (configure.ac): Remove gl_UTF_UCS4.
61576         (Makefile.am): Update.
61577         (Include): Change to unistr.h.
61578         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61579         (Depends-on): Add unistr/base.
61580         (configure.ac): Remove gl_UTF_UCS4.
61581         (Makefile.am): Update.
61582         (Include): Change to unistr.h.
61583         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61584         (Depends-on): Add unistr/base.
61585         (configure.ac): Remove gl_UTF_UCS4.
61586         (Makefile.am): Update.
61587         (Include): Change to unistr.h.
61588         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61589         (Depends-on): Add unistr/base.
61590         (configure.ac): Remove gl_UTF_UCS4.
61591         (Makefile.am): Update.
61592         (Include): Change to unistr.h.
61593         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61594         (Depends-on): Add unistr/base.
61595         (configure.ac): Remove gl_UCS4_UTF.
61596         (Makefile.am): Update.
61597         (Include): Change to unistr.h.
61598         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61599         (Depends-on): Add unistr/base.
61600         (configure.ac): Remove gl_UCS4_UTF.
61601         (Makefile.am): Update.
61602         (Include): Change to unistr.h.
61603         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61604         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61605         utf8-ucs4-unsafe.h.
61606         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61607         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61608         utf16-ucs4-unsafe.h.
61609         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61610         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61611         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61612         * lib/unistr/u8-strchr.c: Likewise.
61613         * lib/unistr/u8-strrchr.c: Likewise.
61614         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61615         * lib/unistr/u16-strchr.c: Likewise.
61616         * lib/unistr/u16-strrchr.c: Likewise.
61617         * lib/striconveh.c: Update.
61618         * lib/linebreak.c: Update.
61619
61620 2007-03-24  Bruno Haible  <bruno@clisp.org>
61621
61622         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61623         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61624
61625 2007-03-22  Bruno Haible  <bruno@clisp.org>
61626
61627         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61628
61629 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61630
61631         * MODULES.html.sh (File system functions): New module write-any-file.
61632         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61633         * m4/write-any-file.m4: New files.
61634
61635 2007-03-23  Eric Blake  <ebb9@byu.net>
61636
61637         * gnulib-tool: Rearrange space-tab sequences, since some editors
61638         like to eat them.
61639
61640 2007-03-23  Eric Blake  <ebb9@byu.net>
61641
61642         * lib/version-etc.c (version_etc_va): Update license wording to
61643         be more concise.  Recommended by Richard Stallman.
61644
61645 2007-03-22  Bruno Haible  <bruno@clisp.org>
61646
61647         * lib/poll.c (MSG_PEEK): New fallback definition.
61648
61649 2007-03-22  Bruno Haible  <bruno@clisp.org>
61650
61651         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61652         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61653         (main): Update.
61654         Fixes a compilation error on BeOS.
61655
61656 2007-03-22  Bruno Haible  <bruno@clisp.org>
61657
61658         * modules/frexpl-tests: New file.
61659         * tests/test-frexpl.c: New file.
61660
61661         * modules/frexpl: New file.
61662         * m4/frexpl.m4: New file.
61663         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61664         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61666         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61667         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61668         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61669
61670 2007-03-22  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/frexpl.c: Share code with lib/frexp.c.
61673         * modules/mathl (Files): Add lib/frexp.c.
61674         (Depends-on): Add isnanl-nolibm.
61675
61676 2007-03-22  Bruno Haible  <bruno@clisp.org>
61677
61678         * modules/printf-frexp (Files): Add m4/frexp.m4.
61679         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61680         only if the found frexp function actually works.
61681
61682 2007-03-22  Bruno Haible  <bruno@clisp.org>
61683
61684         * lib/frexp.c: Remove older implementation that uses divisions.
61685
61686 2007-03-21  Bruno Haible  <bruno@clisp.org>
61687
61688         * modules/frexp-tests: New file.
61689         * tests/test-frexp.c: New file.
61690
61691         * modules/frexp: New file.
61692         * lib/frexp.c: New file.
61693         * m4/frexp.m4: New file.
61694         * lib/math_.h (frexp): New declaration.
61695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61696         REPLACE_FREXP.
61697         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61698
61699 2007-03-21  Bruno Haible  <bruno@clisp.org>
61700
61701         * modules/isnanl-tests: New file.
61702         * tests/test-isnanl.c: New file.
61703
61704         * modules/isnanl: New file.
61705         * lib/isnanl.h: New file.
61706         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61707         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61708         gl_FUNC_ISNANL_WORKS.
61709         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61710         New macros.
61711
61712 2007-03-21  Bruno Haible  <bruno@clisp.org>
61713
61714         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61715         lib/isnanl.h.
61716         (Include): Update.
61717         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61718         * lib/vasnprintf.c: Update.
61719         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61720         tests/test-isnanl.h, remove tests/test-isnanl.c.
61721         (Makefile.am): Update.
61722         * tests/test-isnanl-nolibm.c: New file.
61723         * tests/test-isnanl.h: New file.
61724         * tests/test-isnanl.c: Remove file.
61725
61726 2007-03-21  Jim Meyering  <jim@meyering.net>
61727
61728         When trying to open ".", treat ESTALE like EACCES.
61729         * lib/savewd.c (savewd_save): Resort to forking not just upon
61730         failure with EACCES, but also when errno is ESTALE.
61731
61732 2007-03-20  Bruno Haible  <bruno@clisp.org>
61733
61734         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61735         Needed on AIX 5.1. Reported by Matthew Woehlke.
61736
61737 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61738
61739         Suggestions by Bruno Haible:
61740         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61741         our own.
61742         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61743         * modules/acl (Depends-on): Add gettext.
61744
61745 2007-03-19  Bruno Haible  <bruno@clisp.org>
61746
61747         * modules/iconvme: Remove file.
61748         * lib/iconvme.h: Remove file.
61749         * lib/iconvme.c: Remove file.
61750         * m4/iconvme.m4: Remove file.
61751
61752 2007-03-19  Bruno Haible  <bruno@clisp.org>
61753
61754         * doc/relocatable-maint.texi: Break long shell script line.
61755         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61756
61757 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61758
61759         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61760         handle file_has_acl.
61761         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61762         * lib/acl.c: Move header inclusions and related macro defns into
61763         lib/acl-internal.h.
61764         (S_ISLNK): Remove defn, since that's now done for us.
61765         (file_has_acl): Move to lib/file-has-acl.c.
61766         Call acl_trivial if available.  This is the crucial part of the fix.
61767         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61768         shared within the library.  Rewrite a bit, partly to make it compatible
61769         with the GNU coding style.
61770         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61771         Remove unnecessary double-quotes.
61772         Don't test for acl_to_text; the build will catch that.
61773         Replace acl_entries if it doesn't exist and it is needed.
61774         Check for -lsec and acl_trivial (as used on Solaris 10).
61775         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61776         lib/file-has-acl.c.
61777         (Depends-on): Add sys_stat, for S_ISLNK.
61778
61779 2007-03-19  Ben Pfaff  <blp@gnu.org>
61780
61781         * doc/gnulib.texi: Fix typos.
61782         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61783
61784 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61785
61786         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61787         If size is zero here, buf must be zero.
61788
61789 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61790
61791         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61792         <bruno@clisp.org>.
61793
61794 2007-03-18  Bruno Haible  <bruno@clisp.org>
61795
61796         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61797         Suggested by Eric Blake.
61798
61799 2007-03-18  Ben Pfaff  <blp@gnu.org>
61800
61801         * doc/relocatable.texi: Recommend using as prefix a directory
61802         that does not exist and will never be created.  Based on
61803         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61804         and others.
61805
61806 2007-03-17  Bruno Haible  <bruno@clisp.org>
61807
61808         * lib/fchownat.c: Include lchown.h.
61809
61810 2007-03-17  Bruno Haible  <bruno@clisp.org>
61811
61812         Fix endless loop when the given allocated size was > INT_MAX.
61813         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61814         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61815         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61816         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61817         * lib/sprintf.c (sprintf): Likewise.
61818
61819 2007-03-17  Bruno Haible  <bruno@clisp.org>
61820
61821         * tests/test-argp-2.sh (func_compare): Output a context diff.
61822
61823 2007-03-17  Bruno Haible  <bruno@clisp.org>
61824
61825         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61826         locale's decimal-point character.
61827
61828 2007-03-17  Bruno Haible  <bruno@clisp.org>
61829
61830         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61831         before comparing it. Needed because on some platforms (e.g. x86) a
61832         'long double' occupies less bytes than sizeof (long double).
61833
61834 2007-03-17  Bruno Haible  <bruno@clisp.org>
61835
61836         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61837         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61838         * tests/test-getaddrinfo.c (simple): Likewise.
61839         * tests/test-read-file.c (main): Likewise.
61840
61841 2007-03-17  Bruno Haible  <bruno@clisp.org>
61842
61843         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61844
61845 2007-03-17  Bruno Haible  <bruno@clisp.org>
61846
61847         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61848         unused variable.
61849
61850 2007-03-17  Bruno Haible  <bruno@clisp.org>
61851
61852         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61853         * tests/test-c-strncasecmp.c: Likewise.
61854
61855 2007-03-17  Bruno Haible  <bruno@clisp.org>
61856
61857         * modules/stdlib (Depends-on): Add unistd.
61858         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61859         Needed for MacOS X 10.3.
61860
61861 2007-03-17  Bruno Haible  <bruno@clisp.org>
61862
61863         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61864
61865 2007-03-17  Bruno Haible  <bruno@clisp.org>
61866
61867         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61868
61869 2007-03-17  Bruno Haible  <bruno@clisp.org>
61870
61871         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61872         to reflect files copied from gnulib (with or without modifications).
61873         Suggested by Jim Meyering.
61874
61875 2007-03-17  Eric Blake  <ebb9@byu.net>
61876
61877         * NEWS: Document stdlib change from 2007-02-18.
61878
61879 2007-03-17  Jim Meyering  <jim@meyering.net>
61880
61881         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61882         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61883         someone uses a name containing shell meta-characters.
61884         Reported by Alfred M. Szmidt.
61885
61886         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61887
61888 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61889
61890         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61891         and copy gettext configuration files only if configure.ac contains
61892         a use of AM_GNU_GETTEXT_VERSION.
61893
61894 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61895
61896         * build-aux/bootstrap (gnulib_name): New variable.
61897         (gnulib_tool_options): Use it.
61898
61899 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61900
61901         * tests/test-des.c: Use new namespace.
61902
61903 2007-03-15  Bruno Haible  <bruno@clisp.org>
61904
61905         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61906         Reported by James Youngman <jay@gnu.org>.
61907
61908 2007-03-15  Bruno Haible  <bruno@clisp.org>
61909
61910         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61911         declared prototype. Needed with cc on OSF/1 5.1.
61912
61913 2007-03-15  Bruno Haible  <bruno@clisp.org>
61914
61915         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61916         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61917         (struct gl_list_implementation): Add dispose_fn argument to the
61918         'create_empty', 'create' methods.
61919         (struct gl_list_impl_base): Add field 'dispose_fn'.
61920         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61921         argument.
61922         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61923         dispose_fn argument.
61924         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61925         dispose_fn on the dropped values.
61926         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61927         dispose_fn argument.
61928         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61929         dropped values.
61930         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61931         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61932         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61933         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61934         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61935         argument.
61936         (gl_tree_list_free): Call dispose_fn on the dropped values.
61937         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61938         the dropped values.
61939         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61940         Add dispose_fn argument.
61941         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61942         Call dispose_fn on the dropped values.
61943         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61944         Add dispose_fn argument.
61945         (gl_sublist_create): Initialize the 'dispose_fn' field.
61946         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61947         * tests/test-array_list.c (main): Update.
61948         * tests/test-carray_list.c (main): Update.
61949         * tests/test-avltree_list.c (main): Update.
61950         * tests/test-rbtree_list.c (main): Update.
61951         * tests/test-avltreehash_list.c (main): Update.
61952         * tests/test-rbtreehash_list.c (main): Update.
61953         * tests/test-linked_list.c (main): Update.
61954         * tests/test-linkedhash_list.c (main): Update.
61955         * tests/test-array_oset.c (main): Update.
61956
61957 2007-03-15  Bruno Haible  <bruno@clisp.org>
61958
61959         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61960         (gl_oset_create_empty): Add dispose_fn argument.
61961         (struct gl_oset_implementation): Add dispose_fn argument to
61962         'create_empty' method.
61963         (struct gl_oset_impl_base): Add dispose_fn field.
61964         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61965         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61966         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61967         values.
61968         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61969         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61970         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61971         dropped value.
61972         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61973         dropped value.
61974         * tests/test-array_oset.c (main): Update.
61975         * tests/test-avltree_oset.c (main): Update.
61976         * tests/test-rbtree_oset.c (main): Update.
61977         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61978
61979 2007-03-13  Bruno Haible  <bruno@clisp.org>
61980
61981         * tests/test-stdbool.c (i): Update after last patch.
61982
61983 2007-03-12  Bruno Haible  <bruno@clisp.org>
61984
61985         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61986         the iswprint macro. Needed on Solaris 2.5.1.
61987
61988 2007-03-12  Bruno Haible  <bruno@clisp.org>
61989
61990         * tests/test-printf-frexp.c (main): Declare x as volatile.
61991
61992 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61993
61994         * doc/gnulib.texi (Build robot for gnulib): New section.
61995
61996 2007-03-12  Jim Meyering  <jim@meyering.net>
61997
61998         * build-aux/bootstrap: New file.
61999         * build-aux/bootstrap.conf: New file, from coreutils.
62000
62001 2007-03-11  Bruno Haible  <bruno@clisp.org>
62002
62003         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62004
62005 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62006
62007         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62008         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62009         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62010
62011 2007-03-11  Bruno Haible  <bruno@clisp.org>
62012
62013         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62014         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62015
62016 2007-03-11  Bruno Haible  <bruno@clisp.org>
62017
62018         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62019         formula. Needed for SunPRO C 5.0.
62020
62021 2007-03-11  Bruno Haible  <bruno@clisp.org>
62022
62023         * modules/long-options (Depends-on): Add getopt.
62024
62025 2007-03-11  Bruno Haible  <bruno@clisp.org>
62026
62027         * modules/modechange (Depends-on): Add stdbool.
62028
62029 2007-03-11  Bruno Haible  <bruno@clisp.org>
62030
62031         * modules/i-ring (Depends-on): Add stdbool.
62032
62033 2007-03-11  Bruno Haible  <bruno@clisp.org>
62034
62035         * modules/gc-des (Depends-on): Add stdbool.
62036
62037 2007-03-11  Bruno Haible  <bruno@clisp.org>
62038
62039         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62040
62041 2007-03-11  Bruno Haible  <bruno@clisp.org>
62042
62043         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62044
62045 2007-03-11  Bruno Haible  <bruno@clisp.org>
62046
62047         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62048
62049 2007-03-11  Bruno Haible  <bruno@clisp.org>
62050
62051         * lib/vasnprintf.c (sprintf): Undefine.
62052
62053 2007-03-11  Bruno Haible  <bruno@clisp.org>
62054
62055         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62056         initializers in SunPRO C and Compaq C compilers.
62057
62058 2007-03-11  Bruno Haible  <bruno@clisp.org>
62059
62060         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62061         decrementing code ANSI C compliant.
62062
62063 2007-03-11  Bruno Haible  <bruno@clisp.org>
62064
62065         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62066         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62067
62068 2007-03-11  Bruno Haible  <bruno@clisp.org>
62069
62070         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62071         <stdbool.h> substitute doesn't pass.
62072
62073 2007-03-11  Bruno Haible  <bruno@clisp.org>
62074
62075         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62076
62077 2007-03-11  Bruno Haible  <bruno@clisp.org>
62078
62079         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62080         script, for submission to autobuild.josefsson.org.
62081
62082 2007-03-10  Bruno Haible  <bruno@clisp.org>
62083
62084         * modules/canonicalize-lgpl-tests: New file.
62085         * tests/test-canonicalize-lgpl.sh: New file.
62086         * tests/test-canonicalize-lgpl.c: New file.
62087
62088         * modules/c-strcase-tests: New file.
62089         * tests/test-c-strcase.sh: New file.
62090         * tests/test-c-strcasecmp.c: New file.
62091         * tests/test-c-strncasecmp.c: New file.
62092
62093         * modules/atexit-tests: New file.
62094         * tests/test-atexit.sh: New file.
62095         * tests/test-atexit.c: New file.
62096
62097 2007-03-10  Bruno Haible  <bruno@clisp.org>
62098
62099         * tests/test-binary-io.sh: Use temporary filenames that are not so
62100         likely to clash with those of other tests (in a parallel make).
62101         * tests/test-binary-io.c: Likewise.
62102
62103 2007-03-10  Bruno Haible  <bruno@clisp.org>
62104
62105         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62106         fallback; use #error instead.
62107         Suggested by Simon Josefsson.
62108
62109 2007-03-10  Bruno Haible  <bruno@clisp.org>
62110
62111         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62112         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62113         first and the last.
62114
62115 2007-03-10  Bruno Haible  <bruno@clisp.org>
62116
62117         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62118
62119 2007-03-10  Bruno Haible  <bruno@clisp.org>
62120
62121         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62122         "make distcheck".
62123         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62124         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62125         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62126
62127 2007-03-10  Bruno Haible  <bruno@clisp.org>
62128
62129         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62130         variable.
62131         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62132         variable.
62133
62134 2007-03-09  Eric Blake  <ebb9@byu.net>
62135         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62136
62137         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62138         types are not being provided by gnulib.
62139         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62140         types are supported.
62141
62142 2007-03-10  Bruno Haible  <bruno@clisp.org>
62143
62144         * lib/stdio_.h (__attribute__): New macro.
62145         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62146         vsprintf): Specify __attribute__ __format__ for GCC.
62147         Suggested by Eric Blake.
62148
62149 2007-03-09  Bruno Haible  <bruno@clisp.org>
62150
62151         * modules/printf-posix-tests: New file.
62152         * tests/test-printf-posix.sh: New file.
62153         * tests/test-printf-posix.c: New file.
62154
62155         * modules/printf-posix: New file.
62156         * lib/printf.c: New file.
62157         * m4/printf-posix-rpl.m4: New file.
62158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62159         REPLACE_PRINTF.
62160         * lib/stdio_.h (printf): New declaration.
62161         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62162         ____strfmon____): New macros.
62163         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62164         REPLACE_PRINTF.
62165
62166 2007-03-09  Bruno Haible  <bruno@clisp.org>
62167
62168         * tests/test-vasnprintf-posix2.sh: New file.
62169         * tests/test-vasnprintf-posix2.c: New file.
62170         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62171         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62172         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62173
62174         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62175         a locale dependent decimal point, rather than always '.'.
62176
62177 2007-03-09  Eric Blake  <ebb9@byu.net>
62178
62179         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62180         spite of platforms like Tandem/NSK that define it to -1.
62181
62182 2007-03-08  Bruno Haible  <bruno@clisp.org>
62183
62184         * modules/vprintf-posix-tests: New file.
62185         * tests/test-vprintf-posix.sh: New file.
62186         * tests/test-vprintf-posix.c: New file.
62187         * tests/test-printf-posix.h: New file.
62188
62189         * modules/vprintf-posix: New file.
62190         * lib/vprintf.c: New file.
62191         * m4/vprintf-posix.m4: New file.
62192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62193         REPLACE_VPRINTF.
62194         * lib/stdio_.h (vprintf): New declaration.
62195         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62196         REPLACE_VPRINTF.
62197
62198 2007-03-08  Bruno Haible  <bruno@clisp.org>
62199
62200         * modules/fprintf-posix-tests: New file.
62201         * tests/test-fprintf-posix.sh: New file.
62202         * tests/test-fprintf-posix.c: New file.
62203
62204         * modules/fprintf-posix: New file.
62205         * lib/fprintf.c: New file.
62206         * m4/fprintf-posix.m4: New file.
62207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62208         REPLACE_FPRINTF.
62209         * lib/stdio_.h (fprintf): New declaration.
62210         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62211         REPLACE_FPRINTF.
62212
62213 2007-03-08  Bruno Haible  <bruno@clisp.org>
62214
62215         * modules/vfprintf-posix-tests: New file.
62216         * tests/test-vfprintf-posix.sh: New file.
62217         * tests/test-vfprintf-posix.c: New file.
62218         * tests/test-fprintf-posix.h: New file.
62219         * tests/test-fprintf-posix.out: New file.
62220
62221         * modules/vfprintf-posix: New file.
62222         * lib/vfprintf.c: New file.
62223         * m4/vfprintf-posix.m4: New file.
62224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62225         REPLACE_VFPRINTF.
62226         * lib/stdio_.h (vfprintf): New declaration.
62227         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62228         REPLACE_VFPRINTF.
62229
62230 2007-03-08  Bruno Haible  <bruno@clisp.org>
62231
62232         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62233
62234 2007-03-08  Bruno Haible  <bruno@clisp.org>
62235
62236         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62237         instead of 'expr' invocations.
62238         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62239         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62240         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62241         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62242         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62243         Suggested by Paul Eggert.
62244
62245 2007-03-08  Bruno Haible  <bruno@clisp.org>
62246
62247         * modules/fseterr-tests: New file.
62248         * tests/test-fseterr.c: New file.
62249
62250         * modules/fseterr: New file.
62251         * lib/fseterr.h: New file.
62252         * lib/fseterr.c: New file.
62253
62254 2007-03-08  Bruno Haible  <bruno@clisp.org>
62255
62256         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62257         * lib/getopt_.h: Likewise.
62258         * lib/mbswidth.h: Likewise.
62259         * lib/setenv.h: Likewise.
62260         * lib/vasnprintf.h: Likewise.
62261         * lib/vasprintf.h: Likewise.
62262         * lib/verror.h: Likewise.
62263         * lib/xsetenv.h: Likewise.
62264         * lib/xvasprintf.h: Likewise.
62265
62266 2007-03-08  Jim Meyering  <jim@meyering.net>
62267
62268         * users.txt: Add parted.
62269
62270         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62271
62272 2007-03-07  Bruno Haible  <bruno@clisp.org>
62273
62274         * m4/printf.m4: Make the shell script snippets copy&pastable.
62275
62276 2007-03-02  Bruno Haible  <bruno@clisp.org>
62277
62278         * lib/netinet_in_.h: New file.
62279         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62280         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62281         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62282         (Depends-on): Add absolute-header.
62283         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62284         into netinet/in.h.
62285
62286 2007-03-03  Bruno Haible  <bruno@clisp.org>
62287
62288         * lib/sys_select_.h: New file.
62289         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62290         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62291         * modules/sys_select (Files): Add lib/sys_select_.h.
62292         (Depends-on): Add absolute-header.
62293         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62294         into sys/select.h.
62295
62296 2007-03-02  Bruno Haible  <bruno@clisp.org>
62297
62298         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62299         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62300         values.
62301         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62302         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62303         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62304         * modules/sys_socket (Depends-on): Add absolute-header.
62305         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62306         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62307         (Include): Remove requirement of inclusion of <sys/types.h>.
62308
62309 2007-03-02  Bruno Haible  <bruno@clisp.org>
62310
62311         * lib/byteswap_.h (bswap_32): Fix formula.
62312
62313 2007-03-06  Bruno Haible  <bruno@clisp.org>
62314
62315         * modules/sprintf-posix-tests: New file.
62316         * tests/test-sprintf-posix.c: New file.
62317
62318         * modules/sprintf-posix: New file.
62319         * lib/sprintf.c: New file.
62320         * m4/sprintf-posix.m4: New file.
62321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62322         REPLACE_SPRINTF.
62323         * lib/stdio_.h (sprintf): New declaration.
62324         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62325         REPLACE_SPRINTF.
62326
62327 2007-03-06  Bruno Haible  <bruno@clisp.org>
62328
62329         * modules/vsprintf-posix-tests: New file.
62330         * tests/test-vsprintf-posix.c: New file.
62331         * tests/test-sprintf-posix.h: New file.
62332
62333         * modules/vsprintf-posix: New file.
62334         * lib/vsprintf.c: New file.
62335         * m4/vsprintf-posix.m4: New file.
62336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62337         REPLACE_VSPRINTF.
62338         * lib/stdio_.h (vsprintf): New declaration.
62339         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62340         REPLACE_VSPRINTF.
62341
62342 2007-03-06  Bruno Haible  <bruno@clisp.org>
62343
62344         * modules/vsnprintf (Depend-on): Remove minmax.
62345
62346 2007-03-06  Bruno Haible  <bruno@clisp.org>
62347
62348         * modules/snprintf-posix-tests: New file.
62349         * tests/test-snprintf-posix.c: New file.
62350
62351         * modules/snprintf-posix: New file.
62352         * m4/snprintf-posix.m4: New file.
62353         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62354         gl_FUNC_SNPRINTF.
62355         (gl_FUNC_SNPRINTF): Invoke it.
62356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62357         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62358         is set.
62359         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62360
62361 2007-03-06  Bruno Haible  <bruno@clisp.org>
62362
62363         * modules/vsnprintf-posix-tests: New file.
62364         * tests/test-vsnprintf-posix.c: New file.
62365         * tests/test-snprintf-posix.h: New file.
62366
62367         * modules/vsnprintf-posix: New file.
62368         * m4/vsnprintf-posix.m4: New file.
62369         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62370         gl_FUNC_VSNPRINTF.
62371         (gl_FUNC_VSNPRINTF): Invoke it.
62372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62373         * lib/stdio_.h (vsnprintf): Define as a replacement if
62374         REPLACE_VSNPRINTF is set.
62375         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62376
62377 2007-03-06  Bruno Haible  <bruno@clisp.org>
62378
62379         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62380         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62381
62382 2007-03-06  Bruno Haible  <bruno@clisp.org>
62383
62384         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62385         (asinl): Declare also if HAVE_DECL_ASINL is set.
62386         (atanl): Declare also if HAVE_DECL_ATANL is set.
62387         (ceill): Declare also if HAVE_DECL_CEILL is set.
62388         (cosl): Declare also if HAVE_DECL_COSL is set.
62389         (expl): Declare also if HAVE_DECL_EXPL is set.
62390         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62391         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62392         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62393         (logl): Declare also if HAVE_DECL_LOGL is set.
62394         (sinl): Declare also if HAVE_DECL_SINL is set.
62395         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62396         (tanl): Declare also if HAVE_DECL_TANL is set.
62397         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62399         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62400         declaration of frexpl, ldexpl.
62401         * modules/printf-frexpl (Depends-on): Add math.
62402         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62403
62404 2007-03-05  Bruno Haible  <bruno@clisp.org>
62405
62406         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62407         frexpl and ldexpl are declared.
62408         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62409
62410 2007-03-05  Bruno Haible  <bruno@clisp.org>
62411
62412         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62413         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62414
62415 2007-03-05  Bruno Haible  <bruno@clisp.org>
62416
62417         * lib/stdio_.h: Include <stddef.h>.
62418
62419 2007-03-05  Bruno Haible  <bruno@clisp.org>
62420
62421         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62422
62423 2007-03-05  Bruno Haible  <bruno@clisp.org>
62424
62425         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62426         NetBSD 4, from Ralf Wildenhues.
62427
62428 2007-03-04  Bruno Haible  <bruno@clisp.org>
62429
62430         * lib/vasprintf.h: Update #if logic for the case when the functions
62431         exist but are overridden.
62432
62433 2007-03-04  Bruno Haible  <bruno@clisp.org>
62434
62435         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62436         implementations: glibc-2.4 and MacOS X 10.3.
62437         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62438         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62439         * tests/test-vasprintf-posix.c (test_function): Likewise.
62440
62441 2007-03-04  Bruno Haible  <bruno@clisp.org>
62442
62443         * modules/vasprintf-posix-tests: New file.
62444         * tests/test-vasprintf-posix.c: New file.
62445
62446         * modules/vasprintf-posix: New file.
62447         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62448         defined.
62449         * m4/vasprintf-posix.m4: New file.
62450         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62451         gl_FUNC_VASPRINTF.
62452         (gl_FUNC_VASPRINTF): Invoke it.
62453         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62454         here.
62455         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62456
62457 2007-03-04  Bruno Haible  <bruno@clisp.org>
62458
62459         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62460         REPLACE_GETTIMEOFDAY.
62461         * modules/sys_time (Makefile.am): Likewise.
62462         * m4/sys_time_h.m4: Likewise.
62463         * m4/gettimeofday.m4: Likewise.
62464
62465 2007-03-04  Bruno Haible  <bruno@clisp.org>
62466
62467         * modules/vasnprintf-posix-tests: New file.
62468         * tests/test-vasnprintf-posix.c: New file.
62469
62470         * modules/vasnprintf-posix: New file.
62471         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62472         printf-frexpl.h.
62473         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62474         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62475         REPLACE_VASNPRINTF is defined.
62476         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62477         gl_FUNC_VASNPRINTF.
62478         (gl_FUNC_VASNPRINTF): Invoke it.
62479         * m4/vasnprintf-posix.m4: New file.
62480         * m4/printf.m4: New file.
62481
62482 2007-03-04  Bruno Haible  <bruno@clisp.org>
62483
62484         Compile progreloc.c only if --enable-relocatable is specified.
62485         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62486         if --enable-relocatable was specified.
62487         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62488         lib_SOURCES.
62489
62490 2007-03-04  Jim Meyering  <jim@meyering.net>
62491
62492         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62493         Use it consistently, rather than enumerating errno constants.
62494
62495 2007-03-04  Bruno Haible  <bruno@clisp.org>
62496
62497         * modules/xvasprintf-tests: New file.
62498         * tests/test-xvasprintf.c: New file.
62499
62500         * modules/vasprintf-tests: New file.
62501         * tests/test-vasprintf.c: New file.
62502
62503         * modules/vasnprintf-tests: New file.
62504         * tests/test-vasnprintf.c: New file.
62505
62506         * modules/vsnprintf-tests: New file.
62507         * tests/test-vsnprintf.c: New file.
62508
62509         * modules/snprintf-tests: New file.
62510         * tests/test-snprintf.c: New file.
62511
62512 2007-03-04  Bruno Haible  <bruno@clisp.org>
62513
62514         Compile relocatable.c only if --enable-relocatable is specified.
62515         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62516         gl_RELOCATABLE_LIBRARY.
62517         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62518         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62519         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62520         gl_RELOCATABLE_LIBRARY.
62521         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62522         (Makefile.am): Remove lib_SOURCES.
62523         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62524         gl_RELOCATABLE_LIBRARY.
62525         (Makefile.am): Remove lib_SOURCES.
62526         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62527         always.
62528         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62529         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62530
62531 2007-03-04  Bruno Haible  <bruno@clisp.org>
62532
62533         * modules/argmatch-tests: New file.
62534         * tests/test-argmatch.c: New file.
62535
62536         * tests/test-allocsa.c (main): Halve the number of loop runs.
62537
62538         * modules/alloca-opt-tests: New file.
62539         * tests/test-alloca-opt.c: New file.
62540
62541 2007-03-04  Jim Meyering  <jim@meyering.net>
62542
62543         Work around difference between Linux ACLs and Solaris 10 ZFS.
62544         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62545         for EINVAL.
62546
62547 2007-03-03  Bruno Haible  <bruno@clisp.org>
62548
62549         * modules/relocatable-prog (Depends-on): Add back progreloc's
62550         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62551
62552 2007-03-03  Bruno Haible  <bruno@clisp.org>
62553
62554         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62555         * modules/relocatable-lib: New file.
62556
62557 2007-03-03  Bruno Haible  <bruno@clisp.org>
62558
62559         * modules/relocatable-prog: Renamed from modules/relocatable.
62560         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62561
62562 2007-03-03  Bruno Haible  <bruno@clisp.org>
62563
62564         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62565         m4/relocatable-lib.m4.
62566         (Depends-on): Remove 'relocatable'.
62567         (configure.ac): Add gl_RELOCATABLE_NOP.
62568
62569 2007-03-03  Bruno Haible  <bruno@clisp.org>
62570
62571         * modules/relocatable-prog-wrapper: New file.
62572         * modules/relocatable (Depends-on): Add it. Remove all other
62573         dependencies except progname.
62574         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62575
62576         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62577         (gl_FUNC_STRERROR): Nop.
62578         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62579
62580         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62581         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62582
62583         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62584         (gl_FUNC_READLINK): Update.
62585
62586         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62587
62588 2007-03-03  Bruno Haible  <bruno@clisp.org>
62589
62590         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62591         * modules/xreadlink (Depends-on): Add unistd.
62592         * modules/xreadlink-with-size (Depends-on): Likewise.
62593
62594 2007-03-03  Bruno Haible  <bruno@clisp.org>
62595
62596         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62597         extracted from gt_FUNC_SETENV.
62598         (gt_FUNC_SETENV): Remove macro.
62599         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62600         remove gt_FUNC_SETENV.
62601
62602 2007-03-03  Bruno Haible  <bruno@clisp.org>
62603
62604         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62605         ENABLE_RELOCATABLE here.
62606         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62607
62608 2007-03-03  Bruno Haible  <bruno@clisp.org>
62609
62610         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62611         * tests/test-rbtreehash_list.c: Include progname.h.
62612         (main): Call set_program_name.
62613
62614         * modules/rbtree-oset-tests (Depends-on): Add progname.
62615         * tests/test-rbtree_oset.c: Include progname.h.
62616         (main): Call set_program_name.
62617
62618         * modules/rbtree-list-tests (Depends-on): Add progname.
62619         * tests/test-rbtree_list.c: Include progname.h.
62620         (main): Call set_program_name.
62621
62622         * modules/linked-list-tests (Depends-on): Add progname.
62623         * tests/test-linked_list.c: Include progname.h.
62624         (main): Call set_program_name.
62625
62626 2007-03-03  Bruno Haible  <bruno@clisp.org>
62627
62628         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62629         All uses of __restrict changed to _Restrict_.
62630         * lib/glob_.h (__restrict): Remove macro.
62631
62632 2007-03-02  Bruno Haible  <bruno@clisp.org>
62633
62634         * modules/gettext (configure.ac): Require gettext infrastructure
62635         from version 0.16.1.
62636
62637 2007-03-02  Bruno Haible  <bruno@clisp.org>
62638
62639         * modules/linkedhash-list-tests (Depends-on): Add progname.
62640         * tests/test-linkedhash_list.c: Include progname.h.
62641         (main): Call set_program_name.
62642
62643         * modules/carray-list-tests (Depends-on): Add progname.
62644         * tests/test-carray_list.c: Include progname.h.
62645         (main): Call set_program_name.
62646
62647         * modules/avltreehash-list-tests (Depends-on): Add progname.
62648         * tests/test-avltreehash_list.c: Include progname.h.
62649         (main): Call set_program_name.
62650
62651         * modules/avltree-oset-tests (Depends-on): Add progname.
62652         * tests/test-avltree_oset.c: Include progname.h.
62653         (main): Call set_program_name.
62654
62655         * modules/avltree-list-tests (Depends-on): Add progname.
62656         * tests/test-avltree_list.c: Include progname.h.
62657         (main): Call set_program_name.
62658
62659         * modules/array-oset-tests (Depends-on): Add progname.
62660         * tests/test-array_oset.c: Include progname.h.
62661         (main): Call set_program_name.
62662
62663         * modules/array-list-tests (Depends-on): Add progname.
62664         * tests/test-array_list.c: Include progname.h.
62665         (main): Call set_program_name.
62666
62667         * modules/argp-tests (Depends-on): Add progname.
62668         * tests/test-argp.c: Include argp.h first. Include progname.h.
62669         (main): Call set_program_name.
62670
62671 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62672
62673         * doc/gnulib-tool.texi (Initial import): Reword description of
62674         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62675         limited effect even if defined after the first system include.
62676
62677 2007-03-01  Bruno Haible  <bruno@clisp.org>
62678
62679         * build-aux/config.libpath: Update to libtool-1.5.22.
62680         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62681
62682 2007-03-01  Bruno Haible  <bruno@clisp.org>
62683
62684         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62685         foo_CFLAGS.
62686         Reported by Ralf Wildenhues.
62687
62688 2007-03-01  Bruno Haible  <bruno@clisp.org>
62689
62690         * build-aux/install-reloc: Remove object files left over by some
62691         compilers.
62692         Reported by Ralf Wildenhues.
62693
62694 2007-03-01  Bruno Haible  <bruno@clisp.org>
62695
62696         * build-aux/install-reloc: Break long lines.
62697
62698 2007-03-01  Bruno Haible  <bruno@clisp.org>
62699
62700         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62701         Reported by Ralf Wildenhues.
62702
62703 2007-03-01  Bruno Haible  <bruno@clisp.org>
62704
62705         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62706         include ordering constraints.
62707
62708 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62709
62710         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62711         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62712         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62713         as another example.
62714         * lib/time_.h: Fix misspelling.
62715         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62716         Require gl_HEADER_TIME_H_DEFAULTS.
62717         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62718         * m4/time_r.m4 (gl_TIME_R): Likewise.
62719         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62720
62721 2007-03-01  Bruno Haible  <bruno@clisp.org>
62722
62723         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62724         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62725
62726 2007-03-01  Jim Meyering  <jim@meyering.net>
62727
62728         * modules/xreadlink (Maintainer): Add my name.
62729         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62730
62731 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62732             Bruno Haible  <bruno@clisp.org>
62733
62734         * build-aux/install-reloc: Compile also c-ctype.c.
62735         * build-aux/relocatable.sh.in: New file.
62736         * doc/relocatable.texi: New file.
62737         * doc/relocatable-maint.texi: New file.
62738         * doc/gnulib.texi: Include relocatable-maint.texi.
62739         * lib/progreloc.c: Include unistd.h unconditionally.
62740         * lib/relocwrapper.c: Include unistd.h unconditionally.
62741         Include c-ctype.h.
62742         (add_dotbin): Use c_tolower.
62743         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62744         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62745         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62746         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62747         to m4/relocatable-lib.m4.
62748         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62749         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62750         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62751         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62752         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62753         * modules/relocatable: New file.
62754         * modules/relocatable-lib: New file.
62755         * modules/relocatable-script: New file.
62756
62757 2007-02-28  Bruno Haible  <bruno@clisp.org>
62758
62759         Import --enable-relocatable infrastructure.
62760         * build-aux/config.libpath: New file, from GNU gettext.
62761         * build-aux/install-reloc: New file, from GNU gettext.
62762         * build-aux/reloc-ldflags: New file, from GNU gettext.
62763         * lib/relocatable.h: New file, from GNU gettext.
62764         * lib/relocatable.c: New file, from GNU gettext.
62765         * lib/relocwrapper.c: New file, from GNU gettext.
62766         * m4/relocatable.m4: New file, from GNU gettext.
62767
62768 2007-02-28  Bruno Haible  <bruno@clisp.org>
62769
62770         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62771
62772         * modules/xreadlink: New file, from GNU gettext with modifications.
62773         * lib/xreadlink.c: New file, from GNU gettext.
62774         * lib/xreadlink.h: Add comments.
62775         (xreadlink): New declaration.
62776
62777         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62778         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62779         lib/xreadlink-with-size.c.
62780         (configure.ac): Remove gl_XREADLINK invocation.
62781         (Makefile.am): Augment lib_SOURCES.
62782         * m4/xreadlink.m4: Remove file.
62783         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62784         (xreadlink_with_size): Renamed from xreadink.
62785         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62786         * modules/canonicalize (Depends-on): Replace xreadlink with
62787         xreadlink-with-size.
62788         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62789
62790 2007-02-25  Jim Meyering  <jim@meyering.net>
62791
62792         * build-aux/announce-gen: When complaining about excess arguments,
62793         list them.
62794
62795 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62796
62797         * README: Document signed integer overflow situation more
62798         accurately.
62799
62800 2007-02-25  Bruno Haible  <bruno@clisp.org>
62801
62802         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62803         'a' or 'A' conversion.
62804
62805 2007-02-25  Bruno Haible  <bruno@clisp.org>
62806
62807         * modules/filename: Renamed from modules/pathname.
62808         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62809         lib/concatpath.c with lib/concat-filename.c.
62810         (Makefile.am): Update.
62811         (Include): Replace pathname.h with filename.h.
62812         * lib/filename.h: Renamed from lib/pathname.h.
62813         (concatenated_filename): Renamed from concatenated_pathname.
62814         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62815         (concatenated_filename): Renamed from concatenated_pathname.
62816         * lib/findprog.c: Include filename.h instead of pathname.h.
62817         (find_in_path): Update.
62818         * lib/javacomp.c: Include filename.h instead of pathname.h.
62819         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62820         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62821         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62822         is_oldgcj_14_13_usable, is_javac_usable): Update.
62823         * lib/javaexec.c: Include filename.h instead of pathname.h.
62824         (execute_java_class): Update.
62825         * modules/findprog: Update.
62826         * modules/javacomp: Update.
62827         * modules/javaexec: Update.
62828         * MODULES.html.sh (File system functions): Add 'filename', remove
62829         'pathname'.
62830
62831 2007-02-25  Bruno Haible  <bruno@clisp.org>
62832
62833         * modules/printf-frexpl-tests: New file.
62834         * tests/test-printf-frexpl.c: New file.
62835
62836         * modules/printf-frexpl: New file.
62837         * lib/printf-frexpl.h: New file.
62838         * lib/printf-frexpl.c: New file.
62839         * m4/printf-frexpl.m4: New file.
62840
62841 2007-02-25  Bruno Haible  <bruno@clisp.org>
62842
62843         * modules/printf-frexp-tests: New file.
62844         * tests/test-printf-frexp.c: New file.
62845
62846         * modules/printf-frexp: New file.
62847         * lib/printf-frexp.h: New file.
62848         * lib/printf-frexp.c: New file.
62849         * m4/printf-frexp.m4: New file.
62850
62851 2007-02-25  Bruno Haible  <bruno@clisp.org>
62852
62853         Assume automake >= 1.10 for the tests.
62854         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62855         * modules/arctwo-tests: Likewise.
62856         * modules/argp-tests: Likewise.
62857         * modules/avltree-list-tests: Likewise.
62858         * modules/avltree-oset-tests: Likewise.
62859         * modules/avltreehash-list-tests: Likewise.
62860         * modules/carray-list-tests: Likewise.
62861         * modules/crc-tests: Likewise.
62862         * modules/des-tests: Likewise.
62863         * modules/gc-arcfour-tests: Likewise.
62864         * modules/gc-arctwo-tests: Likewise.
62865         * modules/gc-des-tests: Likewise.
62866         * modules/gc-hmac-md5-tests: Likewise.
62867         * modules/gc-hmac-sha1-tests: Likewise.
62868         * modules/gc-md2-tests: Likewise.
62869         * modules/gc-md4-tests: Likewise.
62870         * modules/gc-md5-tests: Likewise.
62871         * modules/gc-pbkdf2-sha1-tests: Likewise.
62872         * modules/gc-rijndael-tests: Likewise.
62873         * modules/gc-sha1-tests: Likewise.
62874         * modules/gc-tests: Likewise.
62875         * modules/getaddrinfo-tests: Likewise.
62876         * modules/hmac-md5-tests: Likewise.
62877         * modules/hmac-sha1-tests: Likewise.
62878         * modules/linked-list-tests: Likewise.
62879         * modules/linkedhash-list-tests: Likewise.
62880         * modules/lock-tests: Likewise.
62881         * modules/md2-tests: Likewise.
62882         * modules/md4-tests: Likewise.
62883         * modules/md5-tests: Likewise.
62884         * modules/rbtree-list-tests: Likewise.
62885         * modules/rbtree-oset-tests: Likewise.
62886         * modules/rbtreehash-list-tests: Likewise.
62887         * modules/read-file-tests: Likewise.
62888         * modules/rijndael-tests: Likewise.
62889         * modules/stdint-tests: Likewise.
62890         * modules/tls-tests: Likewise.
62891
62892 2007-02-24  Bruno Haible  <bruno@clisp.org>
62893
62894         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62895         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62896         function; instead check whether isnan with a double argument links.
62897         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62898         function; instead check whether isnan with a 'long double' argument
62899         links.
62900         Reported by Eric Blake <ebb9@byu.net>.
62901
62902 2007-02-24  Bruno Haible  <bruno@clisp.org>
62903
62904         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62905         defined.
62906         * lib/isnanl.c: Remove all code. Just include isnan.c.
62907         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62908
62909 2007-02-25  Jim Meyering  <jim@meyering.net>
62910
62911         Avoid conflicting types for 'unsetenv' on FreeBSD.
62912         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62913         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62914         in stdlib.h.
62915
62916 2007-02-24  Bruno Haible  <bruno@clisp.org>
62917
62918         * modules/isnanl-nolibm-tests: New file.
62919         * tests/test-isnanl.c: New file.
62920
62921         * modules/isnanl-nolibm: New file.
62922         * lib/isnanl.h: New file.
62923         * lib/isnanl.c: New file.
62924         * m4/isnanl.m4: New file.
62925
62926 2007-02-24  Bruno Haible  <bruno@clisp.org>
62927
62928         * modules/isnan-nolibm-tests: New file.
62929         * tests/test-isnan.c: New file.
62930
62931         * modules/isnan-nolibm: New file.
62932         * lib/isnan.h: New file.
62933         * lib/isnan.c: New file.
62934         * m4/isnan.m4: New file.
62935
62936 2007-02-24  Bruno Haible  <bruno@clisp.org>
62937
62938         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62939         assume that an exponent fits in 20 bits.
62940
62941 2007-02-24  Jim Meyering  <jim@meyering.net>
62942
62943         * m4/regex.m4: Update the description of the configure-time option,
62944         --without-included-regex, to state accurately what the defaults are,
62945         and perhaps to give people an idea why using this option is risky.
62946
62947 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62948
62949         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62950         loops on small arguments.  This attempts to avoid the problem
62951         Bruno Haible reported for AIX 4.3.2 in
62952         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62953
62954 2007-02-23  Bruno Haible  <bruno@clisp.org>
62955
62956         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62957         Needed for help2man.
62958
62959 2007-02-23  Karl Berry  <karl@gnu.org>
62960
62961         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62962         exists, foo.h should be cvs-ignored, not committed.
62963
62964 2007-02-23  Eric Blake  <ebb9@byu.net>
62965
62966         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62967         * lib/stat-time.h (includes): Likewise.
62968         * lib/utimecmp.c (includes): Likewise.
62969         * lib/utimens.h (includes): Likewise.
62970         * lib/getdate.y (includes): Also include "timespec.h" for use
62971         internal to the module.
62972         * modules/utimens (Depends-on): Revert yesterday's patch.
62973         * modules/nanosleep (Depends-on): Add missing dependency.
62974
62975 2007-02-22  Bruno Haible  <bruno@clisp.org>
62976
62977         * lib/glob.c: Don't include getlogin_r.h.
62978
62979 2007-02-22  Jim Meyering  <jim@meyering.net>
62980
62981         * modules/utimens (Depends-on): Add timespec, required for
62982         utimens.h's inclusion of timespec.h.
62983
62984 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62985
62986         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62987         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62988         Schwab in
62989         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62990         I'll try to think of a better way to fix the Solaris problem.
62991
62992         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62993         like glibc; on Solaris 10, it fails with errno == EINVAL.
62994         POSIX says the behavior is unspecified if the first argument is NULL,
62995         so play it safe and never pass NULL to the system getcwd.
62996
62997 2007-02-21  Jim Meyering  <jim@meyering.net>
62998
62999         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63000         of gettimeofday.  It would conflict with the one now always
63001         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63002         an IRIX 6.5 build failure.
63003
63004 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63005
63006         Minor fixups to port to Solaris 10 with Sun C 5.8.
63007         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63008         * modules/getcwd (Depends-on): Add dirfd.
63009         * lib/putenv.c (putenv): #undef it.
63010         (rpl_putenv): New decl.
63011         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63012
63013 2007-02-20  Bruno Haible  <bruno@clisp.org>
63014
63015         * modules/stdio-tests: New file.
63016         * tests/test-stdio.c: New file.
63017
63018         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63019         (Depends-on): Add stdio.
63020         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63021         (Include): Use <stdio.h> instead of vsnprintf.h.
63022         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63023         HAVE_DECL_VSNPRINTF.
63024         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63025
63026         * modules/snprintf (Files): Remove lib/snprintf.h.
63027         (Depends-on): Add stdio.
63028         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63029         (Include): Use <stdio.h> instead of snprintf.h.
63030         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63031         HAVE_DECL_SNPRINTF.
63032         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63033         * lib/getaddrinfo.c: Likewise.
63034
63035         * modules/stdio: New file.
63036         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63037         * lib/snprintf.h: Remove file.
63038         * lib/vsnprintf.h: Remove file.
63039         * lib/.cppi-disable: Remove snprintf.h.
63040         * m4/stdio_h.m4: New file.
63041         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63042
63043 2007-02-20  Jim Meyering  <jim@meyering.net>
63044
63045         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63046         used by e.g., mingw.  From Bruno Haible.
63047
63048 2007-02-19  Bruno Haible  <bruno@clisp.org>
63049
63050         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63051         warnings.
63052         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63053
63054 2007-02-19  Bruno Haible  <bruno@clisp.org>
63055
63056         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63057         from mingw users.
63058
63059 2007-02-19  Bruno Haible  <bruno@clisp.org>
63060
63061         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63062         warnings.
63063         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63064
63065 2007-02-19  Jim Meyering  <jim@meyering.net>
63066
63067         Don't use FD after a successful "fdopendir (fd)".
63068         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63069         Reset it by calling dirfd on the just-obtained DIR*.
63070
63071         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63072         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63073
63074 2007-02-18  Bruno Haible  <bruno@clisp.org>
63075
63076         * lib/readlink.c: Include <unistd.h>.
63077         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63078         HAVE_READLINK.
63079         * modules/readlink (Depends-on): Add unistd.
63080         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63081         (Include): Add <unistd.h>.
63082
63083         * lib/getlogin_r.h: Remove file.
63084         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63085         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63086         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63087         HAVE_DECL_GETLOGIN_R.
63088         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63089         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63090         (Include): Use <unistd.h> instead of getlogin_r.h.
63091
63092         * lib/getcwd.h: Remove file.
63093         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63094         * lib/xgetcwd.c: Likewise.
63095         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63096         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63097         * modules/getcwd (Files): Remove lib/getcwd.h.
63098         (Depends-on): Add unistd.
63099         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63100         (Include): Use <unistd.h> instad of getcwd.h.
63101
63102         * lib/ftruncate.c: Include <unistd.h> first.
63103         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63104         Set HAVE_FTRUNCATE.
63105         * modules/ftruncate (Depends-on): Add unistd.
63106         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63107
63108         * lib/fchdir.c: Include <unistd.h> first.
63109         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63110         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63111         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63112         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63113         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63114
63115         * lib/dup2.c: Include <unistd.h> first.
63116         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63117         HAVE_DUP2.
63118         * modules/dup2 (Depends-on): Add unistd.
63119         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63120
63121         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63122         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63123         REPLACE_CHOWN. Don't define chown as a macro here.
63124         * modules/chown (Depends-on): Add unistd.
63125         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63126
63127         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63128         Add definition for GL_LINK_WARNING.
63129         (chown, dup2): New declarations.
63130         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63131         link warning.
63132         (ftruncate): New declaration.
63133         (getcwd): New declaration, taken from old getcwd.h.
63134         (getlogin_r): New declaration, taken from old getlogin_r.h.
63135         (readlink): New declaration.
63136         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63137         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63138         (gl_PREREQ_UNISTD): Remove macro.
63139         (gl_UNISTD_MODULE_INDICATOR): New macro.
63140         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63141         many new variables. Don't set UNISTD_H.
63142         * modules/unistd (Description): Change.
63143         (Depends-on): Add link-warning.
63144         (configure.ac): Update.
63145         (Makefile.am): Create unistd.h always. Substitute many new variables
63146         into it.
63147
63148 2007-02-18  Bruno Haible  <bruno@clisp.org>
63149
63150         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63151         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63152         HAVE_GETSUBOPT.
63153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63154         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63155         * lib/getsubopt.h: Remove file.
63156         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63157         (Depends-on): Add stdlib.
63158         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63159         (Includes): Use <stdlib.h> instead of getsubopt.h.
63160         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63161         Set HAVE_GETSUBOPT.
63162         * lib/getsubopt.c: Don't include getsubopt.h.
63163
63164 2007-02-18  Bruno Haible  <bruno@clisp.org>
63165
63166         * modules/fchdir (Depends-on): Add dup2.
63167
63168 2007-02-18  Bruno Haible  <bruno@clisp.org>
63169
63170         * lib/stdlib_.h: Handle glibc's special invocation convention
63171         specially.
63172
63173 2007-02-18  Bruno Haible  <bruno@clisp.org>
63174
63175         * modules/stdlib-tests: New file.
63176         * tests/test-stdlib.c: New file.
63177
63178         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63179         (Depends-on): Add stdlib.
63180         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63181         (Includes): Use <stdlib.h> instead of mkstemp.h.
63182         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63183         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63184         * lib/mkstemp.c: Don't include mkstemp.h.
63185         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63186         * lib/stdlib--.h: Don't include mkstemp.h.
63187
63188         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63189         (Depends-on): Add stdlib.
63190         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63191         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63192         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63193         HAVE_MKDTEMP.
63194         * lib/mkdtemp.c: Don't include mkdtemp.h.
63195         * lib/clean-temp.c: Don't include mkdtemp.h.
63196
63197         * modules/exit (Files): Remove lib/exit.h.
63198         (Depends-on): Add stdlib.
63199         (Makefile.am): Remove lib_SOURCES.
63200         (Include): Use <stdlib.h> instead of exit.h.
63201         * lib/argmatch.c: Don't include exit.h.
63202         * lib/execute.c: Likewise.
63203         * lib/pagealign_alloc.c: Likewise.
63204         * lib/pipe.c: Likewise.
63205         * lib/wait-process.c: Likewise.
63206         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63207         * lib/exitfail.c: Likewise.
63208         * lib/savewd.c: Likewise.
63209         * lib/xsetenv.c: Likewise.
63210
63211         * modules/stdlib: New file.
63212         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63213         and extra comments about mkstemp().
63214         * lib/exit.h: Remove file.
63215         * lib/mkdtemp.h: Remove file.
63216         * lib/mkstemp.h: Remove file.
63217         * m4/stdlib_h.m4: New file.
63218         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63219
63220 2007-02-18  Bruno Haible  <bruno@clisp.org>
63221
63222         * modules/math-tests: New file.
63223         * tests/test-math.c: New file.
63224
63225         * modules/math: New file.
63226         * modules/mathl (Files): Remove lib/mathl.h.
63227         (Depends-on): Add math.
63228         (Makefile.am): Don't mention mathl.h.
63229         (Include): Use <math.h> instead of mathl.h.
63230         * lib/math_.h: New file.
63231         * lib/mathl.h: Remove file.
63232         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63233         mathl.h.
63234         * lib/asinl.c: Likewise.
63235         * lib/atanl.c: Likewise.
63236         * lib/ceill.c: Likewise.
63237         * lib/cosl.c: Likewise.
63238         * lib/expl.c: Likewise.
63239         * lib/floorl.c: Likewise.
63240         * lib/frexpl.c: Likewise.
63241         * lib/ldexpl.c: Likewise.
63242         * lib/logl.c: Likewise.
63243         * lib/sincosl.c: Likewise.
63244         * lib/sinl.c: Likewise.
63245         * lib/sqrtl.c: Likewise.
63246         * lib/tanl.c: Likewise.
63247         * lib/trigl.c: Likewise.
63248         * m4/math_h.m4: New file.
63249         * MODULES.html.sh (Mathematics): Add math.
63250
63251 2007-02-17  Bruno Haible  <bruno@clisp.org>
63252
63253         * modules/wctype-tests: New file.
63254         * tests/test-wctype.c: New file.
63255
63256         * modules/wchar-tests: New file.
63257         * tests/test-wchar.c: New file.
63258
63259         * modules/unistd-tests: New file.
63260         * tests/test-unistd.c: New file.
63261
63262         * modules/time-tests: New file.
63263         * tests/test-time.c: New file.
63264
63265         * modules/sysexits-tests: New file.
63266         * tests/test-sysexits.c: New file.
63267
63268         * modules/sys_time-tests: New file.
63269         * tests/test-sys_time.c: New file.
63270
63271         * modules/sys_stat-tests: New file.
63272         * tests/test-sys_stat.c: New file.
63273
63274         * modules/sys_socket-tests: New file.
63275         * tests/test-sys_socket.c: New file.
63276
63277         * modules/sys_select-tests: New file.
63278         * tests/test-sys_select.c: New file.
63279
63280         * modules/string-tests: New file.
63281         * tests/test-string.c: New file.
63282
63283         * modules/stdbool-tests: New file.
63284         * tests/test-stdbool.c: New file.
63285
63286         * modules/netinet_in-tests: New file.
63287         * tests/test-netinet_in.c: New file.
63288
63289         * modules/inttypes-tests: New file.
63290         * tests/test-inttypes.c: New file.
63291
63292         * modules/fcntl-tests: New file.
63293         * tests/test-fcntl.c: New file.
63294
63295         * modules/byteswap-tests: New file.
63296         * tests/test-byteswap.c: New file.
63297
63298         * modules/arpa_inet-tests: New file.
63299         * tests/test-arpa_inet.c: New file.
63300
63301 2007-02-17  Bruno Haible  <bruno@clisp.org>
63302
63303         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63304         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63305         if the corresponding module is not enabled. Emit link warnings if
63306         the function is used nevertheless.
63307         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63308         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63309         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63310         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63311         * modules/inttypes (Depends-on): Add link-warning.
63312         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63313         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63314         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63315         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63316         * modules/imaxdiv (configure.ac): Likewise.
63317         * modules/strtoimax (configure.ac): Likewise.
63318         * modules/strtoumax (configure.ac): Likewise.
63319
63320 2007-02-17  Bruno Haible  <bruno@clisp.org>
63321
63322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63323         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63324         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63325         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63326
63327 2007-02-17  Bruno Haible  <bruno@clisp.org>
63328
63329         * modules/link-warning: New file.
63330         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63331         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63332         * modules/string (Depends-on): Add link-warning.
63333         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63334         string.h.
63335         * MODULES.html.sh (Support for building libraries and executables): Add
63336         link-warning.
63337
63338 2007-02-17  Bruno Haible  <bruno@clisp.org>
63339
63340         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63341         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63342         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63343         long lines.
63344
63345 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63346             Bruno Haible  <bruno@clisp.org>
63347
63348         * modules/tmpfile: New file.
63349         * lib/tmpfile.c: New file.
63350         * m4/tmpfile.m4: New file.
63351         * MODULES.html.sh (func_all_modules): New section "Input/output".
63352
63353 2007-02-15  Bruno Haible  <bruno@clisp.org>
63354
63355         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63356         (supports_delete_on_close): New function.
63357         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63358
63359 2007-02-14  Bruno Haible  <bruno@clisp.org>
63360
63361         * modules/mbspcasecmp-tests: New file.
63362         * tests/test-mbspcasecmp.sh: New file.
63363         * tests/test-mbspcasecmp.c: New file.
63364
63365         New module mbspcasecmp.
63366         * modules/mbspcasecmp: New file.
63367         * lib/mbspcasecmp.c: New file.
63368         * lib/string_.h (strncasecmp): Change warning message.
63369         (mbspcasecmp): New declaration.
63370         * m4/mbspcasecmp.m4: New file.
63371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63372         GNULIB_MBSPCASECMP.
63373         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63374         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63375
63376 2007-02-14  Bruno Haible  <bruno@clisp.org>
63377
63378         * modules/mbsncasecmp-tests: New file.
63379         * tests/test-mbsncasecmp.sh: New file.
63380         * tests/test-mbsncasecmp.c: New file.
63381
63382         New module mbsncasecmp.
63383         * modules/mbsncasecmp: New file.
63384         * lib/mbsncasecmp.c: New file.
63385         * lib/string_.h (mbsncasecmp): New declaration.
63386         * m4/mbsncasecmp.m4: New file.
63387         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63388         GNULIB_MBSNCASECMP.
63389         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63390         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63391
63392 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63393
63394         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63395         Verify that it doesn't overlap with our flags.
63396         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63397         do not have the desired effect in multibyte locales; instead, use
63398         mbscasecmp.
63399         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63400         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63401         we don't require GNU fnmatch ourselves (if our users require it, they
63402         should do so explicitly).
63403
63404         Fix regex code so it doesn't rely on strcasecmp.
63405         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63406         Otherwise, include gnulib's langinfo.h.
63407         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63408         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63409         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63410         * modules/regex (FILES): Remove m4/codeset.m4.
63411         (Depends-on): Add localcharset.  Remove strcase.
63412
63413 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63414
63415         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63416         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63417
63418 2007-02-13  Bruno Haible  <bruno@clisp.org>
63419
63420         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63421         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63422
63423 2007-02-12  Bruno Haible  <bruno@clisp.org>
63424
63425         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63426         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63427         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63428         time warning rather than a link error.
63429
63430 2007-02-12  Bruno Haible  <bruno@clisp.org>
63431
63432         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63433         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63435
63436 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63437
63438         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63439         args, not 2.
63440
63441 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63442
63443         New module 'time', so that apps can include <time.h> as per
63444         POSIX and GNU instead of separate include files like time_r.h
63445         and timegm.h.  This implementation tries out a simpler approach
63446         for replacing decls in standard include files (as compared to
63447         the string module), somewhat as an experiment.
63448
63449         * config/srclist.txt: Comment out mktime.c for now.
63450         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63451         since it doesn't apply any more.  Use generic wording instead.
63452         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63453         'time'.
63454         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63455         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63456         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63457         Don't include <sys/types.h>; no longer needed since we assume C89.
63458         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63459         * lib/strftime.c: Likewise.
63460         * lib/time_r.c: Likewise.
63461         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63462         * lib/nanosleep.c: Include <time.h> first, to check interface.
63463         * lib/strptime.c: Likewise.
63464         * lib/time_r.c: Likewise.
63465         * lib/timegm.c: Likewise.
63466         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63467         needed.
63468         * lib/timegm.c: Don't include timegm.h; no longer needed.
63469         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63470         time.h now handles any problems in that area.
63471         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63472         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63473         that time.h defines struct timespec.
63474         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63475         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63476         handles that.
63477         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63478         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63479         needed.  Set REPLACE_LOCALTIME.
63480         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63481         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63482         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63483         nanosleep; time_h.m4 now does that.  Don't require
63484         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63485         module handles this now.
63486         * modules/getdate (Depends-on): Remove timespec.  Add time.
63487         * modules/nanosleep (Depends-on): Likewise.
63488         * modules/stat-time (Depends-on): Likewise.
63489         * modules/nanosleep (Include): Include time.h, not timespec.h.
63490         * modules/strptime (Files): Remove lib/strptime.h.
63491         (Depends-on): Add extensions, time.
63492         (Include): Include time.h, not strptime.h.
63493         * modules/time_r (Files): Remove lib/time_r.h.
63494         (Depends-on): Add time.
63495         (Include): Include time.h, not time_r.h.
63496         * modules/timegm: Likewise.
63497         * modules/timespec (Description): Now does timespec-related decls
63498         of our own, instead of struct timespec itself.
63499         (Depends-on): Add time; remove extensions.
63500         (Maintainer): Add self.
63501         * modules/utimecmp (Depends-on): Add time; remove timespec.
63502         * modules/utimens (Depends-on): Likewise.
63503         * modules/xnanosleep (Depends-on): Likewise.
63504
63505 2007-02-11  Bruno Haible  <bruno@clisp.org>
63506
63507         * lib/c-strstr.c: Include allocsa.h.
63508         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63509         * lib/c-strcasestr.c: Include allocsa.h.
63510         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63511         * lib/strcasestr.c: Include allocsa.h.
63512         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63513         * lib/mbsstr.c: Include allocsa.h.
63514         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63515         allocsa/freesa instead of malloc/free.
63516         * lib/mbscasestr.c: Include allocsa.h.
63517         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63518         allocsa/freesa instead of malloc/free.
63519         * modules/c-strstr (Depends-on): Add allocsa.
63520         * modules/c-strcasestr (Depends-on): Likewise.
63521         * modules/strcasestr (Depends-on): Likewise.
63522         * modules/mbsstr (Depends-on): Likewise.
63523         * modules/mbscasestr (Depends-on): Likewise.
63524
63525 2007-02-11  Bruno Haible  <bruno@clisp.org>
63526
63527         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63528
63529         * modules/mbsspn-tests: New file.
63530         * tests/test-mbsspn.sh: New file.
63531         * tests/test-mbsspn.c: New file.
63532
63533 2007-02-11  Bruno Haible  <bruno@clisp.org>
63534
63535         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63536
63537         * modules/mbspbrk-tests: New file.
63538         * tests/test-mbspbrk.sh: New file.
63539         * tests/test-mbspbrk.c: New file.
63540
63541 2007-02-11  Bruno Haible  <bruno@clisp.org>
63542
63543         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63544         unneeded cast.
63545
63546         * modules/mbscspn-tests: New file.
63547         * tests/test-mbscspn.sh: New file.
63548         * tests/test-mbscspn.c: New file.
63549
63550 2007-02-11  Bruno Haible  <bruno@clisp.org>
63551
63552         * modules/mbscasecmp-tests: New file.
63553         * tests/test-mbscasecmp.sh: New file.
63554         * tests/test-mbscasecmp.c: New file.
63555
63556 2007-02-11  Bruno Haible  <bruno@clisp.org>
63557
63558         Ensure O(n) worst-case complexity of mbscasestr.
63559         * lib/mbscasestr.c: Include stdbool.h.
63560         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63561         functions.
63562         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63563         the bookkeeping indicates that it's worth it.
63564         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63565
63566         * modules/mbscasestr-tests: New file.
63567         * tests/test-mbscasestr1.c: New file.
63568         * tests/test-mbscasestr2.sh: New file.
63569         * tests/test-mbscasestr2.c: New file.
63570         * tests/test-mbscasestr3.sh: New file.
63571         * tests/test-mbscasestr3.c: New file.
63572         * tests/test-mbscasestr4.sh: New file.
63573         * tests/test-mbscasestr4.c: New file.
63574         * m4/locale-tr.m4: New file.
63575
63576 2007-02-11  Bruno Haible  <bruno@clisp.org>
63577
63578         Ensure O(n) worst-case complexity of mbsstr.
63579         * lib/mbsstr.c: Include stdbool.h.
63580         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63581         functions.
63582         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63583         bookkeeping indicates that it's worth it.
63584         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63585
63586         * modules/mbsstr-tests: New file.
63587         * tests/test-mbsstr1.c: New file.
63588         * tests/test-mbsstr2.sh: New file.
63589         * tests/test-mbsstr2.c: New file.
63590         * tests/test-mbsstr3.sh: New file.
63591         * tests/test-mbsstr3.c: New file.
63592         * m4/locale-fr.m4: New file.
63593
63594 2007-02-11  Bruno Haible  <bruno@clisp.org>
63595
63596         * lib/mbsrchr.c (mbsrchr): Fix bug.
63597
63598         * modules/mbsrchr-tests: New file.
63599         * tests/test-mbsrchr.sh: New file.
63600         * tests/test-mbsrchr.c: New file.
63601
63602 2007-02-11  Bruno Haible  <bruno@clisp.org>
63603
63604         * lib/mbschr.c (mbschr): Fix bug.
63605
63606         * modules/mbschr-tests: New file.
63607         * tests/test-mbschr.sh: New file.
63608         * tests/test-mbschr.c: New file.
63609         * m4/locale-zh.m4: New file.
63610
63611 2007-02-11  Bruno Haible  <bruno@clisp.org>
63612
63613         Support for copying multibyte string iterators.
63614         * lib/mbiter.h: Include <string.h>.
63615         (mbiter_multi_copy): New function.
63616         (mbi_copy): New macro.
63617         * lib/mbuiter.h: Include <string.h>.
63618         (mbuiter_multi_copy): New function.
63619         (mbui_copy): New macro.
63620
63621 2007-02-11  Bruno Haible  <bruno@clisp.org>
63622
63623         New module mbslen.
63624         * modules/mbslen: New file.
63625         * lib/mbslen.c: New file.
63626         * lib/string_.h (mbslen): New declaration.
63627         * m4/mbslen.m4: New file.
63628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63629         GNULIB_MBSLEN.
63630         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63631         * MODULES.html.sh (Internationalization functions): Add mbslen.
63632
63633 2007-02-11  Bruno Haible  <bruno@clisp.org>
63634
63635         Ensure O(n) worst-case complexity of strcasestr substitute.
63636         * lib/strcasestr.c: Include stdbool.h.
63637         (knuth_morris_pratt): New function.
63638         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63639         bookkeeping indicates that it's worth it.
63640         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63641
63642         * modules/strcasestr-tests: New file.
63643         * tests/test-strcasestr.c: New file.
63644
63645 2007-02-11  Bruno Haible  <bruno@clisp.org>
63646
63647         Ensure O(n) worst-case complexity of c_strcasestr.
63648         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63649         (knuth_morris_pratt): New function.
63650         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63651         the bookkeeping indicates that it's worth it.
63652         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63653
63654         * modules/c-strcasestr-tests: New file.
63655         * tests/test-c-strcasestr.c: New file.
63656
63657 2007-02-11  Bruno Haible  <bruno@clisp.org>
63658
63659         Ensure O(n) worst-case complexity of c_strstr.
63660         * lib/c-strstr.c: Include stdbool.h, string.h.
63661         (knuth_morris_pratt): New function.
63662         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63663         bookkeeping indicates that it's worth it.
63664         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63665
63666         * lib/c-strstr.c: Complete rewrite for maintainability.
63667
63668         * modules/c-strstr-tests: New file.
63669         * tests/test-c-strstr.c: New file.
63670
63671 2007-02-11  Bruno Haible  <bruno@clisp.org>
63672
63673         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63674         5.2.1 and earlier, whereby \055 was treated just like the range
63675         delimiter '-'.
63676         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63677
63678 2007-02-08  Bruno Haible  <bruno@clisp.org>
63679
63680         * modules/regex (Depends-on): Add stdbool.
63681         Reported by Dalibor Topic <robilad@kaffe.org>.
63682
63683 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63684
63685         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63686         Prefer returning from main to exiting from it.
63687         Remove unnecessary parens after sizeof.
63688
63689 2007-02-05  Bruno Haible  <bruno@clisp.org>
63690
63691         New module mbssep.
63692         * modules/mbssep: New file.
63693         * lib/mbssep.c: New file.
63694         * lib/string_.h (strsep): Add a conditional link warning.
63695         (mbssep): New declaration.
63696         * m4/mbssep.m4: New file.
63697         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63698         GNULIB_MBSSEP.
63699         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63700         * MODULES.html.sh (Internationalization functions): Add mbssep.
63701
63702 2007-02-05  Bruno Haible  <bruno@clisp.org>
63703
63704         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63705         Optimize search in case of 1 delimiter.
63706
63707 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63708
63709         * lib/acl.h: Include sys/types.h before sys/acl.h.
63710
63711 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63712
63713         Merge upstream fix for glibc bugzilla #3957:
63714
63715         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63716
63717         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63718         bit for RE_HAT_LISTS_NOT_NEWLINE.
63719         (build_charclass_op): Remove bogus comment.
63720
63721 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63722
63723         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63724
63725 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63726
63727         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63728         * lib/memmem.c [!defined _LIBC]: Include config.h.
63729
63730 2007-02-04  Bruno Haible  <bruno@clisp.org>
63731
63732         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63733         warning message.
63734
63735 2007-02-04  Bruno Haible  <bruno@clisp.org>
63736
63737         New module mbstok_r.
63738         * modules/mbstok_r: New file.
63739         * lib/mbstok_r.c: New file.
63740         * lib/string_.h (strtok_r): Change argument names to match the
63741         comments. Add a conditional link warning.
63742         (mbstok_r): New declaration.
63743         * m4/mbstok_r.m4: New file.
63744         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63745         GNULIB_MBSTOK_R.
63746         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63747         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63748
63749 2007-02-04  Bruno Haible  <bruno@clisp.org>
63750
63751         New module mbsspn.
63752         * modules/mbsspn: New file.
63753         * lib/mbsspn.c: New file.
63754         * lib/string_.h (strspn): Add a conditional link warning.
63755         (mbsspn): New declaration.
63756         * m4/mbsspn.m4: New file.
63757         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63758         GNULIB_MBSSPN.
63759         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63760         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63761
63762 2007-02-04  Bruno Haible  <bruno@clisp.org>
63763
63764         New module mbspbrk.
63765         * modules/mbspbrk: New file.
63766         * lib/mbspbrk.c: New file.
63767         * lib/string_.h (strpbrk): Add a conditional link warning.
63768         (mbspbrk): New declaration.
63769         * m4/mbspbrk.m4: New file.
63770         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63771         GNULIB_MBSPBRK.
63772         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63773         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63774
63775 2007-02-04  Bruno Haible  <bruno@clisp.org>
63776
63777         New module mbscspn.
63778         * modules/mbscspn: New file.
63779         * lib/mbscspn.c: New file.
63780         * lib/string_.h (strcspn): Add a conditional link warning.
63781         (mbscspn): New declaration.
63782         * m4/mbscspn.m4: New file.
63783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63784         GNULIB_MBSCSPN.
63785         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63786         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63787
63788 2007-02-04  Bruno Haible  <bruno@clisp.org>
63789
63790         New module mbscasestr, reduced goal of strcasestr.
63791         * modules/mbscasestr: New file.
63792         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63793         (mbscasestr): Renamed from strcasestr.
63794         * lib/strcasestr.c: Don't include mbuiter.h.
63795         (strcasestr): Remove support for multibyte locales.
63796         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63797         Change the conditional link warning.
63798         (mbscasestr): New declaration.
63799         * m4/mbscasestr.m4: New file.
63800         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63801         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63802         REPLACE_STRCASESTR.
63803         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63805         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63806         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63807         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63808         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63809         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63810         (Depends-on): Remove mbuiter.
63811         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63812
63813 2007-02-04  Bruno Haible  <bruno@clisp.org>
63814
63815         Simplify handling of strncasecmp.
63816         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63817         the conditional link warning.
63818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63819         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63820         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63821         * modules/strcase (configure.ac): Don't invoke
63822         gl_STRING_MODULE_INDICATOR.
63823         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63824
63825 2007-02-04  Bruno Haible  <bruno@clisp.org>
63826
63827         New module mbscasecmp, reduced goal of strcasecmp.
63828         * modules/mbscasecmp: New file.
63829         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63830         (mbscasecmp): Renamed from strcasecmp.
63831         * lib/strcasecmp.c: Don't include mbuiter.h.
63832         (strcasecmp): Remove support for multibyte locales.
63833         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63834         Change the conditional link warning.
63835         (mbscasecmp): New declaration.
63836         * m4/mbscasecmp.m4: New file.
63837         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63838         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63839         REPLACE_STRCASECMP.
63840         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63841         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63842         GNULIB_MBSCASECMP.
63843         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63844         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63845         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63846         (Depends-on): Remove mbuiter.
63847         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63848
63849 2007-02-04  Bruno Haible  <bruno@clisp.org>
63850
63851         New module mbsstr. Remove module strstr.
63852         * modules/mbsstr: New file.
63853         * modules/strstr: Remove file.
63854         * lib/mbsstr.c: Renamed from lib/strstr.c.
63855         (mbsstr): Renamed from strstr.
63856         * lib/string_.h (strstr): Remove declaration. Change the conditional
63857         link warning.
63858         (mbsstr): New declaration.
63859         * m4/mbsstr.m4: New file.
63860         * m4/strstr.m4: Remove file.
63861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63862         REPLACE_STRSTR.
63863         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63864         Don't initialize GNULIB_STRSTR.
63865         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63866         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63867         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63868         (Support for systems lacking ANSI C 89): Remove strstr.
63869
63870 2007-02-04  Bruno Haible  <bruno@clisp.org>
63871
63872         New module mbsrchr.
63873         * modules/mbsrchr: New file.
63874         * lib/mbsrchr.c: New file.
63875         * lib/string_.h (strrchr): Add a conditional link warning.
63876         (mbsrchr): New declaration.
63877         * m4/mbsrchr.m4: New file.
63878         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63879         GNULIB_MBSRCHR.
63880         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63881         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63882
63883 2007-02-04  Bruno Haible  <bruno@clisp.org>
63884
63885         New module mbschr.
63886         * modules/mbschr: New file.
63887         * lib/mbschr.c: New file.
63888         * lib/string_.h (strchr): Add a conditional link warning.
63889         (mbschr): New declaration.
63890         * m4/mbschr.m4: New file.
63891         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63892         GNULIB_MBSCHR.
63893         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63894         * MODULES.html.sh (Internationalization functions): Add mbschr.
63895
63896 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63897
63898         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63899
63900         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63901
63902 2007-02-04  Bruno Haible  <bruno@clisp.org>
63903
63904         New module description section 'configure.ac-early'.
63905         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63906         (func_get_autoconf_early_snippet): New function.
63907         (func_import, func_create_testdir): Use it. Remove special cases for
63908         modules 'extensions' and 'lock'.
63909         * modules/extensions (configure.ac-early): Require
63910         gl_USE_SYSTEM_EXTENSIONS.
63911         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63912
63913 2007-02-04  Bruno Haible  <bruno@clisp.org>
63914
63915         Make use of gcj-4.3's -fsource and -ftarget option.
63916         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63917         and if so try the options -fsource and -ftarget.
63918         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63919         source_version, ftarget_option, target_version arguments.
63920         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63921         (is_envjavac_oldgcj_14_14_usable): Renamed from
63922         is_envjavac_gcj_14_14_usable.
63923         (is_envjavac_oldgcj_14_13_usable): Renamed from
63924         is_envjavac_gcj_14_13_usable.
63925         (is_gcj_present): Update.
63926         (is_gcj_43, is_gcj43_usable): New functions.
63927         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63928         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63929         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63930         try the options -fsource and -ftarget.
63931
63932 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63933
63934         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63935         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63936         larger value.
63937
63938 2007-02-03  Jim Meyering  <jim@meyering.net>
63939
63940         Give tools a better chance to allocate space for very large buffers.
63941         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63942
63943         Make pwd and readlink work also when run with an unreadable parent dir
63944         on systems with openat support.
63945         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63946         provided getcwd function, even when we have openat support.
63947         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63948
63949 2007-02-02  Bruno Haible  <bruno@clisp.org>
63950
63951         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63952         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63953         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63954         portability problems if one of these functions is only used on specific
63955         platforms.
63956         Reported by Paul Eggert.
63957
63958 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63959
63960         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63961         is causing more trouble than it's curing.
63962         * lib/regex_internal.h (__mempcpy): Remove.
63963         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63964         (and make the code a tad smaller to boot).
63965         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63966
63967 2007-02-02  Jim Meyering  <jim@meyering.net>
63968
63969         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63970         section, not in the Makefile.am: one.
63971
63972 2007-02-02  Eric Blake  <ebb9@byu.net>
63973
63974         * lib/strchrnul.c: Always include config.h first.
63975
63976         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63977         gnulib strstr is not necessary here.
63978
63979 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63980
63981         * m4/socklen.m4: Fix typo.
63982
63983 2007-02-02  Eric Blake  <ebb9@byu.net>
63984
63985         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63986         * modules/netinet_in (Makefile.am): Likewise.
63987
63988 2007-02-01  Bruno Haible  <bruno@clisp.org>
63989
63990         * lib/string_.h (GL_LINK_WARNING): New macro.
63991         (strcasecmp, strstr, strcasestr): If provided by the system,
63992         conditionally define as a macro that leads to a warning instead of to
63993         an error.
63994         (strncasecmp): Conditionally define as a macro that leads to a warning.
63995
63996 2007-02-01  Karl Berry  <karl@gnu.org>
63997
63998         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63999
64000 2007-02-01  Bruno Haible  <bruno@clisp.org>
64001
64002         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64003         renamings.
64004
64005 2007-02-01  Eric Blake  <ebb9@byu.net>
64006
64007         * modules/regex (Depends-on): Revert dependence on mempcpy.
64008         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64009         module's definition of mempcpy.
64010         Reported by Paul Eggert.
64011
64012 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64013
64014         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64015         the symbol XYZ before redefining it.  This fixes a problem with
64016         programs that don't use XYZ, when compiled on systems that define
64017         XYZ to something else.
64018
64019 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64020
64021         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64022         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64023         writeable to group or other and (2) is intended to have a special
64024         mode bit that is set or cleared.  In such a case, the directory
64025         should be neither group- nor other-writeable until the special
64026         mode bits are right.
64027
64028 2007-01-31  Eric Blake  <ebb9@byu.net>
64029
64030         * modules/mountlist (Depends-on): Add strstr.
64031
64032         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64033         bug.
64034         * modules/string (Makefile.am): Remove redundant replacement.
64035         * modules/regex (Depends-on): Add mempcpy.
64036
64037 2007-01-31  Bruno Haible  <bruno@clisp.org>
64038
64039         New module description field 'Link'.
64040         * gnulib-tool (func_usage): Document --extract-link-directive.
64041         (sed_extract_prog): Recognize 'Link' directive.
64042         (func_get_link_directive): New function.
64043         (func_import): Show summary of link directives.
64044         Handle --extract-link-directive option.
64045         * modules/acl (Link): New section.
64046         * modules/clock-time (Link): New section.
64047         * modules/euidaccess (Link): New section.
64048         * modules/gettext (Link): New section.
64049         * modules/iconv (Link): New section.
64050         * modules/lock (Link): New section.
64051         * modules/nanosleep (Link): New section.
64052         * modules/readline (Link): New section.
64053
64054 2007-01-27  Bruno Haible  <bruno@clisp.org>
64055
64056         Enforce the use of gnulib modules for unportable <string.h> functions.
64057         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64058         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64059         (gl_HEADER_STRING_H_BODY): Require it.
64060         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64061         the symbol XYZ to one that gives a link error.
64062         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64063         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64064         * modules/mempcpy (configure.ac): Likewise.
64065         * modules/memrchr (configure.ac): Likewise.
64066         * modules/stpcpy (configure.ac): Likewise.
64067         * modules/stpncpy (configure.ac): Likewise.
64068         * modules/strcase (configure.ac): Likewise.
64069         * modules/strcasestr (configure.ac): Likewise.
64070         * modules/strchrnul (configure.ac): Likewise.
64071         * modules/strdup (configure.ac): Likewise.
64072         * modules/strndup (configure.ac): Likewise.
64073         * modules/strnlen (configure.ac): Likewise.
64074         * modules/strpbrk (configure.ac): Likewise.
64075         * modules/strsep (configure.ac): Likewise.
64076         * modules/strstr (configure.ac): Likewise.
64077         * modules/strtok_r (configure.ac): Likewise.
64078
64079 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64080
64081         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64082
64083 2007-01-30  Jim Meyering  <jim@meyering.net>
64084
64085         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64086
64087 2007-01-29  Bruno Haible  <bruno@clisp.org>
64088
64089         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64090         * lib/execute.c: Likewise.
64091         * lib/pipe.c: Likewise.
64092         * lib/printf-args.h: Likewise.
64093         * lib/printf-args.c: Likewise.
64094         * lib/printf-parse.c: Likewise.
64095         * lib/vasnprintf.c: Likewise.
64096
64097 2007-01-29  Eric Blake  <ebb9@byu.net>
64098
64099         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64100         declaration.
64101
64102 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64103
64104         * lib/strptime.h (strptime): Use 'restrict' for args where
64105         POSIX requires this.
64106         * lib/strptime.c (strptime): Likewise.
64107         Change license notice from LGPL to GPL, since gnulib-tool will
64108         change this as needed.
64109         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64110         defined.
64111         Include "strptime.h" first, to check interface.
64112         Do not #undef _LIBC and _NL_CURRENT.
64113         Do not include <stdlib.h>; no longer needed.
64114         Include "time_r.h" and declare ptime_locale_status
64115         only if _LIBC is not defined.
64116         (__P): Remove unused macro.
64117         (match_string): Bring back glibc version, but use it only if _LIBC
64118         is defined.
64119         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64120         Remove unnecessary assertion and abort() call.
64121         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64122         * m4/strptime.m4: Fix serial number comment.
64123         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64124         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64125         (Depends-on): Add time_r.
64126
64127 2007-01-29  Bruno Haible  <bruno@clisp.org>
64128
64129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64130         strptime.
64131         * modules/strptime (Depends-on): Add stdbool.
64132         * lib/strptime.h: Include <time.h> always. Add comments.
64133
64134 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64135
64136         * modules/strptime: New file.
64137         * lib/strptime.h: New file.
64138         * lib/strptime.c: New file.
64139         * m4/strptime.m4: New file.
64140
64141 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64142
64143         * MODULES.html.sh: New module mpsort.
64144         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64145
64146         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64147         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64148         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64149         All uses changed.
64150         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64151         All uses changed.
64152         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64153         to _Restrict_.
64154         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64155         the parameter matches the prototype.
64156
64157 2007-01-28  Jim Meyering  <jim@meyering.net>
64158
64159         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64160         sys/time.h here, reverting that part of the previous patch:
64161         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64162
64163 2007-01-28  Bruno Haible  <bruno@clisp.org>
64164
64165         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64166         value of $(SYS_TIME_H).
64167         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64168         remove it conditionally, too. [added by Jim Meyering]
64169         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64170         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64171         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64172         GETTIMEOFDAY_REPLACEMENT to 1.
64173
64174 2007-01-28  Bruno Haible  <bruno@clisp.org>
64175
64176         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64177         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64179         Set UNISTD_H instead of UNISTD_H2.
64180         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64181
64182 2007-01-28  Bruno Haible  <bruno@clisp.org>
64183
64184         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64185         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64186
64187 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64188
64189         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64190         (func_create_testdir): Ensure C locale for `grep' and `tr'
64191         character ranges.
64192         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64193         ACLOCAL_AMFLAGS parsing state machine.
64194
64195 2007-01-27  Bruno Haible  <bruno@clisp.org>
64196
64197         * modules/unistr/base: Update.
64198
64199 2007-01-27  Bruno Haible  <bruno@clisp.org>
64200
64201         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64202         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64203         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64204         modules/unistr/u32-mbtouc.
64205         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64206         * lib/unistr.h: Update.
64207         * lib/linebreak.c: Update.
64208         * modules/unistr/u32-mbtouc: Renamed from
64209         modules/unistr/u32-mbtouc-safe.
64210         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64211         * lib/unistr.h: Update.
64212         * lib/unistr/u32-to-u8.c: Update.
64213         * lib/unistr/u32-to-u16.c: Update.
64214
64215 2007-01-27  Bruno Haible  <bruno@clisp.org>
64216
64217         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64218         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64219         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64220         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64221         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64222         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64223         modules/unistr/u16-mbtouc.
64224         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64225         * lib/unistr.h: Update.
64226         * lib/linebreak.c: Update.
64227         * modules/linebreak: Update.
64228         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64229         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64230         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64231         * modules/unistr/u16-mbtouc: Renamed from
64232         modules/unistr/u16-mbtouc-safe.
64233         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64234         * lib/unistr.h: Update.
64235         * lib/unistr/u16-to-u8.c: Update.
64236         * modules/unistr/u16-to-u8: Update.
64237         * lib/unistr/u16-to-u32.c: Update.
64238         * modules/unistr/u16-to-u32: Update.
64239
64240 2007-01-27  Bruno Haible  <bruno@clisp.org>
64241
64242         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64243         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64244         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64245         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64246         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64247         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64248         modules/unistr/u8-mbtouc.
64249         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64250         * lib/unistr.h: Update.
64251         * lib/striconveh.c: Update.
64252         * modules/striconveh: Update.
64253         * lib/linebreak.c: Update.
64254         * modules/linebreak: Update.
64255         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64256         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64257         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64258         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64259         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64260         * lib/unistr.h: Update.
64261         * lib/striconveh.c: Update.
64262         * modules/striconveh: Update.
64263         * lib/unistr/u8-to-u16.c: Update.
64264         * modules/unistr/u8-to-u16: Update.
64265         * lib/unistr/u8-to-u32.c: Update.
64266         * modules/unistr/u8-to-u32: Update.
64267
64268 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64269
64270         Sync from Libtool.
64271         * lib/argz.c: Do not include strings.h nor memory.h, include
64272         string.h unconditionally.  Patch by Simon Josefsson.
64273
64274 2007-01-27  Bruno Haible  <bruno@clisp.org>
64275
64276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64277         from gl_HEADER_STRING_H_BODY.
64278         (gl_HEADER_STRING_H_BODY): Require it.
64279         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64280         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64281         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64282         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64283         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64284         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64286         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64287         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64288         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64289         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64290         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64291         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64292         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64293         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64294
64295 2007-01-27  Bruno Haible  <bruno@clisp.org>
64296
64297         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64298         check_PROGRAMS into noinst_PROGRAMS.
64299         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64300         check_PROGRAMS in this case.
64301         (func_import): Set for_test to false.
64302         (func_create_testdir): Set for_test to true.
64303
64304 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64305             Bruno Haible  <bruno@clisp.org>
64306
64307         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64308         (Depends-on): Add string.
64309         (Includes): Use <string.h> instead of strcasestr.h.
64310         * modules/string (Makefile.am): Also substitute the value of
64311         REPLACE_STRCASESTR.
64312         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64313         assume strcasestr is declared in <string.h> not <strings.h>. Also
64314         set REPLACE_STRCASESTR.
64315         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64316         REPLACE_STRCASESTR.
64317         * lib/strcasestr.h: Remove file.
64318         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64319         * lib/string_.h (strcasestr): New declaration.
64320
64321 2007-01-27  Bruno Haible  <bruno@clisp.org>
64322
64323         * lib/string_.h: Use 'extern'.
64324
64325 2007-01-27  Jim Meyering  <jim@meyering.net>
64326
64327         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64328         of set-but-not-used local, "q".
64329
64330         * lib/mempcpy.c: Include <config.h> before <string.h>.
64331         This fixes a compilation error on HP-UX, due to the system's
64332         "restrict"-using mempcpy prototype.
64333
64334 2007-01-26  Bruno Haible  <bruno@clisp.org>
64335
64336         Small optimization.
64337         * lib/javacomp.c: Include c-strstr.h.
64338          (is_envjavac_gcj): Use c_strstr instead of strstr.
64339         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64340
64341 2007-01-26  Bruno Haible  <bruno@clisp.org>
64342
64343         * MODULES.html.sh (Unicode string functions): Add the new modules.
64344
64345         * modules/uniconv/u32-strconv-to-locale: New file.
64346         * lib/uniconv/u32-strconv-to-locale.c: New file.
64347
64348         * modules/uniconv/u16-strconv-to-locale: New file.
64349         * lib/uniconv/u16-strconv-to-locale.c: New file.
64350
64351         * modules/uniconv/u8-strconv-to-locale: New file.
64352         * lib/uniconv/u8-strconv-to-locale.c: New file.
64353
64354         * modules/uniconv/u32-strconv-from-locale: New file.
64355         * lib/uniconv/u32-strconv-from-locale.c: New file.
64356
64357         * modules/uniconv/u16-strconv-from-locale: New file.
64358         * lib/uniconv/u16-strconv-from-locale.c: New file.
64359
64360         * modules/uniconv/u8-strconv-from-locale: New file.
64361         * lib/uniconv/u8-strconv-from-locale.c: New file.
64362
64363         * modules/uniconv/u32-strconv-to-enc: New file.
64364         * lib/uniconv/u32-strconv-to-enc.c: New file.
64365         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64366         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64367
64368         * modules/uniconv/u16-strconv-to-enc: New file.
64369         * lib/uniconv/u16-strconv-to-enc.c: New file.
64370         * lib/uniconv/u-strconv-to-enc.h: New file.
64371         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64372         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64373
64374         * modules/uniconv/u8-strconv-to-enc: New file.
64375         * lib/uniconv/u8-strconv-to-enc.c: New file.
64376         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64377         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64378
64379         * modules/uniconv/u32-strconv-from-enc: New file.
64380         * lib/uniconv/u32-strconv-from-enc.c: New file.
64381         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64382         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64383
64384         * modules/uniconv/u16-strconv-from-enc: New file.
64385         * lib/uniconv/u16-strconv-from-enc.c: New file.
64386         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64387         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64388
64389         * modules/uniconv/u8-strconv-from-enc: New file.
64390         * lib/uniconv/u8-strconv-from-enc.c: New file.
64391         * lib/uniconv/u-strconv-from-enc.h: New file.
64392         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64393         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64394
64395         * modules/uniconv/u32-conv-from-enc: New file.
64396         * lib/uniconv/u32-conv-from-enc.c: New file.
64397         * modules/uniconv/u32-conv-from-enc-tests: New file.
64398         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64399
64400         * modules/uniconv/u16-conv-from-enc: New file.
64401         * lib/uniconv/u16-conv-from-enc.c: New file.
64402         * lib/uniconv/u-conv-from-enc.h: New file.
64403         * modules/uniconv/u16-conv-from-enc-tests: New file.
64404         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64405
64406         * modules/uniconv/u8-conv-from-enc: New file.
64407         * lib/uniconv/u8-conv-from-enc.c: New file.
64408         * modules/uniconv/u8-conv-from-enc-tests: New file.
64409         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64410
64411         * modules/uniconv/base: New file.
64412         * lib/uniconv.h: New file.
64413
64414 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64415
64416         * doc/gnulib-tool.texi (Initial import): Update to match current
64417         behavior with strdup module.
64418         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64419         * lib/memmem.h: Remove; all uses removed.  This is now done
64420         by <string.h>.
64421         * lib/mempcpy.h: Likewise.
64422         * lib/memrchr.h: Likewise.
64423         * lib/stpcpy.h: Likewise.
64424         * lib/stpncpy.h: Likewise.
64425         * lib/strcase.h: Likewise.
64426         * lib/strchrnul.h: Likewise.
64427         * lib/strdup.h: Likewise.
64428         * lib/strndup.h: Likewise.
64429         * lib/strnlen.h: Likewise.
64430         * lib/strpbrk.h: Likewise.
64431         * lib/strsep.h: Likewise.
64432         * lib/strstr.h: Likewise.
64433         * lib/strtok_r.h: Likewise.
64434         * lib/string_.h: New file.
64435         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64436         Rely on <string.h> instead.
64437         * lib/canon-host.c: Likewise.
64438         * lib/chdir-long.c: Likewise.
64439         * lib/concatpath.c: Likewise.
64440         * lib/exclude.c: Likewise.
64441         * lib/fchdir.c: Likewise.
64442         * lib/getaddrinfo.c: Likewise.
64443         * lib/getcwd.c: Likewise.
64444         * lib/getsubopt.c: Likewise.
64445         * lib/glob.c: Likewise.
64446         * lib/hard-locale.c: Likewise.
64447         * lib/iconvme.c: Likewise.
64448         * lib/javacomp.c: Likewise.
64449         * lib/mempcpy.c: Likewise.
64450         * lib/memrchr.c: Likewise.
64451         * lib/regex_internal.h: Likewise.
64452         * lib/stpncpy.c: Likewise.
64453         * lib/strcasecmp.c: Likewise.
64454         * lib/strchrnul.c: Likewise.
64455         * lib/strdup.c: Likewise.
64456         * lib/striconv.c: Likewise.
64457         * lib/striconveh.c: Likewise.
64458         * lib/striconveha.c: Likewise.
64459         * lib/strncasecmp.c: Likewise.
64460         * lib/strndup.c: Likewise.
64461         * lib/strnlen.c: Likewise.
64462         * lib/strsep.c: Likewise.
64463         * lib/strstr.c: Likewise.
64464         * lib/strtok_r.c: Likewise.
64465         * lib/userspec.c: Likewise.
64466         * lib/w32spawn.h: Likewise.
64467         * lib/xstrndup.c: Likewise.
64468         * lib/mountlist.c (strstr): Remove decl.
64469         * m4/string_h.m4: New file.
64470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64471         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64472         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64473         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64474         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64475         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64476         Set REPLACE_STRCASECMP if necessary.
64477         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64478         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64479         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64480         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64481         HAVE_DECL_STRDUP if necessary.
64482         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64483         since gl_FUNC_STRNDUP does that now.
64484         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64485         Check for decl here...
64486         (gl_PREREQ_STRNLEN): ... not here.
64487         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64488         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64489         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64490         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64491         necessary.
64492         * modules/string: New file.
64493         * modules/memmem (Files): Remove special-purpose include file.
64494         (Depends-on): Add string.
64495         (Include): Include <string.h>, not the removed file.
64496         * modules/mempcpy: Likewise.
64497         * modules/memrchr: Likewise.
64498         * modules/stpcpy: Likewise.
64499         * modules/stpncpy: Likewise.
64500         * modules/strcase: Likewise.
64501         * modules/strchrnul: Likewise.
64502         * modules/strdup: Likewise.
64503         * modules/strndup: Likewise.
64504         * modules/strnlen: Likewise.
64505         * modules/strpbrk: Likewise.
64506         * modules/strsep: Likewise.
64507         * modules/strstr: Likewise.
64508         * modules/strtok_r: Likewise.
64509         * tests/test-dirname.c: Don't include "strdup.h", since
64510         <string.h> now suffices.
64511         * tests/test-memmem.c: Don't include "memmem.h", since
64512         <string.h> now suffices.
64513
64514 2007-01-25  Bruno Haible  <bruno@clisp.org>
64515
64516         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64517         *resultp is 0.
64518
64519         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64520         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64521         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64522         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64523
64524         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64525         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64526         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64527         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64528         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64529         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64530
64531 2007-01-24  Bruno Haible  <bruno@clisp.org>
64532
64533         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64534         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64535         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64536         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64537         gl_FUNC_FTS_CORE.
64538         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64539         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64540         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64541         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64542         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64543         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64544         gl_FUNC_FCHOWNAT.
64545         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64546         gl_FUNC_STRFTIME.
64547         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64548         Reported by Ralf Wildenhues.
64549
64550 2007-01-24  Bruno Haible  <bruno@clisp.org>
64551
64552         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64553         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64554         gl_GETADDRINFO.
64555         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64556         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64557         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64558
64559 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64560
64561         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64562         Don't use 'exit'; just return from 'main'.
64563         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64564
64565         * lib/fnmatch_.h: Readjust white space and comments to match
64566         glibc, to avoid spurious diffs.
64567
64568 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64569
64570         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64571         2004-12-01 change by Jakub Jelinek, since this code won't compile
64572         if !LIBC.  Problem reported by Bob Proulx.
64573
64574 2007-01-23  Bruno Haible  <bruno@clisp.org>
64575
64576         * lib/striconveh.c: Include c-strcaseeq.h.
64577         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64578         * modules/striconveh (Depends-on): Add c-strcaseeq.
64579
64580 2007-01-23  Bruno Haible  <bruno@clisp.org>
64581
64582         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64583
64584         * modules/c-strcaseeq: New file.
64585         * lib/c-strcaseeq.h: New file.
64586
64587         * modules/streq: New file.
64588         * lib/streq.h: New file.
64589
64590 2007-01-23  Bruno Haible  <bruno@clisp.org>
64591
64592         * modules/striconveha-tests: New file.
64593         * tests/test-striconveha.c: New file.
64594
64595         * lib/striconveha.h: Include <stdbool.h>.
64596         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64597         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64598         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64599         (mem_iconveha): New function.
64600         (str_iconveha_notranslit): Renamed from str_iconveha.
64601         (str_iconveha): New function.
64602         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64603         c-strcase.
64604
64605 2007-01-23  Bruno Haible  <bruno@clisp.org>
64606
64607         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64608         encodings without forgiving before trying any encoding with handler.
64609         (str_iconveha): Try all encodings without forgiving before trying any
64610         encoding with handler.
64611
64612 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64613
64614         Import the following changes from libc.
64615
64616         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64617
64618         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64619
64620         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64621
64622         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64623         normal_bracket label.
64624
64625         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64626
64627         [BZ #361]
64628         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64629         to normal_bracket after fetching the next character.
64630
64631 2007-01-22  Bruno Haible  <bruno@clisp.org>
64632
64633         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64634         argument.
64635         * lib/striconveh.c (iconv_carefully_1): New function.
64636         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64637         argument.
64638         (str_cd_iconveh): Update.
64639         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64640         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64641         * tests/test-striconveh.c (MAGIC): New macro.
64642         (new_offsets): New function.
64643         (main): Test call with and without offsets.
64644
64645 2007-01-22  Bruno Haible  <bruno@clisp.org>
64646
64647         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64648         * modules/sys_select (Makefile.am): Likewise.
64649         * modules/sys_socket (Makefile.am): Likewise.
64650         * modules/sys_time (Makefile.am): Likewise.
64651
64652 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64653
64654         * modules/gettimeofday (License): Change from GPL to LGPL, since
64655         gettimeofday is a library function.
64656
64657 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64658
64659         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64660
64661 2007-01-21  Bruno Haible  <bruno@clisp.org>
64662
64663         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64664
64665 2007-01-21  Bruno Haible  <bruno@clisp.org>
64666
64667         * modules/striconveha: New file.
64668         * lib/striconveha.h: New file.
64669         * lib/striconveha.c: New file.
64670         * MODULES.html.sh (Internationalization functions): Add striconveha.
64671         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64672         string.
64673         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64674
64675 2007-01-21  Bruno Haible  <bruno@clisp.org>
64676
64677         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64678         * lib/striconveh.c (str_iconveh): Likewise.
64679
64680 2007-01-21  Bruno Haible  <bruno@clisp.org>
64681
64682         * lib/striconveh.h (mem_iconveh): New declaration.
64683         * lib/striconveh.c (mem_iconveh): New function.
64684         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64685
64686 2007-01-21  Bruno Haible  <bruno@clisp.org>
64687
64688         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64689
64690         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64691         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64692         original result buffer.
64693         (str_cd_iconveh): Update.
64694         * tests/test-striconveh.c (main): Update.
64695
64696         * lib/striconv.h (mem_cd_iconv): Change specification.
64697         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64698         result buffer.
64699         (str_cd_iconv): Update.
64700         * tests/test-striconv.c (main): Update.
64701
64702 2007-01-21  Bruno Haible  <bruno@clisp.org>
64703
64704         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64705
64706 2007-01-20  Jim Meyering  <jim@meyering.net>
64707
64708         * lib/userspec.c (parse_with_separator): If a user or group string
64709         starts with "+", skip the corresponding name-to-ID look-up, since
64710         such a look-up must fail: user and group names may not include "+".
64711
64712 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64713
64714         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64715         since we now assume the sys_time module.
64716         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64717         check for sys/time.h; no longer needed.
64718         * modules/poll (Depends-on): Depend on sys_time.
64719
64720 2007-01-18  Bruno Haible  <bruno@clisp.org>
64721
64722         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64723         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64724
64725         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64726         gettimeofday.
64727
64728         * tests/test-gettimeofday.c: Include <time.h>.
64729         (dummy): Remove variable.
64730
64731         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64732         gl_HEADER_SYS_TIME_H.
64733         (gl_HEADER_SYS_TIME_H): New macro.
64734
64735         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64736         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64737         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64738         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64739         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64740         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64741         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64742         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64743         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64744         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64745         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64746
64747         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64748         last change; it caused a compilation error when cross-compiling to
64749         Cygwin.
64750
64751 2007-01-18  Jim Meyering  <jim@meyering.net>
64752
64753         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64754         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64755         than the race-prone "test -d sys || mkdir sys".
64756         (configure.ac): Use AC_PROG_MKDIR_P.
64757         * modules/sys_select: Likewise.
64758         * modules/sys_socket: Likewise.
64759         * modules/sys_time: Likewise.
64760
64761 2007-01-18  Eric Blake  <ebb9@byu.net>
64762
64763         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64764         replace gettimeofday.
64765         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64766         name, to avoid infinite recursion.
64767
64768 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64769
64770         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64771         module sys_time.
64772         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64773         assume timespec.h defines struct timeval.
64774         * lib/settime.c: Likewise.
64775         * lib/utimens.c: Likewise.
64776         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64777         since we now assume the gettimeofday module.
64778         * lib/tempname.c (__gen_tempname): Likewise.
64779         * lib/gettimeofday.h: Remove.
64780         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64781         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64782         Include <time.h>, for 'time()'.
64783         (localtime_buffer_addr): Also use this workaround if
64784         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64785         to simplify the uses.  All uses changed.
64786         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64787         that #undef is inside {}, and 'const' follows type name consistently.
64788         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64789         (gettimeofday): Do not use the maximum possible value for
64790         tv->tv_usec, since that might break usages other than ls.c.
64791         Instead, we'll leave ls.c alone.  This undoes today's patch
64792         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64793         we've never observed the problem but might as well keep the
64794         canary.
64795         * lib/nanosleep.c: Include timespec.h first, for interface check.
64796         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64797         now assume the sys_time module.
64798         * lib/tempname.c: Likewise.
64799         * lib/timespec.h: Likewise.
64800         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64801         needed.
64802         * lib/strftime.c: Likewise.
64803         * lib/timespec.h: Likewise.
64804         * lib/posixtm.c: Include posixtm.h first, for interface check.
64805         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64806         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64807         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64808         * lib/sys_time_.h: New file.
64809         * lib/timespec.h (struct timespec): Use long int, not long.
64810         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64811         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64812         Remove obsolescent call to AC_HEADER_TIME.
64813         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64815         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64816         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64817         Likewise.
64818         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64819         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64820         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64821         into the sys_time module.  Check for gettimeofday just once.
64822         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64823         for gettimeofday signature to just check the signature.  Merely
64824         compile it, since linking doesn't test signature.  Improve test for
64825         whether gettimeofday.o is actually needed.
64826         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64827         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64828         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64829         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64830         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64831         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64832         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64833         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64834         than worrying about sys/time.h.
64835         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64836         Don't bother worrying about TIME_WITH_SYS_TIME.
64837         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64838         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64839         * m4/sys_time_h.m4: New file.
64840         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64841         Don't include sys/time.h.  Return from main rather than exiting.
64842         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64843         all uses changed.
64844         * modules/gethrxtime (Depends-on): Add sys_time.
64845         * modules/gettime (Depends-on): Likewise.
64846         * modules/gettimeofday (Depends-on): Likewise.
64847         * modules/nanosleep (Depends-on): Likewise.
64848         * modules/settime (Depends-on): Likewise.
64849         * modules/tempname (Depends-on): Likewise.
64850         * modules/utimens (Depends-on): Likewise.
64851         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64852         (Include): Change back to <sys/time.h>.
64853         (Maintainer): Add self.
64854         * modules/sys_time: New file.
64855         * modules/tempname (Depends-on): Add gettimeofday.
64856         * tests/test-gettimeofday.c: Include <sys/time.h>
64857         rather than gettimeofday.h.
64858
64859 2007-01-17  Bruno Haible  <bruno@clisp.org>
64860
64861         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64862         the license default to GPL.
64863         (func_create_testdir): Don't complain if a module is LGPL and its
64864         tests module depends on GPLed modules.
64865
64866 2007-01-17  Bruno Haible  <bruno@clisp.org>
64867
64868         * lib/gettimeofday.c (gettimeofday): Add code for the case
64869         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64870         maximum possible value for tv->tv_usec, rather than the minimum one.
64871
64872 2005-10-08  Martin Lambers  <marlam@marlam.de>
64873 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64874 2007-01-16  Bruno Haible  <bruno@clisp.org>
64875
64876         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64877         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64878         gl_FUNC_GETTIMEOFDAY.
64879         (Include): Add gettimeofday.h.
64880         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64881         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64882         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64883         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64884         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64885         * lib/gettimeofday.h: New file.
64886         * lib/gettimeofday.c: Include <sys/timeb.h>.
64887         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64888         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64889         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64890         fall back on time().
64891
64892         * tests/test-gettimeofday.c: New file.
64893         * modules/gettimeofday-tests: New file.
64894
64895 2007-01-16  Eric Blake  <ebb9@byu.net>
64896
64897         * modules/fnmatch (Depends-on): Depend on wchar.
64898         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64899         * m4/fnmatch.m4: Likewise.
64900         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64901         * m4/mbchar.m4: Likewise.
64902         * modules/mbswidth (Depends-on): Depend on wchar.
64903         * lib/mbswidth.c: Assume <wchar.h>.
64904         * m4/mbswidth.m4: Likewise.
64905         * modules/quotearg (Depends-on): Depend on wchar.
64906         * lib/quotearg.c: Assume <wchar.h>.
64907         * m4/quotearg.m4: Likewise.
64908         * modules/regex (Depends-on): Depend on wchar.
64909         * lib/regex_internal.h: Assume <wchar.h>.
64910         * m4/regex.m4: Likewise.
64911         * modules/stdint (Depends-on): Depend on wchar.
64912         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64913         * m4/stdint.m4: Likewise.
64914         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64915         * modules/strftime (Depends-on): Depend on wchar.
64916         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64917         * modules/strtol (Depends-on): Depend on wchar.
64918         * lib/strtol.c: Assume <wchar.h>.
64919         * modules/wcwidth (Depends-on): Depend on wchar.
64920         * lib/wcwidth.h: Assume <wchar.h>.
64921         * m4/wcwidth.m4: Likewise.
64922
64923 2007-01-16  Bruno Haible  <bruno@clisp.org>
64924
64925         * modules/csharpexec-script: New, created from...
64926         * modules/csharpexec: ... this.
64927
64928 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64929
64930         * modules/javaexec-script: New, created from...
64931         * modules/javaexec: ... this.
64932
64933 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64934
64935         * modules/poll (Dependencies): Add sys_select.
64936
64937 2007-01-15  Jim Meyering  <jim@meyering.net>
64938
64939         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64940         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64941         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64942         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64943
64944 2007-01-15  Bruno Haible  <bruno@clisp.org>
64945
64946         * modules/striconveh: New file.
64947         * lib/striconveh.h: New file.
64948         * lib/striconveh.c: New file.
64949         * MODULES.html.sh (Internationalization functions): Add striconveh.
64950
64951         * modules/striconveh-tests: New file.
64952         * tests/test-striconveh.c: New file.
64953
64954 2007-01-15  Bruno Haible  <bruno@clisp.org>
64955
64956         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64957         not from GNU libiconv or GNU libc.
64958
64959 2007-01-15  Bruno Haible  <bruno@clisp.org>
64960
64961         * doc/gnulib-intro.texi (Copyright): Explain the different license
64962         terms for module descriptions, autoconf macros, tests, documentation.
64963
64964 2007-01-14  Bruno Haible  <bruno@clisp.org>
64965
64966         * modules/striconv-tests: New file.
64967         * tests/test-striconv.c: New file.
64968
64969 2007-01-14  Bruno Haible  <bruno@clisp.org>
64970
64971         * modules/iconv-tests: New file.
64972         * tests/test-iconv.c: New file.
64973
64974 2007-01-14  Bruno Haible  <bruno@clisp.org>
64975
64976         * gnulib-tool (func_get_license): For test modules, use the license of
64977         the main module.
64978
64979 2007-01-14  Bruno Haible  <bruno@clisp.org>
64980
64981         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64982         if iconv is found to exist.
64983
64984 2007-01-14  Bruno Haible  <bruno@clisp.org>
64985
64986         * modules/c-ctype-tests: New file.
64987         * tests/test-c-ctype.c: New file.
64988
64989 2007-01-14  Bruno Haible  <bruno@clisp.org>
64990
64991         * modules/binary-io-tests: New file.
64992         * tests/test-binary-io.sh: New file.
64993         * tests/test-binary-io.c: New file.
64994
64995 2007-01-14  Bruno Haible  <bruno@clisp.org>
64996
64997         * modules/array-oset-tests: New file.
64998         * tests/test-array_oset.c: New file.
64999
65000 2007-01-14  Bruno Haible  <bruno@clisp.org>
65001
65002         * modules/array-list-tests: New file.
65003         * tests/test-array_list.c: New file.
65004
65005 2007-01-14  Bruno Haible  <bruno@clisp.org>
65006
65007         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65008         and make.
65009         Reported by Simon Josefsson in
65010         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65011
65012 2007-01-14  Bruno Haible  <bruno@clisp.org>
65013
65014         * modules/allocsa-tests: New file.
65015         * tests/test-allocsa.c: New file.
65016
65017 2007-01-14  Bruno Haible  <bruno@clisp.org>
65018
65019         * modules/fchdir (Depends-on): Add absolute-header.
65020         * modules/unistd (Depends-on): Likewise.
65021
65022 2006-12-30  Bruno Haible  <bruno@clisp.org>
65023
65024         * modules/fchdir: New file.
65025         * modules/unistd (Files): Add lib/unistd_.h.
65026         (Makefile.am): Generate unistd.h from unistd_.h.
65027         * lib/fchdir.c: New file.
65028         * lib/dirent_.h: New file.
65029         * lib/unistd_.h: New file.
65030         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65031         * m4/fchdir.m4: New file.
65032         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65033         (gl_HEADER_UNISTD): Invoke it.
65034         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65035         function.
65036         * lib/backupfile.c (opendir, closedir): Undefine.
65037         * lib/chown.c (open, close): Undefine.
65038         * lib/clean-temp.c (open, close): Undefine.
65039         * lib/copy-file.c (open, close): Undefine.
65040         * lib/execute.c (open, close): Undefine.
65041         * lib/fsusage.c (open, close): Undefine.
65042         * lib/gc-gnulib.c (open, close): Undefine.
65043         * lib/getcwd.c (opendir, closedir): Undefine.
65044         * lib/glob.c (opendir, closedir): Undefine.
65045         * lib/javacomp.c (open, close): Undefine.
65046         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65047         * lib/openat-proc.c (open, close): Undefine.
65048         * lib/pagealign_alloc.c (open, close): Undefine.
65049         * lib/pipe.c (open, close): Undefine.
65050         * lib/progreloc.c (open, close): Undefine.
65051         * lib/savedir.c (opendir, closedir): Undefine.
65052         * lib/utime.c (open, close): Undefine.
65053         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65054
65055 2007-01-10  Bruno Haible  <bruno@clisp.org>
65056
65057         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65058
65059 2007-01-12  Eric Blake  <ebb9@byu.net>
65060
65061         Provide a robust <wchar.h>.  Further simplifications are now
65062         possible in other modules, but not included here.
65063         * modules/wchar: New module.
65064         * m4/wchar.m4: New file.
65065         * lib/wchar_.h: Likewise.
65066         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65067         of the new module.
65068         * MODULES.html.sh (Extended multibyte and wide character utilities):
65069         New section.
65070
65071 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65072
65073         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65074         to a reasonable default for memory allocation.
65075         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65076         file system that reports garbage st_size values for symlinks.
65077         Problem reported by Liyang Hu.
65078
65079 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65080
65081         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65082         Emacs .#* auto-save files).
65083
65084 2007-01-11  Bruno Haible  <bruno@clisp.org>
65085
65086         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65087         directory.
65088
65089 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         Use @...@ consistently in lib/wctype_.h.
65092         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65093         on it being set to 1 or 0.
65094         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65095         go back to AC_SUBSTing it.
65096         * modules/wctype (Makefile.am): Undo previous change.
65097
65098 2007-01-10  Eric Blake  <ebb9@byu.net>
65099
65100         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65101         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65102         * modules/wctype (Makefile.am): Likewise.
65103         Reported by Chris McGuire.
65104
65105 2007-01-10  Jim Meyering  <jim@meyering.net>
65106
65107         fts.c: a small readability/maintainability improvement
65108         * lib/fts.c (fts_read): Make this code slightly more readable and
65109         maintainable by hoisting the "sp->fts_cur = p" assignments to
65110         immediately follow the statements that set P.  Derived from
65111         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65112
65113 2007-01-10  Eric Blake  <ebb9@byu.net>
65114
65115         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65116         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65117         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65118         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65119         Reported by Chris McGuire.
65120
65121 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65122
65123         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65124         in sed script.
65125
65126 2007-01-09  Bruno Haible  <bruno@clisp.org>
65127
65128         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65129         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65130         variables.
65131         (func_module): Use them.
65132
65133 2007-01-09  Bruno Haible  <bruno@clisp.org>
65134
65135         * modules/unistr/base: New file.
65136         * lib/unistr.h: New file.
65137
65138         * modules/unistr/u8-to-u16: New file.
65139         * lib/unistr/u8-to-u16.c: New file.
65140
65141         * modules/unistr/u8-to-u32: New file.
65142         * lib/unistr/u8-to-u32.c: New file.
65143
65144         * modules/unistr/u16-to-u8: New file.
65145         * lib/unistr/u16-to-u8.c: New file.
65146
65147         * modules/unistr/u16-to-u32: New file.
65148         * lib/unistr/u16-to-u32.c: New file.
65149
65150         * modules/unistr/u32-to-u8: New file.
65151         * lib/unistr/u32-to-u8.c: New file.
65152
65153         * modules/unistr/u32-to-u16: New file.
65154         * lib/unistr/u32-to-u16.c: New file.
65155
65156         * modules/unistr/u8-check: New file.
65157         * modules/unistr/u16-check: New file.
65158         * modules/unistr/u32-check: New file.
65159         * lib/unistr/u8-check.c: New file.
65160         * lib/unistr/u16-check.c: New file.
65161         * lib/unistr/u32-check.c: New file.
65162
65163         * modules/unistr/u8-chr: New file.
65164         * modules/unistr/u16-chr: New file.
65165         * modules/unistr/u32-chr: New file.
65166         * lib/unistr/u8-chr.c: New file.
65167         * lib/unistr/u16-chr.c: New file.
65168         * lib/unistr/u32-chr.c: New file.
65169
65170         * modules/unistr/u8-cmp: New file.
65171         * modules/unistr/u16-cmp: New file.
65172         * modules/unistr/u32-cmp: New file.
65173         * lib/unistr/u8-cmp.c: New file.
65174         * lib/unistr/u16-cmp.c: New file.
65175         * lib/unistr/u32-cmp.c: New file.
65176
65177         * modules/unistr/u8-cpy: New file.
65178         * modules/unistr/u16-cpy: New file.
65179         * modules/unistr/u32-cpy: New file.
65180         * lib/unistr/u8-cpy.c: New file.
65181         * lib/unistr/u16-cpy.c: New file.
65182         * lib/unistr/u32-cpy.c: New file.
65183         * lib/unistr/u-cpy.h: New file.
65184
65185         * modules/unistr/u8-cpy-alloc: New file.
65186         * modules/unistr/u16-cpy-alloc: New file.
65187         * modules/unistr/u32-cpy-alloc: New file.
65188         * lib/unistr/u8-cpy-alloc.c: New file.
65189         * lib/unistr/u16-cpy-alloc.c: New file.
65190         * lib/unistr/u32-cpy-alloc.c: New file.
65191         * lib/unistr/u-cpy-alloc.h: New file.
65192
65193         * modules/unistr/u8-endswith: New file.
65194         * modules/unistr/u16-endswith: New file.
65195         * modules/unistr/u32-endswith: New file.
65196         * lib/unistr/u8-endswith.c: New file.
65197         * lib/unistr/u16-endswith.c: New file.
65198         * lib/unistr/u32-endswith.c: New file.
65199         * lib/unistr/u-endswith.h: New file.
65200
65201         * modules/unistr/u8-mblen: New file.
65202         * modules/unistr/u16-mblen: New file.
65203         * modules/unistr/u32-mblen: New file.
65204         * lib/unistr/u8-mblen.c: New file.
65205         * lib/unistr/u16-mblen.c: New file.
65206         * lib/unistr/u32-mblen.c: New file.
65207
65208         * modules/unistr/u8-mbtouc: New file.
65209         * modules/unistr/u16-mbtouc: New file.
65210         * modules/unistr/u32-mbtouc: New file.
65211         * lib/unistr/u8-mbtouc.c: New file.
65212         * lib/unistr/u16-mbtouc.c: New file.
65213         * lib/unistr/u32-mbtouc.c: New file.
65214
65215         * modules/unistr/u8-mbtouc-safe: New file.
65216         * modules/unistr/u16-mbtouc-safe: New file.
65217         * modules/unistr/u32-mbtouc-safe: New file.
65218         * lib/unistr/u8-mbtouc-safe.c: New file.
65219         * lib/unistr/u16-mbtouc-safe.c: New file.
65220         * lib/unistr/u32-mbtouc-safe.c: New file.
65221
65222         * modules/unistr/u8-move: New file.
65223         * modules/unistr/u16-move: New file.
65224         * modules/unistr/u32-move: New file.
65225         * lib/unistr/u8-move.c: New file.
65226         * lib/unistr/u16-move.c: New file.
65227         * lib/unistr/u32-move.c: New file.
65228         * lib/unistr/u-move.h: New file.
65229
65230         * modules/unistr/u8-next: New file.
65231         * modules/unistr/u16-next: New file.
65232         * modules/unistr/u32-next: New file.
65233         * lib/unistr/u8-next.c: New file.
65234         * lib/unistr/u16-next.c: New file.
65235         * lib/unistr/u32-next.c: New file.
65236
65237         * modules/unistr/u8-prev: New file.
65238         * modules/unistr/u16-prev: New file.
65239         * modules/unistr/u32-prev: New file.
65240         * lib/unistr/u8-prev.c: New file.
65241         * lib/unistr/u16-prev.c: New file.
65242         * lib/unistr/u32-prev.c: New file.
65243
65244         * modules/unistr/u8-set: New file.
65245         * modules/unistr/u16-set: New file.
65246         * modules/unistr/u32-set: New file.
65247         * lib/unistr/u8-set.c: New file.
65248         * lib/unistr/u16-set.c: New file.
65249         * lib/unistr/u32-set.c: New file.
65250         * lib/unistr/u-set.h: New file.
65251
65252         * modules/unistr/u8-startswith: New file.
65253         * modules/unistr/u16-startswith: New file.
65254         * modules/unistr/u32-startswith: New file.
65255         * lib/unistr/u8-startswith.c: New file.
65256         * lib/unistr/u16-startswith.c: New file.
65257         * lib/unistr/u32-startswith.c: New file.
65258         * lib/unistr/u-startswith.h: New file.
65259
65260         * modules/unistr/u8-stpcpy: New file.
65261         * modules/unistr/u16-stpcpy: New file.
65262         * modules/unistr/u32-stpcpy: New file.
65263         * lib/unistr/u8-stpcpy.c: New file.
65264         * lib/unistr/u16-stpcpy.c: New file.
65265         * lib/unistr/u32-stpcpy.c: New file.
65266         * lib/unistr/u-stpcpy.h: New file.
65267
65268         * modules/unistr/u8-stpncpy: New file.
65269         * modules/unistr/u16-stpncpy: New file.
65270         * modules/unistr/u32-stpncpy: New file.
65271         * lib/unistr/u8-stpncpy.c: New file.
65272         * lib/unistr/u16-stpncpy.c: New file.
65273         * lib/unistr/u32-stpncpy.c: New file.
65274         * lib/unistr/u-stpncpy.h: New file.
65275
65276         * modules/unistr/u8-strcat: New file.
65277         * modules/unistr/u16-strcat: New file.
65278         * modules/unistr/u32-strcat: New file.
65279         * lib/unistr/u8-strcat.c: New file.
65280         * lib/unistr/u16-strcat.c: New file.
65281         * lib/unistr/u32-strcat.c: New file.
65282         * lib/unistr/u-strcat.h: New file.
65283
65284         * modules/unistr/u8-strchr: New file.
65285         * modules/unistr/u16-strchr: New file.
65286         * modules/unistr/u32-strchr: New file.
65287         * lib/unistr/u8-strchr.c: New file.
65288         * lib/unistr/u16-strchr.c: New file.
65289         * lib/unistr/u32-strchr.c: New file.
65290
65291         * modules/unistr/u8-strcmp: New file.
65292         * modules/unistr/u16-strcmp: New file.
65293         * modules/unistr/u32-strcmp: New file.
65294         * lib/unistr/u8-strcmp.c: New file.
65295         * lib/unistr/u16-strcmp.c: New file.
65296         * lib/unistr/u32-strcmp.c: New file.
65297
65298         * modules/unistr/u8-strcpy: New file.
65299         * modules/unistr/u16-strcpy: New file.
65300         * modules/unistr/u32-strcpy: New file.
65301         * lib/unistr/u8-strcpy.c: New file.
65302         * lib/unistr/u16-strcpy.c: New file.
65303         * lib/unistr/u32-strcpy.c: New file.
65304         * lib/unistr/u-strcpy.h: New file.
65305
65306         * modules/unistr/u8-strcspn: New file.
65307         * modules/unistr/u16-strcspn: New file.
65308         * modules/unistr/u32-strcspn: New file.
65309         * lib/unistr/u8-strcspn.c: New file.
65310         * lib/unistr/u16-strcspn.c: New file.
65311         * lib/unistr/u32-strcspn.c: New file.
65312         * lib/unistr/u-strcspn.h: New file.
65313
65314         * modules/unistr/u8-strdup: New file.
65315         * modules/unistr/u16-strdup: New file.
65316         * modules/unistr/u32-strdup: New file.
65317         * lib/unistr/u8-strdup.c: New file.
65318         * lib/unistr/u16-strdup.c: New file.
65319         * lib/unistr/u32-strdup.c: New file.
65320         * lib/unistr/u-strdup.h: New file.
65321
65322         * modules/unistr/u8-strlen: New file.
65323         * modules/unistr/u16-strlen: New file.
65324         * modules/unistr/u32-strlen: New file.
65325         * lib/unistr/u8-strlen.c: New file.
65326         * lib/unistr/u16-strlen.c: New file.
65327         * lib/unistr/u32-strlen.c: New file.
65328         * lib/unistr/u-strlen.h: New file.
65329
65330         * modules/unistr/u8-strmblen: New file.
65331         * modules/unistr/u16-strmblen: New file.
65332         * modules/unistr/u32-strmblen: New file.
65333         * lib/unistr/u8-strmblen.c: New file.
65334         * lib/unistr/u16-strmblen.c: New file.
65335         * lib/unistr/u32-strmblen.c: New file.
65336
65337         * modules/unistr/u8-strmbtouc: New file.
65338         * modules/unistr/u16-strmbtouc: New file.
65339         * modules/unistr/u32-strmbtouc: New file.
65340         * lib/unistr/u8-strmbtouc.c: New file.
65341         * lib/unistr/u16-strmbtouc.c: New file.
65342         * lib/unistr/u32-strmbtouc.c: New file.
65343
65344         * modules/unistr/u8-strncat: New file.
65345         * modules/unistr/u16-strncat: New file.
65346         * modules/unistr/u32-strncat: New file.
65347         * lib/unistr/u8-strncat.c: New file.
65348         * lib/unistr/u16-strncat.c: New file.
65349         * lib/unistr/u32-strncat.c: New file.
65350         * lib/unistr/u-strncat.h: New file.
65351
65352         * modules/unistr/u8-strncmp: New file.
65353         * modules/unistr/u16-strncmp: New file.
65354         * modules/unistr/u32-strncmp: New file.
65355         * lib/unistr/u8-strncmp.c: New file.
65356         * lib/unistr/u16-strncmp.c: New file.
65357         * lib/unistr/u32-strncmp.c: New file.
65358
65359         * modules/unistr/u8-strncpy: New file.
65360         * modules/unistr/u16-strncpy: New file.
65361         * modules/unistr/u32-strncpy: New file.
65362         * lib/unistr/u8-strncpy.c: New file.
65363         * lib/unistr/u16-strncpy.c: New file.
65364         * lib/unistr/u32-strncpy.c: New file.
65365         * lib/unistr/u-strncpy.h: New file.
65366
65367         * modules/unistr/u8-strnlen: New file.
65368         * modules/unistr/u16-strnlen: New file.
65369         * modules/unistr/u32-strnlen: New file.
65370         * lib/unistr/u8-strnlen.c: New file.
65371         * lib/unistr/u16-strnlen.c: New file.
65372         * lib/unistr/u32-strnlen.c: New file.
65373         * lib/unistr/u-strnlen.h: New file.
65374
65375         * modules/unistr/u8-strpbrk: New file.
65376         * modules/unistr/u16-strpbrk: New file.
65377         * modules/unistr/u32-strpbrk: New file.
65378         * lib/unistr/u8-strpbrk.c: New file.
65379         * lib/unistr/u16-strpbrk.c: New file.
65380         * lib/unistr/u32-strpbrk.c: New file.
65381         * lib/unistr/u-strpbrk.h: New file.
65382
65383         * modules/unistr/u8-strrchr: New file.
65384         * modules/unistr/u16-strrchr: New file.
65385         * modules/unistr/u32-strrchr: New file.
65386         * lib/unistr/u8-strrchr.c: New file.
65387         * lib/unistr/u16-strrchr.c: New file.
65388         * lib/unistr/u32-strrchr.c: New file.
65389
65390         * modules/unistr/u8-strspn: New file.
65391         * modules/unistr/u16-strspn: New file.
65392         * modules/unistr/u32-strspn: New file.
65393         * lib/unistr/u8-strspn.c: New file.
65394         * lib/unistr/u16-strspn.c: New file.
65395         * lib/unistr/u32-strspn.c: New file.
65396         * lib/unistr/u-strspn.h: New file.
65397
65398         * modules/unistr/u8-strstr: New file.
65399         * modules/unistr/u16-strstr: New file.
65400         * modules/unistr/u32-strstr: New file.
65401         * lib/unistr/u8-strstr.c: New file.
65402         * lib/unistr/u16-strstr.c: New file.
65403         * lib/unistr/u32-strstr.c: New file.
65404         * lib/unistr/u-strstr.h: New file.
65405
65406         * modules/unistr/u8-strtok: New file.
65407         * modules/unistr/u16-strtok: New file.
65408         * modules/unistr/u32-strtok: New file.
65409         * lib/unistr/u8-strtok.c: New file.
65410         * lib/unistr/u16-strtok.c: New file.
65411         * lib/unistr/u32-strtok.c: New file.
65412         * lib/unistr/u-strtok.h: New file.
65413
65414         * modules/unistr/u8-uctomb: New file.
65415         * modules/unistr/u16-uctomb: New file.
65416         * modules/unistr/u32-uctomb: New file.
65417         * lib/unistr/u8-uctomb.c: New file.
65418         * lib/unistr/u16-uctomb.c: New file.
65419         * lib/unistr/u32-uctomb.c: New file.
65420
65421         * MODULES.html.sh (Unicode string functions): Add the new modules.
65422
65423 2007-01-08  Bruno Haible  <bruno@clisp.org>
65424
65425         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65426         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65427         subdirectories.
65428
65429 2007-01-08  Karl Berry  <karl@gnu.org>
65430
65431         * doc/error.texi: mention that main() fns must set program_name
65432         when progname is used.
65433
65434 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65435
65436         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65437         WCTYPE_H is empty, for the benefit of builds from non-distclean
65438         directories.  Problem reported by Eric Blake in
65439         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65440
65441 2007-01-08  Bruno Haible  <bruno@clisp.org>
65442
65443         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65444         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65445         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65446         PROVIDE_CANONICALIZE_FILENAME_MODE.
65447         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65448
65449 2007-01-08  Bruno Haible  <bruno@clisp.org>
65450
65451         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65452         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65453         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65454         * lib/fts.c: Likewise.
65455         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65456
65457 2006-12-25  Bruno Haible  <bruno@clisp.org>
65458
65459         * modules/utf8-ucs4-safe: New file.
65460         * lib/utf8-ucs4-safe.h: New file.
65461         * lib/unistr/utf8-ucs4-safe.c: New file.
65462
65463         * modules/utf16-ucs4-safe: New file.
65464         * lib/utf16-ucs4-safe.h: New file.
65465         * lib/unistr/utf16-ucs4-safe.c: New file.
65466
65467         * MODULES.html.sh (Unicode string functions): Add the new modules.
65468
65469 2007-01-08  Bruno Haible  <bruno@clisp.org>
65470
65471         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65472         (Depends-on): Add unitypes.
65473         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65474         (u8_mbtouc_aux): Move out to separate file.
65475         (u8_mbtouc): Use ucs4_t, uint8_t types.
65476         * lib/unistr/utf8-ucs4.c: New file.
65477
65478         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65479         (Depends-on): Add unitypes.
65480         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65481         (u16_mbtouc_aux): Move out to separate file.
65482         (u16_mbtouc): Use ucs4_t, uint16_t types.
65483         * lib/unistr/utf16-ucs4.c: New file.
65484
65485         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65486         (Depends-on): Add unitypes.
65487         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65488         (u8_uctomb_aux): Move out to separate file.
65489         (u8_uctomb): Use ucs4_t, uint8_t types.
65490         * lib/unistr/ucs4-utf8.c: New file.
65491
65492         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65493         (Depends-on): Add unitypes.
65494         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65495         (u16_uctomb_aux): Move out to separate file.
65496         (u16_uctomb): Use ucs4_t, uint16_t types.
65497         * lib/unistr/ucs4-utf16.c: New file.
65498
65499 2006-12-25  Bruno Haible  <bruno@clisp.org>
65500
65501         * modules/unitypes: New file.
65502         * lib/unitypes.h: New file.
65503         * MODULES.html.sh (func_all_modules): New section "Unicode string
65504         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65505         this section. Add unitypes.
65506
65507 2007-01-08  Bruno Haible  <bruno@clisp.org>
65508
65509         Avoid variable names that conflict with those from libtool.
65510         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65511         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65512         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65513         library_names_spec to acl_library_names_spec, hardcode_* to
65514         acl_hardcode_*.
65515         Reported by Ralf Wildenhues.
65516
65517 2007-01-08  Bruno Haible  <bruno@clisp.org>
65518
65519         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65520         definition.
65521         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65522         definition.
65523         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65524         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65525         definition.
65526         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65527         definition.
65528         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65529         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65530         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65531         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65532         definition.
65533         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65534         definition.
65535         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65536         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65537         GC_USE_<algorithm>.
65538         * lib/gc-libgcrypt.c: Likewise.
65539         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65540         * modules/gc-arctwo (configure.ac): Likewise.
65541         * modules/gc-des (configure.ac): Likewise.
65542         * modules/gc-hmac-md5 (configure.ac): Likewise.
65543         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65544         * modules/gc-md2 (configure.ac): Likewise.
65545         * modules/gc-md4 (configure.ac): Likewise.
65546         * modules/gc-md5 (configure.ac): Likewise.
65547         * modules/gc-random (configure.ac): Likewise.
65548         * modules/gc-rijndael (configure.ac): Likewise.
65549         * modules/gc-sha1 (configure.ac): Likewise.
65550
65551 2007-01-08  Bruno Haible  <bruno@clisp.org>
65552
65553         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65554         macro definition.
65555         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65556         definition.
65557         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65558         definition.
65559         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65560         * modules/fcntl-safer (configure.ac): Likewise.
65561         * modules/fopen-safer (configure.ac): Likewise.
65562         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65563         GNULIB_FWRITEERROR macro definition.
65564
65565 2007-01-08  Bruno Haible  <bruno@clisp.org>
65566
65567         * m4/gnulib-common.m4: New file.
65568         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65569         (func_get_filelist): Add m4/gnulib-common.m4.
65570
65571 2007-01-08  Bruno Haible  <bruno@clisp.org>
65572
65573         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65574         command.
65575
65576 2007-01-08  Jim Meyering  <jim@meyering.net>
65577
65578         Use a more robust test for a "can't happen" condition.
65579         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65580         narrowed the st_size value.  Presuming the "can't happen" condition
65581         is true, that narrowing could conceivably convert an invalid st_size
65582         value into a valid one.  Instead, use a change based on Matthew
65583         Woehlke's original patch.
65584
65585         Slight readability improvement: use an assert-like macro
65586         in place of literal "abort ()" uses.
65587         * lib/fts.c (fts_assert): Define.
65588         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65589         Use this macro instead of a bare 'abort'.
65590
65591 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65592
65593         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65594         simply work around them.
65595         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65596         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65597         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65598         declaring.
65599         Don't bother to define as macros, since the standard doesn't require it.
65600         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65601         longer worry about IRIX 5.3.
65602         (HAVE_WCTYPE_CTMP_BUG): Remove.
65603
65604 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65605
65606         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65607         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65608         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65609         Problems reported by Georg Schwarz for IRIX 5.3.
65610
65611         * gnulib-tool (autoconf_minversion): Take the maximum version number
65612         found, not the minimum.  Problem reported by James Youngman.
65613
65614 2007-01-03  Karl Berry  <karl@gnu.org>
65615
65616         * doc/error.texi: new file, explaining interaction with progname.
65617         * doc/gnulib.texi: include it.  Update copyright.
65618
65619 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65620
65621         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65622         AC_CANONICAL_HOST, to improve autobuild outputs.
65623
65624 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65625             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65626
65627         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65628         sockets, server sockets, and other file descriptors.  Count errors
65629         to compute the return value.  Reorder the code a bit to be easier
65630         to follow.  Don't set event bits that were not requested (except
65631         POLLERR and POLLHUP).
65632
65633 2007-01-01  Bruno Haible  <bruno@clisp.org>
65634
65635         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65636
65637 2007-01-03  Jim Meyering  <jim@meyering.net>
65638
65639         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65640
65641 2007-01-02  Bruno Haible  <bruno@clisp.org>
65642
65643         * modules/settime (Include): Require timespec.h.
65644         * modules/nanosleep (Include): Likewise.
65645
65646 2007-01-01  Bruno Haible  <bruno@clisp.org>
65647
65648         * gnulib-tool (func_emit_copyright_notice): Bump year.
65649         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65650
65651 2007-01-01  Bruno Haible  <bruno@clisp.org>
65652
65653         Improve support for OpenBSD.
65654         * build-aux/config.rpath (libname_spec): Export.
65655         (library_names_spec): New variable. Export.
65656         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65657         library_names_spec from the config.rpath output. Locate shared library
65658         through the name pattern in library_names_spec.
65659
65660 2007-01-01  Eric Blake  <ebb9@byu.net>
65661
65662         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65663
65664 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65665
65666         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65667         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65668         assume the C locale, and avoid an "eval" that could cause trouble.
65669         Problem with SORT reported by Bob Proulx.
65670
65671         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65672         Define.  Trivial patch from Henning Nielsen Lund, originally
65673         sent to bug-grep@gnu.org today.
65674
65675 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65676
65677         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65678         struct stat.  Problem reported by Henning Nielsen Lund.
65679         * lib/acl.c: Include acl.h first, to check interface.  Don't
65680         bother to include sys/types.h and sys/stat.h again.
65681
65682 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65683
65684         Import the following change from libc; problem reported by
65685         Sven Verdoolaege.
65686
65687         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65688
65689         [BZ #1373]
65690         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65691
65692 2006-12-28  Jim Meyering  <jim@meyering.net>
65693
65694         * build-aux/announce-gen: Do not assume that the package
65695         builds any of tar.gz, tar.bz2, and .xdelta files.
65696         Suggestion from Simon Josefsson.
65697
65698 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65699
65700         * modules/announce-gen: New file.
65701
65702 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65703
65704         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65705         handles its gotchas now.
65706         * lib/mbswidth.c: Likewise.
65707         * lib/wcwidth.h: Likewise.
65708         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65709         and iswcntrl; the wctype module does this stuff now.
65710         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65712         * modules/mbchar (Depends-on): Add wctype.
65713         * modules/mbswidth (Depends-on): Likewise.
65714         * modules/wcwidth (Depends-on): Likewise.
65715
65716 2006-12-27  Eric Blake  <ebb9@byu.net>
65717
65718         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65719         module uses more than what <wctype.h> is required to provide.
65720
65721 2006-12-26  Eric Blake  <ebb9@byu.net>
65722
65723         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65724
65725 2006-12-26  Eric Blake  <ebb9@byu.net>
65726
65727         * modules/absolute-header: New module.
65728         * modules/fcntl (Depends-on): Depend on it.
65729         * modules/inttypes (Depends-on): Likewise.
65730         * modules/stdint (Depends-on): Likewise.
65731         * modules/sys_stat (Depends-on): Likewise.
65732         * modules/wctype (Depends-on): Likewise.
65733         * MODULES.html.sh (Support for building libraries and
65734         executables): Document it.
65735
65736 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65737
65738         * gnulib-tool (SED): Remove, undoing previous change.
65739         The problem was that it broke coreutils on Solaris, because
65740         "sed --posix" leaked into a makefile.
65741         (sed): New alias, if 'alias' and GNU sed.
65742
65743 2006-12-24  Jim Meyering  <jim@meyering.net>
65744
65745         Work around an fchownat bug in glibc-2.4:
65746         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65747         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65748         in spite of the -P option.
65749         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65750         New macros.
65751         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65752         * modules/openat (Files): Add lib/fchownat.c.
65753         * lib/openat.c (fchownat): Don't define here.  Move to...
65754         * lib/fchownat.c: ...this new file.
65755
65756 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65757
65758         Fix bug reported by Bruno Haible in
65759         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65760         where quotearg.c didn't compile on Mac OS X 10.2 because it
65761         lacks <wchar.h> and wint_t.
65762         * lib/wctype_.h (__wctype_wint_t): New type.
65763         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65764         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65765         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65766         Arg is now of type __wctype_wint_t, not wint_t.
65767         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65768         substitute HAVE_WINT_T.
65769         * modules/wctype (Files): Add m4/wint_t.m4.
65770         (wctype.h): Substitute HAVE_WINT_T.
65771
65772 2006-12-23  Bruno Haible  <bruno@clisp.org>
65773
65774         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65775
65776 2006-12-23  Bruno Haible  <bruno@clisp.org>
65777
65778         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65779         S_ISLNK.
65780         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65781         mingw.
65782
65783 2006-12-22  Bruno Haible  <bruno@clisp.org>
65784
65785         * lib/copy-file.c: Include acl.h.
65786         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65787         Close the file descriptors only after being done with copy_acl.
65788         * modules/copy-file (Depends-on): Add acl.
65789
65790 2006-12-22  Bruno Haible  <bruno@clisp.org>
65791
65792         * gnulib-tool (SED): New variable.
65793         Use $SED instead of sed everywhere.
65794
65795 2006-12-22  Bruno Haible  <bruno@clisp.org>
65796
65797         * modules/no-c++: New file.
65798         * m4/no-c++.m4: New file.
65799         * MODULES.html.sh (Support for building libraries and executables):
65800         Add no-c++.
65801
65802 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65803
65804         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65805         Include <limits.h>, and use its INT_MAX to rewrite the
65806         j loop so that it does not overflow 'int'.  Problem reported by
65807         Ralf Wildenhues in
65808         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65809         Play it safe by shifting left by 1 rather than multiplying by 2,
65810         as GCC is less likely to optimize this away when the value
65811         is signed (when it assumes overflow leads to undefined behavior).
65812         Also, don't assume time_t uses two's complement.
65813
65814 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65815
65816         * MODULES.html.sh: New module wctype.
65817         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65818         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65819         <wctype.h>, since the new wctype module should fix this.
65820         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65821         the wctype module should arrange for it.
65822         * lib/regex_internal.h: Likewise.
65823         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65824         since the wctype module should handle this now.
65825         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65826         * modules/fnmatch (Depends-on): Add wctype.
65827         * modules/quotearg (Depends-on): Likewise.
65828         * modules/regex (Depends-on): Likewise.
65829
65830 2006-12-19  Bruno Haible  <bruno@clisp.org>
65831
65832         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65833         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65834
65835 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65836
65837         * modules/savewd (Depends-on): Fix dependency on fcntl.
65838
65839 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65840
65841         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65842         conforms to C99, rather than relying on the user's environment
65843         setting of STDINT_H.
65844
65845 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65846         and Eric Blake  <ebb9@byu.net>
65847
65848         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65849         This is more consistent with the other defines here.
65850         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65851         Port to z/OS.  Problem reported by Paul Gilmartin.
65852         Change local vars to use gl_ prefix rather than ac_.
65853         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65854         with other defines.
65855         * modules/double-slash-root: New module.
65856         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65857         (Depends-on): Add double-slash-root.
65858         * MODULES.html.sh (File system functions): Mention new module.
65859
65860 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65861
65862         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65863         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65864         This is for the benefit of gzip, which doesn't do i18n.
65865
65866 2006-12-12  Jim Meyering  <jim@meyering.net>
65867
65868         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65869         Reported by Andreas Schwab <schwab@suse.de>.
65870
65871 2006-12-12  Bruno Haible  <bruno@clisp.org>
65872
65873         Merge these changes.
65874         2006-09-05  Bruno Haible  <bruno@clisp.org>
65875         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65876         iconv_alloc succeeded.
65877         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65878         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65879         test for " && dest " at the end - dest is always != NULL there. Call
65880         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65881         with 2xNULL arguments, also to flush the state storage. Handle the
65882         IRIX iconv behaviour. Realloc the final result, to throw away unused
65883         memory.
65884
65885 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65886
65887         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65888         and fchmodat unconditionally, since glibc 2.4 has them.
65889         Problem reported by Arkadiusz Miskiewicz.
65890
65891 2006-12-10  Bruno Haible  <bruno@clisp.org>
65892
65893         * gnulib-tool (func_import): Show the include files only for those
65894         modules that are copied and specified.
65895         Reported by Karl Berry.
65896
65897 2006-12-08  Jim Meyering  <jim@meyering.net>
65898
65899         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65900         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65901
65902         * build-aux/announce-gen: Add two new options, both optional:
65903         --bootstrap-tools=TOOL_LIST
65904               a comma-separated list of tools, e.g.,
65905               autoconf,automake,bison,gnulib
65906         --gnulib-snapshot-date=DATE
65907               if gnulib is in the bootstrap tool list,
65908               then report this as the snapshot date.
65909               If not specified, use the current date/time.
65910               If you specify a date here, be sure it's UTC.
65911
65912 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65913
65914         * tests/test-argp-2.sh: Fix test to match actual output.
65915         (func_compare): Fix sed script to be portable.
65916
65917 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65918
65919         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65920         workaround for this case.  It is not autoconfigured now; offhand
65921         it's hard to see how to autoconfigure it.
65922
65923 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65924
65925         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65926         a directory that is about to be chowned.  Such a directory's
65927         initial file permissions should permit the owner only and this
65928         should not be changed until after the chown, since the group and
65929         other bits would be incorrect if they granted permission before
65930         the chown.
65931
65932         Fix porting problem for iswctype reported by Georg Schwarz in:
65933         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65934         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65935         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65936         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65937         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65938
65939 2006-12-03  Jim Meyering  <jim@meyering.net>
65940
65941         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65942         p->fts_statp may not yet be defined.
65943         (fts_read): Instead, set it in the caller, once p->fts_statp is
65944         sure to be defined, and corresponds to a top-level directory.
65945         This bug made du -x fail.  Here's the coreutils test case:
65946         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65947         Reported by Mike Frysinger.
65948
65949 2006-12-01  Jim Meyering  <jim@meyering.net>
65950
65951         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65952         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65953         Reported by Simon Josefsson.
65954
65955 2006-11-30  Jim Meyering  <jim@meyering.net>
65956
65957         * m4/warning.m4: Use the all-permissive copyright notice
65958         recommended by RMS (rather than LGPL).
65959         * m4/vararrays.m4: Likewise.
65960         * m4/flexmember.m4: Likewise.
65961
65962 2006-11-29  Bruno Haible  <bruno@clisp.org>
65963
65964         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65965         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65966         using +=.
65967         Reported by Simon Josefsson <simon@josefsson.org>.
65968
65969 2006-11-28  James Youngman <jay@gnu.org>
65970
65971         * README: Advise users that they might find the bug-gnulib@gnu.org
65972         and autotools-announce@gnu.org mailing lists useful.
65973
65974 2006-11-28  Bruno Haible  <bruno@clisp.org>
65975
65976         * m4/ptrdiff_max.m4: Remove file.
65977
65978 2006-11-21  Bruno Haible  <bruno@clisp.org>
65979
65980         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65981         _AC_COMPUTE_INT.
65982         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65983         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65984         _AC_COMPUTE_INT.
65985         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65986         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65987         _AC_COMPUTE_INT.
65988         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65989
65990 2006-11-28  Jim Meyering  <jim@meyering.net>
65991
65992         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65993         warning from "gcc -Wshadow" about shadowing the builtin.
65994
65995 2006-11-27  Bruno Haible  <bruno@clisp.org>
65996
65997         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65998         _AC_COMPUTE_INT.
65999         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66000
66001 2006-11-27  Bruno Haible  <bruno@clisp.org>
66002             Paul Eggert  <eggert@cs.ucla.edu>
66003
66004         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66005
66006 2006-11-26  Bruno Haible  <bruno@clisp.org>
66007
66008         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66009         noinst_LTLIBRARIES.
66010
66011 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66012             Bruno Haible  <bruno@clisp.org>
66013
66014         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66015         if compiling with "gcc -ansi".
66016
66017 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66018
66019         Fix some incompatibilities with gcc -ansi -pedantic.
66020         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66021         if compiling pedantically with GCC, unless it's C99 or later.
66022         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66023         it mishandles gcc -ansi -pedantic as well.
66024         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66025         if gcc -pedantic.
66026         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66027         initializers for struct if -pedantic, unless it's C99 or later.
66028
66029 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66030
66031         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66032         Don't close an fd more than once. Identical atimes indicate
66033         success, not failure.
66034
66035 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66036
66037         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66038
66039 2006-11-23  Jim Meyering  <jim@meyering.net>
66040
66041         * build-aux/announce-gen: New file.  From coreutils.
66042
66043 2006-11-22  Jim Meyering  <jim@meyering.net>
66044
66045         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66046         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66047         (fts_read): Use a temporary to narrow the overused st_size member
66048         before using it in a switch statement.  Reported by Matthew Woehlke.
66049
66050         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66051         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66052
66053 2006-11-20  Bruno Haible  <bruno@clisp.org>
66054
66055         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66056         changequote instead of pairs of brackets.
66057         Reported by Andreas Schwab <schwab@suse.de>.
66058
66059 2006-11-21  Jim Meyering  <jim@meyering.net>
66060
66061         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66062         so as to remain compatible with older compilers.
66063         Patch from Michael Deutschmann.
66064
66065 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66066
66067         * MODULES.html.sh (File system functions): Add openat.
66068
66069         * lib/openat.h (rpl_fstatat): New macro, if
66070         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66071         (fstatat): Define to rpl_fstatat under the same conditions,
66072         unless COMPILING_FSTATAT.
66073         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66074         seems to have the bug.
66075         * lib/fstatat.c: New file.
66076         * modules/openat (Files): Add it.
66077
66078 2006-11-20  Bruno Haible  <bruno@clisp.org>
66079
66080         * Makefile: New file.
66081
66082 2006-11-20  Jim Meyering  <jim@meyering.net>
66083
66084         The beginnings of syntax-related checks for gnulib.
66085         * lib/Makefile: New file.
66086         * lib/t-idcache: New script.  Ensure that the two halves of
66087         idcache.c stay in sync.
66088
66089         * lib/idcache.c: Adjust comments in user- and group- portions to
66090         be more accurate, and to be consistent with one another.
66091
66092 2006-11-20  Jim Meyering  <jim@meyering.net>
66093
66094         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66095         continue using the flexible array member (thus, this module performs
66096         half as many malloc calls), with the addition that...
66097         (getgroup, getuser): Consistently record a non-match via an empty
66098         "name" string, and map an empty string match to a NULL return value.
66099         * modules/idcache (Depends-on): Re-add flexmember.
66100
66101         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66102         (getuidbyname, getgroup, getgidbyname): Likewise.
66103
66104         Use cleaner syntax: NULL rather than 0.
66105         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66106
66107 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66108
66109         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66110         It mishandled the case where the group was missing.
66111         Problem reported by Greg Schafer.
66112         * modules/idcache: Likewise.
66113
66114 2006-11-18  Jim Meyering  <jim@meyering.net>
66115
66116         * check-module (%exempt_header): Add exception for some
66117         conditionally-included headers.
66118
66119         * modules/i-ring (Depends-on): Add verify.
66120         (License): Change to LGPL.
66121
66122 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66123
66124         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66125         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66126         and inttostr.h.  Use snprintf rather than uinttostr, so that
66127         LGPLed code doesn't depend on GPLed.
66128
66129 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66130
66131         * modules/inline (License): Change from GPL to LGPL.
66132
66133 2006-11-17  Jim Meyering  <jim@meyering.net>
66134
66135         * modules/d-type (License): Switch to LGPL.
66136
66137 2006-11-15  Bruno Haible  <bruno@clisp.org>
66138
66139         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66140
66141 2006-11-15  Eric Blake  <ebb9@byu.net>
66142
66143         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66144         the module dependency.
66145
66146 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66147             Bruno Haible  <bruno@clisp.org>
66148
66149         * gnulib-tool (func_create_testdir): Add license consistency check.
66150
66151 2006-11-15  Eric Blake  <ebb9@byu.net>
66152
66153         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66154         random "(cached)" in configure output.
66155
66156 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66157
66158         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66159         test for conforming inttypes.h is both announced and cached.
66160
66161         * MODULES.html.sh (seen_modules, seen_files): New variables.
66162         (func_module): Rewrite to use a few less gnulib-tool and sed
66163         invocations.  Avoid a couple of quadratic algorithms for ...
66164         (missed_modules, missed_files): ... these, with ...
66165         (func_append, func_tmpdir): ... these new functions, from
66166         gnulib-tool.  Analogously, install traps for cleanup.
66167
66168         * tests/test-gc.c (main): Remove unused variables.
66169         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66170
66171 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66172
66173         * modules/inttostr (License): Change to LGPL.
66174
66175 2006-11-14  Eric Blake  <ebb9@byu.net>
66176
66177         * modules/tempname (License): Change to LGPL.
66178
66179 2006-11-14  Eric Blake  <ebb9@byu.net>
66180
66181         * doc/functions.texi (Function Portability): *printf functions on
66182         Cygwin now understand all POSIX size specifiers.
66183
66184 2006-11-14  Bruno Haible  <bruno@clisp.org>
66185
66186         * modules/c-ctype (License): Change to LGPL.
66187
66188 2006-11-12  Bruno Haible  <bruno@clisp.org>
66189
66190         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66191         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66192         for GNOME libraries, for which the include files are installed in
66193         subdirectories of $prefix/include.
66194
66195 2006-11-12  Bruno Haible  <bruno@clisp.org>
66196
66197         * m4/lib-link.m4: Require at least autoconf-2.54.
66198         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66199         name to underscores for the --with option.
66200
66201 2006-11-13  Bruno Haible  <bruno@clisp.org>
66202
66203         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66204         the tests directory.
66205         Reported by Ralf Wildenhues.
66206
66207 2006-11-13  Bruno Haible  <bruno@clisp.org>
66208
66209         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66210         (func_emit_initmacro_end): Undo the override here.
66211         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66212         Works around the famous automake error in coreutils.
66213
66214 2006-11-13  Eric Blake  <ebb9@byu.net>
66215
66216         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66217         element, not its node.
66218
66219 2006-11-12  Bruno Haible  <bruno@clisp.org>
66220
66221         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66222         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66223
66224 2006-11-12  Bruno Haible  <bruno@clisp.org>
66225
66226         * gnulib-tool: New option --local-symlink.
66227         (func_usage): Document it.
66228         (lsymbolic): New variable.
66229         (func_import, func_create_testdir): If --symlink was not specified,
66230         test whether --local-symlink was specified and the file comes from
66231         the local_gnulib_dir.
66232
66233 2006-11-12  Bruno Haible  <bruno@clisp.org>
66234
66235         * gnulib-tool (func_ln): New function.
66236         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66237
66238 2006-11-12  Bruno Haible  <bruno@clisp.org>
66239
66240         Finish support for source files in subdirectories.
66241         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66242         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66243         AUTOMAKE_OPTIONS.
66244         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66245
66246 2006-11-12  Bruno Haible  <bruno@clisp.org>
66247
66248         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66249         EXTRA_lib_SOURCES augmentation.
66250         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66251
66252 2006-11-12  Jim Meyering  <jim@meyering.net>
66253
66254         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66255         file descriptors.  This also averts a failure on systems with
66256         native openat support when a traversed directory lacks "x" access.
66257         * lib/fts_.h: Include "i-ring.h"
66258         (struct FTS) [fts_fd_ring]: New member.
66259         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66260         (FCHDIR): Add parentheses.
66261         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66262         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66263         When descending, rather than simply closing the previous
66264         fts_cwd_fd value, push that file descriptor onto the ring.
66265         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66266         (fts_open): Initialize the new fd_ring member.
66267         (fts_close): Clear the ring.
66268         (fts_safe_changedir): When possible, use our new fd_ring to skip
66269         the diropen and fstat and dev/ino comparison that would normally
66270         accompany a virtual `chdir ("..")'.
66271
66272         * modules/fts (Depends-on): Add i-ring.
66273         * modules/i-ring: New module.
66274         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66275         * m4/i-ring.m4: New file.
66276
66277 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66278
66279         * gnulib-tool (func_create_testdir): Fix replacement of
66280         `build-aux' in configure.ac.  Run autotools in gltests
66281         subdirectory.
66282         (func_create_testdir, func_create_megatestdir, test): There is
66283         no need for '--force' in most autotool invocations in a new
66284         tree.  Actually fail the whole test if any of the tools, or the
66285         configure or make stages fail.
66286
66287         Sync from Automake.
66288         * build-aux/gnupload: Revert last change.  Add pointer to upload
66289         instructions of the GNU Maintenance Instructions.
66290         Suggestion by Karl Berry.
66291
66292 2006-11-10  Jim Meyering  <jim@meyering.net>
66293
66294         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66295
66296 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66297
66298         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66299         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66300         (bind_textdomain_codeset) [! ENABLE_NLS]:
66301         Evaluate all the arguments.  That way, callers get compatible behavior
66302         if the arguments have side effects.  Also, it avoids some GCC
66303         diagnostics in some cases; Joel E. Denny reported problems when Bison
66304         was configured with --enable-gcc-warnigs.
66305
66306 2006-11-10  Jim Meyering  <jim@meyering.net>
66307
66308         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66309         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66310         account.
66311
66312 2006-11-10  Jim Meyering  <jim@meyering.net>
66313
66314         * modules/inline: New file/module.
66315         * modules/xalloc (Files): Remove m4/inline.m4.
66316         (Depends-on): Add inline, instead.
66317         * modules/oset: Likewise.
66318         * modules/list: Likewise.
66319
66320 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66321
66322         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66323         Problem reported by Matthew Woehlke.
66324
66325 2006-11-09  Bruno Haible  <bruno@clisp.org>
66326
66327         * lib/tempname.c (gen_tempname): Remove variant that invokes
66328         __gen_tempname.
66329         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66330         __gen_tempname.
66331
66332 2006-11-08  Bruno Haible  <bruno@clisp.org>
66333
66334         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66335         to 'yes' instead of 'cross-compiling'.
66336
66337 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66338
66339         * lib/quotearg.h (quotearg_free): New decl.
66340         * lib/quotearg.c (quotearg_free): New function.
66341         (slot0, nslots, slotvec0, slotvec):
66342         Now file-scope so that quotearg_free can get at them.
66343
66344 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66345
66346         Sync from Automake.
66347         * build-aux/gnupload: Add missing 'gnu' to example URL.
66348         Report by Karl Berry.
66349
66350 2006-11-08  Bruno Haible  <bruno@clisp.org>
66351
66352         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66353         Suggested by Paul Eggert.
66354
66355 2006-11-08  Jim Meyering  <jim@meyering.net>
66356
66357         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66358         It's already included if !_LIBC.
66359         (fts_safe_changedir): Add a comment.
66360
66361 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66362
66363         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66364         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66365         Matthew Woehlke.
66366
66367         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66368         definitions up, to avoid colliding with change below.
66369         (static_inline) [HAVE_INLINE]: New macro.
66370         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66371         Provide extern decls when !HAVE_INLINE.  Do not define unless
66372         static_inline is defined, either by us or by xmalloc.c.  Use
66373         static_inline rather than static inline.
66374         (XCALLOC): Optimize sizeof(T) = 1 case.
66375         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66376
66377 2006-11-07  Bruno Haible  <bruno@clisp.org>
66378
66379         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66380         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66381         AC_C_INLINE.
66382         * modules/xalloc (Files): Add m4/inline.m4.
66383
66384 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66385
66386         * README: Fix typo.
66387         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66388         (Miscellanous Notes): ...from this.
66389
66390 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66391
66392         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66393         Mention that offsetof should be used instead of sizeof.
66394         From Bruno Haible.
66395
66396 2006-11-07  Bruno Haible  <bruno@clisp.org>
66397
66398         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66399
66400 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66401
66402         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66403         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66404         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66405         (gl_tree_add_before, gl_tree_add_after):
66406         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66407         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66408         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66409         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66410         (gl_linked_add_after, gl_linked_add_at): Likewise.
66411         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66412         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66413         (gl_tree_add_before, gl_tree_add_after): Likewise.
66414         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66415         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66416         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66417
66418 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66419
66420         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66421
66422 2006-11-06  Bruno Haible  <bruno@clisp.org>
66423
66424         * m4/inline.m4: New file.
66425         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66426         * modules/list (Files): Add m4/inline.m4.
66427         * modules/oset (Files): Likewise.
66428
66429 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66430
66431         * lib/idcache.c: Include <stddef.h>, for offsetof.
66432         (struct userid.name): Change from char * to a flexible array member.
66433         All uses changed.
66434         * modules/idcache (Depends-on): Add flexmember.
66435
66436         * MODULES.html.sh (Core language properties): New module flexmember.
66437         * modules/flexmember, m4/flexmember.m4: New files.
66438
66439         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66440         inline functions that are identical with the old xnmalloc_inline,
66441         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66442         that we can avoid some unnecessary integer multiplications and
66443         divisions in the common case where the element size is known at
66444         compile time.
66445         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66446         needed.
66447         (xnboundedmalloc): Remove.
66448         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66449         arguments, for consistency with rest of this header.
66450         (xcharalloc): Rewrite using XNMALLOC.
66451         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66452         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66453         versions have been moved to lib/xalloc.h and renamed to be the
66454         non-*_inline versions.
66455         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66456         and xnrealloc functions, since those functions are now inline and
66457         now call us.
66458         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66459         renaming described above.
66460         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66461         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66462         captures the dependency in AC_C_INLINE.
66463
66464         New module canonicalize-lgpl, proposed by Charles Wilson in
66465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66466         with a few small changes afterwards.
66467         * MODULES.html.sh (File system functions): New module
66468         canonicalize-lgpl.
66469         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66470         and canonicalize_file_name.
66471         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66472         * modules/canonicalize-lgpl: New files.
66473
66474 2006-11-05  Bruno Haible  <bruno@clisp.org>
66475
66476         * gnulib-tool (func_import, func_create_testdir): Create directories
66477         also for files in subdirectories of lib/.
66478
66479 2006-11-05  Bruno Haible  <bruno@clisp.org>
66480
66481         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66482         ANSI C compliant.
66483
66484 2006-11-03  Bruno Haible  <bruno@clisp.org>
66485
66486         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66487         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66488         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66489         (xnboundedmalloc): New inline function.
66490         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66491         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66492         xmalloc.
66493         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66494         xmalloc.
66495         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66496         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66497         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66498         xmalloc.
66499         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66500         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66501         xmalloc.
66502         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66503         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66504         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66505         xmalloc.
66506         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66507         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66508         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66509         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66510         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66511         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66512         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66513
66514 2006-11-03  Bruno Haible  <bruno@clisp.org>
66515
66516         * lib/c-ctype.h [C++]: Define functions without name mangling.
66517         * lib/fwriteerror.h [C++]: Likewise.
66518         * lib/gcd.h [C++]: Likewise.
66519         * lib/linebreak.h [C++]: Likewise.
66520
66521 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66522
66523         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66524         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66525         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66526         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66527         Check for functions and headers just once.
66528         Check for declaration of canonicalize_file_name.
66529         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66530
66531 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66532
66533         * gnulib-tool (func_import): Fix typo in actioncmd.
66534
66535 2006-11-02  Bruno Haible  <bruno@clisp.org>
66536
66537         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66538         newline sequence in the Makefile.am snippet as a space, like "make"
66539         does.
66540         Reported by Roger Persson <perrog@gmail.com>.
66541
66542 2006-11-01  Bruno Haible  <bruno@clisp.org>
66543
66544         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66545         already declared in <string.h>.
66546         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66547
66548 2006-11-01  Bruno Haible  <bruno@clisp.org>
66549
66550         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66551         * lib/strcase.h: Include <string.h>.
66552         (strcasecmp): Define to rpl_strcasecmp here.
66553
66554 2006-11-01  Bruno Haible  <bruno@clisp.org>
66555
66556         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66557
66558 2006-11-01  Eric Blake  <ebb9@byu.net>
66559
66560         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66561
66562         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66563
66564 2006-10-29  Bruno Haible  <bruno@clisp.org>
66565
66566         Make it compile in C++ mode.
66567         * lib/full-write.c (full_rw): Add a cast.
66568
66569 2006-11-01  Bruno Haible  <bruno@clisp.org>
66570
66571         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66572         be POSIX compliant.
66573         Reported by Roger Persson <perrog@gmail.com>.
66574
66575 2006-11-01  Eric Blake  <ebb9@byu.net>
66576
66577         * lib/getopt_.h: Fix comments.
66578
66579 2006-10-31  Eric Blake  <ebb9@byu.net>
66580
66581         * modules/tmpdir (Depends-on): Add sys_stat.
66582         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66583         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66584         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66585         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66586         tempname.
66587
66588 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66589
66590         Avoid some C++ diagnostics reported by Bruno Haible.
66591         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66592         xmalloc.
66593         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66594         (struct slotvec): Move to top level.
66595         (quotearg_n_options): Rewrite to avoid xmalloc.
66596         * lib/xalloc.h (xcharalloc): New function.
66597         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66598         [defined __cplusplus]: Add function template that provides result
66599         type propagation.  This part of the change is from Bruno Haible.
66600
66601 2006-10-29  Bruno Haible  <bruno@clisp.org>
66602
66603         Make it compile in C++ mode.
66604         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66605         * lib/strnlen1.c (strnlen1): Cast memchr result.
66606         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66607         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66608         (create_temp_dir): Rename local variable 'template'.
66609         (compile_csharp_using_sscli): Add cast.
66610         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66611         * lib/findprog.c (find_in_path): Likewise.
66612         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66613         * lib/wait-process.c (register_slave_subprocess): Likewise.
66614
66615 2006-10-22  Bruno Haible  <bruno@clisp.org>
66616
66617         * modules/tsearch: New file.
66618         * lib/tsearch.h: New file.
66619         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66620         * m4/tsearch.m4: New file.
66621         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66622
66623 2006-10-29  Eric Blake  <ebb9@byu.net>
66624
66625         * lib/arcfour.c: Assume config.h.
66626         * lib/arctwo.c: Likewise.
66627         * lib/base64.c: Likewise.
66628         * lib/check-version.c: Likewise.
66629         * lib/crc.c: Likewise.
66630         * lib/des.c: Likewise.
66631         * lib/gc-gnulib.c: Likewise.
66632         * lib/gc-libgcrypt.c: Likewise.
66633         * lib/gc-pbkdf2-sha1.c: Likewise.
66634         * lib/getaddrinfo.c: Likewise.
66635         * lib/getdelim.c: Likewise.
66636         * lib/getline.c: Likewise.
66637         * lib/hmac-md5.c: Likewise.
66638         * lib/hmac-sha1.c: Likewise.
66639         * lib/iconvme.c: Likewise.
66640         * lib/md2.c: Likewise.
66641         * lib/md4.c: Likewise.
66642         * lib/memxor.c: Likewise.
66643         * lib/read-file.c: Likewise.
66644         * lib/readline.c: Likewise.
66645         * lib/rijndael-alg-fst.c: Likewise.
66646         * lib/rijndael-api-fst.c: Likewise.
66647         * lib/xgetdomainname.c: Likewise.
66648
66649 2006-10-28  Eric Blake  <ebb9@byu.net>
66650
66651         * lib/xstrndup.c: Assume config.h.
66652
66653 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66654
66655         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66656         stat-macros.h is now for our own macros, whereas stat_h is for
66657         macros in the <sys/stat.h> name space.
66658         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66659         (STAT_MACROS_H): Remove.
66660         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66661         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66662         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66663         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66664         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66665         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66666         Move these macros to ...
66667         * lib/stat_.h: here.  Don't include stat-macros.h.
66668         * lib/canonicalize.c: Don't include stat-macros.h.
66669         * lib/chown.c: Likewise.
66670         * lib/euidaccess.c: Likewise.
66671         * lib/file-type.c: Likewise.
66672         * lib/filemode.c: Likewise.
66673         * lib/glob.c: Likewise.
66674         * lib/isapipe.c: Likewise.
66675         * lib/lchown.c: Likewise.
66676         * lib/lstat.c: Likewise.
66677         * lib/mkdir-p.c: Likewise.
66678         * lib/rmdir.c: Likewise.
66679         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66680         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66681         unless mkdir isn't declared, to speed up 'configure'.
66682         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66683         would define all the S_* symbols.
66684         * modules/canonicalize (Depends-on):
66685         Depend on sys_stat, not stat-macros.
66686         * modules/chown: Likewise.
66687         * modules/euidaccess: Likewise.
66688         * modules/filemode: Likewise.
66689         * modules/file-type: Likewise.
66690         * modules/glob: Likewise.
66691         * modules/isapipe: Likewise.
66692         * modules/lchown: Likewise.
66693         * modules/lstat: Likewise.
66694         * modules/mkancesdirs: Likewise.
66695         * modules/rmdir: Likewise.
66696         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66697         * modules/modechange: Likewise.
66698         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66699         (configure.ac): Remove gl_STAT_MACROS.
66700         * modules/sys_stat (Depends-on): Remove stat-macros.
66701
66702 2006-10-27  Bruno Haible  <bruno@clisp.org>
66703
66704         * m4/signed.m4: Remove file.
66705         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66706         invocation.
66707         * modules/vasnprintf (Files): Remove m4/signed.m4.
66708
66709 2006-10-27  Bruno Haible  <bruno@clisp.org>
66710
66711         Update to GNU gettext 0.16.
66712         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66713         m4/inttypes-h.m4, m4/signed.m4.
66714         * m4/gettext.m4: Update to GNU gettext 0.16.
66715         * m4/intl.m4: New file, from GNU gettext.
66716         * m4/intldir.m4: New file, from GNU gettext.
66717         * config/srclist.txt: Update
66718
66719 2006-10-27  Eric Blake  <ebb9@byu.net>
66720
66721         * MODULES.html.sh: Document tempname.
66722         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66723         dependencies.
66724         (Files): Move lib/tempname.c...
66725         * modules/tempname: ...to this new module.
66726         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66727         (gl_PREREQ_TEMPNAME): Move...
66728         * m4/tempname.m4: ...to this new file.
66729         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66730         * modules/sys_stat (Depends-on): Add stat-macros.
66731         * lib/stat_.h (includes): Pick up stat macros.
66732         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66733         if stat macros are broken.
66734         * lib/tempname.c (includes): No need to include "stat-macros.h".
66735         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66736         (direxists, __path_search) [!_LIBC]: Don't compile these in
66737         gnulib; the tmpdir module covers that.
66738         * lib/tempname.h: New file.
66739
66740 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66741
66742         * COPYING: Explain how gnulib-tool converts licence headers.
66743         Almost all wording by Eric Blake.
66744
66745 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66746
66747         * lib/mbchar.h (is_basic_table): Make read-only.
66748         * lib/mbchar.c (is_basic_table): Likewise.
66749         Reported by John Darrington.
66750
66751 2006-10-25  Bruno Haible  <bruno@clisp.org>
66752
66753         * lib/progname.h (set_program_name): Undefine before defining.
66754
66755 2006-10-25  Bruno Haible  <bruno@clisp.org>
66756
66757         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66758         false for non-gcc C++ compilers.
66759         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66760
66761 2006-10-24  Bruno Haible  <bruno@clisp.org>
66762
66763         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66764         iconv implementations like Irix iconv.
66765
66766 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66767
66768         * modules/vararrays: New file.
66769         * m4/vararrays.m4: New file, taken from diffutils.
66770         * MODULES.html.sh: New module vararrays.
66771
66772 2006-10-24  Karl Berry  <karl@gnu.org>
66773
66774         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66775         Don't call GNU Unix.
66776
66777 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66778
66779         * users.txt: Add Libtool.
66780
66781         Sync from Libtool:
66782
66783         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66784
66785         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66786         to gnulib's policy of including config.h unconditionally.
66787
66788 2006-10-24  Bruno Haible  <bruno@clisp.org>
66789
66790         * modules/wcwidth (Files): Add m4/wint_t.m4.
66791         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66792         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66793
66794 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66795
66796         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66797         to pacify GCC with some -W flags enabled.  Problem reported by
66798         Bruno Haible.
66799
66800 2006-10-24  Jim Meyering  <jim@meyering.net>
66801
66802         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66803         Reported by Karl Berry.
66804
66805 2006-10-23  Bruno Haible  <bruno@clisp.org>
66806
66807         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66808
66809 2006-10-24  Bruno Haible  <bruno@clisp.org>
66810
66811         * lib/gl_list.h: Use C comment style, not C++ comment style.
66812
66813 2006-10-23  Eric Blake  <ebb9@byu.net>
66814
66815         * lib/getaddrinfo.c (includes): Add missing include.
66816
66817 2006-10-23  Bruno Haible  <bruno@clisp.org>
66818             Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         Ability to rename obstack_free.
66821         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66822         obstack_free.
66823         (obstack_free): Invoke the __obstack_free macro.
66824         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66825
66826 2006-10-23  Bruno Haible  <bruno@clisp.org>
66827             Paul Eggert  <eggert@cs.ucla.edu>
66828
66829         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66830         __argc, __argv from the declaration. (They are defined as macros on
66831         mingw.)
66832
66833 2006-10-22  Bruno Haible  <bruno@clisp.org>
66834
66835         * doc/gnulib-intro.texi: New file.
66836         * doc/gnulib.texi: Include it.
66837
66838 2006-10-21  Bruno Haible  <bruno@clisp.org>
66839
66840         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66841         "Introduction", "Miscellanous Notes", "Particular Modules".
66842
66843 2006-10-21  Bruno Haible  <bruno@clisp.org>
66844
66845         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66846         Change mostlyclean-local rule to avoid sh syntax error from bash
66847         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66848
66849 2006-10-23  Jim Meyering  <jim@meyering.net>
66850
66851         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66852         in place of snprintf.
66853
66854         * modules/inttostr (Files): Add lib/uinttostr.c.
66855         * lib/uinttostr.c (inttostr): New file/function.
66856         * lib/inttostr.h (uinttostr): Declare.
66857         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66858         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66859         Add uinttostr.
66860         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66861
66862 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66863
66864         * lib/canonicalize.c (ELOOP): Define if not already defined.
66865         Problem reported by Bruno Haible in
66866         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66867
66868 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66869
66870         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66871         Problem reported by Perry Smith and Ville Laurikari.
66872
66873         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66874         uses.
66875
66876 2006-10-19  Bruno Haible  <bruno@clisp.org>
66877
66878         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66879         for mingw.
66880
66881 2006-10-19  Bruno Haible  <bruno@clisp.org>
66882
66883         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66884         Needed for mingw.
66885
66886 2006-10-19  Bruno Haible  <bruno@clisp.org>
66887
66888         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66889
66890 2006-10-19  Bruno Haible  <bruno@clisp.org>
66891
66892         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66893         it.
66894
66895 2006-10-19  Bruno Haible  <bruno@clisp.org>
66896
66897         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66898         invocation.
66899
66900 2006-10-19  Bruno Haible  <bruno@clisp.org>
66901
66902         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66903         mountlist by default.
66904
66905 2006-10-16  Bruno Haible  <bruno@clisp.org>
66906
66907         * lib/c-strstr.c: Include c-strstr.h.
66908
66909 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66910
66911         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66912         in a slash.
66913
66914 2006-10-18  Bruno Haible  <bruno@clisp.org>
66915
66916         * lib/lock.h [C++]: Wrap definitions in extern "C".
66917
66918 2006-10-18  Bruno Haible  <bruno@clisp.org>
66919
66920         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66921         gl_LIBOBJS list.
66922
66923 2006-10-18  Bruno Haible  <bruno@clisp.org>
66924
66925         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66926
66927 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66928
66929         * lib/xstrtol.h: Include gettext.h.
66930         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66931         Problem reported by Eric Blake.
66932         * modules/xstrtol (Depends-on): Add gettext-h.
66933
66934 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66935
66936         * lib/strftime.c (advance): New macro.
66937         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66938         incomplete type, so you can't add 0 to it.  Problem and patch
66939         reported by Eelco Dolstra for dietlibc.
66940
66941 2006-10-18  Jim Meyering  <jim@meyering.net>
66942
66943         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66944         type for a local, and rename it: s/up/user_proc/.
66945
66946 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66947
66948         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66949         READ_UTMP_USER_PROCESS.
66950         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66951
66952 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66953
66954         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66955         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66956
66957 2006-10-17  Eric Blake  <ebb9@byu.net>
66958
66959         * lib/sigprocmask.c (sigprocmask): Fix typo.
66960
66961         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66962
66963         * modules/clean-temp (Makefile.am): Don't add to make output...
66964         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66965         config.h.
66966
66967 2006-10-17  Bruno Haible  <bruno@clisp.org>
66968
66969         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66970         differently if DEFAULT_TEXT_DOMAIN is set.
66971
66972 2006-10-16  Bruno Haible  <bruno@clisp.org>
66973
66974         * lib/clean-temp.c: Include fwriteerror.h.
66975
66976 2006-10-16  Bruno Haible  <bruno@clisp.org>
66977
66978         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66979
66980 2006-10-16  Bruno Haible  <bruno@clisp.org>
66981
66982         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66983         * lib/sigprocmask.h: Include <sys/types.h>.
66984         (sigset_t): Use the system's definition if present.
66985
66986 2006-10-17  Eric Blake  <ebb9@byu.net>
66987
66988         * lib/xvasprintf.c (includes): Assume config.h.
66989         * lib/xasprintf.c (includes): Likewise.
66990
66991 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66992
66993         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66994         at least as wide as intmax_t.
66995
66996 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66997
66998         (Imported from Automake.)
66999         * build-aux/gnupload: Update to version 1.1 of directive file.
67000
67001 2006-10-16  Eric Blake  <ebb9@byu.net>
67002
67003         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67004         match Automake 1.10a.
67005
67006 2006-10-14  Bruno Haible  <bruno@clisp.org>
67007
67008         * modules/sigprocmask: New file.
67009         * lib/sigprocmask.h: New file.
67010         * lib/sigprocmask.c: New file.
67011         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67012         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67013         request sigprocmask.o.
67014         (gl_PREREQ_SIGPROCMASK): New macro.
67015         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67016         (Depends-on): Add sigprocmask.
67017         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67018         gt_SIGNALBLOCKING. Test for 'raise' only once.
67019         * lib/fatal-signal.c: Include sigprocmask.h.
67020         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67021         unblock_fatal_signals): Define always.
67022         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67023         sigprocmask.
67024
67025 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67026
67027         Sync from Automake.
67028         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67029         which incorrectly sets the mode of an existing destination
67030         directory.  In some cases the unpatched install-sh could do the
67031         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67032         system.  We hope this is rare in practice, but it's clearly worth
67033         fixing.  Problem reported by Alex Unleashed in
67034         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67035         Also, don't bother to check for -m bugs unless we're using -m;
67036         suggested by Stepan Kasal.
67037
67038 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67039
67040         Sync from Automake.
67041         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67042         `-c' flag, so they appear at the same position as in %FASTDEP%
67043         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67044         which ignores unknown options only after the first non-option.
67045         Bug report against M4 by Nelson H. F. Beebe.
67046
67047 2006-10-13  Jim Meyering  <jim@meyering.net>
67048
67049         Fix a bug in yesterday's change.
67050         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67051         p->fts_statp->st_dev would be used uninitialized.
67052         Ensures that we always call fts_stat on the very first entry.
67053         Miklos Szeredi reported that find -xdev stopped working.
67054
67055 2006-10-12  Bruno Haible  <bruno@clisp.org>
67056
67057         * gnulib-tool (func_get_automake_snippet): Append an automatically
67058         computed EXTRA_DIST augmentation.
67059         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67060         * modules/alloca-opt (Makefile.am): Likewise.
67061         * modules/allocsa (Makefile.am): Likewise.
67062         * modules/arcfour (Makefile.am): Likewise.
67063         * modules/arctwo (Makefile.am): Likewise.
67064         * modules/argmatch (Makefile.am): Likewise.
67065         * modules/argz (Makefile.am): Likewise.
67066         * modules/atexit (Makefile.am): Likewise.
67067         * modules/backupfile (Makefile.am): Likewise.
67068         * modules/byteswap (Makefile.am): Likewise.
67069         * modules/c-strtod (Makefile.am): Likewise.
67070         * modules/c-strtold (Makefile.am): Likewise.
67071         * modules/calloc (Makefile.am): Likewise.
67072         * modules/canon-host (Makefile.am): Likewise.
67073         * modules/canonicalize (Makefile.am): Likewise.
67074         * modules/chdir-long (Makefile.am): Likewise.
67075         * modules/chdir-safer (Makefile.am): Likewise.
67076         * modules/check-version (Makefile.am): Likewise.
67077         * modules/chown (Makefile.am): Likewise.
67078         * modules/cloexec (Makefile.am): Likewise.
67079         * modules/close-stream (Makefile.am): Likewise.
67080         * modules/closeout (Makefile.am): Likewise.
67081         * modules/crc (Makefile.am): Likewise.
67082         * modules/csharpexec (Makefile.am): Likewise.
67083         * modules/cycle-check (Makefile.am): Likewise.
67084         * modules/des (Makefile.am): Likewise.
67085         * modules/dev-ino (Makefile.am): Likewise.
67086         * modules/dirfd (Makefile.am): Likewise.
67087         * modules/dirname (Makefile.am): Likewise.
67088         * modules/dup2 (Makefile.am): Likewise.
67089         * modules/eealloc (Makefile.am): Likewise.
67090         * modules/error (Makefile.am): Likewise.
67091         * modules/euidaccess (Makefile.am): Likewise.
67092         * modules/exclude (Makefile.am): Likewise.
67093         * modules/exitfail (Makefile.am): Likewise.
67094         * modules/fcntl-safer (Makefile.am): Likewise.
67095         * modules/fcntl (Makefile.am): Likewise.
67096         * modules/file-type (Makefile.am): Likewise.
67097         * modules/fileblocks (Makefile.am): Likewise.
67098         * modules/filemode (Makefile.am): Likewise.
67099         * modules/filenamecat (Makefile.am): Likewise.
67100         * modules/fnmatch (Makefile.am): Likewise.
67101         * modules/fopen-safer (Makefile.am): Likewise.
67102         * modules/fpending (Makefile.am): Likewise.
67103         * modules/fprintftime (Makefile.am): Likewise.
67104         * modules/free (Makefile.am): Likewise.
67105         * modules/fsusage (Makefile.am): Likewise.
67106         * modules/ftruncate (Makefile.am): Likewise.
67107         * modules/fts (Makefile.am): Likewise.
67108         * modules/gc-arcfour (Makefile.am): Likewise.
67109         * modules/gc-des (Makefile.am): Likewise.
67110         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67111         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67112         * modules/gc-md4 (Makefile.am): Likewise.
67113         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67114         * modules/gc-sha1 (Makefile.am): Likewise.
67115         * modules/gc (Makefile.am): Likewise.
67116         * modules/getaddrinfo (Makefile.am): Likewise.
67117         * modules/getcwd (Makefile.am): Likewise.
67118         * modules/getdelim (Makefile.am): Likewise.
67119         * modules/getdomainname (Makefile.am): Likewise.
67120         * modules/getgroups (Makefile.am): Likewise.
67121         * modules/gethostname (Makefile.am): Likewise.
67122         * modules/gethrxtime (Makefile.am): Likewise.
67123         * modules/getline (Makefile.am): Likewise.
67124         * modules/getloadavg (Makefile.am): Likewise.
67125         * modules/getlogin_r (Makefile.am): Likewise.
67126         * modules/getndelim2 (Makefile.am): Likewise.
67127         * modules/getopt (Makefile.am): Likewise.
67128         * modules/getpagesize (Makefile.am): Likewise.
67129         * modules/getpass-gnu (Makefile.am): Likewise.
67130         * modules/getpass (Makefile.am): Likewise.
67131         * modules/getsubopt (Makefile.am): Likewise.
67132         * modules/gettime (Makefile.am): Likewise.
67133         * modules/gettimeofday (Makefile.am): Likewise.
67134         * modules/getugroups (Makefile.am): Likewise.
67135         * modules/getusershell (Makefile.am): Likewise.
67136         * modules/glob (Makefile.am): Likewise.
67137         * modules/group-member (Makefile.am): Likewise.
67138         * modules/hard-locale (Makefile.am): Likewise.
67139         * modules/hash (Makefile.am): Likewise.
67140         * modules/hmac-md5 (Makefile.am): Likewise.
67141         * modules/hmac-sha1 (Makefile.am): Likewise.
67142         * modules/human (Makefile.am): Likewise.
67143         * modules/idcache (Makefile.am): Likewise.
67144         * modules/imaxabs (Makefile.am): Likewise.
67145         * modules/imaxdiv (Makefile.am): Likewise.
67146         * modules/inet_ntop (Makefile.am): Likewise.
67147         * modules/inet_pton (Makefile.am): Likewise.
67148         * modules/intprops (Makefile.am): Likewise.
67149         * modules/inttostr (Makefile.am): Likewise.
67150         * modules/inttypes (Makefile.am): Likewise.
67151         * modules/isapipe (Makefile.am): Likewise.
67152         * modules/javaversion (Makefile.am): Likewise.
67153         * modules/lchmod (Makefile.am): Likewise.
67154         * modules/lchown (Makefile.am): Likewise.
67155         * modules/localcharset (Makefile.am): Likewise.
67156         * modules/long-options (Makefile.am): Likewise.
67157         * modules/lstat (Makefile.am): Likewise.
67158         * modules/malloc (Makefile.am): Likewise.
67159         * modules/mathl (Makefile.am): Likewise.
67160         * modules/mbchar (Makefile.am): Likewise.
67161         * modules/md2 (Makefile.am): Likewise.
67162         * modules/md4 (Makefile.am): Likewise.
67163         * modules/md5 (Makefile.am): Likewise.
67164         * modules/memcasecmp (Makefile.am): Likewise.
67165         * modules/memchr (Makefile.am): Likewise.
67166         * modules/memcmp (Makefile.am): Likewise.
67167         * modules/memcoll (Makefile.am): Likewise.
67168         * modules/memcpy (Makefile.am): Likewise.
67169         * modules/memmem (Makefile.am): Likewise.
67170         * modules/memmove (Makefile.am): Likewise.
67171         * modules/mempcpy (Makefile.am): Likewise.
67172         * modules/memrchr (Makefile.am): Likewise.
67173         * modules/memset (Makefile.am): Likewise.
67174         * modules/memxor (Makefile.am): Likewise.
67175         * modules/mkancesdirs (Makefile.am): Likewise.
67176         * modules/mkdir-p (Makefile.am): Likewise.
67177         * modules/mkdir (Makefile.am): Likewise.
67178         * modules/mkdtemp (Makefile.am): Likewise.
67179         * modules/mkstemp (Makefile.am): Likewise.
67180         * modules/mktime (Makefile.am): Likewise.
67181         * modules/modechange (Makefile.am): Likewise.
67182         * modules/mountlist (Makefile.am): Likewise.
67183         * modules/nanosleep (Makefile.am): Likewise.
67184         * modules/obstack (Makefile.am): Likewise.
67185         * modules/openat (Makefile.am): Likewise.
67186         * modules/pagealign_alloc (Makefile.am): Likewise.
67187         * modules/pathmax (Makefile.am): Likewise.
67188         * modules/physmem (Makefile.am): Likewise.
67189         * modules/poll (Makefile.am): Likewise.
67190         * modules/posixtm (Makefile.am): Likewise.
67191         * modules/posixver (Makefile.am): Likewise.
67192         * modules/putenv (Makefile.am): Likewise.
67193         * modules/quote (Makefile.am): Likewise.
67194         * modules/quotearg (Makefile.am): Likewise.
67195         * modules/raise (Makefile.am): Likewise.
67196         * modules/read-file (Makefile.am): Likewise.
67197         * modules/readline (Makefile.am): Likewise.
67198         * modules/readlink (Makefile.am): Likewise.
67199         * modules/readtokens (Makefile.am): Likewise.
67200         * modules/readutmp (Makefile.am): Likewise.
67201         * modules/realloc (Makefile.am): Likewise.
67202         * modules/regex (Makefile.am): Likewise.
67203         * modules/rename-dest-slash (Makefile.am): Likewise.
67204         * modules/rename (Makefile.am): Likewise.
67205         * modules/rijndael (Makefile.am): Likewise.
67206         * modules/rmdir (Makefile.am): Likewise.
67207         * modules/rpmatch (Makefile.am): Likewise.
67208         * modules/safe-read (Makefile.am): Likewise.
67209         * modules/safe-write (Makefile.am): Likewise.
67210         * modules/same-inode (Makefile.am): Likewise.
67211         * modules/same (Makefile.am): Likewise.
67212         * modules/save-cwd (Makefile.am): Likewise.
67213         * modules/savedir (Makefile.am): Likewise.
67214         * modules/setenv (Makefile.am): Likewise.
67215         * modules/settime (Makefile.am): Likewise.
67216         * modules/sha1 (Makefile.am): Likewise.
67217         * modules/sig2str (Makefile.am): Likewise.
67218         * modules/snprintf (Makefile.am): Likewise.
67219         * modules/stat-macros (Makefile.am): Likewise.
67220         * modules/stat-time (Makefile.am): Likewise.
67221         * modules/stdbool (Makefile.am): Likewise.
67222         * modules/stdint (Makefile.am): Likewise.
67223         * modules/stdlib-safer (Makefile.am): Likewise.
67224         * modules/stpcpy (Makefile.am): Likewise.
67225         * modules/stpncpy (Makefile.am): Likewise.
67226         * modules/strcase (Makefile.am): Likewise.
67227         * modules/strcasestr (Makefile.am): Likewise.
67228         * modules/strchrnul (Makefile.am): Likewise.
67229         * modules/strcspn (Makefile.am): Likewise.
67230         * modules/strdup (Makefile.am): Likewise.
67231         * modules/strerror (Makefile.am): Likewise.
67232         * modules/strftime (Makefile.am): Likewise.
67233         * modules/strndup (Makefile.am): Likewise.
67234         * modules/strnlen (Makefile.am): Likewise.
67235         * modules/strpbrk (Makefile.am): Likewise.
67236         * modules/strsep (Makefile.am): Likewise.
67237         * modules/strstr (Makefile.am): Likewise.
67238         * modules/strtod (Makefile.am): Likewise.
67239         * modules/strtoimax (Makefile.am): Likewise.
67240         * modules/strtok_r (Makefile.am): Likewise.
67241         * modules/strtol (Makefile.am): Likewise.
67242         * modules/strtoll (Makefile.am): Likewise.
67243         * modules/strtoul (Makefile.am): Likewise.
67244         * modules/strtoull (Makefile.am): Likewise.
67245         * modules/strtoumax (Makefile.am): Likewise.
67246         * modules/strverscmp (Makefile.am): Likewise.
67247         * modules/sys_socket (Makefile.am): Likewise.
67248         * modules/sys_stat (Makefile.am): Likewise.
67249         * modules/sysexits (Makefile.am): Likewise.
67250         * modules/time_r (Makefile.am): Likewise.
67251         * modules/timegm (Makefile.am): Likewise.
67252         * modules/timespec (Makefile.am): Likewise.
67253         * modules/tmpfile-safer (Makefile.am): Likewise.
67254         * modules/trim (Makefile.am): Likewise.
67255         * modules/unistd-safer (Makefile.am): Likewise.
67256         * modules/unlinkdir (Makefile.am): Likewise.
67257         * modules/unlocked-io (Makefile.am): Likewise.
67258         * modules/userspec (Makefile.am): Likewise.
67259         * modules/utime (Makefile.am): Likewise.
67260         * modules/utimecmp (Makefile.am): Likewise.
67261         * modules/utimens (Makefile.am): Likewise.
67262         * modules/vasnprintf (Makefile.am): Likewise.
67263         * modules/vasprintf (Makefile.am): Likewise.
67264         * modules/vsnprintf (Makefile.am): Likewise.
67265         * modules/xalloc (Makefile.am): Likewise.
67266         * modules/xgetcwd (Makefile.am): Likewise.
67267         * modules/xnanosleep (Makefile.am): Likewise.
67268         * modules/xreadlink (Makefile.am): Likewise.
67269         * modules/xstrtod (Makefile.am): Likewise.
67270         * modules/xstrtol (Makefile.am): Likewise.
67271         * modules/xstrtold (Makefile.am): Likewise.
67272         * modules/yesno (Makefile.am): Likewise.
67273         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67274
67275 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67276
67277         * modules/error (Makefile.am): Distribute files through
67278         EXTRA_DIST, not lib_SOURCES.
67279
67280 2006-10-12  Eric Blake  <ebb9@byu.net>
67281
67282         * modules/error (Makefile.am): Distribute files in /lib.
67283         * modules/obstack (Makefile.am): Likewise.
67284
67285 2006-10-12  Bruno Haible  <bruno@clisp.org>
67286
67287         * modules/acl (Makefile.am): Distribute all files in lib/ through
67288         EXTRA_DIST.
67289         * modules/arcfour (Makefile.am): Likewise.
67290         * modules/arctwo (Makefile.am): Likewise.
67291         * modules/argmatch (Makefile.am): Likewise.
67292         * modules/argz (Makefile.am): Likewise.
67293         * modules/atexit (Makefile.am): Likewise.
67294         * modules/backupfile (Makefile.am): Likewise.
67295         * modules/c-strtod (Makefile.am): Likewise.
67296         * modules/c-strtold (Makefile.am): Likewise.
67297         * modules/calloc (Makefile.am): Likewise.
67298         * modules/canon-host (Makefile.am): Likewise.
67299         * modules/canonicalize (Makefile.am): Likewise.
67300         * modules/chdir-long (Makefile.am): Likewise.
67301         * modules/chdir-safer (Makefile.am): Likewise.
67302         * modules/check-version (Makefile.am): Likewise.
67303         * modules/chown (Makefile.am): Likewise.
67304         * modules/cloexec (Makefile.am): Likewise.
67305         * modules/close-stream (Makefile.am): Likewise.
67306         * modules/closeout (Makefile.am): Likewise.
67307         * modules/crc (Makefile.am): Likewise.
67308         * modules/cycle-check (Makefile.am): Likewise.
67309         * modules/des (Makefile.am): Likewise.
67310         * modules/dirfd (Makefile.am): Likewise.
67311         * modules/dirname (Makefile.am): Likewise.
67312         * modules/dup2 (Makefile.am): Likewise.
67313         * modules/euidaccess (Makefile.am): Likewise.
67314         * modules/exclude (Makefile.am): Likewise.
67315         * modules/exitfail (Makefile.am): Likewise.
67316         * modules/fcntl-safer (Makefile.am): Likewise.
67317         * modules/file-type (Makefile.am): Likewise.
67318         * modules/fileblocks (Makefile.am): Likewise.
67319         * modules/filemode (Makefile.am): Likewise.
67320         * modules/filenamecat (Makefile.am): Likewise.
67321         * modules/fnmatch (Makefile.am): Likewise.
67322         * modules/fopen-safer (Makefile.am): Likewise.
67323         * modules/fpending (Makefile.am): Likewise.
67324         * modules/fprintftime (Makefile.am): Likewise.
67325         * modules/free (Makefile.am): Likewise.
67326         * modules/fsusage (Makefile.am): Likewise.
67327         * modules/ftruncate (Makefile.am): Likewise.
67328         * modules/fts (Makefile.am): Likewise.
67329         * modules/gc (Makefile.am): Likewise.
67330         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67331         * modules/getaddrinfo (Makefile.am): Likewise.
67332         * modules/getcwd (Makefile.am): Likewise.
67333         * modules/getdelim (Makefile.am): Likewise.
67334         * modules/getdomainname (Makefile.am): Likewise.
67335         * modules/getgroups (Makefile.am): Likewise.
67336         * modules/gethostname (Makefile.am): Likewise.
67337         * modules/gethrxtime (Makefile.am): Likewise.
67338         * modules/getline (Makefile.am): Likewise.
67339         * modules/getloadavg (Makefile.am): Likewise.
67340         * modules/getlogin_r (Makefile.am): Likewise.
67341         * modules/getopt (Makefile.am): Likewise.
67342         * modules/getpass (Makefile.am): Likewise.
67343         * modules/getpass-gnu (Makefile.am): Likewise.
67344         * modules/getsubopt (Makefile.am): Likewise.
67345         * modules/gettime (Makefile.am): Likewise.
67346         * modules/gettimeofday (Makefile.am): Likewise.
67347         * modules/getugroups (Makefile.am): Likewise.
67348         * modules/getusershell (Makefile.am): Likewise.
67349         * modules/glob (Makefile.am): Likewise.
67350         * modules/group-member (Makefile.am): Likewise.
67351         * modules/hard-locale (Makefile.am): Likewise.
67352         * modules/hash (Makefile.am): Likewise.
67353         * modules/hmac-md5 (Makefile.am): Likewise.
67354         * modules/hmac-sha1 (Makefile.am): Likewise.
67355         * modules/human (Makefile.am): Likewise.
67356         * modules/idcache (Makefile.am): Likewise.
67357         * modules/imaxabs (Makefile.am): Likewise.
67358         * modules/imaxdiv (Makefile.am): Likewise.
67359         * modules/inet_ntop (Makefile.am): Likewise.
67360         * modules/inet_pton (Makefile.am): Likewise.
67361         * modules/inttostr (Makefile.am): Likewise.
67362         * modules/isapipe (Makefile.am): Likewise.
67363         * modules/lchown (Makefile.am): Likewise.
67364         * modules/long-options (Makefile.am): Likewise.
67365         * modules/lstat (Makefile.am): Likewise.
67366         * modules/malloc (Makefile.am): Likewise.
67367         * modules/mathl (Makefile.am): Likewise.
67368         * modules/mbchar (Makefile.am): Likewise.
67369         * modules/md2 (Makefile.am): Likewise.
67370         * modules/md4 (Makefile.am): Likewise.
67371         * modules/md5 (Makefile.am): Likewise.
67372         * modules/memcasecmp (Makefile.am): Likewise.
67373         * modules/memchr (Makefile.am): Likewise.
67374         * modules/memcmp (Makefile.am): Likewise.
67375         * modules/memcoll (Makefile.am): Likewise.
67376         * modules/memcpy (Makefile.am): Likewise.
67377         * modules/memmem (Makefile.am): Likewise.
67378         * modules/memmove (Makefile.am): Likewise.
67379         * modules/mempcpy (Makefile.am): Likewise.
67380         * modules/memrchr (Makefile.am): Likewise.
67381         * modules/memset (Makefile.am): Likewise.
67382         * modules/memxor (Makefile.am): Likewise.
67383         * modules/mkancesdirs (Makefile.am): Likewise.
67384         * modules/mkdir (Makefile.am): Likewise.
67385         * modules/mkdir-p (Makefile.am): Likewise.
67386         * modules/mkdtemp (Makefile.am): Likewise.
67387         * modules/mkstemp (Makefile.am): Likewise.
67388         * modules/mktime (Makefile.am): Likewise.
67389         * modules/modechange (Makefile.am): Likewise.
67390         * modules/mountlist (Makefile.am): Likewise.
67391         * modules/nanosleep (Makefile.am): Likewise.
67392         * modules/openat (Makefile.am): Likewise.
67393         * modules/pagealign_alloc (Makefile.am): Likewise.
67394         * modules/physmem (Makefile.am): Likewise.
67395         * modules/poll (Makefile.am): Likewise.
67396         * modules/posixtm (Makefile.am): Likewise.
67397         * modules/posixver (Makefile.am): Likewise.
67398         * modules/putenv (Makefile.am): Likewise.
67399         * modules/quote (Makefile.am): Likewise.
67400         * modules/quotearg (Makefile.am): Likewise.
67401         * modules/raise (Makefile.am): Likewise.
67402         * modules/read-file (Makefile.am): Likewise.
67403         * modules/readline (Makefile.am): Likewise.
67404         * modules/readlink (Makefile.am): Likewise.
67405         * modules/readtokens (Makefile.am): Likewise.
67406         * modules/readutmp (Makefile.am): Likewise.
67407         * modules/realloc (Makefile.am): Likewise.
67408         * modules/regex (Makefile.am): Likewise.
67409         * modules/rename (Makefile.am): Likewise.
67410         * modules/rename-dest-slash (Makefile.am): Likewise.
67411         * modules/rijndael (Makefile.am): Likewise.
67412         * modules/rmdir (Makefile.am): Likewise.
67413         * modules/rpmatch (Makefile.am): Likewise.
67414         * modules/safe-read (Makefile.am): Likewise.
67415         * modules/safe-write (Makefile.am): Likewise.
67416         * modules/same (Makefile.am): Likewise.
67417         * modules/save-cwd (Makefile.am): Likewise.
67418         * modules/savedir (Makefile.am): Likewise.
67419         * modules/setenv (Makefile.am): Likewise.
67420         * modules/settime (Makefile.am): Likewise.
67421         * modules/sha1 (Makefile.am): Likewise.
67422         * modules/sig2str (Makefile.am): Likewise.
67423         * modules/snprintf (Makefile.am): Likewise.
67424         * modules/stdlib-safer (Makefile.am): Likewise.
67425         * modules/stpcpy (Makefile.am): Likewise.
67426         * modules/stpncpy (Makefile.am): Likewise.
67427         * modules/strcase (Makefile.am): Likewise.
67428         * modules/strcasestr (Makefile.am): Likewise.
67429         * modules/strchrnul (Makefile.am): Likewise.
67430         * modules/strcspn (Makefile.am): Likewise.
67431         * modules/strdup (Makefile.am): Likewise.
67432         * modules/strerror (Makefile.am): Likewise.
67433         * modules/strftime (Makefile.am): Likewise.
67434         * modules/strndup (Makefile.am): Likewise.
67435         * modules/strnlen (Makefile.am): Likewise.
67436         * modules/strpbrk (Makefile.am): Likewise.
67437         * modules/strsep (Makefile.am): Likewise.
67438         * modules/strstr (Makefile.am): Likewise.
67439         * modules/strtod (Makefile.am): Likewise.
67440         * modules/strtoimax (Makefile.am): Likewise.
67441         * modules/strtok_r (Makefile.am): Likewise.
67442         * modules/strtol (Makefile.am): Likewise.
67443         * modules/strtoll (Makefile.am): Likewise.
67444         * modules/strtoul (Makefile.am): Likewise.
67445         * modules/strtoull (Makefile.am): Likewise.
67446         * modules/strtoumax (Makefile.am): Likewise.
67447         * modules/strverscmp (Makefile.am): Likewise.
67448         * modules/time_r (Makefile.am): Likewise.
67449         * modules/timegm (Makefile.am): Likewise.
67450         * modules/tmpfile-safer (Makefile.am): Likewise.
67451         * modules/unistd-safer (Makefile.am): Likewise.
67452         * modules/unlinkdir (Makefile.am): Likewise.
67453         * modules/userspec (Makefile.am): Likewise.
67454         * modules/utime (Makefile.am): Likewise.
67455         * modules/utimecmp (Makefile.am): Likewise.
67456         * modules/utimens (Makefile.am): Likewise.
67457         * modules/vasnprintf (Makefile.am): Likewise.
67458         * modules/vasprintf (Makefile.am): Likewise.
67459         * modules/vsnprintf (Makefile.am): Likewise.
67460         * modules/xalloc (Makefile.am): Likewise.
67461         * modules/xgetcwd (Makefile.am): Likewise.
67462         * modules/xnanosleep (Makefile.am): Likewise.
67463         * modules/xreadlink (Makefile.am): Likewise.
67464         * modules/xstrtod (Makefile.am): Likewise.
67465         * modules/xstrtol (Makefile.am): Likewise.
67466         * modules/xstrtold (Makefile.am): Likewise.
67467         * modules/yesno (Makefile.am): Likewise.
67468
67469 2006-10-12  Jim Meyering  <jim@meyering.net>
67470
67471         * m4/getloadavg.m4: Revert the change below.
67472
67473         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67474         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67475         fail with a symlink, which is what coreutils' ./bootstrap now
67476         creates by default.
67477
67478 2006-10-12  Bruno Haible  <bruno@clisp.org>
67479
67480         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67481         mingw.
67482         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67483         MSVC and mingw explicitly.
67484
67485 2006-10-11  Simon Josefsson  <jas@extundo.com>
67486             Bruno Haible  <bruno@clisp.org>
67487
67488         Add support for multiple gnulib-tool invocations in the scope of a
67489         single configure.ac file.
67490         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67491         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67492         with the same contents as the _LIBADD variable.
67493         (func_emit_initmacro_start, func_emit_initmacro_end,
67494         func_emit_initmacro_done): New functions.
67495         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67496         gl_LIBOBJS and gl_LTLIBOBJS.
67497
67498 2006-10-11  Bruno Haible  <bruno@clisp.org>
67499
67500         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67501         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67502         autoreconf. Instead, invoke autopoint explicitly but move back the
67503         *.m4 files from gnulib.
67504
67505 2006-10-11  Bruno Haible  <bruno@clisp.org>
67506
67507         * gnulib-tool (func_usage): Make module names after --create-testdir
67508         optional.
67509         (func_create_testdir): If no module was specified, use nearly all
67510         modules.
67511
67512 2006-10-12  Jim Meyering  <jim@meyering.net>
67513
67514         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67515         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67516         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67517         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67518         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67519         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67520         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67521         (fts_set_stat_required): New function.
67522         (fts_open): Defer the calls to fts_stat, if possible or requested.
67523         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67524         into fts_stat itself.
67525         (fts_read): Perform any required (deferred) fts_stat call.
67526         (fts_build): Likewise, for the directory we're about to open and read.
67527         In the readdir loop, carefully decide whether each entry will require
67528         an eventual call to fts_stat, using dirent.d_type info if available.
67529         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67530         a command line argument into this function.  Update all callers.
67531         Map a return value of FTS_DOT to FTS_D for a command line argument.
67532         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67533         Thanks to Miklos Szeredi for his tenacity and for the initial
67534         bug report about "find" failing on a FUSE-based file system.
67535
67536         * lib/fts.c (fts_open): Use consistent indentation.
67537
67538 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67539
67540         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67541         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67542         reported by Jim Meyering.  All uses of cache variables renamed
67543         to match Autoconf's.
67544         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67545         the other one.
67546
67547         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67548         Fix misspelling in diagnostic.
67549
67550 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67551
67552         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67553         defined.  Problem reported by Matthew Woehlke.
67554
67555         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67556         Add support for Tandem NonStop R series.
67557         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67558         Use new macro.
67559
67560         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67561         (has_trailing_slash): Omit size arg; all callers changed.
67562         Omit 'inline', since it doesn't help performance and we'd
67563         need to configure it.
67564         Don't count //, ///, etc. as having a trailing slash.
67565         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67566         (rpl_rename_dest_slash): On failure, use rename's errno rather
67567         than (in some cases) an incorrect or junk errno.
67568         Simplify code by removing need to compute length; this does
67569         cause it to make two passes instead of one over the file name,
67570         but it's worth it.
67571
67572         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67573         change, since Autoconf's version may no longer be appropriate now
67574         that we are using CVS Autoconf's version.  Add support for Tandem.
67575
67576 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67577             Bruno Haible  <bruno@clisp.org>
67578
67579         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67580         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67581         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67582         gl_AC_TYPE_LONG_LONG.
67583
67584         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67585         instead of HAVE_LONG_LONG.
67586         * lib/printf-args.c (printf_fetchargs): Likewise.
67587         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67588         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67589         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67590         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67591         gl_AC_TYPE_LONG_LONG.
67592
67593 2006-10-11  Bruno Haible  <bruno@clisp.org>
67594
67595         * m4/longlong.m4: Add comments.
67596         * m4/ulonglong.m4: Likewise.
67597
67598 2006-10-10  Bruno Haible  <bruno@clisp.org>
67599
67600         Make it possible to #define stpcpy, strdup to aliases.
67601         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67602         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67603
67604 2006-10-10  Bruno Haible  <bruno@clisp.org>
67605
67606         Make it possible to #define gcd to an alias.
67607         * lib/gcd.c: Include config.h.
67608
67609 2006-10-10  Bruno Haible  <bruno@clisp.org>
67610
67611         Make it possible to #define c_isascii to an alias.
67612         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67613         defined. Undefine the macros before defining them, to avoid gcc
67614         warnings.
67615         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67616         define NO_C_CTYPE_MACROS early.
67617
67618 2006-10-10  Bruno Haible  <bruno@clisp.org>
67619
67620         Make it possible to #define set_program_name to an alias.
67621         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67622         ENABLE_RELOCATABLE early.
67623
67624 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67625
67626         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67627         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67628         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67629         More generally, don't assume that 64-bit signed int is available
67630         if unsigned int is, and vice versa.
67631         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67632         unsigned symbols, not on their signed counterparts.
67633         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67634         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67635         (UINT64_C, UINTMAX_C):
67636         Likewise.
67637         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67638         unsigned counterparts.
67639         (Have_long_long, Unsigned): New macros.
67640         (Int): Renamed from INT.
67641         (strtoimax): Use the new macros.
67642         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67643         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67644         * modules/inttypes (inttypes.h): Substitute
67645         HAVE_UNSIGNED_LONG_LONG_INT.
67646         * modules/stdint (stdint.h): Likewise.
67647         (Files): Add m4/ulonglong.m4.
67648
67649 2006-10-10  Bruno Haible  <bruno@clisp.org>
67650
67651         Fix a gcc -Wshadow warning.
67652         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67653         to 'bucket'.
67654         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67655         gl_linked_indexof_from_to): Likewise.
67656         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67657         Likewise.
67658         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67659         Likewise.
67660         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67661         Reported by Eric Blake.
67662
67663 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67664
67665         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67666         for NetBSD.  Problem reported by Bruno Haible.
67667
67668 2006-10-09  Jim Meyering  <jim@meyering.net>
67669
67670         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67671         Patch from Bruno Haible.
67672
67673 2006-10-09  Jim Meyering  <jim@meyering.net>
67674
67675         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67676         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67677         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67678
67679 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67680
67681         Don't include <config.h> twice; this doesn't work in some cases,
67682         e.g., when config.h has "#define intmax_t long long int" and
67683         we include <config.h>, <inttypes.h>, <config.h> in that order.
67684         Problem reported by Matthew Woehlke in:
67685         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67686         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67687         * lib/fts-cycle.c: Don't include config.h.
67688         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67689         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67690         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67691         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67692         inttypes.h.
67693         * lib/xstrtoumax.c: Likewise.
67694         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67695         __strtol and the like, so that this module is more like its siblings.
67696         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67697         Remove; no longer needed now that we assume gnulib inttypes.h.
67698
67699 2006-10-08  Bruno Haible  <bruno@clisp.org>
67700
67701         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67702         option.
67703
67704 2006-10-07  Jim Meyering  <jim@meyering.net>
67705
67706         * modules/inttypes (inttypes.h): Revert what seems to have been
67707         an inadvertent part of today's change: use "|", not "/" in the
67708         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67709
67710 2006-10-07  Bruno Haible  <bruno@clisp.org>
67711
67712         * modules/sublist: New file.
67713
67714 2006-10-07  Bruno Haible  <bruno@clisp.org>
67715
67716         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67717         * modules/argz (argz.h): Likewise.
67718         * modules/arpa_inet (arpa/inet.h): Likewise.
67719         * modules/byteswap (byteswap.h): Likewise.
67720         * modules/configmake (configmake.h): Likewise.
67721         * modules/fcntl (fcntl.h): Likewise.
67722         * modules/fnmatch (fnmatch.h): Likewise.
67723         * modules/getopt (getopt.h): Likewise.
67724         * modules/glob (glob.h): Likewise.
67725         * modules/inttypes (inttypes.h): Likewise.
67726         * modules/netinet_in (netinet/in.h): Likewise.
67727         * modules/poll (poll.h): Likewise.
67728         * modules/stdbool (stdbool.h): Likewise.
67729         * modules/stdint (stdint.h): Likewise.
67730         * modules/sys_select (sys/select.h): Likewise.
67731         * modules/sys_socket (sys/socket.h): Likewise.
67732         * modules/sys_stat (sys/stat.h): Likewise.
67733         * modules/sysexits (sysexits.h): Likewise.
67734         * modules/unistd (unistd.h): Likewise.
67735         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67736         Add a "DO NOT EDIT" comment to the generated file.
67737         (func_import): Likewise for gnulib-comp.m4.
67738
67739 2006-10-07  Bruno Haible  <bruno@clisp.org>
67740
67741         * lib/gl_sublist.h: New file.
67742         * lib/gl_sublist.c: New file.
67743
67744 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67745
67746         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67747         name (relative to the original working directory) and the file
67748         name component (relative to the temporary working directory).  All
67749         callers changed.
67750         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67751         * lib/mkdir-p.c (make_dir_parents): Likewise.
67752         * lib/mkdir-p.h (make_dir_parents): Likewise.
67753
67754 2006-10-06  Eric Blake  <ebb9@byu.net>
67755
67756         Define several macros for use by the clean-temp module.
67757         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67758         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67759         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67760
67761         * lib/clean-temp.h (close_stream_temp): New declaration.
67762         * lib/clean-temp.c (includes): Pull in headers according to what
67763         other modules are in use.
67764         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67765
67766 2006-10-06  Bruno Haible  <bruno@clisp.org>
67767
67768         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67769         instead of fopen, fwriteerror.
67770
67771 2006-10-06  Bruno Haible  <bruno@clisp.org>
67772
67773         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67774         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67775         int.
67776         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67777         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67778         Return an error indicator.
67779         Suggested by Eric Blake.
67780
67781 2006-10-06  Bruno Haible  <bruno@clisp.org>
67782
67783         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67784         Reported by Eric Blake.
67785
67786 2006-10-06  Bruno Haible  <bruno@clisp.org>
67787
67788         * modules/closeout (Description): Mention stderr too.
67789
67790 2006-10-06  Bruno Haible  <bruno@clisp.org>
67791         and Paul Eggert  <eggert@cs.ucla.edu>
67792
67793         * lib/closeout.c (close_stdout): Also close stderr.
67794         * lib/closeout.h: Update comment.
67795
67796 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67797
67798         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67799         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67800         * lib/dirchownmod.c: Include lchown.h.
67801         * lib/lchown.c: Don't include files that lchown.h now includes.
67802         Don't declare chown, since lchown.h now does that.
67803         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67804         (lchown): Define to rpl_chown if lchown is declared but
67805         does not exist.  Declare using a prototype if lchown is not
67806         declared.  Add a copyright notice.
67807         * lib/mkstemp.h: Include <unistd.h>.
67808         * lib/openat.c: Include lchown.h.
67809
67810         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67811         we now test for that separately.
67812         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67813         rather than O_NOFOLLOW, when testing whether it's possible to
67814         avoid a race condition reliably.
67815         * lib/savewd.c (savewd_chdir): Likewise.
67816
67817         Remove macros that are no longer needed now that stdint.h is
67818         reliable.
67819         * lib/fsusage.c (UINTMAX_MAX): Remove.
67820         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67821         * lib/utimecmp.c (SIZE_MAX): Remove.
67822
67823         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67824
67825         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67826         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67827         O_NOATIME works.
67828
67829 2006-10-05  Bruno Haible  <bruno@clisp.org>
67830
67831         * lib/gl_list.h (gl_sortedlist_search_from_to,
67832         gl_sortedlist_indexof_from_to): New declarations.
67833         (gl_list_implementation): New fields sortedlist_search_from_to,
67834         sortedlist_indexof_from_to.
67835         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67836         inline functions.
67837         * lib/gl_list.c (gl_sortedlist_search_from_to,
67838         gl_sortedlist_indexof_from_to): New functions.
67839         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67840         function.
67841         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67842         (gl_array_sortedlist_search_from_to): New function.
67843         (gl_array_list_implementation): Update.
67844         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67845         function.
67846         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67847         (gl_carray_sortedlist_search_from_to): New function.
67848         (gl_carray_list_implementation): Update.
67849         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67850         gl_linked_sortedlist_indexof_from_to): New functions.
67851         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67852         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67853         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67854         gl_tree_sortedlist_indexof_from_to): New functions.
67855         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67856         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67857         Update.
67858         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67859         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67860         Update.
67861
67862 2006-10-05  Bruno Haible  <bruno@clisp.org>
67863
67864         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67865         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67866         (struct gl_list_implementation): Add fields search_from_to,
67867         indexof_from_to. Remove fields search, indexof.
67868         (gl_list_search): Use the search_from_to method.
67869         (gl_list_search_from, gl_list_search_from_to): New functions.
67870         (gl_list_indexof): Use the indexof_from_to method.
67871         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67872         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67873         (gl_list_search_from, gl_list_search_from_to): New functions.
67874         (gl_list_indexof): Use the indexof_from_to method.
67875         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67876         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67877         gl_array_indexof. Add start_index, end_index arguments.
67878         (gl_array_search_from_to): Renamed from gl_array_search. Add
67879         start_index, end_index arguments.
67880         (gl_array_remove, gl_array_list_implementation): Update.
67881         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67882         gl_carray_indexof. Add start_index, end_index arguments.
67883         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67884         start_index, end_index arguments.
67885         (gl_carray_remove, gl_carray_list_implementation): Update.
67886         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67887         gl_linked_search. Add start_index, end_index arguments.
67888         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67889         start_index, end_index arguments.
67890         (gl_linked_remove): Update.
67891         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67892         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67893         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67894         field to 'size_t'.
67895         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67896         gl_tree_search. Add start_index, end_index arguments.
67897         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67898         start_index, end_index arguments.
67899         (gl_tree_remove): Update.
67900         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67901         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67902         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67903         function.
67904         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67905         gl_tree_search. Add start_index, end_index arguments.
67906         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67907         start_index, end_index arguments.
67908         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67909         Update.
67910         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67911
67912 2006-10-05  Bruno Haible  <bruno@clisp.org>
67913
67914         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67915
67916         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67917         fwriteerror_temp): New declarations.
67918         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67919         (descriptors): New variable.
67920         (cleanup): First, close the descriptors.
67921         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67922         fclose_temp, fwriteerror_temp): New functions.
67923
67924 2006-10-04  Jim Meyering  <jim@meyering.net>
67925
67926         * lib/fts.c (fts_open): Tiny comment change.
67927
67928 2006-10-04  Bruno Haible  <bruno@clisp.org>
67929
67930         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67931         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67932         gl_LOCK_BODY.
67933         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67934         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67935         gl_LOCK_EARLY_BODY.
67936         (gl_LOCK): Require gl_LOCK_BODY.
67937
67938 2006-10-04  Bruno Haible  <bruno@clisp.org>
67939
67940         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67941         (gl_oset_search_atleast): New declaration.
67942         (struct gl_oset_implementation): Add field 'search_atleast'.
67943         (gl_oset_search_atleast): New inline function.
67944         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67945         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67946         (gl_array_oset_implementation): Update.
67947         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67948         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67949         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67950
67951 2006-10-04  Bruno Haible  <bruno@clisp.org>
67952
67953         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67954
67955 2006-10-03  Bruno Haible  <bruno@clisp.org>
67956
67957         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67958         from gl_avltreehash_list_implementation.
67959
67960 2006-10-03  Bruno Haible  <bruno@clisp.org>
67961
67962         * lib/gl_oset.c (gl_oset_add): Fix return type.
67963
67964 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67965
67966         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67967
67968 2006-10-02  Eric Blake  <ebb9@byu.net>
67969
67970         * modules/strnlen (Depends-on): Add extensions.
67971
67972 2006-10-02  Eric Blake  <ebb9@byu.net>
67973
67974         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67975         definition in 2.60+.
67976
67977 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67978
67979         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67980         checks.
67981
67982 2006-10-02  Bruno Haible  <bruno@clisp.org>
67983
67984         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67985         to the AUTOMAKE_OPTIONS.
67986         Reported by Jim Meyering.
67987
67988 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67989
67990         Work around bug in Solaris 10 /proc file system:
67991         /proc/self/fd/NNN/.. isn't the parent directory of
67992         the directory whose file descriptor is NNN.  This needs to
67993         be worked around at run time, not compile time, since a
67994         program might be built on Solaris 8, where things work, and
67995         run on Solaris 10.
67996         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67997         to use the following interface instead:
67998         (OPENAT_BUFFER_SIZE): New macro.
67999         (openat_proc_name): New function.
68000         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68001         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68002         Likewise.
68003         * lib/openat-proc.c: New file.
68004         * modules/openat (Files): Add lib/openat-proc.c.
68005         (Depends-on): Add same-inode, stdbool.
68006         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68007
68008 2006-09-29  Bruno Haible  <bruno@clisp.org>
68009
68010         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68011         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68012         argument. Set stdout_closed before testing for ferror, not after.
68013         (fwriteerror, fwriteerror_no_ebadf): New functions.
68014
68015 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68016
68017         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68018
68019 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68020
68021         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68022         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68023
68024 2006-09-28  Jim Meyering  <jim@meyering.net>
68025
68026         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68027         Include <unistd.h>.
68028
68029 2006-09-28  Bruno Haible  <bruno@clisp.org>
68030
68031         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68032         * modules/linkedhash-list (Depends-on): Likewise.
68033         * modules/rbtreehash-list (Depends-on): Likewise.
68034
68035 2006-09-28  Bruno Haible  <bruno@clisp.org>
68036
68037         * lib/strndup.h: Simplify the redefinition of strndup.
68038         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68039         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68040
68041 2006-09-28  Bruno Haible  <bruno@clisp.org>
68042
68043         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68044         * lib/gl_linkedhash_list.c: Likewise.
68045         * lib/gl_rbtreehash_list.c: Likewise.
68046
68047 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68048
68049         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68050         getaddrinfo.
68051
68052         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68053         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68054         it causes <stdio_ext.h> to cause a compile-time error.
68055         Problem reported by Nelson H. F. Beebe.
68056         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68057         of HAVE_DECL___PENDING.
68058
68059         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68060         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68061         declaration.
68062
68063 2006-09-27  Jim Meyering  <jim@meyering.net>
68064
68065         This file could end up with a definition for a function
68066         named __strndup, rather than rpl_strndup on a system with
68067         incomplete weak_alias support.
68068         * lib/strndup.c (strndup): Rename from __strndup.
68069         Remove #defines that used to map __strndup to strndup.
68070         Don't use K&R prototypes.
68071         Remove LIBC-related code, since this file is not sync'd with glibc.
68072         * lib/strndup.h: Revamp, accordingly.
68073         * m4/strndup.m4: Modernize.
68074
68075 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68076
68077         * modules/savewd (Depends-on): Add 'raise'.
68078         * lib/savewd.c: Include <signal.h>, for 'raise'.
68079
68080 2006-09-26  Jim Meyering  <jim@meyering.net>
68081
68082         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68083         when we detect Darwin 8.7.0's acl_get_file bug.
68084         Rearrange to perform the new (below) run-test while $LIBS
68085         contains any acl-related library.  Set USE_ACL at the end.
68086         (gl_ACL_GET_FILE): New function.
68087
68088 2006-09-26  Eric Blake  <ebb9@byu.net>
68089
68090         * lib/verror.c: Include <config.h> unconditionally.
68091
68092 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68093
68094         * modules/clock-time (Maintainer): Add self.
68095         * modules/getlogin_r (Depends-on): Add extensions.
68096
68097 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68098
68099         * modules/clock-time: New module.
68100         * modules/nanosleep (Depends-on): Add clock-time.
68101         * modules/gethrxtime (Depends-on): Likewise.
68102         * modules/gettime (Depends-on): Likewise.
68103         * modules/settime (Depends-on): Likewise.
68104
68105         * modules/fts-lgpl: Depend on openat.
68106         * modules/mkancesdirs: Depend on savewd.
68107         * modules/mkdir-p: Likewise.
68108
68109 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68110
68111         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68112
68113         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68114         `gl_have_arbitrary_file_name_length_limit' to
68115         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68116         actually works between configure runs.
68117
68118 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68119             Bruno Haible  <bruno@clisp.org>
68120
68121         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68122
68123 2006-09-25  Jim Meyering  <jim@meyering.net>
68124
68125         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68126         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68127
68128 2006-09-25  Eric Blake  <ebb9@byu.net>
68129
68130         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68131         exec's in 2006-09-18 patch when shuffling fds.
68132
68133 2006-09-25  Bruno Haible  <bruno@clisp.org>
68134
68135         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68136         Reported by Jim Meyering.
68137
68138 2006-09-24  Jim Meyering  <jim@meyering.net>
68139
68140         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68141         compare a pointer against a literal "0".  That caused failures with
68142         at least HP-UX's hpcc.
68143
68144 2006-09-22  Simon Josefsson  <jas@extundo.com>
68145
68146         * modules/gc-sha1:
68147         * modules/gc-md4:
68148         * modules/gc-hmac-sha1:
68149         * modules/gc-hmac-md5:
68150         * modules/gc-des:
68151         * modules/gc-arcfour: Distribute more files.
68152
68153 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68154
68155         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68156         (gl_linked_iterator_from_to): Initialize struct completely.
68157         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68158         (gl_tree_iterator_from_to): Likewise
68159         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68160         * lib/gl_array_list.c [lint] (gl_array_iterator)
68161         (gl_array_iterator_from_to): Likewise.
68162         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68163         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68164         (gl_carray_iterator_from_to): Likewise.
68165
68166         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68167         * lib/md4.c (md4_process_block): Remove unused variable.
68168         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68169         parentheses for clarity.
68170
68171 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68172
68173         * modules/bison-i18n (Depends-on): Add gettext.
68174
68175 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68176
68177         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68178         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68179         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68180         also add missing comma that caused broken test.
68181         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68182         stdlib.h, for `abort'.
68183         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68184         variables.
68185         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68186         include unistd.h if present, for `rmdir'.
68187         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68188         variables.
68189         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68190         in the process include standard headers for prototypes.
68191         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68192         gets declared on GNU/Linux.
68193         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68194         unistd.h, for `rmdir'.
68195         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68196
68197         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68198         always true.
68199         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68200
68201         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68202
68203 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68204
68205         * gnulib-tool (func_version): Create output all at once.  This
68206         may help avoid triggering unnecessary SIGPIPEs, and at any
68207         rate it doesn't hurt.
68208
68209 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68210             Bruno Haible  <bruno@clisp.org>
68211
68212         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68213         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68214         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68215
68216         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68217         (gl_FUNC_VASPRINTF): Invoke it.
68218
68219 2006-09-22  Bruno Haible  <bruno@clisp.org>
68220
68221         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68222         getloadavg.c as first argument.
68223
68224 2006-09-22  Bruno Haible  <bruno@clisp.org>
68225
68226         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68227         at the beginning of the gl_INIT macro.
68228         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68229         gl_GETLOADAVG.
68230
68231 2006-09-22  Bruno Haible  <bruno@clisp.org>
68232
68233         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68234         module.
68235         Suggested by Ralf Wildenhues.
68236
68237 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68238
68239         Import this patch from libc:
68240
68241         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68242
68243         * lib/regex_internal.c (re_string_reconstruct): Handle
68244         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68245         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68246         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68247         re_string_context_at.
68248
68249         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68250         now requires it.
68251         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68252         gl_REGEX now does it for us.
68253         (gl_REGEX): Add test taken from
68254         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68255
68256         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68257         Check that large offsets work.  Modernize Autoconf usages.
68258         Prefer "yes" to mean a good thing rather than a bad.
68259         Don't put "#define mkstemp" in config.h, as this might interfere
68260         with standard system headers that "#define mkstemp mkstemp64".
68261
68262         * modules/mkstemp (Depends-on): Add extensions, so that
68263         mkstemp is visible on some platforms.
68264         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68265         (Include): Change to "mkstemp.h" from <stdlib.h>.
68266         (Files): Add mkstemp.h.
68267
68268         * lib/mkstemp.h: New file, since some standard headers
68269         #define mkstemp.
68270         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68271         Include "mkstemp.h".
68272         Make the _LIBC code resemble glibc original more,
68273         e.g., use K&R style.
68274         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68275         (mkstemp): Remove, since mkstemp.h does this for us.
68276         * lib/stdlib--.h: Include mkstemp.h.
68277
68278         Import this patch from libc:
68279
68280         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68281
68282         * lib/tempname.c (__gen_tempname): Change attempts_min
68283         into a macro.  Use preprocessor to decide how to initialize
68284         attempts [Coverity CID 67].
68285
68286 2006-09-20  Bruno Haible  <bruno@clisp.org>
68287
68288         * lib/mkdtemp.c: Import from libc.
68289         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68290                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68291                 attempts_min into a macro.  Use preprocessor to decide how to
68292                 initialize attempts [Coverity CID 67].
68293         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68294                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68295                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68296
68297 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68298
68299         * gnulib-tool (func_exit): New function, to allow to pass the
68300         exit status portably through the trap.  Use everywhere.
68301         (--help, --version): Signal a write error.
68302         (trap): catch SIGPIPE, for write errors.
68303         Exit at the end of the trap, with the correct exit status.
68304
68305 2006-09-19  Karl Berry  <karl@gnu.org>
68306
68307         * doc/gnulib.texi: note about the license texinfo files.
68308
68309 2006-09-19  Eric Blake  <ebb9@byu.net>
68310
68311         * gnulib-tool: Avoid space-tab.
68312
68313 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68314
68315         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68316         that prevented coreutils 6.1 from building.  Problem reported
68317         by Petter Reinholdtsen.
68318
68319 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68320
68321         * gnulib-tool (avoidlist): Fix typo that broke options like
68322         --avoid=lock that are used by coreutils bootstrap.
68323
68324 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68325
68326         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68327         more systematically.
68328
68329 2006-09-18  Jim Meyering  <jim@meyering.net>
68330
68331         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68332
68333 2006-09-18  Bruno Haible  <bruno@clisp.org>
68334
68335         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68336
68337 2006-09-18  Bruno Haible  <bruno@clisp.org>
68338
68339         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68340         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68341         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68342         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68343         * m4/gettext.m4: Require autoconf >= 2.52.
68344         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68345         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68346         of gl_cv_header_inttypes_h.
68347
68348 2006-09-18  Bruno Haible  <bruno@clisp.org>
68349
68350         * lib/javaversion.c: Include configmake.h.
68351
68352 2006-09-18  Bruno Haible  <bruno@clisp.org>
68353
68354         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68355         avoid that the while loops be executed in a subshell.
68356
68357 2006-09-18  Bruno Haible  <bruno@clisp.org>
68358
68359         * MODULES.html.sh (func_module): Break long lines.
68360         Suggested by Bruce Korb <bkorb@gnu.org>.
68361
68362 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68363
68364         Speed up by a factor of 1.12.
68365         * gnulib-tool (nl): New variable.
68366         (func_import): Rewrite include directive extraction to only read each
68367         directive once.
68368
68369 2006-09-17  Bruno Haible  <bruno@clisp.org>
68370
68371         * modules/javaversion (Makefile.am): Remove DEFS setting.
68372         (Depends-on): Add configmake, for PKGDATADIR definition.
68373
68374 2006-09-17  Bruno Haible  <bruno@clisp.org>
68375
68376         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68377
68378 2006-09-17  Bruno Haible  <bruno@clisp.org>
68379
68380         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68381         (func_modules_transitive_closure, func_modules_add_dummy,
68382         func_modules_to_filelist, func_import, func_create_testdir,
68383         func_create_megatestdir, ...): Use it wherever possible.
68384         Suggested by Ralf Wildenhues.
68385
68386 2006-09-16  Karl Berry  <karl@gnu.org>
68387
68388         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68389         to avoid sectioning errors.
68390         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68391         [ifinfo]: blank line after @center-ed titles.
68392         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68393         Spell FSF address consistently with others.
68394         (These changes approved by rms.)
68395
68396 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68397
68398         Speed up by a factor of 1.61.
68399         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68400         already checked module names again.
68401
68402 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68403
68404         Speed up by a factor of 1.13.
68405         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68406         for new_files, and the input to func_add_or_update.
68407
68408 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68409
68410         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68411         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68412
68413 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68414
68415         * modules/mkancesdirs (Depends-on): Add fcntl.
68416         * modules/savewd: New file.
68417         * MODULES.html.sh (File system functions): Add savewd.
68418
68419         * modules/configmake (Makefile.am): Add support for the
68420         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68421
68422 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68423
68424         * m4/savewd.m4: New file.
68425
68426 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68427
68428         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68429         (dirchownmod): New arg FD.  All callers changed.
68430         Use FD rather than opening the directory ourself, as opening is
68431         now the caller's responsibility.
68432         * lib/dirchownmod.h: Likewise.
68433         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68434         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68435         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68436         (test_dir): Remove.
68437         (mkancesdirs): Return length of prefix of FILE that has already
68438         been made, or -2 if there is a child doing the work.  Redo
68439         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68440         ".", and treat ".." specially since it might stray back into
68441         already-created areas.  Use a subprocess if necessary.  New arg
68442         WD; all users changed.  MAKE_DIR function should now return 1
68443         if it creates a directory that is not readable.  Return -2 if
68444         a child process is spun off.
68445         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68446         Adjust signature to match code.
68447         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68448         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68449         all users changed.
68450         * lib/savewd.c, lib/savewd.h: New files.
68451
68452 2006-09-15  Jim Meyering  <jim@meyering.net>
68453
68454         * modules/rename-dest-slash: New module.
68455         * MODULES.html.sh (posix_compat): Add it here.
68456
68457         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68458
68459 2006-09-15  Jim Meyering  <jim@meyering.net>
68460
68461         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68462         file.
68463
68464         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68465
68466 2006-09-15  Jim Meyering  <jim@meyering.net>
68467
68468         * lib/rename-dest-slash.c (has_trailing_slash): Use
68469         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68470         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68471         test before testing whether SRC is a directory.
68472         Suggestions from Bruno Haible.
68473
68474         Avoid a warning about an unused variable.
68475         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68476         into the #ifdef block where it's used.
68477
68478         * lib/rename-dest-slash.c: New file.
68479
68480 2006-09-14  Bruno Haible  <bruno@clisp.org>
68481
68482         * lib/allocsa.c: Include <config.h> unconditionally.
68483         * lib/asnprintf.c: Likewise.
68484         * lib/asprintf.c: Likewise.
68485         * lib/c-strcasecmp.c: Likewise.
68486         * lib/c-strcasestr.c: Likewise.
68487         * lib/c-strncasecmp.c: Likewise.
68488         * lib/c-strstr.c: Likewise.
68489         * lib/classpath.c: Likewise.
68490         * lib/clean-temp.c: Likewise.
68491         * lib/concatpath.c: Likewise.
68492         * lib/copy-file.c: Likewise.
68493         * lib/csharpcomp.c: Likewise.
68494         * lib/csharpexec.c: Likewise.
68495         * lib/execute.c: Likewise.
68496         * lib/fatal-signal.c: Likewise.
68497         * lib/findprog.c: Likewise.
68498         * lib/fwriteerror.c: Likewise.
68499         * lib/gl_array_list.c: Likewise.
68500         * lib/gl_array_oset.c: Likewise.
68501         * lib/gl_avltree_list.c: Likewise.
68502         * lib/gl_avltree_oset.c: Likewise.
68503         * lib/gl_avltreehash_list.c: Likewise.
68504         * lib/gl_carray_list.c: Likewise.
68505         * lib/gl_linked_list.c: Likewise.
68506         * lib/gl_linkedhash_list.c: Likewise.
68507         * lib/gl_list.c: Likewise.
68508         * lib/gl_oset.c: Likewise.
68509         * lib/gl_rbtree_list.c: Likewise.
68510         * lib/gl_rbtree_oset.c: Likewise.
68511         * lib/gl_rbtreehash_list.c: Likewise.
68512         * lib/imaxabs.c: Likewise.
68513         * lib/imaxdiv.c: Likewise.
68514         * lib/javacomp.c: Likewise.
68515         * lib/javaexec.c: Likewise.
68516         * lib/javaversion.c: Likewise.
68517         * lib/linebreak.c: Likewise.
68518         * lib/localcharset.c: Likewise.
68519         * lib/lock.c: Likewise.
68520         * lib/mbchar.c: Likewise.
68521         * lib/mbswidth.c: Likewise.
68522         * lib/mkdtemp.c: Likewise.
68523         * lib/pipe.c: Likewise.
68524         * lib/printf-args.c: Likewise.
68525         * lib/printf-parse.c: Likewise.
68526         * lib/progname.c: Likewise.
68527         * lib/progreloc.c: Likewise.
68528         * lib/readlink.c: Likewise.
68529         * lib/sh-quote.c: Likewise.
68530         * lib/stpcpy.c: Likewise.
68531         * lib/stpncpy.c: Likewise.
68532         * lib/strcasecmp.c: Likewise.
68533         * lib/strcasestr.c: Likewise.
68534         * lib/strcspn.c: Likewise.
68535         * lib/striconv.c: Likewise.
68536         * lib/strncasecmp.c: Likewise.
68537         * lib/strnlen1.c: Likewise.
68538         * lib/strstr.c: Likewise.
68539         * lib/strtok_r.c: Likewise.
68540         * lib/tls.c: Likewise.
68541         * lib/tmpdir.c: Likewise.
68542         * lib/unicodeio.c: Likewise.
68543         * lib/unsetenv.c: Likewise.
68544         * lib/vasnprintf.c: Likewise.
68545         * lib/vasprintf.c: Likewise.
68546         * lib/wait-process.c: Likewise.
68547         * lib/xallocsa.c: Likewise.
68548         * lib/xsetenv.c: Likewise.
68549         * lib/xstriconv.c: Likewise.
68550
68551 2006-09-13  Simon Josefsson  <jas@extundo.com>
68552
68553         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68554         that internally, suggested by Ralf Wildenhues
68555         <Ralf.Wildenhues@gmx.de>.
68556
68557 2006-09-13  Simon Josefsson  <jas@extundo.com>
68558
68559         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68560         @LIBOBJS@.
68561         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68562
68563 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68564
68565         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68566         longer worry about uses that don't define HAVE_CONFIG_H.
68567         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68568         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68569         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68570         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68571         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68572         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68573         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68574         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68575         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68576         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68577         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68578         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68579         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68580         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68581         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68582         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68583         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68584         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68585         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68586         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68587         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68588         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68589         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68590         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68591         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68592         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68593         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68594         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68595         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68596         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68597         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68598         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68599         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68600         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68601         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68602         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68603         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68604         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68605         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68606         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68607         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68608         Likewise.
68609
68610 2006-09-13  Eric Blake  <ebb9@byu.net>
68611
68612         * lib/getopt.c: Fix typo in last commit.
68613
68614 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68615
68616         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68617         dgettext.
68618
68619 2006-09-12  Jim Meyering  <jim@meyering.net>
68620
68621         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68622         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68623         Reported by Nelson H. F. Beebe.
68624
68625 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68626
68627         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68628         program_invocation_name and program_invocation_short_name are
68629         initialized.
68630         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68631         and program_invocation_short_name to argp.h, so they are visible
68632         to user programs.
68633         * lib/argp.h: Likewise
68634
68635 2006-09-10  Bruno Haible  <bruno@clisp.org>
68636
68637         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68638         m4/inttypes_h.m4, m4/uintmax_t.m4.
68639
68640 2006-09-10  Bruno Haible  <bruno@clisp.org>
68641
68642         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68643         gl_AC_TYPE_UINTMAX_T.
68644
68645 2006-09-10  Bruno Haible  <bruno@clisp.org>
68646
68647         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68648
68649 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68650
68651         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68652         convention.  Text proposed by Bruno Haible.
68653         (struct argp_option): Document the use of N_() wrappers.
68654
68655         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68656         '\v', and translate the two parts separately, instead of feeding
68657         the whole string to gettext.  This allows to exclude
68658         '\v' from the strings visible to the translator by writing doc
68659         strings as N_("..") "\v" N_("..").
68660
68661 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68662
68663         * config/srclist.txt: Undo latest change; the bug was fixed.
68664
68665 2006-09-09  Bruno Haible  <bruno@clisp.org>
68666
68667         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68668         assignments if building a library without libtool.
68669         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68670         in func_emit_lib_Makefile_am.
68671         (func_import): When building a static library libfoo.a, arrange to
68672         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68673         (func_create_testdir): Likewise.
68674         * modules/gc (configure.ac, Makefile.am): If building statically,
68675         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68676         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68677         * modules/striconv (configure.ac, Makefile.am): Likewise.
68678         Based on a suggestion by Ralf Wildenhues.
68679
68680 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68681
68682         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68683         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68684         Also:
68685
68686         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68687         Add year_2050_test to catch glibc bug 2821
68688         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68689
68690         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68691         Prefer #ifdef to #if.
68692
68693         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68694         Return from 'main' instead of calling 'exit'.
68695
68696 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68697
68698         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68699         returned the maximum time_t value rather than (time_t) -1.
68700         Problem originally reported by William Bardwell
68701         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68702
68703         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68704         Moved to here ...
68705         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68706         ... from here.
68707
68708 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68709
68710         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68711         2821 is fixed.
68712
68713 2006-09-08  Jim Meyering  <jim@meyering.net>
68714
68715         Don't make generated files read-only.  That would bother too many
68716         people.  However, do retain the ability to work when targets are
68717         read-only: remove the destination and temporary files before writing
68718         them (when generated via sed or echo), or by using the -f option for
68719         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68720         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68721         * modules/byteswap, modules/configmake, modules/fcntl:
68722         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68723         * modules/localcharset, modules/netinet_in, modules/poll:
68724         * modules/stdbool, modules/stdint, modules/sys_select:
68725         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68726
68727 2006-09-08  Jim Meyering  <jim@meyering.net>
68728
68729         Avoid new build failure on FreeBSD 6.0.
68730         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68731         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68732         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68733
68734 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68735
68736         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68737
68738 2006-09-07  Jim Meyering  <jim@meyering.net>
68739
68740         Fix global typo in last change: use chmod u-w, not chmod u-x.
68741         Spotted by Paul Eggert and Bruce Korb.
68742         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68743         * modules/byteswap, modules/configmake, modules/fcntl:
68744         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68745         * modules/localcharset, modules/netinet_in, modules/poll:
68746         * modules/stdbool, modules/stdint, modules/sys_select:
68747         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68748
68749 2006-09-06  Jim Meyering  <jim@meyering.net>
68750
68751         Make generated files be read-only.
68752         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68753         Ensure that each generated file is now read-only.
68754         * modules/argz: Likewise.
68755         * modules/arpa_inet: Likewise.
68756         * modules/byteswap: Likewise.
68757         * modules/configmake: Likewise.
68758         * modules/fcntl: Likewise.
68759         * modules/fnmatch: Likewise.
68760         * modules/getopt: Likewise.
68761         * modules/glob: Likewise.
68762         * modules/inttypes: Likewise.
68763         * modules/netinet_in: Likewise.
68764         * modules/poll: Likewise.
68765         * modules/stdbool: Likewise.
68766         * modules/stdint: Likewise.
68767         * modules/sys_select: Likewise.
68768         * modules/sys_socket: Likewise.
68769         * modules/sys_stat: Likewise.
68770         * modules/sysexits: Likewise.
68771         * modules/localcharset: Same as above, but continue using temporary
68772         file named "t-$@" (why different?) rather than the "$@-t" used
68773         everywhere else.
68774
68775         * modules/sysexits (Makefile.am): Replace literal occurrences
68776         of "sysexit.h" more readable, and more consistent, "$@".
68777
68778 2006-09-06  Bruno Haible  <bruno@clisp.org>
68779
68780         * modules/striconv: New file.
68781         * modules/xstriconv: New file.
68782         * MODULES.html.sh (Internationalization functions): Add striconv,
68783         xstriconv.
68784
68785 2006-09-06  Bruno Haible  <bruno@clisp.org>
68786
68787         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68788         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68789         not using libtool correctly.
68790
68791 2006-09-06  Bruno Haible  <bruno@clisp.org>
68792
68793         * lib/striconv.h: New file.
68794         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68795         iconvstring.c.
68796         * lib/xstriconv.h: New file.
68797         * lib/xstriconv.c: New file.
68798
68799 2006-09-06  Bruno Haible  <bruno@clisp.org>
68800
68801         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68802         lib_..._LDFLAGS.
68803
68804 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68805
68806         * lib/argz_.h: Sync from Libtool.
68807
68808         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68809                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68810
68811         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68812
68813 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68814
68815         * modules/trim: New file.
68816
68817 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68818
68819         * lib/trim.h: New file.
68820         * lib/trim.c: New file.
68821
68822 2006-09-05  Bruno Haible  <bruno@clisp.org>
68823
68824         * MODULES.html.sh (String handling): Add trim.
68825
68826 2006-09-04  Karl Berry  <karl@gnu.org>
68827
68828         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68829         until next release.
68830
68831 2006-09-03  Bruno Haible  <bruno@clisp.org>
68832
68833         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68834         correctly.
68835
68836 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68837
68838         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68839         not gl_GETLOADAVG.  Omit unneeded semicolons.
68840         Problems reported by Ralf Wildenhues in
68841         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68842         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68843         at the end, which is the usual gnulib style.
68844
68845         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68846         of doing all the work ourselves.
68847         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68848         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68849
68850 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68851
68852         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68853         Problem reported by Ralf Wildenhues in
68854         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68855
68856         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68857         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68858
68859 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68860
68861         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68862         yesterday's patch by changing test -n to test -z.
68863
68864 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68865
68866         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68867         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68868         the former is now obsolescent.
68869
68870         * modules/chdir-long (Depends-on): Add fcntl.
68871
68872 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68873
68874         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68875         obsolescent, and programs should use gnulib instead.
68876         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68877         but with prefixes changed.
68878
68879 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68880
68881         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68882         or stdbool.h, because they might not exist while configuring.
68883
68884         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68885         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68886         does that for us.
68887         (O_DIRECTORY): Remove.
68888
68889 2006-08-31  Eric Blake  <ebb9@byu.net>
68890
68891         * gnulib-tool: Don't let emacs change spaces to TAB.
68892
68893 2006-08-31  Bruno Haible  <bruno@clisp.org>
68894
68895         * gnulib-tool: When calling func_import more than once, do it in a
68896         subshell.
68897         Reported by Eric Blake <ebb9@byu.net>.
68898
68899 2006-08-31  Bruno Haible  <bruno@clisp.org>
68900
68901         * gnulib-tool (nl): Remove variable.
68902         (sed_transform_lib_file): Use more robust test for config-h module.
68903         (func_import): Fix typo in 2006-08-25 patch.
68904
68905 2006-08-31  Bruno Haible  <bruno@clisp.org>
68906
68907         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68908         specified, augment Makefile.am variables instead of assigning them.
68909
68910 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68911
68912         Work around a bug in both the Linux and SunOS 64-bit kernels:
68913         nanosleep mishandles sleeps for longer than 2**31 seconds.
68914         Problem reported by Frank v Waveren in
68915         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68916         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68917         Check for nanosleep bug.
68918         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68919
68920 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68921
68922         Work around a bug in both the Linux and SunOS 64-bit kernels:
68923         nanosleep mishandles sleeps for longer than 2**31 seconds.
68924         Problem reported by Frank v Waveren in
68925         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68926         * lib/nanosleep.c (BILLION): New constant.
68927         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68928         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68929         implementation.
68930
68931 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68932
68933         * modules/nanosleep (Depends-on): Add gettime.
68934
68935 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68936         and Simon Josefsson  <jas@extundo.com>
68937         and Oskar Liljeblad  <oskar@osk.mine.nu>
68938
68939         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68940         * gnulib-tool (func_import): New license type 'unmodifiable license
68941         text'.
68942         * modules/fdl: Use it.  Longer description.
68943         * module/gpl, module/lgpl: New files.
68944
68945 2006-08-30  Jim Meyering  <jim@meyering.net>
68946
68947         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68948         shadowing the parameter.
68949
68950 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68951
68952         Sync from Libtool:
68953
68954         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68955
68956         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68957         sharing with gnulib.  Report by Eric Blake.
68958
68959 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68960
68961         * modules/isapipe: New file.
68962         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68963
68964 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68965
68966         * modules/configmake (Makefile.am): Add a comment, and omit
68967         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68968         by Bruno Haible.
68969
68970 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68971
68972         * m4/isapipe.m4: New file.
68973
68974 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68975
68976         * lib/isapipe.c, lib/isapipe.h: New files.
68977
68978 2006-08-29  Jim Meyering  <jim@meyering.net>
68979
68980         * modules/configmake (Makefile.am): Make configmake.h depend on
68981         Makefile.  Otherwise, a stale configmake.h could hang around.
68982
68983 2006-08-29  Eric Blake  <ebb9@byu.net>
68984
68985         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68986         resolution of upstream bug 3044.
68987
68988 2006-08-29  Bruno Haible  <bruno@clisp.org>
68989
68990         * modules/localcharset (Depends-on): Add configmake.
68991         (Makefile.am): Remove setting of LIBDIR through DEFS.
68992
68993 2006-08-29  Bruno Haible  <bruno@clisp.org>
68994
68995         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68996         defined.
68997
68998 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68999
69000         * modules/fcntl: New file.
69001         * modules/chdir-safer (Depends-on): Add fcntl.
69002         * modules/fts: Likewise.
69003         * modules/mkdir-p: Likewise.
69004
69005         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69006         This undoes the most recent change, since we're now addressing the
69007         problem in a different way.
69008
69009         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69010         into output, since the output might be called Makefile.am even
69011         if $makefile_name is something different.
69012         (func_import): Use $makefile_am rather than
69013         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69014         empty.
69015
69016         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69017
69018 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69019
69020         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69021         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69022         recent change to stdint.m4, since we're now addressing the problem in a
69023         different way.
69024
69025 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69026
69027         * m4/fcntl_h.m4: New file.
69028
69029 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69030
69031         * lib/fcntl_.h: New file.
69032         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69033         the fcntl module.
69034         * lib/dirchownmod.c: Likewise.
69035         * lib/fts.c: Likewise.
69036
69037         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69038         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69039         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69040         just before including <inttypes.h>, to avoid circular inclusion.
69041
69042 2006-08-28  Jim Meyering  <jim@meyering.net>
69043
69044         * doc/visibility.texi: Actually read and correct the grammar of the
69045         sentence affected by yesterday's change.
69046
69047 2006-08-28  Eric Blake  <ebb9@byu.net>
69048
69049         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69050         needs wrapper.
69051
69052 2006-08-28  Eric Blake  <ebb9@byu.net>
69053
69054         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69055
69056 2006-08-28  Eric Blake  <ebb9@byu.net>
69057
69058         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69059
69060 2006-08-28  Bruno Haible  <bruno@clisp.org>
69061
69062         * modules/c-strstr: New file, from GNU gettext.
69063         * MODULES.html.sh (String handling): Add c-strstr.
69064
69065 2006-08-28  Bruno Haible  <bruno@clisp.org>
69066
69067         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69068         macros.
69069         Reported by Eric Blake.
69070
69071 2006-08-28  Bruno Haible  <bruno@clisp.org>
69072
69073         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69074         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69075         * lib/vasprintf.c: Include errno.h, limits.h.
69076         (EOVERFLOW): New fallback definition.
69077         (vasprintf): Test here whether the string length is > INT_MAX.
69078         * lib/vsnprintf.c: Include errno.h, limits.h.
69079         (EOVERFLOW): New fallback definition.
69080         (vsnprintf): Fix bug when generated string was too long for the buffer.
69081         Test here whether the string length is > INT_MAX.
69082
69083 2006-08-28  Bruno Haible  <bruno@clisp.org>
69084
69085         * lib/inttypes_.h (SCNX*): Remove definitions.
69086         Reported by Eric Blake.
69087
69088 2006-08-28  Bruno Haible  <bruno@clisp.org>
69089
69090         * lib/c-strstr.h: New file, from GNU gettext.
69091         * lib/c-strstr.c: New file, from GNU gettext.
69092
69093 2006-08-28  Bruno Haible  <bruno@clisp.org>
69094
69095         * gnulib-tool: Reorder some statements.
69096
69097 2006-08-28  Bruno Haible  <bruno@clisp.org>
69098
69099         * gnulib-tool: New option --makefile-name.
69100         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69101         $makefile_name.
69102         (func_import): Write $makefile_name to the cache file, and read it from
69103         there unless explicitly specified. Use $makefile_name as file name
69104         instead of Makefile.am. Adjust the recommendations accordingly.
69105
69106 2006-08-28  Bruno Haible  <bruno@clisp.org>
69107
69108         * gnulib-tool (func_verify_module): Check against misapplying patch.
69109
69110 2006-08-28  Bruno Haible  <bruno@clisp.org>
69111
69112         * gnulib-tool (func_relativize, func_relconcat): New functions.
69113         Give an error if --local-dir is given with --update.
69114         Remove trailing slashes from $local_gnulib_dir.
69115         (func_import): Store the relativized $local_gnulib_dir in
69116         gnulib-cache.m4, and read it from there if not specified explicitly.
69117
69118 2006-08-28  Bruno Haible  <bruno@clisp.org>
69119
69120         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69121         is the current directory. Respect also $local_gnulib_dir.
69122
69123 2006-08-28  Bruno Haible  <bruno@clisp.org>
69124             Simon Josefsson  <jas@extundo.com>
69125
69126         BeOS portability.
69127         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69128
69129 2006-08-27  Jim Meyering  <jim@meyering.net>
69130
69131         * doc/visibility.texi: Remove duplicate word: "pointer".
69132
69133 2006-08-26  Bruno Haible  <bruno@clisp.org>
69134
69135         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69136         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69137         (Makefile.am): Create inttypes.h from inttypes_.h.
69138         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69139
69140         * modules/imaxabs: New file.
69141
69142         * modules/imaxdiv: New file.
69143
69144 2006-08-26  Bruno Haible  <bruno@clisp.org>
69145
69146         * m4/inttypes.m4: New file.
69147         * m4/_inttypes_h.m4: Remove file.
69148         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69149         PRI_MACROS_BROKEN.
69150         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69151
69152         * m4/imaxabs.m4: New file.
69153
69154         * m4/imaxdiv.m4: New file.
69155
69156 2006-08-26  Bruno Haible  <bruno@clisp.org>
69157
69158         * lib/inttypes_.h: New file.
69159         * lib/inttypes.h: Remove file.
69160         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69161
69162         * lib/imaxabs.c: New file.
69163
69164         * lib/imaxdiv.c: New file.
69165
69166 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69167
69168         New config-h module, so that "make" output needn't be cluttered
69169         by -DHAVE_CONFIG_H.
69170         * MODULES.html.sh (Support for building libraries and executables):
69171         Add config-h.
69172         * modules/config-h: New file.
69173         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69174         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69175         the config-h module is used.
69176
69177         New configmake module, so that "make" output needn't be cluttered
69178         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69179         * MODULES.html.sh (Support for building libraries and executables):
69180         Add configmake.
69181         * modules/configmake: New file.
69182
69183 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69184
69185         * m4/config-h.m4: New file.
69186
69187 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69188
69189         * config/srclist.txt: Add elisp-comp.
69190
69191 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69192
69193         * MODULES.html.sh (Support for building libraries and executables):
69194         Add elisp-comp.
69195         * build-aux/elisp-comp: New file.
69196         * modules/elisp-comp: New file.
69197
69198 2006-08-24  Bruno Haible  <bruno@clisp.org>
69199
69200         * gnulib-tool (func_create_testdir): Use non-default values of
69201         sourcebase and m4base.
69202
69203 2006-08-24  Bruno Haible  <bruno@clisp.org>
69204
69205         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69206         HTML structure.
69207
69208 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69209
69210         * modules/openat (Depends-on): Add lchown.
69211
69212 2006-08-23  Bruno Haible  <bruno@clisp.org>
69213
69214         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69215         of gl_LOCK_EARLY instead of gl_LOCK.
69216
69217 2006-08-23  Bruno Haible  <bruno@clisp.org>
69218
69219         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69220         on OSF/1 to no.
69221         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69222
69223 2006-08-23  Bruno Haible  <bruno@clisp.org>
69224
69225         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69226         as unusable.
69227
69228         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69229         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69230         (gl_LOCK): New macro.
69231
69232 2006-08-22  Simon Josefsson  <jas@extundo.com>
69233
69234         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69235         to md5 module.
69236
69237 2006-08-22  Simon Josefsson  <jas@extundo.com>
69238
69239         * MODULES.html.sh: Add "Support for maintaining and release
69240         projects".
69241
69242         * build-aux/gnupload: New file, from coreutils.
69243
69244 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69245
69246         Avoid the need for AC_LIBSOURCES in m4 macros.
69247         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69248         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69249         * modules/check-version (EXTRA_DIST): Add check-version.h.
69250         * modules/crc (EXTRA_DIST): Add crc.h.
69251         * modules/des (EXTRA_DIST): Add des.h.
69252         * modules/gc (EXTRA_DIST): Add gc.h.
69253         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69254         * modules/getline (EXTRA_DIST): Add getline.h.
69255         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69256         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69257         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69258         * modules/md2 (EXTRA_DIST): Add md2.h.
69259         * modules/md4 (EXTRA_DIST): Add md4.h.
69260         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69261         * modules/read-file (EXTRA_DIST): Add read-file.h.
69262         * modules/readline (EXTRA_DIST): Add readline.h.
69263         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69264         rijndael-api-fst.h.
69265
69266 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69267
69268         * m4/rijndael.m4 (gl_ARCFOUR):
69269         * m4/arctwo.m4 (gl_ARCTWO):
69270         * m4/check-version.m4 (gl_CHECK_VERSION):
69271         * m4/crc.m4 (gl_CRC):
69272         * m4/des.m4 (gl_DES):
69273         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69274         * m4/gc.m4 (gl_GC):
69275         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69276         * m4/getline.m4 (gl_FUNC_GETLINE):
69277         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69278         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69279         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69280         * m4/md2.m4 (gl_MD2):
69281         * m4/md4.m4 (gl_MD4):
69282         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69283         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69284         * m4/readline.m4 (gl_FUNC_READLINE):
69285         * m4/rijndael.m4 (gl_RIJNDAEL):
69286         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69287         to get the necessary .h files and whatnot.
69288
69289 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69290
69291         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69292         gnulib rather than the other way around.
69293         * config/srclistvars.sh (COREUTILS): Remove.
69294
69295 2006-08-22  Jim Meyering  <jim@meyering.net>
69296
69297         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69298
69299         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69300
69301 2006-08-22  Eric Blake  <ebb9@byu.net>
69302
69303         * modules/regexprops-generic: New file.
69304         * MODULES.html.sh (Support for building documentation): List it.
69305
69306 2006-08-22  Eric Blake  <ebb9@byu.net>
69307
69308         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69309         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69310         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69311         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69312
69313 2006-08-22  Bruno Haible  <bruno@clisp.org>
69314
69315         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69316         and lib_LTLIBRARIES like the other lib_* variables.
69317
69318 2006-08-22  Bruno Haible  <bruno@clisp.org>
69319
69320         * build-aux/x-to-1.in: New file, from GNU gettext.
69321
69322 2006-08-22  Bruno Haible  <bruno@clisp.org>
69323
69324         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69325         <utmpx.h> exists.
69326
69327 2006-08-22  Bruno Haible  <bruno@clisp.org>
69328
69329         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69330         <utmpx.h> exists.
69331
69332 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69333
69334         BeOS portability.
69335         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69336         exist.
69337         Problem reported by Bruno Haible.
69338
69339 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69340
69341         Avoid the need for AC_LIBSOURCES in m4 macros.
69342         * modules/acl (EXTRA_DIST): Add acl.h.
69343         * modules/argmatch (Files): Add m4/argmatch.m4.
69344         (configure.ac): Add gl_ARGMATCH.
69345         (EXTRA_DIST): Renamed from lib_SOURCES, for
69346         consistency with the other modules.  Remove argmatch.c.
69347         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69348         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69349         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69350         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69351         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69352         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69353         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69354         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69355         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69356         * modules/closeout (EXTRA_DIST): Add closeout.h.
69357         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69358         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69359         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69360         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69361         dirname.h; remove basename.c and stripslash.c.
69362         * modules/exclude (EXTRA_DIST): Add exclude.h.
69363         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69364         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69365         * modules/file-type (EXTRA_DIST): Add file-type.h.
69366         * modules/filemode (EXTRA_DIST): Add filemode.h.
69367         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69368         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69369         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69370         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69371         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69372         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69373         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69374         * modules/getdate (EXTRA_DIST): Add getdate.c.
69375         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69376         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69377         * modules/getpass (EXTRA_DIST): Add getpass.h.
69378         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69379         * modules/group-member (EXTRA_DIST): Add group-member.h.
69380         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69381         * modules/hash (EXTRA_DIST): Add hash.h.
69382         * modules/human (EXTRA_DIST): Add human.h.
69383         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69384         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69385         * modules/lchown (EXTRA_DIST): Add lchown.h.
69386         * modules/long-options (EXTRA_DIST): Add long-options.h.
69387         * modules/lstat (EXTRA_DIST): Add lstat.h.
69388         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69389         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69390         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69391         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69392         * modules/memxor (EXTRA_DIST): Add memxor.h.
69393         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69394         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69395         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69396         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69397         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69398         * modules/physmem (EXTRA_DIST): Add physmem.h.
69399         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69400         * modules/posixver (EXTRA_DIST): Add posixver.h.
69401         * modules/quote (EXTRA_DIST): Add quote.h.
69402         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69403         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69404         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69405         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69406         regex_internal.h regexec.c.
69407         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69408         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69409         * modules/same (EXTRA_DIST): Add same.h.
69410         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69411         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69412         * modules/savedir (EXTRA_DIST): Add savedir.h.
69413         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69414         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69415         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69416         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69417         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69418         * modules/strdup (EXTRA_DIST): Add strdup.h.
69419         * modules/strftime (EXTRA_DIST): Add strftime.h.
69420         * modules/strndup (EXTRA_DIST): Add strndup.h.
69421         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69422         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69423         * modules/time_r (EXTRA_DIST): Add time_r.h.
69424         * modules/timespec (EXTRA_DIST): Add timespec.h.
69425         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69426         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69427         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69428         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69429         * modules/userspec (EXTRA_DIST): Add userspec.h.
69430         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69431         * modules/utimens (EXTRA_DIST): Add utimens.h.
69432         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69433         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69434         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69435         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69436         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69437         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69438         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69439         * modules/yesno (EXTRA_DIST): Add yesno.h.
69440
69441 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69442
69443         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69444
69445         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69446         * m4/dev-ino.m4, same-inode.m4: Remove.
69447
69448         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69449         * m4/acl.m4 (AC_FUNC_ACL):
69450         * m4/backupfile.m4 (gl_BACKUPFILE):
69451         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69452         * m4/canon-host.m4 (gl_CANON_HOST):
69453         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69454         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69455         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69456         * m4/cloexec.m4 (gl_CLOEXEC):
69457         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69458         * m4/closeout.m4 (gl_CLOSEOUT):
69459         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69460         * m4/dirname.m4 (gl_DIRNAME):
69461         * m4/exclude.m4 (gl_EXCLUDE):
69462         * m4/exitfail.m4 (gl_EXITFAIL):
69463         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69464         * m4/file-type.m4 (gl_FILE_TYPE):
69465         * m4/filemode.m4 (gl_FILEMODE):
69466         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69467         * m4/fpending.m4 (gl_FUNC_FPENDING):
69468         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69469         * m4/fts.m4 (gl_FUNC_FTS):
69470         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69471         * m4/getdate.m4 (gl_GETDATE):
69472         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69473         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69474         * m4/getpass.m4 (gl_FUNC_GETPASS):
69475         * m4/gettime.m4 (gl_GETTIME):
69476         * m4/getugroups.m4 (gl_GETUGROUPS):
69477         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69478         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69479         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69480         * m4/hash.m4 (gl_HASH):
69481         * m4/idcache.m4 (gl_IDCACHE):
69482         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69483         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69484         * m4/long-options.m4 (gl_LONG_OPTIONS):
69485         * m4/lstat.m4 (gl_FUNC_LSTAT):
69486         * m4/md5.m4 (gl_MD5):
69487         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69488         * m4/memcoll.m4 (gl_MEMCOLL):
69489         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69490         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69491         * m4/memxor.m4 (gl_MEMXOR):
69492         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69493         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69494         * m4/modechange.m4 (gl_MODECHANGE):
69495         * m4/mountlist.m4 (gl_MOUNTLIST):
69496         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69497         * m4/openat.m4 (gl_FUNC_OPENAT):
69498         * m4/pathmax.m4 (gl_PATHMAX):
69499         * m4/physmem.m4 (gl_PHYSMEM):
69500         * m4/posixtm.m4 (gl_POSIXTM):
69501         * m4/posixver.m4 (gl_POSIXVER):
69502         * m4/quote.m4 (gl_QUOTE):
69503         * m4/quotearg.m4 (gl_QUOTEARG):
69504         * m4/readtokens.m4 (gl_READTOKENS):
69505         * m4/readutmp.m4 (gl_READUTMP):
69506         * m4/regex.m4 (gl_REGEX):
69507         * m4/safe-read.m4 (gl_SAFE_READ):
69508         * m4/safe-write.m4 (gl_SAFE_WRITE):
69509         * m4/same.m4 (gl_SAME):
69510         * m4/save-cwd.m4 (gl_SAVE_CWD):
69511         * m4/savedir.m4 (gl_SAVEDIR):
69512         * m4/settime.m4 (gl_SETTIME):
69513         * m4/sha1.m4 (gl_SHA1):
69514         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69515         * m4/stat-macros.m4 (gl_STAT_MACROS):
69516         * m4/stat-time.m4 (gl_STAT_TIME):
69517         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69518         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69519         * m4/strdup.m4 (gl_FUNC_STRDUP):
69520         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69521         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69522         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69523         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69524         * m4/time_r.m4 (gl_TIME_R):
69525         * m4/timespec.m4 (gl_TIMESPEC):
69526         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69527         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69528         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69529         * m4/userspec.m4 (gl_USERSPEC):
69530         * m4/utimecmp.m4 (gl_UTIMECMP):
69531         * m4/utimens.m4 (gl_UTIMENS):
69532         * m4/xalloc.m4 (gl_XALLOC):
69533         * m4/xgetcwd.m4 (gl_XGETCWD):
69534         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69535         * m4/xreadlink.m4 (gl_XREADLINK):
69536         * m4/xstrtod.m4 (gl_XSTRTOD):
69537         * m4/yesno.m4 (gl_YESNO):
69538         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69539         to get the necessary .h files and whatnot.
69540
69541 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69542             Bruno Haible  <bruno@clisp.org>
69543
69544         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69545         /bin/sh understanding of '!' conditional negation.
69546
69547 2006-08-21  Jim Meyering  <jim@meyering.net>
69548
69549         * modules/openat (Depends-on): Really alphabetize.
69550
69551         * modules/acl (Depends-on): Add error and quote.
69552
69553         * check-module (find_included_lib_files): Add at-func.c to the
69554         ok-to-include-more-than-once white list.
69555
69556         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69557
69558 2006-08-21  Bruno Haible  <bruno@clisp.org>
69559
69560         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69561         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69562         Reported by Martin Lambers <marlam@marlam.de>.
69563
69564 2006-08-21  Bruno Haible  <bruno@clisp.org>
69565
69566         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69567         specify an installation location, don't emit a noinst_LIBRARIES or
69568         noinst_LTLIBRARIES assignment.
69569
69570 2006-08-21  Bruno Haible  <bruno@clisp.org>
69571
69572         BeOS portability.
69573         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69574         BeOS has mbrtowc() but no <wctype.h>.
69575
69576 2006-08-21  Bruno Haible  <bruno@clisp.org>
69577
69578         BeOS portability.
69579         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69580         exist.
69581
69582 2006-08-21  Bruno Haible  <bruno@clisp.org>
69583
69584         BeOS portability.
69585         * lib/mbchar.h: Include <wctype.h> only if it exists.
69586
69587 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69588
69589         Remove files that are no longer needed by their respective modules.
69590         * m4/obstack.m4: Remove.
69591         * m4/strerror_r.m4: Remove.
69592         * m4/uint32_t.m4: Remove.
69593         * m4/uintptr_t.m4: Remove.
69594         * m4/ullong_max.m4: Remove.
69595         * m4/xstrtoimax.m4: Remove.
69596         * m4/xstrtoumax.m4: Remove.
69597
69598         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69599         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69600         dependencies now capture this.
69601
69602         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69603         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69604         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69605         * m4/human.m4 (gl_HUMAN): Likewise.
69606         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69607         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69608
69609         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69610
69611         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69612         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69613         stdint.
69614         * m4/human.m4 (gl_HUMAN): Likewise.
69615         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69616         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69617         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69618         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69619         * m4/xstrtol (gl_XSTRTOL): Likewise.
69620
69621         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69622         AC_TYPE_LONG_LONG_INT.
69623         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69624         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69625         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69626         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69627
69628         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69629         on stdbool.
69630
69631         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69632         (gl_PREREQ_XSTRTOUL): Remove.
69633
69634         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69635
69636         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69637         mode.
69638
69639 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69640
69641         Add and change modules to make it easier for coreutils to use
69642         gnulib-tool.
69643         * modules/backupfile (Files): Remove m4/d-ino.m4.
69644         (Depends-on): Add d-ino.
69645         * modules/cycle-check (Depends-on): Add stdint.
69646         (lib_SOURCES): Add cycle-check.h.
69647         * modules/d-ino: New module.
69648         * modules/d-type: New module.
69649         * modules/error (Files): Remove m4/strerror_r.m4.
69650         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69651         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69652         m4/inttypes_h.m4, m4/uintmax_t.m4.
69653         (Depends-on): Add stdint.
69654         (lib_SOURCES): Add fsusage.h.
69655         * modules/getcwd (Files): Remove d-ino.m4.
69656         (Depends-on): Add d-ino.
69657         * modules/getndelim2 (Depends-on): Add stdint.
69658         * modules/glob (Files): Remove m4/d-type.m4.
69659         (Depends-on): Add d-type.
69660         * modules/host-os: New module.
69661         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69662         m4/inttypes_h.m4, m4/uintmax_t.m4.
69663         * Depends-on: Add stdint.
69664         (lib_SOURCES): Add human.h.
69665         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69666         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69667         m4/uintmax_t.m4, m4/ulonglong.m4.
69668         (Depends-on): Add stdint.
69669         (EXTRA_DIST): Add inttostr.h.
69670         * modules/lchmod: New module.
69671         * modules/link-follow: New module.
69672         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69673         (Depends-on): Add lchmod.
69674         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69675         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69676         (Depends-on): Add stdint.
69677         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69678         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69679         (Depends-on): Add stdint.
69680         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69681         * modules/perl: New module.
69682         * modules/regex (Depends-on): Add stdint.
69683         * modules/rmdir-errno: New module.
69684         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69685         m4/intmax_t.m4.
69686         (Depends-on): Add stdint.
69687         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69688         m4/uintmax_t.m4.
69689         (Depends-on): Add stdint.
69690         * modules/unlink-busy: New module.
69691         * modules/utimecmp (Depends-on): Add stdint.
69692         * modules/uptime: New module.
69693         * modules/winsz-ioctl: New module.
69694         * modules/winsz-termios: New module.
69695         * modules/xnanosleep (Depends-on): Add nanosleep.
69696         * modules/ullong_max: Remove.
69697         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69698         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69699         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69700         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69701         (Depends-on): Add inttypes.
69702         (lib_SOURCES): Add xstrtol.h.
69703         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69704         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69705         * MODULES.html.sh: Move 'assert' into the assert section.
69706         Move 'dummy' into the linking section.
69707         Remove ullong_max.
69708         Add section for compatibility checks for POSIX:2001 functions,
69709         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69710         winsz-ioctl, and winsz-termios into it.
69711         Add lchmod.
69712         Add top-level Misc section and put host-os, perl, and uptime
69713         into it.
69714
69715 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69716
69717         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69718         now assume the stdint module.  Do not include inttypes.h.
69719         * lib/fsusage.h: Likewise.
69720         * lib/getndelim2.c: Likewise.
69721         * lib/human.h: Likewise.
69722         * lib/inttostr.h: Likewise.
69723         * lib/obstack.c: Likewise.
69724         * lib/regex_internal.h: Likewise.
69725         * lib/tempname.c: Likewise.
69726         * lib/utimecmp.c: Likewise.
69727         * lib/xstrtol.h: Likewise.
69728
69729         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69730
69731         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69732         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69733         * lib/xtime.h: Likewise.
69734
69735 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69736
69737         * modules/openat (Files): Add lib/fchmodat.c.
69738         Fixes problem reported by Jay Youngman.
69739
69740 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69741
69742         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69743         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69744
69745 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69746             Bruno Haible  <bruno@clisp.org>
69747
69748         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69749         and is a script that invokes bison. Tighten the code. Add comments.
69750
69751 2006-08-18  Jim Meyering  <jim@meyering.net>
69752
69753         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69754         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69755         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69756         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69757
69758 2006-08-18  Bruno Haible  <bruno@clisp.org>
69759
69760         * modules/bison-i18n: New file.
69761         * MODULES.html.sh (Internationalization functions): Add it.
69762
69763 2006-08-18  Bruno Haible  <bruno@clisp.org>
69764
69765         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69766         sys/statvfs.h. When getmntinfo was found, check its declaration and
69767         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69768
69769 2006-08-18  Bruno Haible  <bruno@clisp.org>
69770
69771         * m4/bison-i18n.m4: New file, from bison.
69772
69773 2006-08-18  Bruno Haible  <bruno@clisp.org>
69774
69775         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69776         (ME_DUMMY): Treat "kernfs" as a dummy.
69777         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69778
69779 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69780
69781         Update from coreutils.
69782
69783         2006-08-15  Jim Meyering  <jim@meyering.net>
69784
69785         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69786
69787         2006-01-17  Jim Meyering  <jim@meyering.net>
69788
69789         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69790
69791         2006-01-11  Jim Meyering  <jim@meyering.net>
69792
69793         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69794         Check for the lchmod function.
69795
69796 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69797
69798         Update from coreutils.
69799
69800         * lib/__fpending.h: Add copyright notice.
69801         * lib/fprintftime.h: Likewise.
69802         * lib/savedir.c: Use (C) in copyright notice.
69803         * lib/savedir.h: Likewise.
69804
69805         2006-08-15  Jim Meyering  <jim@meyering.net>
69806
69807         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69808         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69809         in support of the EXPECTED_ERRNO macro.
69810         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69811         definitions.  Instead, define the appropriate symbols and include
69812         "at-func.c".
69813         * lib/mkdirat.c (mkdirat): Likewise.
69814         * lib/fchmodat.c (fchmodat): Likewise.
69815         (ENOSYS): Remove definition.
69816         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69817         it.  Don't include "unistd--.h" -- it wasn't ever used.
69818
69819         2006-01-17  Jim Meyering  <jim@meyering.net>
69820
69821         Rewrite fts.c not to change the current working directory,
69822         by using openat, fstatat, fdopendir, etc..
69823
69824         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69825         (HAVE_OPENAT_SUPPORT): Define.
69826         [_LIBC] (fchdir): Don't undef or define; no longer used.
69827         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69828         Now, this `function' always succeeds, and consumes its file descriptor
69829         parameter -- so callers must not close such FDs.  Update callers.
69830         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69831         (diropen): Add parameter, SP.  Adjust all callers.
69832         Implement using diropen_fd, rather than open.
69833         (fts_open): Initialize new member, fts_cwd_fd.
69834         Remove fts_rft-setting code.
69835         (fts_close): Close fts_cwd_fd, if necessary.
69836         (__opendir2): Define in terms of opendir or opendirat,
69837         depending on whether the FST_NOCHDIR flag is set.
69838         (fts_build): Since fts_safe_changedir consumes its FD, and since
69839         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69840         and close the dup'd file descriptor upon failure.
69841         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69842         (fts_safe_changedir): Tweak semantics to reflect that this function
69843         now calls cwd_advance_fd and hence consumes its FD argument.
69844         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69845         [struct FTS] (fts_rft): Remove now-unused member.
69846         [struct FTS] (fts_cycle.state): Improve comment.
69847
69848         * lib/openat.c (openat_needs_fchdir): New function.
69849         * lib/openat.h (openat_needs_fchdir): Declare it.
69850
69851 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69852
69853         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69854         Problem and fix reported by Pádraig Brady in
69855         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69856
69857 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69858
69859         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69860
69861 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69862
69863         * lib/memcoll.c (memcoll): Optimize for the common case where the
69864         arguments are bytewise equal.
69865
69866 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69867
69868         * doc/regexprops-generic.texi: Add a copyright notice.
69869
69870 2006-08-15  Bruno Haible  <bruno@clisp.org>
69871
69872         * modules/tmpdir (License): Change to LGPL.
69873
69874 2006-08-15  Bruno Haible  <bruno@clisp.org>
69875
69876         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69877         module.
69878
69879 2006-08-14  Simon Josefsson  <jas@extundo.com>
69880
69881         * config/srclist.txt: Add gnupload.
69882
69883 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69884
69885         Change copyright notice from LGPL 2 to GPL 2, since that's the
69886         standard form used in the gnulib repository.
69887         * tests/test-lock.c: Likewise.
69888         * tests/test-stdint.c: Likewise.
69889         * tests/test-tls.c: Likewise.
69890
69891         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69892         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69893         Add copyright notice.
69894
69895         * check-module: Add copyright notice.  Output a copyright
69896         notice if "--version" is specified.
69897         * modules/COPYING: New file.
69898         * tests/test-getaddrinfo.c: Add copyright notice.
69899         * tests/test-verify.c: Likewise.
69900
69901 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         Change copyright notice from LGPL 2 to GPL 2, since that's the
69904         standard form used in the gnulib repository.
69905         * lib/lock.c: LGPL -> GPL.
69906         * lib/lock.h: Likewise.
69907         * lib/strnlen1.c: Likewise.
69908         * lib/strnlen1.h: Likewise.
69909         * lib/tls.c: Likewise.
69910         * lib/tls.h: Likewise.
69911         * lib/tmpdir.c: Likewise.
69912
69913         * lib/TODO: Remove; this belongs only in coreutils.
69914
69915 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69916
69917         Add copyright notices to long-enough files that lack them, since
69918         otherwise the files aren't clearly free.  Use the same notice that
69919         getdate.texi already uses.
69920         * doc/alloca-opt.texi: Add copyright notice.
69921         * doc/alloca.texi: Likewise.
69922         * doc/ctime.texi: Likewise.
69923         * doc/functions.texi: Likewise.
69924         * doc/gcd.texi: Likewise.
69925         * doc/gnulib-tool.texi: Likewise.
69926         * doc/inet_ntoa.texi: Likewise.
69927         * doc/visibility.texi: Likewise.
69928
69929         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69930         * doc/quote.texi: Add copyright notice.
69931
69932         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69933         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69934         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69935         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69936         is now obsolete, and give a pointer to the Sun list.
69937         Add copyright notice.
69938
69939 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69940
69941         * config/srclistvars.sh: Add copyright notice.
69942
69943 2006-08-14  Eric Blake  <ebb9@byu.net>
69944
69945         Import the following change from libc:
69946
69947         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69948
69949         Upstream bug 2997.
69950         * lib/misc/error.c: Add space between program name and message if file
69951         name is missing.
69952
69953 2006-08-12  Karl Berry  <karl@gnu.org>
69954
69955         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69956         remove, these originate in gnulib now.
69957
69958 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69959
69960         * doc/Makefile (standards.info standards.html standards.dvi):
69961         Also depend on make-stds.texi.
69962
69963 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69964
69965         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69966         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69967
69968         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69969         in wchar_t.  Problem reported by Eric Blake.
69970
69971         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69972         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69973         Also, help the compiler to keep LEN in a register.
69974
69975 2006-08-11  Eric Blake  <ebb9@byu.net>
69976
69977         * users.txt: Sort.  Add tar.
69978
69979 2006-08-11  Bruno Haible  <bruno@clisp.org>
69980
69981         * users.txt: New file.
69982
69983 2006-08-11  Bruno Haible  <bruno@clisp.org>
69984
69985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69986         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69987
69988 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69989
69990         * modules/snprintf (Depends-on): Remove minmax.
69991         (Maintainer): Add self and Bruno.
69992
69993 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69994
69995         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69996         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69997         (EOVERFLOW): Define if the system does not.
69998         Do not include "minmax.h"; it wasn't used.
69999         (snprintf): Don't assume size_t promotes to an unsigned type.
70000         Fix bug when generated string was too long for the buffer: the
70001         buffer's contents are supposed to be the initial prefix of the
70002         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70003         exceeds INT_MAX; do the check ourselves.
70004
70005         Import the following changes from libc:
70006
70007         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70008
70009         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70010         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70011         set wc to the byte which couldn't be converted.
70012         (re_string_reconstruct): Don't clear valid_raw_len before calling
70013         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70014         tip_context using re_string_context_at.
70015
70016         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70017
70018         * lib/posix/regex.h: g++ still cannot handled [restrict].
70019
70020         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70021
70022         * lib/posix/regex.h: Remove special handling for VMS.
70023
70024 2006-08-10  Jim Meyering  <jim@meyering.net>
70025
70026         * modules/same-inode: New module.
70027         * modules/dev-ino: New module.
70028         * modules/cycle-check: Depend on these modules, rather than simply
70029         including their .h files.
70030         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70031         required via m4/cycle-check.m4.
70032         * modules/same: Depend on new same-inode module, rather than
70033         including same-inode.h.
70034         * modules/chdir-safer: New file.
70035
70036         * modules/chown (Depends-on): Add stat-macros.
70037
70038 2006-08-10  Jim Meyering  <jim@meyering.net>
70039
70040         * m4/cycle-check.m4: New file.
70041         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70042         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70043
70044 2006-08-10  Eric Blake  <ebb9@byu.net>
70045
70046         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70047         in from original proposal.
70048
70049 2006-08-10  Eric Blake  <ebb9@byu.net>
70050         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70051
70052         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70053         namespace.
70054
70055 2006-08-10  Bruno Haible  <bruno@clisp.org>
70056
70057         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70058         as well.
70059
70060 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70061
70062         Sync from coreutils.
70063
70064         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70065
70066         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70067         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70068
70069 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70070
70071         * modules/restrict: Remove; no longer needed now that we assume
70072         Autoconf 2.59 or later.
70073         * MODULES.html.sh: Remove 'restrict'.
70074         * modules/argp (Depends-on): Remove 'restrict'.
70075         * modules/base64 (Depends-on): Likewise.
70076         * modules/gc (Depends-on): Likewise.
70077         * modules/getaddrinfo (Depends-on): Likewise.
70078         * modules/glob (Depends-on): Likewise.
70079         * modules/inet_ntop (Depends-on): Likewise.
70080         * modules/inet_pton (Depends-on): Likewise.
70081         * modules/memxor (Depends-on): Likewise.
70082         * modules/regex (Depends-on): Likewise.
70083         * modules/strtok_r (Depends-on): Likewise.
70084         * modules/time_r (Depends-on): Likewise.
70085
70086 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70087
70088         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70089         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70090         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70091         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70092         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70093         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70094         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70095         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70096
70097         Merge from coreutils.
70098         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70099         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70100         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70101         * m4/time_r.m4 (gl_TIME_R): Likewise.
70102
70103 2006-08-09  Karl Berry  <karl@gnu.org>
70104
70105         * config/srclist.txt: no more gettext-tools, per Bruno.
70106
70107 2006-08-08  Eric Blake  <ebb9@byu.net>
70108
70109         * modules/verror: New module.
70110         * MODULES.html.sh: Document it.
70111
70112 2006-08-08  Eric Blake  <ebb9@byu.net>
70113
70114         * lib/verror.h, lib/verror.c: New files.
70115
70116 2006-08-08  Eric Blake  <ebb9@byu.net>
70117
70118         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70119         verror_at_line output complies with GNU Coding Standards even when
70120         file is NULL.
70121
70122 2006-08-07  Bruno Haible  <bruno@clisp.org>
70123
70124         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70125         versions of AIX.
70126         Reported by Ralf Wildenhues.
70127
70128 2006-08-07  Bruno Haible  <bruno@clisp.org>
70129
70130         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70131         in an AC_DEFUN. Needed so that the autoconf snippets can use
70132         AC_REQUIRE.
70133
70134 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70135
70136         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70137         Initialize pkgdata_DATA.
70138         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70139         overriding it.
70140
70141 2006-08-06  Eric Blake  <ebb9@byu.net>
70142
70143         * lib/error.h: Fold in some upstream changes from glibc.
70144         * lib/error.c: Likewise.
70145
70146 2006-08-04  Bruno Haible  <bruno@clisp.org>
70147
70148         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70149         Make the mostlyclean-local rule depend on mostlyclean-generic.
70150         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70151
70152 2006-07-31  Bruno Haible  <bruno@clisp.org>
70153
70154         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70155         <stdlib.h>, <string.h>.
70156
70157 2006-07-30  Bruno Haible  <bruno@clisp.org>
70158
70159         * modules/readlink (License): Change to LGPL.
70160
70161 2006-07-30  Bruno Haible  <bruno@clisp.org>
70162
70163         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70164         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70165         set PKGDATADIR to point to it.
70166
70167 2006-07-30  Bruno Haible  <bruno@clisp.org>
70168
70169         * modules/csharpexec (configure.ac): Comment out macro invocation.
70170         * modules/javaexec (configure.ac): Likewise.
70171         * modules/javacomp-script (configure.ac): Likewise.
70172
70173         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70174
70175 2006-07-30  Bruno Haible  <bruno@clisp.org>
70176
70177         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70178         linked-list.
70179
70180 2006-07-30  Bruno Haible  <bruno@clisp.org>
70181
70182         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70183
70184 2006-07-30  Bruno Haible  <bruno@clisp.org>
70185
70186         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70187         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70188         get removed.
70189
70190 2006-07-29  Bruno Haible  <bruno@clisp.org>
70191
70192         Make it possible for gnulib-tool to work with locally modified or
70193         augmented gnulib repositories.
70194         * gnulib-tool (func_usage): Document --local-dir option.
70195         (local_gnulib_dir): New variable.
70196         Handle --local-dir option.
70197         (func_lookup_file): New function.
70198         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70199         (func_get_description, func_get_filelist, func_get_description,
70200         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70201         func_get_automake_snippet, func_get_include_directive,
70202         func_get_license, func_get_maintainer): Use func_lookup_file.
70203         (func_import, func_create_testdir): Use func_lookup_file.
70204
70205 2006-07-29  Bruno Haible  <bruno@clisp.org>
70206
70207         * modules/setenv (Depends-on): Add unistd.
70208
70209 2006-07-29  Bruno Haible  <bruno@clisp.org>
70210
70211         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70212
70213 2006-07-29  Bruno Haible  <bruno@clisp.org>
70214
70215         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70216
70217 2006-07-29  Bruno Haible  <bruno@clisp.org>
70218
70219         * gnulib-tool (import, update): If there is no Makefile.am, look at
70220         aclocal.m4, instead of bailing out.
70221
70222 2006-07-29  Bruno Haible  <bruno@clisp.org>
70223
70224         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70225         Categorize the options by when they are useful.
70226
70227 2006-07-29  Bruno Haible  <bruno@clisp.org>
70228
70229         * gnulib-tool (func_usage): Document option --no-libtool.
70230         Handle option --no-libtool.
70231         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70232         for changed semantics of $libtool variable.
70233         (func_import): Likewise. If libtool is not used, show this through
70234         an option --no-libtool.
70235         (func_create_testdir): Update.
70236
70237 2006-07-29  Bruno Haible  <bruno@clisp.org>
70238
70239         * gnulib-tool (func_import): Extend error message about missing
70240         --doc-base.
70241
70242 2006-07-29  Bruno Haible  <bruno@clisp.org>
70243
70244         * gnulib-tool (func_import): Don't create the $docbase directory if
70245         there is no file to store there.
70246
70247 2006-07-29  Bruno Haible  <bruno@clisp.org>
70248
70249         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70250         relevant, look for configure.ac there, not in the current directory.
70251         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70252
70253 2006-07-29  Bruno Haible  <bruno@clisp.org>
70254
70255         * gnulib-tool (SORT): New variable.
70256         (func_usage): Undocument --assume-autoconf option.
70257         Remove --assume-autoconf option handling.
70258         (autoconf_minversion): Determine from the contents of configure.ac.
70259         (func_import): Remove autoconf_minversion handling.
70260         Suggested by Eric Blake.
70261
70262 2006-07-29  Bruno Haible  <bruno@clisp.org>
70263
70264         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70265
70266 2006-07-29  Bruno Haible  <bruno@clisp.org>
70267
70268         * config/srclist.txt (*setenv.[ch]): Remove rules.
70269
70270 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70271
70272         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70273
70274 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70275
70276         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70277         arpa/inet.h.
70278
70279 2006-07-28  Simon Josefsson  <jas@extundo.com>
70280
70281         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70282         * modules/inet_pton (Depends-on): Likewise.
70283
70284 2006-07-28  Simon Josefsson  <jas@extundo.com>
70285
70286         * m4/netinet_in_h.m4: New file.
70287
70288 2006-07-28  Simon Josefsson  <jas@extundo.com>
70289
70290         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70291         #include's.
70292
70293 2006-07-28  Simon Josefsson  <jas@extundo.com>
70294
70295         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70296         #include's.
70297
70298 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70299
70300         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70301         setgid on directories only if they set these bits.
70302         * lib/modechange.h: Remove obsolete comment about masks.
70303
70304 2006-07-28  Eric Blake  <ebb9@byu.net>
70305
70306         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70307         macro expansion.
70308
70309 2006-07-28  Bruno Haible  <bruno@clisp.org>
70310
70311         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70312
70313 2006-07-28  Bruno Haible  <bruno@clisp.org>
70314
70315         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70316
70317 2006-07-28  Bruno Haible  <bruno@clisp.org>
70318
70319         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70320         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70321         Define fallbacks.
70322         Avoids link error on FreeBSD 4.x.
70323         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70324
70325         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70326         encoding.
70327         * lib/mbswidth.c (iswcntrl): Likewise.
70328
70329 2006-07-27  Bruno Haible  <bruno@clisp.org>
70330
70331         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70332         test.
70333
70334 2006-07-27  Bruno Haible  <bruno@clisp.org>
70335
70336         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70337         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70338         defined.
70339
70340 2006-07-26  Eric Blake  <ebb9@byu.net>
70341
70342         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70343
70344 2006-07-26  Eric Blake  <ebb9@byu.net>
70345
70346         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70347         like mingw that lack mkstemp.
70348         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70349         avoid compilation warning on mingw.
70350
70351 2006-07-26  Bruno Haible  <bruno@clisp.org>
70352
70353         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70354         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70355         INT_FAST*_MIN, INTPTR_MIN.
70356
70357 2006-07-25  Bruno Haible  <bruno@clisp.org>
70358
70359         * modules/version-etc (Depends-on): Add stdarg.
70360
70361 2006-07-25  Bruno Haible  <bruno@clisp.org>
70362
70363         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70364         complex commands.
70365
70366 2006-07-25  Bruno Haible  <bruno@clisp.org>
70367
70368         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70369         defined in <stdarg.h> or config.h.
70370
70371 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70372
70373         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70374         (gl_STDIO_SAFER): Remove.
70375
70376 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70377
70378         * MODULES.html.sh (File stream based Input/Output):
70379         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70380         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70381         * modules/fopen-safer, modules/tmpfile-safer: New files.
70382         * modules/stdio-safer: Remove.
70383
70384 2006-07-24  Bruno Haible  <bruno@clisp.org>
70385
70386         * modules/tmpdir: New file.
70387         * MODULES.html.sh (File system functions): Add it.
70388
70389 2006-07-24  Bruno Haible  <bruno@clisp.org>
70390
70391         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70392         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70393
70394 2006-07-24  Bruno Haible  <bruno@clisp.org>
70395
70396         * modules/clean-temp: New file.
70397
70398 2006-07-24  Bruno Haible  <bruno@clisp.org>
70399
70400         * m4/tmpdir.m4: New file, from GNU gettext.
70401
70402 2006-07-24  Bruno Haible  <bruno@clisp.org>
70403
70404         * lib/tmpdir.h: New file, from GNU gettext.
70405         * lib/tmpdir.c: New file, from GNU gettext.
70406
70407 2006-07-24  Bruno Haible  <bruno@clisp.org>
70408
70409         * lib/clean-temp.h: New file, from GNU gettext.
70410         * lib/clean-temp.c: New file, from GNU gettext.
70411
70412 2006-07-23  Eric Blake  <ebb9@byu.net>
70413
70414         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70415         (Depends-on): Add binary-io.
70416
70417 2006-07-23  Eric Blake  <ebb9@byu.net>
70418
70419         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70420
70421 2006-07-23  Eric Blake  <ebb9@byu.net>
70422
70423         * lib/tmpfile-safer.c: New file.
70424         * lib/stdio-safer.h (fopen_safer): Add prototype.
70425         * lib/stdio--.h (tmpfile): Make safer.
70426
70427 2006-07-23  Bruno Haible  <bruno@clisp.org>
70428
70429         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70430         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70431         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70432         gl_linked_remove_at): Use it.
70433
70434 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70435         and Simon Josefsson <jas@extundo.com>
70436
70437         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70438
70439         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70440
70441 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70442
70443         * modules/close-stream: New file.
70444         * modules/closeout (Description): Make it clear that it exits
70445         with a diagnostic on error.
70446         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70447         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70448
70449 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70450
70451         * m4/close-stream.m4: New file.
70452
70453 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70454
70455         * lib/close-stream.c, lib/close-stream.h: New files.
70456
70457 2006-07-22  Bruno Haible  <bruno@clisp.org>
70458
70459         Merge from GNU gettext 0.15.
70460
70461         2006-05-01  Bruno Haible  <bruno@clisp.org>
70462
70463                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70464
70465         2006-07-22  Bruno Haible  <bruno@clisp.org>
70466
70467                 * modules/javaversion: New file.
70468                 * MODULES.html.sh (Java): Add javaversion.
70469
70470         2006-03-12  Bruno Haible  <bruno@clisp.org>
70471
70472                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70473
70474         2005-12-04  Bruno Haible  <bruno@clisp.org>
70475
70476                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70477                 (untested).
70478
70479         2006-06-21  Bruno Haible  <bruno@clisp.org>
70480
70481                 Avoid warnings from recent versions of mcs.
70482                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70483                 -o, -L, -r any more. Use options documented since mcs-1.0
70484                 instead. Similarly for -g.
70485
70486         2005-12-04  Bruno Haible  <bruno@clisp.org>
70487
70488                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70489                 .resources, not .resource.
70490
70491         2005-07-09  Bruno Haible  <bruno@clisp.org>
70492
70493                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70494                 add a .dll suffix.
70495                 Reported by Mark Junker <mjscod@gmx.de>.
70496
70497         2006-07-22  Bruno Haible  <bruno@clisp.org>
70498
70499                 * modules/gettext: Upgrade to gettext-0.15.
70500                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70501                 m4/visibility.m4.
70502                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70503
70504 2006-07-22  Bruno Haible  <bruno@clisp.org>
70505
70506         Merge from GNU gettext 0.15.
70507
70508         2006-03-25  Bruno Haible  <bruno@clisp.org>
70509
70510                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70511
70512         2006-07-21  Bruno Haible  <bruno@clisp.org>
70513
70514                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70515                 "1.1".
70516
70517         2006-05-09  Bruno Haible  <bruno@clisp.org>
70518
70519                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70520                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70521                 for the conftestver execution.
70522
70523         2006-05-01  Bruno Haible  <bruno@clisp.org>
70524
70525                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70526                 optional target-version argument. Verify that the compiler
70527                 groks source of the specified source-version, or add -source
70528                 option as necessary. Verify that the compiler produces
70529                 bytecode in the specified target-version, or add -target and
70530                 -source options as necessary. Make the result of the test
70531                 available as variable CONF_JAVAC. Also log error output in
70532                 config.log.
70533
70534         2006-03-11  Bruno Haible  <bruno@clisp.org>
70535
70536                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70537
70538         2006-05-09  Bruno Haible  <bruno@clisp.org>
70539
70540                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70541                 CLASSPATH_SEPARATOR to a semicolon.
70542
70543         2006-03-12  Bruno Haible  <bruno@clisp.org>
70544
70545                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70546                 available as variable CONF_JAVA, for subsequent autoconf
70547                 tests. Also log error output in config.log.
70548
70549         2006-07-19  Bruno Haible  <bruno@clisp.org>
70550
70551                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70552                 that getline works on glibc2 systems. Needed to avoid trouble
70553                 in relocatable.c.
70554                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70555
70556         2005-12-04  Bruno Haible  <bruno@clisp.org>
70557
70558                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70559                 launcher (untested).
70560
70561         2005-12-04  Bruno Haible  <bruno@clisp.org>
70562
70563                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70564
70565         2006-07-22  Bruno Haible  <bruno@clisp.org>
70566
70567                 * gettext.m4: Update from GNU gettext-0.15.
70568                 * nls.m4: Likewise.
70569                 * po.m4: Likewise.
70570                 * inttypes-pri.m4: Likewise.
70571                 * inttypes-h.m4: Renamed from inttypes.m4.
70572                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70573
70574 2006-07-22  Bruno Haible  <bruno@clisp.org>
70575
70576         Merge from GNU gettext 0.15.
70577
70578         2005-07-05  Bruno Haible  <bruno@clisp.org>
70579
70580                 * printf-args.c (printf_fetchargs): Work around broken
70581                 definition of wint_t on mingw.
70582
70583         2005-02-12  Bruno Haible  <bruno@clisp.org>
70584
70585                 * xallocsa.h: Add extern "C" for C++.
70586
70587         2006-05-17  Bruno Haible  <bruno@clisp.org>
70588
70589                 Cygwin portability.
70590                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70591
70592         2006-04-30  Bruno Haible  <bruno@clisp.org>
70593
70594                 * progreloc.c: Include <mach-o/dyld.h> if available.
70595                 (find_executable): Use _NSGetExecutablePath when possible.
70596
70597         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70598
70599                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70600                 function.
70601
70602         2005-12-29  Bruno Haible  <bruno@clisp.org>
70603
70604                 * progreloc.c (set_program_name_and_installdir): Fix
70605                 compilation error.
70606
70607         2005-12-04  Bruno Haible  <bruno@clisp.org>
70608
70609                 Cygwin portability.
70610                 * progreloc.c: Include <windows.h> also on Cygwin.
70611                 (find_executable): Add support for Cygwin.
70612                 (set_program_name_and_installdir): Handle also platforms with
70613                 nonempty EXEEXT.
70614
70615         2006-07-11  Bruno Haible  <bruno@clisp.org>
70616
70617                 * javacomp.c: Fix a comment.
70618                 Reported by Jim Meyering.
70619
70620         2006-04-30  Bruno Haible  <bruno@clisp.org>
70621
70622                 * javacomp.h (compile_java_class): Add source_version,
70623                 target_version arguments.
70624                 * javacomp.c: Rewritten to choose only a compiler that
70625                 respects the specified source_version and target_version.
70626
70627         2006-06-27  Bruno Haible  <bruno@clisp.org>
70628
70629                 Assume correct S_ISDIR macro.
70630                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70631
70632         2006-07-22  Bruno Haible  <bruno@clisp.org>
70633
70634                 * javaversion.h: New file, from GNU gettext.
70635                 * javaversion.c: New file, from GNU gettext.
70636                 * javaversion.java: New file, from GNU gettext.
70637                 * javaversion.class: New file, from GNU gettext.
70638
70639         2006-05-17  Bruno Haible  <bruno@clisp.org>
70640
70641                 Cygwin portability.
70642                 * javaexec.c (execute_java_class): Test for jview program
70643                 also on Cygwin.
70644
70645         2006-04-09  Bruno Haible  <bruno@clisp.org>
70646
70647                 * fatal-signal.c: Don't include string.h.
70648                 (at_fatal_signal): Use a copying loop instead of memcpy.
70649
70650         2005-12-04  Bruno Haible  <bruno@clisp.org>
70651
70652                 * csharpexec.c: Add support for 'clix' launcher (untested).
70653                 (execute_csharp_using_sscli): New function.
70654                 (execute_csharp_program): Call it.
70655
70656         2006-06-21  Bruno Haible  <bruno@clisp.org>
70657
70658                 Avoid warnings from recent versions of mcs.
70659                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70660                 -o, -L, -r any more. Use options documented since mcs-1.0
70661                 instead. Similarly for -g.
70662
70663         2005-07-09  Bruno Haible  <bruno@clisp.org>
70664
70665                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70666                 add a .dll suffix.
70667                 Reported by Mark Junker <mjscod@gmx.de>.
70668
70669         2006-06-17  Bruno Haible  <bruno@clisp.org>
70670
70671                 * config.charset: Update for NetBSD 3.0.
70672
70673         2006-05-17  Bruno Haible  <bruno@clisp.org>
70674
70675                 Cygwin portability.
70676                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70677
70678         2006-05-16  Bruno Haible  <bruno@clisp.org>
70679
70680                 * localcharset.c [CYGWIN]: Include <windows.h>.
70681                 (get_charset_aliases): For Cygwin, return the same CPxxx
70682                 aliases list as under WIN32.
70683                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70684                 the environment variables. Fall back to GetACP().
70685
70686         2006-04-05  Bruno Haible  <bruno@clisp.org>
70687
70688                 * config.charset: Update Juan Manuel Guerrero's address.
70689
70690         2005-02-12  Bruno Haible  <bruno@clisp.org>
70691
70692                 * allocsa.h: Add extern "C" for C++.
70693
70694         2005-02-10  Bruno Haible  <bruno@clisp.org>
70695
70696                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70697                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70698
70699         2006-07-22  Bruno Haible  <bruno@clisp.org>
70700
70701                 * gettext.h: Update to GNU gettext-0.15.
70702
70703 2006-07-22  Bruno Haible  <bruno@clisp.org>
70704
70705         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70706         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70707         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70708
70709 2006-07-21  Eric Blake  <ebb9@byu.net>
70710
70711         * modules/stdlib-safer: New file.
70712         * MODULES.html.sh (File stream based Input/Output): Add
70713         stdlib-safer.
70714
70715 2006-07-21  Eric Blake  <ebb9@byu.net>
70716
70717         * lib/stdlib-safer.h: New file from coreutils, required by
70718         stdlib--.h.
70719
70720 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70721
70722         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70723
70724 2006-07-20  Bruno Haible  <bruno@clisp.org>
70725
70726         * gnulib-tool: Recognize new option --assume-autoconf.
70727         (autoconf_minversion): New variable.
70728         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70729
70730 2006-07-20  Bruno Haible  <bruno@clisp.org>
70731
70732         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70733
70734 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70735
70736         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70737         Reindent and repaginate.
70738
70739 2006-07-19  Derek Price  <derek@ximbiot.com>
70740
70741         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70742         Correct grammar.
70743
70744 2006-07-17  Bruno Haible  <bruno@clisp.org>
70745
70746         * modules/list: New file.
70747         * modules/array-list: New file.
70748         * modules/carray-list, modules/carray-list-tests: New files.
70749         * modules/linked-list, modules/linked-list-tests: New files.
70750         * modules/avltree-list, modules/avltree-list-tests: New files.
70751         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70752         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70753         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70754         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70755         * modules/oset: New file.
70756         * modules/array-oset: New file.
70757         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70758         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70759         * tests/test-carray_list.c: New file.
70760         * tests/test-linked_list.c: New file.
70761         * tests/test-avltree_list.c: New file.
70762         * tests/test-rbtree_list.c: New file.
70763         * tests/test-linkedhash_list.c: New file.
70764         * tests/test-avltreehash_list.c: New file.
70765         * tests/test-rbtreehash_list.c: New file.
70766         * tests/test-avltree_oset.c: New file.
70767         * tests/test-rbtree_oset.c: New file.
70768         * MODULES.html.sh (Container data structures): New section.
70769
70770 2006-07-17  Bruno Haible  <bruno@clisp.org>
70771
70772         * m4/gl_list.m4: New file.
70773
70774 2006-07-17  Bruno Haible  <bruno@clisp.org>
70775
70776         * lib/gl_list.h: New file.
70777         * lib/gl_list.c: New file.
70778         * lib/gl_array_list.h: New file.
70779         * lib/gl_array_list.c: New file.
70780         * lib/gl_carray_list.h: New file.
70781         * lib/gl_carray_list.c: New file.
70782         * lib/gl_linked_list.h: New file.
70783         * lib/gl_linked_list.c: New file.
70784         * lib/gl_anylinked_list1.h: New file.
70785         * lib/gl_anylinked_list2.h: New file.
70786         * lib/gl_avltree_list.h: New file.
70787         * lib/gl_avltree_list.c: New file.
70788         * lib/gl_anyavltree_list1.h: New file.
70789         * lib/gl_anyavltree_list2.h: New file.
70790         * lib/gl_rbtree_list.h: New file.
70791         * lib/gl_rbtree_list.c: New file.
70792         * lib/gl_anyrbtree_list1.h: New file.
70793         * lib/gl_anyrbtree_list2.h: New file.
70794         * lib/gl_anytree_list1.h: New file.
70795         * lib/gl_anytree_list2.h: New file.
70796         * lib/gl_linkedhash_list.h: New file.
70797         * lib/gl_linkedhash_list.c: New file.
70798         * lib/gl_anyhash_list1.h: New file.
70799         * lib/gl_anyhash_list2.h: New file.
70800         * lib/gl_avltreehash_list.h: New file.
70801         * lib/gl_avltreehash_list.c: New file.
70802         * lib/gl_rbtreehash_list.h: New file.
70803         * lib/gl_rbtreehash_list.c: New file.
70804         * lib/gl_anytreehash_list1.h: New file.
70805         * lib/gl_anytreehash_list2.h: New file.
70806
70807         * lib/gl_oset.h: New file.
70808         * lib/gl_oset.c: New file.
70809         * lib/gl_array_oset.h: New file.
70810         * lib/gl_array_oset.c: New file.
70811         * lib/gl_avltree_oset.h: New file.
70812         * lib/gl_avltree_oset.c: New file.
70813         * lib/gl_rbtree_oset.h: New file.
70814         * lib/gl_rbtree_oset.c: New file.
70815         * lib/gl_anytree_oset.h: New file.
70816
70817 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70818
70819         * m4/mkancesdirs.m4: New file.
70820         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70821         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70822         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70823         it.
70824
70825 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70826
70827         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70828         * lib/mkancesdirs.h: New files.
70829         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70830         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70831         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70832         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70833         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70834         callers changed.  Revamp internals significantly, by not
70835         attempting to create directories that are temporarily more
70836         permissive than the final results.  Do not attempt to use
70837         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70838         This removes some race conditions, fixes some bugs, and simplifies
70839         things.  Use new dirchownmod function to do owner and mode changes.
70840         * lib/mkdir-p.h: Likewise.
70841         * lib/modechange.c (octal_to_mode): New function.
70842         (struct mode_change): New member mentioned.
70843         (make_node_op_equals): New arg mentioned.  All callers changed.
70844         (mode_compile): Keep track of which mode bits the user has explicitly
70845         mentioned.
70846         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70847         New arg PMODE_BITS, to keep track of which mode bits the user
70848         mentioned; it treats S_ISUID and S_ISGID speciall.
70849         All callers changed.
70850         * lib/modechange.h: Likewise.
70851
70852 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70853
70854         * MODULES.html.sh: Add mkancestors.
70855         * modules/mkancesdirs: New module.
70856         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70857         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70858         The chdir-safer and afs files are now orphans; I'll remove them
70859         unless someone speaks up.
70860         Add lib/dirchownmod.c, lib/dirchownmod.h.
70861         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70862         Add lchown, mkancesdirs.
70863         (Maintainer): Add self.
70864
70865 2006-07-15  Karl Berry  <karl@gnu.org>
70866
70867         * gnulib-tool: help message wording/arrangement.
70868
70869 2006-07-14  Simon Josefsson  <jas@extundo.com>
70870
70871         * doc/gnulib.texi (Libtool and Windows): New section.
70872
70873 2006-07-12  Simon Josefsson  <jas@extundo.com>
70874
70875         * modules/gendocs (License): Fix license, approved by Karl.
70876
70877 2006-07-12  Eric Blake  <ebb9@byu.net>
70878
70879         * MODULES.html.sh: Add gendocs.
70880
70881 2006-07-11  Eric Blake  <ebb9@byu.net>
70882
70883         * modules/fdl: New module, to install doc/fdl.texi.
70884         * MODULES.html.sh: Add new section for documentation modules.
70885         * gnulib-tool: Avoid space-tab.
70886         (--doc-base): New option, to manage files from doc.
70887
70888 2006-07-11  Eric Blake  <ebb9@byu.net>
70889
70890         * m4/absolute-header.m4: Fix comments to match recent change.
70891
70892 2006-07-11  Eric Blake  <ebb9@byu.net>
70893
70894         * gnulib-tool: List --doc-base before --tests-base.
70895
70896 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70897
70898         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70899
70900 2006-07-11  Bruno Haible  <bruno@clisp.org>
70901
70902         * README: Mention where to put documentation.
70903
70904 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70905
70906         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70907
70908 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70909
70910         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70911         to stdint.m4.
70912
70913 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70914
70915         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70916         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70917         "no/such/file/stdint.h" when there is no such file, so that
70918         the resulting C code can be parsed by dodgy compilers.
70919         Problems reported by Bob Proulx.
70920
70921 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70922
70923         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70924         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70925         macros into the GNU _D_EXACT_NAMLEN.
70926         * lib/savedir.c:  Likewise.
70927         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70928
70929 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70930         and Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70933         * m4/savedir.m4:
70934         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70935         macros into the GNU _D_EXACT_NAMLEN.
70936
70937 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70938
70939         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70940         around the absolute name, to work around a problem with the HP-UX
70941         11.23 native C compiler, reported by Bob Proulx.
70942
70943 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70944
70945         * doc/maintain.texi, make-stds.texi: Sync from
70946         <http://savannah.gnu.org/projects/gnustandards>.
70947
70948 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70949
70950         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70951
70952 2006-07-09  Jim Meyering  <jim@meyering.net>
70953
70954         * m4/glob.m4: Remove a doubled word in a comment.
70955
70956 2006-07-09  Jim Meyering  <jim@meyering.net>
70957
70958         * lib/argp-pv.c: Remove a doubled word in a comment.
70959         * lib/check-version.c (check_version): Likewise.
70960         * lib/javacomp.c (compile_java_class): Likewise.
70961
70962 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70963
70964         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70965         for the benefit of people using Autoconf 2.60.  If you want to
70966         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70967         (or m4/onceonly.m4, if pre-2.57) manually.
70968
70969 2006-07-08  Jim Meyering  <jim@meyering.net>
70970
70971         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70972         comment.
70973         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70974         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70975         comment.
70976
70977 2006-07-08  Jim Meyering  <jim@meyering.net>
70978
70979         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70980
70981 2006-07-07  Simon Josefsson  <jas@extundo.com>
70982
70983         * tests/test-crc.c: Change expected crc value, the test vector
70984         were probably computed using the old broken crc.c?
70985
70986 2006-07-06  Simon Josefsson  <jas@extundo.com>
70987
70988         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70989         now the canonical place for the M4 file).
70990
70991         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70992         from the sys_socket dependency now.
70993
70994         * modules/inet_pton (Files): Ditto.
70995
70996         * modules/inet_ntop (Files): Ditto.
70997
70998 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70999
71000         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71001         not gl_PREREQ_GETUSERSHELL.
71002
71003 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71004
71005         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71006         with only one argument, for Autoconf 2.60.
71007         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71008         expand to nothing, so add a shell command to avoid syntax error.
71009         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71010
71011 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71012
71013         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71014
71015 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71016
71017         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71018         no longer needed.  Check for isblank decl.
71019         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71020         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71021         of existence.
71022
71023 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71024
71025         * lib/getloadavg.c: Use __VMS, not VMS.
71026         * lib/getopt.c: Likewise.
71027         * lib/getpagesize.h: Likewise.
71028         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71029         and probably does not work.
71030
71031 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71032
71033         * lib/.cppi-disable: Add wcwidth.
71034         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71035         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71036         (ISGRAPH): Remove.  All uses changed to isgraph.
71037         (FOLD) [!defined _LIBC]: Remove special case.
71038         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71039         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71040         HAVE_ISBLANK.
71041         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71042         case.
71043
71044 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71045
71046         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71047         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71048         brackets.  Other minor changes to suppress some compiler
71049         warnings.
71050
71051 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71052         and Paul Eggert  <eggert@cs.ucla.edu>
71053
71054         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71055         of invoking obsolescent AC_HEADER_DIRENT macro.
71056         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71057         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71058         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71059         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71060         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71061         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71062         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71063         * m4/readdir.m4: Remove; no longer needed.
71064
71065 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71066         and Paul Eggert  <eggert@cs.ucla.edu>
71067
71068         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71069         Don't worry about this obsolete case any more.
71070         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71071         directories.
71072         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71073         worry about this obsolete case any more.
71074         * lib/fts.c: Likewise.
71075         * lib/getcwd.c: Likewise.
71076         * lib/glob.h: Likewise.
71077         * lib/savedir.c: Likewise.
71078
71079 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71080
71081         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71082         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71083         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71084         needed.
71085         All uses removed.
71086         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71087         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71088         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71089         needed.
71090         * m4/getdate.m4 (gl_GETDATE): Likewise.
71091         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71092         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71093         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71094         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71095         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71096         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71097         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71098         needed.
71099
71100 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71101
71102         * lib/memcasecmp.c: Include <limits.h>.
71103         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71104         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71105         Don't assume isdigit succeeds only on '0' through '9'.
71106
71107 2006-07-05  Eric Blake  <ebb9@byu.net>
71108
71109         * modules/getaddrinfo (Depends-on): Add snprintf.
71110
71111 2006-07-05  Eric Blake  <ebb9@byu.net>
71112
71113         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71114         to avoid 'header present but could not be compiled' on cygwin.
71115
71116 2006-07-05  Eric Blake  <ebb9@byu.net>
71117
71118         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71119         missing from netdb.h.
71120         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71121
71122 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71123
71124         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71125         no longer needed.
71126         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71127         * m4/getdate.m4 (gl_GETDATE): Likewise.
71128         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71129         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71130         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71131         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71132         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71133
71134 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71135
71136         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71137         All uses of is_space replaced by isspace.
71138         * lib/exit.h: Don't talk about STDC_HEADERS.
71139         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71140         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71141         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71142         replaced by isprint etc.
71143         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71144         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71145         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71146         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71147         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71148         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71149
71150 2006-07-05  Bruno Haible  <bruno@clisp.org>
71151
71152         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71153         the function exists, before testing against AIX.
71154         Reported by Martin Lambers <marlam@marlam.de>.
71155
71156 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71157
71158         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71159         From Mark D. Baushke.
71160
71161 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71162
71163         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71164         to the absolute name, not just one, to bypass Sun C 5.8's
71165         "warning: #include of /usr/include/... may be non-portable".
71166
71167 2006-07-04  Eric Blake  <ebb9@byu.net>
71168
71169         * modules/dirname-tests: New test module.
71170         * tests/test-dirname.c: New file, replacing dirname.c
71171         TEST_DIRNAME section that was recently deleted.
71172
71173 2006-07-04  Bruno Haible  <bruno@clisp.org>
71174
71175         Assume ANSI C header files and <ctype.h> functions.
71176         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71177         (mbsnwidth): Use isprint, iscntrl instead.
71178
71179 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71180
71181         Merge from coreutils.
71182         * MODULES.html.sh: Add xstrtold.
71183         * modules/xstrtold: New file.
71184         * modules/cycle-check (Files): Add lib/same-inode.h.
71185         * modules/dirname (Files): Add m4/double-slash-root.m4.
71186         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71187         * modules/mkdir-p (Files): Add lib/same-inode.h.
71188         * modules/same (Files): Add lib/same-inode.h.
71189
71190 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71191
71192         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71193         This is to keep the terminology clean; POSIX talks about
71194         "absolute pathnames", not "full pathnames", but the GNU
71195         Coding Standards say to use "path" for something else;
71196         so use "absolute" to keep both sides happy.
71197         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71198         Set gl_absolute_header, not gl_full_header_path.
71199         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71200         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71201         All uses changed.
71202
71203         Merge from coreutils.
71204
71205         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71206
71207         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71208         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71209         want to require the building of c-strtod.o.
71210         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71211         needs -lm directly.
71212         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71213
71214         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71215
71216         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71217         --as-needed option if available.  Problem reported by Albert Chin in
71218         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71219         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71220         cc merely issues a bunch of annoying warnings for --as-needed
71221         (this problem was reported by Bob Proulx).  Also, try linking with
71222         -lm to detect a bug in binutils 2.16 (this problem was reported
71223         by Ralf Wildenhues).
71224
71225         2006-06-18  Jim Meyering  <jim@meyering.net>
71226
71227         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71228         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71229         macro.
71230         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71231         also check for glibc-2.4's abort-inducing bug.
71232
71233         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71234         Low-probability clean-up should be to use rmdir to get rid of
71235         the just-created directory, not unlink.
71236
71237         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71238         configure fail, and request a bug report to inform us about it.
71239         Add a comment that, barring reports to the contrary, in 2007 we'll
71240         assume ftruncate is universally available.
71241
71242         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71243
71244         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71245
71246         2006-03-12  Jim Meyering  <jim@meyering.net>
71247
71248         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71249         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71250         * m4/same.m4 (gl_SAME): Likewise.
71251         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71252
71253         2006-03-11  Eric Blake  <ebb9@byu.net>
71254
71255         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71256         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71257         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71258         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71259
71260 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71261
71262         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71263         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71264         reported by Mark D. Baushke, one in
71265         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71266
71267         Merge from coreutils.
71268
71269         * lib/.cppi-disable: Add stdint_.h.
71270         * lib/.cvsignore: Add stdint.h.
71271
71272         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71273
71274         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71275         both double and long double versions.
71276         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71277         * lib/xstrtold.c: New file.
71278         * lib/xstrtod.h (xstrtold): New decl.
71279
71280         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71281
71282         * lib/filemode.c (setst): Remove.
71283         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71284         (arguably) clearer, and the generated code is a bit smaller on my
71285         Debian GNU/Linux stable x86 host.
71286
71287         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71288
71289         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71290         Assume that filemode.h includes sys/types.h and sys/stat.h.
71291         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71292         (ftypelet): Reorder to put common cases first, for efficiency.
71293         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71294         to do 'M'.
71295         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71296         of 10, for compatibility with FreeBSD.  All callers changed.
71297         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71298         types that can't be deduced solely from st_mode.  First arg is now a
71299         const pointer.
71300         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71301         (strmode): Renamed from mode_string.
71302         (filemodestring): New decl.
71303         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71304         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71305         needed.
71306         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71307
71308         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71309
71310         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71311         fsusage.h now does that.  Include fsusage.h first, to test interface.
71312         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71313         at most one method (the old code could have generated decls that
71314         didn't conform to C89, not that this was ever exercised).
71315         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71316
71317         2006-03-19  Jim Meyering  <jim@meyering.net>
71318
71319         Work even in a chroot where d_ino values for entries in "/"
71320         don't match the stat.st_ino values for the same names.
71321         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71322         number, iterate through all entries again, using lstat instead.
71323         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71324         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71325
71326         * lib/getcwd.c (__getcwd): Clarify a comment.
71327         Use memcpy in place of a call to strcpy.
71328
71329         2006-03-12  Jim Meyering  <jim@meyering.net>
71330
71331         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71332         matches that of the current directory (which we're about to chdir ".."
71333         out of), then save the dev-ino of the parent, instead.
71334
71335         * lib/same-inode.h (SAME_INODE): New file/macro.
71336         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71337         Include "same-inode.h", instead.
71338         * lib/same.c: Likewise.
71339         * lib/cycle-check.h: Include "same-inode.h".
71340         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71341         * lib/cycle-check.c (SAME_INODE): Remove definition.
71342         * lib/root-dev-ino.h: Include "same-inode.h".
71343
71344         2006-03-11  Eric Blake  <ebb9@byu.net>
71345
71346         * lib/same.c (same_name): s/base_name/last_component/
71347         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71348         * lib/filenamecat.c (file_name_concat): Likewise.
71349
71350         2006-03-11  Eric Blake  <ebb9@byu.net>,
71351                     Paul Eggert  <eggert@cs.ucla.edu>
71352
71353         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71354         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71355         drive prefix.
71356         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71357         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71358         (last_component): New method.
71359         * lib/dirname.c (dir_len): Determine when drive letters need a
71360         subsequent slash.  Preserve // when it is special.
71361         (dir_name): Don't append dot when drive letter is absolute.
71362         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71363         * lib/basename.c (base_name): New semantics - malloc the result.
71364         Preserve // when it is special.  Preserve relative files that look
71365         like drive letters.
71366         (base_len): Preserve // when it is special.
71367         (last_component): New method, similar to old base_name semantics.
71368         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71369         base_name.  Strip redundant slashes from ///.
71370
71371 2006-07-03  Jim Meyering  <jim@meyering.net>
71372
71373         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71374         macro is used before the first cycle_check call.
71375
71376 2006-07-03  Eric Blake  <ebb9@byu.net>
71377
71378         * modules/dirname (Depends-on): Add xstrndup.
71379
71380 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71381
71382         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71383         test cases, so that config.log is a bit easier to follow.
71384
71385 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71386
71387         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71388         both are 64 bits, since this seems to be the tradition, and this
71389         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71390         we ever run into a host that prefers long long to long in this
71391         case, we'll need another configure-time test.  Problem reported by
71392         Jim Meyering.
71393
71394 2006-07-02  Eric Blake  <ebb9@byu.net>
71395
71396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71397
71398 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71399
71400         * modules/inttypes (Depends-on): No longer depends on stdint.
71401         * modules/stdint (Description): Say more about assumptions.
71402         Say that the fast types might differ.  Say macros are used.
71403         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71404         (Makefile.am): Revise list of substituted symbols to match
71405         new stdint.m4.
71406         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71407         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71408         * tests/test-stdint.c (verify_same_types)
71409         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71410         the code conforms to C99/C89.
71411         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71412         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71413
71414 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71417         but fix a bug, by requiring at least 64 bits.
71418         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71419         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71420         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71421         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71422
71423         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71424         changes.  Make 2.59 a prerequisite.  Check and substitute for
71425         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71426         inttypes.h.  Do not use special include files; just use the
71427         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71428         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71429         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71430         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71431         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71432         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71433         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71434         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71435         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71436         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71437         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71438         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71439         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71440         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71441         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71442         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71443         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71444         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71445         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71446         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71447         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71448         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71449         not check for things that C99 does not require, e.g., int8_t.  If
71450         a test isn't needed unless <stdint.h> isn't working, and is
71451         unlikely to be needed for any other reason, then don't do it
71452         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71453         size_t, since we assume C89 freestanding at least.  Do not check
71454         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71455         the right thing even if the types are not defined.  Instead use:
71456         (gl_STDINT_TYPE_PROPERTIES): New macro.
71457         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71458         testing whether <sys/types.h> clashes, as Autoconf does this for
71459         us now.  All uses removed.
71460         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71461         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71462         (gl_CHECK_TYPE_SAME):
71463         Remove; no longer needed.
71464         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71465         exists, since we'll return 0 anyway in that case.
71466         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71467
71468 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71469
71470         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71471         possible collision with system files.
71472         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71473         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71474         WCHAR_MIN and WCHAR_MAX in this case.
71475         (<stddef.h>): Do not include; no longer needed.
71476         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71477         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71478         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71479         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71480         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71481         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71482         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71483         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71484         !defined(__c99))]: Include in this case too, since it's harmless
71485         now.
71486         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71487         dangerous to do so.
71488         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71489         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71490         (_STDINT_MIN, _STDINT_MAX): New macros.
71491         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71492         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71493         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71494         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71495         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71496         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71497         macros, not typedefs; this simplifies things quite a bit.
71498         Use long int for all types narrower than int64_t.
71499         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71500         Define in terms of long long int or int64_t or long int,
71501         not int64_t or int32_t.  This saves some compile-time testing.
71502         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71503         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71504         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71505         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71506         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71507         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71508         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71509         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71510         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71511         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71512         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71513         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71514         undef any previous version and define our own version, for
71515         simplicity and consistency with the new macros for types.
71516         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71517         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71518         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71519         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71520         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71521         @WINT_T_SUFFIX@ to keep things simple here.
71522         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71523         Simplify by assuming typical 8/16/32/64 host, since we're
71524         already doing that elsewhere anyway.
71525         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71526         and assume long long int is 64 bits if available.  This
71527         speeds up 'configure'.
71528
71529 2006-07-01  Eric Blake  <ebb9@byu.net>
71530
71531         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71532         Reported by Andreas Buening.
71533
71534 2006-07-01  Eric Blake  <ebb9@byu.net>
71535
71536         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71537
71538 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71539
71540         * lib/getaddrinfo.c: fixed typo
71541
71542 2006-06-29  Jim Meyering  <jim@meyering.net>
71543
71544         * modules/strftime (Maintainer): Add my name, since with the
71545         FPRINTFTIME changes strftime.c has forked from glibc.
71546
71547 2006-06-29  Eric Blake  <ebb9@byu.net>
71548
71549         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71550
71551 2006-06-29  Eric Blake  <ebb9@byu.net>
71552
71553         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71554
71555 2006-06-29  Eric Blake  <ebb9@byu.net>
71556
71557         * lib/stat_.h: New file.
71558
71559 2006-06-29  Eric Blake  <ebb9@byu.net>
71560
71561         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71562         unused static function.
71563
71564 2006-06-29  Eric Blake  <ebb9@byu.net>
71565
71566         * doc/functions.texi (Function Portability): Document missing lstat
71567         on mingw.
71568
71569 2006-06-29  Eric Blake  <ebb9@byu.net>
71570
71571         * MODULES.html.sh: Add sys_stat.
71572         * modules/sys_stat: New module.
71573         * modules/mkstemp (Depends-on): Add sys_stat.
71574
71575 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71576
71577         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71578
71579 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71580
71581         * m4/c-bs-a.m4: Removed.
71582
71583 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71584
71585         * lib/strftime.c: Assume strftime() exists.
71586
71587 2006-06-29  Derek Price  <derek@ximbiot.com>
71588
71589         * modules/c-bs-a: Removed - \a is C89.
71590         * MODULES.html.sh: Remove c-bs-a.
71591
71592 2006-06-29  Bruno Haible  <bruno@clisp.org>
71593
71594         * modules/wcwidth (License): Change to LGPL.
71595
71596 2006-06-28  Simon Josefsson  <jas@extundo.com>
71597
71598         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71599         on _WIN32.
71600
71601         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71602         getnameinfo.
71603
71604 2006-06-28  Simon Josefsson  <jas@extundo.com>
71605
71606         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71607
71608 2006-06-28  Simon Josefsson  <jas@extundo.com>
71609
71610         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71611         functions there.  It will succeed on Windows XP, but on Windows
71612         2000 and (presumably) earlier, it will fail, and use the internal
71613         re-implementation.
71614         (use_win32_p): New function.
71615         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71616         Support AI_NUMERICSERV to disable getservbyname.
71617         (getnameinfo): New function, only supports
71618         NI_NUMERICHOST|NI_NUMERICSERV for now.
71619
71620         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71621         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71622         getnameinfo.
71623
71624 2006-06-28  Eric Blake  <ebb9@byu.net>
71625
71626         * modules/wcwidth: New file.
71627         * modules/mbchar (Depends-on): Add wcwidth.
71628         * modules/mbswidth (Depends-on): Add wcwidth.
71629         * MODULES.html.sh: Add wcwidth.
71630
71631 2006-06-28  Eric Blake  <ebb9@byu.net>
71632
71633         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71634         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71635
71636 2006-06-28  Eric Blake  <ebb9@byu.net>
71637
71638         * lib/xvasprintf.h: Fix comments.
71639
71640 2006-06-28  Eric Blake  <ebb9@byu.net>
71641
71642         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71643         * lib/mbswidth.c (wcwidth): Move from here...
71644         * lib/wcwidth.h: ...to this new file.
71645
71646 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71647
71648         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71649
71650         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71651         it's obsolete.
71652         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71653
71654 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71655
71656         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71657         Autoconf 2.60 says this stuff was obsolete.
71658
71659 2006-06-28  Bruno Haible  <bruno@clisp.org>
71660
71661         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71662
71663 2006-06-28  Bruno Haible  <bruno@clisp.org>
71664
71665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71666         gt_TYPE_WCHAR_T.
71667
71668 2006-06-28  Bruno Haible  <bruno@clisp.org>
71669
71670         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71671         declaration for wcwidth.
71672         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71673
71674 2006-06-28  Bruno Haible  <bruno@clisp.org>
71675
71676         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71677         (mkdir): Define using _mkdir.
71678
71679 2006-06-28  Bruno Haible  <bruno@clisp.org>
71680
71681         * lib/getaddrinfo.h: Fix POSIX URL.
71682         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71683         _WIN32.
71684         (use_win32_p): Make static.
71685         (getaddrinfo): Reject service name if it is empty or does not consist
71686         solely of decimal digits, or if its value is > 65535.
71687         (getnameinfo): Remove useless casts.
71688
71689 2006-06-27  Simon Josefsson  <jas@extundo.com>
71690
71691         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71692         Eggert and Martin Lambers.
71693
71694 2006-06-27  Simon Josefsson  <jas@extundo.com>
71695
71696         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71697         Eggert and Martin Lambers.
71698
71699 2006-06-27  Bruno Haible  <bruno@clisp.org>
71700
71701         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71702         result to 0, not to empty.
71703         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71704
71705 2006-06-27  Bruno Haible  <bruno@clisp.org>
71706
71707         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71708
71709 2006-06-26  Simon Josefsson  <jas@extundo.com>
71710
71711         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71712         present.
71713
71714 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71717         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71718         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71719
71720 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71721
71722         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71723
71724 2006-06-26  Bruno Haible  <bruno@clisp.org>
71725
71726         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71727
71728 2006-06-26  Bruno Haible  <bruno@clisp.org>
71729
71730         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71731
71732 2006-06-26  Bruno Haible  <bruno@clisp.org>
71733
71734         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71735         SGI C compiler in pre-C99 mode.
71736         Suggested by Mark D. Baushke and Larry Jones.
71737
71738 2006-06-26  Bruno Haible  <bruno@clisp.org>
71739
71740         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71741         WCHAR_MAX.
71742         Reported by Mark D. Baushke and Larry Jones.
71743
71744 2006-06-26  Bruno Haible  <bruno@clisp.org>
71745
71746         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71747         in pre-C99 mode.
71748         Suggested by Mark D. Baushke and Larry Jones.
71749
71750 2006-06-23  Simon Josefsson  <jas@extundo.com>
71751             Bruno Haible  <bruno@clisp.org>
71752
71753         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71754         Emit mostlyclean-local rule.
71755         (func_emit_tests_Makefile_am): Likewise.
71756         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71757
71758 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71759
71760         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71761
71762 2006-06-23  Bruno Haible  <bruno@clisp.org>
71763
71764         * tests/test-stdint.c: Update to match ISO C 99 Technical
71765         Corrigendum 1.
71766
71767 2006-06-23  Bruno Haible  <bruno@clisp.org>
71768
71769         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71770
71771 2006-06-23  Bruno Haible  <bruno@clisp.org>
71772
71773         * lib/stdint_.h: Treat IRIX like OpenBSD.
71774
71775 2006-06-23  Bruno Haible  <bruno@clisp.org>
71776
71777         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71778         ISO C 99 Technical Corrigendum 1.
71779
71780 2006-06-22  Simon Josefsson  <jas@extundo.com>
71781
71782         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71783         MinGW.
71784
71785 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71786
71787         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71788         needed.  Some compiler complained about some of them.  Problem reported
71789         by Larry Jones in
71790         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71791
71792 2006-06-21  Simon Josefsson  <jas@extundo.com>
71793
71794         * tests/test-getaddrinfo.c: New file.
71795
71796         * modules/getaddrinfo-tests: New file.
71797
71798         * MODULES.html.sh: Add inet_pton.
71799
71800         * modules/inet_pton: New file.
71801
71802 2006-06-21  Simon Josefsson  <jas@extundo.com>
71803
71804         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71805         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71806         of using the (limited) gnulib implementation on Windows XP.
71807
71808         * m4/inet_pton.m4: New file.
71809
71810 2006-06-21  Simon Josefsson  <jas@extundo.com>
71811
71812         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71813         variable.
71814
71815         * lib/socket_.h: Don't define WINVER.
71816
71817         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71818         slightly modified to work in gnulib.
71819
71820 2006-06-21  Simon Josefsson  <jas@extundo.com>
71821
71822         * doc/gnulib.texi (Windows sockets): Add.
71823
71824 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71825
71826         * lib/read-file.c (fread_file): Start with buffer allocation of
71827         0 bytes rather than 1 byte; this simplifies the code.
71828         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71829         code to free buffer and save/restore errno.
71830         (internal_read_file): Remove unused local.
71831
71832 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71833
71834         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71835         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71836         Problem reported by Denis Excoffier in
71837         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71838
71839 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71840
71841         * modules/sys_socket, modules/socklen: Include sys/types since
71842         FreeBSD 4.x's sys/socket.h needs it.
71843
71844 2006-06-19  Simon Josefsson  <jas@extundo.com>
71845
71846         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71847
71848 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71849
71850         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71851
71852 2006-06-19  Bruno Haible  <bruno@clisp.org>
71853
71854         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71855         and FULL_PATH_INTTYPES_H in angle brackets.
71856         Reported by Mark D. Baushke <mdb@gnu.org>.
71857
71858 2006-06-17  Eric Blake  <ebb9@byu.net>
71859
71860         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71861         errno.
71862
71863 2006-06-17  Bruno Haible  <bruno@clisp.org>
71864
71865         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71866         <sys/inttypes.h>.
71867
71868 2006-06-17  Bruno Haible  <bruno@clisp.org>
71869
71870         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71871         whether errno is declared. Assume <errno.h> declares errno.
71872
71873 2006-06-17  Bruno Haible  <bruno@clisp.org>
71874
71875         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71876
71877 2006-06-17  Bruno Haible  <bruno@clisp.org>
71878
71879         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71880         problem on Solaris 2.5.1.
71881
71882 2006-06-16  Eric Blake  <ebb9@byu.net>
71883
71884         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71885         * lib/unicodeio.c [!defined errno]: Likewise.
71886         * lib/strtol.c [!defined errno]: Likewise.
71887         * lib/strtod.c [!defined errno]: Likewise.
71888
71889 2006-06-15  Eric Blake  <ebb9@byu.net>
71890
71891         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71892
71893 2006-06-15  Eric Blake  <ebb9@byu.net>
71894
71895         * config/srclist.txt (ssize_t.m4): Lose sync.
71896
71897 2006-06-15  Bruno Haible  <bruno@clisp.org>
71898
71899         * modules/stdint (Files): Include m4/full-header-path.m4,
71900         m4/size_max.m4, m4/wchar_t.m4.
71901         (Makefile.am): Many more substitutions.
71902         * modules/stdint-tests: New file.
71903         * tests/test-stdint.c: New file.
71904
71905 2006-06-15  Bruno Haible  <bruno@clisp.org>
71906
71907         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71908         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71909         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71910         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71911         gl_CHECK_TYPE_SAME): New macros.
71912
71913 2006-06-15  Bruno Haible  <bruno@clisp.org>
71914
71915         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71916
71917 2006-06-15  Bruno Haible  <bruno@clisp.org>
71918
71919         * lib/stdint_.h: Rewritten to be fully auto-configured.
71920         Fixes bug on HP-UX/IA64.
71921
71922 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71923
71924         * lib/getdate.y (__attribute__): Don't define if already defined.
71925         Problem reported by Larry Jones.
71926         * lib/utimens.c (__attribute__): Likewise.
71927
71928 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71929
71930         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71931         reported by Andreas Schwab.
71932
71933 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71934             Bruno Haible  <bruno@clisp.org>
71935
71936         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71937         check for the declaration of strnlen and a run test that exposes the
71938         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71939         rpl_strndup.
71940
71941 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71942             Bruno Haible  <bruno@clisp.org>
71943
71944         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71945
71946 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71947
71948         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71949         compile test, for Tru64 4.0D.
71950
71951 2006-05-28  Karl Berry  <karl@gnu.org>
71952
71953         * config/srclist.txt (printf-args.c): lose sync.
71954
71955 2006-05-26  Martin Lambers  <marlam@marlam.de>
71956
71957         * lib/getpass.c: Updates the test for the native W32 API, and adds
71958         missing includes, thus fixing compilation warnings.
71959
71960 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71961
71962         * lib/exclude.c (exclude_fnmatch): New function.
71963         (excluded_file_name): Call exclude_fnmatch.
71964         * lib/exclude.h (excluded_file_name): New prototype
71965
71966 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71967
71968         * lib/tempname.c (small_open, large_open): New macros.
71969         (__open, __open64) [!_LIBC]: Remove.
71970         (__gen_tempname): Use small_open and large_open instead of __open
71971         and __open64.  This fixes a portability bug on HP-UX 11.11i
71972         reported by Simon Wing-Tang in
71973         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71974
71975 2006-05-24  Bruno Haible  <bruno@clisp.org>
71976
71977         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71978         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71979         Reported by Thorsten Maerz <torte@netztorte.de> via
71980         Aaron Stone <aaron@serendipity.cx>.
71981
71982 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71983
71984         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71985         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71986         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71987         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71988         not really conditional on the cache.
71989         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71990
71991 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71992
71993         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71994         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71995         (my_usleep): Don't mishandle maximum value.
71996
71997 2006-05-19  Jim Meyering  <jim@meyering.net>
71998
71999         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72000
72001 2006-05-17  Bruno Haible  <bruno@clisp.org>
72002
72003         Cygwin portability.
72004         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72005
72006 2006-05-17  Bruno Haible  <bruno@clisp.org>
72007
72008         * lib/stdint_.h: Fix recognition of Cygwin.
72009
72010 2006-05-15  Bruno Haible  <bruno@clisp.org>
72011
72012         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72013         on libtool patch by Ralf Wildenhues.
72014
72015 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72016
72017         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72018         test for C99 conformance; (bool) 0.5 is an integer constant
72019         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72020         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72021
72022 2006-05-11  Simon Josefsson  <jas@extundo.com>
72023
72024         * m4/xvasprintf.m4: Fix obvious typo.
72025
72026 2006-05-11  Jim Meyering  <jim@meyering.net>
72027
72028         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72029         James Lemley.
72030
72031 2006-05-10  Simon Josefsson  <jas@extundo.com>
72032
72033         * lib/md4.c: Typo fix, update copyright years.
72034         (K1, K2): Don't use L because it turn computations into 64-bit on
72035         64-bit platforms.
72036
72037 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72038
72039         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72040         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72041         unwanted sign propagation, e.g., on hosts with 64-bit int.
72042         There still are some problems with reeelly weird theoretical hosts
72043         (e.g., 33-bit int) but it's not worth worrying about now.
72044         * lib/sha1.c (rol): Likewise.
72045         (K1, K2, K3, K4): Remove unnecessary L suffix.
72046
72047 2006-05-10  Bruno Haible  <bruno@clisp.org>
72048
72049         * lib/des.c: Cast to avoid warnings.
72050
72051 2006-05-09  Bruno Haible  <bruno@clisp.org>
72052
72053         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72054         (Depends-on): Depend also on xsize, stdarg.
72055         (configure.ac): Add gl_XVASPRINTF.
72056
72057 2006-05-09  Bruno Haible  <bruno@clisp.org>
72058
72059         * m4/xvasprintf.m4: New file.
72060
72061 2006-05-09  Bruno Haible  <bruno@clisp.org>
72062
72063         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72064         (EOVERFLOW): Define fallback value.
72065         (xstrcat): New function.
72066         (xvasprintf): Recognize the special case of a string concatenation.
72067
72068 2006-05-08  Eric Blake  <ebb9@byu.net>
72069
72070         * gnulib-tool (func_version): Base copyright year on CVS date.
72071         (func_emit_copyright_notice): New function.
72072         (func_emit_lib_Makefile_am): Use it.
72073         (func_emit_tests_Makefile_am): Likewise.
72074         (func_import): Likewise.
72075
72076 2006-05-08  Bruno Haible  <bruno@clisp.org>
72077
72078         * modules/stdarg: New file.
72079         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72080
72081 2006-05-08  Bruno Haible  <bruno@clisp.org>
72082
72083         * m4/stdarg.m4: New file, from GNU gettext.
72084
72085 2006-05-08  Bruno Haible  <bruno@clisp.org>
72086
72087         * config/srclist.txt (build-aux/config.rpath): different from latest
72088         release.
72089
72090 2006-05-08  Bruno Haible  <bruno@clisp.org>
72091
72092         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72093
72094 2006-05-05  Jim Meyering  <jim@meyering.net>
72095
72096         * m4/warning.m4: New file, derived from bison's file by the same name.
72097
72098 2006-05-03  Bruno Haible  <bruno@clisp.org>
72099
72100         * lib/stdint_.h: Shorter URL.
72101         * lib/inttypes.h: Likewise.
72102
72103 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72104
72105         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72106
72107 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * lib/verify.h: Document the internals better.  Most of this change
72110         was written by Bruno Haible.
72111
72112 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72113
72114         * doc/verify.texi: New file, partly based on a proposal by
72115         Bruno Haible.
72116
72117 2006-05-02  Bruno Haible  <bruno@clisp.org>
72118
72119         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72120         test from here...
72121         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72122
72123 2006-04-29  Bruno Haible  <bruno@clisp.org>
72124
72125         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72126         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72127
72128 2006-04-29  Bruno Haible  <bruno@clisp.org>
72129
72130         * gnulib-tool: Make --update option actually work.
72131
72132 2006-04-29  Bruno Haible  <bruno@clisp.org>
72133
72134         * doc/gcd.texi: New file.
72135         * doc/gnulib.texi: Include it.
72136
72137 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72138
72139         * lib/getdate.y (get_date): When adding relative date, start with the
72140         initial time, not with the result of the first mktime call.
72141
72142 2006-04-25  Bruno Haible  <bruno@clisp.org>
72143
72144         * gnulib-tool (func_import): Output the include directives in three
72145         blocks, sorted separately.
72146         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72147
72148 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72149
72150         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72151         to define main with arguments, for C++.  Reported by Eric Blake.
72152         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72153         Prefer 'int main ()' to 'int main (void)', for C++.
72154         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72155         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72156         for 'main', for C99 and C++.
72157
72158 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72159
72160         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72161         Don't assume that exit status -1 is valid.
72162         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72163         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72164         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72165         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72166         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72167         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72168         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72169         functions can be used without declaring them, or that you can
72170         exit with status -1.
72171         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72172
72173 2006-04-24  Karl Berry  <karl@gnu.org>
72174
72175         * config/srclist.txt (longdouble.m4): sync lost.
72176
72177 2006-04-24  Eric Blake  <ebb9@byu.net>
72178
72179         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72180
72181 2006-04-24  Bruno Haible  <bruno@clisp.org>
72182
72183         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72184         poll() implementation in AIX.
72185         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72186
72187 2006-04-24  Bruno Haible  <bruno@clisp.org>
72188
72189         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72190         assigned exactly once.
72191
72192 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72193             Bruno Haible  <bruno@clisp.org>
72194
72195         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72196         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72197         for AM_CPPFLAGS.
72198
72199 2006-04-23  Bruno Haible  <bruno@clisp.org>
72200
72201         * modules/copy-file: Depend on unistd.
72202         * modules/execute: Likewise.
72203         * modules/fatal-signal: Likewise.
72204         * modules/findprog: Likewise.
72205         * modules/mkdtemp : Likewise.
72206         * modules/pipe: Likewise.
72207         * modules/wait-process: Likewise.
72208
72209 2006-04-23  Bruno Haible  <bruno@clisp.org>
72210
72211         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72212         condition was already detected.
72213         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72214
72215 2006-04-23  Bruno Haible  <bruno@clisp.org>
72216
72217         * lib/copy-file.c: Include <unistd.h> unconditionally.
72218         * lib/execute.c: Likewise.
72219         * lib/fatal-signal.c: Likewise.
72220         * lib/findprog.c: Likewise.
72221         * lib/mkdtemp.c: Likewise.
72222         * lib/pipe.h: Likewise.
72223         * lib/pipe.c: Likewise.
72224         * lib/wait-process.h: Likewise.
72225
72226 2006-04-23  Bruno Haible  <bruno@clisp.org>
72227
72228         * gnulib-tool (func_usage): Fix --import description. Document
72229         --update.
72230         (func_import): Create temporary file in a temporary directory, if
72231         --dry-run is specified. Silence errors from 'grep' when there are no
72232         m4 files in $m4dir.
72233         (func_create_testdir): Silence errors from 'grep' when there are no
72234         m4 files in $m4dir.
72235         Reported by Karl Berry <karl@freefriends.org>.
72236
72237 2006-04-20  Bruno Haible  <bruno@clisp.org>
72238
72239         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72240         one argument, so that the code will be portable to Autoconf 2.60.
72241         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72242         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72243         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72244
72245 2006-04-19  Derek Price  <derek@ximbiot.com>
72246             Eric Blake  <ebb9@byu.net>
72247
72248         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72249         rather than "/full/path.h".  Update comment to match.  Shorten &
72250         generalize m4_translit call via AS_TR_CPP.
72251
72252 2006-04-19  Derek Price  <derek@ximbiot.com>
72253             Eric Blake  <ebb9@byu.net>
72254
72255         * lib/inttypes.h: Correct grammar in comment.
72256
72257 2006-04-18  Derek Price  <derek@ximbiot.com>
72258             Paul Eggert  <eggert@cs.ucla.edu>
72259
72260         * modules/inttypes: New file.
72261         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72262
72263 2006-04-18  Derek Price  <derek@ximbiot.com>
72264             Paul Eggert  <eggert@cs.ucla.edu>
72265
72266         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72267         New files.
72268
72269 2006-04-18  Derek Price  <derek@ximbiot.com>
72270             Paul Eggert  <eggert@cs.ucla.edu>
72271
72272         * lib/inttypes.h: New file.
72273         * lib/strtoimax.c: Assume <inttypes.h>.
72274
72275 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72276
72277         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72278         isn't mounted.  Problem reported by Kir Kolyshkin.
72279
72280 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72281
72282         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72283         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72284         Derek R. Price.
72285         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72286         implementation.
72287
72288 2006-04-12  Eric Blake  <ebb9@byu.net>
72289
72290         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72291         is now done automatically by the corresponding Autoconf macro.
72292
72293 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72294
72295         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72296         time_r.h.
72297
72298 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72299
72300         Merge regex changes from libc, removing some of our
72301         POSIX-conformance changes that were rejected and redoing them in a
72302         less-intrusive way.
72303
72304         * lib/regcomp.c (re_compile_internal, init_dfa):
72305         Length arg is now size_t, not Idx.  All uses changed.
72306         (peek_token): Forward decl now says internal_function.
72307         (__re_error_msgid, __re_error_msgid_idx):
72308         Now static rather than extern with attribute_hidden.
72309         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72310         For some reason libc prefers K&R style defns for external functions.
72311         (regerror) [!defined _LIBC]: Likewise.
72312         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72313         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72314         (build_range_exp, build_collating_symbol):
72315         Use K&R-style defn.
72316         (re_compile_fastmap): Use '\0' to memset, not 0.
72317         (utf8_sb_map): Make the calculations more obvious.
72318         (init_dfa, parse_bracket_exp, build_charclass_op):
72319         Call calloc and cast result, as glibc does.
72320         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72321         (build_range_exp, build_collating_symbol):
72322         Now internal functions.
72323
72324         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72325
72326         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72327         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72328         Don't depend on VMS; depend on __VMS instead, for POSIX
72329         namespace cleanness.
72330         (regoff_t): Define to ssize_t, not long int.
72331
72332         Remove the REG_ macros named below.  Instead, make the old names
72333         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72334         __USE_GNU_REGEX.
72335         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72336         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72337         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72338         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72339         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72340         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72341         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72342         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72343         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72344         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72345         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72346         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72347         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72348         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72349         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72350         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72351         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72352         (REG_NREGS):
72353         Remove.  All uses replaced by the old RE_* names.
72354         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72355         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72356         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72357         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72358         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72359         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72360         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72361         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72362         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72363         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72364         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72365         Don't bother having these macros be independent of each others'
72366         values, since they no longer exist in the POSIX name space.
72367
72368         Rename the following member names back to their old names,
72369         unless !__USE_GNU_REGEX.  All uses changed back.
72370         (buffer): Renamed from re_buffer.
72371         (allocated): Renamed from re_allocated.
72372         (used): Renamed from re_used.
72373         (syntax): Renamed from re_syntax.
72374         (fastmap): Renamed from re_fastmap.
72375         (translate): Renamed from re_translate.
72376         (can_be_null): Renamed from re_can_be_null.
72377         (regs_allocated): Renamed from re_regs_allocated.
72378         (fastmap_accurate): Renamed from re_fastmap_accurate.
72379         (no_sub): Renamed from re_no_sub.
72380         (not_bol): Renamed from re_not_bol.
72381         (not_eol): Renamed from re_not_eol.
72382         (newline_anchor): Renamed from re_newline_anchor.
72383         (num_regs): Renamed from rm_num_regs.
72384         (start): Renamed from rm_start.
72385         (end): Renamed from rm_end.
72386
72387         (free_state): Move up a bit.
72388
72389         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72390         #define to be empty.
72391         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72392         when that is what is intended.
72393         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72394         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72395         (MAX): New macro.
72396         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72397         All uses changed back to re_malloc, etc.  It's now the caller's
72398         responsibility to check for overflow; all callers changed.
72399         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72400         (re_x2nrealloc): Remove.
72401         (free_state): Remove decl.
72402
72403         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72404         (re_set_registers, re_exec):
72405         Use K&R-style defn.
72406
72407         2006-01-31  Roland McGrath  <roland@redhat.com>
72408
72409         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72410         Reported by Mike Frysinger <vapier@gentoo.org>.
72411
72412         2006-01-15  Andreas Jaeger  <aj@suse.de>
72413
72414         [BZ #1950]
72415         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72416         build_wcs_upper_buffer change.
72417         (build_wcs_upper_buffer): Change return type.
72418
72419         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72420
72421         * lib/regex_internal.h: Include <stdint.h> if available.
72422
72423         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72424
72425         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72426
72427         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72428
72429         * lib/regcomp.c: Adjust for changed secondary hash function.
72430
72431         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72432
72433         * lib/regex.h: Pretty printing.
72434         Clean up namespace a bit.
72435
72436         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72437
72438         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72439         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72440
72441         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72442                     Ulrich Drepper  <drepper@redhat.com>
72443
72444         [BZ #1302]
72445         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72446         changed.
72447         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72448
72449         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72450
72451         [BZ #281]
72452         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72453         * lib/regcomp.c: Remove unnecessary uses of
72454         unsigned RE_TRANSLATE_TYPE.
72455         * lib/regex_internal.h: Likewise.
72456         * lib/regex_internal.c: Likewise.
72457         * lib/regexec.c: Likewise.
72458         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72459
72460         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72461
72462         * lib/regexec.c (find_recover_state): Remove unnecessary
72463         initialization.
72464         (transit_state_bkref): Make DFA a const pointer.
72465         (get_subexp): Likewise.
72466         (check_arrival): Likewise.
72467         (update_cur_sifted_state): Likewise.
72468         (re_search_internal): Likewise.
72469         (prune_impossible_nodes): Likewise.
72470         (acquire_init_state_context): Likewise.
72471         (proceed_next_node): Likewise.
72472         (set_regs): Likewise.
72473         (free_fail_stack_return): Likewise.
72474         (check_arrival_expand_ecl): Mark DFA parameter as const.
72475         (check_arrival_expand_ecl_sub): Likewise.
72476         (check_subexp_limits): Likewise.
72477         (sub_epsilon_src_nodes):  Likewise.
72478         (add_epsilon_src_nodes):  Likewise.
72479         (merge_state_array): Likewise.
72480         (update_regs): Likewise.
72481         (build_trtable): Likewise.
72482         (sift_states_backward): Mark MCTX parameter as const.
72483         (build_sifted_states): Likewise.
72484         (update_cur_sifted_state): Likewise.
72485         (sift_states_mkref): Likewise.
72486         (check_arrival_expand_ecl): Mark eclosure as const.
72487         (check_dst_limits_calc_pos_1): Likewise.
72488         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72489         pointer.
72490
72491         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72492
72493         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72494         (transit_state_sb): Likewise.
72495         (transit_state_mb): Likewise.
72496         (sift_states_iter_mb): Likewise.
72497         (check_arrival_add_next_nodes): Likewise.
72498         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72499         [_LIBC] (re_search_2_stub): Use mempcpy.
72500
72501         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72502         mbrtowc for very simple UTF-8 case.
72503
72504         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72505         a pointer-to-const.
72506         (re_acquire_state_context): Likewise.
72507         * lib/regex_internal.h: Adjust prototypes.
72508
72509         * lib/regex.c: Prevent using C++ compilers.
72510
72511         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72512         (re_acquire_state_context): Likewise.
72513
72514 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72515
72516         * modules/regex (Depends-on): Add ssize_t.
72517
72518 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72519
72520         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72521         translation table.
72522
72523 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72524
72525         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72526
72527 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72528             Bruno Haible  <bruno@clisp.org>
72529
72530         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72531         <sys/types.h> and <inttypes.h>.
72532
72533 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72534
72535         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72536         `__error_t_defined', so argp.h will not typedef the former.
72537
72538 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72539
72540         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72541         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72542         glibc names.  Even if glibc is changed to conform to POSIX, the
72543         traditional names will be available anyway, since regex depends on
72544         the extensions module.  Also, fix a longstanding typo in the
72545         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72546         reported by Emanuele Giaquinta.  Also, change sense of cached
72547         variable, so that the message makes sense.
72548
72549 2006-03-24  Simon Josefsson  <jas@extundo.com>
72550
72551         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72552         including some doc fixes.
72553         (base64_encode_alloc): Fix +1 bug on allocation failures.
72554
72555 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72556
72557         * lib/base64.c (base64_encode): Do not read past end of array with
72558         unsanitized input on systems with CHAR_BIT > 8.
72559
72560 2006-03-24  Eric Blake  <ebb9@byu.net>
72561
72562         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72563
72564 2006-03-22  Karl Berry  <karl@gnu.org>
72565
72566         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72567         * config/srclistvars.sh (COREUTILS): new var.
72568
72569 2006-03-17  Jim Meyering  <jim@meyering.net>
72570
72571         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72572         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72573
72574 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72575
72576         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72577         no longer needs it.  Instead, check that regoff_t is as least
72578         as wide as ptrdiff_t.
72579
72580         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72581         so that our regex.h stays compatible with the installed regex.
72582         This is helpful for installers who configure --without-included-regex.
72583         Problem reported by Emanuele Giaquinta.
72584
72585 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72586
72587         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72588         Typedef to long int, not to off_, as POSIX will likely change
72589         in that direction.
72590
72591 2006-03-15  Eric Blake  <ebb9@byu.net>
72592
72593         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72594
72595 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72596
72597         * lib/argp-help.c (validate_uparams): Fix typo
72598         * lib/argp-parse.c (argp_default_options): Consistently begin help
72599         messages with a lowercase letter.
72600
72601 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72602
72603         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72604         overrun buffers and shouldn't be used (much as gets shouldn't be
72605         used).
72606         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72607
72608 2006-03-08  Simon Josefsson  <jas@extundo.com>
72609
72610         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72611         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72612
72613 2006-03-08  Simon Josefsson  <jas@extundo.com>
72614
72615         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72616         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72617
72618 2006-03-08  Simon Josefsson  <jas@extundo.com>
72619
72620         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72621         signal that configure disabled the device.
72622
72623 2006-03-08  Simon Josefsson  <jas@extundo.com>
72624
72625         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72626         languages.
72627
72628 2006-03-07  Simon Josefsson  <jas@extundo.com>
72629
72630         * modules/getopt (Depends-on): Add unistd.
72631
72632         * modules/unistd: New file.
72633
72634 2006-03-07  Simon Josefsson  <jas@extundo.com>
72635
72636         * modules/gc-random: New file.
72637
72638 2006-03-07  Simon Josefsson  <jas@extundo.com>
72639
72640         * m4/unistd_h.m4: New file.
72641
72642 2006-03-07  Simon Josefsson  <jas@extundo.com>
72643
72644         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72645         test to be side-effect free by storing the result in the cache
72646         variable gl_cv_lib_readline, and moving the assignment of
72647         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72648         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72649
72650 2006-03-07  Simon Josefsson  <jas@extundo.com>
72651
72652         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72653         error on missing devices (the functions will return an error).
72654
72655         * m4/gc.m4: Move random stuff to gc-random.m4
72656
72657 2006-03-07  Simon Josefsson  <jas@extundo.com>
72658
72659         * lib/unistd_.h: New file.
72660
72661 2006-03-07  Simon Josefsson  <jas@extundo.com>
72662
72663         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72664
72665 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72666
72667         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72668         Problem reported by Juan Manuel Guerrero.
72669
72670 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72671
72672         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72673         the unistd module.
72674         * lib/getlogin_r.c: Likewise.
72675         * lib/getlogin_r.h: Likewise.
72676         * lib/glob.c: Likewise.
72677         * lib/pagealign_alloc.c: Likewise.
72678         * lib/unistd_.h: Remove; no longer needed.
72679
72680 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72681
72682         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72683         Add unistd.
72684         * modules/c-stack (Depends-on): Add unistd.
72685         * modules/getlogin_r: Likewise.
72686         * modules/glob: Likewise.
72687         * modules/pagealign_alloc: Likewise.
72688         * modules/unistd (Files): Remove lib/unistd_.h.
72689         (EXTRA_DIST): Remove.
72690         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72691         need unistd_.h.
72692         (MOSTLYCLEANFILES): Remove unistd.h-t.
72693
72694 2006-03-03  Simon Josefsson  <jas@extundo.com>
72695
72696         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72697
72698 2006-03-03  Simon Josefsson  <jas@extundo.com>
72699
72700         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72701         libidn and bison.
72702
72703 2006-03-03  Simon Josefsson  <jas@extundo.com>
72704
72705         * build-aux/maint.mk: Add indent target.
72706
72707 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72708
72709         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72710         our replacement poll.h in any case, to avoid a differing
72711         declaration from a system header.  Seen on AIX.
72712
72713 2006-03-01  Simon Josefsson  <jas@extundo.com>
72714
72715         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72716         <kasal@ucw.cz>.
72717
72718 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72719
72720         * modules/gettime (Depends-on): Add extensions module.
72721         * modules/nanosleep (Depends-on): Likewise.
72722         * modules/settime (Depends-on): Likewise.
72723
72724 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72725
72726         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72727         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72728         pedantically.
72729         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72730         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72731
72732         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72733         not "==".  Reported by Ralf Wildenhues.
72734
72735 2006-03-01  Karl Berry  <karl@gnu.org>
72736
72737         * doc/Copyright/request-*: new files, synced from gnuorg.
72738
72739 2006-03-01  Karl Berry  <karl@gnu.org>
72740
72741         * config/srclist.txt (Copyright/*): new entries.
72742
72743 2006-02-28  Simon Josefsson  <jas@extundo.com>
72744
72745         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72746
72747 2006-02-27  Simon Josefsson  <jas@extundo.com>
72748
72749         * lib/base64.h: Indent #define's.  From Jim Meyering
72750         <jim@meyering.net>.
72751
72752 2006-02-27  Jim Meyering  <jim@meyering.net>
72753
72754         Revert the change of 2006-02-24, so these files can continue
72755         to be sync'd from gettext.
72756         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72757         of `config.h'.
72758
72759 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72760
72761         * modules/intprops: New file.
72762         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72763         Add intprops.
72764         * modules/getloadavg (Files): Remove lib/intprops.h.
72765         (Depends-on): Add intprops.
72766         * modules/human: Likewise.
72767         * modules/inttostr: Likewise.
72768         * modules/openat: Likewise.
72769         * modules/sig2str: Likewise.
72770         * modules/userspec: Likewise.
72771         * modules/utimecmp: Likewise.
72772         * modules/xnanosleep: Likewise.
72773         * modules/xstrtol: Likewise.
72774
72775 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72776
72777         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72778         * modules/lock-tests (TESTS): Use $(EXEEXT).
72779         * modules/tls-tests: Likewise.
72780         * modules/argp-tests: Likewise.
72781         (check_PROGRAMS): New var, replacing...
72782         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72783
72784 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72785
72786         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72787         `config.h'.
72788
72789 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72790
72791         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72792
72793 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72794
72795         Sync from coreutils.
72796         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72797         gl_CHDIR_SAFER.
72798
72799 2006-02-22  Jim Meyering  <jim@meyering.net>
72800
72801         Sync from coreutils.
72802         * m4/chdir-safer.m4: New file.
72803
72804 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72805
72806         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72807         AT_FDCWD exceeds INT_MAX.
72808         * lib/openat.h (AT_FDCWD): Likewise.
72809
72810 2006-02-17  Eric Blake  <address@hidden>
72811
72812         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72813
72814 2006-02-16  Simon Josefsson  <jas@extundo.com>
72815
72816         * modules/getaddrinfo (Depends-on): Add sys_socket.
72817
72818 2006-02-15  Simon Josefsson  <jas@extundo.com>
72819
72820         * build-aux/maint.mk: Add dsyntax-check rule.
72821
72822 2006-02-15  Eric Blake  <ebb9@byu.net>
72823
72824         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72825         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72826         'present but cannot compile' warnings on cygwin.
72827         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72828         use ws2tcpip.h if sys/socket.h works.
72829         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72830         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72831
72832 2006-02-14  Simon Josefsson  <jas@extundo.com>
72833
72834         * modules/maintainer-makefile (Files): Rename.
72835
72836         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72837         and (the local) Makefile.cfg to maint-cfg.mk.
72838
72839         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72840         to the latter.
72841
72842         * modules/maintainer-makefile: New module.
72843
72844         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72845         severaly stripped to make it possible to build it up from scratch
72846         with reliable tests.
72847
72848         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72849         fixes to permit overriding the default actions when configure and
72850         makefile are not available.
72851
72852 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72853
72854         Sync from coreutils.
72855         * modules/lstat (Depends-on): Don't depend on xalloc.
72856         (License): Change from GPL to LGPL, since this is now simply a
72857         replacement for a libc function.
72858
72859 2006-02-14  Jim Meyering  <jim@meyering.net>
72860
72861         Sync from coreutils.
72862
72863         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72864         failure on deficient systems, and simplify gnulib lgpl dependencies.
72865         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72866         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72867
72868         * lib/xalloc-die.c: Remove unused definition of N_.
72869
72870 2006-02-14  Jim Meyering  <jim@meyering.net>
72871
72872         Sync from coreutils.
72873         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72874         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72875         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72876         double-quote uses of that variable, to accommodate the rare case in
72877         which getmntent is available in none of the libraries checked.  This
72878         happens at least on FreeBSD 5.0.
72879
72880 2006-02-13  Simon Josefsson  <jas@extundo.com>
72881
72882         * gnulib-tool (Usage): Fix --import, from
72883         karl@freefriends.org (Karl Berry).
72884
72885 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72886
72887         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72888
72889 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72890
72891         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72892         "autoupdate" on 2005-12-12.
72893
72894 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72895
72896         * modules/closeout (Depends-on): Remove atexit.
72897
72898 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72899
72900         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72901         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72902
72903 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72904
72905         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72906         __EXTENSIONS__ if this causes compilation to fail.  Problem
72907         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72908         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72909
72910 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72911
72912         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72913         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72914         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72915         All uses changed.
72916
72917 2006-01-26  Simon Josefsson  <jas@extundo.com>
72918
72919         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72920         prototype is visible on mingw32.
72921
72922         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72923         for mingw32.
72924
72925         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72926         mingw32).
72927
72928 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72929
72930         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72931         attempt to open for write; this always fails, at least on POSIX
72932         hosts.  This reinstates the 2006-01-09 change, which was
72933         inadvertently removed.
72934
72935 2006-01-26  Bruno Haible  <bruno@clisp.org>
72936
72937         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72938         Reported by Paul Eggert.
72939
72940 2006-01-26  Bruno Haible  <bruno@clisp.org>
72941             Paul Eggert  <eggert@cs.ucla.edu>
72942
72943         * lib/stdbool_.h (_Bool)
72944         [(! (defined __cplusplus || defined __BEOS__)
72945           && !defined __GNUC__
72946           && !(defined __HP_cc || defined __xlc__
72947                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72948                || defined __sgi))]:
72949         #define to signed char in these cases too; this simplifies
72950         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72951         etc., separately) and makes it more conservative.
72952
72953 2006-01-25  Simon Josefsson  <jas@extundo.com>
72954
72955         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72956         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72957         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72958
72959 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72960
72961         * lib/argp-namefrob.h: Bugfix. Remove stray #
72962
72963 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72964
72965         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72966         so that we test the test.
72967         Check for yet another HP-UX cc bug involving *bool |= bool.
72968
72969 2006-01-25  Karl Berry  <karl@gnu.org>
72970
72971         * config/srclist.txt (vasnprintf.c): sync lost.
72972
72973 2006-01-25  Jim Meyering  <jim@meyering.net>
72974
72975         Sync from the stable (b5) branch of coreutils:
72976
72977         * lib/fts.c (fts_children): Don't let close() clobber errno from
72978         failed fchdir().
72979
72980         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72981         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72982         a dangling symlink.  That can also happen at least for ELOOP.
72983         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72984         FYI, this bug predates the inclusion of fts.c in coreutils.
72985
72986         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72987         in their own block, so pre-c99 compilers don't object.
72988
72989         Avoid the double-free (first in fts_read, second in fts_close) that
72990         would occur when an `active' directory is made inaccessible (e.g.,
72991         via chmod a-x) during a traversal.
72992         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72993         before returning.  Reproduce this failure by
72994         mkdir -p a/b; cd a; chmod a-x . b
72995         Reported by Stavros Passas.
72996
72997 2006-01-25  Jim Meyering  <jim@meyering.net>
72998
72999         * lib/fileblocks.c: Remove more useless parentheses.
73000         * lib/readutmp.h: Likewise.
73001
73002 2006-01-25  Bruno Haible  <bruno@clisp.org>
73003
73004         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73005         warnings.
73006         Reported by Paul Eggert.
73007
73008 2006-01-25  Bruno Haible  <bruno@clisp.org>
73009
73010         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73011         rid of a trap command. For Solaris sh.
73012         Reported by Mark D. Baushke <mdb@gnu.org>.
73013
73014 2006-01-24  Simon Josefsson  <jas@extundo.com>
73015
73016         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73017         Bruno.
73018
73019 2006-01-24  Karl Berry  <karl@gnu.org>
73020
73021         * config/srclist.txt (argp-namefrob.h): sync lost.
73022
73023 2006-01-24  Jim Meyering  <jim@meyering.net>
73024
73025         * modules/openat (Files): Add lib/intprops.h.
73026         From Mark D. Baushke.
73027
73028 2006-01-24  Jim Meyering  <jim@meyering.net>
73029
73030         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73031         Reported by Mark D. Baushke.
73032
73033 2006-01-24  Jim Meyering  <jim@meyering.net>
73034
73035         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73036
73037 2006-01-24  Bruno Haible  <bruno@clisp.org>
73038
73039         * modules/strnlen (Maintainer): Change from glibc to all.
73040
73041 2006-01-24  Bruno Haible  <bruno@clisp.org>
73042
73043         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73044         Patch by Paul Eggert.
73045
73046 2006-01-24  Bruno Haible  <bruno@clisp.org>
73047
73048         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73049         already has it.
73050         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73051         2005-11-26.
73052
73053         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73054         'signed char' to avoid problems with the built-in _Bool type.
73055         Reported by Paul Eggert on 2005-11-26.
73056
73057 2006-01-24  Bruno Haible  <bruno@clisp.org>
73058
73059         * gnulib-tool (func_import): Avoid constructing complicated sed
73060         expressions inside backquote.
73061         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73062
73063 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73064
73065         These changes imported from libc.
73066         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73067         test and two separate function calls.
73068         * lib/strndup.c (__strndup): Add libc_hidden_def.
73069
73070 2006-01-23  Simon Josefsson  <jas@extundo.com>
73071
73072         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73073         Remove the test_*_SOURCES variable: automake infers it by default.
73074         * modules/tls-tests: Likewise.
73075
73076 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73077
73078         Work around porting bugs reported by Dieter in
73079         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73080         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73081         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73082         Include "getopt.h" first, to check interface.
73083         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73084         !HAVE_DECL_GETENV.
73085         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73086         (__strndup): Revert to K&R-style function dfns, the glibc style.
73087         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73088         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73089         Include strnlen.h first, to get prototype properly.
73090         (strnlen): Renamed from __strnlen.
73091         Remove weak alias.
73092
73093 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73094
73095         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73096
73097 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73098
73099         * config/srclist.txt: Adjust to reflect glibc reorganization.
73100         This affects only comments.
73101
73102 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73103
73104          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73105          Reported by Bruce Korb <bkorb@gnu.org>.
73106
73107 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73108
73109         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73110         to pacify gcc -Wswitch-default.
73111
73112 2006-01-22  Bruno Haible  <bruno@clisp.org>
73113
73114         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73115         temporary buffer for sprintf, take into account the precision also
73116         for 'd', 'i', 'u', 'o', 'x', 'X'.
73117
73118 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73119
73120         * modules/argp-tests: New module
73121         * tests/test-argp.c: New file
73122         * tests/test-argp-2.sh: New file
73123
73124 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73125
73126         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73127         (__argp_base_name): Removed
73128         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73129         typo.
73130         (__argp_base_name): Provide macro definition or extern declaration
73131         depending on the configuration
73132
73133 2006-01-20  Simon Josefsson  <jas@extundo.com>
73134
73135         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73136
73137 2006-01-20  Simon Josefsson  <jas@extundo.com>
73138
73139         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73140
73141 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73142
73143         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73144         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73145         Suggested by Bruno Haible.
73146
73147 2006-01-20  Karl Berry  <karl@gnu.org>
73148
73149         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73150         until changes propagate, I guess.
73151
73152 2006-01-19  Simon Josefsson  <jas@extundo.com>
73153
73154         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73155
73156 2006-01-19  Simon Josefsson  <jas@extundo.com>
73157
73158         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73159
73160 2006-01-19  Simon Josefsson  <jas@extundo.com>
73161
73162         * gnulib-tool: Set check_PROGRAMS.
73163
73164         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73165         modules/des-tests, modules/gc-arcfour-tests,
73166         modules/gc-arctwo-tests, modules/gc-des-tests,
73167         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73168         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73169         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73170         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73171         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73172         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73173         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73174         test_*_SOURCES.
73175
73176 2006-01-18  Simon Josefsson  <jas@extundo.com>
73177
73178         * modules/socklen (Depends-on): Depend on sys_socket.
73179
73180 2006-01-18  Simon Josefsson  <jas@extundo.com>
73181
73182         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73183         modules/des-tests, modules/gc-arcfour-tests,
73184         modules/gc-arctwo-tests, modules/gc-des-tests,
73185         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73186         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73187         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73188         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73189         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73190         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73191         $(EXEEXT) to automake TESTS variable, for mingw32.
73192
73193 2006-01-17  Simon Josefsson  <jas@extundo.com>
73194
73195         * modules/socklen (Include): Need sys/socket.h.
73196
73197 2006-01-17  Bruno Haible  <bruno@clisp.org>
73198
73199         * modules/ssize_t (Include): Add <sys/types.h>.
73200
73201 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73202
73203         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73204         it's not portable and it doesn't work with cross-compiles.
73205         Problem reported by Bruno Haible.  Fix missing-$ typo in
73206         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73207         -zignore from being used with Sun's C compiler.
73208
73209 2006-01-12  Simon Josefsson  <jas@extundo.com>
73210
73211         * lib/base64.c: Fix warning, reported by Bruno Haible
73212         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73213
73214 2006-01-12  Bruno Haible  <bruno@clisp.org>
73215
73216         * modules/ldd: New file.
73217         * build-aux/ldd.sh.in: New file.
73218         * MODULES.html.sh (Support for building libraries and executables): Add
73219         ldd.
73220
73221 2006-01-12  Bruno Haible  <bruno@clisp.org>
73222
73223         * m4/ldd.m4: New file.
73224
73225 2006-01-12  Bruno Haible  <bruno@clisp.org>
73226
73227         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73228         endless loop while replacing $auxdir with build-aux.
73229
73230 2006-01-11  Simon Josefsson  <jas@extundo.com>
73231
73232         * lib/stdint_.h (SIZE_MAX): Add missing (.
73233
73234 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73235
73236         Sync from coreutils.
73237         * lib/md5.c: Fix commentary typos.
73238         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73239         * lib/md5.h (__attribute__): Remove; unused.
73240         * lib/sha1.c: Fix commentary to match md5 better.
73241         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73242         so that we don't need to worry about alignment.  All uses changed.
73243         This merges the 2005-10-28 md5 change into sha1.
73244
73245 2006-01-11  Jim Meyering  <jim@meyering.net>
73246
73247         Sync from coreutils.
73248         * lib/md5.c (OP): Fix spacing.
73249
73250 2006-01-11  Bruno Haible  <bruno@clisp.org>
73251
73252         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73253         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73254         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73255
73256 2006-01-11  Bruno Haible  <bruno@clisp.org>
73257
73258         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73259         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73260         the "early" section as well.
73261
73262 2006-01-11  Bruno Haible  <bruno@clisp.org>
73263
73264         Avoid "ar: no archive members specified" error on MacOS X.
73265         * gnulib-tool (func_modules_add_dummy): New function.
73266         (func_import, func_create_testdir): Invoke it.
73267
73268 2006-01-11  Bruno Haible  <bruno@clisp.org>
73269
73270         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73271         with $auxdir in AC_CONFIG_FILES statements.
73272
73273 2006-01-11  Bruno Haible  <bruno@clisp.org>
73274
73275         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73276         Initialize also noinst_HEADERS to empty.
73277
73278 2006-01-11  Bruno Haible  <bruno@clisp.org>
73279
73280         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73281         variables.
73282         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73283         autoreconf.
73284
73285 2006-01-11  Bruno Haible  <bruno@clisp.org>
73286
73287         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73288         overridable by the user.
73289         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73290
73291 2006-01-10  Simon Josefsson  <jas@extundo.com>
73292
73293         * modules/sys_socket: New file.
73294
73295 2006-01-10  Simon Josefsson  <jas@extundo.com>
73296
73297         * m4/sys_socket_h.m4: New file.
73298
73299 2006-01-10  Simon Josefsson  <jas@extundo.com>
73300
73301         * lib/socket_.h: New file.
73302
73303 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73304
73305         * modules/readutmp (Maintainer): Add myself.
73306
73307 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73310         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73311         People who are still concerned with buggy memcmp implementations
73312         can invoke gl_FUNC_MEMCMP themselves.
73313
73314 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         * lib/regex_internal.h (BITSET_WORD_BITS):
73317         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73318         preprocessor mishandles large unsigned values as if they were signed.
73319         Problem reported by Claudio Fontana in
73320         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73321
73322 2006-01-10  Jim Meyering  <jim@meyering.net>
73323
73324         Avoid the double-free (first in fts_read, second in fts_close) that
73325         would occur when an `active' directory is made inaccessible (e.g.,
73326         via chmod a-x) during a traversal.
73327         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73328         before returning.  Reproduce this failure by
73329         mkdir -p a/b; cd a; chmod a-x . b
73330         Reported by Stavros Passas.
73331
73332         Sync from coreutils.
73333         * lib/sha1.c: Tweak grammar in a comment.
73334
73335 2006-01-10  Jim Meyering  <jim@meyering.net>
73336
73337         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73338         Patch by Joerg Sonnenberger.
73339
73340 2006-01-10  Bruno Haible  <bruno@clisp.org>
73341
73342         * modules/readutmp: Depend on module free.
73343         * modules/strtok_r: Depend on module restrict.
73344
73345 2006-01-10  Bruno Haible  <bruno@clisp.org>
73346
73347         * modules/gettext (configure.ac): Add an invocation of
73348         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73349
73350 2006-01-10  Bruno Haible  <bruno@clisp.org>
73351
73352         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73353         Reported by Werner Lemberg <wl@gnu.org>.
73354
73355 2006-01-10  Bruno Haible  <bruno@clisp.org>
73356
73357         * lib/localcharset.c: Update from GNU gettext.
73358
73359 2006-01-10  Bruno Haible  <bruno@clisp.org>
73360
73361         * lib/argp.h (__const): Remove macro. Use const instead.
73362         * lib/argp-fmtstream.h (__const): Likewise.
73363         * lib/glob_.h (__const): Remove macro.
73364         * lib/glob-libc.h: Use const instead of __const.
73365
73366 2006-01-10  Bruno Haible  <bruno@clisp.org>
73367
73368         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73369         variable.
73370         Needed to avoid an automake error regarding the 'gettext' module.
73371
73372 2006-01-09  Simon Josefsson  <jas@extundo.com>
73373
73374         * modules/inet_ntop (Depends-on): Add restrict.
73375
73376 2006-01-09  Simon Josefsson  <jas@extundo.com>
73377
73378         * modules/gc-rijndael-tests (License): Put under LGPL.
73379
73380         * modules/gc-des-tests (License): Likewise.
73381
73382         * modules/gc-arcfour-tests (License): Likewise.
73383
73384         * modules/gc-arctwo-tests (License): Likewise.
73385
73386         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73387
73388         * modules/gc-hmac-sha1-tests (Files): Likewise.
73389
73390         * modules/gc-hmac-md5-tests (License): Likewise.
73391
73392         * modules/gc-sha1-tests (License): Likewise.
73393
73394         * modules/gc-md5-tests (License): Likewise.
73395
73396         * modules/gc-md4-tests (License): Likewise.
73397
73398         * modules/gc-md2-tests (License): Likewise.
73399
73400         * modules/gc-tests (License): Likewise.
73401
73402         * modules/des-tests (License): Likewise.
73403
73404         * modules/md4-tests (License): Likewise.
73405
73406         * modules/md2-tests (License): Likewise.
73407
73408 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73409
73410         Sync from coreutils:
73411
73412         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73413         * modules/lib-ignore: New file.
73414         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73415         chdir-safer.m4, lchmod.m4.
73416         * modules/openat: Add mkdirat.c, openat-priv.h.
73417
73418 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73419
73420         Sync from coreutils.
73421         * m4/lib-ignore.m4: New file.
73422         * m4/lchmod.m4: New file.
73423
73424 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73425
73426         Sync from coreutils.
73427         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73428         for write access: POSIX says that must fail.
73429         * lib/fts.c (diropen): Likewise.
73430         * lib/save-cwd.c (save_cwd): Likewise.
73431         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73432         well, for minor improvements on hosts that lack O_DIRECTORY.
73433         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73434         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73435         Fall back on chown if open failed with EACCES.
73436
73437         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73438         Report an error at compile-time if only a 1-second nominal clock
73439         resolution is found.
73440
73441         * lib/lchmod.h: New file.
73442         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73443         (make_dir_parents): Use lchown rather than chown, and
73444         lchmod rather than chmod.
73445
73446         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73447         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73448         "proc" reported by n0dalus.
73449
73450         * lib/mountlist.c: Include <limits.h>.
73451         (dev_from_mount_options)
73452         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73453         New function.  It no longer assumes "dev=" has the System V meaning
73454         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73455         (read_file_system_list)
73456         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73457         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73458         dev= in that case.
73459
73460         * lib/posixtm.h (PDS_PRE_2000): New macro.
73461         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73462         allow_century.  All usages changed.  Reject dates outside the range
73463         1969-1999 if PDS_PRE_2000 is used.
73464
73465 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73466
73467         Sync from coreutils.
73468         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73469         (Time of day items): Mention the possibility of leap seconds.
73470         Problem reported by Dr. David Alan Gilbert.
73471
73472 2006-01-09  Jim Meyering  <jim@meyering.net>
73473
73474         Sync from coreutils.
73475
73476         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73477
73478         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73479
73480         * lib/modechange.c (mode_compile): Reject an invalid mode string
73481         that starts with an octal digit.  From Andreas Gruenbacher.
73482
73483         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73484         and dup to open_safer and dup_safer, respectively.
73485         (openat_permissive): Fix typo in comment.
73486
73487         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73488         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73489         (_): Remove; no longer needed.
73490         (openat): Renamed from rpl_openat; no need for rpl_openat
73491         since openat.h renames openat for us.
73492         Replace most of the body with a call to openat_permissive,
73493         to avoid duplicate code.
73494         Port to (probably hypothetical) environments were mode_t is
73495         wider than int.
73496         (openat_permissive): Require mode arg, so that we can check
73497         types better.  Put it just after flags.  Change cwd failure
73498         indicator from pointer-to-bool to pointer-to-errno-value.
73499         All callers changed.
73500         Invoke openat_save_fail and/or openat_restore_fail if
73501         cwd_errno is null, so that openat can call us.
73502         (openat_permissive, fdopendir, fstatat, unlinkat):
73503         Simplify errno handling to avoid some duplicate code,
73504         as it's OK to set errno on success.
73505         * lib/openat.h: Revamp code so that function macros depend on
73506         __OPENAT_PREFIX only, not also on AT_FDCWD.
73507         (openat_ro): Remove.  Caller changed to use openat_permissive.
73508         (openat_permissive): Now a macro, if not a function.
73509         (openat_restore_fail, openat_save_fail): Now always functions,
73510         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73511
73512         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73513         and openat.c.
73514         * lib/mkdirat.c: Include openat-priv.h.
73515         Remove definitions of macros defined therein.
73516         * lib/openat.c: Likewise.
73517
73518         * lib/mkdirat.c (mkdirat): New file and function.
73519         * lib/openat.h (mkdirat): Declare.
73520
73521         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73522
73523         * lib/openat.h (openat_permissive): Declare.
73524         (openat_ro): Define.
73525
73526         * lib/openat.c (EXPECTED_ERRNO): New macro.
73527         (openat_permissive): New function -- used in remove.c rewrite.
73528         (all functions): Set errno just before returning, only if there
73529         was an actual failure.
73530         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73531
73532         Emulate openat-family functions using Linux's procfs, if possible.
73533         Idea and some code based on Ulrich Drepper's glibc changes.
73534
73535         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73536         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73537         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73538         before falling back on save_cwd and restore_cwd.
73539         (fdopendir, fstatat, unlinkat): Likewise.
73540
73541         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73542         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73543
73544         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73545         as second argument to va_arg.  Otherwise, some versions of gcc
73546         warn that `if this code is reached, the program will abort'.
73547
73548 2006-01-09  Jim Meyering  <jim@meyering.net>
73549
73550         Sync from coreutils.
73551         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73552         Require openat-priv.h.
73553
73554 2006-01-09  Bruno Haible  <bruno@clisp.org>
73555
73556         * modules/strnlen (Include): Use strnlen.h.
73557
73558 2006-01-09  Bruno Haible  <bruno@clisp.org>
73559
73560         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73561
73562 2006-01-09  Bruno Haible  <bruno@clisp.org>
73563
73564         * lib/sysexit_.h (EX_OK): New macro.
73565         Suggested by Martin Lambers <marlam@marlam.de>.
73566
73567 2006-01-09  Bruno Haible  <bruno@clisp.org>
73568
73569         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73570         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73571
73572 2006-01-09  Bruno Haible  <bruno@clisp.org>
73573
73574         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73575         numbers.
73576
73577 2006-01-09  Bruno Haible  <bruno@clisp.org>
73578
73579         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73580         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73581         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73582         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73583
73584 2006-01-09  Bruno Haible  <bruno@clisp.org>
73585
73586         * build-aux/javacomp.sh.in: New file, moved from lib/.
73587         * modules/javacomp-script (Files): Update.
73588         (configure.ac): Add AC_CONFIG_FILES invocation.
73589         (EXTRA_DIST): Remove variable.
73590
73591         * build-aux/javaexec.sh.in: New file, moved from lib/.
73592         * modules/javaexec (Files): Update.
73593         (configure.ac): Add AC_CONFIG_FILES invocation.
73594         (EXTRA_DIST): Remove javaexec.sh.in.
73595
73596         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73597         * modules/csharpcomp-script (Files): Update.
73598         (configure.ac): Add AC_CONFIG_FILES invocation.
73599         (EXTRA_DIST): Remove variable.
73600
73601         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73602         * modules/csharpexec (Files): Update.
73603         (configure.ac): Add AC_CONFIG_FILES invocation.
73604         (EXTRA_DIST): Remove csharpexec.sh.in.
73605
73606 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73607
73608         Sync from coreutils.
73609
73610         Add POSIX ACL support
73611         * lib/acl.h (copy_acl, set_acl): Add declarations.
73612         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73613         systems other than Linux.
73614         (chmod_or_fchmod): New function: use fchmod when possible,
73615         and chmod otherwise.
73616         (file_has_acl): Add a POSIX ACL implementation, with a
73617         Linux-specific subcase.
73618         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73619         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73620         acls are unsupported.
73621         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73622         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73623         are unsupported.
73624
73625 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73626
73627         Sync from coreutils.
73628         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73629
73630 2006-01-07  Bruno Haible  <bruno@clisp.org>
73631
73632         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73633         gl_EARLY.
73634
73635 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73638         Problem reported for Mingw by Mark Junker.
73639
73640 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         * README: Gnulib normally doesn't generate a tarball.
73643
73644 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73645
73646         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73647         long int, not int, for nanosecond counts, so that people who are
73648         used to POSIX struct timespec won't be surprised.  Reported by Jim
73649         Meyering.
73650
73651 2005-12-28  Bruno Haible  <bruno@clisp.org>
73652
73653         * build-aux/config.rpath: Update from GNU gettext.
73654
73655 2005-12-16  Jim Meyering  <jim@meyering.net>
73656
73657         * modules/fprintftime: New module.
73658         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73659
73660 2005-12-16  Jim Meyering  <jim@meyering.net>
73661
73662         * m4/fprintftime.m4: New file.
73663
73664 2005-12-16  Jim Meyering  <jim@meyering.net>
73665
73666         * lib/fprintftime.c, lib/fprintftime.h: New files.
73667
73668 2005-12-15  Simon Josefsson  <jas@extundo.com>
73669
73670         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73671         new m4/socklen.m4.
73672
73673 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73674
73675         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73676         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73677
73678 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73679
73680         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73681         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73682         struct uparams is valid. Fall back to the default values if it is
73683         not.
73684
73685 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73686
73687         * modules/argp (Files): Add argp-pin.c
73688         (Depends-on): dirname
73689         (lib_SOURCES): Add argp-pin.c
73690
73691 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73692
73693         * m4/argp.m4:  Check if program_invocation_name and
73694         program_invocation_short_name are declared and define appropriate
73695         macros if they are not.
73696
73697 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73698
73699         * lib/argp-help.c (__argp_base_name): New function
73700         (__argp_short_program_name): Rewrite using __argp_base_name
73701         * lib/argp-namefrob.h: Define program_invocation_name and
73702         program_invocation_short_name if requested
73703         (__argp_base_name): Add prototype
73704         * lib/argp-parse.c (argp_def): Use gettext wrappers
73705         (argp_default_parser): Use __argp_base_name
73706         * lib/argp-pin.c: New file. Defines program_invocation_name and
73707         program_invocation_short_name on systems that lack them.
73708
73709 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73710
73711         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73712         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73713         porting problem reported by Georg Schwarz in
73714         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73715
73716 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73717
73718         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73719         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73720         porting problem reported by Georg Schwarz in
73721         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73722
73723 2005-12-05  Bruno Haible  <bruno@clisp.org>
73724
73725         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73726         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73727         Reported by Mark Junker <mjscod@gmx.de>.
73728
73729 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73730
73731         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73732         Use implementation from Albert Chin, with some
73733         comments/corrections by Stepan Kasal and myself.
73734
73735 2005-12-02  Bruno Haible  <bruno@clisp.org>
73736
73737         * gnulib-tool (func_import): Accept GPLed build tool modules when
73738         --lgpl is given.
73739         * modules/csharpcomp-script: New file.
73740         * modules/csharpcomp: Depend on it.
73741         * modules/javacomp-script: New file.
73742         * modules/javacomp: Depend on it.
73743         Suggested by Simon Josefsson.
73744
73745 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73746
73747         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73748         statement, to work around an HP-UX 10.20 compiler bug reported by
73749         Peter O'Gorman.
73750
73751 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73752
73753         * modules/savedir (Depends-on): Add openat.
73754
73755 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73758         (uintmax_t) [defined uintmax_t]: Do not declare.
73759         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73760         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73761         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73762         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73763         sake of portability to weird hosts that C allows (though we don't
73764         know of any practical examples).
73765
73766         * lib/savedir.h (fdsavedir): New decl.
73767         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73768         contains most of the former guts of savedir.
73769         (savedir): Use savedirstream.
73770         Include "openat.h".
73771
73772 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73773
73774         * modules/obstack (Files): Add m4/ulonglong.m4.
73775         Problem reported by Davide Angelocola.
73776
73777 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73778
73779         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73780         coreutils no longer futzes with rounding modes.
73781
73782 2005-11-14  Jim Meyering  <jim@meyering.net>
73783
73784         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73785         replacement of mkstemp.
73786
73787 2005-11-10  Simon Josefsson  <jas@extundo.com>
73788
73789         * lib/readline.c: Remove EOL.
73790
73791 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73792
73793         * modules/gethrxtime (Depends-on): Add gettime.
73794
73795 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73796
73797         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73798         or gettimeofday; no longer needed.
73799
73800 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73801
73802         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73803         time business.
73804         (gethrxtime) [! (HAVE_NANOUPTIME
73805         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73806         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73807         our own approximation.
73808
73809 2005-11-08  Eric Blake  <ebb9@byu.net>
73810
73811         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73812
73813 2005-11-08  Eric Blake  <ebb9@byu.net>
73814
73815         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73816
73817 2005-11-04  Bruno Haible  <bruno@clisp.org>
73818
73819         * gnulib-tool: Implement --update mode.
73820
73821 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73822
73823         Fix porting problem reported by Theodoros V. Kalamatianos.
73824         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73825         Don't assume that futimes failing means we must fail.
73826
73827 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73828
73829         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73830         variables to suggest the intended function of the PATH_MAX check.
73831
73832 2005-10-30  Kean Johnston  <jkj@sco.com>
73833
73834         Trivial changes to support SCO systems.
73835         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73836         as PATH_MAX.
73837         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73838         where __ptr is null when no I/O is pending.
73839
73840 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73841
73842         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73843         leave errno alone.  Problem reported by Dmitry V. Levin.
73844
73845 2005-10-28  Simon Josefsson  <jas@extundo.com>
73846
73847         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73848         Test more.
73849
73850         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73851
73852         * modules/md2, modules/md2-tests: New files.
73853
73854 2005-10-28  Simon Josefsson  <jas@extundo.com>
73855
73856         * m4/inet_ntop.m4: More tests.
73857
73858         * m4/gc-md2.m4, md2.m4: New file.
73859
73860 2005-10-28  Simon Josefsson  <jas@extundo.com>
73861
73862         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73863         "restrict" keywords, as per POSIX.  Protect the function
73864         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73865         Don't use K&R prototypes.  Check the sprintf return values.
73866         Re-define EAFNOSUPPORT if not present.  Indent.
73867
73868         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73869         suggested by Bruno Haible <bruno@clisp.org>.
73870
73871         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73872
73873         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73874
73875         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73876         libgcrypt).
73877
73878         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73879
73880         * lib/md2.h, lib/md2.c: New files.
73881
73882 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73883
73884         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73885         errno alone.  Problem reported by Frederic Jolliton.
73886
73887 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73888
73889         * modules/verify (License): Change from GPL to LGPL.  This is a
73890         tiny module and there are apparently near-equivalents that are
73891         under the BSD license.
73892
73893 2005-10-24  Simon Josefsson  <jas@extundo.com>
73894
73895         * modules/sha1: Relicense to LGPL.
73896
73897 2005-10-24  Simon Josefsson  <jas@extundo.com>
73898
73899         * lib/md4.h: Shrink buffer size, now that we changed the type.
73900
73901 2005-10-23  Simon Josefsson  <jas@extundo.com>
73902
73903         * gnulib-tool (func_import): Fix --tests-base.
73904
73905 2005-10-22  Simon Josefsson  <jas@extundo.com>
73906
73907         * modules/arcfour (Depends-on): Need stdint.
73908
73909 2005-10-22  Simon Josefsson  <jas@extundo.com>
73910
73911         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73912         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73913
73914 2005-10-22  Simon Josefsson  <jas@extundo.com>
73915
73916         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73917         suggested by Bruno Haible <bruno@clisp.org>.
73918
73919 2005-10-22  Simon Josefsson  <jas@extundo.com>
73920
73921         * lib/crc.h: Include stddef.h, for size_t.
73922
73923 2005-10-22  Simon Josefsson  <jas@extundo.com>
73924
73925         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73926         arcfour_context struct (simplify test vector testing in GNU
73927         Shishi).
73928
73929 2005-10-21  Simon Josefsson  <jas@extundo.com>
73930
73931         * modules/des, modules/des-tests: New files.
73932
73933         * modules/gc-des, modules/gc-des-tests: New files.
73934
73935         * tests/test-des.c, tests/test-gc-des.c: New file.
73936
73937 2005-10-21  Simon Josefsson  <jas@extundo.com>
73938
73939         * modules/arctwo, modules/arctwo-tests: New files.
73940
73941         * tests/test-arctwo.c: New file.
73942
73943         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73944
73945         * tests/test-gc-arctwo.c: New file.
73946
73947 2005-10-21  Simon Josefsson  <jas@extundo.com>
73948
73949         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73950         Bruno Haible <bruno@clisp.org>.
73951
73952         * m4/gc-des.m4: New file.
73953
73954 2005-10-21  Simon Josefsson  <jas@extundo.com>
73955
73956         * m4/arctwo.m4: New file.
73957
73958         * m4/gc-arctwo.m4: New file.
73959
73960 2005-10-21  Simon Josefsson  <jas@extundo.com>
73961
73962         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73963         block.
73964
73965 2005-10-21  Simon Josefsson  <jas@extundo.com>
73966
73967         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73968         <bruno@clisp.org>.
73969
73970         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73971
73972         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73973         Bruno Haible <bruno@clisp.org>.
73974
73975         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73976         <bruno@clisp.org>.
73977
73978 2005-10-21  Simon Josefsson  <jas@extundo.com>
73979
73980         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73981
73982 2005-10-21  Simon Josefsson  <jas@extundo.com>
73983
73984         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73985
73986 2005-10-21  Simon Josefsson  <jas@extundo.com>
73987
73988         * lib/des.h, lib/des.c: New files.
73989
73990         * lib/gc-gnulib.c: Support DES.c
73991
73992 2005-10-21  Simon Josefsson  <jas@extundo.com>
73993
73994         * lib/arctwo.h, lib/arctwo.c: New files.
73995
73996         * lib/gc-gnulib.c: Support ARCTWO.
73997
73998 2005-10-21  Simon Josefsson  <jas@extundo.com>
73999
74000         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74001         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74002
74003 2005-10-21  Simon Josefsson  <jas@extundo.com>
74004
74005         * gnulib-tool (func_import, func_create_testdir): Define automake
74006         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74007         Makefile.am snippet),
74008         suggested by Bruno Haible <bruno@clisp.org>.
74009
74010         * modules/gc (Makefile.am): Use it.
74011
74012 2005-10-21  Bruno Haible  <bruno@clisp.org>
74013
74014         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74015         patch.
74016
74017 2005-10-19  Simon Josefsson  <jas@extundo.com>
74018
74019         * tests/test-gc-rijndael.c: New file.
74020
74021         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74022
74023 2005-10-19  Simon Josefsson  <jas@extundo.com>
74024
74025         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74026         interface too.
74027
74028 2005-10-19  Simon Josefsson  <jas@extundo.com>
74029
74030         * tests/test-gc-arcfour.c: New file.
74031
74032         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74033
74034 2005-10-19  Simon Josefsson  <jas@extundo.com>
74035
74036         * modules/gc-md4, modules/gc-md4-tests: New file.
74037
74038         * tests/test-gc-md4.c: New file.
74039
74040 2005-10-19  Simon Josefsson  <jas@extundo.com>
74041
74042         * m4/gc-md4.m4: New file.
74043
74044 2005-10-19  Simon Josefsson  <jas@extundo.com>
74045
74046         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74047         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74048         <kasal@ucw.cz>.
74049
74050 2005-10-19  Simon Josefsson  <jas@extundo.com>
74051
74052         * m4/gc-arcfour.m4: New file.
74053
74054         * m4/gc-rijndael.m4: New file.
74055
74056 2005-10-19  Simon Josefsson  <jas@extundo.com>
74057
74058         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74059
74060 2005-10-19  Simon Josefsson  <jas@extundo.com>
74061
74062         * lib/gc-gnulib.c: Support ARCFOUR.
74063
74064 2005-10-19  Simon Josefsson  <jas@extundo.com>
74065
74066         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74067         support.
74068
74069         * lib/gc.h: Add ECB enum type.
74070
74071         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74072
74073 2005-10-18  Simon Josefsson  <jas@extundo.com>
74074
74075         * tests/test-md5.c: New file.
74076
74077         * modules/md5-tests: New file.
74078
74079 2005-10-18  Simon Josefsson  <jas@extundo.com>
74080
74081         * tests/test-md4.c: New file.
74082
74083         * modules/md4, modules/md4-tests: New files.
74084
74085 2005-10-18  Simon Josefsson  <jas@extundo.com>
74086
74087         * m4/md4.m4: New file.
74088
74089 2005-10-18  Simon Josefsson  <jas@extundo.com>
74090
74091         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74092
74093 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74094
74095         * gnulib-tool (func_create_testdir): Omit the second check whether
74096         BUILT_SOURCES in nonempty.
74097
74098 2005-10-17  Simon Josefsson  <jas@extundo.com>
74099
74100         * tests/test-rijndael.c: New file.
74101
74102 2005-10-17  Simon Josefsson  <jas@extundo.com>
74103
74104         * modules/sha1: Depend on stdint instead of md5.
74105
74106         * modules/md5: Depend on stdint, remove uint32_t.
74107
74108 2005-10-17  Simon Josefsson  <jas@extundo.com>
74109
74110         * modules/gc-sha1-tests: New file.
74111
74112         * tests/test-gc-sha1.c: New file.
74113
74114 2005-10-17  Simon Josefsson  <jas@extundo.com>
74115
74116         * m4/md5.m4: Remove call to uint32_t.m4.
74117
74118 2005-10-17  Simon Josefsson  <jas@extundo.com>
74119
74120         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74121
74122         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74123         md5.h.
74124
74125         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74126
74127         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74128
74129 2005-10-17  Simon Josefsson  <jas@extundo.com>
74130
74131         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74132
74133 2005-10-17  Simon Josefsson  <jas@extundo.com>
74134
74135         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74136
74137 2005-10-17  Simon Josefsson  <jas@extundo.com>
74138
74139         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74140
74141         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74142
74143 2005-10-17  Bruno Haible  <bruno@clisp.org>
74144
74145         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74146         that it can also be used in a test.
74147
74148 2005-10-16  Bruno Haible  <bruno@clisp.org>
74149
74150         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74151         TESTS_ENVIRONMENT, so that individual tests can augment it.
74152
74153         * gnulib-tool (func_create_testdir): Use an intermediate target for
74154         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74155         macros, like $(ALLOCA_H), which cannot be passed through the command
74156         line.
74157
74158 2005-10-15  Simon Josefsson  <jas@extundo.com>
74159
74160         * modules/rijndael-tests: New file.
74161
74162         * modules/rijndael: New file.
74163
74164 2005-10-15  Simon Josefsson  <jas@extundo.com>
74165
74166         * m4/rijndael.m4: New file.
74167
74168 2005-10-15  Simon Josefsson  <jas@extundo.com>
74169
74170         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74171
74172         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74173
74174 2005-10-14  Simon Josefsson  <jas@extundo.com>
74175
74176         * tests/test-arcfour.c: New file.
74177
74178         * modules/arcfour, modules/arcfour-tests: New files.
74179
74180 2005-10-14  Simon Josefsson  <jas@extundo.com>
74181
74182         * m4/arcfour.m4: New file.
74183
74184 2005-10-14  Simon Josefsson  <jas@extundo.com>
74185
74186         * lib/arcfour.h, lib/arcfour.c: New files.
74187
74188 2005-10-14  Roland McGrath  <roland@redhat.com>
74189
74190         Import from libc.  [BZ #1331]
74191         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74192         macro argument.
74193         Reported by Matej Vela <vela@debian.org>.
74194
74195 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74196
74197         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74198         include <wchar.h>; no longer needed.
74199
74200 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74201
74202         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74203
74204 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74205         and  Ulrich Drepper  <drepper@redhat.com>
74206
74207         Import from libc.
74208         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74209         instead of inline stream orientation test and two separate
74210         function calls.  Pay no attention to USE_IN_LIBIO.
74211
74212 2005-10-13  Simon Josefsson  <jas@extundo.com>
74213
74214         * modules/gc-hmac-md5-tests: New file.
74215
74216         * tests/test-gc-hmac-sha1.c: New file.
74217
74218         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74219
74220         * modules/gc-hmac-md5-tests: New file.
74221
74222         * tests/test-gc-md5.c: New file.
74223
74224         * modules/gc-md5-tests: New file.
74225
74226 2005-10-13  Simon Josefsson  <jas@extundo.com>
74227
74228         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74229         Move memory allocation outside of loop.
74230
74231 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74232
74233         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74234         intermediate directory is in a read-only file system.  Problem
74235         reported by Eric Blake.
74236
74237 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74238
74239         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74240
74241 2005-10-12  Simon Josefsson  <jas@extundo.com>
74242
74243         * tests/test-hmac-sha1.c: New file.
74244
74245         * modules/hmac-sha1-tests: New file.
74246
74247         * modules/hmac-sha1: New file.
74248
74249 2005-10-12  Simon Josefsson  <jas@extundo.com>
74250
74251         * modules/gc-sha1: New file.
74252
74253 2005-10-12  Simon Josefsson  <jas@extundo.com>
74254
74255         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74256
74257         * tests/test-gc-pbkdf2-sha1.c: New file.
74258
74259 2005-10-12  Simon Josefsson  <jas@extundo.com>
74260
74261         * modules/gc-md5, modules/gc-hmac-md5: New files.
74262
74263         * modules/gc (Files): Remove md5, memxor and hmac files.
74264
74265 2005-10-12  Simon Josefsson  <jas@extundo.com>
74266
74267         * m4/gc-pbkdf2-sha1.m4: New file.
74268
74269         * m4/gc-hmac-sha1.m4: New file.
74270
74271         * m4/gc-sha1: New file.
74272
74273         * m4/hmac-sha1.m4: New file.
74274
74275 2005-10-12  Simon Josefsson  <jas@extundo.com>
74276
74277         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74278
74279         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74280
74281 2005-10-12  Simon Josefsson  <jas@extundo.com>
74282
74283         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74284         suggested by Bruno Haible <bruno@clisp.org>.
74285
74286 2005-10-12  Simon Josefsson  <jas@extundo.com>
74287
74288         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74289
74290 2005-10-12  Simon Josefsson  <jas@extundo.com>
74291
74292         * lib/gc-pbkdf2-sha1.c: New file.
74293
74294         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74295
74296 2005-10-12  Simon Josefsson  <jas@extundo.com>
74297
74298         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74299
74300         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74301
74302 2005-10-12  Simon Josefsson  <jas@extundo.com>
74303
74304         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74305         GC_USE_HMAC_MD5, respectively.
74306
74307         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74308         (gc_md5): Fix typo.
74309
74310         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74311
74312         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74313
74314         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74315
74316 2005-10-12  Bruno Haible  <bruno@clisp.org>
74317
74318         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74319         Reported by Stepan Kasal <kasal@ucw.cz>.
74320
74321 2005-10-11  Simon Josefsson  <jas@extundo.com>
74322
74323         * tests/test-crc.c: New file.
74324
74325         * modules/crc, modules/crc-tests: New files.
74326
74327 2005-10-11  Simon Josefsson  <jas@extundo.com>
74328
74329         * m4/crc.m4: New file.
74330
74331 2005-10-11  Simon Josefsson  <jas@extundo.com>
74332
74333         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74334
74335         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74336
74337         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74338
74339 2005-10-11  Simon Josefsson  <jas@extundo.com>
74340
74341         * lib/crc.h, lib/crc.c: New files.
74342
74343         * lib/gc.h (gc_hash_buffer): Add doc.
74344
74345 2005-10-11  Bruno Haible  <bruno@clisp.org>
74346
74347         * modules/c-strcasestr: New file.
74348         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74349
74350 2005-10-11  Bruno Haible  <bruno@clisp.org>
74351
74352         * modules/c-strcase: New file.
74353         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74354
74355 2005-10-11  Bruno Haible  <bruno@clisp.org>
74356
74357         * lib/strcasecmp.c: Include limits.h.
74358         (strcasecmp): Avoid integer overflow on exotic platforms.
74359         * lib/strncasecmp.c: Include limits.h.
74360         (strncasecmp): Avoid integer overflow on exotic platforms.
74361         Reported by Paul Eggert.
74362
74363 2005-10-11  Bruno Haible  <bruno@clisp.org>
74364
74365         * lib/c-strcasestr.h: New file, from GNU gettext.
74366         * lib/c-strcasestr.c: New file, from GNU gettext.
74367
74368 2005-10-11  Bruno Haible  <bruno@clisp.org>
74369
74370         * lib/c-strcase.h: New file, from GNU gettext.
74371         * lib/c-strcasecmp.c: New file, from GNU gettext.
74372         * lib/c-strncasecmp.c: New file, from GNU gettext.
74373
74374 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74375
74376         * modules/mempcpy (License): GPL -> LGPL.
74377         * modules/strchrnul (License): Likewise.
74378         * modules/sysexits (License): Likewise.
74379
74380 2005-10-08  Simon Josefsson  <jas@extundo.com>
74381
74382         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74383
74384 2005-10-07  Simon Josefsson  <jas@extundo.com>
74385
74386         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74387
74388 2005-10-06  Simon Josefsson  <jas@extundo.com>
74389
74390         * tests/test-hmac-md5.c: New file.
74391
74392         * modules/hmac-md5-tests: New file.
74393
74394         * modules/hmac-md5: New file.
74395
74396 2005-10-06  Simon Josefsson  <jas@extundo.com>
74397
74398         * m4/hmac-md5.m4: New file.
74399
74400         * m4/memxor.m4: Require gl_C_RESTRICT.
74401
74402 2005-10-06  Simon Josefsson  <jas@extundo.com>
74403
74404         * lib/memxor.c (memxor): Avoid casts and warnings.
74405
74406 2005-10-06  Simon Josefsson  <jas@extundo.com>
74407
74408         * lib/hmac-md5.c: New file.
74409
74410         * lib/hmac.h: New file.
74411
74412 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74413
74414         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74415         promotes to int, not unsigned int, to catch the AIX 5.3
74416         compiler bug.
74417
74418 2005-10-05  Simon Josefsson  <jas@extundo.com>
74419
74420         * modules/memxor: New file.
74421
74422         * modules/iconv (Files): Move config.rpath to havelib, it is used
74423         there.
74424
74425         * modules/havelib (Files): Add config.rpath.
74426
74427 2005-10-05  Simon Josefsson  <jas@extundo.com>
74428
74429         * m4/memxor.m4: New file.
74430
74431 2005-10-05  Simon Josefsson  <jas@extundo.com>
74432
74433         * lib/memxor.c (memxor): Fix compiler error.
74434
74435         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74436         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74437
74438         * lib/memxor.h, lib/memxor.c: New files.
74439
74440         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74441         we assume all systems have it, suggested by Jim Meyering
74442         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74443         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74444         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74445         same reasons.
74446
74447 2005-10-05  Simon Josefsson  <jas@extundo.com>
74448
74449         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74450
74451 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74452
74453         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74454         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74455         needed, since the source code now assumes these .h files.
74456
74457 2005-10-05  Derek Price  <derek@ximbiot.com>
74458
74459         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74460
74461 2005-10-05  Bruno Haible  <bruno@clisp.org>
74462
74463         * modules/stdint (License): Change to LGPL.
74464
74465 2005-10-04  Simon Josefsson  <jas@extundo.com>
74466
74467         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74468         D. Baushke" <mdb@gnu.org>.
74469
74470 2005-10-04  Bruno Haible  <bruno@clisp.org>
74471
74472         * lib/verify.h (verify_true): Provide alternative definition for C++.
74473
74474 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74475
74476         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74477         (SSIZE_MAX): New macro, if not already defined.
74478         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74479         than 2 GiB.
74480
74481 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74482
74483         Sync from coreutils.
74484         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74485         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74486         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74487         ULLONG_MAX doesn't work with 2.7.2.1.
74488
74489 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74490
74491         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74492         From Ben Pfaff.
74493
74494         * modules/exclude (Depends-on): Depend on verify.
74495         * modules/strtoimax (Depends-on): Likewise.
74496         * modules/utimecmp (Depends-on): Likewise.
74497
74498 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74499
74500         * lib/exclude.c: Include verify.h.
74501         (verify): Remove.  All callers changed to use verify.h's version.
74502         * lib/strtoimax.c: Likewise.
74503         * lib/utimecmp.c: Likewis.e
74504
74505         Sync from coreutils.
74506         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74507         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74508         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74509         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74510         bother returning ENOSYS if settimeofday or stime fails; just let
74511         them return whatever errno they want to return.
74512         * lib/utimens.c: Include unistd.h, for dup2.
74513         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74514         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74515
74516 2005-10-02  Jim Meyering  <jim@meyering.net>
74517
74518         Sync from coreutils.
74519         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74520         from glibc-2.2.5 that fails for read-only files.
74521
74522 2005-10-02  Jim Meyering  <jim@meyering.net>
74523
74524         Sync from coreutils.
74525         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74526         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74527         `#if HAVE_CONFIG_H'.
74528         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74529         Remove AT_FDCWD test.
74530         Do not consume the fd unless successful.
74531         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74532         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74533         block, so that we don't even try to compile it if settimeofday is
74534         available.  This works around a compilation failure on OSF1 V5.1,
74535         due to stime requiring a `long int*' while tv_sec is `int'.
74536
74537 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74538
74539         Sync from coreutils.
74540         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74541         against `yes', rather than just testing for nonempty.
74542
74543 2005-10-01  Simon Josefsson  <jas@extundo.com>
74544
74545         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74546         and Darwin.
74547
74548         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74549         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74550         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74551         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74552         Check if struct addrinfo is declared.
74553
74554 2005-10-01  Simon Josefsson  <jas@extundo.com>
74555
74556         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74557         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74558         AI_* and EAI_* definitions.  Protect function declarations.
74559
74560 2005-10-01  Jim Meyering  <jim@meyering.net>
74561
74562         Sync from coreutils.
74563
74564         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74565         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74566         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74567         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74568         in the inet and nsl libraries.  Required on Solaris 5.7.
74569
74570 2005-10-01  Jim Meyering  <jim@meyering.net>
74571
74572         Sync from coreutils.
74573         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74574         in the inet and nsl libraries.  Required on Solaris 5.7.
74575
74576 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74577
74578         * lib/getdelim.c (getdelim): Remove unused variables.
74579
74580 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74581
74582         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74583         so that the code works even with ancient cpp.  Portability problem
74584         with GCC 2.7.2.1 reported by Thomas M.Ott.
74585
74586 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74587
74588         * modules/regex (Depends-on): Add strcase.
74589
74590         * modules/gethostname (Licence): Change from GPL to LGPL, since
74591         gethostname.c is a trivial implementation of a standard library
74592         function.
74593         * modules/poll (License): Change from GPL to LGPL, since it's
74594         derived from LGPL code.
74595
74596 2005-09-27  Jim Meyering  <jim@meyering.net>
74597
74598         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74599         HAVE_CONFIG_H.
74600
74601         * lib/intprops.h (signed_type_or_expr__): Define.
74602         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74603         for unsigned types.
74604
74605 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74606
74607         * lib/verify.h (verify_expr): Remove, replacing with:
74608         (verify_true): New macro that returns true instead of void.
74609         (verify_type__): Remove.
74610         (verify): Use verify_true rather than verify_type__.
74611
74612 2005-09-26  Bruno Haible  <bruno@clisp.org>
74613
74614         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74615         is necessary.
74616         (lib_SOURCES): Remove mbchar.c.
74617         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74618         (Files): Add m4/mbrtowc.m4.
74619         * modules/mbiter: Likewise.
74620         * modules/mbuiter: Likewise.
74621
74622 2005-09-26  Bruno Haible  <bruno@clisp.org>
74623
74624         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74625         compile mbchar.c if they are not both present.
74626         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74627         * m4/mbiter.m4 (gl_MBITER): Likewise.
74628         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74629         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74630         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74631
74632 2005-09-25  Jim Meyering  <jim@meyering.net>
74633
74634         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74635         also uses socklen_t.
74636
74637 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74638
74639         * lib/utimens.c (ENOSYS): Define if not already defined.
74640         (futimens): Support having a null PATH if the file descriptor
74641         is nonnegative.
74642
74643         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74644         Remove.
74645         (__attribute): Define to empty unless GCC 3.1 or later.
74646         This works around a core dump on OpenBSD 3.4, which has GCC
74647         2.95.3, which dumps core when given __attribute__(()).  It also
74648         simplifies other tests, since we really don't want to bother with
74649         worrying about which ancient version of GCC supported what.
74650         Original problem reported by Yoann Vandoorselaere, with part of
74651         the fix suggested by Derek Price.
74652
74653 2005-09-24  Jim Meyering  <jim@meyering.net>
74654
74655         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74656         so we can once again use a positive bitfield width of 1 -- now we
74657         don't have to explain why we were using a bitfield width of 2.
74658
74659 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74660
74661         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74662         and similarly for the other external symbols.  Problem reported
74663         by James Gallager.
74664
74665         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74666         bug reported by Jim Meyering.
74667
74668         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74669         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74670         not needed, since socklen is a prerequisite module.
74671
74672 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74673
74674         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74675         Problem reported by Eric Blake.
74676         (getaddrinfo): Initialize se so that it's not garbage.
74677         Redo internal storage allocation so that it doesn't make unportable
74678         assumptions about alignment.
74679         Fix a memory leak.
74680
74681         * lib/utimens.c (futimens): Use futimesat if available.
74682         Prefer it to futimes since it doesn't have the futimes bug.
74683
74684         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74685         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74686         Instead, declare a function that returns a pointer to an array,
74687         and use verify_type__ to declare the size of the array.
74688         Problem and germ of a solution reported by Bruno Haible.
74689         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74690         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74691
74692 2005-09-23  Jim Meyering  <jim@meyering.net>
74693
74694         Sync from coreutils.
74695         Correct build failure (socklen_t not defined) on at least
74696         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74697         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74698
74699 2005-09-23  Jim Meyering  <jim@meyering.net>
74700
74701         * modules/getaddrinfo (Depends-on): Add socklen.
74702
74703 2005-09-23  Bruno Haible  <bruno@clisp.org>
74704
74705         * tests/test-verify.c: New file.
74706
74707 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74708
74709         Sync from coreutils.
74710
74711         * modules/argmatch (Depends-on): Add verify.
74712         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74713         unistd-safer.
74714         * modules/save-cwd (Depends-on): Likewise.
74715
74716         * modules/openat (Files): Add lib/openat-die.c.
74717         (Depends-on): Remove error, exitfail.
74718         Add dirname.
74719
74720         * modules/verify: New file.
74721         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74722         with "verify" module.
74723
74724 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74725
74726         Sync from coreutils.
74727
74728         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74729         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74730         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74731         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74732         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74733         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74734         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74735         Don't bother checking for string.h, stdlib.h, unistd.h.
74736         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74737         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74738         module's job.
74739         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74740         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74741
74742         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74743         (gl_GETDATE): Use it.
74744
74745         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74746
74747 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74748
74749         Sync from coreutils.
74750
74751         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74752         stat-time.h.
74753         * lib/argmatch.h: Include verify.h
74754         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74755         (ARGMATCH_ASSERT): Remove; unused.
74756         * lib/canonicalize.c: Assume STDC_HEADERS.
74757         * lib/exclude.c: Include "strcase.h".
74758         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74759         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74760         and stdio-safer.h.
74761         (getusershell): Call fopen, not fopen_safer.
74762         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74763         Do not include unistd-safer.h.
74764         (save_cwd): Don't call fd_safer; no longer needed
74765         now that we include fcntl--.h.
74766
74767         * lib/getdate.y (relative_time): New type.
74768         (RELATIVE_TIME_0): New constant.
74769         (parser_control): Use relative_time instead of doing it ourselves.
74770         (%union): Add new relative_time rel member.
74771         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74772         Now typeless.
74773         (relunit, relunit_snumber): Now of type rel.
74774         (zone, rel, relunit, get_date): Adjust to above changes.
74775
74776         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74777         Do not include unistd-safer.h.
74778         (getloadavg): Don't call fd_safer; no longer needed
74779         now that we include fcntl--.h.
74780
74781         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74782         (make_dir_parents): Treat ENOSYS like EEXIST.
74783
74784         Improve quality of diagnostics on restore_cwd failure.
74785         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74786         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74787         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74788         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74789         each time through the loop.  Do not diagnose restore_cwd failure;
74790         that is the caller's job (and perhaps the caller does not care).
74791
74792         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74793         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74794         If the file already exists but is not a directory, don't bother
74795         to try to make its parents.
74796         Close potential file descriptor leak if we can't chdir("/") (!).
74797         Don't always return true if chdir($PWD) fails; return true only
74798         if the requested action was done successfully (except for the
74799         chdir($PWD)).
74800         Don't log final directory unless we actually made it.
74801         Refactor to avoid duplicate code to fix up permissions.
74802         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74803
74804         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74805         to make it a bit faster and (I hope) clearer.
74806         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74807         Fix bug in formats like %2N.
74808
74809         * lib/verify.h: New file.
74810
74811 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74812
74813         Sync from coreutils.
74814         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74815
74816 2005-09-22  Jim Meyering  <jim@meyering.net>
74817
74818         Sync from coreutils.
74819
74820         * m4/lstat.m4 (gl_FUNC_LSTAT):
74821         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74822         Remove obsolete comment.
74823         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74824         * m4/xstrtod.m4: Likewise.
74825
74826         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74827
74828 2005-09-22  Jim Meyering  <jim@meyering.net>
74829
74830         Sync from coreutils.
74831
74832         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74833
74834         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74835         the .tm_year member, since otherwise gcc-4.0 would now warn about
74836         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74837
74838         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74839         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74840
74841         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74842         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74843         when run in a time zone for which daylight savings time is in effect
74844         for the starting date.
74845
74846         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74847         stop us from restricting permissions of just-created absolute-named
74848         directories.
74849         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74850         to restore initial working directory.
74851         * lib/mkdir-p.c (make_dir_parents): New parameter:
74852         different_working_dir, to tell caller if/when we change the working
74853         directory and are unable to return to the initial one.
74854         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74855         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74856         `return false'.  This fixes a bug introduced on 2004-07-30.
74857
74858         * lib/openat.c (fdopendir): Be sure to close the supplied
74859         file descriptor before returning.  This makes our replacement
74860         implementation a little closer to Solaris's, where fdopendir
74861         ties the file descriptor to the returned DIR* pointer.
74862         * lib/openat.c (unlinkat): New function.
74863         * lib/openat.h (unlinkat): Add prototype.
74864         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74865         (openat_restore_fail): Rename from openat_restore_die.
74866         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74867
74868         Provide an alternative to exiting immediately upon save_cwd or
74869         restore_cwd failure.  Now, an application can arrange e.g.,
74870         to perform a longjump in that case.
74871         * lib/openat.c: Include dirname.h.
74872         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74873         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74874         and openat_restore_die rather than calling error directly.
74875         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74876
74877         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74878         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74879         define.
74880
74881         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74882         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74883                             int utc, int nanoseconds);
74884         Background:
74885         date should not have to allocate a megabyte of virtual memory to
74886         handle a format argument like +%1048575T.  When implemented with
74887         strftime, it must allocate such a buffer, use strftime to fill it
74888         in, print it, then free it.
74889         With fprintftime, it simply prints everything and exits.
74890         With no need for memory allocation, that's one fewer way to fail.
74891         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74892         optional field width, not before, so we accept %9:z, not %:9z.
74893         (my_strftime): Be sure to use L_('x') for literals.
74894
74895         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74896         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74897         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74898         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74899         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74900         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74901         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74902         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74903         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74904         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74905         * lib/xgethostname.c, lib/xreadlink.c:
74906         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74907
74908         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74909         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74910         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74911         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74912         and don't include <sys/file.h>).
74913
74914 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74915
74916         Sync from coreutils.
74917
74918         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74919         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74920         [!LDAV_DONE]: Avoid unused variable warning.
74921
74922 2005-09-21  Bruno Haible  <bruno@clisp.org>
74923
74924         * lib/unicodeio.h (unicode_to_mb): New declaration.
74925
74926 2005-09-20  Derek Price  <derek@ximbiot.com>
74927
74928         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74929         getaddrinfo.h.
74930
74931 2005-09-20  Bruno Haible  <bruno@clisp.org>
74932
74933         * gnulib-tool: Remove trailing slashes from the values specified for
74934         --source-base, --m4-base, --tests-base, --aux-dir.
74935         Suggested by Simon Josefsson <jas@extundo.com>.
74936
74937 2005-09-20  Bruno Haible  <bruno@clisp.org>
74938
74939         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74940         func_modules_to_filelist, func_import, func_create_testdir): Make all
74941         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74942         change when gnulib-tool is invoked in a different locale.
74943
74944 2005-09-19  Simon Josefsson  <jas@extundo.com>
74945
74946         * m4/socklen.m4: Fix typo.
74947
74948 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74949
74950         Use a consistent style for including <config.h>.
74951         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74952         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74953         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74954         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74955         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74956         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74957         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74958         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74959         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74960         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74961         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74962         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74963         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74964         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74965         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74966         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74967         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74968         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74969         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74970         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74971         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74972         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74973         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74974         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74975         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74976         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74977         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74978         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74979         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74980         lib/xstrtoumax.c, lib/yesno.c:
74981         Standardize inclusion of config.h.
74982         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74983         lib/inttostr.h:  Removed inclusion of config.h from header files.
74984         * lib/inttostr.c:  Adjusted in-tree users.
74985         * lib/timespec.h: Remove superfluous warning to include config.h.
74986         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74987         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74988         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74989         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74990         config.h with HAVE_CONFIG_H.
74991
74992 2005-09-19  Jim Meyering  <jim@meyering.net>
74993
74994         * modules/pathmax (License): Change to LGPL.
74995
74996 2005-09-19  Derek Price  <derek@ximbiot.com>
74997
74998         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74999
75000 2005-09-19  Bruno Haible  <bruno@clisp.org>
75001
75002         * gnulib-tool (import): Provide default for --tests-base.
75003
75004 2005-09-19  Bruno Haible  <bruno@clisp.org>
75005
75006         * doc/quote.texi: New file, extracted from gnulib.texi.
75007         * doc/ctime.texi: New file, extracted from gnulib.texi.
75008         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75009         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75010         * doc/gnulib.texi: Include them.
75011
75012 2005-09-18  Bruno Haible  <bruno@clisp.org>
75013
75014         Portability fix.
75015         * gnulib-tool (func_readlink): New function.
75016         (func_ln_if_changed): Use it.
75017
75018 2005-09-18  Bruno Haible  <bruno@clisp.org>
75019
75020         * gnulib-tool: Support --with-tests also with --import.
75021         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75022         (func_import): Use variables $testsbase and $inctests. Emit a
75023         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75024         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75025         SUBDIRS += $testsdir.
75026         (func_create_testdir): Update.
75027
75028 2005-09-18  Bruno Haible  <bruno@clisp.org>
75029
75030         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75031         instead of $dry_run.
75032         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75033         (func_ln_if_changed): Don't handle dry-run here.
75034         (func_import): In dry-run mode, detect more precisely which actions
75035         would be performed, and don't use "...ing" verbs.
75036
75037 2005-09-18  Bruno Haible  <bruno@clisp.org>
75038
75039         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75040         (func_import): Use join on two temporary files instead of three nested
75041         loops, in order to determine which files are new or old.
75042
75043 2005-09-18  Bruno Haible  <bruno@clisp.org>
75044
75045         * gnulib-tool (func_import): Comment out code that spits out the
75046         new files with --dry-run.
75047
75048 2005-09-18  Bruno Haible  <bruno@clisp.org>
75049
75050         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75051
75052 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75053
75054         * lib/stat-time.h: New file.
75055         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75056         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75057         in a different way.
75058         (timespec_cmp): New function.
75059         * lib/utimecmp.c: Include stat-time.h.
75060         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75061         members exist, not on the obsolescent ST_MTIM_NSEC.
75062         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75063
75064 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75065
75066         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75067
75068 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75069
75070         * MODULES.html.sh (File system functions): Add stat-time.
75071         * modules/stat-time: New file.
75072         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75073         is now done in a different way, by the stat-time module.
75074         * modules/utimecmp (Depends-on): Add stat-time.
75075
75076 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75077
75078         * m4/st_mtim.m4: Remove.  Superseded by...
75079         * m4/stat-time.m4: New file.
75080         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75081         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75082
75083 2005-09-15  Derek Price  <derek@ximbiot.com>
75084
75085         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75086
75087 2005-09-15  Derek Price  <derek@ximbiot.com>
75088
75089         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75090         * lib/regex_internal.c: Ditto, using this...
75091         (__GNUC_PREREQ): ...new macro.
75092         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75093         using...
75094         (__GNUC_PREREQ): ...this new macro.
75095
75096         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75097
75098 2005-09-15  Derek Price  <derek@ximbiot.com>
75099             Paul Eggert  <eggert@cs.ucla.edu>
75100
75101         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75102         changes, consolidating in...
75103         * lib/regex_internal.h: ...this file.
75104
75105 2005-09-13  Jim Meyering  <jim@meyering.net>
75106
75107         * lib/canon-host.c: Filter through gnu indent and reword comments
75108         slightly.
75109         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75110
75111 2005-09-13  Derek Price  <derek@ximbiot.com>
75112
75113         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75114         failure.
75115         Reported by Jim Meyering  <jim@meyering.net>.
75116
75117 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75118
75119         * lib/base64.c: Typo.
75120         (base64_encode): Put b64str in initialized data section.
75121
75122 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75123
75124         Merge glibc and coreutils changes into gnulib, plus a few
75125         extra fixes.
75126         * lib/md5.c: Use #error rather than a string.
75127         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75128         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75129         (__attribute__): Define to empty for non recent-GCC.
75130         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75131         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75132         Renamed from their non-__ counterparts, with new macros replacing
75133         them if not _LIBC.  Add __THROW attribute.
75134         (rol): Remove.
75135         (struct md5_ctx): Align buffer if using GCC.
75136         * lib/sha1.h (struct sha1_ctx): Likewise.
75137         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75138         The old name was backwards.
75139         (NOTSWAP): Remove; not used.
75140         (rol): New macro, moved here from md5.h.
75141         (sha1_process_block): Remove a FIXME that doesn't make sense.
75142
75143 2005-09-12  Derek Price  <derek@ximbiot.com>
75144
75145         Return usable errors from canon-host.
75146         * lib/canon-host.h: New file.
75147         * lib/canon-host.c (canon_host): Wrap...
75148         (canon_host_r): ...this new function, which now relies exclusively on
75149         getaddrinfo.
75150         (ch_strerror): New function.
75151         (last_cherror): New global.
75152         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75153         interface.
75154         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75155         void *.
75156         (freeaddrinfo): Free ai->ai_canonname when set.
75157
75158 2005-09-12  Derek Price  <derek@ximbiot.com>
75159
75160         Make canon-host require getaddrinfo.
75161         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75162         AC_LIBSOURCE canon-host.h.  Call...
75163         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75164         gl_GETADDRINFO.
75165         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75166
75167 2005-09-12  Derek Price  <derek@ximbiot.com>
75168
75169         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75170         LGPL.
75171         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75172
75173 2005-09-12  Derek Price  <derek@ximbiot.com>
75174
75175         * lib/gai_strerror.c: Include config.h when available.  Include
75176         getaddrinfo.h before other headers to test interface.
75177         Reported by Larry Jones <lawrence.jones@ugs.com>.
75178
75179 2005-09-12  Derek Price  <derek@ximbiot.com>
75180             Paul Eggert  <eggert@cs.ucla.edu>
75181
75182         * modules/glob (Files): Add glob-libc.h.
75183
75184 2005-09-12  Derek Price  <derek@ximbiot.com>
75185             Paul Eggert  <eggert@cs.ucla.edu>
75186
75187         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75188         glob_.h, glob-libc.h.
75189         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75190
75191 2005-09-12  Derek Price  <derek@ximbiot.com>
75192             Paul Eggert  <eggert@cs.ucla.edu>
75193
75194         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75195         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75196         protecting things that should be done only in gnulib contexts.
75197         * lib/glob_.h: New file, containing only the glob things needed for
75198         gnulib.
75199         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75200         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75201         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75202         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75203         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75204         and to respect the namespace rules better.
75205
75206 2005-09-08  Simon Josefsson  <jas@extundo.com>
75207
75208         * modules/socklen: New file.
75209
75210 2005-09-08  Simon Josefsson  <jas@extundo.com>
75211
75212         * m4/socklen.m4: New file.
75213
75214 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75215
75216         * modules/utimens (Files): Add m4/utimbuf.m4, since
75217         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75218         Reported by Sergey Poznyakoff.
75219
75220 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75221
75222         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75223         definitions, since that's the preferred style in glibc.
75224         Fix a minor spacing issue, and update copyright notice to match
75225         glibc's.
75226
75227 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75228
75229         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75230
75231 2005-09-06  Simon Josefsson  <jas@extundo.com>
75232
75233         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75234         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75235
75236 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75237
75238         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75239         warning.
75240
75241 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75242
75243         * config/srclist.txt: Add glibc bug 1302.
75244
75245 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75246
75247         Change bitset word type from unsigned int to unsigned long int,
75248         as this has better performance on typical 64-bit hosts.
75249         Port bitset code to hosts with unusual word sizes.
75250         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75251         (build_collating_symbol):
75252         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75253         argument is a bitset.  This is merely a style issue, but it makes
75254         it clearer that an entire array is expected.
75255         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75256         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75257         Port to the case where bitset_word is not the same as unsigned int.
75258         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75259         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75260         Likewise.
75261         * lib/regexec.c (check_dst_limits_calc_pos_1,
75262         check_subexp_matching_top):
75263         (build_trtable, group_nodes_into_DFAstates):
75264         Likewise.
75265         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75266         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75267         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75268         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75269         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75270         * lib/regcomp.c (optimize_subexps, lower_subexp):
75271         Work even if bitset_word has holes in its bitwise representation.
75272         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75273         * lib/regexec.c (check_dst_limits_calc_pos_1,
75274         check_subexp_matching_top):
75275         Likewise.
75276         * lib/regex_internal.c (re_string_reconstruct):
75277         Don't assume UCHAR_MAX == 255.
75278         * lib/regex_internal.h (bitset_set_all): Likewise.
75279         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75280         All uses changed.
75281         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75282         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75283         All uses changed.
75284         (BITSET_WORD_MAX): New macro.
75285         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75286         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75287         (bitset_empty, bitset_copy):
75288         Prefer sizeof (bitset) to multiplying it out ourselves.
75289         (bitset_not_merge): Remove; unused.
75290         (bitset_contain): Return bool, not unsigned int with one bit on.
75291         All callers changed.
75292         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75293         alignment than re_node_set; do this by defining a new internal
75294         type struct dests_alloc and using it to allocate memory.
75295
75296 2005-09-05  Bruno Haible  <bruno@clisp.org>
75297
75298         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75299         links.
75300
75301 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75302
75303         * modules/size_max (Makefile.am): Add size_max.h
75304
75305 2005-09-04  Derek Price  <derek@ximbiot.com>
75306
75307         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75308
75309 2005-09-03  Simon Josefsson  <jas@extundo.com>
75310
75311         * gnulib-tool: Fix typo.
75312
75313 2005-09-03  Simon Josefsson  <jas@extundo.com>
75314
75315         * config/srclist.txt: Add glibc bug 1293.
75316
75317 2005-09-03  Derek Price  <derek@ximbiot.com>
75318
75319         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75320         From Larry Jones <lawrence.jones@ugs.com>.
75321
75322 2005-09-02  Simon Josefsson  <jas@extundo.com>
75323
75324         * modules/socklen: New file.
75325
75326 2005-09-02  Simon Josefsson  <jas@extundo.com>
75327
75328         * modules/havelib: New module.
75329
75330         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75331         Use havelib.
75332
75333 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75334
75335         Check for arithmetic overflow when calculating sizes, to prevent
75336         some buffer-overflow issues.  These patches are conservative, in the
75337         sense that when I couldn't determine whether an overflow was possible,
75338         I inserted a run-time check.
75339         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75340         macros.
75341         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75342         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75343         (re_xnrealloc, re_x2nrealloc): New inline functions.
75344         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75345         parse_bracket_exp):
75346         (build_equiv_class, build_charclass): Check for arithmetic overflow
75347         in size expression calculations.
75348         * lib/regex_internal.c (re_string_realloc_buffers):
75349         (build_wcs_upper_buffer, re_node_set_add_intersect):
75350         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75351         (re_dfa_add_node, register_state): Likewise.
75352         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75353         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75354         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75355         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75356
75357 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75358
75359         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75360         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75361
75362 2005-09-02  Bruno Haible  <bruno@clisp.org>
75363
75364         Support for lib vs. lib64 distinction on biarch platforms.
75365         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75366         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75367         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75368
75369 2005-09-02  Bruno Haible  <bruno@clisp.org>
75370
75371         * gnulib-tool (import): In the other first-use case, provide defaults
75372         as well.
75373
75374 2005-09-02  Bruno Haible  <bruno@clisp.org>
75375
75376         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75377         patches not yet found in the latest gettext release.
75378
75379 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75380
75381         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75382         to avoid a collision with bits/local_lim.h in glibc.
75383         All uses changed.  Problem reported by Dmitry V. Levin in
75384         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75385
75386         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75387         bugs in int versus size_t comparisons.
75388         (re_string_context_at): Fix bug where the code assumed that
75389         Idx is signed.
75390
75391         Use bool where appropriate.
75392         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75393         All callers changed.
75394         (calc_eclosure_iter): Likewise, for ROOT arg.
75395         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75396         (build_charclass_op): Likewise, for NON_MATCH arg.
75397         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75398         (re_string_construct_common): Likewise, for ICASE arg.
75399         * lib/regexec.c (re_search_2_stub, re_search_stub):
75400         Likewise, for RET_LEN arg.
75401         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75402         (set_regs): Likewise, for FL_BACKTRACK arg.
75403         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75404         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75405         (calc_eclosure_iter, parse_bracket_exp):
75406         Use bool for internal variables that are booleans.
75407         * lib/regexec.c (re_search_internal, check_matching,
75408         proceed_next_node):
75409         (set_regs, build_sifted_states, sift_states_bkref):
75410         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75411         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75412         (find_collation_sequence_value):
75413         Likewise.
75414         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75415         (re_node_set_compare):
75416         Return bool, not int. All callers changed.
75417         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75418         (build_trtable, check_node_accept): Likewise.
75419         * lib/regex_internal.h: Include stdbool.h.
75420
75421         Fix bugs uncovered when converting to bool.
75422         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75423         failure instead of charging ahead blindly.
75424         * lib/regex_internal.c (register_state): Likewise.
75425         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75426         for freeing internal storage.
75427         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75428         bitset pieces used as boolean, to avoid undefined behavior
75429         on hosts that do int overflow checking.
75430
75431 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75432
75433         * config/srclist.txt: Add glibc bugs 1285-1287.
75434
75435 2005-09-01  Jim Meyering  <jim@meyering.net>
75436
75437         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75438         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75439         Require gl_STAT_MACROS, too.
75440
75441 2005-09-01  Bruno Haible  <bruno@clisp.org>
75442
75443         * gnulib-tool (import): In the first-use case, provide defaults.
75444
75445 2005-09-01  Bruno Haible  <bruno@clisp.org>
75446
75447         * gnulib-tool (func_import): Remove the .tmp files.
75448
75449 2005-09-01  Bruno Haible  <bruno@clisp.org>
75450
75451         * gnulib-tool (func_import): Fix handling of symbolic links.
75452
75453 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75454
75455         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75456         old glibc regex code mishandles strings longer than 2**31 bytes.
75457         This patch fixes this when the regex code is used in gnulib
75458         (i.e., outside glibc).
75459
75460         This patch should not affect the use of the regex code inside
75461         glibc.  No doubt this problem also needs to be handled for glibc
75462         as well, but the result will be an incompatible change to the
75463         glibc ABI, and the old ABI will have to be supported too.  That
75464         can be the the subject for another patch.
75465
75466         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75467         governing whether the rest of this patch is active.  By default,
75468         the macro is disabled and the patch has no effect.
75469         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75470         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75471         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75472         (re_match_2, re_set_registers): Use the new types.
75473         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75474         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75475         New macros.
75476         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75477         (re_string_context_at, bin_tree_t, re_dfastate_t):
75478         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75479         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75480         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75481         (re_string_char_size_at, re_string_wchar_at):
75482         (re_string_elem_size_at):
75483         Use the new types and macros to port to 64-bit hosts.
75484         Use unsigned types for internal values, so that the code
75485         mostly works even for arrays larger than SSIZE_MAX.
75486         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75487         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75488         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75489         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75490         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75491         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75492         (calc_inveclosure, parse_dup_op, build_range_exp):
75493         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75494         (fetch_number, create_token_tree, mark_opt_subexp):
75495         Likewise.
75496         * lib/regex_internal.c (re_string_construct_common,
75497         create_ci_newstate):
75498         (create_cd_newstate, re_string_allocate, re_string_construct):
75499         (re_string_realloc_buffers, build_wcs_upper_buffer):
75500         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75501         (re_string_reconstruct, re_string_peek_byte_case):
75502         (re_string_fetch_byte_case, re_string_context_at):
75503         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75504         (re_node_set_init_copy, re_node_set_add_intersect):
75505         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75506         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75507         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75508         (re_acquire_state, re_acquire_state_context, register_state):
75509         Likewise.
75510         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75511         search_cur_bkref_entry):
75512         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75513         (re_search_internal, re_search_2_stub, re_search_stub)
75514         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75515         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75516         (update_cur_sifted_state, check_dst_limits):
75517         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75518         (check_subexp_limits, sift_states_bkref, merge_state_array):
75519         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75520         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75521         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75522         (expand_bkref_cache, check_node_accept_bytes):
75523         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75524         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75525         (acquire_init_state_context, check_halt_node_context):
75526         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75527         (sift_states_backward, clean_state_log_if_needed):
75528         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75529         (find_recover_state, transit_state_sb, transit_state_mb):
75530         (transit_state_bkref, build_trtable, match_ctx_clean):
75531         Likewise.
75532         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75533         to work around an assumption that REG_MISSING is negative.
75534
75535         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75536         (seek_collating_symbol_entry) [defined _LIBC]:
75537         (lookup_collation_sequence_value) [defined _LIBC]:
75538         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75539         Use prototypes rather than old-style function definitions.
75540         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75541         (transit_state_sb) [0]:
75542         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75543
75544         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75545         rm_eo.
75546
75547         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75548         (optimize_subexps, lower_subexp):
75549         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75550         since the signed shift might overflow.  Use 1u<<31 instead.
75551         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75552         Likewise.
75553         * lib/regexec.c (check_dst_limits_calc_pos_1,
75554         check_subexp_matching_top): Likewise.
75555
75556         * lib/regcomp.c (optimize_subexps, lower_subexp):
75557         Use CHAR_BIT rather than 8, for clarity.
75558         * lib/regexec.c (check_dst_limits_calc_pos_1):
75559         (check_subexp_matching_top): Likewise.
75560         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75561         have to worry about portability issues when shifting it left.
75562         Remove no-longer-needed test for table_size > 0.
75563         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75564         in a word, as the resulting behavior is undefined.
75565         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75566         in one case, a <= should have been an <, and in another case the
75567         whole test was missing.
75568         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75569         the standard name CHAR_BIT.
75570         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75571         this is not true on one's complement and signed-magnitude hosts.
75572
75573         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75574         next_last_offset.
75575         (struct re_dfa_t): Remove unused member states_alloc.
75576         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75577
75578 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75579
75580         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75581         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75582         and large-file glibc and in 32-bit large-file Solaris.
75583
75584 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75587         lengths fit in regoff_t; this isn't true if regoff_t is the same
75588         width as size_t.
75589         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75590         (= START + RANGE) instead of RANGE.  This avoids overflow
75591         problems when regoff_t is the same width as size_t.
75592         All callers changed.
75593         (re_search_2_stub): Check for overflow when adding the
75594         sizes of the two strings.
75595         (re_search_stub): Check for overflow when adding START
75596         to RANGE; if it occurs, substitute the extreme value.
75597
75598 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75599
75600         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75601
75602 2005-08-31  Jim Meyering  <jim@meyering.net>
75603
75604         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75605         a pointer-to-const.
75606         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75607         (register_state): Likewise.
75608         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75609         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75610         (group_nodes_into_DFAstates): Likewise.
75611
75612 2005-08-31  Jim Meyering  <jim@meyering.net>
75613
75614         * check-module: Add a FIXME comment.
75615
75616 2005-08-31  Eric Blake  <ebb9@byu.net>
75617
75618         * modules/unistd-safer (Files): Add unistd--.h.
75619         * modules/stdio-safer (Files): Add stdio--.h.
75620
75621 2005-08-31  Derek Price  <derek@ximbiot.com>
75622
75623         * lib/getdelim.c (getdelim): Return EOF on EOF.
75624         Reported by Larry Jones <lawrence.jones@ugs.com>.
75625
75626 2005-08-31  Bruno Haible  <bruno@clisp.org>
75627
75628         Avoid unnecessary diffs in the generated lib/Makefile.am.
75629         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75630         the generated files.
75631         (func_import): Don't set cmd.
75632
75633 2005-08-31  Bruno Haible  <bruno@clisp.org>
75634
75635         * lib/strstr.c: Include <stddef.h>, for NULL.
75636         * lib/strcasestr.c: Likewise.
75637         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75638
75639 2005-08-31  Bruno Haible  <bruno@clisp.org>
75640
75641         * gnulib-tool: New option --macro-prefix.
75642         (func_import): Use macro_prefix.
75643         (import): Handle option --macro-prefix.
75644
75645 2005-08-31  Bruno Haible  <bruno@clisp.org>
75646
75647         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75648         Also use new variables cached_lgpl, cached_libtool.
75649
75650 2005-08-31  Bruno Haible  <bruno@clisp.org>
75651
75652         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75653         always instantiating them.
75654
75655 2005-08-31  Bruno Haible  <bruno@clisp.org>
75656
75657         * gnulib-tool (func_import): Read the previous cached settings
75658         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75659         earlier added by gnulib but are now dropped. Warn when a gnulib file
75660         overwrites a non-gnulib file.
75661
75662 2005-08-31  Bruno Haible  <bruno@clisp.org>
75663
75664         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75665         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75666         projects that don't keep autogenerated files in CVS. Put into
75667         actioncmd only the specified modules, not the transitive closure.
75668
75669 2005-08-31  Bruno Haible  <bruno@clisp.org>
75670
75671         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75672         Create directories that shall be filled.
75673         (import): Don't look for gl_* macros in configure.ac. Recurse across
75674         all directories containing a gnulib-cache.m4 files, if meaningful.
75675
75676 2005-08-31  Bruno Haible  <bruno@clisp.org>
75677
75678         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75679         (import): Set seen_libtool when we see gl_LIBTOOL.
75680
75681 2005-08-31  Bruno Haible  <bruno@clisp.org>
75682
75683         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75684         declaration macro definitions from generated gnulib.m4.
75685
75686 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75687
75688         * lib/iconvme.h: Add prototype for iconv_alloc.
75689
75690 2005-08-29  Simon Josefsson  <jas@extundo.com>
75691
75692         * lib/iconvme.c: Fix errno.
75693
75694 2005-08-29  Bruno Haible  <bruno@clisp.org>
75695
75696         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75697         that it works when the directory contains spaces.
75698
75699 2005-08-29  Bruno Haible  <bruno@clisp.org>
75700
75701         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75702
75703 2005-08-29  Bruno Haible  <bruno@clisp.org>
75704
75705         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75706         Emit more advice.
75707
75708 2005-08-29  Bruno Haible  <bruno@clisp.org>
75709         and Stepan Kasal  <kasal@ucw.cz>
75710
75711         * check-module: If more parameters are given, check each of them
75712         separately; add more exceptions, as noted by Jim Meyering.
75713         (check_module): New procedure.
75714         (%exempt_header): Now contains all exceptions.
75715
75716 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75717
75718         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75719
75720 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75721
75722         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75723
75724 2005-08-28  Bruno Haible  <bruno@clisp.org>
75725
75726         * m4/gnulib-tool.m4: New file.
75727
75728 2005-08-27  Jim Meyering  <jim@meyering.net>
75729
75730         * modules/unistd-safer (Files): Add pipe-safer.c.
75731         * modules/fcntl-safer (Files): Add creat-safer.c.
75732
75733 2005-08-27  Jim Meyering  <jim@meyering.net>
75734
75735         * m4/stdlib-safer.m4: New file.  From coreutils.
75736         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75737         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75738         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75739         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75740         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75741
75742 2005-08-27  Jim Meyering  <jim@meyering.net>
75743
75744         * lib/fopen-safer.c: Merge minor changes from coreutils.
75745         * lib/dup-safer.c: Likewise.
75746         * lib/fd-safer.c: Likewise.
75747
75748         Merge from coreutils.
75749         * lib/stdio--.h: New file.
75750         * lib/stdlib--.h: New file.
75751         * lib/mkstemp-safer.c: New file.
75752
75753         GNU tar needs these.
75754         * lib/pipe-safer.c: New file.
75755         * lib/creat-safer.c: New file.
75756         * lib/fcntl--.h (creat): Define to creat_safer.
75757         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75758         * lib/unistd--.h (pipe): Define to pipe_safer.
75759         * lib/unistd-safer.h: Declare pipe_safer.
75760
75761 2005-08-26  Simon Josefsson  <jas@extundo.com>
75762
75763         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75764         Haible <bruno@clisp.org>.
75765
75766 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75767
75768         * lib/regex_internal.h: Remove all references to
75769         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75770         or better.
75771         (bitset_not, bitset_merge, bitset_not_merge):
75772         (bitset_mask, re_string_allocate, re_string_construct):
75773         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75774         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75775         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75776         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75777         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75778         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75779         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75780         (re_acquire_state_context):
75781         Remove unnecessary forward decls.
75782         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75783         Put __attribute at function definition,
75784         now that the function decl has been removed.
75785         * lib/regex_internal.c (re_string_peek_byte_case):
75786         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75787         Likewise.
75788
75789 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75790
75791         * m4/regex.m4: Add AC_PREREQ(2.50).
75792         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75793
75794 2005-08-25  Simon Josefsson  <jas@extundo.com>
75795
75796         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75797         __fsetlocking.
75798
75799 2005-08-25  Simon Josefsson  <jas@extundo.com>
75800
75801         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75802         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75803         GLIBC specific code.
75804
75805 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75806
75807         Make regex safe for g++.  This fixes one real bug (an "err"
75808         that should have been "*err").  g++ problem reported by
75809         Sam Steingold.
75810         * lib/regex_internal.h (re_calloc): New macro, consistent with
75811         re_malloc etc.  All callers of calloc changed to use re_calloc.
75812         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75813         not int.  All callers changed.
75814         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75815         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75816         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75817         (find_recover_state): Change "err" to "*err"; this fixes what
75818         appears to be a real bug.
75819         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75820         versus int.
75821
75822 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75823
75824         * modules/regex (Depends-on): Add malloc, since the code
75825         assumes that !malloc(0) means failure.
75826
75827 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75828
75829         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75830
75831         alloca modernization/simplification for regex.
75832         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75833         needs to be at the start of the file, and can be moved into
75834         regex_internal.h and simplified.
75835         * lib/regex_internal.h: Include <alloca.h>.
75836         (__libc_use_alloca) [!defined _LIBC]: New macro.
75837         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75838         now works outside glibc.
75839
75840 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75841
75842         * config/srclist.txt: Add glibc bugs 1241, 1245.
75843
75844 2005-08-25  Jim Meyering  <jim@meyering.net>
75845
75846         * lib/open-safer.c: Include <config.h>.
75847         Otherwise, we'd lose LARGEFILE support in any file using
75848         e.g. "fcntl--.h"
75849
75850 2005-08-25  Bruno Haible  <bruno@clisp.org>
75851
75852         * m4/minmax.m4: Require autoconf 2.52.
75853         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75854         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75855         alternatives of translit over the alphabet.
75856         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75857
75858 2005-08-24  Simon Josefsson  <jas@extundo.com>
75859
75860         * tests/test-getpass.c: New file.
75861
75862 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75863
75864         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75865         for GNU regex features.
75866
75867 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75868
75869         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75870         * lib/regex.h (regerror): Likewise.
75871
75872         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75873         requires this.  (The code never needed it.)
75874
75875         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75876         All uses of recently-renamed identifiers changed to use the new,
75877         POSIX-compliant names.  The code will build and run just fine
75878         without these changes, but it's better to eat our own dog food
75879         and use the standard-conforming names.
75880
75881         * lib/regex.h: Fix a multitude of POSIX name space violations.
75882         These changes have an effect only for programs that define
75883         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75884         do not change anything for programs compiled in the normal way.
75885         Also, there is no effect on the ABI.
75886
75887         (_REGEX_SOURCE): New macro.
75888         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75889         defined and _GNU_SOURCE is not; this fixes a name space violation.
75890
75891         Rename the following macros to obey POSIX requirements.
75892         The old names are still visible as macros if _REGEX_SOURCE is defined.
75893         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75894         RE_BACKSLASH_ESCAPE_IN_LISTS.
75895         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75896         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75897         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75898         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75899         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75900         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75901         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75902         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75903         (REG_INTERVALS): renamed from RE_INTERVALS.
75904         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75905         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75906         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75907         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75908         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75909         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75910         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75911         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75912         RE_UNMATCHED_RIGHT_PAREN_ORD.
75913         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75914         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75915         (REG_DEBUG): renamed from RE_DEBUG.
75916         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75917         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75918         unusual, since we can't clash with the POSIX REG_ICASE.
75919         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75920         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75921         (REG_NO_SUB): renamed from RE_NO_SUB.
75922         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75923         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75924         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75925         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75926         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75927         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75928         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75929         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75930         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75931         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75932         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75933         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75934         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75935         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75936         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75937         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75938         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75939         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75940         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75941         (REG_FIXED): Renamed from REGS_FIXED.
75942         (REG_NREGS): Renamed from RE_NREGS.
75943
75944         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75945         of other REG_* macros, since POSIX says the user is allowed to
75946         #undef these macros selectively.
75947
75948         (reg_errcode_t): Update comment stating what other tables need
75949         to be consistent.
75950
75951         Rename the following enum values to obey POSIX requirements.
75952         The old names are still visible as macros.
75953         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75954         is not defined, since GNU is supposed to be a superset of POSIX as
75955         much as possible, and since we want reg_errcode_t to be a signed
75956         type for implementation consistency.
75957         (_REG_NOERROR): Renamed from REG_NOERROR.
75958         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75959         (_REG_BADPAT): Renamed from REG_BADPAT.
75960         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75961         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75962         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75963         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75964         (_REG_EBRACK): Renamed from REG_EBRACK.
75965         (_REG_EPAREN): Renamed from REG_EPAREN.
75966         (_REG_EBRACE): Renamed from REG_EBRACE.
75967         (_REG_BADBR): Renamed from REG_BADBR.
75968         (_REG_ERANGE): Renamed from REG_ERANGE.
75969         (_REG_ESPACE): Renamed from REG_ESPACE.
75970         (_REG_BADRPT): Renamed from REG_BADRPT.
75971         (_REG_EEND): Renamed from REG_EEND.
75972         (_REG_ESIZE): Renamed from REG_ESIZE.
75973         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75974         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75975         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75976         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75977         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75978
75979         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75980         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75981         changed.  But support the old name if the new one is not defined
75982         and if _REGEX_SOURCE.
75983
75984         Change the following member names in struct re_pattern_buffer.
75985         The old names are still supported if !_REGEX_SOURCE.
75986         The new names are always supported, regardless of _REGEX_SOURCE.
75987         (re_buffer): Renamed from buffer.
75988         (re_allocated): Renamed from allocated.
75989         (re_used): Renamed from used.
75990         (re_syntax): Renamed from syntax.
75991         (re_fastmap): Renamed from fastmap.
75992         (re_translate): Renamed from translate.
75993         (re_can_be_null): Renamed from can_be_null.
75994         (re_regs_allocated): Renamed from regs_allocated.
75995         (re_fastmap_accurate): Renamed from fastmap_accurate.
75996         (re_no_sub): Renamed from no_sub.
75997         (re_not_bol): Renamed from not_bol.
75998         (re_not_eol): Renamed from not_eol.
75999         (re_newline_anchor): Renamed from newline_anchor.
76000
76001         Change the following member names in struct re_registers.
76002         The old names are still supported if !_REGEX_SOURCE.
76003         The new names are always supported, regardless of _REGEX_SOURCE.
76004         (rm_num_regs): Renamed from num_regs.
76005         (rm_start): Renamed from start.
76006         (rm_end): Renamed from end.
76007
76008         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76009         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76010         Prepend __ to parameter names.
76011
76012         Undo yesterday's changes.
76013
76014 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76015
76016         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76017         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76018         lib/regex.c.
76019
76020 2005-08-24  Jim Meyering  <jim@meyering.net>
76021
76022         Sync from coreutils.
76023         * m4/fcntl-safer.m4: New file.
76024
76025         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76026         and object files for this module.
76027
76028 2005-08-24  Jim Meyering  <jim@meyering.net>
76029
76030         Sync from coreutils.
76031         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76032
76033 2005-08-24  Jim Meyering  <jim@meyering.net>
76034
76035         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76036         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76037
76038 2005-08-24  Jim Meyering  <jim@meyering.net>
76039
76040         * modules/fcntl-safer: New module.
76041         * modules/fts (Depends-on): Add fcntl-safer.
76042         * MODULES.html.sh (File descriptor based Input/Output):
76043         Add fcntl-safer.
76044
76045 2005-08-24  Bruno Haible  <bruno@clisp.org>
76046
76047         Support for unit test modules.
76048         * modules/README: Mention tests modules.
76049         * modules/TEMPLATE-TESTS: New file.
76050         * gnulib-tool: New options --extract-tests-module, --with-tests and
76051         --tests-base (unused for the moment).
76052         (testsbase, inctests): New variables.
76053         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76054         (func_verify_module): Exclude TEMPLATE-TESTS.
76055         (func_verify_nontests_module, func_verify_tests_module): New functions.
76056         (func_get_dependencies): Add implicit dependency for tests modules.
76057         (func_get_tests_module): New function.
76058         (func_modules_transitive_closure): When --with-tests was specified,
76059         include the unit tests as well, unless explicitly avoided.
76060         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76061         (func_emit_tests_Makefile_am): New function.
76062         (func_create_testdir): When --with-tests was specified, emit a
76063         tests/ directory.
76064         * MODULES.html.sh (Future developments): Update.
76065
76066 2005-08-24  Bruno Haible  <bruno@clisp.org>
76067
76068         * modules/tls-tests: New file.
76069         * tests/test-tls.c: New file, from GNU gettext.
76070
76071 2005-08-24  Bruno Haible  <bruno@clisp.org>
76072
76073         * modules/lock-tests: New file.
76074         * tests/test-lock.c: New file, from GNU gettext.
76075
76076 2005-08-24  Bruno Haible  <bruno@clisp.org>
76077
76078         * lib/lock.h: Add multiple inclusion guard.
76079         * lib/tls.h: Add multiple inclusion guard.
76080
76081 2005-08-24  Bruno Haible  <bruno@clisp.org>
76082
76083         * gnulib-tool: Add support for the --aux-dir option to
76084         --create-testdir, --create-megatestdir, --test, --megatest.
76085         (func_create_testdir, func_create_megatestdir): Optionally emit a
76086         AC_CONFIG_AUX_DIR directive.
76087         (create-testdir, create-megatestdir, test, megatest): Provide a
76088         default value for $auxdir.
76089
76090 2005-08-24  Bruno Haible  <bruno@clisp.org>
76091
76092         * gnulib-tool (import): Use compound statement instead of subshell
76093         where possible.
76094
76095 2005-08-24  Bruno Haible  <bruno@clisp.org>
76096
76097         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76098
76099 2005-08-24  Bruno Haible  <bruno@clisp.org>
76100
76101         * gnulib-tool (func_version): Update.
76102
76103 2005-08-24  Bruno Haible  <bruno@clisp.org>
76104
76105         * gnulib-tool (func_import, func_create_testdir,
76106         func_create_megatestdir): Quote all autoconf macro arguments.
76107
76108 2005-08-24  Bruno Haible  <bruno@clisp.org>
76109
76110         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76111         option --force, because --force causes the aclocal.m4 of each
76112         subdirectory to be newer than the corresponding config.h.in.
76113
76114 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76115
76116         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76117         All contents moved to gl_REGEX.
76118         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76119         assume that it does.
76120
76121 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76122
76123         * lib/regex.h (REG_NOSYS)
76124         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76125         Define, since POSIX requires it as of 2001.
76126         (_REG_ENOSYS)
76127         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76128         New private symbol, used to keep the enum signed in all cases.
76129         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76130         Youngman in
76131         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76132
76133         * lib/regex_internal.c (re_string_skip_chars, register_state):
76134         (calc_state_hash):
76135         Remove forward decls; no longer needed now that we use prototypes.
76136         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76137         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76138         (clean_state_log_if_needed): Likewise.
76139
76140 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76141
76142         * config/srclist.txt: Add glibc bugs 1231-1233.
76143
76144 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76145
76146         Fix problems reported by Sam Steingold in
76147         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76148         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76149         assumed that reg_errcode_t is a signed type, which is not
76150         necessarily true if _XOPEN_SOURCE is not defined.
76151         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76152         since some compilers warn about it otherwise.
76153
76154 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76155
76156         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76157         (init_word_char, create_initial_state, duplicate_node_closure):
76158         (fetch_token, peek_token_bracket, build_range_exp):
76159         (build_collating_symbol): Remove forward decls; no longer needed
76160         now that we use prototypes.
76161
76162         * lib/regcomp.c:
76163         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76164         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76165         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76166         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76167         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76168         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76169         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76170         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76171         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76172         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76173         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76174         (build_charclass, build_charclass_op, fetch_number, create_tree):
76175         (create_token_tree, mark_opt_subexp, duplicate_tree):
76176         Use prototypes rather than old-style definitions.
76177
76178         * lib/regex_internal.c:
76179         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76180         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76181         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76182         (re_string_reconstruct, re_string_peek_byte_case):
76183         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76184         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76185         (re_node_set_init_copy, re_node_set_add_intersect):
76186         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76187         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76188         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76189         (re_acquire_state, re_acquire_state_context, register_state):
76190         (create_ci_newstate, create_cd_newstate, free_state):
76191         Likewise.
76192         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76193         re_search_2):
76194         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76195         (re_search_internal, prune_impossible_nodes):
76196         (acquire_init_state_context, check_matching, static):
76197         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76198         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76199         (update_regs, sift_states_backward, build_sifted_states):
76200         (clean_state_log_if_needed, merge_state_array):
76201         (update_cur_sifted_state, add_epsilon_src_nodes):
76202         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76203         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76204         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76205         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76206         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76207         (check_arrival, check_arrival_add_next_nodes):
76208         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76209         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76210         (check_node_accept_bytes, check_node_accept, extend_buffers):
76211         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76212         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76213         (sift_ctx_init):
76214         Likewise.
76215
76216         * lib/regex_internal.h:
76217         (re_string_allocate, re_string_construct, re_string_reconstruct):
76218         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76219         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76220         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76221         (re_string_context_at, re_string_peek_byte_case):
76222         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76223         is defined, since we now use prototypes always.
76224
76225         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76226         C89 or better.  All uses removed.
76227
76228 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76229
76230         * config/srclist.txt: Add glibc bugs 1220-1227.
76231
76232 2005-08-20  Jim Meyering  <jim@meyering.net>
76233
76234         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76235         of unused local, dfa.
76236
76237 2005-08-20  Bruno Haible  <bruno@clisp.org>
76238
76239         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76240
76241 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76242
76243         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76244         (re_node_set_insert_last, re_dfa_add_node):
76245         Rename local variables to avoid GCC shadowing warnings.
76246
76247 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76248
76249         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76250         [defined lint]: Suppress bogus uninitialized-variable warnings.
76251
76252         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76253         and let the caller return REG_ESPACE if out of space.  This
76254         removes an uninitialied-variable warning with GCC 4.0.1, and also
76255         avoids taking the address of a local variable.  All callers
76256         changed.
76257
76258 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76259
76260         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76261         $LIBCSRC/posix/regexec.c.
76262         Add glibc bug 1217 for regcomp.c.
76263
76264 2005-08-19  Jim Meyering  <jim@meyering.net>
76265
76266         * lib/regexec.c (proceed_next_node): Redo local variables to
76267         avoid GCC shadowing warnings.
76268
76269 2005-08-18  Bruno Haible  <bruno@clisp.org>
76270
76271         * lib/strstr.c (strstr): Fix return value in multibyte case.
76272         * lib/strcasestr.c (strcasestr): Likewise.
76273
76274 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76275
76276         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76277
76278 2005-08-17  Jim Meyering  <jim@meyering.net>
76279
76280         Make the %s format (seconds since the epoch) work for a negative
76281         number and when used with a zero-padded field width, e.g. %015s.
76282
76283         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76284         label so that it precedes the code to set `digits'.  Otherwise,
76285         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76286         print `00-22'.  Now, it prints `-0022', as it should.
76287
76288 2005-08-17  Bruno Haible  <bruno@clisp.org>
76289
76290         * modules/strstr (Files): Add m4/mbrtowc.m4.
76291         (Depends-on): Add mbuiter.
76292
76293 2005-08-17  Bruno Haible  <bruno@clisp.org>
76294
76295         * modules/strcasestr: New file.
76296         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76297         strcasestr.
76298
76299 2005-08-17  Bruno Haible  <bruno@clisp.org>
76300
76301         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76302
76303 2005-08-17  Bruno Haible  <bruno@clisp.org>
76304
76305         * modules/mbuiter: New file.
76306         * MODULES.html.sh (Extended multibyte and wide character utilities):
76307         Add mbuiter.
76308
76309 2005-08-17  Bruno Haible  <bruno@clisp.org>
76310
76311         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76312         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76313
76314 2005-08-17  Bruno Haible  <bruno@clisp.org>
76315
76316         * m4/strcasestr.m4: New file.
76317
76318 2005-08-17  Bruno Haible  <bruno@clisp.org>
76319
76320         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76321         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76322
76323 2005-08-17  Bruno Haible  <bruno@clisp.org>
76324
76325         * lib/strcasestr.h: New file.
76326         * lib/strcasestr.c: New file.
76327
76328 2005-08-17  Bruno Haible  <bruno@clisp.org>
76329
76330         * lib/strcasecmp.c: Use mbuiter.h.
76331
76332 2005-08-17  Bruno Haible  <bruno@clisp.org>
76333
76334         * lib/mbuiter.h: New file.
76335
76336 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76337
76338         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76339         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76340         and gl_GETOPT are both invoked via different paths (as happens
76341         with GNU tar CVS because it uses both argp and getopt), the former
76342         wins.
76343
76344 2005-08-16  Bruno Haible  <bruno@clisp.org>
76345
76346         * modules/tls: New file.
76347         * MODULES.html.sh (Multithreading): Add tls.
76348
76349 2005-08-16  Bruno Haible  <bruno@clisp.org>
76350
76351         * modules/strnlen1: New file.
76352         * MODULES.html.sh (String handling): Add strnlen1.
76353
76354 2005-08-16  Bruno Haible  <bruno@clisp.org>
76355
76356         * modules/strcase (Files): Add m4/mbrtowc.m4.
76357         (Depends-on): Add strnlen1, mbchar.
76358
76359 2005-08-16  Bruno Haible  <bruno@clisp.org>
76360
76361         * modules/mbiter: New file.
76362         * MODULES.html.sh (Extended multibyte and wide character utilities):
76363         Add mbiter.
76364
76365 2005-08-16  Bruno Haible  <bruno@clisp.org>
76366
76367         * modules/mbfile: New file.
76368         * MODULES.html.sh (Extended multibyte and wide character utilities):
76369         Add mbfile.
76370
76371 2005-08-16  Bruno Haible  <bruno@clisp.org>
76372
76373         * modules/mbchar: New file.
76374         * MODULES.html.sh (Extended multibyte and wide character utilities):
76375         New section.
76376
76377 2005-08-16  Bruno Haible  <bruno@clisp.org>
76378
76379         * m4/tls.m4: New file, from GNU gettext.
76380
76381 2005-08-16  Bruno Haible  <bruno@clisp.org>
76382
76383         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76384         always.
76385         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76386
76387 2005-08-16  Bruno Haible  <bruno@clisp.org>
76388
76389         * m4/mbiter.m4: New file.
76390
76391 2005-08-16  Bruno Haible  <bruno@clisp.org>
76392
76393         * m4/mbfile.m4: New file.
76394
76395 2005-08-16  Bruno Haible  <bruno@clisp.org>
76396
76397         * m4/mbchar.m4: New file.
76398
76399 2005-08-16  Bruno Haible  <bruno@clisp.org>
76400
76401         * lib/tls.h: New file, from GNU gettext.
76402         * lib/tls.c: New file, from GNU gettext.
76403
76404 2005-08-16  Bruno Haible  <bruno@clisp.org>
76405
76406         * lib/strnlen1.h: New file.
76407         * lib/strnlen1.c: New file.
76408
76409 2005-08-16  Bruno Haible  <bruno@clisp.org>
76410
76411         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76412         (mbi_init): Update.
76413         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76414         NUL byte, not after it.
76415
76416 2005-08-16  Bruno Haible  <bruno@clisp.org>
76417
76418         * lib/strcase.h (strcasecmp): Add note in comments.
76419         * lib/strncasecmp.c: Use code from strcasecmp.c.
76420         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76421         (strcasecmp): Work correctly in multibyte locales.
76422
76423 2005-08-16  Bruno Haible  <bruno@clisp.org>
76424
76425         * lib/mbiter.h: New file.
76426
76427 2005-08-16  Bruno Haible  <bruno@clisp.org>
76428
76429         * lib/mbfile.h: New file.
76430
76431 2005-08-16  Bruno Haible  <bruno@clisp.org>
76432
76433         * lib/mbchar.h: New file.
76434         * lib/mbchar.c: New file.
76435
76436 2005-08-16  Bruno Haible  <bruno@clisp.org>
76437
76438         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76439         the valid ones. Makes the comparison operations transitive:
76440         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76441         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76442
76443 2005-08-15  Simon Josefsson  <jas@extundo.com>
76444
76445         * modules/ssize_t (License): Change to 'unlimited'.
76446
76447         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76448
76449 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76450
76451         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76452         Add comments for each pending glibc patch.
76453
76454 2005-08-15  Bruno Haible  <bruno@clisp.org>
76455
76456         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76457         __cplusplus is defined.
76458
76459 2005-08-14  Jim Meyering  <jim@meyering.net>
76460
76461         Sync from coreutils.
76462
76463         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76464         Use the hash-table-based cycle-detection code not just when
76465         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76466         Reported by James Youngman in
76467         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76468         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76469         FTS_TIGHT_CYCLE_CHECK.
76470         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76471         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76472         once again.
76473         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76474         * lib/fts.c (fd_safer): Remove decl.
76475         Include fcntl--.h rather than unistd-safer.h
76476         (fts_safe_changedir): Don't call fd_safer; no longer needed
76477         now that we include fcntl--.h.
76478
76479 2005-08-12  Simon Josefsson  <jas@extundo.com>
76480
76481         * modules/getndelim2: Use ssize_t module.
76482         * modules/getnline: Likewise.
76483         * modules/safe-read: Likewise.
76484         * modules/xreadlink: Likewise.
76485
76486         * modules/ssize_t: New file.
76487
76488 2005-08-12  Simon Josefsson  <jas@extundo.com>
76489
76490         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76491
76492 2005-08-12  Simon Josefsson  <jas@extundo.com>
76493
76494         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76495         ssize_t.
76496
76497 2005-08-12  Simon Josefsson  <jas@extundo.com>
76498
76499         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76500         readline, getdelim and check_version.
76501         (Support for systems lacking ISO C 99: Sizes of integer types):
76502         Add size_max.
76503
76504 2005-08-12  Bruno Haible  <bruno@clisp.org>
76505
76506         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76507
76508 2005-08-11  Simon Josefsson  <jas@extundo.com>
76509
76510         * modules/readline: New file.
76511
76512         * modules/strnlen (Files): Add strnlen.h.
76513
76514 2005-08-11  Simon Josefsson  <jas@extundo.com>
76515
76516         * m4/readline.m4: New file.
76517
76518 2005-08-11  Simon Josefsson  <jas@extundo.com>
76519
76520         * lib/readline.h, readline.c: New file.
76521
76522 2005-08-11  Simon Josefsson  <jas@extundo.com>
76523
76524         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76525         gl_AVOID.
76526
76527 2005-08-11  Bruno Haible  <bruno@clisp.org>
76528
76529         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76530
76531 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76532
76533         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76534
76535 2005-08-10  Simon Josefsson  <jas@extundo.com>
76536
76537         * tests/test-iconvme.c: New file.
76538
76539 2005-08-10  Simon Josefsson  <jas@extundo.com>
76540
76541         * m4/strnlen.m4: New file.
76542
76543         * m4/strndup.m4: Don't check for strnlen declaration, done in
76544         strnlen.m4.
76545
76546 2005-08-10  Simon Josefsson  <jas@extundo.com>
76547
76548         * lib/strndup.c: Use strnlen.h.
76549
76550         * lib/strnlen.h: New file.
76551
76552 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76553
76554         * README: Typos.
76555
76556 2005-08-02  Simon Josefsson  <jas@extundo.com>
76557
76558         * modules/readline: New file.
76559
76560 2005-08-02  Simon Josefsson  <jas@extundo.com>
76561
76562         * modules/getdelim: New file.
76563
76564         * modules/getline: Rewrite, don't use getndelim2.
76565
76566 2005-08-02  Simon Josefsson  <jas@extundo.com>
76567
76568         * m4/getline.m4: Separate out getdelim stuff into separate module.
76569
76570         * m4/getdelim.m4: New file.
76571
76572 2005-08-02  Simon Josefsson  <jas@extundo.com>
76573
76574         * lib/getline.h, getline.c: Rewrite.
76575
76576         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76577
76578 2005-07-31  Bruno Haible  <bruno@clisp.org>
76579
76580         * lib/lock.h (gl_lock_initializer): New macro.
76581         (gl_lock_define_initialized): Use it.
76582         (gl_rwlock_initializer): New macro.
76583         (gl_rwlock_define_initialized): Use it.
76584         (gl_recursive_lock_initializer): New macro.
76585         (gl_recursive_lock_define_initialized): Use it.
76586
76587 2005-07-30  Karl Berry  <karl@gnu.org>
76588
76589         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76590         Report from Ben Pfaff, regarding getopt.
76591
76592 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76593
76594         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76595         normal way.
76596         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76597         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76598         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76599         (gl_GETOPT): Use the new macros.  Most of the implementation
76600         is moved to the new macros.  This is for programs like Emacs
76601         that don't want all the functionality of gl_GETOPT.
76602
76603 2005-07-26  Bruno Haible  <bruno@clisp.org>
76604
76605         * m4/lock.m4: Update from GNU gettext.
76606
76607 2005-07-26  Bruno Haible  <bruno@clisp.org>
76608
76609         * lib/lock.h: Update from GNU gettext.
76610         * lib/lock.c: Update from GNU gettext.
76611
76612 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76613
76614         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76615         obsolescent AC_TRY_RUN.  Include the default includes files, for
76616         'exit'.
76617
76618 2005-07-24  Bruno Haible  <bruno@clisp.org>
76619
76620         * modules/visibility: New file.
76621         * MODULES.html.sh (Misc): Add visibility.
76622
76623 2005-07-24  Bruno Haible  <bruno@clisp.org>
76624
76625         * m4/visibility.m4: New file.
76626
76627 2005-07-24  Bruno Haible  <bruno@clisp.org>
76628
76629         * doc/visibility.texi: New file.
76630
76631 2005-07-22  Bruno Haible  <bruno@clisp.org>
76632
76633         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76634         $(ALLOCA_H), redundant through BUILT_SOURCES.
76635         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76636         redundant through BUILT_SOURCES.
76637         * modules/byteswap (Makefile.am): Remove explicit dependency on
76638         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76639         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76640         $(FNMATCH_H), redundant through BUILT_SOURCES.
76641         * modules/getopt (Makefile.am): Remove explicit dependency on
76642         $(GETOPT_H), redundant through BUILT_SOURCES.
76643         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76644         redundant through BUILT_SOURCES.
76645         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76646         redundant through BUILT_SOURCES.
76647         * modules/stdbool (Makefile.am): Remove explicit dependency on
76648         $(STDBOOL_H), redundant through BUILT_SOURCES.
76649         * modules/stdint (Makefile.am): Remove explicit dependency on
76650         $(STDINT_H), redundant through BUILT_SOURCES.
76651         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76652         Remove explicit dependency on $(SYSEXITS_H).
76653         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76654
76655 2005-07-18  Simon Josefsson  <jas@extundo.com>
76656
76657         * lib/check-version.c (check_version): Accept identical versions too.
76658
76659 2005-07-18  Bruno Haible  <bruno@clisp.org>
76660
76661         * modules/lock: New file.
76662         * MODULES.html.sh (Multithreading): New section.
76663
76664 2005-07-18  Bruno Haible  <bruno@clisp.org>
76665
76666         * m4/lock.m4: New file, from GNU gettext.
76667
76668 2005-07-18  Bruno Haible  <bruno@clisp.org>
76669
76670         * lib/lock.h: New file, from GNU gettext.
76671         * lib/lock.c: New file, from GNU gettext.
76672
76673 2005-07-18  Bruno Haible  <bruno@clisp.org>
76674
76675         * lib/lock.h (gl_once_t): New type.
76676         (gl_once_define, gl_once): New macros.
76677         * lib/lock.c (fresh_once): New variable.
76678         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76679         functions.
76680
76681 2005-07-16  Simon Josefsson  <jas@extundo.com>
76682
76683         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76684         workaround, suggested by Bruno.
76685
76686 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76687
76688         * modules/xalloc (Depends-on): Add xalloc-die.
76689         * modules/xvasprintf (Depends-on): Add xalloc-die.
76690
76691 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76692
76693         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76694         with a minor change.
76695
76696 2005-07-15  Bruno Haible  <bruno@clisp.org>
76697
76698         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76699         When using lib/poll.c, define poll as rpl_poll.
76700
76701 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76702
76703         * modules/argp (Depends-on): Remove unlocked-io.
76704
76705 2005-07-14  Derek Price  <derek@ximbiot.com>
76706
76707         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76708         for glob symlink bug.
76709
76710 2005-07-14  Bruno Haible  <bruno@clisp.org>
76711
76712         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76713         Instead, test for *_unlocked function declarations directly.
76714
76715 2005-07-11  Simon Josefsson  <jas@extundo.com>
76716
76717         * modules/size_max: New file.
76718
76719         * modules/xsize: Depend on size_max module for size_max.m4.
76720
76721 2005-07-11  Simon Josefsson  <jas@extundo.com>
76722
76723         * lib/size_max.h: New file.
76724
76725 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76728         copyright symbol and the year.
76729         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76730         (version_etc_va): Use parameterized copyright notice.
76731         Reword to conform to the current GNU coding standards.
76732
76733 2005-07-11  Karl Berry  <karl@gnu.org>
76734
76735         * doc/gnulib.texi (Quoting): new node.
76736         (Initial import): more info, from Patrice.
76737
76738 2005-07-11  Bruno Haible  <bruno@clisp.org>
76739
76740         * gnulib-tool (func_usage): Document option --avoid.
76741         (Command line options): Handle --avoid.
76742         (func_acceptable): New function.
76743         (func_modules_transitive_closure): Use it.
76744
76745 2005-07-11  Bruno Haible  <bruno@clisp.org>
76746
76747         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76748         Reported by Jim Meyering.
76749
76750 2005-07-10  Bruno Haible  <bruno@clisp.org>
76751
76752         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76753         Needed when size_t is smaller than 'unsigned int'.
76754         Reported by Paul Eggert.
76755
76756 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76757
76758         * modules/argp (Depends-on): Add unlocked-io
76759
76760 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76761
76762         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76763         block of defines.
76764
76765 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76766
76767         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76768         fix now.
76769
76770 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76771         and Paul Eggert  <eggert@cs.ucla.edu>
76772
76773         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76774         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76775
76776 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76777
76778         * modules/regex (Files): Add lib/regex_internal.c,
76779         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76780         (Depends-on): Add extensions.
76781         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76782
76783 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76784
76785         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76786         pathconf.
76787         * m4/same.m4 (gl_SAME): Likewise.
76788         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76789
76790         * m4/regex.m4: Adjust to new libc regex implementation.
76791         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76792         all the .c and .h parts of (the new) regex.
76793         Quote the m4 stuff better.
76794         Check for RE_ICASE bug of old gnulib.
76795         Check for REG_STARTEND of recent libc.
76796         Rename local variables from jm_* to gl_*.
76797         Quote operand of "test -f".
76798         Say "recent enough" version of libc, not "version 2".
76799         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76800         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76801         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76802         Remove check for btowc, isascii.
76803         Require AM_LANGINFO_CODESET.
76804
76805 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76806
76807         * lib/regex.c, regex.h: Sync from libc.
76808         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76809         * lib/regexec.c:
76810         New files, synced from libc, except that regex_internal.h
76811         currently has a small porting fix.
76812
76813 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76814
76815         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76816         regex_internal.c, regexec.c.
76817         Add regex_internal.h too, but as a comment, since the libc version
76818         is currently broken in gnulib mode.
76819
76820 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76821
76822         Support programs like Emacs that use gnulib but not gettext.
76823         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76824         * modules/gettext-h: New file.
76825         * modules/gettext (Files): Remove lib/gettext.h.
76826         (Depends-on): Add gettext-h.
76827         (Makefile.am): Remove lib_SOURCES.
76828         * modules/argmatch, modules/c-stack, modules/closeout:
76829         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76830         * modules/execute, modules/file-type, modules/getaddrinfo:
76831         * modules/getopt, modules/human, modules/javacomp:
76832         * modules/javaexec, modules/mkdir-p, modules/obstack:
76833         * modules/openat, modules/pagealign_alloc, modules/pipe:
76834         * modules/quotearg, modules/regex, modules/rpmatch:
76835         * modules/unicodeio, modules/userspec, modules/version-etc:
76836         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76837         * modules/xsetenv:
76838         Depend on gettext-h, not gettext.
76839
76840 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76841
76842         * gnulib-tool (func_import): Add support for 'public domain' license.
76843         * modules/alloca, modules/atexit, modules/memmove:
76844         Now public domain, not GPL.
76845         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76846         * modules/realloc, modules/strerror, modules/strtod:
76847         Now LGPL, not GPL.
76848
76849 2005-07-05  Bruno Haible  <bruno@clisp.org>
76850
76851         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76852         autoconf CVS. Needed for mingw.
76853
76854 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76855
76856         Remove the dependency of the strftime module on the tzset module.
76857         * modules/strftime (Depends-on): Remove dependency on tzset.
76858
76859 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76860
76861         Remove the dependency of the strftime module on the tzset module.
76862         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76863         gl_FUNC_TZSET_CLOBBER.
76864
76865 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76866
76867         Remove the dependency of the strftime module on the tzset module.
76868         * lib/strftime.c (my_strftime)
76869         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76870         Copy the input structure, to work around some of the bug with
76871         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76872         Solaris releases, you should also use the tzset module, but we won't
76873         require it as a dependency any more since we don't want LGPLed code
76874         to depend on GPLed code.
76875
76876 2005-07-02  Jim Meyering  <jim@meyering.net>
76877
76878         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76879         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76880         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76881         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76882
76883 2005-07-02  Jim Meyering  <jim@meyering.net>
76884
76885         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76886
76887 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76890         declares only 'struct timespec;' (!).
76891
76892 2005-07-01  Jim Meyering  <jim@meyering.net>
76893
76894         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76895         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76896         * lib/save-cwd.c, tempname.c:
76897         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76898         and don't include <sys/file.h>).
76899
76900 2005-06-29  Jim Meyering  <jim@meyering.net>
76901
76902         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76903         type name.  Use the variable name instead.
76904         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76905         Likewise.
76906
76907 2005-06-28  Simon Josefsson  <jas@extundo.com>
76908
76909         * modules/check-version (Files): Add check-version.m4.
76910
76911 2005-06-28  Simon Josefsson  <jas@extundo.com>
76912
76913         * m4/check-version.m4: New file, suggested by Jim Meyering
76914         <jim@meyering.net>.
76915
76916 2005-06-28  Simon Josefsson  <jas@extundo.com>
76917
76918         * lib/check-version.h, lib/check-version.c: New files.
76919
76920 2005-06-28  Simon Josefsson  <jas@extundo.com>
76921
76922         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76923         collision with global variable.  Better indentation.  Don't
76924         increment buffer pointer beyond buffer end.  Based on comments
76925         from Paul Eggert <eggert@cs.ucla.edu>.
76926
76927         * lib/base64.h: Indent.
76928
76929 2005-06-28  Simon Josefsson  <jas@extundo.com>
76930
76931         * doc/gnulib.texi (Library version handling): New section.
76932
76933 2005-06-28  Jim Meyering  <jim@meyering.net>
76934
76935         * check-module (find_included_lib_files): Hard-code another
76936         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76937         but modules/fts-lgpl (correctly) does not list those files.
76938
76939         * modules/canonicalize (Files): Add lib/pathmax.h.
76940
76941 2005-06-25  Simon Josefsson  <jas@extundo.com>
76942
76943         * modules/check-version: New file.
76944
76945 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76946
76947         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76948         initializer of struct addrinfo, as an indication that we don't
76949         care how many members the structure has.
76950
76951 2005-06-24  Derek Price  <derek@ximbiot.com>
76952         and Bruno Haible  <bruno@clisp.org>
76953
76954         Remove stat module & update lstat.
76955         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76956         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76957         * m4/stat.m4: Remove this file.
76958
76959 2005-06-24  Derek Price  <derek@ximbiot.com>
76960         and Bruno Haible  <bruno@clisp.org>
76961
76962         Remove stat module & update lstat.
76963         * lib/stat.c: Remove this file...
76964         (slash_aware_lstat): ...moving this content and its support...
76965         * lib/lstat.c (rpl_lstat): ...into here.
76966         * lib/lstat.h: New file.
76967
76968 2005-06-24  Derek Price  <derek@ximbiot.com>
76969         and Bruno Haible  <bruno@clisp.org>
76970
76971         Remove stat module & update lstat.
76972         * config/srclist.txt (libc sources): Remove stat.
76973
76974 2005-06-24  Derek Price  <derek@ximbiot.com>
76975         and Bruno Haible  <bruno@clisp.org>
76976
76977         Remove stat module & update lstat.
76978         * MODULES.html.sh (stat): Remove.
76979         * MODULES.html: Regenerated.
76980         * modules/lstat (Description): Correct function name.
76981         (Files): Add "lstat.h".
76982         (Depends-on): Remove stat, add xalloc, stat-macros.
76983         * modules/stat: Remove this file.
76984         (Include): Add "lstat.h", remove <sys/stat.h>.
76985
76986 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76987
76988         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76989         (ranged_convert): Don't save conversion in a temporary struct.
76990         This causes a warning with GCC 4.0.0, and anyway in the typical
76991         case it's not worth the extra 100 bytes or so of code.
76992         (ranged_convert, __mktime_internal): When calling a function via a
76993         pointer P, use P () rather than (*P) (), as we now assume C89 or
76994         better.
76995
76996 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76997
76998         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76999         "who -r" failed to give output.  Problem reported by Tim Waugh.
77000
77001         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77002         (xcalloc): Use it to avoid needless tests.
77003         Problem reported by Jim Meyering.
77004
77005 2005-06-20  Derek Price  <derek@ximbiot.com>
77006
77007         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77008         unnecessary for Autoconfs > 2.59c.
77009
77010 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77011
77012         * lib/argp.h (__option_is_short): Check upper limit of
77013         __key. Isprint() requires its argument to have the value
77014         of an unsigned char or EOF.
77015
77016 2005-06-16  Jim Meyering  <jim@meyering.net>
77017
77018         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77019         when either N or S is zero.
77020
77021 2005-06-16  Derek Price  <derek@ximbiot.com>
77022
77023         * m4/bison.m4: Declare YACC & YFLAGS precious.
77024
77025 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77026
77027         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77028         multibyte string or pattern, fall back on unibyte matching.
77029         Problem reported by James Youngman.
77030
77031 2005-06-08  Bruno Haible  <bruno@clisp.org>
77032
77033         * modules/csharpcomp: New file.
77034         * MODULES.html.sh (C#): Add csharpcomp.
77035
77036 2005-06-08  Bruno Haible  <bruno@clisp.org>
77037
77038         * m4/csharpcomp.m4: New file, from GNU gettext.
77039
77040 2005-06-08  Bruno Haible  <bruno@clisp.org>
77041
77042         * lib/csharpcomp.h: New file, from GNU gettext.
77043         * lib/csharpcomp.c: New file, from GNU gettext.
77044         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77045
77046 2005-06-08  Bruno Haible  <bruno@clisp.org>
77047
77048         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77049         warning on mingw.
77050
77051 2005-06-07  Derek Price  <derek@ximbiot.com>
77052
77053         Sync from CVS.
77054         * lib/glob_.h: Indent nested #ifdef.
77055
77056 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77057
77058         Sync from coreutils.
77059         Use "file name" when talking about file names, instead of "filename"
77060         or "path", as per the GNU coding standards.
77061         * lib/mkdir-p.c: Renamed from makepath.c.
77062         (make_dir_parents): Renamed from make_path.  All callers changed.
77063         * lib/mkdir-p.h: Likewise.  All includers changed.
77064         * lib/filenamecat.c: Renamed from path-concat.c.
77065         (file_name_concat): Renamed from path_concat.  All callers changed.
77066         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77067         * lib/filenamecat.h: Likewise.  All includers changed.
77068         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77069         in comments or local variable names.
77070         * lib/basename.c: Likewise.
77071         * lib/canonicalize.c, canonicalize.h: Likewise.
77072         * lib/dirname.c, dirname.h: Likewise.
77073         * lib/euidaccess.c: Likewise.
77074         * lib/exclude.c: Likewise
77075         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77076         * lib/fsusage.c, fsuage.h: Likewise.
77077         * lib/fts.c, fts_.h: Likewise.
77078         * lib/getcwd.c: Likewise.
77079         * lib/getloadavg.c: Likewise.
77080         * lib/mkstemp.c: Likewise.
77081         * lib/mountlist.c, mountlist.h: Likewise.
77082         * lib/openat.c, openat.h: Likewise.
77083         * lib/readlink-stub.c: Likewise.
77084         * lib/readutmp.c, readutmp.h: Likewise.
77085         * lib/rename.c: Likewise.
77086         * lib/rmdir.c: Likewise.
77087         * lib/same.c: Likewise.
77088         * lib/savedir.c: Likewise.
77089         * lib/stripslash.c: Likewise.
77090         * lib/tempname.c: Likewise.
77091         * lib/xreadlink.c: Likewise.
77092         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77093         All uses changed.
77094         * lib/exclude.h: Likewise.
77095
77096         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77097         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77098         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77099         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77100         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77101         files have been getting away with it for years (MORE/BSD 4.3
77102         is extinct now).
77103         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77104         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77105
77106         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77107         Define to 256, not 255, as per modern POSIX.
77108
77109 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77110
77111         Sync from coreutils.
77112         Use "file name" when talking about file names, instead of "filename"
77113         or "path", as per the GNU coding standards.
77114         * MODULES.html.sh: mkdir-p renamed from makepath.
77115         filenamecat renamed from path-concat.
77116         * modules/filenamecat: Renamed from modules/path-concat.
77117         (Files): filenamecat.h and filenamecat.c renamed from
77118         path-concat.h and path-concat.c.
77119         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77120         (Include): filenamecat.h, not path-concat.h.
77121         * modules/mkdir-p: Renamed from modules/makepath.
77122         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77123         makepath.c.
77124         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77125         (Include): mkdir-p.h, not makepath.h.
77126
77127 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77128
77129         Sync from coreutils.
77130         * m4/mkdir-p.m4: Renamed from makepath.m4.
77131         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77132         Rename files from makepath.c to mkdir-p.c, and from
77133         makepath.h to mkdir-p.h.
77134         * m4/filenamecat.m4: Renamed from path-concat.m4.
77135         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77136         Rename files from path-concat.c to filenamecat.c,
77137         and from path-concat.h to filenamecat.h.
77138         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77139         "file name" in local variables or comments.
77140         * m4/rename.m4: Likewise.
77141
77142 2005-06-01  Bruno Haible  <bruno@clisp.org>
77143
77144         * modules/csharpexec: New file.
77145         * MODULES.html.sh (C#): New section.
77146
77147 2005-06-01  Bruno Haible  <bruno@clisp.org>
77148
77149         * m4/csharp.m4: New file, from GNU gettext.
77150         * m4/csharpexec.m4: New file, from GNU gettext.
77151
77152 2005-06-01  Bruno Haible  <bruno@clisp.org>
77153
77154         * lib/csharpexec.h: New file, from GNU gettext.
77155         * lib/csharpexec.c: New file, from GNU gettext.
77156         * lib/csharpexec.sh.in: New file, from GNU gettext.
77157
77158 2005-05-31  Derek Price  <derek@ximbiot.com>
77159             Paul Eggert  <eggert@cs.ucla.edu>
77160
77161         Sync from cvs.
77162         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77163
77164 2005-05-31  Derek Price  <derek@ximbiot.com>
77165             Paul Eggert  <eggert@cs.ucla.edu>
77166
77167         Sync from cvs.
77168         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77169
77170 2005-05-29  Derek Price  <derek@ximbiot.com>
77171
77172         * config/srclist.txt (glob_.h, glob.c): Add these files.
77173
77174 2005-05-29  Derek Price  <derek@ximbiot.com>
77175
77176         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77177         * modules/glob: New file.
77178         * modules/getlogin_r: Add link to POSIX spec in description.
77179
77180 2005-05-29  Derek Price  <derek@ximbiot.com>
77181             Paul Eggert  <eggert@cs.ucla.edu>
77182
77183         * m4/glob.m4: New file.
77184
77185 2005-05-29  Derek Price  <derek@ximbiot.com>
77186             Paul Eggert  <eggert@cs.ucla.edu>
77187
77188         * lib/glob_.h, lib/glob.c: New files.
77189
77190 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77191
77192         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77193         * modules/fts-lgpl (Depends-on): Remove gettext.
77194
77195 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77196
77197         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77198         and don't require gt_INTTYPES_PRI.
77199
77200 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77201
77202         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77203
77204         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77205         the configuration hassle isn't worth it.
77206         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77207         (LONGEST_MODIFIER, PRIuMAX): Remove.
77208
77209 2005-05-27  Bruno Haible  <bruno@clisp.org>
77210
77211         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77212
77213 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77214
77215         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77216         _POSIX_PTHREAD_SEMANTICS for Solaris.
77217
77218 2005-05-25  Derek Price  <derek@ximbiot.com>
77219
77220         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77221
77222 2005-05-25  Derek Price  <derek@ximbiot.com>
77223             Paul Eggert  <eggert@cs.ucla.edu>
77224
77225         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77226         * lib/getlogin_r.c, getlogin_r.h: New files.
77227
77228 2005-05-25  Bruno Haible  <bruno@clisp.org>
77229             Derek Price  <derek@ximbiot.com>
77230
77231         * lib/getlogin_r.h: Simplify API documentation.
77232
77233 2005-05-23  Derek Price  <derek@ximbiot.com>
77234
77235         * modules/minmax (Files): Add m4/minmax.m4.
77236         (configure.ac): Add gl_MINMAX.
77237
77238 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77239
77240         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77241         so that unistd-safer.h (GPL'ed code) need not be included.
77242
77243 2005-05-22  Bruno Haible  <bruno@clisp.org>
77244
77245         * m4/minmax.m4: New file.
77246         Based on a patch by Derek Price <derek@ximbiot.com>.
77247
77248 2005-05-22  Bruno Haible  <bruno@clisp.org>
77249
77250         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77251         (INT64_MIN): Fix definition.
77252         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77253
77254         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77255         NEED_SIGNED_INT_TYPES.
77256
77257         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77258         HAVE_SYSTEM_INTTYPES.
77259
77260 2005-05-22  Bruno Haible  <bruno@clisp.org>
77261
77262         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77263         Also include <sys/param.h> if it defines MIN, MAX.
77264         Based on a patch by Derek Price <derek@ximbiot.com>.
77265
77266 2005-05-21  Jim Meyering  <jim@meyering.net>
77267
77268         * modules/fts (Files): Add m4/inttypes-pri.m4.
77269         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77270
77271 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77272
77273         New fts module.
77274         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77275         (setup_dir, free_dir): New functions.
77276         (enter_dir, leave_dir): Define trivial
77277         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77278         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77279         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77280         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77281         Move to fts-cycle.c.
77282         (fts_open): Use setup_dir.
77283         (fts_close): Use free_dir.
77284         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77285         This adds a label and some gotos, but the alternatives were messier.
77286         Check for memory allocation failure when entering a dir.
77287         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77288         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77289         (FTS): New member fts_cycle, that is a union that contains the
77290         old active_dir_ht and cycle_state.  All uses changed to mention
77291         fts_cycle.ht and fts_cycle.state.
77292         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77293         fts.c, with the following changes:
77294         (setup_dir, free_dir): New functions.
77295         (enter_dir): Now returns bool.  Return true if successful, false
77296         if memory exhausted.  All callers changed.
77297         Do not bother partly cleaning up on
77298         memory allocation failure; that is free_dir's job.
77299         However, free ad if hash_insert fails, to avoid memory leak.
77300         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77301         fts->fts_options to see which union member to use.
77302
77303 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77304
77305         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77306         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77307
77308 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77309
77310         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77311
77312 2005-05-20  Jim Meyering  <jim@meyering.net>
77313
77314         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77315         Now a macro, to pacify GCC.
77316
77317 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77318
77319         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77320         of -1.
77321
77322 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77323
77324         * lib/chown.c (rpl_chown): Return -1 on failure.
77325
77326 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77327
77328         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77329         Don't check for stddef.h.
77330         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77331         don't use its results.
77332         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77333         since we include them unconditionally.  Don't require
77334         AM_STDBOOL_H, since stdbool is a prerequisite.
77335         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77336         since we assume C89 or better.
77337         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77338         as we don't use their results.
77339         Don't check for fchdir, memmove, memset, strrchr, as we use
77340         them unconditionally.
77341         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77342         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77343
77344 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77345
77346         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77347         Include <stddef.h> unconditionally, since we assume C89 now.
77348         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77349         * lib/fts.c: Include fts_.h first, to check interface.
77350         Do not include intprops.h; no longer needed.
77351         Include cycle-check.h and hash.h, since fts_.h no longer does.
77352         Remove unnecessary casts of closedir to void.
77353         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77354         decide whether to decrement nlinks.
77355         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77356         (FTS): Use struct hash_table * instead of Hash_table, so that
77357         we no longer need to include hash.h here.
77358
77359 2005-05-18  Jim Meyering  <jim@meyering.net>
77360
77361         * modules/dirfd (License): Change to LGPL.  Most of the code
77362         is already in the public domain.
77363
77364 2005-05-18  Jim Meyering  <jim@meyering.net>
77365
77366         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77367         Reported by Yoann Vandoorselaere.
77368
77369 2005-05-17  Jim Meyering  <jim@meyering.net>
77370
77371         * m4/fts.m4: New file, from coreutils.
77372
77373 2005-05-17  Jim Meyering  <jim@meyering.net>
77374
77375         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77376
77377 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77378
77379         Sync from coreutils.
77380         * m4/unlinkdir.m4: New file.
77381
77382 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77383
77384         Sync from coreutils.
77385         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77386         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77387         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77388         White space changes only.
77389         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77390         special.
77391         * lib/yesno.c: Include getline.h, not ctype.h.
77392         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77393         Use getline to remove arbitrary restriction on response length.
77394
77395 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77396
77397         * config/srclist-update: Spell out "Street" in FSF postal
77398         mail address; this is the style the FSF seems to prefer.
77399
77400         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77401         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77402         this updates FSF postal mail address.
77403
77404         Sync from coreutils.
77405         * modules/unlinkdir: New file.
77406         * modules/yesno (Depends-on): Add getline.
77407         * MODULES.html.sh (File system functions): Add unlinkdir.
77408
77409 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77410
77411         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77412         lib/strsep.h:
77413         Change the initial comment to refer to GPL, not LGPL.
77414         gnulib-tool will change it to LGPL as needed.
77415
77416         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77417         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77418         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77419         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77420         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77421         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77422         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77423         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77424         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77425         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77426         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77427         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77428         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77429         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77430         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77431         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77432         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77433         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77434         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77435         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77436         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77437         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77438         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77439         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77440         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77441         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77442         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77443         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77444         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77445         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77446         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77447         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77448         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77449         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77450         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77451         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77452         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77453         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77454         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77455         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77456         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77457         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77458         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77459         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77460         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77461         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77462         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77463         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77464         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77465         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77466         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77467         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77468         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77469         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77470         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77471         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77472         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77473         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77474         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77475         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77476         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77477         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77478         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77479         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77480         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77481         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77482         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77483         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77484         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77485         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77486         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77487         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77488         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77489         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77490         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77491         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77492         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77493         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77494         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77495         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77496         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77497         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77498         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77499         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77500         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77501         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77502         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77503         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77504         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77505         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77506         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77507         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77508         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77509         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77510         lib/yesno.c, lib/yesno.h:
77511         Update FSF postal mail address.
77512
77513 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77514
77515         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77516         tests/test-memmem.c, tests/test-stpncpy.c:
77517         Update FSF postal mail address.
77518
77519 2005-05-13  Bruno Haible  <bruno@clisp.org>
77520
77521         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77522         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77523         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77524         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77525         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77526         Add support for 64-bit integers in the MSVC compiler.
77527
77528 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77529
77530         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77531
77532 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77533
77534         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77535
77536 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77537
77538         * doc/getdate.texi (General date syntax): Don't say that date
77539         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77540         Problem reported by Nic Ferrier.
77541
77542 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77543
77544         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77545         specified in ai_socktype. Fix invalid ai_protocol
77546         check. ai_protocol is usually set to 0 or depending on
77547         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77548         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77549         ai_socktype / ai_protocol in the returned addrinfo structure.
77550
77551 2005-05-10  Simon Josefsson  <jas@extundo.com>
77552
77553         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77554         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77555
77556 2005-05-10  Karl Berry  <karl@gnu.org>
77557
77558         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77559         (from http://www.gnu.org/licenses).
77560         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77561         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77562         fdl.texi suffices.
77563
77564 2005-05-10  Karl Berry  <karl@gnu.org>
77565
77566         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77567         (COPYING.DOC): remove.
77568
77569         * config/srclist-update: new FSF address.
77570
77571 2005-05-10  Derek Price  <derek@ximbiot.com>
77572
77573         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77574         possible.
77575
77576 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77577             Bruno Haible  <bruno@clisp.org>
77578
77579         * modules/inet_ntop: New file.
77580         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77581         inet_ntop.
77582
77583 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77584             Bruno Haible  <bruno@clisp.org>
77585
77586         * m4/inet_ntop.m4: New file.
77587
77588 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77589             Bruno Haible  <bruno@clisp.org>
77590
77591         * lib/inet_ntop.h: New file.
77592         * lib/inet_ntop.c: New file, from glibc with modifications.
77593
77594 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77595
77596         * modules/time_r (License): Change to LGPL.
77597         * modules/extensions (License): Change to LGPL.  Actually,
77598         the license is more permissive than that, but currently gnulib-tool
77599         doesn't know how to handle more-permissive licenses.
77600
77601         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77602         Problem reported by Dave Love.
77603
77604 2005-05-08  Jim Meyering  <jim@meyering.net>
77605
77606         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77607         blank.
77608
77609 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77610
77611         * modules/argmatch (Depends-on): Add stdbool.
77612         * modules/backupfile (Depends-on): Likewise.
77613         * modules/chdir-long (Depends-on): Likewise.
77614         * modules/closeout (Depends-on): Likewise.
77615         * modules/cycle-check (Depends-on): Likewise.
77616         * modules/dirname (Depends-on): Likewise.
77617         * modules/fnmatch (Depends-on): Likewise.
77618         * modules/fsusage (Depends-on): Likewise.
77619         * modules/fwriteerror (Depends-on): Likewise.
77620         * modules/getcwd (Depends-on): Likewise.
77621         * modules/getloadavg (Depends-on): Likewise.
77622         * modules/hard-locale (Depends-on): Likewise.
77623         * modules/makepath (Depends-on): Likewise.
77624         * modules/mountlist (Depends-on): Likewise.
77625         * modules/nanosleep (Depends-on): Likewise.
77626         * modules/posixtm (Depends-on): Likewise.
77627         * modules/quotearg (Depends-on): Likewise.
77628         * modules/readtokens (Depends-on): Likewise.
77629         * modules/readtokens0 (Depends-on): Likewise.
77630         * modules/readutmp (Depends-on): Likewise.
77631         * modules/save-cwd (Depends-on): Likewise.
77632         * modules/strftime (Depends-on): Likewise.
77633         * modules/userspec (Depends-on): Likewise.
77634         * modules/utimecmp (Depends-on): Likewise.
77635         * modules/xgetcwd (Depends-on): Likewise.
77636         * modules/xnanosleep (Depends-on): Likewise.
77637         * modules/xstrtod (Depends-on): Likewise.
77638         * modules/yesno (Depends-on): Likewise.
77639
77640 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77641
77642         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77643         needless checks.
77644
77645 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77646
77647         Merge from coreutils.  Among other things,
77648         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77649         * lib/fd-safer.c: New file.
77650         * lib/fcntl-safer.h, open-safer.c: Remove.
77651         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77652         * lib/dup-safer.c: Include unistd-safer.h first.
77653         Don't include errno.h.
77654         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77655         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77656         * lib/file-type.c: Rely on file-type.h change.
77657         * lib/getloadavg.c: Include unistd-safer.h.
77658         (getloadavg): Use safer open.
77659         * lib/getusershell.c: Include "stdio-safer.h".
77660         (getusershell): Use safer fopen.
77661         * lib/long-options.c (long_options): Use NULL rather than 0.
77662         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77663         'free'.
77664         * lib/modechange.c: Likewise.
77665         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77666         (MODE_DONE): New constant.
77667         (struct mode_change): Remove 'next' member.
77668         (make_node_op_equals): New function; like the old one of the
77669         same name, except it allocates an array.
77670         (mode_compile, mode_create_from_ref): Use it.
77671         (mode_compile): Allocate result as an array, not a linked list.
77672         Parse octal string ourself, so that we catch mistakes like "+0".
77673         (mode_adjust): Arg is an array, not a linked list.
77674         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77675         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77676         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77677         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77678         Remove.  This is now stat-macros.h's job.
77679         (talloc): Remove.  All callers replaced by xalloc, so that
77680         our invokers don't have to worry about reporting memory failures.
77681         (make_node_op_equals): Remove.
77682         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77683         New constants.
77684         (struct mode_change): Moved here from modechange.h.
77685         (mode_append_entry): Remove.
77686         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77687         apps to have incorrect behavior.  Use simpler algorithm for head
77688         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77689         Detect more invalid usages rather than having somewhat-random behavior.
77690         Don't insert an "a=" action, as that leads to incorrect behavior.
77691         (mode_compile, mode_create_from_ref): Return NULL on error instead
77692         of an enum, since now there's only one way to have an error.  All
77693         callers changed.
77694         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77695         at the correct time.  Simplify calculation of "+u" and its ilk.
77696         Don't mishandle "+X".
77697         (mode_free): Remove "register" and localize decls.
77698         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77699         (struct mode_change): Move to modechange.c; callers don't
77700         need to see this stuff.
77701         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77702         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77703         (mode_change, mode_adjust): Reflect the new signatures noted above.
77704         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77705         that might redefine system include files.
77706         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77707         (my_usleep): Use NULL rather than (void *) 0.
77708         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77709         Use siginterrupt to specify that system calls should be interrupted.
77710         (rpl_nanosleep): Move initialization of suspended closer to call of
77711         my_usleep.
77712         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77713         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77714         (desirable_utmp_entry): New function.
77715         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77716         using x2nrealloc, to simplify logic.
77717         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77718         size calculation.  Do not assume utmp file is a regular file.
77719         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77720         (READ_UTMP_CHECK_PIDS): New constant.
77721         * lib/save-cwd.c: Include unistd-safer.h.
77722         (save_cwd): Use fd_safer.
77723         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77724         [!_LIBC] Include "stat-macros.h" instead.
77725         * lib/unistd-safer.h (fd_safer): New decl.
77726
77727 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77728
77729         * modules/getloadavg (Depends-on): Add unistd-safer.
77730         * modules/getusershell (Depends-on): Add stdio-safer.
77731         * modules/lstat (Depends-on): Remove xalloc.
77732         * modules/mkstemp (Depends-on): Add stat-macros.
77733         * modules/modechange (Depends-on): Remove xstrtol.
77734         Add stat-macros, xalloc.
77735         * modules/save-cwd (Depends-on): Add unistd-safer.
77736         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77737         * modules/unistd-safer (Files): Add lib/fd-safer.c
77738         (Makefile.am): Remove lib_SOURCES.
77739
77740         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77741         Remove fcntl-safer; unistd-safer supersedes it.
77742
77743 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77744
77745         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77746         AC_HEADER_STAT.
77747         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77748         (gl_PREREQ_CHOWN): Remove.
77749         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77750         it.  Don't require AC_HEADER_STAT.
77751         (gl_PREREQ_LSTAT): Remove.
77752         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77753         Don't require AC_HEADER_STAT.
77754         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77755         (gl_PREREQ_RMDIR): Remove.
77756         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77757         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77758         the stat-macros module a prerequisite.
77759         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77760         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77761         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77762         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77763         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77764         variable names.
77765         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77766         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77767         variable prefixes.
77768         * m4/fcntl-safer.m4: Remove.
77769         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77770         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77771         Invoke gl_PREREQ_FD_SAFER.
77772         (gl_PREREQ_FD_SAFER): New macro.
77773         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77774         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77775         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77776         Remove duplicate call to AC_LIBOBJ(readutmp).
77777         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77778
77779         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77780         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77781
77782 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         * MODULES.html.sh (Misc): Add byteswap.
77785
77786 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77787
77788         * modules/getcwd (Depends-on): Add extensions.
77789         * modules/openat (Depends-on): Likewise.
77790
77791 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77792
77793         * modules/byteswap: New file.
77794
77795 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77796
77797         * m4/byteswap.m4: New file.
77798
77799 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77800
77801         * lib/byteswap_.h: New file.
77802
77803 2005-04-25  Karl Berry  <karl@gnu.org>
77804
77805         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77806
77807 2005-04-25  Albert Chin  <china@thewrittenword.com>
77808
77809         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77810         Toolkit C bug.
77811
77812 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77813
77814         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77815         (func_ln_if_changed): Remove forcibly for no error message
77816         in case file does not exist.
77817
77818 2005-04-19  Simon Josefsson  <jas@extundo.com>
77819
77820         * gnulib-tool (Options): Make --symlink mean --symbolic.
77821
77822 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77823
77824         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77825
77826 2005-04-16  Simon Josefsson  <jas@extundo.com>
77827
77828         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77829
77830 2005-04-15  Simon Josefsson  <jas@extundo.com>
77831
77832         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77833
77834 2005-04-15  Simon Josefsson  <jas@extundo.com>
77835
77836         * gnulib-tool: Rename --symlink to --symbolic.
77837
77838 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77839
77840         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77841         symbolic links to files instead of copying/moving.  Add --aux-dir,
77842         specifying directory relative --dir where auxiliary build tools
77843         are placed.
77844
77845 2005-04-14  Bruno Haible  <bruno@clisp.org>
77846
77847         * modules/allocsa (License): Change to LGPL.
77848         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77849
77850 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77851
77852         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77853         that "UTC +1 second" continues to work.  Problem reported
77854         by Dmitry V. Levin.
77855         (relunit_snumber): New rule.
77856         (relunit): Use it.
77857
77858 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77859
77860         * lib/getdate.y (universal_time_zone_table): New constant.
77861         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77862         universal_time_zone_table.
77863         (lookup_zone): Prefer universal_time_zone_table to
77864         local_time_zone_table, so that "GMT" time stamps are allowed in
77865         London during the summer.  Problem reported by Ian Abbott.
77866
77867 2005-04-12  Jim Meyering  <jim@meyering.net>
77868
77869         * lib/human.c (humblock): Set *options even when returning due to
77870         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77871         warning from gcc-4.
77872
77873 2005-04-09  Jim Meyering  <jim@meyering.net>
77874
77875         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77876         -Wuninitialized: initialize tm0.tm_year.
77877
77878 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77879
77880         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77881         count, since there's no maximum.  All uses changed.
77882         Add member dsts_seen.
77883         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77884         not being INT_MAX.
77885         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77886         Use pc_rels_seen to decide whther a date is absolute.
77887
77888         * lib/getdate.y (number): Don't overwrite year.
77889         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77890         check.
77891
77892 2005-04-02  Simon Josefsson  <jas@extundo.com>
77893
77894         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77895         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77896
77897 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77898
77899         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77900         where no absolute path name can be longer than PATH_MAX.
77901
77902 2005-03-27  Jim Meyering  <jim@meyering.net>
77903
77904         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77905
77906 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77907
77908         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77909         "one's complement" -> "ones' complement" in comment, as per Knuth.
77910         "value of type" -> "type or expression" in comment.
77911         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77912
77913 2005-03-26  Jim Meyering  <jim@meyering.net>
77914
77915         Comment nits.
77916         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77917         Correct typos: s/or/of/.
77918
77919 2005-03-26  Jim Meyering  <jim@meyering.net>
77920
77921         * modules/check-include-files: Move to ../ and rename to...
77922         * check-module: ...this.
77923
77924 2005-03-25  Jim Meyering  <jim@meyering.net>
77925
77926         * modules/xvasprintf (Files): Add xalloc.h.
77927
77928 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77929
77930         * modules/gettext (Files): config/config.rpath ->
77931         build-aux/config.rpath
77932         * modules/iconv (Files): Likewise.
77933         Problem reported by Oskar Liljeblad.
77934
77935 2005-03-23  Jim Meyering  <jim@meyering.net>
77936
77937         * modules/check-include-files: New script to check for
77938         missing dependencies, multiple includes, etc.
77939
77940         * modules/c-strtold (Depends-on): Add xalloc.
77941         * modules/c-strtod (Depends-on): Add xalloc.
77942         * modules/hash (Depends-on): Add xalloc.
77943         (Files): Remove lib/xalloc.h.
77944
77945         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77946         * modules/userspec (Files): Add lib/inttostr.h.
77947
77948 2005-03-23  Jim Meyering  <jim@meyering.net>
77949
77950         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77951
77952 2005-03-22  Jim Meyering  <jim@meyering.net>
77953
77954         * modules/stat-macros: New module.
77955         * modules/canonicalize, modules/euidaccess, modules/file-type,
77956         * modules/filemode, modules/lchown, modules/makepath,
77957         * modules/rmdir, modules/stat: Depend on new stat-macros module
77958         rather than listing lib/stat-macros.h manually.
77959         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77960
77961 2005-03-22  Jim Meyering  <jim@meyering.net>
77962
77963         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77964
77965 2005-03-22  Bruno Haible  <bruno@clisp.org>
77966
77967         * config/srclist.txt: Replace target directory 'config' with
77968         'build-aux'.
77969         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77970         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77971         ../build-aux/.
77972
77973 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77974
77975         * modules/chdir-long (Depends-on): Add mempcpy.
77976
77977         * modules/acl, modules/backupfile, modules/c-strtod,
77978         modules/c-strtold, modules/canon-host, modules/canonicalize,
77979         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77980         modules/exclude, modules/exitfail, modules/file-type,
77981         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77982         modules/getdate, modules/getline, modules/getpagesize,
77983         modules/getpass, modules/getugroups, modules/group-member,
77984         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77985         modules/inttostr, modules/long-options, modules/makepath,
77986         modules/md5, modules/memcasecmp, modules/memcoll,
77987         modules/modechange, modules/mountlist, modules/path-concat,
77988         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77989         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77990         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77991         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77992         modules/strftime, modules/strndup, modules/strverscmp,
77993         modules/timespec, modules/unlocked-io, modules/userspec,
77994         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77995         modules/yesno:
77996         Remove lib_SOURCES line from Makefile.am section, as this is now
77997         done automatically by the corresponding Autoconf macro.
77998
77999 2005-03-21  Jim Meyering  <jim@meyering.net>
78000
78001         Changes imported from coreutils.
78002
78003         * lib/cycle-check.c: Don't include xalloc.h.
78004
78005         * lib/path-concat.c: Don't include assert.h.
78006         (path_concat): Remove assertion that would have triggered
78007         for ABASE starting with more than one slash.
78008         Reported by Andreas Schwab.
78009
78010         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78011         properly when ABASE is an absolute file name.
78012         Correct the description of this function.
78013         Include <assert.h>.
78014         Add an assertion and a test driver.
78015         This fixes a bug introduced on 2004-07-02.
78016         Andreas Schwab reported the resulting failure of cp --parents:
78017         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78018
78019 2005-03-21  Jim Meyering  <jim@meyering.net>
78020
78021         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78022         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78023
78024 2005-03-21  Jim Meyering  <jim@meyering.net>
78025         and  Paul Eggert  <eggert@cs.ucla.edu>
78026
78027         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78028         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78029         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78030         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78031         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78032         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78033         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78034         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78035         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78036         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78037         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78038         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78039         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78040         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78041         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78042         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78043         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78044         for these modules.
78045
78046 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78047
78048         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78049         (which shouldn't happen), generate nothing instead of returning 0
78050         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78051
78052 2005-03-16  Bruno Haible  <bruno@clisp.org>
78053
78054         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78055         HAVE_LONGLONG_64BIT.
78056
78057 2005-03-16  Bruno Haible  <bruno@clisp.org>
78058
78059         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78060         HAVE_LONGLONG_64BIT.
78061
78062 2005-03-16  Bruno Haible  <bruno@clisp.org>
78063
78064         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78065         HAVE_LONGLONG_64BIT.
78066
78067 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78068
78069         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78070         reliably distinguish strftime failure from empty output on POSIX
78071         hosts.
78072
78073 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78074
78075         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78076         (iconv_string): Don't guess a size-zero buffer, as that might cause
78077         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78078         result would be 'too large', where 'too large' is (heuristically)
78079         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78080         overflow concerns.  This will prevent some unwanted malloc failures
78081         when the inputs are very large.
78082
78083 2005-03-15  Karl Berry  <karl@gnu.org>
78084
78085         * config/srclist.txt (config.rpath): from gettext.
78086         * config/config.rpath: update.
78087
78088 2005-03-15  Bruno Haible  <bruno@clisp.org>
78089
78090         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78091         to 'negate'.
78092
78093         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78094         variable.
78095
78096         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78097         results.
78098
78099 2005-03-14  Simon Josefsson  <jas@extundo.com>
78100
78101         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78102         <fx@gnu.org>.
78103
78104 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78105
78106         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78107         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78108         intprops.h.
78109         * lib/strtol.c: Likewise.
78110
78111 2005-03-14  Jim Meyering  <jim@meyering.net>
78112
78113         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78114         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78115         to be nonzero so that we (and caller) can detect the difference
78116         between a valid zero-length expansion and an error return, even
78117         when the underlying strftime fails before writing anything into
78118         that location.
78119
78120 2005-03-14  Bruno Haible  <bruno@clisp.org>
78121
78122         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78123         Update from GNU gettext 0.14.3.
78124
78125 2005-03-10  Jim Meyering  <jim@meyering.net>
78126
78127         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78128
78129 2005-03-10  Jim Meyering  <jim@meyering.net>
78130
78131         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78132         so that this module works on systems without fchdir.
78133
78134 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78135
78136         Factor int-properties macros into a single file, except for
78137         glibc-related files.
78138         * lib/intprops.h: New file.
78139         * lib/getloadavg.c: Include it instead of limits.h.
78140         (INT_STRLEN_BOUND): Remove.
78141         * lib/human.c: Include intprops.h.
78142         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78143         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78144         302/1000.
78145         * lib/inttostr.h: Include intprops.h instead of limits.h.
78146         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78147         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78148         for consistency with intprops.h.
78149         (time_t_is_integer, twos_complement_arithmetic): Use them.
78150         * lib/sig2str.h: Include <signal.h>, intprops.h.
78151         (INT_STRLEN_BOUND): Remove.
78152         * lib/strftime.c (TYPE_SIGNED): Remove.
78153         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78154         * lib/strtol.c: Adjust comments to match intprops.h.
78155         * lib/userspec.c: Include intprops.h.
78156         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78157         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78158         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78159         instead of rolling our own expressions.
78160         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78161
78162         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78163         instead of int.
78164         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78165         the right thing even if adding 1900 would overflow.  Similarly
78166         for tm_mon + 1 and tm_yday + 1.
78167         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78168         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78169         (DO_SIGNED_NUMBER): New macro.
78170         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78171
78172 2005-03-07  Bruno Haible  <bruno@clisp.org>
78173
78174         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78175
78176 2005-03-07  Bruno Haible  <bruno@clisp.org>
78177
78178         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78179
78180 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78181
78182         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78183         (func_import): Only replace files via --import when they have actually
78184         changed.
78185
78186 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78187
78188         * m4/mmap-anon.m4: New file.
78189         * m4/pagealign_alloc.m4: New file.
78190
78191 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78192             Bruno Haible  <bruno@clisp.org>
78193
78194         * modules/pagealign_alloc: New file.
78195         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78196
78197 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78198             Bruno Haible  <bruno@clisp.org>
78199
78200         * lib/pagealign_alloc.h: New file.
78201         * lib/pagealign_alloc.c: New file.
78202
78203 2005-03-03  Bruno Haible  <bruno@clisp.org>
78204
78205         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78206         Use an all-permissive copyright notice, recommended by RMS.
78207
78208 2005-03-02  Bruno Haible  <bruno@clisp.org>
78209
78210         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78211         of AIX, the replacement has to be done only after <string.h> is
78212         included, therefore not in config.h. stpncpy.h does the replacement,
78213         and stpncpy.c uses it.
78214
78215 2005-03-02  Bruno Haible  <bruno@clisp.org>
78216
78217         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78218         stpncpy.c uses it.
78219
78220 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78221
78222         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78223         The workaround isn't strictly needed for POSIX conformance, and
78224         it's too much of a pain to configure and maintain.  We'll ask
78225         people to fix their kernels instead.
78226         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78227         (NANOSLEEP_BUG_WORKAROUND): Remove.
78228         (xnanosleep): Remove the workaround.
78229
78230 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78231
78232         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78233         Reported by Derek Price.
78234         (Include): Add "timespec.h".
78235
78236         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78237
78238 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78239
78240         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78241         to detect nanosleep bug.
78242
78243 2005-03-01  Bruno Haible  <bruno@clisp.org>
78244
78245         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78246
78247 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78248
78249         * modules/gethrxtime: New file.
78250         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78251         (Depends-on): Add gethrxtime.
78252         (configure.ac): Add gl_XNANOSLEEP.
78253         (Makefile.am): Remove lib_SOURCES line.
78254
78255 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78256
78257         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78258         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78259
78260 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78261
78262         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78263         * lib/timespec.h (gettime): Return void, since it always
78264         succeeds now.  All uses changed.
78265         * lib/gettime.c (gettime): Likewise.
78266         [HAVE_NANOTIME]: Prefer nanotime.
78267         Assume gettimeofday succeeds, as POSIX requires.
78268         Assime time () succeeds, since other code already does.
78269         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78270         (timespec_subtract): Remove.
78271         (NANOSLEEP_BUG_WORKAROUND): New constant.
78272         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78273         things considerably.  Use it only on GNU/Linux hosts, since the
78274         workaround shouldn't be needed elsewhere.
78275
78276 2005-02-24  Bruno Haible  <bruno@clisp.org>
78277
78278         * modules/gettext (Files): Add m4/glibc2.m4.
78279
78280 2005-02-24  Bruno Haible  <bruno@clisp.org>
78281
78282         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78283         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78284         * m4/progtest.m4:
78285         Update from GNU gettext 0.14.2.
78286         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78287
78288 2005-02-24  Bruno Haible  <bruno@clisp.org>
78289
78290         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78291         * lib/config.charset: Update from GNU gettext 0.14.2.
78292
78293 2005-02-24  Bruno Haible  <bruno@clisp.org>
78294
78295         * lib/gettext.h: Update from GNU gettext 0.14.2.
78296
78297 2005-02-23  Simon Josefsson  <jas@extundo.com>
78298
78299         * m4/iconvme.m4: New file.
78300
78301 2005-02-23  Jim Meyering  <jim@meyering.net>
78302
78303         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78304         change.
78305         Thanks to Bruno Haible for catching it.
78306
78307 2005-02-22  Simon Josefsson  <jas@extundo.com>
78308
78309         * modules/iconvme: New file.
78310
78311         * MODULES.html.sh: Add iconvme.
78312
78313 2005-02-22  Simon Josefsson  <jas@extundo.com>
78314
78315         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78316
78317 2005-02-22  Simon Josefsson  <jas@extundo.com>
78318
78319         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78320
78321 2005-02-22  Jim Meyering  <jim@meyering.net>
78322
78323         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78324         s/ifndef/ifdef/.
78325
78326 2005-02-20  Neil Conway  <neilc@samurai.com>
78327
78328         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78329         returned by OSX/Darwin if the specified buffer is not large
78330         enough for the hostname.
78331
78332 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78333
78334         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78335         pass it to _help, otherwise the latter coredumps trying to
78336         dereference state.root_argp.
78337
78338 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78339
78340         * modules/chdir-long (Depends-on): Add memrchr.
78341         * modules/memrchr (Files): Add lib/memrchr.h.
78342         (Include): "memrchr.h".
78343
78344 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78345
78346         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78347
78348 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78349
78350         * lib/memrchr.h: New file.
78351         * lib/chdir-long.c: Include it.
78352         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78353         Don't bother including stddef.h.
78354
78355 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78356
78357         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78358         inclusion.
78359         Include <sys/types.h>, for dev_t.
78360         (ME_DUMMY, ME_REMOTE): Move from here....
78361         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78362         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78363         Dmitry V. Levin.
78364         Include mountlist.h first, to test the interface.
78365
78366 2005-01-29  Bruno Haible  <bruno@clisp.org>
78367
78368         * lib/progname.c (program_name): Initialize.
78369         Needed when linking statically on MacOS X.
78370
78371 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78372
78373         Sync from coreutils.
78374         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78375         (Depends-on): Add c-strtod.
78376         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78377
78378 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78379
78380         Sync from coreutils.
78381         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78382
78383         Remove files that are specific to coreutils.
78384         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78385
78386 2005-01-28  Bruno Haible  <bruno@clisp.org>
78387
78388         * modules/javacomp: New file.
78389         * MODULES.html.sh (Java): Add javacomp.
78390
78391 2005-01-28  Bruno Haible  <bruno@clisp.org>
78392
78393         * m4/javacomp.m4: New file, from GNU gettext.
78394
78395 2005-01-28  Bruno Haible  <bruno@clisp.org>
78396
78397         * lib/javacomp.sh.in: New file, from GNU gettext.
78398         * lib/javacomp.h: New file, from GNU gettext.
78399         * lib/javacomp.c: New file, from GNU gettext.
78400
78401 2005-01-26  Simon Josefsson  <jas@extundo.com>
78402
78403         * lib/gai_strerror.c: Use GPL in header.
78404
78405 2005-01-26  Bruno Haible  <bruno@clisp.org>
78406
78407         * modules/javaexec: New file.
78408         * MODULES.html.sh (Java): Add javaexec.
78409
78410 2005-01-26  Bruno Haible  <bruno@clisp.org>
78411
78412         * m4/javaexec.m4: New file, from GNU gettext.
78413
78414 2005-01-26  Bruno Haible  <bruno@clisp.org>
78415
78416         * lib/javaexec.sh.in: New file, from GNU gettext.
78417         * lib/javaexec.h: New file, from GNU gettext.
78418         * lib/javaexec.c: New file, from GNU gettext.
78419
78420 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78421
78422         * modules/lchown (Depends-on): Remove lchown.h
78423
78424 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78425
78426         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78427         must be defined if the header file was not found, in order
78428         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78429
78430 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78431
78432         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78433         initializers for struct pentry_state.
78434         (__argp_error): Check return value of __asprintf
78435         (__argp_failure): Translate error message
78436
78437         * lib/argp-parse.c: Removed braces around the expansion of N_()
78438
78439 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78440
78441         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78442         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78443         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78444         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78445         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78446         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78447         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78448         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78449         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78450         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78451         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78452         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78453         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78454         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78455         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78456         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78457         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78458         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78459         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78460         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78461         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78462         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78463         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78464         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78465         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78466         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78467         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78468         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78469         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78470         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78471         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78472         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78473         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78474         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78475         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78476         Use an all-permissive copyright notice, recommended by RMS.
78477
78478 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78479
78480         * modules/chdir-long (Depends-on): Remove mempcpy.
78481
78482 2005-01-21  Jim Meyering  <jim@meyering.net>
78483
78484         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78485         same value as for Solaris 9.
78486
78487         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78488         component length.  This included changing the parameter to be
78489         of type `char *' rather than `char const *'.
78490         * lib/chdir-long.h (chdir_long): Update prototype.
78491
78492         * lib/openat.c (fdopendir, fstatat): New functions.
78493         * lib/openat.h: Include headers required for use of DIR and struct
78494         stat.
78495         [AT_SYMLINK_NOFOLLOW]: Define.
78496         (fdopendir, fstatat): Add prototypes.
78497
78498 2005-01-21  Bruno Haible  <bruno@clisp.org>
78499
78500         * modules/classpath: New file.
78501         * MODULES.html.sh (Java): Add classpath.
78502
78503 2005-01-21  Bruno Haible  <bruno@clisp.org>
78504
78505         * lib/classpath.h: New file, from GNU gettext.
78506         * lib/classpath.c: New file, from GNU gettext.
78507
78508 2005-01-20  Simon Josefsson  <jas@extundo.com>
78509
78510         * modules/version-etc-fsf: New file.
78511
78512 2005-01-20  Simon Josefsson  <jas@extundo.com>
78513
78514         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78515         * lib/version-etc.c: Remove version_etc_copyright.
78516         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78517         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78518
78519 2005-01-20  Simon Josefsson  <jas@extundo.com>
78520
78521         * lib/base64.h (isbase64): Add.
78522
78523         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78524         using a unsigned prototype, don't inline.
78525         (base64_decode): Use it.
78526
78527 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78528
78529         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78530         it.
78531
78532 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78533
78534         * lib/save-cwd.c (save_cwd): Remove code to support the case
78535         where fchdir is missing or flaky.
78536
78537 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78538
78539         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78540
78541 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78542
78543         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78544         AC_LIBSOURCES now does this.
78545         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78546         with new ullong_max module.
78547
78548 2005-01-19  Bruno Haible  <bruno@clisp.org>
78549
78550         * modules/sh-quote: New file.
78551         * MODULES.html.sh (Executing programs): Add sh-quote.
78552
78553 2005-01-19  Bruno Haible  <bruno@clisp.org>
78554
78555         * lib/sh-quote.h: New file, from GNU gettext.
78556         * lib/sh-quote.c: New file, from GNU gettext.
78557
78558 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78559
78560         Merge from coreutils.
78561         * m4/ullong_max.m4: New file.
78562         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78563         (gl_MACROS): Assume localeconv exists.
78564
78565 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78566
78567         Merge changes from coreutils, as described below in several
78568         changelogs dated today.
78569
78570         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78571         (O_DIRECTORY): Remove; not needed here, since "." must be
78572         a directory.  All uses removed.
78573         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78574         universal on Suns, and we also need to test for IRIX.
78575         Revamp code to use 'if' rather than '#if'.
78576         Avoid unnecessary comparison of cwd->desc to 0.
78577
78578         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78579         for known valid error numbers rather than observed invalid ones.
78580
78581 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78582
78583         * modules/ullong_max: New file.
78584
78585         * modules/chdir-long, modules/openat: New files.
78586         * modules/save-cwd (Depends-on): Depend on chdir-long.
78587         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78588
78589 2005-01-18  Jim Meyering  <jim@meyering.net>
78590
78591         Merge from coreutils.
78592         * m4/chdir-long.m4, m4/openat.m4: New files.
78593         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78594         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78595         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78596         is sane and DOES follow symlinks.  Besides, testing 20 different
78597         systems found no broken chown implementations.
78598         Prompted by a change in rsync's copy of this macro.
78599         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78600
78601         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78602
78603         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78604         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78605         NULL-means-set-to-current-time semantics.
78606         Remove temporary file immediately, rather than waiting
78607         for configure's at-exit trap code to do it.
78608
78609 2005-01-18  Jim Meyering  <jim@meyering.net>
78610
78611         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78612
78613         * lib/utimens.c (futimens): Account for the fact that futimes
78614         can also fail with errno == ENOSYS or errno == ENOENT.
78615         Patch from Dmitry V. Levin.
78616
78617         Change the name of the robust chdir function from chdir to chdir_long.
78618         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78619         (restore_cwd): Use chdir_long, not chdir.
78620         * lib/chdir-long.c: Renamed from chdir.c.
78621         * lib/chdir-long.h: Renamed from chdir.h.
78622         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78623         Hurd.
78624
78625 2005-01-18  Bruno Haible  <bruno@clisp.org>
78626
78627         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78628         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78629         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78630         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78631         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78632         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78633         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78634         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78635         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78636         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78637         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78638         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78639         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78640         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78641         Use an all-permissive copyright notice, recommended by RMS.
78642
78643 2005-01-18  Bob Proulx  <bob@proulx.com>
78644
78645         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78646         simplify offsetof() macro construct to avoid compile failure with
78647         native HP-UX 11.0 ANSI C compiler.
78648
78649 2005-01-17  Bruno Haible  <bruno@clisp.org>
78650
78651         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78652         redundant because stpncpy.m4 takes care of it.
78653
78654 2005-01-17  Bruno Haible  <bruno@clisp.org>
78655
78656         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78657
78658 2005-01-17  Bruno Haible  <bruno@clisp.org>
78659
78660         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78661         used.
78662
78663 2005-01-17  Bruno Haible  <bruno@clisp.org>
78664
78665         * lib/fwriteerror.h (fwriteerror): Change specification to include
78666         fclose.
78667         * lib/fwriteerror.c: Include <stdbool.h>.
78668         (fwriteerror): At the end, close the file stream. Record whether
78669         stdout was already closed.
78670
78671 2005-01-17  Bruno Haible  <bruno@clisp.org>
78672
78673         * lib/execute.c (environ): Declare if needed.
78674         * lib/pipe.c (environ): Likewise.
78675         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78676
78677 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78678
78679         * modules/argp: Depend on vsnprintf
78680
78681 2005-01-10  Jim Meyering  <jim@meyering.net>
78682
78683         * modules/closeout (Depends-on): Add atexit.
78684
78685 2005-01-06  Bruno Haible  <bruno@clisp.org>
78686
78687         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78688
78689 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78690
78691         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78692         definitions to be after all include files, to avoid collisions.
78693         Problem reported by Bob Proulx.
78694
78695 2005-01-04  Jim Meyering  <jim@meyering.net>
78696
78697         Changes imported from coreutils.
78698         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78699         as the mkstemp template, use a temporary directory and an
78700         8.3-friendly template to avoid trouble on systems like DJGPP.
78701         Reported by Juan M. Guerrero via Stepan Kasal.
78702         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78703         close. Remove the temporary directory right away, rather than waiting
78704         for configure's at-exit trap code to do it.
78705         Suggestion from Stepan Kasal.
78706
78707 2005-01-01  Simon Josefsson  <jas@extundo.com>
78708
78709         * gnulib-tool: Print #include directives when --import'ing.
78710
78711 2004-12-28  Simon Josefsson  <jas@extundo.com>
78712
78713         * tests/test-base64.c: Include required header files.  Remove
78714         unused variables.
78715
78716 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78717
78718         * modules/error (Depends-on): Remove gettext.
78719
78720 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78721
78722         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78723         not needed.  This removes a dependency on the gettext module.
78724         [defined _LIBC]: Do not include <libintl.h>; not needed.
78725
78726 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78727
78728         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78729         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78730
78731 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78734         HAVE_DECL_STRTOLD.
78735
78736 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78737
78738         * modules/getdate (Depends-on): Remove alloca-opt.
78739
78740 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78741
78742         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78743
78744 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78745
78746         * lib/argp-parse.c: Include <stddef.h>.
78747         (alignof, alignto): New macros.
78748         (parser_init): Don't assume that void * is aligned sufficiently
78749         for struct option.
78750
78751         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78752         need to extend the stack.
78753         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78754         large.
78755
78756 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78757
78758         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78759
78760 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78761
78762         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78763         (2004-10-24) change.  Apparently this was a false alarm.
78764
78765         * modules/getdate: Depend on alloca-opt, not alloca.
78766
78767 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78768
78769         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78770         Remove now-obsolete comment about AIX.
78771         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78772         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78773         (YYMAXDEPTH): New macro.
78774
78775 2004-12-18  Simon Josefsson  <jas@extundo.com>
78776
78777         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78778
78779 2004-12-18  Bruno Haible  <bruno@clisp.org>
78780
78781         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78782
78783 2004-12-18  Bruno Haible  <bruno@clisp.org>
78784
78785         * lib/fatal-signal.c (fatal_signals): Make non-const.
78786         (init_fatal_signals): New function.
78787         (uninstall_handlers, install_handlers): Ignore signals that were set to
78788         SIG_IGN.
78789         (at_fatal_signal): Call init_fatal_signals.
78790         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78791         SIG_IGN.
78792         Reported by Paul Eggert.
78793
78794 2004-12-18  Bruno Haible  <bruno@clisp.org>
78795
78796         * doc/alloca.texi: New file.
78797         * doc/alloca-opt.texi: New file.
78798
78799 2004-12-17  Jim Meyering  <jim@meyering.net>
78800
78801         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78802         Otherwise, install-sh could exit with improper exit status when
78803         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78804
78805 2004-12-16  Simon Josefsson  <jas@extundo.com>
78806
78807         * tests/test-base64.c: Add license.
78808
78809 2004-12-15  Stepan Kasal  <address@hidden>
78810
78811         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78812
78813 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78814
78815         * modules/getcwd (Files): Add m4/d-ino.m4.
78816         Suggested by Mark D. Baushke.
78817
78818 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78819
78820         * lib/getdate.y (textint): New member "negative".
78821         (time_zone_hhmm): New function.
78822         Expect 14 shift-reduce conflicts, not 13.
78823         (o_colon_minutes): New rule.
78824         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78825         (yylex): Set the "negative" member of signed numbers.
78826
78827 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78828
78829         * doc/getdate.texi (Time of day items, Time zone items):
78830         Describe new formats +00:00, UTC+00:00.
78831
78832 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78833
78834         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78835         spurious "-l"s.  Problem reported by Stepan Kasal.
78836
78837 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78838
78839         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78840         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78841
78842 2004-12-04  Simon Josefsson  <jas@extundo.com>
78843
78844         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78845         Vandoorselaere <yoann@prelude-ids.org>.
78846
78847 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78848
78849         Changes imported from coreutils.
78850         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78851         exist.
78852         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78853
78854 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78855
78856         Changes imported from coreutils.
78857         * lib/hard-locale.c: Assume <locale.h> exists.
78858         Include "strdup.h".
78859         (GLIBC_VERSION): New macro.
78860         (hard_locale): Assume setlocale exists.
78861         Rewrite to avoid #ifdef.
78862         Use strdup rather than malloc + strcpy.
78863         * lib/human.c: Assume <locale.h> exists.
78864         (human_readable): Assume localeconv exists.
78865
78866 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78867
78868         * modules/hard-locale (Depends-on): Add strdup.
78869
78870 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78871
78872         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78873         convert T2, not T.  (Imported from libc.)
78874
78875 2004-11-30  Simon Josefsson  <jas@extundo.com>
78876
78877         * modules/restrict (License): Change to LGPL.
78878
78879 2004-11-30  Simon Josefsson  <jas@extundo.com>
78880
78881         * m4/restrict.m4: Add copyright and copying conditions.
78882
78883 2004-11-30  Simon Josefsson  <jas@extundo.com>
78884
78885         * m4/base64.m4: New file.
78886
78887 2004-11-30  Simon Josefsson  <jas@extundo.com>
78888
78889         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78890         base64.
78891
78892         * tests/test-base64.c: New file.
78893
78894         * modules/base64: New file.
78895
78896 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78897
78898         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78899         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78900
78901         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78902
78903 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78904
78905         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78906         (__getcwd.c): Don't restore errno; glibc doesn't.
78907         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78908         first, falling back to our code only if its results look suspicious.
78909         Ensure that the resulting buffer is only as large as necessary.
78910
78911         * lib/readutmp.c: Include readutmp.h first.
78912         Include <errno.h>, since readutmp.h no longer does that.
78913         * lib/readutmp.h: Don't include <errno.h>,
78914         <sys/param.h>, <time.h>; not needed to establish interface.
78915         (errno): Remove decl.
78916         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78917         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78918         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78919
78920 2004-11-28  Simon Josefsson  <jas@extundo.com>
78921
78922         * lib/base64.h, base64.c: New file.
78923
78924 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78925
78926         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78927
78928 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78929
78930         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78931         (Depends-on): Remove pathmax, same.  Add mempcpy.
78932         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78933         (Makefile.am): Append getcwd.h to lib_SOURCES.
78934         (Include): Add getcwd.h.
78935         (Maintainer): Change from Jim Meyering to "all, glibc",
78936         since getdate now uses intended-for-glibc code.
78937         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78938         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78939
78940 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78941
78942         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78943         HP's ANSI C compiler.
78944         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78945         Declaring int functions causes warnings on some modern systems and
78946         shouldn't be needed to compile on ancient ones.
78947         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78948         defined.
78949
78950         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78951         with the following changes.
78952         (__set_errno): Parenthesize properly.
78953         Include <stdbool.h>.
78954         (MIN, MAX, MATCHING_INO): New macros.
78955         (__getcwd): Define with prototype, not K&R form.
78956         Use heuristics to allocate default buffer on stack if possible.
78957         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78958         behavior, and to avoid the PATH_MAX limit when computing
78959         ../../../../...
78960         Use MATCHING_INO to compare inode number to file.
78961         Check for arithmetic overflow in size calculations.
78962         Fix bug in reallocation of dot array that caused getcwd to fail
78963         on directories nested deeper than 75.
78964         Be more careful about saving errno on error.
78965         Do not use realloc; use only free+malloc, as this is a bit
78966         more flexible and avoids a needless copy operation.
78967         Do not inspect st_dev and st_ino for symbolic links; POSIX
78968         doesn't specify the latter.
78969         Check for closedir errors.
78970         Avoid needless casts.
78971         Use "#ifdef weak_alias" around weak_alias, to be like other
78972         glibc code.
78973         The following changes to getcwd.c have effect only when used in
78974         gnulib; they have no effect inside glibc proper.
78975         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78976         as alloca isn't used.
78977         (alloca, __alloca): Likewise.
78978         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78979         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78980         unconditionally, as gnulib assumes C89 or better.
78981         Do not include <sys/param.h>.
78982         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78983         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78984         better.
78985         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78986         Include <dirent.h> in a way that is compatible with modern Autoconf.
78987         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78988         New macros, if not already defined.
78989         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78990         Use "_LIBC", not "defined _LIBC", for consistency.
78991         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78992         a mempcpy module.
78993         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78994         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78995         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78996         credit only to Jim Meyering and adjust the copyright dates.
78997         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78998         <stdlib.h>, <unistd.h>, "pathmax.h".
78999         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79000         (INITIAL_BUFFER_SIZE): Remove.
79001         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79002
79003 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79004
79005         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79006         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79007         Use the _ONCE methods, for efficiency.
79008         Check for fcntl.h.  In test program, include <errno.h>
79009         and <fcntl.h> if available.  Remove old K&R cruft from
79010         test program.  Check for common errors in GNU/Linux,
79011         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79012         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79013         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79014         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79015         name accordingly.
79016         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79017         accommodate new getcwd.c.
79018         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79019         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79020         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79021         that's all we need now.
79022
79023 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79024
79025         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79026         argp-parse.c depends on getopt internals, that means we should
79027         always use our getopt, to be on the safe side.
79028         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79029         order not to spoil the result of an eventual previous invocation
79030         of gl_GETOPT_SUBSTITUTE.
79031
79032 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79033
79034         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79035         redefinition warnings. To avoid them, include the defines
79036         in `#if !defined __need_getopt ... #endif'. The only place
79037         where __getopt_argv_const is used is in definitions
79038         of getopt_long and getopt_long_only below, which are as well
79039         protected by `#ifndef __need_getopt'.
79040         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79041         __need_getopt after including <stdio.h> and <unistd.h> These
79042         headers might have defined it.
79043
79044 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79045
79046         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79047
79048 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79049
79050         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79051         (futimens): New function, which uses futimes if available.
79052         (futimens, utimens): Support timespec==NULL, with same semantics
79053         as utime and utimens.
79054         * lib/utimens.h (futimens): New decl.
79055
79056 2004-11-23  Jim Meyering  <jim@meyering.net>
79057
79058         * lib/getopt_.h: Remove trailing blanks.
79059
79060 2004-11-23  Jim Meyering  <jim@meyering.net>
79061
79062         * lib/__fpending.c: Add comment.
79063
79064 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79065
79066         * modules/canonicalize (Depends-on): Add xreadlink.
79067         Problem reported by James Youngman.
79068
79069 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79070
79071         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79072         New macros.
79073         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79074         optopt): Use them instead of invoking ## directly; otherwise, the
79075         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79076
79077 2004-11-19  Bruno Haible  <bruno@clisp.org>
79078
79079         * lib/strtok_r.c: Move comments from here...
79080         * lib/strtok_r.h: ... to here.
79081
79082 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79083
79084         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79085         implementations that mishandle size_t overflow.
79086
79087 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79088
79089         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79090         might fail.  Problem reported by Yoann Vandoorselaere.
79091         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79092         implementations that mishandle size_t overflow.
79093
79094 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * modules/canon-host (Depends-on): Add strdup.
79097
79098 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79099
79100         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79101
79102 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79103
79104         * lib/canon-host.c: Include "strdup.h".
79105         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79106         Use strdup instead of malloc/strcpy to duplicate strings.
79107
79108         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79109         (human_space_before_unit): New constant.
79110         * lib/human.c (human_readable): Support it.
79111
79112         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79113         (xgetcwd): Set errno correctly when failing.
79114         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79115         the failure is actually due to a PATH_MAX problem.
79116
79117         Further getopt changes to make it more likely that glibc will
79118         buy the changes back.
79119         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79120         (getopt): Use it, so to preserve glibc semantic
79121         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79122         when compiling for libc.
79123         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79124         (getopt_long, getopt_long_only): Use it.
79125
79126         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79127         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79128         (getopt): Argv is now char * const *, as per standard.
79129         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79130         not char *__getopt_argv_const *.
79131         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79132         _getopt_long_only_r): Likewise.
79133         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79134         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79135         _getopt_long_r, _getopt_long_only_r): Likewise.
79136         * lib/getopt_.h (__getopt_argv_const): Remove.
79137         (getopt): Argv is now char * const *, as per standard.
79138
79139         * lib/getdate.y (tORDINAL): New token.
79140         (day, relunit): Allow it for relative times.
79141         (relative_time_table): Use tORDINAL for ordinals.
79142
79143 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79144
79145         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79146         Document that "second" isn't allowed as an ordinal number.
79147
79148 2004-11-16  Jim Meyering  <jim@meyering.net>
79149
79150         * modules/closeout (Depends-on): Add fpending.
79151
79152 2004-11-15  Jim Meyering  <jim@meyering.net>
79153
79154         * lib/closeout.c: Include "__fpending.h" once again.
79155         Include <stdbool.h>.
79156         (close_stdout): Don't fail just because stdout was closed initially,
79157         since some programs don't write to stdout in the normal course of
79158         operation (other than --version and --help), and we don't want this
79159         function to make e.g. `touch file >&-' fail.
79160         But do fail if it was closed and someone has tried to write to it.
79161         E.g., `printf foo >&-' must fail.
79162
79163 2004-11-13  Jim Meyering  <jim@meyering.net>
79164
79165         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79166
79167 2004-11-12  Simon Josefsson  <jas@extundo.com>
79168
79169         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79170         small doc fix is still pending.
79171
79172 2004-11-11  Simon Josefsson  <jas@extundo.com>
79173
79174         * modules/strtok_r: New file.
79175
79176         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79177         strtok_r.
79178
79179 2004-11-11  Simon Josefsson  <jas@extundo.com>
79180
79181         * m4/strtok_r.m4: New file.
79182
79183         * m4/getopt.m4: Replace opterr.
79184
79185 2004-11-11  Simon Josefsson  <jas@extundo.com>
79186
79187         * lib/strtok_r.h, strtok_r.c: New file.
79188
79189 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79190
79191         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79192         of replacing opterr, getopt, etc.  This should handle the
79193         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79194
79195 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79196
79197         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79198         we can stop lying to compilers about the constness of argv when we
79199         are compiled outside glibc.
79200         (getopt, getopt_long, getopt_long_only): Use it.
79201         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79202         _getopt_internal, getopt): Likewise.
79203         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79204         _getopt_long_only_r): Likewise.
79205         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79206         _getopt_long_r, _getopt_long_only_r): Likewise.
79207
79208         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79209         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79210         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79211         the other external symbols.
79212         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79213         declaration, since the above renaming now works around collisions.
79214
79215 2004-11-11  Jim Meyering  <jim@meyering.net>
79216
79217         * lib/linebreak.c: Remove trailing blanks.
79218         * lib/alloca_.h: Likewise.
79219         * lib/acosl.c: Likewise.
79220         * lib/euidaccess.c: Likewise.
79221         * lib/allocsa.h: Likewise.
79222
79223 2004-11-10  Simon Josefsson  <jas@extundo.com>
79224
79225         * m4/getaddrinfo.m4: New file.
79226
79227 2004-11-10  Simon Josefsson  <jas@extundo.com>
79228
79229         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79230
79231 2004-11-10  Simon Josefsson  <jas@extundo.com>
79232
79233         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79234         getaddrinfo.
79235
79236         * modules/getaddrinfo: New file.
79237
79238 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79239
79240         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79241
79242 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79243
79244         * lib/mktime.c (SHR): New macro, which is a portable
79245         substitute for >> that should work even on Crays.
79246         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79247         Problem reported by Mark D. Baushke in
79248         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79249         * lib/getdate.y (SHR): Likewise.
79250         (tm_diff): Use it.
79251         * lib/strftime.c (SHR): Likewise.
79252         (tm_diff): Use it.
79253         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79254         quote_these_too, so that right shifts are well defined.  All uses
79255         changed.
79256
79257 2004-11-10  Jim Meyering  <jim@meyering.net>
79258
79259         Ensure that no close failure goes unreported.
79260         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79261         return early when it seems there's nothing to flush.
79262         Don't include __fpending.h.
79263
79264 2004-11-10  Jim Meyering  <jim@meyering.net>
79265
79266         * modules/closeout (Depends-on): Remove fpending.
79267
79268 2004-11-10  Jim Meyering  <jim@meyering.net>
79269
79270         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79271
79272 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79273
79274         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79275         gl_FUNC_STRFTIME.
79276         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79277         and AC_REQUIRE when possible, to avoid duplicate checks.
79278         Check for <wchar.h>.
79279
79280 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79281
79282         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79283
79284 2004-11-09  Bruno Haible  <bruno@clisp.org>
79285
79286         * m4/sockpfaf.m4: New file.
79287
79288 2004-11-05  Bruno Haible  <bruno@clisp.org>
79289
79290         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79291         Reported by Mark D. Baushke <mdb@cvshome.org>.
79292
79293 2004-11-04  Bruno Haible  <bruno@clisp.org>
79294
79295         2004-09-11  Bruno Haible  <bruno@clisp.org>
79296                 * allocsa.valgrind: New file.
79297         2004-02-06  Bruno Haible  <bruno@clisp.org>
79298                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79299                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79300                 Reported by Christopher Seip <chris.seip@hp.com>.
79301
79302 2004-11-04  Bruno Haible  <bruno@clisp.org>
79303
79304         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79305         (Makefile.am): Distribute it.
79306
79307 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79308
79309         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79310         with errno == ERANGE if the buffer is too small.
79311         Problem reported by Mark D. Baushke.
79312
79313 2004-11-03  Albert Chin  <china@thewrittenword.com>
79314             Paul Eggert  <eggert@cs.ucla.edu>
79315
79316         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79317         equivalent, substitute $ac_type for equivalent type rather than
79318         blindly using uint32_t *always* which won't work if uint32_t is not
79319         available.  Define _UINT32_T to work around typedef of uint32_t if
79320         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79321         2.5.1.
79322
79323 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79324
79325         * m4/jm-macros.m4: Sync from coreutils.
79326         (gl_MACROS): Check for mbrlen, for pathchk.
79327         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79328
79329 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79330
79331         * lib/xreadlink.c (MAXSIZE): New macro.
79332         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79333         size does not exceed MAXSIZE.  Avoid cast.
79334         As suggested by Mark D. Baushke in
79335         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79336         if readlink fails with buffer size just under MAXSIZE, try again
79337         with MAXSIZE.
79338
79339 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79340
79341         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79342
79343 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79344         and  Paul Eggert  <eggert@cs.ucla.edu>
79345
79346         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79347         (get_date): Overparenthesize to avoid GCC warning.
79348
79349 2004-11-02  Bruno Haible  <bruno@clisp.org>
79350
79351         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79352         returns void.
79353
79354 2004-11-02  Bruno Haible  <bruno@clisp.org>
79355
79356         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79357         function returns void.
79358
79359 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79360
79361         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79362         fflush_unlocked, flockfile, funlockfile, funlockfile,
79363         fputs_unlocked, putc_unlocked.
79364
79365 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79366
79367         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79368         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79369         already declared.
79370
79371 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79372
79373         * modules/getdate (Files): Add doc/getdate.texi.
79374         (Depends-on): Add setenv, xalloc.
79375
79376 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         * lib/getdate.y: Add support for TZ="foo" within a date string.
79379         Fix some bugs near time_t boundaries.  Reject dates with
79380         out-of-range components, e.g., "Sept 31".
79381         Include <stdlib.h>, "setenv.h", "xalloc.h".
79382         (ISDIGIT_LOCALE): Remove; unused.
79383         Note that the TZ and time functions used here are not reentrant.
79384         (mktime_ok, get_tz): New functions.
79385         (TZBUFSIZE): New constant.
79386         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79387         This requires that we sometimes generate our own TZ="XXX..." setting.
79388
79389 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79390
79391         * doc/getdate.texi: New file, from coreutils with modifications for
79392         the new TZ parsing.
79393
79394 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79395
79396         * lib/mktime.c (not_equal_tm): Remove redundant check.
79397
79398 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79399
79400         * modules/regex (lib_SOURCES): Add regex.c.
79401         Reported by James Youngman in
79402         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79403
79404 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79405
79406         * lib/getdate.y: Use Bison 1.875 features, and some minor
79407         code cleanups.  This change does not affect semantics.
79408         Don't include <stdlib.h>; no longer needed.
79409         Don't include unlocked-io.h; only the "#if TEST" code uses
79410         stdio, and performance isn't crucial there.
79411         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79412         Bison 1.875 features as described below.
79413         All uses of "PC." replaced by "pc->".
79414         (YYSTYPE): Add a forward declaration.
79415         (yylex, yyerror): Use full prototypes in forward decls.
79416         Use "%pure-parser" rather than obsolescent "%pure_parser".
79417         Use %parse-param and %lex-param instead of obsolescent
79418         YYPARSE_PARAM and YYLEX_PARAM.
79419         (meridian_table, month_and_day_table, time_units_table,
79420         relative_time_table, time_zone_table, military_table,
79421         lookup_zone, lookup_word, get_date):
79422         Use NULL instead of 0 where appropriate.
79423         (to_hour): Avoid abort (), to avoid a dependency on
79424         stdlib.h.
79425         (yyerror, yylex): Now accepts parser_control * arg.
79426         (main) [TEST]: Use '\0' rather than 0 for char.
79427
79428 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79429
79430         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79431
79432 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79433
79434         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79435         It's now the caller's responsibility to handle the case where
79436         !HAVE_GETPAGESIZE && !defined getpagesize.
79437
79438         * lib/mktime.c (leapyear): Arg is long int, not int.
79439
79440 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79441
79442         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79443
79444 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79445
79446         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79447         missing.  Problem reported by James Youngman.
79448
79449 2004-10-16  Simon Josefsson  <jas@extundo.com>
79450
79451         * gnulib-tool: Fix comments.  Fix parse problem.
79452         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79453
79454 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79455
79456         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79457         implementation of getopt_long.  Problem reported by Alexander Taler in:
79458         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79459
79460 2004-10-15  Bruno Haible  <bruno@clisp.org>
79461
79462         * gnulib-tool: Untabify. Initialize supplied_libname.
79463         (func_usage): More homogenous output.
79464         (func_modules_transitive_closure, func_modules_to_filelist,
79465         func_emit_lib_Makefile_am): New functions.
79466         (func_import): New function, extracted from big case statement. Use
79467         func_get_license, func_modules_transitive_closure,
79468         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79469         opt_lgpl. Don't use test -a, as it's not portable.
79470         (func_create_testdir): Use func_modules_transitive_closure,
79471         func_modules_to_filelist, func_emit_lib_Makefile_am.
79472
79473 2004-10-15  Bruno Haible  <bruno@clisp.org>
79474
79475         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79476
79477 2004-10-15  Bruno Haible  <bruno@clisp.org>
79478
79479         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79480         the portions belonging to each module.
79481         Suggested by Derek Robert Price <derek@ximbiot.com>.
79482
79483 2004-10-12  Simon Josefsson  <jas@extundo.com>
79484
79485         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79486         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79487         to real functions.
79488
79489 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79490
79491         * modules/vsnprintf: New file.
79492
79493 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79494
79495         * m4/vsnprintf.m4: New file.
79496
79497 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79498
79499         * lib/vsnprintf.h: New file.
79500         * lib/vsnprintf.c: New file.
79501
79502 2004-10-11  Bruno Haible  <bruno@clisp.org>
79503
79504         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79505         vsnprintf.
79506
79507 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79508
79509         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79510
79511 2004-10-07  Bruno Haible  <bruno@clisp.org>
79512
79513         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79514         fits into the provided buffer.
79515
79516 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79517
79518         * lib/diacrit.c, diacrit.h: Add GPL notice.
79519
79520         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79521         notice.
79522         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79523         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79524         This avoids a potential constant-folding bug.
79525
79526 2004-10-05  Bruno Haible  <bruno@clisp.org>
79527
79528         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79529         for the declaration of strsep.
79530
79531 2004-10-05  Bruno Haible  <bruno@clisp.org>
79532
79533         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79534
79535 2004-10-04  Simon Josefsson  <jas@extundo.com>
79536
79537         * modules/memmem: New file.
79538         * tests/test-memmem.c: New file.
79539         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79540
79541 2004-10-04  Simon Josefsson  <jas@extundo.com>
79542
79543         * m4/memmem.m4: New file.
79544
79545 2004-10-04  Simon Josefsson  <jas@extundo.com>
79546
79547         * lib/memmem.h: New file.
79548         * lib/memmem.c: New file, taken from glibc.
79549
79550 2004-10-04  Simon Josefsson  <jas@extundo.com>
79551
79552         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79553         '#ifdef USE_UNLOCKED_IO'.
79554
79555 2004-10-04  Simon Josefsson  <jas@extundo.com>
79556
79557         * config/srclist.txt: Add memmem from glibc.
79558
79559 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79560
79561         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79562
79563         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79564         modules/exclude, modules/getdate, modules/getline,
79565         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79566         modules/getusershell, modules/linebuffer, modules/md5,
79567         modules/mountlist, modules/posixtm, modules/readtokens,
79568         modules/readutmp, modules/regex, modules/sha1,
79569         modules/version-etc, modules/yesno:
79570         Remove dependency on unlocked-io.
79571
79572 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79573
79574         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79575
79576         * m4/unlocked-io.m4: Add copyright notice.
79577         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79578
79579 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79580
79581         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79582         * lib/xmalloc.c (xmemdup): Likewise.
79583         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79584         XFREE): Remove these long-obsolescent macros.
79585         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79586         * lib/xstrdup.c: Remove.
79587
79588         * lib/regex.c (re_comp): Cast gettext return value to char *,
79589         Problem reported by Martin Neitzel via Mark D. Baushke.
79590
79591 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79594         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79595         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79596         regex.c, sha1.c, version-etc.c, yesno.c:
79597         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79598         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79599         the includer's responsibility.
79600
79601         Sync from coreutils.
79602
79603         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79604         points to the start of a string, as the C Standard says the
79605         resulting behavior is undefined.
79606
79607         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79608         simple -> simple_backups, numbered_existing ->
79609         numbered_existing_backups, numbered -> numbered_backups
79610         to avoid shadowing problems.  All uses changed.
79611         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79612         * lib/backupfile.c (check_extension, numbered_backup):
79613         Rename locals to avoid shadowing 'basename'.
79614         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79615         once.
79616
79617         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79618         * lib/.cvsignore: Add getopt.h.
79619
79620 2004-10-04  Bruno Haible  <bruno@clisp.org>
79621
79622         * modules/README: New file.
79623         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79624         not a module.
79625
79626 2004-10-02  Jim Meyering  <jim@meyering.net>
79627
79628         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79629
79630 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79631
79632         * modules/strsep: New file.
79633
79634 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79635
79636         * m4/strsep.m4: New file.
79637
79638 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79639
79640         * lib/strsep.h: New file.
79641         * lib/strsep.c: New file.
79642
79643 2004-10-01  Simon Josefsson  <jas@extundo.com>
79644
79645         * lib/snprintf.c (snprintf): Handle size==0.
79646
79647 2004-10-01  Simon Josefsson  <jas@extundo.com>
79648             Bruno Haible  <bruno@clisp.org>
79649
79650         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79651         (snprintf): Declare 'args'.
79652
79653 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79654
79655         * lib/snprintf.c: Remove comments as to why each header is needed.
79656
79657 2004-10-01  Bruno Haible  <bruno@clisp.org>
79658
79659         * MODULES.html.sh: Add strsep.
79660
79661 2004-09-30  Simon Josefsson  <jas@extundo.com>
79662
79663         * modules/snprintf: New file.
79664
79665 2004-09-30  Simon Josefsson  <jas@extundo.com>
79666
79667         * m4/snprintf.m4: New file.
79668
79669 2004-09-30  Simon Josefsson  <jas@extundo.com>
79670
79671         * lib/snprintf.h, lib/snprintf.c: New files.
79672
79673 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79674
79675         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79676         (hol_entry_help): Never translate an empty string.
79677         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79678         * lib/argp.h (OPTION_NO_TRANS): New option.
79679
79680 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79681
79682         * modules/argp (Maintainer): Replace Simon Josefsson
79683         by Sergey Poznyakoff.
79684
79685 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79686
79687         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79688         changes merged back into glibc.
79689
79690 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79691
79692         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79693
79694 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79695
79696         * lib/xvasprintf.c: Include xalloc.h.
79697         (xvasprintf): Use xalloc_die, not xmalloc_die.
79698
79699 2004-09-29  Bruno Haible  <bruno@clisp.org>
79700
79701         * modules/alloca-opt: New file, derived from modules/alloca.
79702         * modules/allocsa: Depend on alloca-opt instead of alloca.
79703         * modules/setenv: Likewise.
79704         * modules/vasnprintf: Likewise.
79705         * MODULES.html.sh: Add alloca-opt.
79706
79707 2004-09-28  Simon Josefsson  <jas@extundo.com>
79708
79709         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79710         LGPL, and to replace license template from GPL to LGPL.
79711
79712 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79713
79714         * modules/dummy: Change license to LGPL.
79715
79716 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79717
79718         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79719
79720 2004-09-24  Simon Josefsson  <jas@extundo.com>
79721
79722         * modules/minmax (License): Change from GPL to LGPL.
79723
79724 2004-09-23  Simon Josefsson  <jas@extundo.com>
79725
79726         * gnulib-tool (--import): Typo.
79727
79728 2004-09-23  Simon Josefsson  <jas@extundo.com>
79729
79730         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79731
79732 2004-09-22  Bruno Haible  <bruno@clisp.org>
79733
79734         * modules/*: Add 'License' field.
79735         * gnulib-tool: Accept --extract-license option.
79736         (func_get_license): New function.
79737
79738 2004-09-21  Bruno Haible  <bruno@clisp.org>
79739
79740         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79741         Reported by Simon Josefsson.
79742
79743 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79744
79745         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79746         gl_AC_TYPE_LONG_LONG.
79747
79748 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79749
79750         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79751
79752 2004-09-18  Simon Josefsson  <jas@extundo.com>
79753         and  Paul Eggert  <eggert@cs.ucla.edu>
79754
79755         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79756         calls with autoreconf.  Define GL_LIB.
79757
79758 2004-09-14  Karl Berry  <karl@gnu.org>
79759
79760         * config/srclist.txt: unsync setenv.c, sigh.
79761
79762 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79763
79764         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79765         Problem reported by Bruno Haible in:
79766         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79767
79768 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79769
79770         * config/srclist.txt: Comment out argp-pvh.c.
79771
79772 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79773
79774         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79775         in case some system header has #define'd it.  Problem reported by
79776         Soeren D. Schulze in
79777         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79778
79779 2004-09-09  Karl Berry  <karl@gnu.org>
79780
79781         * regex.[ch]: delete from the root.  These were supposed to be
79782                 synced with emacs cvs, but this has not happened for about
79783                 a year, and anyway nothing else uses emacs regex.[ch].
79784                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79785                 lib/regex[.ch] is untouched.
79786
79787 2004-09-09  Bruno Haible  <bruno@clisp.org>
79788
79789         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79790
79791 2004-09-09  Bruno Haible  <bruno@clisp.org>
79792
79793         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79794         modifications.
79795         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79796
79797 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79798
79799         * modules/xvasprintf: New file.
79800         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79801
79802 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79803
79804         * lib/xvasprintf.h: New file.
79805         * lib/xvasprintf.c: New file.
79806         * lib/xasprintf.c: New file.
79807
79808 2004-09-08  Bruno Haible  <bruno@clisp.org>
79809
79810         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79811
79812 2004-09-08  Bruno Haible  <bruno@clisp.org>
79813
79814         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79815         length is > INT_MAX.
79816         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79817         more.
79818
79819 2004-09-08  Bruno Haible  <bruno@clisp.org>
79820
79821         * lib/stdint_.h: New file, taken from GNU clisp.
79822
79823 2004-09-08  Bruno Haible  <bruno@clisp.org>
79824             Oskar Liljeblad  <oskar@osk.mine.nu>
79825
79826         * modules/stdint: New file.
79827         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79828
79829 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79830
79831         Import from coreutils.
79832         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79833         strings on unbounded length.  alloca's performance benefits aren't
79834         that important here.
79835         (V_STRDUP): Remove.
79836         (parse_with_separator): New function, with most of the internals
79837         of the old parse_user_spec.  Allow user to omit both user and group,
79838         for compatibility with FreeBSD.
79839         Clone only the user name, not the entire spec.
79840         Do not set *uid, *gid unless entirely successful.
79841         Avoid memory leak in some failing cases.
79842         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79843         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79844         (parse_user_spec): Rewrite to use parse_with_separator.
79845
79846 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79847
79848         * modules/userspec: Don't depend on alloca.
79849
79850 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79851
79852         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79853
79854 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79855
79856         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79857         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79858         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79859
79860 2004-08-16  Simon Josefsson  <jas@extundo.com>
79861
79862         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79863         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79864         Add --dry-run for --import.
79865         Let user provided command line parameters override configure.ac
79866         settings.
79867
79868 2004-08-12  Simon Josefsson  <jas@extundo.com>
79869
79870         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79871         as discussed with Paul Eggert in threads rooted at
79872         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79873         and
79874         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79875         Before, the test was empty, and relied on ELIDE_CODE in source
79876         code.)
79877         (gl_PREREQ_GETOPT): New macro.
79878         (gl_GETOPT): Use them.
79879
79880 2004-08-12  Simon Josefsson  <jas@extundo.com>
79881
79882         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79883         * lib/getopt_.h: Renamed from getopt.h.
79884
79885 2004-08-12  Simon Josefsson  <jas@extundo.com>
79886
79887         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79888         Change default library name from libfoo to libgnu.
79889         Now, if you have a configure.ac that says:
79890                 gl_SOURCE_BASE(gl)
79891                 gl_M4_BASE(gl/m4)
79892                 gl_MODULES(error getopt etcetera)
79893                 gl_INIT
79894         you can import all you need by running:
79895                 ../gnulib/gnulib-tool --import
79896
79897         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79898         (Makefile.am): Rewrite, use logic from argz.
79899         (Include): Use <getopt.h> instead of "getopt.h".
79900
79901 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79902
79903         * modules/argp (Files): Add m4/unlocked-io.m4.
79904         (Depends-on): Add extensions.
79905
79906 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79907
79908         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79909         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79910         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79911         Check for program_invocation_name, program_invocation_short_name,
79912         flockfile, funlockfile, features.h, _getopt_long_only_r.
79913
79914 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79915
79916         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79917         its complicated substitute.
79918         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79919         and program_invocation_name.
79920         (__argp_basename) [!_LIBC]: Remove; the only use was
79921         replaced by its body.
79922         (__argp_short_program_name): Change condition from
79923         !defined __argp_short_program_name to
79924         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79925         to match argp-namefrob.h.
79926         (__argp_failure): Don't assume strerror_r returns char *.
79927         * lib/argp-parse.c (N_): Define unconditionally.
79928         (argp_default_options): Fill out initializers with 0 to avoid
79929         gcc warnings.
79930
79931 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79932
79933         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79934         getopt1.c.
79935
79936 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79937
79938         Merge from coreutils.
79939
79940         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79941
79942         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79943         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79944
79945 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79946
79947         Merge from coreutils.
79948
79949         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79950         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79951         for Reliant Unix 5.43.
79952
79953         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79954         (union fooround): Use uintmax_t, not long int.
79955         The rest is a merge from libc:
79956         [defined _LIBC]: Include <shlib-compat.h>.
79957         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79958
79959         * lib/settime.c (settime): Recode to avoid warning with
79960         Sun Forte C 6U2.
79961
79962         * lib/strverscmp.c: Convert to UTF-8.
79963
79964 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79965
79966         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79967         m4/uintmax_t.m4.
79968
79969 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79970
79971         * modules/xalloc-die: New file.
79972         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79973
79974         * modules/md5 (Files): Add m4/uint32_t.m4.
79975         * modules/sha1: Renamed from modules/sha.
79976         (Files):
79977         Rename lib/sha.h to lib/sha1.h.
79978         Rename lib/sha.c to lib/sha1.c.
79979         Rename m4/sha.m4 to m4/sha1.m4.
79980         (lib_SOURCES): Likewise.
79981         (configure.ac): Rename gl_SHA to gl_SHA1.
79982         (Include): sha.h -> sha1.h.
79983
79984 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79985
79986         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79987         * m4/sha1.m4: Renamed from sha.m4.
79988         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79989
79990 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79991
79992         * lib/obstack.h (obstack_empty_p):
79993         Don't assume that chunk->contents is suitably aligned.
79994         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79995         Likewise. Problem reported by Benno in
79996         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79997
79998         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79999         readable.  This could be improved further but it'd take some work.
80000
80001 2004-08-08  Simon Josefsson  <jas@extundo.com>
80002
80003         * modules/xgethostname (Depends-on): Remove exit and error (not
80004         used).
80005
80006         * modules/getpass-gnu: Add getpass.h.
80007         (Depends-on): Add stdbool.
80008         * modules/getpass: Add getpass.h.
80009
80010 2004-08-08  Simon Josefsson  <jas@extundo.com>
80011
80012         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80013         Check getpass declaration.
80014
80015 2004-08-08  Simon Josefsson  <jas@extundo.com>
80016
80017         * lib/xgethostname.c: Don't include error.h (not used).
80018
80019         * lib/getpass.h: Add.
80020         * lib/getpass.c: Include getpass.h first.
80021
80022 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80023
80024         * lib/xalloc-die.c: New file.
80025         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80026         All uses removed.
80027         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80028         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80029         xalloc-die.c.
80030         (_, N_, xalloc_die): Move to xalloc-die.c.
80031         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80032         so that we needn't mess with xalloc_msg_memory_exhausted.
80033
80034         * lib/sha1.h: Renamed from sha.h.
80035         (SHA1_H): Renamed from _SHA_H.
80036         (sha1_ctx): Renamed from sha_ctx.
80037         (sha1_init_ctx): Renamed from sha_init_ctx.
80038         (sha1_process_block): Renamed from sha_process_block.
80039         (sha1_process_bytes): Renamed from sha_process_bytes.
80040         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80041         (sha1_read_ctx): Renamed from sha_read_ctx.
80042         (sha1_stream): Renamed from sha_stream.
80043         (sha1_buffer): Renamed from sha_buffer.
80044         * lib/sha1.c: Likewise; renamed from sha.c.
80045         Do not include <sys/types.h>.
80046         Include <stddef.h> rather than <stdlib.h>.
80047
80048 2004-08-08  Bruno Haible  <bruno@clisp.org>
80049
80050         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80051         FILESYSTEM_PREFIX_LEN.
80052         * lib/progreloc.c: Likewise.
80053         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80054
80055 2004-08-06  Simon Josefsson  <jas@extundo.com>
80056
80057         * modules/progname (Depends-on): Don't depend on stdbool.
80058
80059 2004-08-06  Simon Josefsson  <jas@extundo.com>
80060
80061         * modules/getsubopt: New file.
80062         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80063         getsubopt.
80064
80065 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80066
80067         More merge from coreutils.
80068
80069         * m4/utimens.m4, m4/utimecmp.m4: New files.
80070         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80071         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80072         prereq.m4, sha.m4: Import changes from coreutils.
80073
80074 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80075
80076         More merge from coreutils.
80077         * modules/raise, modules/readtokens0, modules/utimens:
80078         * modules/utimecmp, module/xnanosleep: New files.
80079         * modules/strftime: Add lib/strftime.h.
80080         Change include from <time.h> to "strftime.h".
80081         * modules/yesno: Add lib/yesno.h.
80082         * modules/backupfile: Remove lib/addext.c.
80083         * modules/euidaccess: Add stat-macros.h.
80084         * modules/canonicalize, modules/euidaccess,
80085         modules/filemode, modules/lchown, modules/makepath,
80086         modules/rmdir, modules/stat: Likewise.
80087
80088 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80089
80090         Merge from tar.
80091         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80092         SIZE_MAX is a valid preprocessor constant.
80093         (__argp_basename): Change from "#ifndef _LIBC"
80094         to "#ifndef __argp_short_program_name", so that
80095         we don't compile these functions for tar.
80096
80097         More merges from coreutils.
80098         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80099         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80100         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80101         * lib/addext.c: Remove; no longer needed.
80102         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80103         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80104         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80105         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80106         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80107         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80108         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80109         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80110         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80111         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80112         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80113         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80114         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80115         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80116         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80117         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80118         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80119         Import changes from coreutils.
80120
80121 2004-08-05  Simon Josefsson  <jas@extundo.com>
80122
80123         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80124
80125 2004-08-05  Simon Josefsson  <jas@extundo.com>
80126
80127         * m4/getsubopt.m4: New file.
80128
80129 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80130
80131         Merge from coreutils.
80132
80133         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80134         * m4/getcwd-path-max.m4: New files.
80135
80136         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80137         FILESYSTEM_PREFIX_LEN ->
80138         FILE_SYSTEM_PREFIX_LEN.
80139         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80140         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80141         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80142         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80143
80144         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80145         prerequisite modules now handle the DOS stuff.
80146         Don't check for unistd.h.
80147
80148 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80149
80150         Merge from coreutils.
80151
80152         * lib/.gdb-history: Remove; this doesn't belong here.
80153
80154         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80155         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80156         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80157         * lib/getcwd.c: New files.
80158
80159         * lib/dirname.h: Include <stdbool.h>.
80160         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80161         for consistency with POSIX terminology.  All uses changed.
80162         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80163         (strip_trailing_slashes): Use bool for booleans.
80164         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80165
80166         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80167         sometimes returns a positive errno value even when it succeeds.
80168         (print_errno_message) [!LIBC]: Fall back on strerror if
80169         __strerror_r fails.
80170
80171         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80172         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80173         (longest_relative_suffix): New function.
80174         (path_concat): Use it.  Assume first argument is not NULL.
80175         Port to DOS.  Omit redundant separators.
80176         Report an error instead of returning NULL.
80177         Use mempcpy instead of memcpy.
80178         (xpath_concat): Remove: not declared or used.
80179
80180         * lib/same.h: Include <stdbool.h>
80181         (same_name): Return bool, not int.
80182         * lib/same.c (same_name): Likewise.
80183         (errno): Don't declare; we assume C89 or better now.
80184
80185         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80186         if not already defined.
80187
80188         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80189         * lib/dup-safer.c (errno): Likewise.
80190
80191 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80192
80193         Merge from coreutils.
80194         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80195         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80196         * modules/path-concat: Don't depend on strdup.
80197
80198 2004-08-03  Simon Josefsson  <jas@extundo.com>
80199
80200         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80201         * lib/progname.h: Don't include stdbool.h.
80202
80203 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80204
80205         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80206         * MODULES.html.sh (func_all_modules): Remove fatal.
80207
80208 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80209
80210         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80211
80212 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80213
80214         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80215         working.
80216
80217 2004-08-02  Simon Josefsson  <jas@extundo.com>
80218
80219         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80220         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80221         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80222
80223 2004-08-01  Simon Josefsson  <jas@extundo.com>
80224
80225         * lib/xgetdomainname.c: Include stdlib.h, for free().
80226
80227 2004-07-19  Bruno Haible  <bruno@clisp.org>
80228
80229         * MODULES.html.sh (func_all_modules): Add dummy.
80230
80231 2004-07-16  Simon Josefsson  <jas@extundo.com>
80232
80233         * modules/dummy: New file.
80234
80235 2004-07-16  Simon Josefsson  <jas@extundo.com>
80236
80237         * lib/dummy.c: New file.
80238
80239 2004-07-16  Bruno Haible  <bruno@clisp.org>
80240
80241         * lib/backupfile.h: Add extern "C" for C++.
80242         * lib/closeout.h: Likewise.
80243         * lib/copy-file.h: Likewise.
80244         * lib/findprog.h: Likewise.
80245         * lib/full-write.h: Likewise.
80246         * lib/pathname.h: Likewise.
80247         * lib/progname.h: Likewise.
80248         * lib/stpcpy.h: Likewise.
80249         * lib/stpncpy.h: Likewise.
80250         * lib/strcase.h: Likewise.
80251         * lib/strstr.h: Likewise.
80252         * lib/xalloc.h: Likewise.
80253
80254         * lib/mbswidth.h: Add extern "C" for C++.
80255         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80256
80257 2004-07-13  Robert Millan  <robertmh@gnu.org>
80258
80259         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80260
80261 2004-07-09  Simon Josefsson  <jas@extundo.com>
80262
80263         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80264         failed without this.)
80265
80266 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80267
80268         * modules/chown (Files): Add lib/fchown-stub.c, since
80269         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80270
80271 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80272
80273         * lib/fchown-stub.c: New file.
80274
80275 2004-06-24  Jim Meyering  <jim@meyering.net>
80276
80277         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80278
80279 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80280
80281         * modules/argz: Omit "#include".
80282
80283         * MODULES.html.sh (func_all_modules): Add calloc, to match
80284         2004-06-01 addition of calloc module.
80285
80286 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80287
80288         * m4/argz.m4: New file, which is autoupdated from libtool.
80289
80290 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80291
80292         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80293         libtool.
80294
80295 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80296
80297         * config/srclist-update: Don't insist on "USA." before the
80298         close-comment, as libtool omits the period and puts the */ on a
80299         separate line.
80300         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80301         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80302
80303 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80304
80305         * modules/argz: New file.
80306         * MODULES.html.sh (func_all_modules): Add argz.
80307
80308 2004-06-12  Jim Meyering  <jim@meyering.net>
80309         and  Paul Eggert  <eggert@cs.ucla.edu>
80310
80311         * modules/hash (Files): Add lib/xalloc.h.
80312         * modules/pipe (Depends-on): Add wait-process.
80313         * modules/stat (Depends-on): Add xalloc.
80314         * modules/userspec (Files): Add lib/userspec.h.
80315         * modules/xstrto
80316
80317         Upgrade from gettext-0.13.
80318         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80319         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80320         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80321
80322 2004-06-10  Jim Meyering  <jim@meyering.net>
80323
80324         * lib/calloc.c: New file.
80325
80326 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80327
80328         * lib/getdate.y (yylex): Allow space between sign and number.
80329         Problem reported by Dan Jacobson.
80330
80331 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80332
80333         Merge from coreutils CVS.
80334
80335         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80336         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80337         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80338         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80339         xstrtol.m4: Fix copyright date and/or serial number.
80340
80341         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80342         See if we need an fchown replacement.
80343         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80344         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80345         and use the replacement function if we detect either defect.
80346
80347         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80348         gl_UTIMECMP.
80349
80350 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80351         and  Jim Meyering  <jim@meyering.net>
80352
80353         Merge from coreutils CVS.
80354
80355         * lib/stat-macros.h: New file, with contents from file-type.h
80356         and coreutils' system.h.
80357         * lib/file-type.c: Include "stat-macros.h".
80358         * lib/file-type.h (file_type): Move all macro definitions to new file,
80359         stat-macros.h.
80360
80361         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80362         Wrap old code with this conditional.
80363         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80364         function that does not dereference symlinks.
80365         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80366
80367         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80368         dependency problems.
80369         (xreadlink): Accept new arg SIZE, for efficiency.
80370         All decls and uses changed.
80371         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80372
80373         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80374         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80375
80376         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80377         sysexits.h.
80378
80379 2004-06-01  Jim Meyering  <jim@meyering.net>
80380
80381         * m4/calloc.m4: New file.
80382
80383 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80384
80385         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80386         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80387         Also, fix a typo in a diagnostic.
80388
80389 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80390
80391         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80392         or AC_FUNC_REALLOC.
80393
80394 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80395
80396         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80397         macros to be defined.
80398         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80399         the allocator returns NULL because the requested size is zero.
80400
80401 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80402
80403         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80404         var.  Add comment explaining why libc still defines it.  This
80405         merges the following patch from glibc:
80406         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80407
80408 2004-05-20  Andreas Schwab  <schwab@suse.de>
80409
80410         * m4/free.m4: Replace free if it not known to work, not the other
80411         way round.
80412
80413 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80414
80415         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80416         present in glibc since revision 1.1 of this file.
80417         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80418         obstack_alignment_mask, obstack_alloc, obstack_base,
80419         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80420         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80421         obstack_grow0, obstack_init, obstack_int_grow,
80422         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80423         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80424         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80425         nonexistent functions.
80426
80427 2004-05-18  Karl Berry  <karl@gnu.org>
80428
80429         * config/srclist.txt: break link for vasnprintf.c.
80430
80431 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80432
80433         Port obstack to the AS/400, where pointers are 16 bytes wide and
80434         you cannot cast an integer to a valid pointer.  This patch is
80435         currently waiting to be integrated into glibc; see
80436         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80437
80438         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80439         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80440         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80441         (struct obstack): temp member is now a union of a pointer and
80442         an integer, instead of an integer.  All integer uses changed.
80443         This does not affect the physical layout of struct obstack,
80444         except on hosts (like the AS/400) where the size or alignment of
80445         void * is greater than that of ptrdiff_t.
80446         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80447         __STDC__)]: Store temporary in pointer member of union, not
80448         integer member.
80449         * lib/obstack.c: Include <stddef.h>, for offsetof.
80450         (struct fooalign): Remove; it doesn't need a name.
80451         (union fooround): Change double to long double, and add void *.
80452         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80453         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80454         not a macro.  Hence the values are always int; so remove all
80455         casts-to-int in uses.
80456
80457 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80458
80459         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80460         we can get this patch merged into glibc.
80461
80462 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80463             Paul Eggert  <eggert@cs.ucla.edu>
80464
80465         * m4/argp: Depend on alloca.
80466
80467 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80468             Paul Eggert  <eggert@cs.ucla.edu>
80469
80470         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80471         freecoding.
80472
80473 2004-05-17  Bruno Haible  <bruno@clisp.org>
80474
80475         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80476         precision that consists of a '.' followed by an empty digit string.
80477         Patch by Tor Lillqvist <tml@iki.fi>.
80478
80479 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80480
80481         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80482         for backward compatibility with older code.  We need our own
80483         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80484         it under some other name, and our alloca.h will define it.
80485
80486 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80487             Derek Price  <derek@ximbiot.com>
80488
80489         * lib/alloca.c: Include <alloca.h>, to get our interface.
80490         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80491         include <alloca.h> first.  Use C89 prototype for alloca; this
80492         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80493         Use #elif for simplicity, since we can assume C89 now.
80494         Don't try to source the system alloca.h since it will not be found
80495         and to prevent recursively including its replacement.
80496         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80497         * lib/regex.c: Likewise.
80498
80499 2004-05-16  Derek Price  <derek@ximbiot.com>
80500             Paul Eggert  <eggert@cs.ucla.edu>
80501
80502         getline cleanup.  This changes the getndelim2 API: both order of
80503         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80504         no delimiter).
80505
80506         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80507         interface does that.
80508         (getline): Always use getdelim, so that we don't have two
80509         copies of this code.
80510         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80511         if available.
80512         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80513         (GETNDELIM2_MAXIMUM): New macro.
80514         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80515         instead of the old practice of delim2==0.  All callers changed.
80516         Return -1 on overflow, instead of returning junk.
80517         Do not set *linesize unless allocation succeeds.
80518         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80519         that we include sys/types.h.
80520         * lib/getnline.h: Likewise.
80521         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80522         (getndelim2): Reorder arguments.
80523         * lib/getnline.c (getnline, getndelim):
80524         Don't discard the NMAX argument.
80525         (getnline): Invoke getndelim, to avoid code duplication.
80526         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80527         of (size_t) -1 by callers of the getnline family.
80528
80529 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80530
80531         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80532         Check for gettimeofday.
80533         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80534         Check for settimeofday, stime.
80535
80536 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80537
80538         * lib/nanosleep.c (suspended): Change its type from int to
80539         sig_atomic_t volatile.
80540         (first_call): Make it private to rpl_nanosleep, and have it
80541         be zero initially as that's a bit faster.
80542         (my_usleep): Round up fractional times instead of truncating them,
80543         as this is the usual meaning for 'sleep'.
80544
80545         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80546         doesn't work.
80547         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80548         (ENOSYS): Define if not defined.
80549         (settime): Fall back on stime if it exists and settimeofday fails.
80550         But don't bother with fallbacks if a method fails with errno == EPERM.
80551
80552 2004-05-11  Jim Meyering  <jim@meyering.net>
80553
80554         Prior to this change, the save_cwd caller required read access to the
80555         current directory on most systems (ones with the fchdir function).
80556
80557         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80558         fails, try write-only, and finally, resort to using xgetcwd.
80559
80560 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80561
80562         * lib/obstack.c, obstack.h: Import changes from libc.
80563
80564 2004-04-28  Bruno Haible  <bruno@clisp.org>
80565
80566         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80567         also implicitly appends .exe to executables.
80568         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80569         accepts Windows pathnames.
80570         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80571         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80572         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80573         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80574         Reported by Derek Robert Price <derek@ximbiot.com>.
80575
80576 2004-04-21  Karl Berry  <karl@gnu.org>
80577
80578         * config/srclist.txt (localcharset.c): break sync.
80579
80580 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80581
80582         * m4/host-os.m4: Add a copyright notice.
80583
80584 2004-04-20  Jim Meyering  <jim@meyering.net>
80585
80586         Change UTILS_ to gl_ in AC_DEFINE'd names.
80587         Change utils_- and jm_-prefixed variables, too.
80588         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80589         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80590         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80591
80592         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80593         Don't emit trailing blanks.
80594         Also rename jm_-prefixed variables to have gl_ prefix.
80595
80596         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80597         Also rename jm_-prefixed variables to have gl_ prefix.
80598
80599         * m4/jm-macros.m4: Reflect the renamings.
80600         * m4/prereq.m4: Likewise.
80601
80602 2004-04-20  Jim Meyering  <jim@meyering.net>
80603
80604         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80605         memory.
80606
80607 2004-04-20  Jim Meyering  <jim@meyering.net>
80608             Bruno Haible  <bruno@clisp.org>
80609
80610         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80611         memory when realloc fails.
80612
80613 2004-04-19  Jim Meyering  <jim@meyering.net>
80614
80615         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80616         now that readutmp.c may call `free (0)'.
80617
80618 2004-04-19  Bruno Haible  <bruno@clisp.org>
80619
80620         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80621         * m4/inttypes_h.m4: Likewise.
80622         * m4/stdint_h.m4: Likewise.
80623         * m4/intmax_t.m4: Likewise.
80624         * m4/uintmax_t.m4: Likewise.
80625
80626 2004-04-18  Jim Meyering  <jim@meyering.net>
80627
80628         * m4/prereq.m4: Don't forbid jm_ prefix.
80629
80630         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80631         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80632         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80633         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80634         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80635         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80636         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80637         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80638         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80639         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80640         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80641         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80642         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80643         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80644         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80645         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80646         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80647         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80648         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80649
80650 2004-04-18  Jim Meyering  <jim@meyering.net>
80651
80652         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80653         failure, don't leak memory and do call END_UTMP_ENT.
80654
80655 2004-04-16  Jim Meyering  <jim@meyering.net>
80656
80657         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80658         coreutils' stat program.
80659         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80660
80661 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80662
80663         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80664         C89.
80665         (CHAR_BIT): Remove, since we assume C89.
80666         Include <stdint.h> if available, as per current Autoconf CVS advice.
80667
80668 2004-03-31  Jim Meyering  <jim@meyering.net>
80669
80670         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80671         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80672         * m4/xalloc.m4: Likewise.
80673
80674 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80675
80676         Merge from coreutils.
80677
80678         * m4/inttostr.m4: New file.
80679         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80680         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80681         Require gl_CLOCK_TIME.
80682         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80683
80684 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80685
80686         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80687         not bool, to be more consistent with Unix conventions.
80688         Suggested by Bruno Haible.
80689
80690         Merge from coreutils.
80691
80692         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80693         * lib/umaxtostr.c: New files.
80694
80695         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80696         the usual <time.h> dance.
80697         (get_date): Change signature to support fractional time stamps.
80698         All callers changed.
80699         * lib/getdate.y: Include "getdate.h" first, as we can now
80700         assume C89 and don't need to worry about 'const'.
80701         Similarly, include "unlocked-io.h" near start, not in middle.
80702         Include <limits.h>.
80703         (textint.value): Use long int rather than int.
80704         (textint.digits): Use size_t rather than int.
80705         (BILLION, LOG10_BILLION): New constants.
80706         (parser_control): New member rel_ns.  Members day_ordinal,
80707         time_zone, month, day, hour, minutes, rel_year, rel_month,
80708         rel_day, rel_hour, rel_minutes, rel_seconds
80709         are now long int, not int.  Member seconds is now struct timespec,
80710         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80711         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80712         not int.
80713         (%union.intval): Now long int, not int.
80714         New member timespec.
80715         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80716         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80717         (spec): Now is a timespec or an item list.
80718         (timespec, items): New nonterminals.
80719         (time, rel, relunit, number, get_date):
80720         Add support for fractional seconds.
80721         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80722         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80723         (to_hour): First arg is now long int, not int.
80724         (to_year): Returns long int, not int.
80725         Don't treat year -70 like 70.
80726         (tm_diff): Returns long int, not int.
80727         (lookup_word): Use bool instead of int when appropriate.
80728         (yylex): Use size_t for count, not int.
80729         Detect overflow when parsing large integer constants.
80730         Add support for fractions.
80731         (get_date): Make pointers 'const' if possible.
80732         Use more-portable code to detect integer overflow.
80733         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80734         Don't use ctime; it's not reliable if the year has >4 digits.
80735
80736         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80737         This is for compatibility with BSD.
80738
80739         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80740         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80741         From coreutils' system.h.
80742
80743         * lib/userspec.c: Don't include "posixver.h".
80744         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80745         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80746         compatible extension.  Simplify code by removing a boolean int
80747         that was always nonzero if a string was nonnull.
80748
80749 2004-03-30  Jim Meyering  <jim@meyering.net>
80750
80751         Merge from coreutils.
80752
80753         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80754         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80755         on some systems one must include <grp.h> before it.
80756         Reported by Christian Krackowizer.
80757
80758 2004-03-30  Jim Meyering  <jim@meyering.net>
80759
80760         Merge from coreutils.
80761
80762         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80763
80764         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80765         an empty input stream.
80766
80767         * lib/readtokens.c: Include <stdbool.h>.
80768         (readtoken): Use `size_t' rather than int/long.
80769         All callers adjusted.
80770         Use `bool' rather than `int' where appropriate.
80771         Use memset rather than an explicit loop.
80772         Use x2nrealloc rather than xrealloc.
80773         Allow the use of `\0' as a delimiter.
80774         (readtokens): Likewise.
80775         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80776
80777 2004-03-30  Jim Meyering  <jim@meyering.net>
80778
80779         * m4/realloc.m4: Remove file, since now it does no more than
80780         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80781         the `configure.ac' section of module/realloc.
80782         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80783
80784 2004-03-30  Bruno Haible  <bruno@clisp.org>
80785
80786         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80787         nonnull.
80788
80789 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80790
80791         Merge changes to getloadavg.c from coreutils and Emacs.
80792
80793         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80794         Define to an expression, not to the empty string.
80795         Include cloexec.h and xalloc.h.
80796         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80797         Use set_cloexec_flag rather than rolling our own.
80798         * lib/cloexec.c, lib/cloexec.h: New files.
80799
80800 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80801
80802         * m4/cloexec.m4: New file.
80803
80804 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80805
80806         * lib/getopt.h: Sync with libc CVS.
80807
80808 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80809             Bruno Haible  <bruno@clisp.org>
80810
80811         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80812         mbswidth.
80813
80814 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80815             Bruno Haible  <bruno@clisp.org>
80816
80817         * lib/mbswidth.h: Include <wchar.h> only if
80818         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80819         <wchar.h>.
80820         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80821
80822 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80823
80824         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80825         Sync with libc CVS.
80826         * lib/getopt_int.h: New file, also synced from libc.
80827
80828 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80829
80830         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80831         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80832         Bring back getopt.c, getopt.h, getopt1.c.
80833
80834 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80835
80836         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80837         All uses changed.  Check for sa_sigaction member; this fixes
80838         a bug first reported by Jason Andrade in
80839         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80840
80841 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80842
80843         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80844         '#if' expressions.  Unlike the code it replaces, it does not
80845         depend on (defined _SC_PAGESIZE).  However, it does depend on
80846         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80847         first reported by Jason Andrade in
80848         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80849
80850 2004-02-25  Simon Josefsson  <jas@extundo.com>
80851
80852         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80853
80854 2004-02-25  Simon Josefsson  <jas@extundo.com>
80855
80856         * lib/strdup.h: New file.
80857         * lib/strdup.c: Include it.
80858         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80859         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80860
80861 2004-02-23  Karl Berry  <karl@gnu.org>
80862
80863         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80864         (from fencepost.gnu.org:/gd/gnuorg).
80865
80866 2004-02-23  Karl Berry  <karl@gnu.org>
80867
80868         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80869         * config/srclist.txt: add maintain/standards documents.
80870
80871 2004-02-18  Bruno Haible  <bruno@clisp.org>
80872
80873         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80874         Reported by Derek Robert Price <derek@ximbiot.com>.
80875
80876 2004-02-16  Karl Berry  <karl@gnu.org>
80877
80878         * config/mkinstalldirs, install-sh: update from automake.
80879
80880 2004-02-06  Karl Berry  <karl@gnu.org>
80881
80882         * m4/po.m4: update from gettext 0.14.1.
80883
80884 2004-02-06  Karl Berry  <karl@gnu.org>
80885
80886         * lib/config.charset: update from gettext 0.14.1.
80887
80888 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80889
80890         Add comments and code, prompted by suggestions from Bruno Haible
80891         for sh-quote.
80892         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80893         describing the enum quoting_style values.
80894         * lib/quotearg.c (quotearg_alloc): New function.
80895         (quotearg_buffer_restyled): Treat lone { and } as special.
80896         Treat = as special.  Work around bug with older shells
80897         that "see" a '\' that is really the 2nd byte of a multibyte char.
80898         Quote empty string with shell_quoting_style.
80899
80900 2004-02-03  Bruno Haible  <bruno@clisp.org>
80901
80902         * m4/pipe.m4: New file, from GNU gettext.
80903
80904 2004-02-03  Bruno Haible  <bruno@clisp.org>
80905
80906         * lib/pipe.h: New file, from GNU gettext.
80907         * lib/pipe.c: New file, from GNU gettext.
80908
80909 2004-01-27  Bruno Haible  <bruno@clisp.org>
80910
80911         * m4/execute.m4: New file, from GNU gettext.
80912
80913 2004-01-27  Bruno Haible  <bruno@clisp.org>
80914
80915         * lib/execute.h: New file, from GNU gettext.
80916         * lib/execute.c: New file, from GNU gettext.
80917         * lib/w32spawn.h: New file, from GNU gettext.
80918
80919 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80920
80921         Merge from diffutils.
80922
80923         * lib/file-type.c (file_type): Add typed memory objects.
80924         * lib/file-type.h (S_TYPEISTMO): New macro.
80925
80926         * lib/c-stack.h (c_stack_action): Remove argv argument.
80927         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80928         (die): Don't calculate message unless segv_action returns.
80929         (get_stack_location, min_address_from_argv, max_address_from_argv,
80930         volatile stack_base, volatile_stack_size): Remove.
80931         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80932         that every segmentation violation is a stack overflow.  (Ouch!)
80933         See Debian bug 136249 (still outstanding) for more info about why
80934         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80935
80936 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80937
80938         Exit-status fix from coreutils.
80939
80940         Use exit_failure consistently in place of EXIT_FAILURE,
80941         so that program exit statuses are consistent on failure.
80942
80943         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80944         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80945         * lib/argmatch.h: Comment fix to match the above.
80946         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80947         Now a macro referring to exit_failure, instead of a separate
80948         variable.  Include "exitfail.h" to get it.
80949         * lib/xstrtol.h: Include "exitfail.h".
80950         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80951
80952         * lib/long-options.c (parse_long_options): Use prototype
80953         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80954         for clarity.
80955
80956 2004-01-21  Jim Meyering  <jim@meyering.net>
80957
80958         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80959         so as not to conflict with a different-sized __mktime_internal
80960         function in GNU libc.
80961         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80962         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80963
80964 2004-01-20  Karl Berry  <karl@gnu.org>
80965
80966         * config/config.guess: update from config.
80967
80968         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80969
80970 2004-01-20  Bruno Haible  <bruno@clisp.org>
80971
80972         Safer stack allocation.
80973         * lib/setenv.c: Include allocsa.h.
80974         (alloca): Remove fallback definition.
80975         (freea): Remove macro.
80976         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80977         instead of freea.
80978
80979 2004-01-20  Bruno Haible  <bruno@clisp.org>
80980
80981         * m4/eealloc.m4: New file, from GNU gettext.
80982
80983 2004-01-20  Bruno Haible  <bruno@clisp.org>
80984
80985         * m4/allocsa.m4: New file, from GNU gettext.
80986
80987 2004-01-20  Bruno Haible  <bruno@clisp.org>
80988
80989         * lib/xallocsa.h: New file, from GNU gettext.
80990         * lib/xallocsa.c: New file, from GNU gettext.
80991
80992 2004-01-20  Bruno Haible  <bruno@clisp.org>
80993
80994         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80995
80996 2004-01-20  Bruno Haible  <bruno@clisp.org>
80997
80998         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80999         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81000         specially.
81001
81002 2004-01-20  Bruno Haible  <bruno@clisp.org>
81003
81004         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81005         patch.
81006
81007 2004-01-20  Bruno Haible  <bruno@clisp.org>
81008
81009         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81010
81011 2004-01-20  Bruno Haible  <bruno@clisp.org>
81012
81013         * lib/eealloc.h: New file.
81014
81015 2004-01-20  Bruno Haible  <bruno@clisp.org>
81016
81017         * lib/binary-io.h: Avoid warnings on Cygwin.
81018
81019 2004-01-20  Bruno Haible  <bruno@clisp.org>
81020
81021         * lib/allocsa.h: New file, from GNU gettext.
81022         * lib/allocsa.c: New file, from GNU gettext.
81023
81024 2004-01-18  Karl Berry  <karl@gnu.org>
81025
81026         * doc/gpl.texi, doc/lgpl.texi: new files.
81027
81028 2004-01-18  Karl Berry  <karl@gnu.org>
81029
81030         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81031         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81032
81033 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81034
81035         Merge from coreutils.
81036
81037         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81038         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81039         (gl_DEFAULT_POSIX2_VERSION): Move
81040         the documentation from 'configure' into 'config.hin',
81041         so that 'configure --help' isn't burdened by it and
81042         we don't have to worry about its formatting there.
81043         Reword the documentation so that it's more succinct
81044         and can be run together into a single paragraph.
81045         * m4/same.m4 (gl_SAME): Check for pathconf.
81046
81047 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81048
81049         Merge from coreutils.
81050
81051         * lib/posixver.c: Include posixver.h.
81052
81053         * lib/same.c: Include <stdbool.h>, <limits.h>.
81054         (_POSIX_NAME_MAX): Define if not defined.
81055         (MIN): New macro.
81056         (same_name): If file names are silently truncated, report
81057         that the file names are the same if they are the same after
81058         the silent truncation.
81059
81060         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81061         conversion function.
81062         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81063         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81064         longer needed.
81065
81066 2004-01-15  Jim Meyering  <jim@meyering.net>
81067
81068         Merge from coreutils.
81069
81070         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81071         if no library is required.
81072         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81073         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81074         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81075         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81076         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81077         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81078         value, $ac_cv_search_crypt, if it's "none required".
81079         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81080         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81081         not gl_FUNC_GETLOADAVG.
81082         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81083         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81084
81085 2004-01-15  Jim Meyering  <jim@meyering.net>
81086
81087         Merge from coreutils.
81088
81089         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81090         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81091         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81092
81093         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81094         optional configure-time default.
81095
81096         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81097
81098         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81099
81100 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81101
81102         Merge from coreutils.
81103
81104         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81105         value, $ac_cv_search_nanosleep, if it's "none required".
81106
81107 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81108
81109         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81110         with like-named macro in fnmatch.c.
81111         (EXT): Use an internal constant instead.
81112
81113         Merge fnmatch patches from glibc.
81114         * lib/fnmatch.c (mbsinit): Remove define.
81115         Add libc_hidden_ver (__fnmatch, fnmatch).
81116         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81117         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81118
81119 2004-01-14  Karl Berry  <karl@gnu.org>
81120
81121         * config/install-sh: update from automake.
81122
81123 2004-01-13  Karl Berry  <karl@gnu.org>
81124
81125         * config/install-sh: update from automake.
81126
81127 2004-01-09  Karl Berry  <karl@gnu.org>
81128
81129         * config/install-sh: update from automake.
81130
81131 2004-01-05  Karl Berry  <karl@gnu.org>
81132
81133         * config/config.{sub,guess}: update from config.
81134
81135 2003-12-31  Karl Berry  <karl@gnu.org>
81136
81137         * config/depcomp: update from automake.
81138
81139 2003-12-14  Karl Berry  <karl@gnu.org>
81140
81141         * lib/config.charset: update from gettext-runtime.
81142
81143 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81144
81145         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81146         Bug reported by Alfred M. Szmidt.
81147
81148 2003-12-03  Bruno Haible  <bruno@clisp.org>
81149
81150         * m4/gettext.m4: Upgrade from gettext-0.13.
81151         * m4/po.m4: Upgrade from gettext-0.13.
81152         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81153         * m4/intmax.m4: New file, from gettext-0.13.
81154         * m4/printf-posix.m4: New file, from gettext-0.13.
81155
81156 2003-11-29  Karl Berry  <karl@gnu.org>
81157
81158         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81159
81160 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81161             Bruno Haible  <bruno@clisp.org>
81162
81163         * lib/printf-parse.h: Don't include sys/types.h.
81164         (ARG_NONE): New macro.
81165         (char_directive): Change type of *arg_index fields to size_t.
81166         * lib/printf-parse.c: Don't include sys/types.h.
81167         (SSIZE_MAX): Remove macro.
81168         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81169         Remove unnecessary overflow check.
81170         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81171         fields.
81172
81173 2003-11-25  Bruno Haible  <bruno@clisp.org>
81174
81175         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81176
81177 2003-11-25  Bruno Haible  <bruno@clisp.org>
81178
81179         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81180         gt_TYPE_SSIZE_T.
81181
81182 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81183
81184         * modules/alloca: Remove dependency on xalloc.
81185
81186 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81187
81188         * lib/alloca.c: Remove dependency on xalloc module.
81189         (xalloc_die): Remove.
81190         (memory_full) [!defined emacs]: New macro.
81191         [!defined emacs]: Don't include xalloc.h.
81192         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81193         address arithmetic overflows.  Change datatypes a bit to avoid
81194         unnecessary casts.
81195
81196 2003-11-22  Jim Meyering  <jim@meyering.net>
81197
81198         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81199         s/size/size_t/.
81200
81201 2003-11-21  Karl Berry  <karl@gnu.org>
81202
81203         * config/config.{sub,guess}: update from config.
81204
81205 2003-11-18  Karl Berry  <karl@gnu.org>
81206
81207         * config/config.{sub,guess}: update from config.
81208
81209         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81210
81211 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81212
81213         * README: Mention that S+T cannot overflow if S is the size of
81214         an existing object and T is sufficiently small.
81215
81216 2003-11-17  Jim Meyering  <jim@meyering.net>
81217
81218         On systems without utime and without a utimes function capable of
81219         dealing with a NULL struct utimbuf* argument, this utime replacement
81220         could -- in unusual circumstances -- leak a file descriptor.
81221         * lib/utime.c: Include <unistd.h> and <errno.h>.
81222         (utime_null): Be sure to close `fd' and to preserve errno.
81223         Reported by Geoff Collyer via Arnold Robbins.
81224
81225 2003-11-17  Bruno Haible  <bruno@clisp.org>
81226
81227         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81228         (Depends-on): Add xsize.
81229
81230 2003-11-17  Bruno Haible  <bruno@clisp.org>
81231
81232         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81233
81234 2003-11-17  Bruno Haible  <bruno@clisp.org>
81235
81236         * lib/vasnprintf.c (alloca): Remove fallback definition.
81237         (freea): Remove definition.
81238         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81239         Reported by Paul Eggert.
81240
81241 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81242             Bruno Haible  <bruno@clisp.org>
81243
81244         Protect against address arithmetic overflow.
81245         * lib/printf-args.h: Include stddef.h.
81246         (arguments): Change type of field 'count' to size_t.
81247         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81248         'unsigned int' where appropriate.
81249         * lib/printf-parse.h: Include sys/types.h.
81250         (char_directive): Change type of *arg_index fields to ssize_t.
81251         (char_directives): Change type of fields 'count', max_*_length to
81252         size_t.
81253         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81254         (SSIZE_MAX): Define fallback value.
81255         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81256         instead of 'int' where appropriate. Check a_allocated, d_allocated
81257         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81258         * lib/vasnprintf.c: Include xsize.h.
81259         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81260         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81261         overflow. Avoid wraparound when converting a width or precision from
81262         decimal to binary.
81263
81264 2003-11-16  Bruno Haible  <bruno@clisp.org>
81265
81266         Update from GNU gettext.
81267         * lib/printf-parse.c: Generalize to it can be compiled for wide
81268         strings.
81269         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81270         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81271         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81272         SNPRINTF): New macros.
81273         Don't include <alloca.h> if the file is used inside libintl.
81274         (local_wcslen): New function, for Solaris 2.5.1.
81275         (VASNPRINTF): Use it instead of wcslen.
81276
81277 2003-11-16  Bruno Haible  <bruno@clisp.org>
81278
81279         * lib/xsize.h (xmax): New function.
81280         (xsum, xsum3, xsum4): Declare as "pure" functions.
81281
81282 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81283
81284         * modules/xalloc (Files): Undo latest change, since xalloc.h
81285         no longer needs SIZE_MAX or PTRDIFF_MAX.
81286
81287 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81288
81289         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81290         gl_PTRDIFF_MAX.
81291
81292 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81293
81294         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81295         "return", to pacify some unknown compiler.  Problem reported
81296         by Joerg Schilling.
81297
81298 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81299
81300         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81301         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81302         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81303         heuristic is just as accurate as far as we know, and it removes a
81304         dependency on size_max.m4 and ptrdiff_max.m4.
81305
81306 2003-11-11  Bruno Haible  <bruno@clisp.org>
81307
81308         * modules/xsize (Files): Add m4/size_max.m4.
81309         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81310
81311 2003-11-11  Bruno Haible  <bruno@clisp.org>
81312
81313         * m4/size_max.m4: New file.
81314         * m4/ptrdiff_max.m4: New file.
81315         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81316         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81317         (gl_XALLOC): Invoke it.
81318
81319 2003-11-11  Bruno Haible  <bruno@clisp.org>
81320
81321         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81322         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81323         defined.
81324
81325 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81326
81327         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81328         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81329         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81330         From Bruno Haible.
81331         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81332         not (size_t) -1, since it's defined here.
81333
81334 2003-11-09  Karl Berry  <karl@gnu.org>
81335
81336         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81337
81338 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81339
81340         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81341         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81342         Reject sizes of exactly SIZE_MAX bytes.
81343         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81344         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81345
81346 2003-11-05  Bruno Haible  <bruno@clisp.org>
81347
81348         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81349         SIZE_MAX defined in <limits.h> on Solaris.
81350
81351 2003-11-04  Jim Meyering  <jim@meyering.net>
81352
81353         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81354         variable names, rather than @VAR@.
81355         * modules/poll: Likewise.
81356
81357 2003-11-04  Bruno Haible  <bruno@clisp.org>
81358
81359         * modules/xsize: New file.
81360         * modules/linebreak: Depend on xsize.
81361         * MODULES.html.sh (func_all_modules): Add xsize.
81362
81363 2003-11-04  Bruno Haible  <bruno@clisp.org>
81364
81365         * m4/xsize.m4: New file.
81366
81367 2003-11-04  Bruno Haible  <bruno@clisp.org>
81368
81369         * lib/xsize.h: New file.
81370         * lib/linebreak.c: Include xsize.h.
81371         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81372         argument for overflow.
81373         Suggested by Paul Eggert.
81374
81375 2003-11-03  Karl Berry  <karl@gnu.org>
81376
81377         * config/config.{guess,sub}: update from config.
81378
81379 2003-11-03  Jim Meyering  <jim@meyering.net>
81380
81381         * modules/userspec (lib_SOURCES): Add userspec.h.
81382         (Include): Add "userspec.h".
81383         Improve description.
81384
81385 2003-11-03  Jim Meyering  <jim@meyering.net>
81386
81387         * lib/userspec.c: Include "userspec.h".
81388         * lib/userspec.h: New file.
81389
81390 2003-11-03  Bruno Haible  <bruno@clisp.org>
81391
81392         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81393
81394 2003-11-03  Bruno Haible  <bruno@clisp.org>
81395
81396         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81397         available, to avoid (extremely rare) race condition.
81398         Suggested by Paul Eggert.
81399
81400 2003-11-02  Karl Berry  <karl@gnu.org>
81401
81402         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81403
81404 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81405
81406         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81407         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81408         (read_filesystem_list): Set and use me_type_malloced.
81409         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81410         whatever the type happens to be), for brevity and consistency.
81411         Check for size calculation overflow on Alphas running OSF/1.
81412
81413 2003-10-31  Jim Meyering  <jim@meyering.net>
81414
81415         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81416
81417         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81418
81419 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81420             Bruno Haible  <bruno@clisp.org>
81421
81422         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81423         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81424
81425 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81426
81427         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81428         netbsd*-gnu*.  Suggested by Robert Millan.
81429
81430 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81431
81432         * modules/group-member: Depend on stdbool.
81433
81434 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81435
81436         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81437
81438 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81439
81440         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81441         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81442         after the 'gnu' in these cases.  This fixes some bugs in the
81443         previous change, and is based on suggestions by Robert Millan.
81444
81445 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81446
81447         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81448         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81449         no longer needed.
81450         * lib/quotearg.c (quotearg_n_options): Use it.
81451         * lib/group-member.c: Include <stdbool.h>.
81452         (free_group_info): Arg is now const *; don't free arg.
81453         (get_group_info): Now returns bool and accepts struct group_info *,
81454         rather than returning a malloc'ed struct group_info *.
81455         All uses changed.  Check for overflow in internal size calculation.
81456
81457         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81458         rather than xmalloc/xrealloc.
81459         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81460         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81461         conformance bug: the old code used a pointer after freeing the
81462         storage that it addressed.
81463         * lib/hash.c (hash_initialize): Simplify the code by using
81464         xalloc_oversized rather than doing it by hand.
81465         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81466         the buffer preserved.  Use free and xmalloc instead.
81467         * lib/quotearg.c (quotearg_n_options): Likewise.
81468         Use a simpler test for size overflow.  Don't use xalloc_oversized
81469         because unsigned int might be wider than size_t (!); this suggests
81470         that we should switch from unsigned int to size_t for slot numbers.
81471
81472 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81473
81474         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81475         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81476         NetBSD kernels.  Requested by Richard Stallman.
81477
81478 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81479
81480         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81481         to allocate the returned structure.  Do not allocate a subarray,
81482         as x2nrealloc will do that.
81483         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81484         instead of xnrealloc.
81485         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81486
81487 2003-10-27  Bruno Haible  <bruno@clisp.org>
81488
81489         * lib/stdbool_.h: Better support for BeOS.
81490
81491 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81492
81493         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81494         now uses inline.
81495
81496 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81497
81498         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81499         callers that want to do their own size-overflow checking.  Include
81500         <stdbool.h>, since xalloc_oversized returns bool.
81501         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81502         to use xalloc_oversized.
81503
81504         Add two functions x2realloc, x2nrealloc, for programs that grow
81505         arrays dynamically by doubling their sizes.
81506         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81507         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81508         New functions.
81509
81510         Port to C99 semantics for 'inline' of external functions.
81511         Bug reported by Bruno Haible.
81512         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81513         with the old contents of xnmalloc.
81514         (xnmalloc, xmalloc): Use it.
81515         (xnrealloc_inline): New static inline function,
81516         with the old contents of xnrealloc.
81517         (xnrealloc, xrealloc): Use it.
81518
81519         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81520         that.
81521
81522 2003-10-26  Karl Berry  <karl@gnu.org>
81523
81524         * config/srclist.txt (COPYING.DOC): no longer available from
81525         /gd/gnuorg; don't know where the ultimate source is.
81526
81527 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81528
81529         Fix several address-calculation bugs in the hash modules,
81530         plus some minor code cleanup.
81531
81532         * lib/hash.h: Include <stdbool.h>, for bool.
81533         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81534         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81535         hash_get_n_entries, hash_get_max_bucket_length,
81536         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81537         hash_rehash): Use size_t rather than unsigned.
81538         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81539         hash_get_n_buckets_used, hash_get_n_entries,
81540         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81541         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81542         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81543         Likewise.
81544         (SIZE_MAX): Define if not defined.
81545         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81546         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81547         hash_print):
81548         Use const * when possible.
81549         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81550         (check_tuning): Fix bug: if tuning parameters were very close to
81551         0 or 1, rounding errors could have caused subscript violations.
81552         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81553         (hash_initialize): Add 'fail:' label
81554         to free table and return NULL, and use it to simplify code.
81555         Use calloc rather than clearing the storage ourself.
81556         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81557         buffer size calculations.
81558         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81559         Include <stddef.h>, for size_t.
81560         * lib/hash-pjw.c (hash_pjw): Likewise.
81561         Switch to method described by Bruno Haible.
81562         Include <limits.h>, for CHAR_BIT.
81563         (SIZE_BITS): New macro.
81564
81565 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81566
81567         * m4/getline.m4 (AM_FUNC_GETLINE):
81568         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81569         hosts.  Problem reported by Derek Robert Price in
81570         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81571         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81572         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81573
81574 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81575
81576         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81577         ceiling the allocation at NMAX bytes rather than silently
81578         discarding input bytes before NMAX is reached.  This makes
81579         a difference only if NMAX exceeds SIZE_MAX / 2.
81580
81581         * lib/obstack.c: Merge from glibc.
81582         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81583         Add libc_hidden_def (_obstack_newchunk).
81584         (_obstack_free) [! defined _LIBC]: Remove.
81585         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81586         a clone of the function body.
81587         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81588         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81589
81590         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81591         glibc.
81592         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81593         arg to memcpy.
81594
81595         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81596         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81597         Don't use lvalue casts, as GCC plans to remove support for them
81598         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81599         was also present in the non-GCC version, indicating that this
81600         code had always been buggy and had never been widely used.
81601         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81602         Use the fast variant of each macro, rather than copying the
81603         definiens of the fast variant; that way, we'll be more likely to
81604         catch future bugs in the fast variants.
81605
81606 2003-10-20  Bruno Haible  <bruno@clisp.org>
81607
81608         * modules/wait-process: New file.
81609         * MODULES.html.sh (func_all_modules): Add wait-process.
81610
81611 2003-10-20  Bruno Haible  <bruno@clisp.org>
81612
81613         * m4/wait-process.m4: New file.
81614
81615 2003-10-20  Bruno Haible  <bruno@clisp.org>
81616
81617         * lib/wait-process.h: New file, from GNU gettext.
81618         * lib/wait-process.c: New file, from GNU gettext.
81619
81620 2003-10-19  Jim Meyering  <jim@meyering.net>
81621
81622         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81623         HPUX 10.20.
81624
81625 2003-10-18  Karl Berry  <karl@gnu.org>
81626
81627         * config/config.guess: update from config.
81628
81629 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81630
81631         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81632         (getgroups): First arg is int, not size_t.
81633         Don't let 'free' mangle errno.
81634
81635 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81636
81637         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81638
81639 2003-10-16  Karl Berry  <karl@gnu.org>
81640
81641         * config/config.{guess,sub}: update from config.
81642
81643 2003-10-16  Jim Meyering  <jim@meyering.net>
81644
81645         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81646         memcpy.
81647
81648 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81649
81650         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81651         (SIZE_MAX): Remove.
81652         (new_exclude, add_exclude_file): Initial size no longer needs to
81653         be a power of 2.
81654         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81655         our own address arithmetic overflow checking.
81656
81657         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81658         (fnmatch): Do not alloca more than 2000 wide characters;
81659         instead, use malloc for large buffers.
81660         Check for address arithmetic overflow, and return -1
81661         with errno set to ENOMEM in that case.
81662         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81663         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81664         instead, return -1.  Check for address arithmetic overflow.
81665
81666 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81667
81668         Handle invalid suffixes and overflow independently, so that
81669         callers can treat them independently as needed.  Fix some bugs in
81670         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81671         suffix for a human-readable blocksize.  The major caller-visible
81672         change is the addition of a new
81673         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81674         that both overflow and suffix chars were found.
81675
81676         * lib/human.c (humblock): Don't check separately for invalid suffix
81677         char; that is xstrtoumax's job (now that its bug is fixed).
81678         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81679         INTMAX_MAX]: New macros.
81680         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81681         TYPE_MAXIMUM): New macros.
81682         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81683         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81684         if overflow occurs, as it's what __strtol does and it's more useful
81685         in practice.
81686         (__xstrtol): If __strtol reports some error other than ERANGE,
81687         reflect it to the caller as LONGINT_INVALID.  If it reports
81688         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81689         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81690         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81691         value.
81692         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81693         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81694         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81695         [defined UINTMAX_MAX]: New macros.
81696
81697 2003-10-14  Bruno Haible  <bruno@clisp.org>
81698
81699         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81700
81701 2003-10-14  Bruno Haible  <bruno@clisp.org>
81702
81703         * m4/sig_atomic_t: New file, from GNU gettext.
81704         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81705
81706 2003-10-14  Bruno Haible  <bruno@clisp.org>
81707
81708         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81709         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81710         Also use volatile where needed.
81711
81712 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81713
81714         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81715         Change maintainer from Bruno Haible to 'all'.
81716
81717 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81718
81719         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81720
81721 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81722
81723         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81724         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81725         and define in terms of the other primitives.
81726         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81727         (SIZE_MAX): Define if not already defined.
81728         (array_size_overflow): New function.
81729         (xalloc_die): Abort instead of exiting if 'error' returns.
81730         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81731         (xmalloc, xrealloc): Use them.
81732         (xcalloc): Check for address arithmetic overflow.
81733         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81734         a bit faster than strcpy.
81735
81736 2003-10-10  Simon Josefsson  <jas@extundo.com>
81737
81738         * modules/argp (Depends-on): Add restrict and strcase.
81739
81740 2003-10-10  Simon Josefsson  <jas@extundo.com>
81741
81742         * m4/argp.m4: Add AC_C_INLINE.
81743
81744 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81745
81746         Merge getpass from libc, plus a few fixes.
81747
81748         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81749         Include <stdbool.h>.
81750         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81751         __fsetlocking to empty.
81752         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81753         do include <bits/libc-lock.h>.
81754         Do not include <fcntl.h>; not needed.
81755         [_LIBC]: Include <wchar.h>.
81756         (NOTCANCEL_MODE): New macro.
81757         (flockfile, funlockfile) [_LIBC]: New macros.
81758         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81759         [!_LIBC]: New macros.
81760         (call_fclose): New function.
81761         (getpass): Use it.  Save tty stream separately; this simplifies the
81762         code and makes it more reliable if stdin happens to equal stdout.
81763         Invoke __fsetlocking on tty.
81764         Handle thread cancellation if needed.
81765         Namespace cleanup (use __tcgetattr, __getline).
81766         Use bool for Booleans.
81767         [USE_IN_LIBIO]: Handle wide streams.
81768         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81769         stream might go where.
81770
81771         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81772         doesn't have to include <stdio.h> before us.
81773         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81774         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81775         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81776         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81777         if not declared, so that we can use getpass.c code from libc without
81778         rewriting it.
81779         (flockfile, ftrylockfile, funlockfile): New macros.
81780
81781 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81782
81783         * modules/getpass: Depend on stdbool.
81784
81785 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81786
81787         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81788
81789 2003-10-07  Karl Berry  <karl@gnu.org>
81790
81791         * config/config.{guess,sub}: update from config.
81792
81793 2003-10-06  Jim Meyering  <jim@meyering.net>
81794             Bruno Haible  <bruno@clisp.org>
81795
81796         This lets translators provide better translations for the
81797         "Written by ..." part of --version output.
81798         * lib/version-etc.h: Include stdarg.h.
81799         (version_etc_copyright): Declare as readonly.
81800         (version_etc): Make this function variadic with a NULL-terminated list
81801         of author name strings.
81802         (version_etc_va): New declaration.
81803         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81804         (version_etc_copyright): Declare as readonly.
81805         (version_etc_va): New function. Provide a different translatable string
81806         for each possible number of authors < 10. Abbreviate when there are 10
81807         authors or more.
81808         (version_etc): Make this function variadic. Call version_etc_va.
81809         Suggestion from Gary V. Vaughan.
81810
81811         * lib/long-options.h (parse_long_options): Change prototype: the
81812         authors string is moved to the end and becomes variadic.
81813         * lib/long-options.c: Include stdarg.h.
81814         (parse_long_options): Make this function variadic, too.
81815         Call version_etc_va, not version_etc.
81816
81817 2003-10-06  Bruno Haible  <bruno@clisp.org>
81818
81819         * modules/version-etc-2: Remove file.
81820         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81821
81822 2003-10-06  Bruno Haible  <bruno@clisp.org>
81823
81824         * modules/fatal-signal: New file.
81825         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81826
81827 2003-10-06  Bruno Haible  <bruno@clisp.org>
81828
81829         * m4/fatal-signal.m4: New file.
81830         * m4/signalblocking.m4: New file, from GNU gettext.
81831
81832 2003-10-06  Bruno Haible  <bruno@clisp.org>
81833
81834         * lib/version-etc-2.h: Remove file.
81835         * lib/version-etc-2.c: Remove file.
81836
81837 2003-10-06  Bruno Haible  <bruno@clisp.org>
81838
81839         * lib/fatal-signal.h: New file, from GNU gettext.
81840         * lib/fatal-signal.c: New file, from GNU gettext.
81841
81842 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81843
81844         * README: Rework advice for preventing empty .o files.
81845         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81846         not <sys/types.h>.
81847
81848 2003-10-04  Karl Berry  <karl@gnu.org>
81849
81850         * lib/argp*: update from libc.
81851
81852 2003-10-04  Karl Berry  <karl@gnu.org>
81853
81854         * config/config.{guess,sub}: update from config.
81855
81856 2003-10-02  Bruno Haible  <bruno@clisp.org>
81857
81858         * modules/lchown (Include): Add lchown.h.
81859         * modules/time_r (Include): Use "..." syntax.
81860         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81861
81862 2003-10-01  Simon Josefsson  <jas@extundo.com>
81863
81864         * MODULES.html.sh (func_all_modules): Move gethostname from section
81865         'based on' to section 'lacking' POSIX:2001.
81866
81867 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81868
81869         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81870         to output mode on the same stream.
81871
81872 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81873
81874         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81875         Fix arg typo in previous patch.
81876
81877 2003-09-28  Jim Meyering  <jim@meyering.net>
81878
81879         * lib/error.c: Correct cpp indentation.
81880
81881 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81882
81883         * modules/free: New file.
81884
81885 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81886
81887         * m4/free.m4: New file.
81888
81889 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81890
81891         * lib/minmax.h (MIN, MAX)
81892         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81893         Omit the special code that used __typeof__, since we worry that
81894         it could be more trouble than it's worth.  See:
81895         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81896         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81897
81898         * lib/free.c: New file.
81899
81900 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81901
81902         Trivial fixes to Makefile.am parts of module listings.
81903         * modules/strstr: Append strstr.h to lib_SOURCES.
81904         * modules/strcase: Likewise, for strcase.h.
81905
81906 2003-09-27  Karl Berry  <karl@gnu.org>
81907
81908         * config/mkinstalldirs: update from automake.
81909
81910 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81911
81912         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81913         (error_tail): Do not loop, reallocating temporary buffer, since
81914         the output cannot contain more wide characters than the input
81915         contains bytes, the size must be big enough already.  This avoids
81916         one potential size overflow calculation.  Check for size overflow
81917         when calculating temporary buffer size.  Free temporary buffer
81918         when done, if it was allocated with malloc; this plugs a memory
81919         leak.  Remove casts from void * to pointers, that are no longer
81920         needed now that we're assuming C89 or better.
81921
81922         Merge error changes from glibc.
81923
81924         * lib/error.c, error.h: Update copyright notice header to match glibc.
81925         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81926         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81927         Disable cancellation while printing error.
81928         * lib/error.h: Prepend __ to parameter names.
81929
81930 2003-09-26  Jim Meyering  <jim@meyering.net>
81931
81932         * lib/error.c (error_tail): Move some declarations
81933         into inner scope where the local variables are used.
81934
81935 2003-09-26  Bruno Haible  <bruno@clisp.org>
81936
81937         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81938         stpncpy().
81939         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81940
81941 2003-09-26  Bruno Haible  <bruno@clisp.org>
81942
81943         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81944         (stpncpy): Define as alias for gnu_stpncpy.
81945         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81946
81947 2003-09-25  Simon Josefsson  <jas@extundo.com>
81948
81949         * lib/xgetdomainname.h: New file.
81950         * lib/xgetdomainname.c: New file.
81951
81952 2003-09-25  Simon Josefsson  <jas@extundo.com>
81953             Bruno Haible  <bruno@clisp.org>
81954
81955         * modules/getdomainname: New file.
81956         * modules/xgetdomainname: New file.
81957         * MODULES.html.sh (func_all_modules): Add getdomainname,
81958         xgetdomainname.
81959
81960 2003-09-25  Simon Josefsson  <jas@extundo.com>
81961             Bruno Haible  <bruno@clisp.org>
81962
81963         * m4/getdomainname.m4: New file.
81964
81965 2003-09-25  Simon Josefsson  <jas@extundo.com>
81966             Bruno Haible  <bruno@clisp.org>
81967
81968         * lib/getdomainname.h: New file.
81969         * lib/getdomainname.c: New file.
81970
81971 2003-09-25  Karl Berry  <karl@gnu.org>
81972
81973         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81974
81975 2003-09-25  Karl Berry  <karl@gnu.org>
81976
81977         * config/install-sh: update from automake.
81978
81979 2003-09-25  Bruno Haible  <bruno@clisp.org>
81980
81981         * modules/version-etc-2: New file, from modules/version-etc with
81982         modifications.
81983         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81984
81985 2003-09-25  Bruno Haible  <bruno@clisp.org>
81986
81987         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81988         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81989
81990 2003-09-24  Simon Josefsson  <jas@extundo.com>
81991
81992         * modules/xgethostname: Add xgethostname.h.
81993
81994 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81995
81996         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81997         the buffer associated with the argument.  Bug reported by
81998         Simon Josefsson.
81999
82000 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82001
82002         * README: Document assumptions that 'int' is at least 32 bits
82003         wide, that integer arithmetic is 2's complement without overflow,
82004         that there are no holes in integer values, that adding sizes of
82005         two nonoverlapping objects can't overflow, and that all-bits-zero
82006         yields scalar zero.  Fix spelling and capitalization typos.
82007
82008 2003-09-19  Karl Berry  <karl@gnu.org>
82009
82010         * lib/argp.h: update from libc.
82011
82012 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82013
82014         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82015         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82016         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82017
82018 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82019
82020         * gnulib-tool: Use "test -h", not "test -L", for portability
82021         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82022         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82023         (sed_extract_prog): Issue s commands one-by-one, rather than
82024         using \| in one s command.
82025
82026 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82027
82028         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82029         input error, instead of returning NULL the next time we are called
82030         (and therefore losing track of errno).
82031
82032 2003-09-16  Bruno Haible  <bruno@clisp.org>
82033
82034         * gnulib-tool (func_create_testdir): Warn about duplicated
82035         dependencies.
82036
82037 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82038
82039         * modules/argmatch, modules/fatal, modules/obstack,
82040         modules/xalloc, modules/xgethostname: Sort dependencies by
82041         importance, not alphabetically.
82042
82043 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82044
82045         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82046         fails, so that the caller gets the proper errno.
82047
82048         * lib/readutmp.c (read_utmp): Likewise.
82049         Check for fstat error.  Close stream and free storage
82050         when failing.
82051
82052 2003-09-14  Karl Berry  <karl@gnu.org>
82053
82054         * config/srclist.txt (strdup.c): disable for c89 changes.
82055
82056 2003-09-14  Jim Meyering  <jim@meyering.net>
82057
82058         * lib/getloadavg.c: Correct cpp indentation.
82059         * lib/strdup.c: Likewise.
82060         * lib/vasnprintf.c: Likewise.
82061
82062 2003-09-14  Bruno Haible  <bruno@clisp.org>
82063
82064         * modules/fwriteerror: New file.
82065         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82066
82067 2003-09-14  Bruno Haible  <bruno@clisp.org>
82068
82069         * lib/fwriteerror.h: New file.
82070         * lib/fwriteerror.c: New file.
82071
82072 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82073
82074         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82075         modules/xgethostname, modules/xalloc: Depend on exit.
82076
82077 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82078
82079         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82080
82081         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82082         and AC_MINIX, too, so that their extensions are available.
82083
82084         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82085         This macro has been superseded by gl_BACKUPFILE.
82086
82087         More patches to assume C89 or better.
82088
82089         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82090
82091         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82092         unconditionally.
82093         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82094         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82095         Include <string.h>, <stdlib.h> unconditionally.
82096         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82097         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82098         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82099         headers or for string.h.
82100         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82101         or strtoul.
82102
82103         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82104         headers.
82105         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82106         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82107         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82108         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82109         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82110         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82111         memcpy, memset.
82112         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82113         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82114         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82115         strtol.
82116         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82117         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82118         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82119         strtoul.
82120
82121 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82122
82123         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82124         * lib/obstack.c [!defined _LIBC]: Likewise.
82125         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82126         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82127         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82128
82129         More changes to assume C89 or better.
82130
82131         * lib/error.c (error_tail): Assume vprintf.
82132
82133         * lib/argmatch.c (getenv): Remove decl.
82134         * lib/progreloc.c (get_full_program_name): Define via prototype.
82135         * lib/setenv.c (clearenv): Likewise.
82136         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82137         needed.
82138         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82139         (malloc, memcpy): Remove decls.
82140         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82141         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82142         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82143         (memcpy): Remove macro.
82144         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82145         (__P): Remove.  All uses removed.
82146         (PTR): Remove.  All uses changed to void *.
82147         (CHAR_BIT, NULL): Remove.
82148         (spaces, zeros, memset_space, memset_zero)
82149         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82150         Remove.
82151         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82152         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82153         Define with prototype.
82154         Remove now-unnecessary prototype decl.
82155         (extra_args_spec): Assume ANSI C.  All uses changed.
82156         (extra_args_spec_iso): Remove.
82157         (my_strftime, emacs_strftimeu): Define via prototype.
82158         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82159         unconditionally.
82160         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82161         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82162         (strtoul, strtol): Remove decls.
82163         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82164         LONG_MAX): Remove.
82165         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82166         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82167         (LOCALE_PARAM_PROTO): New macro.
82168         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82169         (INTERNAL (strtol), strtol): Define with a prototype.
82170         (PARAMS): Remove.  All uses removed.
82171         * lib/tempname.c: Include <string.h> unconditionally.
82172         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82173         * lib/xgethostname.c (main): Define with a prototype.
82174         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82175         Include <stdlib.h> unconditionally.
82176         (calloc, malloc, realloc, free): Remove decls.
82177         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82178         Include <stdlib.h> unconditionally.  Sort include file names.
82179         (strtod): Remove.
82180         (xstrtod): Define with a prototype.
82181         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82182         (strtol, strtoul): Remove decls.
82183
82184 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82185
82186         More patches to assume C89 or better.
82187         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82188         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82189         string.h, memchr, STDC_HEADERS.
82190
82191 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82192
82193         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82194         Include <stdlib.h>, <string.h> unconditionally.
82195         Remove now-unnecessary cast to char *.
82196         * lib/strnlen.c: Include <string.h> unconditionally.
82197         * lib/yesno.c (yesno): Define with a prototype.
82198
82199 2003-09-11  Bruno Haible  <bruno@clisp.org>
82200
82201         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82202
82203 2003-09-10  Jim Meyering  <jim@meyering.net>
82204
82205         * lib/error.c: Correct indentation of cpp directives.
82206
82207 2003-09-10  Bruno Haible  <bruno@clisp.org>
82208
82209         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82210         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82211         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82212         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82213         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82214         <stdlib.h> and <string.h> checks.
82215         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82216         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82217
82218 2003-09-10  Bruno Haible  <bruno@clisp.org>
82219
82220         * lib/strcspn.c: Include <string.h> unconditionally.
82221         * lib/strpbrk.c: Include <string.h> unconditionally.
82222         * lib/strstr.c: Include <string.h> unconditionally.
82223         * lib/unicodeio.c: Include <string.h> unconditionally.
82224         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82225         * lib/unsetenv.c: Likewise.
82226         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82227         * lib/yesno.c: Include <stdlib.h> unconditionally.
82228         (rpmatch): Add prototype.
82229
82230 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82231
82232         More patches to assume C89 or better.
82233         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82234         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82235         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82236         or for string.h.
82237         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82238         stdlib.h.
82239         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82240         C headers.
82241         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82242         string.h.
82243         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82244         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82245         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82246         or for string.h.
82247         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82248         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82249         C headers.
82250         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82251         memcpy.
82252         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82253         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82254         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82255         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82256         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82257         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82258         string.h, free.
82259         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82260         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82261         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82262         C headers, or for string.h.
82263         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82264         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82265         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82266         headers, memory.h, stdlib.h, string.h, strings.h.
82267         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82268         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82269         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82270         strchr.
82271         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82272         headers, memory.h, string.h.
82273         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82274         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82275         free.
82276         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82277         headers.
82278         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82279         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82280         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82281         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82282         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82283
82284 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82285
82286         More K&R removal.
82287
82288         * lib/acosl.c (main): Use a prototype.
82289         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82290         tanl.c: Likewise.
82291
82292         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82293
82294         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82295         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82296         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82297         with a prototype.
82298         * lib/getopt.c (const): Remove macro.
82299         Include <string.h> unconditionally.
82300         (my_index): Remove; all uses changed to strchr.
82301         (strlen): Remove decl.
82302         (exchange): Remove forward decl; no longer needed.
82303         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82304         Define with prototype.
82305         * lib/getopt1.c (const): Remove macro.
82306         (getopt_long, getopt_long_only, main): Define with prototype.
82307
82308         * lib/getugroups.c: Include <string.h> unconditionally.
82309
82310         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82311         (getusershell, setusershell, endusershell, readname, main):
82312         Define with prototypes.
82313
82314         * lib/group-member.c: Include group-member.h first.
82315         Include <stdlib.h> unconditionally.
82316
82317         * lib/hard-locale.c: Include hard-locale.h first.
82318         Include <stdlib.h>, <string.h> unconditionally.
82319
82320         * lib/hash.c (free, malloc): Remove decls.
82321         Include <stdlib.h> unconditionally.
82322
82323         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82324         (getenv): Do not declare.
82325
82326         * lib/idcache.c: Include <string.h> unconditionally.
82327
82328         * lib/long-options.c: Include long-options.h first, to test interface.
82329         Include <stdlib.h> unconditionally.
82330
82331         * lib/makepath.c: Include makepath.h first, to test interface.
82332         Include <stdlib.h> and <string.h> unconditionally.
82333
82334         * lib/linebuffer.c: Include <stdlib.h>.
82335         (free): Remove decl.
82336
82337         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82338         stddef.h. rpl_malloc returns void *, not char *.
82339         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82340         prototype.
82341
82342         * lib/md5.h: Include <limits.h> unconditionally.
82343         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82344         (__P): Remove; all uses removed.
82345         * lib/md5.c: Include "md5.h" first.
82346         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82347         md5_buffer, md5_process_bytes, md5_process_block):
82348         Define with prototypes.
82349         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82350         * lib/sha.c: Include "sha.h" first.
82351         Include <stdlib.h>, <string.h> unconditionally.
82352
82353         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82354         * lib/memcmp.c (__ptr_t): Likewise.
82355         * lib/memrchr.c (__ptr_t): Likewise.
82356         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82357         Include <string.h> unconditionally.
82358         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82359         * lib/memchr.c: Include <stdlib.h> unconditionally.
82360         * lib/memchr.c (LONG_MAX): Remove.
82361         * lib/memrchr.c (LONG_MAX): Likewise.
82362         * lib/memchr.c (__memchr): Define via a prototype.
82363         * lib/memrchr.c (__memrchr): Likewise.
82364         * lib/memcmp.c (__P): Remove, and remove all uses.
82365         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82366         Remove forward decls; no longer needed.
82367         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82368         Use types required by C89 in prototype.
82369
82370         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82371         * lib/savedir.c: Likewise.
82372         * lib/mkdir.c (free): Remove decl.
82373         * lib/rmdir.c (rmdir): Define with a prototype.
82374         * lib/savedir.c: Include savedir.h first, to test interface.
82375
82376         * lib/mktime.c (STDC_HEADERS): Remove.
82377         Include <stdlib.h>, <string.h> unconditionally.
82378
82379         * lib/modechange.c: Include <stdlib.h> unconditionally.
82380         (malloc): Remove decl.
82381
82382         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82383         (free): Remove decl.
82384
82385         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82386         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82387         (This type really should be intptr_t, but that's a C99ism.)
82388         (_obstack_memcpy): Remove: all uses changed to memcpy.
82389         Include <string.h> unconditionally.
82390         (struct obstack): Assume __STDC__ for types of members
82391         chunkfun, freefun, extra_arg.
82392         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82393         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82394         obstack_begin, obstack_specify_allocation,
82395         obstack_specify_allocation_with_arg, obstack_chunkfun,
82396         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82397         Remove unprototyped decls and the macros that use them.
82398         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82399         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82400         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82401         (defined __STDC__ && __STDC__)]:
82402         Remove nonprototyped code.
82403         Include <stdlib.h> unconditionally.
82404         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82405         _obstack_allocated_p, _obstack_free, obstack_free,
82406         _obstack_memory_used, print_and_abort):
82407         Define using prototypes.
82408         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82409         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82410         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82411         obstack_next_free, obstack_object_size, obstack_room) [0]:
82412         Remove unused, unprototyped code.
82413
82414         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82415
82416         * lib/physmem.c (physmem_total, physmem_available, main): Define
82417         with prototypes.
82418
82419         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82420         (main): Define with a prototype.
82421
82422         * lib/posixver.c (getenv): Remove decl.
82423
82424         * lib/putenv.c (malloc): Returns void *, not char *.
82425         Include <string.h> unconditionally.
82426         (strchr, memcpy, NULL): Do not define.
82427
82428         * lib/readtokens.c: Include readtokens.h first, to test interface.
82429         Include <stdlib.h>, <string.h> unconditionally.
82430         (init_tokenbuffer): Define with a prototype.
82431
82432         * lib/regex.c (PARAMS): Remove.  All uses removed.
82433         All uses of _RE_ARGS removed, too.
82434         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82435         unconditionally.
82436         (bzero): Assume memset exists.
82437         (memcmp, memcpy, NULL): Remove.
82438         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82439         char, or assignments to local vars of type signed char.
82440         (init_syntax_once, PREFIX(extract_number_and_incr),
82441         PREFIX(print_partial_compiled_pattern),
82442         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82443         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82444         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82445         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82446         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82447         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82448         wcs_compile_range, byte_compile_range, truncate_wchar,
82449         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82450         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82451         count_mbs_length, wcs_re_match_2_internal,
82452         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82453         PREFIX(alt_match_null_string_p),
82454         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82455         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82456         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82457         now-unnecessary declaration, if any.
82458         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82459         regcomp, regexec):
82460         Remove now-unnecessary casts among pointer types.
82461         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82462
82463         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82464         (free): Remove decl.
82465
82466         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82467
82468         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82469         (free): Remove decl.
82470
82471         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82472         * lib/xgetcwd.c: Likewise.
82473
82474         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82475         (free): Remove decl.
82476
82477         * lib/strchrnul.c (strchrnul): Define with a prototype.
82478         Fix bug: c_in was not converted to char before searching.
82479
82480         The following changes are not K&R related:
82481
82482         * lib/group-member.h: Include <sys/types.h>, so that this file is
82483         self-contained.
82484         * lib/makepath.h: Likewise.
82485
82486         * lib/getusershell.c (readname, default_index, line_size, readname):
82487         Use size_t, not int, for sizes.
82488         (readname): If the size overflows, report an error instead of
82489         looping forever.
82490
82491 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82492
82493         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82494         libc.
82495
82496 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82497
82498         * README: New section: portability guidelines.
82499
82500 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82501
82502         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82503         C89 spec.
82504
82505 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82506
82507         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82508
82509 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82510
82511         Assume C89 or better; remove K&R cruft.
82512         A few of these changes were first proposed by Derek Robert Price
82513         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82514
82515         * lib/addext.c: Include <string.h> unconditionally.
82516         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82517         Don't declare getenv or malloc.
82518
82519         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82520         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82521         (NULL): Remove.
82522         (find_stack_direction, alloca): Use prototypes.
82523
82524         * lib/atexit.c (atexit): Define using a prototype.
82525
82526         * lib/basename.c, dirname.c, stripslash.c:
82527         Include <string.h> unconditionally.
82528
82529         * lib/bcopy.c: Include <stddef.h>.
82530         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82531
82532         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82533
82534         * lib/error.h (error, error_at_line, error_print_progname)
82535         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82536         * lib/error.c: Include error.h first, to check interface.
82537         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82538         (VA_START): Remove; all uses changeed to va_start.
82539         (exit, strerror): Remove decls.
82540         (error_print_progname): Prototype uncondionally.
82541         Don't include <errno.h>; no longer needed.
82542         (private_strerror): Remove.
82543         (error_tail): Always define.
82544         (error, error_at_line): Assume C89 or better; always use prototypes.
82545         * lib/fatal.c: Include "fatal.h" first, to test interface.
82546         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82547         (VA_START): Remove; all uses changed to va_start.
82548         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82549         this case.
82550         (exit): Remove decl.
82551         (fatal): Prototype unconditionally.  Assume va_start works.
82552         Abort at end, to pacify gcc.
82553
82554         * lib/euidaccess.c (main): Define with a prototype.
82555
82556         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82557
82558         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82559
82560         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82561         prototypes.
82562         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82563         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82564         (getenv): Remove decl.
82565         (fnmatch): Define using a prototype.
82566         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82567         (FCT): Define using a prototype.
82568
82569         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82570
82571         * lib/gethostname.c: Include <stddef.h>.
82572         (gethostname): Define with prototype.  Length is size_t, not int.
82573
82574 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82575
82576         Assume C89 or better; remove K&R cruft.
82577         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82578         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82579         string.h, getenv, malloc.
82580         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82581         headers.
82582         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82583         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82584         do not check for strerror.
82585         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82586         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82587         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82588         do not check for doprnt or vprintf.
82589         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82590         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82591
82592 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82593
82594         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82595         getversion.c should have been removed then, but was accidentally
82596         preserved.
82597
82598         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82599         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82600
82601 2003-09-08  Karl Berry  <karl@gnu.org>
82602
82603         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82604                 config, forget about prep.
82605
82606         * config/depcomp, missing: update from automake.
82607
82608 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82609
82610         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82611         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82612
82613 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82614
82615         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82616         copy_tm_result.  Bug reported by Simon Josefsson in
82617         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82618
82619 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82620
82621         * m4/time_r.m4: New file.
82622         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82623         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82624         is. Check for timegm declaration.
82625         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82626         Do not check for gmtime_r.
82627         Replace mktime if __mktime_internal does not exist and if mktime
82628         hasn't been replaced already.
82629
82630 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82631
82632         * lib/time_r.c, lib/time_r.h: New files.
82633
82634         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82635         __localtime_r.
82636         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82637         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82638
82639         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82640         __gmtime_r.
82641         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82642         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82643         Include <time_r.h>.
82644
82645         * lib/timegm.c: Switch to glibc implementation, with the following
82646         changes:
82647         [defined HAVE_CONFIG_H]: Include <config.h>.
82648         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82649         (__mktime_internal) [!defined _LIBC]: New decl.
82650         (__gmtime_r) [!defined _LIBC]: New macro and function.
82651         (timegm): Use a prototype, since gnulib assumes C89.
82652         Do not bother declaring tmp to be const, as it's not really usefu.
82653         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82654         (timegm): Declare only if HAVE_DECL_TIMEGM.
82655
82656 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82657
82658         * MODULES.html.sh (func_all_modules): Add time_r.
82659         * modules/time_r: New file.
82660         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82661         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82662
82663 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82664
82665         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82666         Bug reported by Lute Kamstra in
82667         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82668
82669         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82670         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82671         course with correspondingly smaller numbers for tomorrow and
82672         yesterday.  From Tadayoshi Funaba.  Originally installed into
82673         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82674         coreutils merge?).
82675
82676 2003-08-31  Simon Josefsson  <jas@extundo.com>
82677
82678         * modules/timegm: New file.
82679         * MODULES.html.sh (func_all_modules): Add timegm.
82680
82681 2003-08-31  Simon Josefsson  <jas@extundo.com>
82682
82683         * m4/timegm.m4: New file.
82684
82685 2003-08-31  Simon Josefsson  <jas@extundo.com>
82686
82687         * lib/timegm.h: New file.
82688         * lib/timegm.c: New file.  Based on
82689         wget-1.8.2/src/http.c:mktime_from_utc.
82690
82691 2003-08-31  Karl Berry  <karl@gnu.org>
82692
82693         * lib/argp.h: update from libc.
82694
82695 2003-08-28  Bruno Haible  <bruno@clisp.org>
82696
82697         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82698         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82699         followed by '#define fnmatch fnmatch_posix' gives an error.
82700
82701 2003-08-28  Bruno Haible  <bruno@clisp.org>
82702
82703         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82704         warning on QNX, which defines O_BINARY to 000000.
82705
82706 2003-08-27  Jim Meyering  <jim@meyering.net>
82707
82708         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82709         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82710         would fail after 32.  Reported by Danny Levinson.  Details here:
82711         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82712
82713 2003-08-24  Bruno Haible  <bruno@clisp.org>
82714
82715         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82716         MSVC7 <stdio.h> is included later.
82717
82718 2003-08-22  Simon Josefsson  <jas@extundo.com>
82719
82720         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82721
82722 2003-08-20  Karl Berry  <karl@gnu.org>
82723
82724         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82725
82726 2003-08-20  Bruno Haible  <bruno@clisp.org>
82727
82728         * modules/progname: New file.
82729         * MODULES.html.sh (func_all_modules): Add progname.
82730
82731 2003-08-20  Bruno Haible  <bruno@clisp.org>
82732
82733         * lib/progname.h: New file, from GNU gettext.
82734         * lib/progname.c: New file, from GNU gettext.
82735         * lib/progreloc.c: New file, from GNU gettext.
82736
82737 2003-08-19  Jim Meyering  <jim@meyering.net>
82738
82739         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82740         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82741
82742 2003-08-19  Bruno Haible  <bruno@clisp.org>
82743
82744         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82745         more.
82746
82747 2003-08-19  Bruno Haible  <bruno@clisp.org>
82748
82749         * lib/xstrdup.c: Assume <string.h> exists.
82750
82751 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82752
82753         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82754         in makefile rules.
82755
82756 2003-08-18  Jim Meyering  <jim@meyering.net>
82757
82758         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82759         * m4/lib-ld.m4: Likewise.
82760
82761 2003-08-18  Jim Meyering  <jim@meyering.net>
82762
82763         * lib/setenv.h: Indent nested cpp directive.
82764         * lib/vasnprintf.c: Remove trailing blanks.
82765
82766 2003-08-17  Simon Josefsson  <jas@extundo.com>
82767
82768         * modules/xstrndup: New file.
82769         * MODULES.html.sh (func_all_modules): Add xstrndup.
82770
82771 2003-08-17  Simon Josefsson  <jas@extundo.com>
82772
82773         * modules/argp: Fix autoconf macro name. Add more dependencies.
82774
82775 2003-08-17  Simon Josefsson  <jas@extundo.com>
82776
82777         * m4/xstrndup.m4: New file.
82778
82779 2003-08-17  Simon Josefsson  <jas@extundo.com>
82780
82781         * m4/argp.m4: New file.
82782
82783 2003-08-17  Simon Josefsson  <jas@extundo.com>
82784             Bruno Haible  <bruno@clisp.org>
82785
82786         * lib/xstrndup.h: New file.
82787         * lib/xstrndup.c: New file.
82788
82789 2003-08-17  Bruno Haible  <bruno@clisp.org>
82790
82791         * modules/strndup (Files, Include): Add lib/strndup.h.
82792
82793 2003-08-17  Bruno Haible  <bruno@clisp.org>
82794
82795         * modules/euidaccess (Files): Add lib/euidaccess.h.
82796
82797 2003-08-17  Bruno Haible  <bruno@clisp.org>
82798
82799         * lib/strndup.h: New file.
82800
82801 2003-08-17  Bruno Haible  <bruno@clisp.org>
82802
82803         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82804         like AC_GNU_SOURCE.
82805         * modules/extensions (configure.ac): Comment out the invocation of
82806         gl_USE_SYSTEM_EXTENSIONS.
82807
82808 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82809
82810         Merges from coreutils, etc.
82811         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82812         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82813         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82814         fixing a typo.
82815         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82816         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82817
82818 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82819
82820         Document merge from coreutils.
82821         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82822         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82823         * modules/utime: Add m4/utimes-null.m4.
82824
82825 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82826
82827         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82828         space, undoing this 2003-08-12 change:
82829         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82830
82831 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82832
82833         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82834         strtoul.c from libc, undoing this 2003-08-12 change:
82835         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82836
82837 2003-08-16  Jim Meyering  <jim@meyering.net>
82838
82839         Merges from coreutils.
82840         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82841         prefix.  Adjust cache variables similarly.  Create 500 rather than
82842         just 300 files, to exercise bug on Darwin6.5, too.
82843         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82844         $missing_dir.
82845         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82846         AM_SYS_POSIX_TERMIOS.
82847         Reported by mkc@mathdogs.com.
82848         Also change use of $am_cv_sys_posix_termios
82849         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82850         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82851         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82852         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82853         in /proc/mounts until it finds one with matching device number.  This
82854         is unnecessary when the FILE argument *is* a mount point.  No stat call
82855         is necessary in that case.  So, disable the statvfs-testing code on
82856         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82857         as RedHat bug# 84846.
82858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82859         to 1MB, so as not to render systems with no stack size limit (e.g.,
82860         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82861         Include <unistd.h>.  On some systems,
82862         it is required for the definition of _SC_PAGESIZE.
82863
82864 2003-08-16  Jim Meyering  <jim@meyering.net>
82865
82866         Merge from coreutils.
82867         * lib/xstrtoimax.c: #else #if -> #elif.
82868         * lib/xstrtoumax.c: Likewise.
82869
82870 2003-08-16  Jim Meyering  <jim@meyering.net>
82871
82872         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82873         * m4/utimes.m4: Removed.
82874         * m4/utimes-null.m4: Renamed from utimes.m4.
82875
82876         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82877         to 1MB, so as not to render systems with no stack size limit (e.g.,
82878         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82879         Include <unistd.h>.  On some systems,
82880         it is required for the definition of _SC_PAGESIZE.
82881
82882 2003-08-16  Jim Meyering  <jim@meyering.net>
82883         and Paul Eggert  <eggert@cs.ucla.edu>
82884
82885         Merges from coreutils, etc.
82886
82887         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82888         using the latest version from cvs.  This avoids problems with #line
82889         directives using a vendor (Sun) compiler.
82890         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82891         Don't set GETGROUPS_LIB here; now it's
82892         done via getgroups.m4's wrapper function.
82893         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82894         rather than just in sh-util/configure.in, so that the
82895         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82896         same.
82897         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82898         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82899         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82900         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82901         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82902         Remove code that is now done by the newly-required macros.
82903         Append $(EXEEXT) to DF_PROG.
82904         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82905         Do not invoke or require the following here,
82906         since prereq.m4 or some gnulib .m4 now does this for us:
82907         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82908         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82909         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82910         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82911         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82912         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82913         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82914         AC_FUNC_OBSTACK.
82915         Do not replace the following functions, as this is now the job
82916         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82917         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82918         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82919         atexit getpass, strdup, getpagesize.
82920         Replace 'raise'.
82921         Do not check for the following functions, as this is now the job
82922         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82923         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82924         setregid.
82925         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82926         Check for sys/sysctl.h.
82927         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82928         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82929         of checking for ssize_t ourselves.
82930
82931         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82932         Require every macro that gnulib/modules/* suggests for us.
82933         (jm_PREREQ_ADDEXT): New macro.
82934         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82935         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82936
82937         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82938         (gl_PHYSMEM): Use it.
82939         Also check for `table' function.
82940         Check for new headers and functions.
82941         Add check for sys/sysmp.h.
82942         With suggestions from Kaveh Ghazi.
82943         Ignore headers that are present but cannot be compiled.  This
82944         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82945         C 5.4.
82946
82947 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82948
82949         Document merge from coreutils.
82950         * modules/userspec: Depend on posixver.
82951         * modules/strftime: Depend on tzset.
82952
82953 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82954
82955         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82956         rather than tab, after '#' in shell-script copyright notices.
82957         Suggested by Bruno Haible.
82958
82959 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82960
82961         * config/srclist-update: Use three spaces, rather than tab, after '#'
82962         in shell-script copyright notices.  Suggested by Bruno Haible.
82963         Remove unnecessary parenthesization in regular expression.
82964
82965 2003-08-15  Jim Meyering  <jim@meyering.net>
82966
82967         Merge from coreutils.
82968         * lib/xgethostname.c: Include <stdlib.h>.
82969         (xghostname): Don't exit for anything other than memory-related
82970         failure; just return NULL.
82971         * lib/userspec.c: Include "posixver.h".
82972         (parse_user_spec): Accept `.' as a separator only
82973         in pre-POSIX-200112 mode.
82974         * lib/strtoimax.c: Use #elif rather than #else #if.
82975         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82976         Remove function, now that we can rely on a working tzset function.
82977         [!_LIBC]: Ensure that the required autoconf test has been run.
82978         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82979         Use underlying_strftime for %r.
82980         * lib/sha.c: Merge in some clean-up and optimization changes from
82981         glibc.
82982         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82983         Ensure that it is a multiple of 64.
82984         Rearrange loop exit tests so as to avoid performing an
82985         additional fread after encountering an error or EOF.
82986         * lib/realloc.c: Update copyright date.
82987
82988 2003-08-15  Jim Meyering  <jim@meyering.net>
82989         and Paul Eggert  <eggert@twinsun.com>
82990
82991         Merge from coreutils.
82992         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82993         member but strut utmpx does not.  Needed for AIX 4.3.3.
82994         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82995
82996 2003-08-15  Jim Meyering  <jim@meyering.net>
82997         and Paul Eggert  <eggert@cs.ucla.edu>
82998
82999         Merges from coreutils, etc.
83000         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83001         Require gl_FUNC_TZSET_CLOBBER.
83002         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83003         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83004         members.
83005
83006 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83007
83008         Help the merge from coreutils.
83009         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83010         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83011         * m4/tzset.m4: Use it too.
83012
83013 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83014
83015         * modules/tzset: New file.
83016
83017 2003-08-14  Jim Meyering  <jim@meyering.net>
83018
83019         Merges from coreutils.
83020         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83021         variable names, rather than @FNMATCH_H@.
83022         * modules/alloca: Likewise for $(ALLOCA_H).
83023
83024         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83025         the three copies of the literal target, `fnmatch.h'.
83026         * modules/alloca (alloca.h): Likewise.
83027
83028 2003-08-14  Jim Meyering  <jim@meyering.net>
83029
83030         Merge from coreutils.
83031         * m4/tzset.m4: New file.
83032         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83033         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83034         otherwise, AIX 5.1 systems would end up using the latter.
83035         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83036         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83037         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83038         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83039
83040 2003-08-14  Jim Meyering  <jim@meyering.net>
83041
83042         Merge from coreutils.
83043         * lib/obstack.h: Whitespace changes.
83044         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83045         and xcalloc return values.
83046         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83047         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83048         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83049         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83050         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83051         error from mntctl.
83052         Use mntctl's return value to drive the entry-processing loop, since
83053         we can't rely on the value of the vmt_length member in the last
83054         entry.  On some systems doing so could result in exhausting
83055         virtual memory.  Based in part on a patch from Mike Jetzer.
83056
83057 2003-08-14  Jim Meyering  <jim@meyering.net>
83058         and Paul Eggert  <eggert@twinsun.com>
83059
83060         Merges from coreutils, plus other fixes.
83061         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83062         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83063         for credits and details.  Thanks to Kaveh Ghazi for helping
83064         to keep these files in sync.
83065         (ARRAY_SIZE): Define it.
83066         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83067         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83068         (memcasecmp): Don't assume size_t fits in unsigned int.
83069         Remove casts and duplicate code.
83070         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83071         (memcpy): Remove definition.
83072         Merge in some clean-up and optimization changes from glibc.
83073         [BLOCKSIZE]: Move definition to top of file.
83074         Ensure that it is a multiple of 64.
83075         Rearrange loop exit tests so as to avoid performing an
83076         additional fread after encountering an error or EOF.
83077         * lib/md5.h (md5_uintptr): Define.
83078         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83079         return to the initial working directory.  Preserve errno
83080         for caller.
83081         * lib/idcache.c: Include "xalloc.h".
83082         (xmalloc, xrealloc): Remove decls.
83083         (getuser): Remove casts no longer required in C89.
83084         * lib/human.c: Include stdio.h, for sprintf.
83085         * lib/group-member.c: Include "xalloc.h".
83086         (xmalloc, xrealloc): Remove decls.
83087         (get_group_info): Remove casts no longer required in C89.
83088         * lib/getusershell.c (readname): Remove casts no longer required in
83089         C89.
83090         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83091         * lib/getline.c: Whitespace fix, from coreutils.
83092
83093 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83094
83095         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83096         Check for isascii.
83097
83098         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83099         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83100         Undo previous (whitespace-only) change.
83101
83102 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83103
83104         * lib/exclude.c: Include <ctype.h>
83105         (IN_CTYPE_DOMAIN): New macro.
83106         (is_space): New fn.
83107         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83108         and empty lines.
83109
83110         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83111         Undo previous (whitespace-only) change.
83112
83113 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83114
83115         * config/srclist-update: Change update back to the old behavior,
83116         leaving whitespace alone.  Use one 'sed' command rather than a
83117         pipeline.
83118         (fixlicense): Now a variable, not a function.
83119         (remove_trailing_blanks): Remove.
83120         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83121         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83122         Undo previous (whitespace-only) change.
83123
83124 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83125
83126         Merge from coreutils.
83127         * modules/euidaccess: Add lib_SOURCES, include for new
83128         file euidaccess.h
83129
83130 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83131
83132         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83133         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83134         Normalize leading white space and remove trailing white space.
83135
83136         Merge from coreutils
83137         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83138
83139         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83140         0.12.1.  These files are now being upgraded automatically by
83141         ../config/srclist-update.
83142
83143 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83144
83145         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83146         Normalize leading white space and remove trailing white space.
83147         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83148         notice, as per ../config/srclist-update.
83149
83150         Merge from coreutils.
83151         * lib/euidaccess.h: New file.
83152         * lib/euidaccess.c: Include it.
83153         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83154         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83155         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83156
83157 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83158
83159         * config/srclist-update: Add copyright notice.
83160         (remove_id_lines, remove_trailing_blanks): New constants.
83161         (fixfile): Use them to normalize spacing a bit in copied files.
83162         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83163         Normalize leading white space and remove trailing white space.
83164
83165         * config/texinfo.tex: Sync with texinfo.
83166
83167         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83168         strtoul.c from libc, to merge coreutils whitespace changes.
83169
83170         * config/srclist.txt: Get the following m4 files from gettext:
83171         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83172         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83173         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83174         wint_t.m4.
83175
83176 2003-08-12  Karl Berry  <karl@gnu.org>
83177
83178         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83179         been made.
83180
83181 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83182
83183         * modules/gnu-source, m4/gnu-source.m4:
83184         Remove; we're assuming Autoconf 2.54 or later now.
83185         Suggested by Bruno Haible.
83186         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83187
83188 2003-08-11  Bruno Haible  <bruno@clisp.org>
83189
83190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83191
83192 2003-08-11  Bruno Haible  <bruno@clisp.org>
83193
83194         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83195         (vasnprintf): Use it instead of wcslen.
83196
83197 2003-08-11  Bruno Haible  <bruno@clisp.org>
83198
83199         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83200         value to ensure that _Bool promotes to int. Use #define for _Bool when
83201         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83202
83203 2003-08-10  Karl Berry  <karl@gnu.org>
83204
83205         * lib/regex.h: update from libc (whitespace fix).
83206
83207 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83208
83209         Merge some files from coreutils.  These changes were
83210         originally made by Jim Meyering.
83211         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83212         many older Unixes require this.
83213         * lib/alloca.c (alloca): Remove cast to argument of free;
83214         no longer needed in C89.
83215         * lib/alloca_.h, regex.h: Fix white space to match
83216         what GNU indent does.
83217
83218 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83219
83220         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83221         apparently Emacs's Unicode mode got confused before my 2003-08-05
83222         checkin.
83223
83224 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83225
83226         * m4/extensions.m4: New file.
83227         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83228         Require gl_USE_SYSTEM_EXTENSIONS.
83229         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83230         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83231
83232 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83233
83234         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83235         * modules/extensions, modules/gnu-source: New files.
83236         * modules/timespec, modules/unlocked-io: Depend on extensions.
83237
83238 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83239
83240         * modules/restrict: New file.
83241         * MODULES.html.sh (func_all_modules): Add restrict.
83242         * modules/regex: Depend on restrict.
83243
83244 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83245
83246         * m4/restrict.m4: New file.
83247         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83248
83249 2003-08-07  Bruno Haible  <bruno@clisp.org>
83250
83251         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83252         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83253
83254 2003-08-07  Bruno Haible  <bruno@clisp.org>
83255
83256         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83257         makes the module 'getndelim2' compatible with the module 'getline'.
83258
83259 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83260
83261         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83262         byte with "\201" to avoid glitches when editing that source file
83263         with multi-gnome-terminal.
83264
83265 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83266
83267         * lib/bumpalloc.h: Remove.
83268
83269 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83270
83271         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83272         * modules/bumpalloc: Remove.
83273
83274 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83275
83276         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83277         GNU coding style.
83278
83279         Merge from coreutils.
83280         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83281         1. From glibc.
83282         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83283         from Karl Berry, implemented by Jim Meyering.
83284         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83285         from Dmitry V. Levin.
83286         Remove anachronistic cast of xrealloc.
83287         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83288         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83289         type. Otherwise, it wouldn't compile with at least /bin/cc on
83290         ymp-cray-unicos9.0.2.X.
83291         Combine two mostly-identical uses of alloca into one.
83292         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83293
83294 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83295
83296         [From Emacs.]
83297
83298         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83299         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83300         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83301         obsolete NLIST_NAME_UNION.
83302         [__GNU__]: Undef BSD and FSCALE.
83303         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83304
83305 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83306
83307         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83308         an enum type, so that it's guaranteed to promote to int.  See:
83309         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83310
83311 2003-08-03  Karl Berry  <karl@gnu.org>
83312
83313         * config/depcomp: update from automake.
83314
83315 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83316
83317         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83318         (strerror): Don't assume that a printable int fits in 14 bytes.
83319
83320 2003-07-31  Bruno Haible  <bruno@clisp.org>
83321
83322         * modules/getpass-gnu: New file.
83323         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83324
83325 2003-07-31  Bruno Haible  <bruno@clisp.org>
83326
83327         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83328
83329 2003-07-24  Karl Berry  <karl@gnu.org>
83330
83331         * config/missing: update from automake.
83332
83333 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83334             Bruno Haible  <bruno@clisp.org>
83335
83336         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83337         * lib/getline.c (getline, getdelim): Likewise.
83338         Remove _GNU_SOURCE define; now it's defined in config.h through
83339         m4/getline.m4.
83340
83341 2003-07-23  Karl Berry  <karl@gnu.org>
83342
83343         * config/config.sub: update from prep.
83344
83345 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83346
83347         * modules/xalloc (Depends-on): Add exitfail.
83348         * modules/xmemcoll: Likewise.
83349
83350 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83351
83352         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83353         over-parenthesization in macros.
83354
83355         Sync with coreutils.
83356
83357         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83358         required by C99.
83359
83360         Use `exit_failure' for xalloc and xmemcoll instead of their own
83361         private exit-failure variables.
83362         * lib/xalloc.h (xalloc_exit_failure): Remove.
83363         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83364         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83365         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83366         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83367         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83368
83369 2003-07-20  Jim Meyering  <jim@meyering.net>
83370
83371         * modules/closeout (Depends-on): Add exitfail.
83372         Suggestion from Bruno Haible.
83373
83374 2003-07-19  Karl Berry  <karl@gnu.org>
83375
83376         * config/config.sub: update from prep.
83377
83378 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83379
83380         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83381         Remove.
83382         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83383         to test that it can stand by itself.  Include "exitfail.h".
83384         Clients should set exit_failure instead.
83385         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83386
83387 2003-07-18  Bruno Haible  <bruno@clisp.org>
83388
83389         * modules/getndelim2: New file.
83390         * modules/getline: Share files with module getndelim2.
83391         * modules/getnline: Depend on getndelim2 instead of sharing files with
83392         it. Add getnline.c to lib_SOURCES.
83393         * MODULES.html.sh (func_all_modules): Add getndelim2.
83394
83395 2003-07-18  Bruno Haible  <bruno@clisp.org>
83396
83397         * m4/getndelim2.m4: New file.
83398         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83399         invoke gl_PREREQ_GETNDELIM2.
83400         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83401         gl_PREREQ_GETNDELIM2.
83402         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83403         gl_GETNDELIM2.
83404
83405 2003-07-18  Bruno Haible  <bruno@clisp.org>
83406
83407         * lib/getndelim2.h: New file.
83408         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83409         getndelim2.h.
83410         (getndelim2): Make non-static. Change return type to ssize_t.
83411         * lib/getline.h: Change argument names.
83412         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83413         * lib/getnline.c: Include getndelim2.h.
83414
83415 2003-07-18  Andreas Schwab  <schwab@suse.de>
83416
83417         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83418
83419 2003-07-17  Karl Berry  <karl@gnu.org>
83420
83421         * config/config.sub: update from prep.
83422
83423 2003-07-17  Bruno Haible  <bruno@clisp.org>
83424
83425         * modules/getnline: New file.
83426         * modules/getline: Add lib/getndelim2.c to source file list.
83427         * MODULES.html.sh (func_all_modules): Add getnline.
83428
83429 2003-07-17  Bruno Haible  <bruno@clisp.org>
83430
83431         * m4/getnline.m4: New file.
83432
83433 2003-07-17  Bruno Haible  <bruno@clisp.org>
83434
83435         * m4/Makefile.am.in: Remove file.
83436         * m4/Makefile.am: Remove file.
83437         * m4/Makefile.in: Remove file.
83438
83439 2003-07-17  Bruno Haible  <bruno@clisp.org>
83440
83441         * lib/getnline.h: New file.
83442         * lib/getnline.c: New file.
83443         * lib/getndelim2.c: New file, extracted from getline.c.
83444         (getndelim2): Renamed from getdelim2, with added nmax argument.
83445         * lib/getline.c: Include getndelim2.c.
83446         (getdelim2): Moved out to getndelim2.c.
83447         (getline, getdelim): Update.
83448
83449 2003-07-17  Bruno Haible  <bruno@clisp.org>
83450
83451         * lib/Makefile.am: Remove file.
83452         * lib/Makefile.in: Remove file.
83453
83454 2003-07-17  Bruno Haible  <bruno@clisp.org>
83455
83456         * configure.in: Remove file.
83457         * Makefile.in: Remove file.
83458
83459 2003-07-17  Bruno Haible  <bruno@clisp.org>
83460
83461         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83462
83463 2003-07-16  Karl Berry  <karl@gnu.org>
83464
83465         * config/srclist-update: was running fixlicense twice, which caused
83466                 texinfo.tex to be nullified for some reason.  Simplify,
83467                 $gplsrc is no longer needed as far as I can see?
83468
83469 2003-07-16  Jim Meyering  <jim@meyering.net>
83470
83471         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83472
83473 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83474
83475         * config/srclist.txt: Get the following files from gettext-runtime/intl
83476         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83477         ref-del.sin.  From Bruno Haible.
83478         * config/srclist-update (fixfile): Change grep pattern again, since the
83479         previous fix didn't work (there was another trailing $).  Use
83480         '[$]' to escape the $s.
83481
83482 2003-07-15  Karl Berry  <karl@gnu.org>
83483
83484         * lib/vasnprintf.c: update from gettext.
83485
83486 2003-07-15  Karl Berry  <karl@gnu.org>
83487
83488         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83489         gets expanded when surrounded by '$'.
83490
83491 2003-07-15  Jim Meyering  <jim@meyering.net>
83492
83493         * modules/save-cwd: Don't depend on error.  From Derek Price.
83494
83495 2003-07-15  Jim Meyering  <jim@meyering.net>
83496
83497         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83498
83499 2003-07-14  Simon Josefsson  <jas@extundo.com>
83500
83501         * modules/mempcpy: New file.
83502         * MODULES.html.sh (func_all_modules): Add mempcpy.
83503
83504 2003-07-14  Simon Josefsson  <jas@extundo.com>
83505
83506         * m4/mempcpy.m4: New file.
83507
83508 2003-07-14  Simon Josefsson  <jas@extundo.com>
83509
83510         * lib/mempcpy.h: New file.
83511         * lib/mempcpy.c: New file.
83512
83513 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83514
83515         * modules/getdate, modules/posixtm: Depend on mktime.
83516
83517 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83518
83519         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83520         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83521         unicodeio.c, unicodeio.h, unlocked-io.h:
83522         Switch from LGPL to GPL.
83523
83524 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83525
83526         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83527         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83528         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83529         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83530         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83531         updated automatically by ../config/srclist-update.  This changes
83532         their license from LPGL to GPL.
83533
83534 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83535
83536         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83537         assumed to refer to the root of the most recent stable gettext version.
83538         * config/srclistvars.sh: Add defaults for eggert.
83539         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83540         Match "This program" as well as "The program".  This is needed
83541         for gettext.
83542
83543 2003-07-14  Jim Meyering  <jim@meyering.net>
83544
83545         Don't emit diagnostics.  Let callers do that.
83546         * lib/save-cwd.c: Don't include "error.h".
83547         (save_cwd): Don't call error.  Ensure that errno is valid
83548         when returning nonzero.
83549
83550         * lib/save-cwd.h (restore_cwd): Update prototype.
83551         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83552         Simplify.  Don't call error upon failure.  Let callers do that.
83553         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83554         when auditing is enabled.  But don't bother updating the #if.
83555
83556 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83557
83558         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83559         it breaks C++ compilation.
83560         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83561
83562 2003-07-10  Simon Josefsson  <jas@extundo.com>
83563
83564         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83565
83566 2003-07-10  Jim Meyering  <jim@meyering.net>
83567
83568         * m4/clock_time.m4: Remove trailing blank.
83569         * m4/intmax_t.m4: Likewise.
83570
83571 2003-07-10  Jim Meyering  <jim@meyering.net>
83572
83573         * lib/vasnprintf.c: Remove trailing blanks.
83574         Make cpp indentation consistent.
83575
83576 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83577
83578         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83579         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83580         Switch from LGPL to GPL.
83581
83582 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83583
83584         * config/srclist.txt: Sort sublists.  Add
83585         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83586         that differ from gnulib for one reason or another; we'd like this list
83587         to be smaller but for now let's document what we have.
83588
83589 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83590
83591         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83592         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83593         and sweeter "eval x=$x".
83594         * config/srclist.txt: Get lib/argp* from glibc.
83595
83596 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83597
83598         * lib/mktime.c: Fix some boundary cases and remove need for floating
83599         point.
83600
83601         Issue a compile-time diagnostic if time_t is floating point, or if
83602         two's complement arithmetic is not in effect, or if arithmetic
83603         right shift does not propagate the sign.  These assumptions were
83604         all in the original code but they weren't checked.
83605
83606         (TIME_T_MIDPOINT, verify): New macros.
83607         (__isleap): Remove; it has integer overflow problems.
83608         (leapyear): New function, without those problems.
83609         (ydhms_tm_diff): Remove; splitting into two parts.
83610         (ydhms_diff): New function, containing the arithmetic part of
83611         the old ydhms_tm_diff function.  Issue a compile-time
83612         diagnostic if we are not using C99 integer division.
83613         Avoid casts when possible.
83614         (guess_time_tm): New function, containing the checking part of
83615         the old ydhms_tm_diff function.  Return the new value, rather than
83616         the difference between it and the old.  Accept a new argument T
83617         so that *T specifies the old value.  Check for overflow in the result.
83618
83619         (__mktime_internal): Use a time_t offset, not a long int offset.
83620         This undoes the 2003-06-04 change, which is no longer needed now
83621         that we have better overflow checking.
83622         (localtime_offset): Likewise.
83623
83624         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83625         and long are 64-bit but int is only 32-bit.
83626         (ydhms_diff): Use long int to store year1 and yday1.
83627         Issue a compile-time diagnostic if long int is not wide enough.
83628
83629         (__mktime_internal): Use long int to store adjusted year and yday.
83630         Use plain C rather than preprocessor commands, if that doesn't
83631         affect efficiency.
83632         Check for overflow (and try to repair) after each probe
83633         rather than checking only at the very end.  This avoids some bugs
83634         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83635         does not equal GMT offset at maximum time).
83636         Use integer to check for overflow rather than floating point; this
83637         is more portable to non-IEEE hosts, and is a tad faster.
83638         When we detect that we are oscillating between two values,
83639         don't check whether tm_isdst has the requested value, since
83640         we already know the answer.  When tm_isdst has the wrong value,
83641         use a different heuristic to find the right one, based on the
83642         extreme values actually observed in practice in tz2003a,
83643         rather than the (overly optimistic) "previous 3 calendar quarters".
83644
83645         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83646         "T const" to accommodate glibc style.
83647         (check_result): Use less-confusing report format.  "long" -> "long int.
83648         (main): Likewise.
83649         Don't loop if the iteration overflows time_t.
83650         Allow a negative step in the iteration.
83651
83652 2003-07-06  Karl Berry  <karl@gnu.org>
83653
83654         * config/depcomp: update from automake.
83655         * config/config.sub: update from prep.
83656
83657 2003-07-03  Karl Berry  <karl@gnu.org>
83658
83659         * config/config.guess: update from prep.
83660
83661 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83662
83663         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83664         xreadlink.c now includes it unconditionally.
83665
83666 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83667
83668         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83669         having it depend on HAVE_SYS_TYPES_H.
83670
83671 2003-07-01  Bruno Haible  <bruno@clisp.org>
83672
83673         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83674         <sys/types.h> should be sufficient.
83675         Reported by Paul Eggert.
83676
83677 2003-06-26  Karl Berry  <karl@gnu.org>
83678
83679         * config/depcomp: update from automake.
83680
83681 2003-06-26  Bruno Haible  <bruno@clisp.org>
83682
83683         * modules/human: Depend on module stdbool.
83684
83685 2003-06-25  Bruno Haible  <bruno@clisp.org>
83686
83687         * modules/readlink: New file.
83688         * modules/xreadlink: Depend on it.
83689         * MODULES.html.sh (func_all_modules): Add readlink.
83690
83691 2003-06-25  Bruno Haible  <bruno@clisp.org>
83692
83693         * m4/readlink.m4: New file.
83694
83695 2003-06-25  Bruno Haible  <bruno@clisp.org>
83696
83697         * lib/readlink.c: New file.
83698
83699 2003-06-22  Karl Berry  <karl@gnu.org>
83700
83701         * config/srclist.txt: update mkinstalldirs from automake.
83702         * config/mkinstalldirs: update.
83703
83704 2003-06-22  Bruno Haible  <bruno@clisp.org>
83705
83706         Portability to mingw32.
83707         * m4/ssize_t.m4: New file, from GNU gettext.
83708         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83709         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83710
83711 2003-06-22  Bruno Haible  <bruno@clisp.org>
83712
83713         * modules/safe-read: Add m4/ssize_t.m4.
83714         * modules/xreadlink: Add m4/ssize_t.m4.
83715
83716 2003-06-20  Bruno Haible  <bruno@clisp.org>
83717
83718         Assume C89, so PARAMS isn't needed.
83719         * lib/unicodeio.h (PARAMS): Remove.
83720         * lib/unicodeio.c: Don't use PARAMS.
83721
83722 2003-06-18  Karl Berry  <karl@gnu.org>
83723
83724         * config/config.{guess,sub}: update from prep.
83725
83726 2003-06-18  Jim Meyering  <jim@meyering.net>
83727
83728         Merge changes from coreutils.
83729         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83730         Remove explicit declarations of xmalloc and realloc.
83731         Include xalloc.h.
83732         (read_utmp): Remove anachronistic cast of xmalloc.
83733
83734 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83735
83736         Assume C89, so PARAMS isn't needed.
83737         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83738         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83739         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83740         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83741         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83742         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83743         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83744         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83745         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83746         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83747         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83748         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83749         no longer needed. Anyway, config.h should always be included before any
83750         other file.
83751
83752 2003-06-11  Simon Josefsson  <jas@extundo.com>
83753
83754         * modules/sysexits: New file.
83755         * MODULES.html.sh (func_all_modules): Add sysexits.
83756
83757 2003-06-11  Simon Josefsson  <jas@extundo.com>
83758
83759         * lib/sysexit_.h: New file.
83760
83761 2003-06-11  Derek Price  <derek@ximbiot.com>
83762
83763         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83764         necessary.
83765
83766 2003-06-11  Bruno Haible  <bruno@clisp.org>
83767
83768         * m4/sysexits.m4: New file.
83769
83770 2003-06-10  Simon Josefsson  <jas@extundo.com>
83771
83772         * lib/argp.h: New file, from glibc.
83773         * lib/argp-ba.c: New file, from glibc.
83774         * lib/argp-eexst.c: New file, from glibc.
83775         * lib/argp-fmtstream.c: New file, from glibc.
83776         * lib/argp-fmtstream.h: New file, from glibc.
83777         * lib/argp-fs-xinl.c: New file, from glibc.
83778         * lib/argp-help.c: New file, from glibc.
83779         * lib/argp-namefrob.h: New file, from glibc.
83780         * lib/argp-parse.c: New file, from glibc.
83781         * lib/argp-pv.c: New file, from glibc.
83782         * lib/argp-pvh.c: New file, from glibc.
83783         * lib/argp-xinl.c: New file, from glibc.
83784
83785 2003-06-10  Simon Josefsson  <jas@extundo.com>
83786
83787         * modules/strchrnul: New file.
83788
83789 2003-06-10  Simon Josefsson  <jas@extundo.com>
83790
83791         * modules/argp: New file.
83792
83793 2003-06-10  Simon Josefsson  <jas@extundo.com>
83794
83795         * m4/strchrnul.m4: New file.
83796
83797 2003-06-10  Simon Josefsson  <jas@extundo.com>
83798
83799         * lib/strchrnul.h: New file.
83800         * lib/strchrnul.c: New file.
83801
83802 2003-06-10  Bruno Haible  <bruno@clisp.org>
83803
83804         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83805
83806 2003-06-07  Karl Berry  <karl@gnu.org>
83807
83808         * config/config.{guess,sub}: update from prep.
83809
83810 2003-06-07  Jim Meyering  <jim@meyering.net>
83811
83812         * modules/strtod: Use $(...) notation, not @...@ for
83813         AC_REPLACE'd variables.
83814         * modules/localcharset: Likewise.
83815
83816 2003-06-07  Jim Meyering  <jim@meyering.net>
83817
83818         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83819         in place of my name in the copyright comment.
83820         Remove definition and uses of __P.
83821
83822         From coreutils.
83823         * lib/stat.c: Don't declare xmalloc explicitly.
83824         Instead, include "xalloc.h".
83825         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83826         xrealloc, and xcalloc return values.
83827         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83828         Improve comment.
83829         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83830
83831 2003-06-07  Bruno Haible  <bruno@clisp.org>
83832
83833         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83834         avoid AC_CONFIG_LINKS.
83835         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83836         fnmatch.h, to avoid AC_CONFIG_LINKS.
83837         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83838
83839 2003-06-07  Bruno Haible  <bruno@clisp.org>
83840
83841         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83842         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83843         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83844         directory.
83845         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83846         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83847         directory.
83848
83849 2003-06-06  Jim Meyering  <jim@meyering.net>
83850
83851         Merge from coreutils.
83852         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83853         Consolidate declarations and initializations of *_base* locals.
83854
83855         Merge from coreutils.
83856         This avoids a core dump on systems without GNU putenv,
83857         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83858         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83859         (unsetenv): New static function, from GNU libc.
83860         (rpl_putenv): Use it.
83861
83862         * lib/modechange.c: Remove trailing blanks.
83863
83864         Merge from coreutils.
83865         * lib/fsusage.c: Remove declaration of statfs.
83866         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83867
83868         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83869
83870 2003-06-06  Jim Meyering  <jim@meyering.net>
83871
83872         * lib/stdbool_.h: Renamed from stdbool.h.in.
83873
83874 2003-06-06  Jim Meyering  <jim@meyering.net>
83875             Bruno Haible  <bruno@clisp.org>
83876
83877         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83878         Adjust Makefile.am snippet not to redirect directly to target.
83879         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83880
83881 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83882
83883         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83884         mismatch, look in future quarters as well as past.  This fixes a
83885         bug when processing fall-backwards gaps immediately after a long
83886         period of daylight-saving time.
83887
83888         * lib/mktime.c: Assume freestanding C89 or better.
83889         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83890         (__P): Remove; not used.
83891         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83892         (mktime, not_equal_tm, print_tm, check_result,
83893         main): Use prototypes.  Use const * where appropriate.
83894         (main): Fix typo in testing code that uncovered by above changes.
83895         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83896
83897 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83898
83899         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83900         locale.h, localeconv.  This merges changes from coreutils.
83901
83902         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83903         It can be removed after the next Autoconf is released.
83904         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83905         needed.
83906
83907 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83908
83909         * lib/mktime.c: Fix Debian bug 177940
83910         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83911         (localtime_offset): Now long int, not time_t, because we want it
83912         to be guaranteed to be signed.  All uses changed.
83913         (__mktime_internal): If overflow would occur when adding offset,
83914         don't add it.
83915
83916         Merge 'human' changes from coreutils.  Rewrite to support
83917         locale-specific notations like thousands separators.
83918         * lib/human.c: Simplify authorship notice.
83919         Include human.h immediately after config.h.
83920         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83921         <limits.h>: Do not include, since human.h does.
83922         (SIZE_MAX, UINTMAX_MAX): New macros.
83923         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83924         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83925         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83926         (power_letter): Renamed from suffixes.
83927         (generate_suffix_backwards): Remove.
83928         (adjust_value): Now takes int style (because of human.h changes)
83929         and long double value (for greater precision on some platforms).
83930         (group_number): New function.
83931         (human_readable): Use it.  Use integer options, not enum.
83932         Put the options before the sizes in the arg list.
83933         Support all the new options.
83934         The old human_readable function has been removed;
83935         use inttostr.h instead.
83936         (human_readable, default_block_size, humblock):
83937         Use uintmax_t, not int, for block sizes.
83938         (human_readable_inexact, block_size_types): Remove.
83939         (block_size_opts): New constant.
83940         (human_options): Renamed from human_block_size, with new signature
83941         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83942         * lib/human.h: Add copyright and authorship notice.
83943         Include <limits.h> and <stdbool.h> unconditionally.
83944         (PARAMS): Remove.  All uses removed.
83945         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83946         (enum human_inexact_style): Remove tag; now a nameless enum.
83947         (human_floor, human_ceiling, human_round_to_even): Now have
83948         values 2, 0, 1 rather than -1, 1, 0.
83949         (human_group_digits, human_suppress_point_zero, human_autoscale,
83950         human_base_1024, human_SI, human_B): New constants.
83951         (human_readable_inexact, human_block_size): Remove.
83952         (human_readable): Size args are now uintmax_t, not int.
83953         (human_options): New decl.
83954
83955         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83956         unnecessary now that we assume C89 or better.  This change
83957         imported from coreutils.
83958
83959         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83960         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83961         in the 2003-05-30 sync from glibc.
83962
83963         .h files should stand alone, but we shouldn't include <sys/types.h>
83964         if we can get away with just <stddef.h>.
83965
83966         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83967         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83968         rather than <sys/types.h>, as we merely need size_t.
83969         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83970         to get size_t.
83971         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83972         Include <stdio.h>, to get FILE.
83973         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83974         memcasecmp.h has included <stddef.h> and all we need is size_t.
83975         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83976         our interface, instead of including <sys/types.h>
83977
83978 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83979
83980         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83981         now, as glibc mktime is buggy on non-glibc systems.
83982
83983 2003-06-03  Karl Berry  <karl@gnu.org>
83984
83985         * config/config.sub: update from prep.
83986
83987 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83988
83989         [from coreutils]
83990         Fix some minor time-related bugs with POSIX time arguments.
83991         Some valid time stamps were being rejected (notably -1, and
83992         time stamps before 1900 on 64-bit hosts).  And some invalid
83993         time stamps were being accepted, e.g. September 31.
83994
83995         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83996         that we can return (time_t) -1 successfully.
83997         * lib/posixtm.c: Likewise.
83998         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83999         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84000         (t): Remove static var.
84001         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84002         of static var.  All uses changed.
84003         (year): Do not reject years before 1900; they can occur with
84004         64-bit time_t.
84005         (posix_time_parse): Do not check for out-of-range components;
84006         that is now the caller's responsibility, since our checks were
84007         only approximations.
84008         (posixtime): Use mktime to check for out-of-range components,
84009         since it knows them exactly.
84010         If mktime returns (time_t) -1, check whether an error actually occurred
84011         by invoking localtime on -1.
84012         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84013         posixtime failures better.
84014         Improve the test data (in comments only).
84015
84016 2003-06-02  Karl Berry  <karl@gnu.org>
84017
84018         * config/mkinstalldirs (version): new variable.
84019         (--version): new option.
84020         (usage): improve message.
84021
84022 2003-05-30  Karl Berry  <karl@gnu.org>
84023
84024         * lib/mktime.c: update from libc.
84025
84026 2003-05-30  Bruno Haible  <bruno@clisp.org>
84027
84028         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84029         * config/config.rpath: Upgrade to gettext-0.12.1.
84030
84031 2003-05-30  Bruno Haible  <bruno@clisp.org>
84032
84033         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84034         * m4/nls.m4: New file, from gettext-0.12.1.
84035         * m4/po.m4: New file, from gettext-0.12.1.
84036         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84037
84038 2003-05-30  Bruno Haible  <bruno@clisp.org>
84039
84040         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84041         * lib/localcharset.h: Likewise.
84042         * lib/localcharset.c: Likewise.
84043
84044 2003-05-29  Karl Berry  <karl@gnu.org>
84045
84046         * config/config.rpath: update from gettext.
84047
84048 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84049
84050         Assume the headers required for C89 freestanding compilers.
84051         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84052         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84053         * m4/human.m4 (gl_HUMAN): Likewise.
84054         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84055         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84056         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84057         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84058         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84059         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84060
84061 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84062
84063         Assume the headers required for C89 freestanding compilers.
84064         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84065         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84066         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84067         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84068         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84069         define, since <limits.h> is guaranteed to do that.
84070         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84071         * lib/exclude.c: Include <stdbool.h> unconditionally.
84072         * lib/tempname.c: Include <stddef.h> unconditionally.
84073         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84074         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84075         <stddef.h> does that.
84076         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84077         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84078         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84079         needed.
84080         * lib/xstrtol.c: Likewise.
84081         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84082         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84083
84084         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84085         warnings on some platforms.
84086
84087         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84088         arbitrarily.
84089
84090 2003-05-26  Jim Meyering  <jim@meyering.net>
84091
84092         Merge in a change from coreutils:
84093         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84094         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84095         that condition, rather than `-1' which is slightly misleading.
84096         Change the name of the cache variable to have the gl_ prefix.
84097         Prompted by a patch from Richard Dawe for DJGPP.
84098
84099 2003-05-24  Karl Berry  <karl@gnu.org>
84100
84101         * config/config.guess: update from prep.
84102
84103 2003-05-22  Karl Berry  <karl@gnu.org>
84104
84105         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84106
84107 2003-05-20  Karl Berry  <karl@gnu.org>
84108
84109         * config/config.guess: update from prep.
84110
84111 2003-05-18  Karl Berry  <karl@gnu.org>
84112
84113         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84114         might actually be set by the user.
84115
84116         * config/depcomp, install-sh, mdate-sh: update from automake.
84117
84118 2003-05-17  Bruno Haible  <bruno@clisp.org>
84119
84120         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84121         invalid expansion for AC_EGREP_CPP.
84122         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84123         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84124         Suggested by Akim Demaille <akim@epita.fr> in
84125         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84126
84127 2003-05-12  Jim Meyering  <jim@meyering.net>
84128
84129         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84130         the space-padded-by-default conversion specifiers, %e, %k, %l.
84131
84132 2003-05-12  Bruno Haible  <bruno@clisp.org>
84133
84134         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84135         the string is longer than 4 KB.
84136
84137 2003-05-11  Karl Berry  <karl@gnu.org>
84138
84139         * config/config.{guess,sub}: update from prep.
84140
84141 2003-05-09  Bruno Haible  <bruno@clisp.org>
84142
84143         * modules/error: Add m4/strerror_r.m4 to file list.
84144
84145 2003-05-03  Bruno Haible  <bruno@clisp.org>
84146
84147         Upgrade to Unicode-4.0.
84148         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84149         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84150         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84151         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84152         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84153         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84154         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84155         Change width of U+E0100..U+E01EF from 1 to 0.
84156
84157 2003-04-25  Jim Meyering  <jim@meyering.net>
84158
84159         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84160         of type size_t, not int.
84161
84162 2003-04-25  Bruno Haible  <bruno@clisp.org>
84163
84164         * lib/copy-file.c: Include <stddef.h>, for size_t.
84165
84166 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84167
84168         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84169         code which expansion is under static control.  Patch imported from
84170         Akim Demaille's patch to Bison; see
84171         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84172
84173 2003-04-14  Bruno Haible  <bruno@clisp.org>
84174
84175         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84176
84177 2003-04-11  Jim Meyering  <jim@meyering.net>
84178
84179         Merge changes from Coreutils.
84180
84181         2003-03-22  Jim Meyering  <jim@meyering.net>
84182
84183         * lib/strftime.c (widen): Cast alloca return value to proper type.
84184
84185         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84186
84187         From GNU libc.
84188         * lib/strftime.c (my_strftime): Handle very large width
84189         specifications for numeric values correctly.  Improve checks for
84190         overflow.
84191
84192         2003-01-19  Jim Meyering  <jim@meyering.net>
84193
84194         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84195         definitions.
84196         (nl_get_alt_digit) [! defined my_strftime]: Define.
84197         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84198         _nl_get_alt_digit and _nl_get_walt_digit.
84199
84200         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84201         libc. These changes have no effect outside of _LIBC.
84202
84203 2003-04-10  Bruno Haible  <bruno@clisp.org>
84204
84205         * modules/findprog: New file.
84206         * MODULES.html.sh (func_all_modules): Add it.
84207
84208 2003-04-10  Bruno Haible  <bruno@clisp.org>
84209
84210         * m4/findprog.m4: New file.
84211         * m4/eaccess.m4: New file.
84212
84213 2003-04-10  Bruno Haible  <bruno@clisp.org>
84214
84215         * lib/findprog.h: New file, from GNU gettext.
84216         * lib/findprog.c: New file, from GNU gettext.
84217
84218 2003-04-05  Jim Meyering  <jim@meyering.net>
84219
84220         Merge changes from Coreutils.
84221
84222         * lib/exclude.h (PARAMS): Remove definition and uses.
84223         * lib/exclude.c: Remove uses of `PARAMS'.
84224
84225         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84226         Add test-cases for DOS filenames. Declare program_name.
84227         (main): Set up program_name.  Patch by Rich Dawe.
84228
84229         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84230         error from mntctl.
84231         Use mntctl's return value to drive the entry-processing loop, since
84232         we can't rely on the value of the vmt_length member in the last
84233         entry.  On some systems doing so could result in exhausting
84234         virtual memory.  Based in part on a patch from Mike Jetzer.
84235
84236 2003-04-04  Bruno Haible  <bruno@clisp.org>
84237
84238         * modules/linebreak: New file.
84239         * MODULES.html.sh (func_all_modules): Add it.
84240
84241 2003-04-04  Bruno Haible  <bruno@clisp.org>
84242
84243         * m4/linebreak.m4: New file.
84244
84245 2003-04-04  Bruno Haible  <bruno@clisp.org>
84246
84247         * lib/linebreak.h: New file, from GNU gettext.
84248         * lib/linebreak.c: New file, from GNU gettext with slight
84249         modifications.
84250         * lib/lbrkprop.h: New file, from GNU gettext.
84251
84252 2003-04-03  Bruno Haible  <bruno@clisp.org>
84253
84254         * modules/utf8-ucs4: New file.
84255         * modules/utf16-ucs4: New file.
84256         * modules/ucs4-utf8: New file.
84257         * modules/ucs4-utf16: New file.
84258         * MODULES.html.sh (func_all_modules): Add them.
84259
84260 2003-04-03  Bruno Haible  <bruno@clisp.org>
84261
84262         * m4/utf-ucs4.m4: New file.
84263         * m4/ucs4-utf.m4: New file.
84264
84265 2003-04-03  Bruno Haible  <bruno@clisp.org>
84266
84267         * lib/utf8-ucs4.h: New file, from GNU gettext.
84268         * lib/utf16-ucs4.h: New file, from GNU gettext.
84269         * lib/ucs4-utf8.h: New file, from GNU gettext.
84270         * lib/ucs4-utf16.h: New file, from GNU gettext.
84271
84272 2003-04-02  Bruno Haible  <bruno@clisp.org>
84273
84274         * modules/binary-io: New file.
84275         * MODULES.html.sh (func_all_modules): Add it.
84276
84277 2003-04-02  Bruno Haible  <bruno@clisp.org>
84278
84279         * lib/binary-io.h: New file, from GNU gettext.
84280
84281 2003-04-01  Bruno Haible  <bruno@clisp.org>
84282
84283         * modules/pathname: New file.
84284         * MODULES.html.sh (func_all_modules): Add it.
84285
84286 2003-04-01  Bruno Haible  <bruno@clisp.org>
84287
84288         * lib/pathname.h: New file, from GNU gettext.
84289         * lib/concatpath.c: New file, from GNU gettext.
84290
84291 2003-03-30  Bruno Haible  <bruno@clisp.org>
84292
84293         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84294
84295 2003-03-30  Bruno Haible  <bruno@clisp.org>
84296
84297         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84298         function chown() doesn't exist.
84299
84300 2003-03-28  Bruno Haible  <bruno@clisp.org>
84301
84302         * modules/copy-file: New file.
84303         * MODULES.html.sh (func_all_modules): Add it.
84304
84305 2003-03-28  Bruno Haible  <bruno@clisp.org>
84306
84307         * m4/copy-file.m4: New file.
84308
84309 2003-03-28  Bruno Haible  <bruno@clisp.org>
84310
84311         * lib/copy-file.h: New file, from GNU gettext.
84312         * lib/copy-file.c: New file, from GNU gettext.
84313
84314 2003-03-18  Jim Meyering  <jim@meyering.net>
84315
84316         * lib/quote.c (quote_n): Fix typo in comment.
84317
84318 2003-03-18  Bruno Haible  <bruno@clisp.org>
84319
84320         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84321         checking.
84322         * m4/onceonly_2_57.m4: Likewise.
84323
84324 2003-03-17  Bruno Haible  <bruno@clisp.org>
84325
84326         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84327         (m4_quote): Remove macro.
84328         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84329
84330 2003-03-14  Jim Meyering  <jim@meyering.net>
84331
84332         Merge changes from Coreutils.
84333         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84334         to be const, in order to avoid warnings.
84335         (obstack_room): Likewise.
84336         (obstack_empty_p): Likewise.
84337
84338 2003-03-14  Bruno Haible  <bruno@clisp.org>
84339
84340         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84341         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84342
84343 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84344
84345         Merge changes from Bison.
84346         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84347         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84348         when compiling Bison 1.875's `bitset bset = obstack_alloc
84349         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84350         * lib/hash.c: Include <stdbool.h> unconditionally.
84351
84352 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84353
84354         * m4/onceonly.m4 (m4_quote): New macro.
84355         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84356         Quote AC_FOREACH variable-expansions properly.
84357
84358 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84359
84360         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84361
84362 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84363
84364         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84365         Reported by Bruce Becker; see:
84366         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84367
84368 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84369             Bruno Haible  <bruno@clisp.org>
84370
84371         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84372         Reported by John Hughes, see
84373         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84374
84375 2003-02-20  Bruno Haible  <bruno@clisp.org>
84376
84377         * MODULES.html.sh (func_all_modules): Add poll.
84378
84379 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84380
84381         * modules/poll: New file.
84382
84383 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84384
84385         * lib/poll_.h: New file.
84386         * lib/poll.c: New file.
84387
84388 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84389
84390         * m4/poll.m4: New file.
84391
84392 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84393
84394         * modules/mathl: New file.
84395
84396 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84397
84398         * lib/mathl.h: New file.
84399         * lib/acosl.c: New file.
84400         * lib/asinl.c: New file.
84401         * lib/atanl.c: New file.
84402         * lib/ceill.c: New file.
84403         * lib/cosl.c: New file.
84404         * lib/expl.c: New file.
84405         * lib/floorl.c: New file.
84406         * lib/frexpl.c: New file.
84407         * lib/ldexpl.c: New file.
84408         * lib/logl.c: New file.
84409         * lib/sincosl.c: New file.
84410         * lib/sinl.c: New file.
84411         * lib/sqrtl.c: New file.
84412         * lib/tanl.c: New file.
84413         * lib/trigl.c: New file.
84414         * lib/trigl.h: New file.
84415
84416 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84417
84418         * m4/mathl.m4: New file.
84419
84420 2003-02-18  Bruno Haible  <bruno@clisp.org>
84421
84422         * MODULES.html.sh (func_all_modules): Add mathl.
84423
84424 2003-02-17  Bruno Haible  <bruno@clisp.org>
84425
84426         * modules/mkdtemp: New module.
84427         * MODULES.html.sh (func_all_modules): Add it.
84428
84429 2003-02-17  Bruno Haible  <bruno@clisp.org>
84430
84431         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84432
84433 2003-02-17  Bruno Haible  <bruno@clisp.org>
84434
84435         * lib/mkdtemp.h: New file, from GNU gettext.
84436         * lib/mkdtemp.c: New file, from GNU gettext.
84437
84438 2003-02-02  Jim Meyering  <jim@meyering.net>
84439
84440         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84441         e.g. glibc-2.2.93.
84442
84443 2003-01-31  Bruno Haible  <bruno@clisp.org>
84444
84445         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84446         'rpl_rename'.
84447         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84448         'rpl_strnlen'.
84449         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84450         'rpl_strtod'.
84451         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84452         'rpl_utime'.
84453
84454 2003-01-31  Bruno Haible  <bruno@clisp.org>
84455
84456         * lib/rename.c: #undef rename before defining rpl_rename.
84457         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84458
84459 2003-01-30  Bruno Haible  <bruno@clisp.org>
84460
84461         * modules/vasnprintf, modules/vasprintf: New modules.
84462         * MODULES.html.sh (func_all_modules): Add them.
84463
84464 2003-01-30  Bruno Haible  <bruno@clisp.org>
84465
84466         * m4/signed.m4: New file, from GNU gettext.
84467         * m4/longdouble.m4: New file, from GNU gettext.
84468         * m4/wchar_t.m4: New file, from GNU gettext.
84469         * m4/wint_t.m4: New file, from GNU gettext.
84470         * m4/vasnprintf.m4: New file.
84471         * m4/vasprintf.m4: New file.
84472
84473 2003-01-30  Bruno Haible  <bruno@clisp.org>
84474
84475         * lib/printf-args.h: New file, from GNU gettext.
84476         * lib/printf-args.c: New file, from GNU gettext.
84477         * lib/printf-parse.h: New file, from GNU gettext.
84478         * lib/printf-parse.c: New file, from GNU gettext.
84479         * lib/vasnprintf.h: New file, from GNU gettext.
84480         * lib/vasnprintf.c: New file, from GNU gettext.
84481         * lib/asnprintf.c: New file, from GNU gettext.
84482         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84483         * lib/vasprintf.c: New file, from GNU gettext.
84484         * lib/asprintf.c: New file, from GNU gettext.
84485
84486 2003-01-29  Bruno Haible  <bruno@clisp.org>
84487
84488         * modules/stpncpy: New module.
84489         * MODULES.html.sh (func_all_modules): Add it.
84490
84491 2003-01-29  Bruno Haible  <bruno@clisp.org>
84492
84493         * m4/stpncpy.m4: New file.
84494
84495 2003-01-29  Bruno Haible  <bruno@clisp.org>
84496
84497         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84498         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84499
84500 2003-01-28  Bruno Haible  <bruno@clisp.org>
84501
84502         * modules/c-ctype: New module.
84503         * MODULES.html.sh (func_all_modules): Add it.
84504
84505 2003-01-28  Bruno Haible  <bruno@clisp.org>
84506
84507         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84508         Paul Eggert.
84509         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84510         Paul Eggert.
84511
84512 2003-01-27  Bruno Haible  <bruno@clisp.org>
84513
84514         * modules/xsetenv: New module.
84515         * MODULES.html.sh (func_all_modules): Add it.
84516
84517 2003-01-27  Bruno Haible  <bruno@clisp.org>
84518
84519         * lib/xsetenv.h: New file, from GNU gettext.
84520         * lib/xsetenv.c: New file, from GNU gettext.
84521
84522 2003-01-23  Jim Meyering  <jim@meyering.net>
84523
84524         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84525         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84526
84527 2003-01-23  Bruno Haible  <bruno@clisp.org>
84528
84529         * modules/minmax: New module.
84530         * MODULES.html.sh (func_all_modules): Add it.
84531
84532 2003-01-23  Bruno Haible  <bruno@clisp.org>
84533
84534         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84535         Eggert.
84536
84537 2003-01-22  Bruno Haible  <bruno@clisp.org>
84538
84539         * modules/exit: New module.
84540         * MODULES.html.sh (func_all_modules): Add it.
84541
84542 2003-01-22  Bruno Haible  <bruno@clisp.org>
84543
84544         * lib/exit.h: New file, from GNU gettext.
84545
84546 2003-01-19  Bruno Haible  <bruno@clisp.org>
84547
84548         * gnulib-tool: Recognize option --extract-maintainer.
84549         (func_get_maintainer): New function.
84550         * modules/*: Add Maintainer entry.
84551
84552 2003-01-16  Jim Meyering  <jim@meyering.net>
84553
84554         * m4/regex.m4: The `regex' struct is both input and output.
84555         Initialize it before each use.  Patch by Tim Waugh.
84556
84557 2003-01-16  Bruno Haible  <bruno@clisp.org>
84558
84559         * MODULES.html.sh: Add a table of contents. Add the module name as
84560         leftmost column. Add hyperlinks.
84561
84562 2003-01-15  Bruno Haible  <bruno@clisp.org>
84563
84564         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84565
84566 2003-01-15  Bruno Haible  <bruno@clisp.org>
84567
84568         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84569         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84570         suffix.
84571
84572 2003-01-15  Bruno Haible  <bruno@clisp.org>
84573
84574         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84575
84576 2003-01-15  Bruno Haible  <bruno@clisp.org>
84577
84578         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84579         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84580
84581 2003-01-14  Jim Meyering  <jim@meyering.net>
84582
84583         * lib/same.c (same_name): Tweak a comment.
84584
84585 2003-01-14  Bruno Haible  <bruno@clisp.org>
84586
84587         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84588         when a string comparison is sufficient.
84589
84590 2003-01-14  Bruno Haible  <bruno@clisp.org>
84591
84592         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84593         'unsigned int'.
84594
84595 2003-01-14  Bruno Haible  <bruno@clisp.org>
84596
84597         * lib/hash-pjw.c: Add comment about low quality of this function.
84598
84599 2003-01-13  Bruno Haible  <bruno@clisp.org>
84600
84601         * modules/stpcpy: Distribute lib/stpcpy.h.
84602         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84603
84604 2003-01-13  Bruno Haible  <bruno@clisp.org>
84605
84606         * modules/*: Add a description.
84607         * modules/strpbrk: Fix Makefile.am snippet.
84608         * modules/strtoimax: Fix dependencies.
84609         * modules/strtoumax: Likewise.
84610
84611 2003-01-13  Bruno Haible  <bruno@clisp.org>
84612
84613         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84614         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84615         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84616
84617 2003-01-13  Bruno Haible  <bruno@clisp.org>
84618
84619         * gnulib-tool (func_create_testdir): Store config/* files in the main
84620         directory.
84621         * config.rpath: Move to ...
84622         * config/config.rpath: ... here.
84623         * modules/gettext: Contains config/config.rpath, not config.rpath.
84624         * modules/iconv: Likewise.
84625
84626 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84627
84628         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84629         to avoid collisions with libcurses and libreadline.
84630
84631         * m4/getstr.m4: Remove.
84632         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84633
84634 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84635
84636         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84637         to avoid collisions with libcurses and libreadline.
84638
84639         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84640         * lib/getstr.h, getstr.c: Remove.
84641         * lib/getline.c: Include "getline.h", to check interface.
84642         Move body of old getstr.c here: this defines MIN_CHUNK and
84643         declares getdelim2, which is renamed from getstr.
84644         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84645
84646         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84647         All uses changed.
84648         * lib/linebuffer.h: Likewise.
84649         (readline): Remove backward-compatibility macro.
84650
84651 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84652
84653         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84654         to avoid collisions with libcurses and libreadline.
84655         * getstr: Remove.
84656         * MODULES.html.sh: Remove getstr.
84657         * modules/getline: Depend on unlocked-io, not getstr.
84658
84659 2003-01-12  Jim Meyering  <jim@meyering.net>
84660
84661         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84662
84663 2003-01-10  Bruno Haible  <bruno@clisp.org>
84664
84665         * modules/alloca: Change Makefile.am requirements. Simplify Include
84666         requirements. Add lib/alloca_.h to file list.
84667
84668 2003-01-10  Bruno Haible  <bruno@clisp.org>
84669
84670         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84671
84672 2003-01-10  Bruno Haible  <bruno@clisp.org>
84673
84674         * lib/alloca_.h: New file.
84675         * lib/getdate.y: Unconditionally include alloca.h.
84676         * lib/makepath.c: Likewise.
84677         * lib/setenv.c: Likewise.
84678         * lib/userspec.c: Likewise.
84679
84680 2003-01-09  Karl Berry  <karl@gnu.org>
84681
84682         * MODULES.html.sh: include `dirname $0` in PATH, to find
84683         gnulib-tool.
84684
84685 2003-01-09  Bruno Haible  <bruno@clisp.org>
84686
84687         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84688         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84689
84690 2003-01-09  Bruno Haible  <bruno@clisp.org>
84691
84692         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84693
84694 2003-01-09  Bruno Haible  <bruno@clisp.org>
84695
84696         * lib/stdbool.h.in: New file.
84697
84698 2003-01-09  Bruno Haible  <bruno@clisp.org>
84699
84700         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84701         * MODULES.html.sh: Likewise.
84702
84703 2003-01-08  Jim Meyering  <jim@meyering.net>
84704
84705         * lib/full-write.c: Undefine and define-away `const' after inclusion
84706         of errno.h, not before.  Suggestion from Bruno Haible.
84707
84708 2003-01-08  Bruno Haible  <bruno@clisp.org>
84709
84710         * modules/full-read: Depend on full-write.
84711
84712 2003-01-08  Bruno Haible  <bruno@clisp.org>
84713
84714         * lib/safe-read.c: Include specification header first, to ensure its
84715         selfcontainedness.
84716         * lib/full-write.c: Likewise.
84717
84718 2003-01-07  Jim Meyering  <jim@meyering.net>
84719
84720         * lib/full-write.c: Rework so that it may serve to define full_read,
84721         too.
84722         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84723
84724 2003-01-07  Bruno Haible  <bruno@clisp.org>
84725
84726         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84727         <inttypes.h>.
84728         * lib/xstrtol.h: Likewise.
84729         * lib/xstrtoimax.c: Likewise.
84730         * lib/xstrtoumax.c: Likewise.
84731         * lib/human.h: Likewise.
84732
84733         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84734         on systems that have <inttypes.h> but not <stdint.h>.
84735
84736 2003-01-07  Bruno Haible  <bruno@clisp.org>
84737
84738         * MODULES.html.sh: Add copyright notice.
84739         (missed_files): Omit CVS directory entries.
84740         (func_module): Make it work with sed-3.02.
84741         * MODULES.txt: Remove file.
84742
84743 2003-01-06  Jim Meyering  <jim@meyering.net>
84744
84745         * lib/version-etc.c: Update year in translatable copyright string.
84746
84747 2003-01-03  Karl Berry  <karl@gnu.org>
84748
84749         * config/config.{guess,sub}: update from prep.
84750
84751 2003-01-02  Karl Berry  <karl@gnu.org>
84752
84753         * doc/COPYING.DOC: belatedly updated to 1.2.
84754
84755 2003-01-01  Karl Berry  <karl@gnu.org>
84756
84757         * gnulib-tool (func_verify_module): report module name $module in
84758         error message, not $1.
84759         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84760         be created, only if it doesn't exist.
84761         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84762
84763 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84764
84765         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84766
84767 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84768
84769         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84770         memcmp if strcoll doesn't work.
84771
84772 2002-12-31  Bruno Haible  <bruno@clisp.org>
84773
84774         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84775         nonempty.
84776
84777 2002-12-31  Bruno Haible  <bruno@clisp.org>
84778
84779         * lib/memcoll.c (STRCOLL): New macro.
84780         (memcoll): Use it.
84781
84782 2002-12-31  Bruno Haible  <bruno@clisp.org>
84783
84784         * lib/localcharset.h: New file.
84785         * lib/localcharset.c: Include it.
84786         * lib/unicodeio.c: Likewise.
84787
84788 2002-12-31  Bruno Haible  <bruno@clisp.org>
84789
84790         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84791         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84792
84793 2002-12-31  Bruno Haible  <bruno@clisp.org>
84794
84795         * lib/getline.h: Include <stddef.h>, for size_t.
84796
84797         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84798         * lib/unicodeio.c: Don't include <stddef.h>.
84799
84800 2002-12-31  Bruno Haible  <bruno@clisp.org>
84801
84802         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84803         HAVE_TM_ZONE.
84804
84805 2002-12-24  Karl Berry  <karl@gnu.org>
84806
84807         * config/config.guess: update from prep.
84808
84809 2002-12-24  Bruno Haible  <bruno@clisp.org>
84810
84811         General infrasructure.
84812         * m4/README: Rewritten.
84813         * m4/onceonly.m4: New file.
84814         * m4/onceonly_2_57.m4: New file.
84815
84816         Module atexit.
84817         * m4/atexit.m4: New file.
84818
84819         Module strtod.
84820         * m4/strtod.m4: New file.
84821
84822         Module strtol.
84823         * m4/strtol.m4: New file.
84824
84825         Module strtoul.
84826         * m4/strtoul.m4: New file.
84827
84828         Module memchr.
84829         * m4/memchr.m4: New file.
84830
84831         Module memcmp.
84832         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84833         (jm_FUNC_MEMCMP): Invoke it.
84834
84835         Module memcpy.
84836         * m4/memcpy.m4: New file.
84837
84838         Module memmove.
84839         * m4/memmove.m4: New file.
84840
84841         Module memset.
84842         * m4/memset.m4: New file.
84843
84844         Module strcspn.
84845         * m4/strcspn.m4: New file.
84846
84847         Module strpbrk.
84848         * m4/strpbrk.m4: New file.
84849
84850         Module strstr.
84851         * m4/strstr.m4: New file.
84852
84853         Module strerror.
84854         * m4/strerror.m4: New file.
84855
84856         Module mktime.
84857         * m4/mktime.m4: Renamed from jm-mktime.m4.
84858         (gl_PREREQ_MKTIME): New macro.
84859         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84860
84861         Module malloc.
84862         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84863         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84864         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84865
84866         Module realloc.
84867         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84868         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84869         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84870
84871         Module strftime.
84872         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84873         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84874         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84875         gl_TM_GMTOFF.
84876         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84877
84878         Module xalloc.
84879         * m4/xalloc.m4: New file.
84880
84881         Module alloca.
84882         * m4/alloca.m4: New file.
84883
84884         Module putenv.
84885         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84886         (jm_FUNC_PUTENV): Invoke it.
84887
84888         Module setenv.
84889         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84890         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84891         when invoked twice.
84892         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84893         gt_FUNC_SETENV.
84894
84895         Module memrchr.
84896         * m4/memrchr.m4: New file.
84897
84898         Module stpcpy.
84899         * m4/stpcpy.m4: New file.
84900
84901         Module strcase.
84902         * m4/strcase.m4: New file.
84903
84904         Module strdup.
84905         * m4/strdup.m4: New file.
84906
84907         Module strnlen.
84908         * m4/strnlen.m4: New file.
84909
84910         Module strndup.
84911         * m4/strndup.m4: New file.
84912
84913         Module xstrtod.
84914         * m4/xstrtod.m4: New file.
84915
84916         Module xstrtol.
84917         * m4/xstrtol.m4: New file.
84918
84919         Module getdate.
84920         * m4/getdate.m4: New file.
84921
84922         Module unlocked-io.
84923         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84924         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84925         * m4/jm-glibc-io.m4n: Remove file.
84926
84927         Module long-options.
84928         * m4/long-options.m4: New file.
84929
84930         Module md5.
84931         * m4/md5.m4: New file.
84932
84933         Module sha.
84934         * m4/sha.m4: New file.
84935
84936         Module getstr.
84937         * m4/getstr.m4: New file.
84938
84939         Module getline.
84940         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84941         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84942         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84943         simply getline. Infoke gl_PREREQ_GETLINE.
84944
84945         Module obstack.
84946         * m4/obstack.m4: New file.
84947
84948         Module hash.
84949         * m4/hash.m4: New file.
84950
84951         Module readtokens.
84952         * m4/readtokens.m4: New file.
84953
84954         Module strverscmp.
84955         * m4/strverscmp.m4: New file.
84956
84957         Module stdbool.
84958         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84959         OSF/1.
84960
84961         Module strtoll.
84962         * m4/strtoll.m4: New file.
84963
84964         Module strtoull.
84965         * m4/strtoull.m4: New file.
84966
84967         Module strtoimax.
84968         * m4/strtoimax.m4: New file.
84969
84970         Module strtoumax.
84971         * m4/strtoumax.m4: New file.
84972
84973         Module xstrtoimax.
84974         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84975         jm_AC_PREREQ_XSTRTOIMAX.
84976         Moved the strtol prerequisites to strtol.m4.
84977         Moved the strtoll prerequisites to strtoll.m4.
84978         Moved the strtoimax prerequisites to strtoimax.m4.
84979
84980         Module xstrtoumax.
84981         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84982         jm_AC_PREREQ_XSTRTOUMAX.
84983         Moved the strtoul prerequisites to strtoul.m4.
84984         Moved the strtoull prerequisites to strtoull.m4.
84985         Moved the strtoumax prerequisites to strtoumax.m4.
84986
84987         Module chown.
84988         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84989         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84990
84991         Module dup2.
84992         * m4/dup2.m4: New file.
84993
84994         Module ftruncate.
84995         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84996         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84997
84998         Module getgroups.
84999         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85000         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85001
85002         Module gettimeofday.
85003         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85004         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85005         gl_PREREQ_GETTIMEOFDAY.
85006
85007         Module mkdir.
85008         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85009         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85010
85011         Module mkstemp.
85012         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85013         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85014         jm_AC_TYPE_UINTMAX_T.
85015         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85016
85017         Module stat.
85018         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85019         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85020
85021         Module lstat.
85022         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85023         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85024
85025         Module timespec.
85026         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85027         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85028         * m4/st_mtim.m4: Indentation.
85029
85030         Module nanosleep.
85031         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85032         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85033         gl_PREREQ_NANOSLEEP.
85034
85035         Module regex.
85036         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85037         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85038         (gl_REGEX): New macro.
85039
85040         Module rename.
85041         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85042         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85043
85044         Module rmdir.
85045         * m4/rmdir.m4: New file.
85046
85047         Module utime.
85048         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85049         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85050         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85051
85052         Module dirname.
85053         * m4/dirname.m4: New file.
85054
85055         Module getopt.
85056         * m4/getopt.m4: New file.
85057
85058         Module unistd-safer.
85059         * m4/unistd-safer.m4: New file.
85060
85061         Module fnmatch.
85062         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85063         declaration.
85064         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85065         (gl_FUNC_FNMATCH_POSIX): New macro.
85066         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85067         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85068         simply fnmatch.
85069
85070         Module exclude.
85071         * m4/exclude.m4: New file.
85072
85073         Module human.
85074         * m4/human.m4: New file.
85075
85076         Module acl.
85077         * m4/acl.m4: Nop.
85078
85079         Module backupfile.
85080         * m4/backupfile.m4: New file.
85081         * m4/d-ino.m4: Indentation.
85082
85083         Module fsusage.
85084         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85085         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85086         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85087
85088         Module dirfd.
85089         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85090         requirements.
85091
85092         Module euidaccess.
85093         * m4/euidaccess.m4: New file.
85094
85095         Module file-type.
85096         * m4/file-type.m4: New file.
85097
85098         Module fileblocks.
85099         * m4/fileblocks.m4: New file.
85100
85101         Module filemode.
85102         * m4/filemode.m4: New file.
85103
85104         Module isdir.
85105         * m4/isdir.m4: New file.
85106
85107         Module lchown.
85108         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85109         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85110
85111         Module makepath.
85112         * m4/makepath.m4: New file.
85113
85114         Module modechange.
85115         * m4/modechange.m4: New file.
85116
85117         Module mountlist.
85118         * m4/mountlist.m4: New file.
85119         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85120         Indentation.
85121
85122         Module path-concat.
85123         * m4/path-concat.m4: New file.
85124
85125         Module pathmax.
85126         * m4/pathmax.m4: New file.
85127
85128         Module same.
85129         * m4/same.m4: New file.
85130
85131         Module save-cwd.
85132         * m4/save-cwd.m4: New file.
85133
85134         Module savedir.
85135         * m4/savedir.m4: New file.
85136
85137         Module xgetcwd.
85138         * m4/xgetcwd.m4: New file.
85139         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85140
85141         Module xreadlink.
85142         * m4/xreadlink.m4: New file.
85143
85144         Module safe-read.
85145         * m4/safe-read.m4: New file.
85146
85147         Module safe-write.
85148         * m4/safe-write.m4: New file.
85149
85150         Module closeout.
85151         * m4/closeout.m4: New file.
85152
85153         Module stdio-safer.
85154         * m4/stdio-safer.m4: New file.
85155
85156         Module getpass.
85157         * m4/getpass.m4: New file.
85158
85159         Module getugroups.
85160         * m4/getugroups.m4: New file.
85161
85162         Module group-member.
85163         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85164         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85165
85166         Module idcache.
85167         * m4/idcache.m4: New file.
85168
85169         Module userspec.
85170         * m4/userspec.m4: New file.
85171
85172         Module gettime.
85173         * m4/clock_time.m4: New file.
85174         * m4/gettime.m4: New file.
85175
85176         Module settime.
85177         * m4/settime.m4: New file.
85178
85179         Module posixtm.
85180         * m4/posixtm.m4: New file.
85181
85182         Module gethostname.
85183         * m4/gethostname.m4: New file.
85184
85185         Module canon-host.
85186         * m4/canon-host.m4: New file.
85187
85188         Module gettext.
85189         * m4/codeset.m4: New file, from gettext-0.11.5.
85190         * m4/gettext.m4: New file, from gettext-0.11.5.
85191         * m4/glibc21.m4: New file, from gettext-0.11.5.
85192         * m4/iconv.m4: New file, from gettext-0.11.5.
85193         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85194         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85195         * m4/inttypes.m4: New file, from gettext-0.11.5.
85196         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85197         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85198         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85199         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85200         * m4/lib-link.m4: New file, from gettext-0.11.5.
85201         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85202         * m4/progtest.m4: New file, from gettext-0.11.5.
85203         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85204         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85205         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85206
85207         Module localcharset.
85208         * m4/localcharset.m4: New file.
85209
85210         Module hard-locale.
85211         * m4/hard-locale.m4: New file.
85212
85213         Module mbswidth.
85214         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85215         onceonly macros.
85216         * m4/mbrtowc.m4: Add comment.
85217
85218         Module memcasecmp.
85219         * m4/memcasecmp.m4: New file.
85220
85221         Module memcoll.
85222         * m4/memcoll.m4: New file.
85223
85224         Module unicodeio.
85225         * m4/unicodeio.m4: New file.
85226
85227         Module rpmatch.
85228         * m4/rpmatch.m4: New file.
85229
85230         Module yesno.
85231         * m4/yesno.m4: New file.
85232
85233         Module exitfail.
85234         * m4/exitfail.m4: New file.
85235
85236         Module c-stack.
85237         * m4/c-stack.m4 (gl_C_STACK): New macro.
85238         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85239
85240         Module error.
85241         * m4/error.m4 (gl_ERROR): New macro.
85242         (jm_PREREQ_ERROR): Use onceonly macros.
85243
85244         Module fatal.
85245         * m4/fatal.m4: New file.
85246
85247         Module getloadavg.
85248         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85249         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85250
85251         Module getpagesize.
85252         * m4/getpagesize.m4: New file.
85253
85254         Module getusershell.
85255         * m4/getusershell.m4: New file.
85256
85257         Module physmem.
85258         * m4/physmem.m4: New file.
85259
85260         Module posixver.
85261         * m4/posixver.m4: New file.
85262
85263         Module quotearg.
85264         * m4/quotearg.m4: New file.
85265
85266         Module quote.
85267         * m4/quote.m4: New file.
85268
85269         Module readutmp.
85270         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85271
85272         Module sig2str.
85273         * m4/sig2str.m4: New file.
85274
85275         Other.
85276         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85277         ulonglong.m4.
85278         * m4/intmax_t.m4: New file.
85279         * m4/d-type.m4: Indentation.
85280         * m4/jm-macros.m4: Update.
85281         * m4/prereq.m4 (jm_PREREQ): Update.
85282         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85283         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85284         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85285         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85286         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85287         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85288         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85289         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85290         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85291         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85292         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85293         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85294         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85295         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85296         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85297         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85298         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85299         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85300         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85301
85302 2002-12-24  Bruno Haible  <bruno@clisp.org>
85303
85304         * MODULES.txt: Update according to m4/ changes.
85305
85306         Module gettext.
85307         * config.rpath: New file, from gettext-0.11.5.
85308
85309         * modules/*: New module descriptions.
85310         * gnulib-tool: New file.
85311         * MODULES.html.sh: New file.
85312
85313 2002-12-21  Karl Berry  <karl@gnu.org>
85314
85315         * doc/fdl.texi: update to version 1.2.
85316
85317 2002-12-19  Karl Berry  <karl@gnu.org>
85318
85319         * config/config.guess: update from prep.
85320
85321 2002-12-18  Bruno Haible  <bruno@clisp.org>
85322
85323         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85324         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85325
85326 2002-12-17  Bruno Haible  <bruno@clisp.org>
85327
85328         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85329         stdlib.h, string.h.
85330
85331 2002-12-17  Bruno Haible  <bruno@clisp.org>
85332
85333         * lib/canon-host.c (strdup): Remove unused declaration.
85334
85335         * lib/fsusage.c: Include full_read.h.
85336         (get_fs_usage): Use full_read instead of safe_read.
85337
85338         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85339
85340 2002-12-12  Karl Berry  <karl@gnu.org>
85341
85342         * config/config.guess: update from prep.
85343
85344 2002-12-11  Bruno Haible  <bruno@clisp.org>
85345
85346         * m4/setenv.m4: New file, from gettext-0.11.5.
85347
85348 2002-12-11  Bruno Haible  <bruno@clisp.org>
85349
85350         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85351         not unsetenv().
85352         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85353         modifications:
85354
85355         2002-12-11  Bruno Haible  <bruno@clisp.org>
85356
85357                 * setenv.c (alloca): Fall back to malloc.
85358                 (freea): New macro.
85359                 (setenv): Use freea() to free memory allocated with alloca().
85360
85361         2002-11-13  Bruno Haible  <bruno@clisp.org>
85362
85363                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85364                 function declarations.
85365                 * unsetenv.c (unsetenv): Likewise.
85366
85367         2002-03-04  Bruno Haible  <bruno@clisp.org>
85368
85369                 Portability to AIX 4.3.3.
85370                 * unsetenv.c: New file, extracted from setenv.c.
85371                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85372
85373         2001-12-20  Bruno Haible  <bruno@clisp.org>
85374
85375                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85376                 use malloc instead. For SunOS 4.
85377
85378         2001-12-11  Bruno Haible  <bruno@clisp.org>
85379
85380                 * setenv.c: Declare alloca.
85381                 (compar_fn_t): New typedef.
85382                 (KNOWN_VALUE, STORE_VALUE): Use it.
85383
85384         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85385         setenv.h.
85386
85387 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85388
85389         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85390         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85391         Choose values that are less likely to collide with system fnmatch
85392         options.
85393         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85394         defined (e.g., a pure POSIX system).
85395         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85396         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85397
85398 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85399
85400         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85401         a pain in practice to deal with generated m4 files.  This change
85402         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85403
85404         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85405         and jm-glibc-io.m4, as they are no longer a special case.
85406         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85407         kludge and the auto-generation stuff.  Check only whether the
85408         functions are declared, not whether they exist, since older hosts
85409         that don't declare the functions can't use the optimization anyway.
85410
85411 2002-12-06  Jim Meyering  <jim@meyering.net>
85412
85413         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85414
85415         Merge in changes from libc's misc/error.c, in preparation
85416         for the merge of gnulib's changes back into libc.
85417
85418         * lib/error.c (_): Define only if not already defined.
85419         Move definition to follow all #include directives.
85420         Include unlocked-io.h only if !_LIBC.
85421         [_LIBC]: Include <libio/libioP.h>.
85422         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85423         (fflush): Tweak definition to use INTUSE.
85424         (putc): Define.
85425
85426 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85427
85428         * lib/alloca.c [defined emacs]: Include "lisp.h".
85429         (xalloc_die) [defined emacs]: New macro.
85430         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85431         [! defined emacs]: Include <xalloc.h>.
85432         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85433         (pointer): Typedef to POINTER_TYPE *.
85434         (malloc): Remove decl; we now always use xmalloc.
85435         (alloca): Use old-style definition, since Emacs needs this.
85436         Check for arithmetic overflow when computing combined size.
85437
85438 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85439
85440         Do not generate unlocked-io.h automatically, since it's easier to
85441         maintain it by hand.
85442
85443         * lib/unlocked-io.h: New file, from GNU diffutils,
85444         but with proper copyright notice and attribution.
85445         * lib/gen-uio: Remove.
85446         * lib/Makefile.am: Add copyright notice.
85447         (libfetish_a_SOURCES): Add unlocked-io.h.
85448         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85449         (DISTCLEANFILES, io_functions): Remove macros.
85450         (EXTRA_DIST): Remove gen_uio.
85451         (unlocked-io.h): Remove rule.
85452
85453 2002-12-04  Jim Meyering  <jim@meyering.net>
85454
85455         Reflect the fact that stat.c and lstat.c are no longer generated.
85456         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85457         (DISTCLEANFILES): Likewise.
85458         (EXTRA_DIST): Likewise.
85459         (all_local): Don't depend on stat.c or lstat.c.
85460         (stat.c, lstat.c): Remove rules.
85461         (EXTRA_DIST): Remove xstat.in.
85462
85463         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85464         * lib/stat.c: New file.  Contents mostly from xstat.in.
85465         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85466         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85467
85468         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85469         too.
85470         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85471
85472 2002-12-03  Jim Meyering  <jim@meyering.net>
85473
85474         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85475         but not semantics, to minimize the differences between these two files.
85476         (safe_read): Change comment to mention SAFE_READ_ERROR.
85477
85478         * lib/safe-read.c (IS_EINTR): Define.
85479         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85480
85481 2002-12-02  Jim Meyering  <jim@meyering.net>
85482
85483         * lib/safe-read.c (EINTR): Define.
85484         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85485         (INT_MAX): Provide fallback.
85486         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85487
85488         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85489
85490 2002-12-02  Bruno Haible  <bruno@clisp.org>
85491
85492         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85493         Define, taken from safe-read.c.
85494         (INT_MAX): Provide fallback.
85495         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85496         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85497
85498         * lib/safe-read.c (EINTR): Remove definition.
85499         (safe_read): Don't use EINTR if it is absent.
85500
85501 2002-12-01  Jim Meyering  <jim@meyering.net>
85502
85503         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85504         zero.
85505         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85506
85507 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85508
85509         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85510         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85511         with `if (! (value < limit)) abort ();', for readability.
85512
85513 2002-11-26  Karl Berry  <karl@gnu.org>
85514
85515         * lib/strdup.c: copy from libc again, with jim's ok.
85516         * lib/.cppi-disable: re-add strdup.c
85517
85518 2002-11-25  Karl Berry  <karl@gnu.org>
85519
85520         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85521         instead of "strtol.c".
85522
85523 2002-11-25  Karl Berry  <karl@gnu.org>
85524
85525         * config/install-sh: update from automake for variable quoting, $0 in
85526         error msgs, etc.
85527
85528         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85529         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85530         entry.
85531
85532 2002-11-25  Jim Meyering  <jim@meyering.net>
85533
85534         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85535
85536 2002-11-24  Karl Berry  <karl@gnu.org>
85537
85538         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85539         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85540
85541 2002-11-24  Jim Meyering  <jim@meyering.net>
85542
85543         Update from coreutils:
85544
85545         * lib/mktime.c: Merge in changes from libc.
85546
85547         Avoid a link-time failure on some Linux systems.
85548         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85549         (otherwise).
85550         (__mon_yday): Declare with the STATIC attribute.
85551         (__mktime_internal): Likewise.
85552         Based on a report from Greg Schafer.
85553
85554 2002-11-23  Jim Meyering  <jim@meyering.net>
85555
85556         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85557         Use `unsigned', not `int', as type of index.
85558
85559         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85560
85561         * lib/fsusage.c: Remove unneeded parentheses around operands of
85562         `defined'.
85563
85564 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85565
85566         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85567         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85568         so that we can be included first.
85569         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85570         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85571         No need to include stddef.h or sys/types.h any more.
85572         Surround local include files with "", not "<>".
85573         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85574         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85575         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85576         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85577         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85578         (ISPRINT): Remove; no longer needed now that we assume C89.
85579
85580         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85581         Preserve errno.
85582
85583         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85584         quotearg_char): Use SIZE_MAX rather than
85585         (size_t) -1 when we are talking about "infinity".
85586
85587         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85588
85589 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85590
85591         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85592         hint that one should use `if (! x) abort ();' rather than `assert
85593         (x);', and anyway it's one less thing to worry about configuring.
85594         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85595         hash_rehash, hash_insert): Use abort rather than assert.
85596
85597 2002-11-22  Bruno Haible  <bruno@clisp.org>
85598
85599         * lib/safe-read.h: Assume C89. Add comments.
85600         (safe_read): Change return type to size_t.
85601         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85602         byte counts > SSIZE_MAX correctly.
85603         * lib/safe-write.h: New file.
85604         * lib/safe-write.c: New file.
85605         * lib/full-read.h: New file.
85606         * lib/full-read.c: New file.
85607         * lib/full-write.h: Assume C89. Add comments.
85608         * lib/full-write.c: Include safe-write.h.
85609         (full_write): Rewritten to use safe_write.
85610         Suggested by Jim Meyering and Paul Eggert.
85611
85612 2002-11-21  Jim Meyering  <jim@meyering.net>
85613
85614         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85615
85616         Merge in changes from the coreutils.
85617
85618         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85619         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85620         <stdint.h>.
85621         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85622         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85623         int.  Work more efficiently if X is the same width as uintmax_t.
85624         Do not compare X to -1, to avoid bogus compiler warning.
85625         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85626         Don't assume that f_frsize and f_bsize are the same type.
85627
85628         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85629         warning on FreeBSD.
85630
85631         * lib/makepath.c (make_path): Restore umask *before* creating the final
85632         component.
85633         (make_path): Minor reformatting.
85634
85635         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85636         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85637         HAVE_MALLOC/HAVE_REALLOC.
85638
85639         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85640         dummy ones.  At least on GNU/Linux systems, `auto' means something
85641         else.
85642         From Michael Stone.
85643
85644 2002-11-21  Bruno Haible  <bruno@clisp.org>
85645
85646         Remove case insensitive option matching.
85647         * lib/argmatch.h (argcasematch): Remove declaration.
85648         (ARGCASEMATCH): Remove macro.
85649         (__xargmatch_internal): Remove case_sensitive argument.
85650         (XARGMATCH): Update.
85651         (XARGCASEMATCH): Remove macro.
85652         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85653         case_sensitive argument.
85654         (argcasematch): Remove function.
85655         (__xargmatch_internal): Remove case_sensitive argument.
85656         (main): Use XARGMATCH instead of XARGCASEMATCH.
85657
85658         * lib/xmalloc.c: Change compile-time error message. Add comment about
85659         required autoconf version.
85660
85661 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85662
85663         Merge argmatch cleanups from Bison.  Assume C89.
85664
85665         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85666         Include stdlib.h, for EXIT_FAILURE.
85667         Always include <string.h>, since we assume C89.
85668         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85669         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85670         Include <stddef.h> instead, since it's all we need for size_t.
85671         (PARAMS): Remove.  All uses removed.
85672         (ARRAY_CARDINALITY): Do not bother to #undef.
85673         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85674         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85675         Remove unnecessary parentheses.
85676         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85677         Insert necessary parentheses.
85678         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85679         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85680
85681 2002-11-19  Bruno Haible  <bruno@clisp.org>
85682
85683         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85684         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85685
85686         * lib/mbswidth.h (PARAMS): Remove macro.
85687         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85688         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85689
85690         * lib/gcd.h (PARAMS): Remove macro.
85691         (gcd): Use ANSI C function declarations.
85692         * lib/gcd.c (gcd): Likewise.
85693
85694 2002-11-15  Bruno Haible  <bruno@clisp.org>
85695
85696         * lib/strcspn.c: Include <stddef.h>.
85697         (strcspn): Use ANSI C function declaration. Change return type to
85698         size_t. Use NULL.
85699         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85700         (strpbrk): Use NULL.
85701         * lib/strpbrk.h (PARAMS): Remove macro.
85702         (strpbrk): Use ANSI C function declaration.
85703         * lib/strstr.c: Don't include <sys/types.h>.
85704         * lib/strstr.h (PARAMS): Remove macro.
85705         (strstr): Use ANSI C function declarations.
85706
85707 2002-11-14  Karl Berry  <karl@gnu.org>
85708
85709         * config/mkinstalldirs: `do' on separate line, instead of
85710         `for var; do'.
85711
85712 2002-11-06  Bruno Haible  <bruno@clisp.org>
85713
85714         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85715         * lib/gcd.c (gcd): Likewise.
85716
85717 2002-11-05  Bruno Haible  <bruno@clisp.org>
85718
85719         * lib/gcd.h: New file, from gettext-0.11.5.
85720         * lib/gcd.c: New file, from gettext-0.11.5.
85721
85722 2002-11-05  Bruno Haible  <bruno@clisp.org>
85723
85724         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85725         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85726         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85727         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85728
85729         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85730         <libintl.h>.
85731         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85732         <libintl.h>.
85733
85734         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85735         * lib/human.c: Include gettext.h instead of <libintl.h>.
85736         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85737         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85738         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85739         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85740         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85741         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85742         (textdomain): Remove definition.
85743         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85744
85745         * lib/long-options.c: Remove include of <libintl.h> and definition of
85746         _.
85747         * lib/same.c: Remove include of <libintl.h> and definition of _.
85748
85749 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85750
85751         * lib/config.charset: A few additions for Solaris.
85752
85753 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85754
85755         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85756         * lib/localcharset.c (locale_charset): Declare as extern "C".
85757
85758 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85759
85760         * lib/config.charset: msdos in uk_UA uses CP1125.
85761
85762 2002-11-04  Bruno Haible  <bruno@clisp.org>
85763
85764         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85765         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85766         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85767         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85768         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85769
85770 2002-11-04  Bruno Haible  <bruno@clisp.org>
85771
85772         * lib/localcharset.c (locale_charset): Don't return an empty string.
85773
85774 2002-11-04  Bruno Haible  <bruno@clisp.org>
85775
85776         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85777         aliases.
85778
85779 2002-11-04  Bruno Haible  <bruno@clisp.org>
85780
85781         * lib/config.charset: Update for newest glibc. Add canonical names
85782         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85783
85784 2002-11-04  Bruno Haible  <bruno@clisp.org>
85785
85786         * lib/config.charset: Add support for NetBSD.
85787
85788 2002-11-04  Bruno Haible  <bruno@clisp.org>
85789
85790         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85791
85792 2002-11-01  Bruno Haible  <bruno@clisp.org>
85793
85794         * configure.in: Add AC_CONFIG_AUX_DIR call.
85795         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85796         test/Makefile.
85797         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85798
85799 2002-09-28  Karl Berry  <karl@gnu.org>
85800
85801         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85802         installed automake until the next release, since changes have been
85803         made.
85804
85805 2002-09-25  Karl Berry  <karl@gnu.org>
85806
85807         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85808         * lib/getopt*: copy from libc/posix.
85809         * lib/gettext.h: copy from gettext.
85810         * lib/.cppi-disable: add strdup.c, gettext.h.
85811
85812 2002-09-25  Karl Berry  <karl@gnu.org>
85813
85814         * config/srclist.txt: enable gettext.h check.
85815         * config/config.{guess,sub}: update from prep.
85816         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85817                 from automake 1.6.3.
85818         See srclist*.
85819
85820 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85821
85822         * regex.c (PATFETCH): Remove the translating fetch.
85823         (PATFETCH_RAW): Rename to PATFETCH.
85824         (set_image_of_range): New fun.
85825         (SET_RANGE_TABLE_WORK_AREA): Use it.
85826         (regex_compile): Don't translate the pattern chars so eagerly.
85827         Only do it when inserting an `exactn' bytecode or when handling
85828         a char-range.
85829         (mutually_exclusive_p): Avoid empty statement.
85830
85831 2002-07-06  Jim Meyering  <meyering@lucent.com>
85832
85833         * m4/README: Don't mention Makefile.am.in.
85834         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85835
85836 2002-07-01  Jim Meyering  <meyering@lucent.com>
85837
85838         * lib/c-stack.c: Include sys/time.h.
85839         From Volker Borchert.
85840
85841 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85842
85843         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85844
85845 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85846
85847         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85848         New macro.  Use it uniformly instead of
85849         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85850         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85851         reported by Vin Shelton.
85852
85853 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85854
85855         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85856         Do not assume SA_SIGINFO behavior.
85857         Bug reported by Jim Meyering on NetBSD 1.5.2.
85858
85859 2002-06-22  Jim Meyering  <meyering@lucent.com>
85860
85861         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85862         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85863
85864         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85865         now that configure.ac uses AC_GNU_SOURCE.
85866         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85867         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85868
85869         Update to latest tools.  Suggestions from Paul Eggert.
85870         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85871         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85872         * m4/fnmatch.m4: Likewise.
85873         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85874         to AC_HEADER_STDBOOL
85875
85876 2002-06-22  Jim Meyering  <meyering@lucent.com>
85877
85878         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85879         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85880
85881 2002-06-22  Jim Meyering  <meyering@lucent.com>
85882
85883         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85884
85885         * lib/exitfail.c, exitfail.h: Likewise.
85886         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85887
85888         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85889         of fnmatch.h.
85890         (EXTRA_DIST): Add fnmatch_loop.c.
85891         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85892
85893         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85894         * lib/fnmatch.c: Update from diffutils-2.8.2.
85895         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85896         * lib/fnmatch.h: Remove file.
85897
85898 2002-06-21  Jim Meyering  <meyering@lucent.com>
85899
85900         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85901         * m4/mbrtowc.m4: Likewise.
85902
85903         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85904         * m4/mbswidth.m4: Reflect name change:
85905         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85906         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85907
85908         * m4/lib-link.m4: Update from gettext-0.11.2.
85909         * m4/gettext.m4: Likewise.
85910
85911         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85912         From Alfred M. Szmidt.
85913
85914 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85915
85916         * lib/file-type.h: Report an error if neither S_ISREG nor
85917         S_IFREG is defined, instead of using a test specific to glibc
85918         2.2.  This should be safe, since POSIX requires S_ISREG and
85919         Unix Version 7 had S_IFREG.  We don't need to check for
85920         <sys/types.h> since we don't use any symbols that it defines.
85921
85922 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85923
85924         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85925         $@-t, so that each temporary file name is unique and valid in the first
85926         8 characters, for operation under DOS.
85927
85928 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85929
85930         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85931
85932 2002-06-15  Jim Meyering  <meyering@lucent.com>
85933
85934         Work even with DJGPP 2.03, which lacks support for symlinks.
85935         From Richard Dawe.
85936         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85937         is defined.
85938         * lib/lchown.c (S_ISLNK): Likewise.
85939
85940 2002-06-15  Jim Meyering  <meyering@lucent.com>
85941
85942         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85943         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85944         have been included before this file.
85945
85946 2002-06-14  Jim Meyering  <meyering@lucent.com>
85947
85948         * lib/file-type.h: Use the version from diffutils-2.8.2.
85949         * lib/file-type.c: Likewise.
85950
85951 2002-06-07  Jim Meyering  <meyering@lucent.com>
85952
85953         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85954         They're needed at least for NetBSD 1.5.2.
85955         ($statxfs_includes): Include those same headers.
85956         ($statxfs_includes): Include sys/vfs.h if available.
85957         ($statxfs_includes): Likewise for sys/statvfs.h.
85958         Check for the following members in both structs statfs and statvfs:
85959         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85960
85961 2002-06-01  Jim Meyering  <meyering@lucent.com>
85962
85963         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85964         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85965
85966 2002-05-28  Jim Meyering  <meyering@lucent.com>
85967
85968         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85969         Reported by Volker Borchert.
85970
85971 2002-05-27  Jim Meyering  <meyering@lucent.com>
85972
85973         Fix a problem seen only on nonconforming systems whereby ls.c's
85974         use of localtime, and then of gettimeofday would cause trouble:
85975         the localtime call used to initialize rpl_gettimeofday's save
85976         mechanism would clobber ls's current local time information so
85977         that in any long listing the first file would always be listed
85978         with date 1970-01-01.  Analysis by Volker Borchert.
85979
85980         * lib/gettimeofday.c (localtime): Undefine.
85981         (rpl_localtime): New function.
85982
85983 2002-05-27  Jim Meyering  <meyering@lucent.com>
85984
85985         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85986         localtime.
85987
85988         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85989         use the replacement function; it wouldn't resolve at link time.
85990         Reported by Volker Borchert.
85991
85992 2002-05-22  Jim Meyering  <meyering@lucent.com>
85993
85994         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85995         file-type.h.
85996         * lib/file-type.h: New file.
85997         * lib/file-type.c (file_type): New file/function.  Extracted from
85998         diffutils.
85999
86000 2002-04-30  Jim Meyering  <meyering@lucent.com>
86001
86002         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86003
86004 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86005
86006         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86007
86008 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86009
86010         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86011         Do not check for alloca.h (no longer used) or stdbool.h (was never
86012         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86013
86014 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86015
86016         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86017
86018 2002-04-29  Jim Meyering  <meyering@lucent.com>
86019
86020         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86021         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86022         Use AC_FUNC_STRNLEN here instead.
86023
86024         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86025         With autoconf-2.53a, it's part of AC_PROG_CC.
86026
86027 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86028
86029         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86030         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86031
86032 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86033
86034         * lib/sig2str.h, lib/sig2str.c: New files.
86035         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86036
86037 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86038
86039         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86040         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86041         of 127, since 64 is the largest conceivable number for ancient
86042         nonstandard hosts.
86043         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86044
86045 2002-04-28  Jim Meyering  <meyering@lucent.com>
86046
86047         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86048
86049 2002-04-24  Jim Meyering  <meyering@lucent.com>
86050
86051         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86052         (jm_PREREQ): Use it.
86053
86054         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86055         mach/mach.h fcntl.h.
86056         Check for this function: setlocale.
86057
86058 2002-04-24  Jim Meyering  <meyering@lucent.com>
86059
86060         * lib/gettext.h: New file, from Gettext.
86061         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86062         (libfetish_a_SOURCES): Add gettext.h.
86063
86064 2002-04-16  Jim Meyering  <meyering@lucent.com>
86065
86066         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86067         ut_pid, ut_id, ut_exit.
86068
86069 2002-04-16  Jim Meyering  <meyering@lucent.com>
86070
86071         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86072         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86073         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86074
86075 2002-04-12  Jim Meyering  <meyering@lucent.com>
86076
86077         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86078         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86079         existence of the getmntinfo function.  Needed for Darwin 5.3.
86080
86081         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86082         This is necessary at least on Darwin 5.3.
86083
86084         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86085         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86086         strnlen.o in the library, and that makes some versions of ranlib
86087         object.
86088
86089 2002-04-12  Jim Meyering  <meyering@lucent.com>
86090
86091         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86092
86093 2002-04-09  Jim Meyering  <meyering@lucent.com>
86094
86095         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86096         to be more precise.  Rather than saying we're checking whether the
86097         function `works', say what we're testing.
86098         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86099         Reported by Bruno Haible.
86100
86101 2002-03-10  Jim Meyering  <meyering@lucent.com>
86102
86103         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86104         Suggestion from Santiago Vila.
86105
86106 2002-03-08  Jim Meyering  <meyering@lucent.com>
86107
86108         * lib/rename.c: Mention that this wrapper is needed also on
86109         mips-dec-ultrix4.4 systems.
86110
86111 2002-03-02  Jim Meyering  <meyering@lucent.com>
86112
86113         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86114         not HAVE_CLOCK_SETTIME.
86115
86116 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86117
86118         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86119         Check for clock_settime.
86120
86121 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86122
86123         * lib/nanosleep.h: Rename to....
86124         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86125
86126         * lib/gettime.c: New file.
86127         * lib/settime.c: New file.
86128         * lib/stime.c: Remove.
86129
86130         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86131         timespec.h.  Remove nanosleep.h.
86132
86133 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86134
86135         * m4/acl.m4: New file.
86136         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86137         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86138
86139 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86140
86141         * lib/acl.c, lib/acl.h: New files.
86142         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86143
86144 2002-02-24  Jim Meyering  <meyering@lucent.com>
86145
86146         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86147         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86148         cause trouble.  Reported by Nelson Beebe.
86149
86150 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86151
86152         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86153         compilers that don't know that xalloc_die never returns.
86154
86155 2002-02-20  Jim Meyering  <meyering@lucent.com>
86156
86157         * lib/getdate.c: Regenerate using bison-1.33.
86158
86159 2002-02-17  Jim Meyering  <meyering@lucent.com>
86160
86161         * config/config.guess (main): Don't use `head -1'; it's no longer
86162         portable. Use `sed 1q' instead.
86163
86164 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86165
86166         * m4/codeset.m4: Upgrade to gettext-0.11.
86167         * m4/gettext.m4: Upgrade to gettext-0.11.
86168         * m4/glibc21.m4: Upgrade to gettext-0.11.
86169         * m4/iconv.m4: Upgrade to gettext-0.11.
86170         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86171         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86172         * m4/lib-ld.m4: New file, from gettext-0.11.
86173         * m4/lib-link.m4: New file, from gettext-0.11.
86174         * m4/lib-prefix.m4: New file, from gettext-0.11.
86175         * m4/progtest.m4: Upgrade to gettext-0.11.
86176
86177 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86178
86179         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86180         (jm_PREREQ): Use it.
86181
86182 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86183
86184         * lib/posixver.c, lib/posixver.h: New files.
86185         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86186
86187 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86188             Bruno Haible  <bruno@clisp.org>
86189
86190         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86191         (fwrite_success_callback): New declaration.
86192         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86193         print_unicode_char. Call failure callback instead of error.
86194         (fwrite_success_callback): New function.
86195         (exit_failure_callback): New function.
86196         (fallback_failure_callback): New function.
86197         (print_unicode_char): Call unicode_to_mb.
86198
86199 2002-01-26  Jim Meyering  <meyering@lucent.com>
86200
86201         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86202         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86203
86204 2002-01-26  Jim Meyering  <meyering@lucent.com>
86205
86206         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86207
86208 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86209
86210         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86211
86212 2002-01-22  Jim Meyering  <meyering@lucent.com>
86213
86214         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86215         Otherwise, some versions of automake would omit the rule that makes
86216         Makefile from Makefile.in.
86217
86218 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86219
86220         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86221         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86222         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86223         (memcoll): Set errno to zero if there is no error.
86224
86225         * lib/quotearg.c (quotearg_buffer_restyled):
86226         Fix bug with quoting buffers containing NUL when backslashing escapes.
86227         This bug was exposed by the other changes in this patch.
86228         (quotearg_n_options): New arg ARGSIZE.
86229         All callers changed.
86230         (quoting_options_from_style): New function.
86231         (quotearg_n_style): Use it.
86232         (quotearg_n_style_mem): New function.
86233
86234         * lib/quotearg.h (quotearg_n_style_mem): New function.
86235
86236 2002-01-19  Jim Meyering  <meyering@lucent.com>
86237
86238         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86239         Remove useless quotes: DF_PROG="df".
86240         * m4/strnlen.m4: New file.
86241
86242 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86243
86244         * lib/backupfile.c (ISDIGIT): Comment fix.
86245         * lib/getdate.y (ISDIGIT): Likewise.
86246         * lib/posixtm.c (ISDIGIT, year): Likewise.
86247         * lib/strverscmp.c (ISDIGIT): Likewise.
86248         * lib/userspec.c (ISDIGIT): Likewise.
86249
86250 2002-01-16  Jim Meyering  <meyering@lucent.com>
86251
86252         * lib/getdate.y: Add three semicolons, each just before a closing
86253         brace. Bison (as of version 1.31) no longer papers over that mistake.
86254
86255 2002-01-05  Jim Meyering  <meyering@lucent.com>
86256
86257         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86258
86259 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86260
86261         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86262         not silently exit merely because the output buffer happens to
86263         have nothing pending.
86264
86265 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86266
86267         See the big note in ../ChangeLog.
86268         * lib/human.c (suffixes): Prefer K to k for 1024.
86269         (generate_suffix_backwards): New function.
86270         (human_readable_inexact): Use it.
86271         * lib/xstrtol.c (__xstrtol): If there is no number but there
86272         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86273         Accept 'K' as well as 'k'.
86274
86275 2001-12-15  Jim Meyering  <meyering@lucent.com>
86276
86277         * lib/regex.h (__restrict_arr): Update from libc.
86278
86279         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86280         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86281         (STREQ): Define.
86282
86283 2001-12-14  Jim Meyering  <meyering@lucent.com>
86284
86285         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86286         Suggestion from Bruno Haible.
86287
86288 2001-12-10  Jim Meyering  <meyering@lucent.com>
86289
86290         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86291         xrealloc, Instead, include "xalloc.h".
86292         (initbuffer): Don't cast xmalloc return value to char*.
86293         (readline): Reword comment.
86294         Don't cast xrealloc return value to char*
86295         Return NULL, not 0.
86296
86297 2001-12-09  Jim Meyering  <meyering@lucent.com>
86298
86299         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86300         about `signed and unsigned type in conditional expression'.
86301         * lib/posixtm.c (posix_time_parse): Likewise.
86302
86303         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86304
86305         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86306         to avoid a pedantic warning.
86307
86308         * lib/getstr.c: Don't include assert.h.
86309         (getstr): Remove warning-evoking assertions.
86310         Return -1 if offset parameter is out of bounds.
86311         Change the type of a local from int to size_t.
86312
86313         * lib/strftime.c (my_strftime_localtime_r): Include this function
86314         definition in the `#if ! HAVE_TM_GMTOFF' block.
86315
86316         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86317         Include xalloc.h instead.
86318
86319 2001-12-02  Jim Meyering  <meyering@lucent.com>
86320
86321         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86322         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86323         included.
86324
86325         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86326         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86327
86328 2001-11-30  Akim Demaille  <akim@epita.fr>
86329
86330         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86331         before being defined.
86332
86333 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86334
86335         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86336         First arg is int, not unsigned.
86337         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86338         (SIZE_MAX, UINT_MAX): New macros.
86339         (quotearg_n_options): Abort if N is negative.
86340         Avoid overflow check on hosts where size_t is 64 bits and int
86341         is 32 bits, as overflow is impossible there.
86342         Fix off-by-one typo that caused unnecessary reallocation.
86343
86344 2001-11-27  Jim Meyering  <meyering@lucent.com>
86345
86346         * lib/tempname.c: Merge with version from libc.
86347         * lib/regex.c: Likewise.
86348
86349         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86350         systems for which STDC_HEADERS is 0, it was not included, resulting in
86351         a warning about an integer-to-pointer conversion problem with getenv.
86352         Reported by Volker Borchert.
86353
86354 2001-11-26  Jim Meyering  <meyering@lucent.com>
86355
86356         * lib/gtod.h: Remove file.
86357         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86358         * lib/gettimeofday.c: Don't include gtod.h.
86359         (GTOD_init): Remove function.
86360         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86361         Suggestion from Volker Borchert.
86362
86363 2001-11-23  Jim Meyering  <meyering@lucent.com>
86364
86365         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86366         it.
86367         * lib/hash.c (struct hash_table): Define it here instead.
86368
86369 2001-11-22  Jim Meyering  <meyering@lucent.com>
86370
86371         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86372
86373 2001-11-20  Jim Meyering  <meyering@lucent.com>
86374
86375         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86376         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86377
86378 2001-11-19  Jim Meyering  <meyering@lucent.com>
86379
86380         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86381         directory.  Use "conftestXXXXXX" as the template.
86382         Suggestion from Paul Eggert.
86383
86384         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86385         immediately, so the test doesn't mistakenly hit the max-open-files
86386         limit.
86387
86388 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86389
86390         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86391         (TEMPORARIES): New macro.
86392         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86393         removes an artificial limitation (e.g. HP-UX 10.20, where
86394         TMP_MAX is 17576).
86395
86396 2001-11-18  Jim Meyering  <meyering@lucent.com>
86397
86398         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86399
86400 2001-11-18  Jim Meyering  <meyering@lucent.com>
86401
86402         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86403         on SunOS 4.
86404
86405         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86406         files will be created before anything else.
86407
86408 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86409
86410         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86411         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86412
86413 2001-11-17  Jim Meyering  <meyering@lucent.com>
86414
86415         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86416         Prompted by a report from Bob Proulx.
86417
86418         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86419         Instead, require UTILS_FUNC_MKSTEMP.
86420
86421 2001-11-17  Jim Meyering  <meyering@lucent.com>
86422
86423         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86424         Now, that's done as part of AC_FUNC_STRTOD.
86425
86426 2001-11-17  Jim Meyering  <meyering@lucent.com>
86427
86428         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86429         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86430         rather than group writable.  Patch by Juan F. Codagnone.
86431
86432         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86433         xrealloc, Instead, include "xalloc.h".
86434
86435         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86436         Remove explicit declarations of xmalloc, xrealloc,
86437         and xstrdup.  Instead, include "xalloc.h".
86438
86439         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86440         unlocked-io.h.
86441         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86442         Likewise.
86443         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86444
86445         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86446         Reported by Padraig Brady.
86447
86448         * lib/mkstemp.c: #undef mkstemp.
86449         Include config.h.
86450         (rpl_mkstemp): Rename from mkstemp.
86451         Protoize.
86452
86453 2001-11-16  Jim Meyering  <meyering@lucent.com>
86454
86455         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86456         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86457         determine the amount of total physical memory, use pstat_getstatic.
86458         HPUX-11 doesn't define _SC_PHYS_PAGES.
86459         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86460         If sysconf couldn't be used to determine the amount of available
86461         physical memory, use both pstat_getstatic and pstat_getdynamic.
86462         Based on a patch from Bob Proulx.
86463
86464 2001-11-10  Jim Meyering  <meyering@lucent.com>
86465
86466         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86467         (jm_PREREQ): Use it.
86468
86469 2001-11-09  Jim Meyering  <meyering@lucent.com>
86470
86471         * m4/jm-macros.m4: Require autoconf-2.52f.
86472         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86473         Use these AC_-prefixed names, not the AM_-prefixed ones.
86474
86475         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86476
86477 2001-11-05  Jim Meyering  <meyering@lucent.com>
86478
86479         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86480
86481 2001-11-04  Jim Meyering  <meyering@lucent.com>
86482
86483         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86484         $DEFS.
86485
86486 2001-11-03  Jim Meyering  <meyering@lucent.com>
86487
86488         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86489         of AC_DEFUN.
86490
86491         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86492         know the name of the variable in the macro definition.
86493
86494 2001-11-03  Jim Meyering  <meyering@lucent.com>
86495
86496         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86497         in argmatch_to_argument call.
86498
86499         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86500         argument.
86501
86502         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86503         e.g., a fault due to an attempt to free a NULL pointer.
86504
86505 2001-11-01  Jim Meyering  <meyering@lucent.com>
86506
86507         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86508         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86509
86510 2001-11-01  Jim Meyering  <meyering@lucent.com>
86511
86512         * lib/dirfd.c, lib/dirfd.h: New files.
86513         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86514
86515         * lib/hash.c (hash_print) [TESTING]: Clean up.
86516
86517 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86518
86519         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86520         to avoid a warning if -Wall.
86521
86522 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86523
86524         * README: New file
86525         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86526         (per RMS's instructions, this is now the canonical source)
86527         * lgpl/, gpl/: New directories.
86528
86529 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86530
86531         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86532
86533 2001-10-21  Jim Meyering  <meyering@lucent.com>
86534
86535         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86536         this code would end up calling gettext even in packages built
86537         with --disable-nls.
86538         * lib/getopt.c (_): Likewise.
86539         * lib/regex.c (_): Likewise.
86540
86541 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86542
86543         * m4/error.m4 (jm_PREREQ_ERROR):
86544         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86545         AC_FUNC_STRERROR_R does that.
86546         Check for strerror declaration.
86547
86548         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86549         are supposed to have them these days.
86550         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86551         Merge changes from latest Autoconf CVS.
86552         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86553         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86554         POSIX decided to standardize on the int flavor of strerror_r.
86555
86556 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86557
86558         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86559         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86560         Use strerror_r that is only a macro, even if it is not a function.
86561         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86562         (private_strerror): Use prototypes, not old-style function definition.
86563         (print_errno_message): New function.
86564         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86565         char*-flavored one.
86566         (error_tail, error, error_at_line): Use it.
86567
86568 2001-10-11  Jim Meyering  <meyering@lucent.com>
86569
86570         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86571         and quote_n (1, ... to avoid clobbering a buffer.
86572
86573 2001-10-05  Jim Meyering  <meyering@lucent.com>
86574
86575         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86576         hash-pjw.h.
86577         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86578         * lib/hash-pjw.h: New file.
86579
86580 2001-09-30  Jim Meyering  <meyering@lucent.com>
86581
86582         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86583         `struct fsstat' has the `f_fstypename' member.
86584         Use that to define FS_TYPE, which is now used to make
86585         the getfsstat link test tighter.
86586
86587 2001-09-30  Jim Meyering  <meyering@lucent.com>
86588
86589         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86590         Include <sys/ucred.h>, for Apple Darwin.
86591         Include sys/mount.h and sys/fs_types.h only if available.
86592         (FS_TYPE): Define.
86593         (read_filesystem_list): Use FS_TYPE.
86594
86595 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86596
86597         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86598         a boolean context.
86599
86600 2001-09-29  Jim Meyering  <meyering@lucent.com>
86601
86602         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86603         [one-argument getmntent function]): Include stdio.h before mntent.h.
86604         SunOS 4.1.x needs it for the declaration of `FILE'.
86605         Patch by Volker Borchert.
86606
86607         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86608         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86609         sys/fs_types.h, and make the link-test for getfsstat guard #include
86610         directives with appropriate #if HAVE_*_H tests so that we can
86611         detect getfsstat on Apple Darwin1.3.7 systems.
86612         Reported by Nelson Beebe.
86613         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86614
86615 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86616
86617         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86618         #defines strtoimax.  Also treat the other strto* functions
86619         like strtoimax.
86620
86621         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86622         Check for strtoul and strtoumax,
86623         as those declarations are made even in the signed case.
86624         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86625         Likewise, for strtol and strtoimax.
86626
86627 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86628
86629         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86630         #defines strtoimax.  Also treat the other strto* functions
86631         like strtoimax.
86632
86633         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86634         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86635         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86636
86637 2001-09-26  Jim Meyering  <meyering@lucent.com>
86638
86639         Most macros in unlocked-io.h had the wrong number of arguments.
86640         * lib/gen-uio: New script.
86641         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86642         * lib/unlocked-io.hin: Remove file.
86643         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86644         rather than trying to embed it here.
86645         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86646         Reported by Padraig Brady.
86647
86648 2001-09-25  Volker Borchert  <bt@teknon.de>
86649
86650         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86651         `result'.
86652
86653 2001-09-24  Jim Meyering  <meyering@lucent.com>
86654
86655         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86656
86657 2001-09-23  Jim Meyering  <meyering@lucent.com>
86658
86659         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86660         instead of the mere test for existence of mntent.h.  The latter
86661         would get a false-positive on AIX 3.4 systems.
86662         In the outer getmntent if-block, don't die if neither of the getmntent
86663         tests succeeds.  Instead, just fall through and continue with the
86664         remaining tests.
86665
86666 2001-09-23  Jim Meyering  <meyering@lucent.com>
86667
86668         * lib/mountlist.c: Remove useless parentheses in #if directives.
86669         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86670         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86671
86672 2001-09-22  Jim Meyering  <meyering@lucent.com>
86673
86674         * m4/gettext.m4: New file.  From gettext.
86675         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86676         * m4/progtest.m4: Likewise
86677         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86678         * m4/glibc21.m4: Likewise.
86679
86680         * m4/libintl.m4: Remove.  No longer used.
86681
86682 2001-09-22  Jim Meyering  <meyering@lucent.com>
86683
86684         * lib/localcharset.c: Update from latest gettext.
86685         * lib/config.charset: Likewise.
86686
86687 2001-09-20  Jim Meyering  <meyering@lucent.com>
86688
86689         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86690         strtoimax.
86691         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86692         strtoumax.
86693
86694 2001-09-20  Jim Meyering  <meyering@lucent.com>
86695
86696         * lib/xstrtol.c (strtoimax): Guard declaration with
86697         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86698         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86699         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86700         (strtoumax): Likewise, for completeness (it wasn't necessary).
86701
86702 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86703
86704         * lib/strtoimax.c (HAVE_LONG_LONG):
86705         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86706         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86707         to work around bug in IBM C compiler.
86708
86709 2001-09-17  Jim Meyering  <meyering@lucent.com>
86710
86711         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86712         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86713         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86714         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86715         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86716         whenever the right hand side need not be expanded by the shell.
86717
86718 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86719
86720         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86721         library.  It's not correct, as some older glibcs are buggy.
86722         fnmatch wasn't fixed until glibc 2.2.
86723
86724         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86725         special shell magic here.
86726
86727 2001-09-16  Jim Meyering  <meyering@lucent.com>
86728
86729         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86730         * m4/jm-macros.m4: Require it.
86731
86732 2001-09-16  Jim Meyering  <meyering@lucent.com>
86733
86734         * lib/mkdir.c: New file.
86735
86736 2001-09-15  Jim Meyering  <meyering@lucent.com>
86737
86738         * m4/jm-macros.m4: Check for help2man.
86739
86740 2001-09-11  Jim Meyering  <meyering@lucent.com>
86741
86742         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86743         The body, by Paul Eggert, was moved here from configure.in.
86744         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86745
86746 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86747
86748         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86749         (jm_PREREQ): Use it.
86750
86751 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86752
86753         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86754         Use ssize_t, not int, to store result of readlink.
86755         Check for ssize_t overflow as well as size_t overflow,
86756         as POSIX says the result of readlink is implementation-defined
86757         when ssize_t overflows.
86758         Remove unnecessary cast to char*.
86759         Use free+malloc instead of realloc, as the storage doesn't need
86760         to be preserved and it's clearer and can be more efficient that way.
86761         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86762         * lib/xreadlink.h (xreadlink): Update prototype.
86763
86764 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86765
86766         * lib/xgetcwd.c: Revert some of the previous change; intead,
86767         fix the HAVE_GETCWD_NULL code to behave more like the
86768         !HAVE_GETCWD_NULL code used to.
86769
86770         Include "xalloc.h".
86771         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86772         invoke xalloc_die.
86773
86774 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86775
86776         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86777         sys/param.h, as pathmax.h includes them.
86778
86779 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86780
86781         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86782         (jm_PREREQ_XGETCWD): New macro.
86783
86784         * m4/getcwd.m4: New file.
86785
86786 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86787
86788         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86789         like the HAVE_GETCWD_NULL code.
86790         Include pathmax.h if not HAVE_GETCWD.
86791         Do not include xalloc.h.
86792         (INITIAL_BUFFER_SIZE): New symbol.
86793         Do not use xmalloc / xrealloc, since the caller is responsible for
86794         handling errors.  Preserve errno around `free' during failure.
86795         Do not overrun buffer when using getwd.
86796
86797 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86798
86799         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86800         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86801         getcwd (NULL, 0).
86802
86803 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86804
86805         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86806         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86807         spotted by Jim Meyering.
86808
86809 2001-09-03  Jim Meyering  <meyering@lucent.com>
86810
86811         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86812         failure.
86813
86814 2001-09-02  Jim Meyering  <meyering@lucent.com>
86815
86816         * lib/error.c: Update from GNU libc.
86817
86818 2001-09-01  Jim Meyering  <meyering@lucent.com>
86819
86820         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86821         Used by df.
86822
86823 2001-09-01  Jim Meyering  <meyering@lucent.com>
86824
86825         * lib/xreadlink.c: New file.
86826         * lib/xreadlink.h: New file.
86827         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86828         xreadlink.h.
86829
86830         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86831         doesn't conflict with sparc Solaris 7's definition in
86832         /usr/include/sys/int_types.h.
86833
86834         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86835         files.
86836         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86837         and strncasecmp as r-values.  Unixware didn't have declarations.
86838
86839 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86840
86841         * lib/xstrtol.h: Add copyright notice.
86842         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86843         LONGINT_INVALID_SUFFIX_CHAR.
86844
86845 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86846
86847         * lib/xstrtol.c (strtoimax): New decl.
86848
86849 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86850
86851         * lib/xgetcwd.c: Don't include pathmax.h.
86852         Include stdlib.h and unistd.h if available.
86853         Include xalloc.h.
86854         (xmalloc, xstrdup, free): Remove decls.
86855         (xgetcwd): Don't assume sizes fit in unsigned.
86856         Check for overflow when computing sizes.
86857         Simplify reallocation code.
86858
86859 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86860
86861         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86862         a directory's st_size can have an arbitrary value, so the old
86863         usage could waste an arbitrary amount of memory.  All uses
86864         changed.
86865         * lib/savedir.h: Update prototype.
86866
86867 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86868
86869         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86870
86871         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86872         old strtoimax.c.
86873
86874         Also, make the following further changes to make this file's
86875         configuration more similar to that of strtol.c:
86876         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86877         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86878         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86879         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86880         changed to signed values.
86881
86882         And make the following changes as well:
86883         Fix copyright notice, as 1999 was missing.
86884         (verify): New macro.
86885         (strtoimax): Check sizes at compile-time, not run-time.
86886         Prefer strtol to strtoll if both work.
86887         (main): Remove; it was not that useful and was a pain to maintain.
86888
86889         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86890
86891 2001-08-31  Jim Meyering  <meyering@lucent.com>
86892
86893         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86894         Use an initial, malloc'd, buffer of length 128 rather than
86895         a statically allocated one of length 1024.
86896
86897 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86898
86899         Simplify code, partly by assuming autoconf 2.52 semantics.
86900
86901         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86902
86903         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86904         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86905         All uses removed.
86906         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86907         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86908         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86909         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86910         jm_AC_HEADER_INTTYPES_H.
86911         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86912
86913         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86914
86915         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86916         Quote first arg of AC_DEFUN.
86917         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86918         since they are needed to parse the include file even if we need
86919         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86920         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86921         but with opposite signedness.
86922
86923 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86924
86925         Merge 'exclude' changes from tar 1.13.22.
86926         This fixes one or two unlikely storage allocation overflow bugs,
86927         but doesn't change user-visible behavior otherwise.
86928
86929 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86930
86931         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86932         (jm_PREREQ_EXCLUDE): New macro.
86933
86934 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86935
86936         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86937         tm to be declared.
86938
86939 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86940
86941         * lib/hash.c: Remove '2001' from copyright notice.
86942
86943 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86944
86945         * lib/full-write.h: New file.
86946         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86947         * lib/full-write.c: Correct credits, as cccp.c no longer
86948         exists and anyway it was so heavily changed from the old cccp
86949         code as to be unrecognizable.  Include full-write.h.
86950         (full_write): Return size_t, with short writes meaning failure.
86951         All callers changed.  This fixes a bug with large buffers
86952         on 64-bit hosts.
86953         * lib/utime.c: Include full-write.h.
86954
86955 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86956
86957         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86958         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86959         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86960         Include if available.
86961         (<xalloc.h>): Include
86962         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86963         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86964         collide with FNM macros.
86965         (struct patopts): New struct.
86966         (struct exclude): Use it, as exclude patterns now come with options.
86967         (new_exclude): Support above changes.
86968         (new_exclude, add_exclude_file):
86969         Initial size must now be a power of two to simplify overflow checking.
86970         (free_exclude, fnmatch_no_wildcards): New function.
86971         (excluded_filename): No longer requires options arg, as the options
86972         are determined by add_exclude.  Now returns bool, not int.
86973         (excluded_filename, add_exclude):
86974         Add support for the fancy new exclusion options.
86975         (add_exclude, add_exclude_file): Now takes int options arg.
86976         Check for arithmetic overflow when computing sizes.
86977         (add_exclude_file): xrealloc might modify errno, so don't
86978         realloc until after errno might be used.
86979
86980         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86981         New macros.
86982         (free_exclude): New decl.
86983         (add_exclude, add_exclude_file): Now takes int options arg.
86984         (excluded_filename): No longer requires options arg, as the options
86985         are determined by add_exclude.  Now returns bool, not int.
86986
86987 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86988
86989         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86990
86991 2001-08-27  Jim Meyering  <meyering@lucent.com>
86992
86993         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86994
86995         * lib/version-etc.c (N_): Remove definition.
86996         Revert most of last change.
86997         Instead, simply don't mark the `Copyright...' string for translation.
86998         Based on advice from Paul Eggert.
86999
87000         * lib/strtoxmax.c: Tweak comment.
87001
87002 2001-08-26  Jim Meyering  <meyering@lucent.com>
87003
87004         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87005
87006         * m4/xstrtoimax.m4: New file.
87007         * m4/xstrtoumax.m4: Add comments explaining why we
87008         AC_REPLACE_FUNCS(strtol).
87009
87010 2001-08-26  Jim Meyering  <meyering@lucent.com>
87011
87012         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87013         of copyright with `%s' so translators don't get an untranslated
87014         message in 2002.
87015         (COPYRIGHT_YEAR): Define.
87016         (version_etc): Use fprintf rather than fputs.
87017         Suggestion from Ulrich Drepper.
87018
87019         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87020
87021         * lib/strtoll.c: New file, from GNU libc.
87022         * lib/xstrtoimax.c: New file.
87023
87024         * lib/xstrtol.h: Add xstrtoimax.
87025         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87026         * lib/strtoimax.c: New file.  Likewise, but first define
87027         STRTOUXMAX_SIGNED.
87028
87029         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87030         ...
87031         * lib/strtoxmax.c: ... then renamed to this.
87032
87033 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87034
87035         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87036         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87037         (jm_AC_TYPE_INTMAX_T): New macro.
87038         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87039
87040         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87041
87042         * m4/longlong.m4: Renamed from ulonglong.m4.
87043         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87044         * m4/uintmax_t.m4: Removed.
87045
87046 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87047
87048         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87049         Port to Solaris 8, where 'sed' requires a space after the 'r'
87050         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87051         Redirect output to $tmp just once.
87052
87053 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87054
87055         * lib/addext.c (<errno.h>): Include.
87056         (errno): Declare if not defined.
87057         (addext): Work correctly when pathconf returns -1 and leaves
87058         errno alone because there is no limit.  Also, work even if
87059         pathconf returns a value greater than SIZE_MAX.
87060
87061 2001-08-12  Jim Meyering  <meyering@lucent.com>
87062
87063         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87064         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87065         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87066         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87067         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87068         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87069         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87070         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87071         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87072         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87073         utime.m4, utimes.m4, xstrtoumax.m4:
87074         Quote the first argument in each use of AC_DEFUN.
87075
87076 2001-08-12  Jim Meyering  <meyering@lucent.com>
87077
87078         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87079         Simply `return getcwd (NULL, 0);'.
87080         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87081         Use 1300 as initial value for length, not PATH_MAX.
87082
87083         * lib/pathmax.h: Clean up cpp syntax.
87084
87085 2001-08-12  Jim Meyering  <meyering@lucent.com>
87086
87087         * lib/gettimeofday.c: New file.
87088         * lib/gtod.h: New file.
87089         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87090
87091 2001-08-05  Jim Meyering  <meyering@lucent.com>
87092
87093         * m4/jm-macros.m4: Require autoconf-2.52.
87094
87095 2001-08-04  Jim Meyering  <meyering@lucent.com>
87096
87097         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87098         stmt, to get in sync with glibc.
87099
87100 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87101
87102         The following changes are from gettext 0.10.39 as maintained by
87103         Bruno Haible.
87104
87105         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87106         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87107         with inverted sense.  All uses changed.
87108
87109         * lib/mbswidth.c: Don't include <limits.h>.
87110         Include <stdlib.h> and <string.h> unconditionally.
87111         (iswcntrl, mbsinit, ISCNTRL): New macros.
87112         (mbsnwidth): Use K&R style function declarations.
87113         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87114         can optimize it when MB_CUR_MAX == 1.
87115         The width of control characters is zero, not 1.
87116
87117 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87118
87119         The following changes are from gettext 0.10.39 as maintained by
87120         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87121
87122         * m4/codeset.m4: Upgrade to serial AM1.
87123         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87124         all uses changed.  Quote first arg of AC_DEFUN.
87125         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87126
87127         * m4/iconv.m4: Upgrade to serial AM2.
87128         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87129         Add --with-libconv-prefix.
87130         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87131         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87132         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87133         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87134         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87135
87136         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87137         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87138         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87139         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87140         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87141         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87142         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87143         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87144         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87145
87146         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87147         string.h any more.
87148
87149         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87150         not the default value.
87151
87152         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87153         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87154         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87155         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87156         Also check for iswcntrl, used for wcwidth fallback.
87157         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87158         to Autoconf 2.13.
87159
87160 2001-08-03  Jim Meyering  <meyering@lucent.com>
87161
87162         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87163         as it was in the original.  Reported by Paul Eggert.
87164
87165 2001-07-16  Jim Meyering  <meyering@lucent.com>
87166
87167         * m4/gettimeofday.m4: New file.
87168         Prompted by a report from Bernhard Baehr.
87169
87170 2001-07-15  Jim Meyering  <meyering@lucent.com>
87171
87172         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87173         stuff. Now it's in ../Makefile.cfg.
87174
87175 2001-07-15  Jim Meyering  <meyering@lucent.com>
87176
87177         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87178         (BUILT_SOURCES): Add unlocked-io.h.
87179         (io_functions): Define.
87180         (unlocked-io.h): New rule.
87181         (DISTCLEANFILES): Add unlocked-io.h.
87182         (all-local): Depend on unlocked-io.h, to ensure it is created.
87183
87184         * lib/unlocked-io.hin: New file
87185
87186         * lib/regex.c: Update from glibc.
87187
87188 2001-07-05  Jim Meyering  <meyering@lucent.com>
87189
87190         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87191         recommendation.
87192         (libfetish_a_SOURCES): Put all .h files here instead.
87193         Remove a thus-exposed (better checks in automake) duplicate and
87194         two unnecessary .h files.
87195
87196 2001-07-04  Jim Meyering  <meyering@lucent.com>
87197
87198         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87199         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87200         distcheck failure.
87201
87202 2001-07-02  Jim Meyering  <meyering@lucent.com>
87203
87204         The following changes were prompted by suggestions from Bruno Haible.
87205
87206         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87207         is now generated.
87208         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87209         definition of EXTRA_DIST.
87210         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87211         ensure that the generated file is created/updated whenever the list
87212         of $(unlocked_functions) is changed.
87213         (jm-glibc-io.m4): New rule.
87214         (unlocked-io.h): New rule -- currently unused.
87215
87216 2001-06-24  Jim Meyering  <meyering@lucent.com>
87217
87218         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87219         unmatched right bracket, rather than kludging it with an extra,
87220         falsely-matching quote in a comment.  Patch by Akim Demaille.
87221
87222 2001-06-11  Jim Meyering  <meyering@lucent.com>
87223
87224         * lib/regex.c: Update from GNU libc.
87225
87226 2001-05-27  Jim Meyering  <meyering@lucent.com>
87227
87228         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87229         Check for ut_type in struct utmp.
87230
87231 2001-05-27  Jim Meyering  <meyering@lucent.com>
87232
87233         * lib/readutmp.h (UT_TYPE): Define.
87234
87235 2001-05-24  Jim Meyering  <meyering@lucent.com>
87236
87237         * lib/argmatch.c: Include "quote.h".
87238         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87239         quote function.  Reported by Göran Uddeborg.
87240
87241 2001-05-22  Jim Meyering  <meyering@lucent.com>
87242
87243         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87244         now that we use the package-supplied version unconditionally.
87245         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87246
87247 2001-05-21  Jim Meyering  <meyering@lucent.com>
87248
87249         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87250         shell syntax errors.
87251
87252 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87253
87254         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87255
87256 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87257
87258         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87259         Don't bother to check library strftime, since
87260         we'll be using our own my_strftime function anyway.
87261         Define my_strftime instead of strftime.
87262
87263 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87264
87265         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87266         which is not yet declared.
87267
87268 2001-05-15  Jim Meyering  <meyering@lucent.com>
87269
87270         * m4/regex.m4: Use proper quoting so brackets appear in the test
87271         program.
87272         Reported by, and with help from, Bruno Haible.
87273
87274 2001-05-13  Jim Meyering  <meyering@lucent.com>
87275
87276         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87277         undefined.
87278
87279 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87280
87281         dirname code cleanup.  base_name now behaves more compatibly
87282         with POSIX basename when given file names that have trailing
87283         slashes, and similarly for dir_name.  Add new primitives
87284         base_len and dir_len.  Put the directory-name-related decls
87285         into dirname.h.
87286
87287         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87288         * lib/backupfile.c (base_name): Likewise.
87289         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87290         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87291         * lib/makepath.c (strip_trailing_slashes): Likewise.
87292         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87293         ISSLASH): Likewise.
87294         * lib/rename.c (strip_trailing_slashes): Likewise.
87295         * lib/same.c (base_name): Likewise.
87296         * lib/stripslash.c (ISSLASH): Likewise.
87297
87298         * lib/addext.c: Include <dirname.h> after size_t is defined.
87299         * lib/backupfile.c: Likewise.
87300
87301         * lib/addext.c (addext): Use base_len to trim redundant
87302         trailing slashes instead of doing it ourselves.
87303         But do not trim the last slash if it is not redundant.
87304
87305         * lib/backupfile.c (find_backup_file_name,
87306         max_backup_version): Use base_len instead of rolling it ourselves.
87307         Handle the case of "" and (on DOS) "C:" correctly.
87308
87309         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87310         needed. Include <string.h>, <dirname.h>.
87311         (base_name): Allow file names ending in slashes, other than names
87312         that are all slashes.  In this case, return the basename followed
87313         by the slashes.  This is more general, and can be used in places
87314         where the original base_name purposely had an assertion failure.
87315         (base_len): New function.
87316
87317         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87318         Do not include <assert.h>; no longer needed.
87319         Include xalloc.h.
87320         (memrchr): Remove decl.
87321         (dir_name_r): Remove.
87322         (dir_len): Renamed from dirlen.  All callers changed.
87323         Rewrite in terms of base_name, for simplicity and consistency.
87324         (dir_name): Never return NULL.  All callers changed.
87325         Do not include <stdlib.h> in test program; no longer needed.
87326         return 0; is fine for test program.
87327
87328         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87329         New macros.
87330         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87331
87332         * lib/path-concat.c (path_concat): Use base_len to compute
87333         base length, not strlen; this means we cannot rely on memcpy
87334         to null-terminate.
87335
87336         * lib/same.c (STREQ): Remove.
87337         (same_name): Handle the case where the basename ends in trailing '/'.
87338
87339         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87340         a slash was stripped.  Do not strip the last slash after a
87341         file system prefix.
87342
87343 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87344
87345         * lib/Makefile.am (libfetish_a_SOURCES):
87346         Add strftime.c, since we now compile it on all hosts.
87347
87348         * lib/strftime.c (my_strftime):
87349         Define to nstrftime if emacs, but only if my_strftime is not defined.
87350         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87351         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87352         Add one more extra argument: a nanoseconds value.
87353         All uses changed.
87354         (ns): New macro.
87355         (my_strftime function): Add %N format.
87356         (emacs_strftimeu): Renamed from emacs_strftime,
87357         with extra ut argument.
87358
87359 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87360
87361         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87362
87363 2001-04-21  Jim Meyering  <meyering@lucent.com>
87364
87365         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87366         doesn't interfere.
87367
87368 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87369
87370         * m4/ftruncate.m4: Check for chsize.
87371         Link with ftruncate.o unconditionally if ftruncate is missing.
87372         This was required when cross-compiling to i586-mingw32msvc.
87373
87374 2001-04-08  Jim Meyering  <meyering@lucent.com>
87375
87376         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87377         recomputed; that's necessary when the offset spans a DST transition.
87378         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87379
87380 2001-04-02  Jim Meyering  <meyering@lucent.com>
87381
87382         * lib/regex.h, regex.c: Update from GNU libc.
87383
87384 2001-03-24  Jim Meyering  <meyering@lucent.com>
87385
87386         * m4/jm-macros.m4: Require autoconf-2.49d.
87387
87388 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87389
87390         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87391
87392 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87393
87394         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87395
87396 2001-03-17  Jim Meyering  <meyering@lucent.com>
87397
87398         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87399         now that the version in autoconf is equivalent.
87400         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87401
87402         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87403         Suggestion from Akim Demaille.
87404
87405         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87406         (jm_PREREQ_TEMPNAME): New function.
87407
87408 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87409
87410         * lib/tempname.c (uint64_t): Define to uintmax_t if
87411         not defined, and if UINT64_MAX is not defined.
87412         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87413         Reported by John David Anglin.
87414
87415 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87416
87417         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87418         resolve alias if codeset is empty.
87419         * lib/config.charset (BeOS): Use wildcard syntax.
87420
87421 2001-03-13  Jim Meyering  <meyering@lucent.com>
87422
87423         * lib/path-concat.c (path_concat)
87424         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87425         concatenating e.g., `C:' and `foo'.
87426         From Bruno Haible.
87427
87428 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87429
87430         * lib/localcharset.c (locale_charset): Don't use
87431         setlocale(LC_CTYPE,NULL). Don't return NULL.
87432         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87433
87434 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87435
87436         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87437         support for DOS/DJGPP.
87438
87439 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87440
87441         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87442         lacks mkstemp.  Compile our own tempname.c if we compile our own
87443         mkstemp.c, as mkstemp relies on tempname.
87444
87445 2001-03-01  Jim Meyering  <meyering@lucent.com>
87446
87447         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87448         AH_VERBATIM really does output its argument verbatim.
87449
87450 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87451
87452         * lib/Makefile.am (libfetish_a_SOURCES):
87453         Add dup-safer.c, fopen-safer.c.
87454         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87455
87456         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87457         * lib/unistd-safer.h: New files.
87458
87459 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87460
87461         The mkstemp replacement is taken from glibc 2.2.2, with some
87462         portability fixes for use outside glibc, as follows:
87463
87464         * lib/tempname.c (struct_stat64): New macro.
87465         (direxists, __gen_tempname): Use it.
87466         This avoids a portability problem with Solaris 8.
87467
87468         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87469         (<stddef.h>, <stdint.h>, <string.h>):
87470         Include only if STDC_HEADERS || _LIBC.
87471         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87472         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87473         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87474         (__set_errno): Define this macro if <errno.h> doesn't.
87475         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87476         Define these macros if <stdio.h> doesn't.
87477         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87478         Define these macros if <sys/stat.h>
87479         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87480         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87481         __xstat64): Define if not _LIBC.
87482         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87483         (__gen_tempname): Invoke gettimeofday only if
87484         HAVE_GETTIMEOFDAY || _LIBC;
87485         otherwise, fall back on plain "time".
87486         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87487
87488         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87489
87490         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87491
87492 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87493
87494         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87495
87496 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87497
87498         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87499         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87500         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87501         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87502
87503 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87504
87505         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87506         Remove workaround macros for hosts that have mbrtowc but not
87507         mbstate_t, as we now insist on proper declarations for both
87508         before using mbrtowc.
87509
87510 2001-02-17  Jim Meyering  <meyering@lucent.com>
87511
87512         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87513         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87514         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87515         UnixWare 7.1.1.
87516
87517         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87518         rather than AC_CACHE_VAL.
87519
87520 2001-02-17  Jim Meyering  <meyering@lucent.com>
87521
87522         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87523         around included file name.
87524
87525         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87526
87527         * lib/strftime.c: Update from GNU libc (the only changes were to
87528         comments).
87529
87530 2001-02-17  Jim Meyering  <meyering@lucent.com>
87531
87532         * lib/regex.c: Update from libc.
87533
87534 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87535
87536         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87537         clash.
87538
87539 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87540
87541         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87542         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87543         Reported by Mark Hounschell via Paul Eggert.
87544
87545 2001-02-07  Jim Meyering  <meyering@lucent.com>
87546
87547         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87548
87549 2001-02-05  Jim Meyering  <meyering@lucent.com>
87550
87551         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87552         it includes the patch required for `large file' support with at least
87553         HP-UX's 10.20 /bin/cc.
87554
87555 2001-02-03  Jim Meyering  <meyering@lucent.com>
87556
87557         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87558         AS_IF, now that it works once again (mysteriously).
87559         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87560
87561 2001-01-30  Jim Meyering  <meyering@lucent.com>
87562
87563         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87564         * m4/chown.m4: Rename conftestchown to conftest.chown.
87565         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87566         s/conftestdir2/conftest.d2/.
87567         * m4/utimes.m4: s/conftestdata/conftest.data/
87568         Inspired by Pavel Roskin's change in autoconf.
87569
87570 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87571
87572         * lib/config.charset: Update for FreeBSD 4.2.
87573
87574 2001-01-27  Jim Meyering  <meyering@lucent.com>
87575
87576         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87577         a use of AS_IF.
87578         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87579
87580 2001-01-26  Jim Meyering  <meyering@lucent.com>
87581
87582         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87583         quotearg.c includes it.
87584
87585 2001-01-26  Jim Meyering  <meyering@lucent.com>
87586
87587         * lib/quotearg.c: Include stddef.h.
87588         * lib/quote.c: Include stddef.h.
87589         Reported by Axel Kittenberger.
87590
87591         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87592         line in double quotes so that it evokes a better diagnostic.
87593         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87594         Reported by Axel Kittenberger.
87595
87596 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87597
87598         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87599         as if it was a `charset'.
87600
87601 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87602
87603         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87604         has const.
87605
87606 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87607
87608         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87609         to avoid a warning.  Add back 'const' to inptr.
87610
87611 2001-01-20  Jim Meyering  <meyering@lucent.com>
87612
87613         Be sure that headers are checked before used in code compiled
87614         for the type checks.
87615         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87616         In place of that, invoke jm_CHECK_ALL_TYPES.
87617         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87618         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87619         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87620         The check for ssize_t was mistakenly run before the test for unistd.h.
87621
87622         The configure-time check for stdbool.h was missing.
87623         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87624         (jm_PREREQ_HASH): New function.
87625
87626 2001-01-17  Jim Meyering  <meyering@lucent.com>
87627
87628         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87629         for autoconf-2.49c.
87630         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87631
87632 2001-01-16  Jim Meyering  <meyering@lucent.com>
87633
87634         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87635         From Bruno Haible.
87636
87637 2001-01-14  Jim Meyering  <meyering@lucent.com>
87638
87639         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87640         foo and bar.  Create conftestdir/ in the script, not in the C code.
87641         Remove directories in the script, not in the C code.
87642         Remove conftestdir{,2} before trying to create the directory.
87643         Make the entire configure script fail if the mkdir fails.
87644
87645 2001-01-14  Jim Meyering  <meyering@lucent.com>
87646
87647         * lib/rename.c: New file.  From Volker Borchert.
87648         Include stdlib.h, string.h or strings.h, and xalloc.h.
87649         Use strip_trailing_slashes rather than open-coding it.
87650
87651 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87652
87653         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87654
87655 2001-01-03  Jim Meyering  <meyering@lucent.com>
87656
87657         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87658         of local `inptr' to avoid warning with some system declarations of
87659         iconv.
87660
87661 2001-01-02  Volker Borchert  <bt@teknon.de>
87662
87663         * m4/rename.m4: New file.
87664         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87665
87666 2001-01-01  Jim Meyering  <meyering@lucent.com>
87667
87668         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87669         even on systems with utmpx.h.  It's necessary for the declaration of
87670         utmp's ut_user member.  Reported by Andreas Jaeger.
87671
87672         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87673         available. They are required for the declarations of getgrgid and
87674         getpwuid resp.
87675         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87676         Reported by Andreas Jaeger.
87677
87678 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87679
87680         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87681         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87682         so `make install' also works in VPATH builds.
87683
87684 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87685
87686         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87687         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87688         can be used in subdirectories.
87689
87690 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87691
87692         * lib/modechange.c: Do not assume that mode_t uses the
87693         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87694         the other-execute bit of FOO even if S_IXOTH != 1.
87695
87696         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87697         WOTH, XOTH, ALLM): New macros.
87698         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87699          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87700         Use them.
87701         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87702         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87703         (mode_compile):
87704         No need to use uintmax_t; unsigned long is long enough.
87705         Don't bother to get suffix since we don't use it.
87706
87707 2000-12-26  Jim Meyering  <meyering@lucent.com>
87708
87709         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87710         better with autoheader.
87711
87712 2000-12-24  Jim Meyering  <meyering@lucent.com>
87713
87714         * lib/hash.c (is_prime): Return explicit boolean values.
87715         (hash_get_first): Return NULL to appease Irix5.6's 89.
87716         Reported by Nelson Beebe.
87717
87718 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87719
87720         * lib/localcharset.c (locale_charset): Add support for Win32.
87721
87722 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87723
87724         * lib/physmem.h, lib/physmem.c: New files.
87725
87726         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87727         (noinst_HEADERS): Add physmem.h.
87728
87729         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87730         't' for compatibility with Solaris 8 sort.
87731
87732 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87733
87734         * lib/config.charset: Add support for BeOS.
87735
87736 2000-12-17  Jim Meyering  <meyering@lucent.com>
87737
87738         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87739         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87740
87741 2000-12-16  Jim Meyering  <meyering@lucent.com>
87742
87743         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87744         N and M) would have treated it like `chown N:N FILE'.
87745
87746         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87747
87748 2000-12-16  Jim Meyering  <meyering@lucent.com>
87749
87750         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87751         SHELLS_FILE to a file name that's useful on djgpp systems.
87752         Include stdlib.h.
87753         (ADDITIONAL_DEFAULT_SHELLS): Define.
87754         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87755         Based mostly on a patch from Prashant TR.
87756
87757 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87758
87759         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87760         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87761         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87762
87763 2000-12-08  Andreas Schwab  <schwab@suse.de>
87764
87765         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87766         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87767
87768 2000-12-07  Jim Meyering  <meyering@lucent.com>
87769
87770         * lib/stripslash.c (ISSLASH): Define.
87771         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87772         `/'.
87773         From Prashant TR.
87774
87775         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87776         (dir_name_r): Declare this function as static.
87777         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87778         manifest itself on a name containing a mix of slashes and
87779         backslashes.
87780         Make this function work with names starting with a DOS-style
87781         drive letter and colon prefix.
87782         (dir_name): Append `.' if necessary.
87783         Based mostly on patches from Prashant TR and Eli Zaretskii.
87784
87785         * lib/dirname.h (dir_name_r): Remove prototype.
87786
87787 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87788
87789         * m4/off_t-format.m4: Remove this file.
87790         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87791
87792 2000-12-06  Jim Meyering  <meyering@lucent.com>
87793
87794         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87795         replacement strtoull, we may well need the replacement strtoul, too.
87796         Check for declarations of strtoul and strtoull.
87797         Check for strtol.  Mainly as a cue to cause automake to include
87798         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87799         Check for limits.h -- strtol.c needs it.
87800
87801 2000-12-05  Jim Meyering  <meyering@lucent.com>
87802
87803         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87804
87805 2000-12-04  Jim Meyering  <meyering@lucent.com>
87806
87807         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87808         Also include memory.h, stdlib.h, unistd.h if appropriate.
87809         Reported by Andreas Jaeger (conflicting declaration of malloc).
87810
87811 2000-12-02  Jim Meyering  <meyering@lucent.com>
87812
87813         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87814         * m4/jm-macros.m4 (jm_MACROS): require it.
87815
87816 2000-12-02  Jim Meyering  <meyering@lucent.com>
87817
87818         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87819
87820 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87821
87822         * lib/memrchr.c: Include <config.h> before any system include file.
87823
87824 2000-11-30  Jim Meyering  <meyering@lucent.com>
87825
87826         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87827
87828 2000-11-30  Jim Meyering  <meyering@lucent.com>
87829
87830         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87831
87832 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87833
87834         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87835
87836 2000-11-26  Jim Meyering  <meyering@lucent.com>
87837
87838         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87839
87840 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87841
87842         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87843         size of (size_t) -1; it's not portable.
87844
87845 2000-11-17  Jim Meyering  <meyering@lucent.com>
87846
87847         * lib/strstr.c: Update from GNU libc.
87848
87849 2000-11-17  Akim Demaille  <akim@epita.fr>
87850
87851         * lib/obstack.h: Formatting changes.
87852         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87853         prevent type checking.
87854         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87855         cast the value to (void *): assigning a `foo *' to a `void *'
87856         variable is valid.
87857         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87858
87859 2000-11-16  Jim Meyering  <meyering@lucent.com>
87860
87861         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87862
87863 2000-11-11  Jim Meyering  <meyering@lucent.com>
87864
87865         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87866
87867 2000-11-10  Jim Meyering  <meyering@lucent.com>
87868
87869         * lib/obstack.h: Update from GNU libc.
87870         * lib/obstack.c: Likewise.
87871
87872 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87873
87874         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87875
87876 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87877
87878         * lib/getusershell.c (setusershell): Use rewind rather than
87879         fseek/fseeko, to avoid configuration hassles with fseeko.
87880         Don't bother opening SHELLS_FILE if shellstream is NULL;
87881         it's not necessary.
87882
87883 2000-11-05  Jim Meyering  <meyering@lucent.com>
87884
87885         * lib/makepath.h (make_dir): Declare.
87886         * lib/makepath.c (make_dir): Remove `static' attribute.
87887         Tweak a comment.
87888
87889 2000-11-04  Jim Meyering  <meyering@lucent.com>
87890
87891         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87892
87893 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87894
87895         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87896         last one in a bucket, advance to the next bucket.
87897
87898 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87899
87900         * lib/fnmatch.c: Do not comment out all the code if we are using
87901         the GNU C library, because in some cases we are replacing buggy
87902         code in the GNU C library itself.
87903
87904 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87905
87906         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87907         (regex_compile): Catch bogus \(\1\).
87908
87909 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87910
87911         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87912         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87913         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87914
87915 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87916
87917         * lib/error.h, getline.h, modechange.h:
87918         Remove "2000" from Copyright line, as the file hasn't been
87919         changed this year other than in the copyright notice.
87920
87921         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87922         was changed this year.
87923
87924 2000-10-29  Jim Meyering  <meyering@lucent.com>
87925
87926         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87927         renaming.
87928         * m4/ls-mntd-fs.m4: Likewise
87929
87930 2000-10-29  Jim Meyering  <meyering@lucent.com>
87931
87932         * lib/xstat.in: Fix grammar in comment.
87933
87934 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87935
87936         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87937         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87938         doesn't define __restrict_arr.
87939
87940 2000-10-28  Jim Meyering  <meyering@lucent.com>
87941
87942         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87943         (jm_PREREQ_MEMCHR): New function.
87944
87945 2000-10-28  Jim Meyering  <meyering@lucent.com>
87946
87947         * lib/memchr.c: Update from libc.
87948         Adjust for portability:
87949         [HAVE_STDLIB_H]: Include stdlib.h.
87950         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87951         Undef __memchr, too.
87952         [!weak_alias]: Define __memchr to memchr.
87953
87954         * lib/regex.c: Update from libc.
87955         * lib/regex.h: Likewise.
87956         * lib/getopt1.c: Likewise.
87957         * lib/memcmp.c: Likewise.
87958
87959         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87960         Avoid using fseek, when possible -- it's broken by design.
87961         Patch by Ulrich Drepper.
87962
87963 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87964
87965         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87966         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87967         Giving in to popular pressure to shut up the compiler with casts.
87968
87969 2000-10-26  Jim Meyering  <meyering@lucent.com>
87970
87971         * lib/strftime.c: Update from libc.
87972
87973 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87974
87975         * regex.c: More `unsigned char' -> `re_char' changes.
87976         Also change several `int' into `re_wchar_t'.
87977         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87978         (PUSH_FAILURE_POINTER): Don't cast any more.
87979         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87980         We want GCC to complain, since this piece of code makes
87981         re_match non-reentrant, which *should* be fixed.
87982         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87983         (EXTEND_BUFFER): Use RETALLOC.
87984         (SET_LIST_BIT): Don't cast.
87985         (re_wchar_t): New type.
87986         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87987         that those two functions will always properly return.
87988         (IMMEDIATE_QUIT_CHECK): Cast to void.
87989         (analyse_first): Use recursion rather than an explicit stack.
87990         (re_compile_fastmap): Can't fail anymore.
87991         (re_search_2): Don't check re_compile_fastmap for failure.
87992         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87993         Now also sets the new value (passed in a new argument).
87994         (re_match_2_internal): Use it.
87995         Also, use a new var `reg' of type size_t when looping through regs
87996         rather than reuse the inappropriate `mcnt'.
87997
87998 2000-10-25  Jim Meyering  <meyering@lucent.com>
87999
88000         * lib/obstack.c: Update from libc.
88001
88002 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88003
88004         * regex.c (regex_compile): Change the way of handling a range from
88005         a char less than 256 to a char not less than 256.
88006
88007 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88008
88009         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88010         NT-Emacs only.
88011         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88012         so that re_search functions only quit when callers expect them to.
88013
88014 2000-10-23  Jim Meyering  <meyering@lucent.com>
88015
88016         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88017         wrong.  That set_locale call must not have any side effects.
88018         From Paul Eggert.
88019
88020 2000-10-22  Jim Meyering  <meyering@lucent.com>
88021
88022         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88023         [CYCLIC]: Remove now-unused definition.
88024
88025         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88026         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88027         Suggestion from Ulrich Drepper.
88028
88029 2000-10-21  Jim Meyering  <meyering@lucent.com>
88030
88031         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88032         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88033         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88034
88035 2000-10-21  Jim Meyering  <meyering@lucent.com>
88036
88037         * lib/dirname.c (memrchr): Declare if necessary.
88038         (dir_name): Remove the restriction that there be no
88039         trailing slashes.  Now, this code skips past them, effectively
88040         ignoring them.
88041         [TEST_DIRNAME] (main): New unit tests.
88042
88043         * lib/memrchr.c: New file from GNU libc.
88044         Undef __memrchr, too.
88045         [!weak_alias]: Define __memrchr to memrchr.
88046         Guard weak_alias use with `#ifdef weak_alias'.
88047
88048 2000-10-21  Jim Meyering  <meyering@lucent.com>
88049
88050         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88051         (dir_name): Use dir_name_r.
88052         * lib/dirname.h (dir_name_r): Declare it.
88053
88054 2000-10-17  Jim Meyering  <meyering@lucent.com>
88055
88056         * lib/quote.h (PARAMS): Define and use.
88057         Reported by Akim Demaille.
88058
88059         * lib/getopt.c: Update from libc.
88060
88061 2000-10-16  Jim Meyering  <meyering@lucent.com>
88062
88063         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88064         setlocale.
88065         From Jan Fedak.
88066
88067 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88068
88069         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88070
88071 2000-09-25  Jim Meyering  <meyering@lucent.com>
88072
88073         * lib/md5.h (rol): Define (from GnuPG).
88074
88075         * lib/sha.c: Give credit (GnuPG) where due.
88076         (M): Use rol rather than open-coding it.
88077         Add a FIXME comment.
88078
88079 2000-09-21  Jim Meyering  <meyering@lucent.com>
88080
88081         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88082         Reported by Michael Stone.
88083
88084 2000-09-20  Jim Meyering  <meyering@lucent.com>
88085
88086         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88087         (noinst_HEADERS): Add sha.h.
88088         Based on code from Scott G. Miller and from GnuPG.
88089
88090 2000-09-18  Jim Meyering  <meyering@lucent.com>
88091
88092         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88093         LIBS. Otherwise, everyone ends up linking with -lelf for some
88094         configurations.
88095         Reported by Mike Stone.
88096
88097 2000-09-15  Jim Meyering  <meyering@lucent.com>
88098
88099         * lib/regex.c: Update from libc.
88100
88101 2000-09-10  Jim Meyering  <meyering@lucent.com>
88102
88103         * lib/getopt.c (_getopt_internal): Update from glibc.
88104
88105 2000-09-09  Jim Meyering  <meyering@lucent.com>
88106
88107         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88108         think it should be used as a general replacement for isascii.
88109         * lib/fnmatch.c: Likewise.
88110         * lib/mbswidth.c: Likewise
88111         * lib/regex.c: Likewise.
88112
88113         Don't use atoi.
88114         * lib/userspec.c: Include sys/param.h and limits.h.
88115         Include xstrtol.h.
88116         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88117         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88118         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88119         UID, GID.  Check range.
88120
88121 2000-09-06  Jim Meyering  <meyering@lucent.com>
88122
88123         * lib/getopt.c (_getopt_internal): Update from glibc.
88124
88125 2000-08-30  Jim Meyering  <meyering@lucent.com>
88126
88127         * lib/strftime.c: Merge in changes from GNU libc.
88128
88129 2000-08-26  Jim Meyering  <meyering@lucent.com>
88130
88131         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88132         * m4/fpending.m4: New file.
88133
88134 2000-08-26  Jim Meyering  <meyering@lucent.com>
88135
88136         * lib/closeout.c: Include "__fpending.h".
88137         (close_stdout_status): Return right away if there's nothing to flush.
88138
88139         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88140         * lib/__fpending.c: New file.
88141         * lib/__fpending.h: New file.
88142
88143 2000-08-20  Jim Meyering  <meyering@lucent.com>
88144
88145         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88146         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88147         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88148
88149 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88150
88151         Improve fileutils installation on systems where running
88152         programs (like install) can't be unlinked.
88153         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88154         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88155
88156 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88157
88158         Standardize on "memory exhausted" instead of "Memory exhausted"
88159         or "virtual memory exhausted".
88160         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88161         "virtual memory exhausted".
88162         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88163         our own message.
88164         * lib/userspec.c (parse_user_spec): Likewise.
88165         * lib/bumpalloc.h: comment fix
88166         * lib/same.c, userspec.c: Include xalloc.h.
88167
88168         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88169         not char *const and pointing to a constant array.
88170         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88171         (xrealloc): Comment fix.
88172
88173         * lib/userspec.c (parse_user_spec):
88174         Don't translate a message until just before returning,
88175         to avoid unnecessary translation.
88176
88177 2000-08-07  Jim Meyering  <meyering@lucent.com>
88178
88179         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88180         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88181         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88182         getgroups.c, gethostname.c, getopt.h, group-member.c,
88183         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88184         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88185         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88186         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88187         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88188         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88189         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88190         yesno.c: Back out Copyright date changes for each file with no change
88191         this year.  This eases coordination with other programs using the same
88192         source code modules.  From Paul Eggert.
88193
88194 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88195
88196         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88197         not char, for compatibility with glibc 2.1.3 strftime.c.
88198
88199 2000-08-03  Greg McGary  <greg@mcgary.org>
88200
88201         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88202         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88203         (EXTEND_BUFFER): Use them.
88204
88205 2000-08-01  Jim Meyering  <meyering@lucent.com>
88206
88207         * lib/dirname.c (ISSLASH): Define.
88208         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88209         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88210         both `\' and `/' may be use as path separators.
88211         Based on a patch from Prashant TR.
88212
88213 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88214
88215         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88216         slot vector a constant, since it might get modified.
88217
88218 2000-07-31  Jim Meyering  <meyering@lucent.com>
88219
88220         * lib/xmalloc.c: Use `virtual memory exhausted', not
88221         `Memory exhausted'.
88222         * lib/obstack.c (print_and_abort): Likewise.
88223
88224 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88225
88226         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88227         buffer, so that the caller can always quote one small
88228         component of a "memory exhausted" message in slot 0.
88229         From a suggestion by Jim Meyering.
88230
88231 2000-07-30  Jim Meyering  <meyering@lucent.com>
88232
88233         * lib/makepath.c (make_path): Quote the other instance, too.
88234
88235         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88236         (STATIC_BUF_SIZE): Define.
88237         (quotearg_n_options): Use only statically allocated storage when
88238         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88239         than STATIC_BUF_SIZE.
88240
88241 2000-07-29  Jim Meyering  <meyering@lucent.com>
88242
88243         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88244         * lib/dirname.c (dir_name): Likewise.
88245
88246         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88247         `/'.
88248
88249         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88250         (dir_name): Assert that there are no trailing slashes.
88251
88252 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88253
88254         * lib/mbswidth.h (mbswidth): Add a flags argument.
88255         (mbswidth): New declaration.
88256         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88257         * lib/mbswidth.c (mbswidth): Add a flags argument.
88258         (mbsnwidth): New function.
88259
88260 2000-07-24  Jim Meyering  <meyering@lucent.com>
88261
88262         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88263
88264 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88265
88266         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88267
88268 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88269
88270         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88271         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88272         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88273         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88274         invoke multibyte primitives.
88275
88276 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88277
88278         * lib/quotearg.c:
88279         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88280         so that mbstate_t is always defined.
88281
88282         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88283         be 1 in at least one GCC installation, and this configuration
88284         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88285         performance on hosts that have mbrtowc but have only unibyte
88286         locales, but I assume these hosts are rare.
88287
88288 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88289
88290         * lib/mbswidth.c (_XOPEN_SOURCE):
88291         Don't define; this causes problems on Solaris 7.
88292         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88293
88294 2000-07-23  Jim Meyering  <meyering@lucent.com>
88295
88296         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88297         too: getgrgid, getpwuid, getuid.
88298
88299 2000-07-23  Jim Meyering  <meyering@lucent.com>
88300
88301         * lib/basename.c (base_name): Add an assertion.
88302
88303 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88304
88305         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88306         shadow its mbsinit function.
88307
88308 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88309
88310         * lib/mbswidth.h: New file.
88311         * lib/mbswidth.c: New file.
88312         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88313         (noinst_HEADERS): Add mbswidth.h.
88314
88315 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88316
88317         * lib/config.charset: Add support for FreeBSD. Improve support for
88318         HP-UX and IRIX 6.
88319
88320 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88321
88322         * m4/mbswidth.m4: New file.
88323         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88324
88325 2000-07-15  Jim Meyering  <meyering@lucent.com>
88326
88327         * lib/makepath.c: Include quote.h.
88328         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88329         corresponding argument in a `quote (...)' call.
88330         Give better diagnostics.
88331
88332         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88333         (noinst_HEADERS): Add quote.h.
88334
88335         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88336         from tar's src/misc.c.
88337         * lib/quote.h: New file.  Prototypes for same.
88338
88339 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88340
88341         From a suggestion by Bruno Haible.
88342         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88343         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88344         to decide whether to define the BeOS workaround macro;
88345         this adjusts to the change to AC_MBSTATE_T.
88346
88347 2000-07-14  Jim Meyering  <meyering@lucent.com>
88348
88349         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88350         jm_AC_TYPE_UINTMAX_T.
88351
88352 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88353
88354         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88355
88356         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88357         quotearg_buffer_restyled): Add support for
88358         clocale_quoting_style.  Undo previous change to
88359         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88360         and "{RIGHT QUOTATION MARK}" msgids.
88361
88362 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88363
88364         From a suggestion by Bruno Haible.
88365         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88366         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88367         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88368         and mbstate_t, to a single-part test that simply defines mbstate_t.
88369         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88370         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88371
88372 2000-07-10  Jim Meyering  <meyering@lucent.com>
88373
88374         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88375
88376         * m4/gnu-source.m4: Output to confdefs.h directly.
88377         Suggestion from Akim Demaille.
88378
88379 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88380
88381         The old behavior of quoting `like this' doesn't look good with
88382         newer, ISO-style fonts.  See:
88383         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88384
88385         Instead, quote "like this" by default.  Let the translator
88386         tailor the locale-specific quoting behavior by providing
88387         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88388
88389         * lib/quotearg.c (N_): New macro.
88390         (gettext_default): New function.
88391         (quotearg_buffer_restyled): Use
88392         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88393         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88394
88395 2000-07-09  Jim Meyering  <meyering@lucent.com>
88396
88397         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88398         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88399
88400         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88401         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88402
88403 2000-07-09  Jim Meyering  <meyering@lucent.com>
88404
88405         * lib/Most files: Update copyright dates to include 2000.
88406
88407 2000-07-08  Jim Meyering  <meyering@lucent.com>
88408
88409         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88410         if not defined.
88411         (xgethostname): Remove now-unnecessary #ifdef.
88412         Move declaration of `err' into loop where it's used.
88413
88414 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88415         and Bruno Haible  <haible@clisp.cons.org>
88416
88417         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88418         only if the test for an object-type mbstate_t fails.  This
88419         prevents us from mistakenly reporting that mbstate_t is a
88420         system object type after we "#define mbstate_t int" to work
88421         around its lack.
88422
88423 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88424         and Bruno Haible  <haible@clisp.cons.org>
88425
88426         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88427
88428 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88429
88430         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88431         to strerror_r.
88432         Include <ctype.h> for use of isalpha.
88433
88434 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88435
88436         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88437         by allocating a larger buffer. Test the gethostname return value for
88438         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88439         returns an error and ENAMETOOLONG isn't defined.
88440
88441 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88442
88443         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88444         dimension.
88445
88446 2000-07-04  Jim Meyering  <meyering@lucent.com>
88447
88448         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88449         of the deprecated AC_CHECKING.
88450
88451 2000-07-04  Jim Meyering  <meyering@lucent.com>
88452
88453         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88454         Reported by Bruno Haible.
88455
88456 2000-07-04  Jim Meyering  <meyering@lucent.com>
88457
88458         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88459         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88460         lacks mbrtowc.
88461
88462 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88463
88464         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88465         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88466
88467 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88468         and Bruno Haible  <haible@clisp.cons.org>
88469
88470         * lib/quotearg.c (mbrtowc):
88471         Assign to *pwc, and return 1 only if result is nonzero.
88472         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88473
88474 2000-07-03  Jim Meyering  <meyering@lucent.com>
88475
88476         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88477
88478 2000-07-03  Jim Meyering  <meyering@lucent.com>
88479
88480         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88481         This is necessary to get a definition of e.g., UTMP_FILE on
88482         HP-UX 10.20.
88483         From Bob Proulx.
88484
88485 2000-07-02  Jim Meyering  <meyering@lucent.com>
88486
88487         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88488
88489         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88490         AC_LIBOBJ(function_name).
88491         * m4/chown.m4: Likewise.
88492         * m4/fnmatch.m4: Likewise.
88493         * m4/ftruncate.m4: Likewise.
88494         * m4/getgroups.m4: Likewise.
88495         * m4/getline.m4: Likewise.
88496         * m4/group-member.m4: Likewise.
88497         * m4/jm-macros.m4: Likewise.
88498         * m4/lstat.m4: Likewise.
88499         * m4/malloc.m4: Likewise.
88500         * m4/memcmp.m4: Likewise.
88501         * m4/nanosleep.m4: Likewise.
88502         * m4/putenv.m4: Likewise.
88503         * m4/realloc.m4: Likewise.
88504         * m4/regex.m4: Likewise.
88505         * m4/stat.m4: Likewise.
88506         * m4/strftime.m4: Likewise.
88507
88508 2000-07-02  Jim Meyering  <meyering@lucent.com>
88509
88510         * lib/quotearg.c (mbstate_t): Don't define here.
88511
88512 2000-07-02  Jim Meyering  <meyering@lucent.com>
88513
88514         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88515
88516 2000-07-01  Jim Meyering  <meyering@lucent.com>
88517
88518         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88519
88520 2000-07-01  Jim Meyering  <meyering@lucent.com>
88521
88522         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88523         problem.
88524
88525 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88526
88527         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88528         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88529
88530 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88531
88532         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88533         per change in ../m4/ls-mntd-fs.m4.
88534         (read_filesystem_list): Ignore symbolic links.
88535
88536 2000-06-29  Jim Meyering  <meyering@lucent.com>
88537
88538         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88539         for declaration of strcmp.
88540
88541         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88542
88543         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88544         Avoid warning by casting result to `char *' to remove `const'.
88545
88546 2000-06-28  Jim Meyering  <meyering@lucent.com>
88547
88548         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88549         included by quotearg.c, for which we perform this test.  From
88550         Bruno Haible.
88551
88552 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88553
88554         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88555         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88556         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88557
88558 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88559
88560         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88561
88562 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88563
88564         savedir now sets errno on failure and invokes xmalloc to get memory.
88565         Fix a couple of other minor bugs while we're at it.
88566
88567         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88568         (NAMLEN): Remove macro.
88569         (malloc, realloc): Remove decls.
88570         (stpcpy): Likewise.
88571         ("xalloc.h"): Include.
88572         (NAME_SIZE_DEFAULT): New macro.
88573         (savedir): Use xmalloc / xrealloc to allocate memory.
88574         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88575         Skip "" directory entries.
88576         Use strlen to calculate directory entry length, since the old method
88577         is rarely used these days and isn't worth supporting.
88578         Don't use a pointer after freeing it.
88579         Check for integer overflow when calculating allocation size.
88580         Use memcpy to copy entries, instead of stpcpy.
88581         Set errno properly when returning NULL.
88582         Check for readdir error.
88583
88584 2000-06-26  Jim Meyering  <meyering@lucent.com>
88585
88586         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88587
88588 2000-06-25  Jim Meyering  <meyering@lucent.com>
88589
88590         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88591         Linux header bug when _XOPEN_SOURCE is defined to 500.
88592
88593 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88594
88595         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88596         deficiency.
88597
88598 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88599
88600         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88601         Include xalloc.h.
88602         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88603
88604 2000-06-24  Jim Meyering  <meyering@lucent.com>
88605
88606         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88607         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88608         for which strerror does return char*, but which lacks a conveniently
88609         accessible declaration of the function.  If the compile-test says
88610         strerror_r doesn't work, then resort to a `run'-test that works on
88611         BeOS and segfaults on DEC Unix.
88612
88613 2000-06-24  Jim Meyering  <meyering@lucent.com>
88614
88615         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88616
88617 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88618
88619         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88620         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88621
88622 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88623
88624         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88625         (mbrtowc, mbstate_t): Define substitutes if
88626         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88627         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88628         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88629
88630 2000-06-23  Jim Meyering  <meyering@lucent.com>
88631
88632         * m4/afs.m4: Add missing AC_MSG_RESULT.
88633         Reported by Bruno Haible.
88634
88635         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88636         Suggestion from Bruno Haible.
88637
88638 2000-06-23  Jim Meyering  <meyering@lucent.com>
88639
88640         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88641
88642 2000-06-21  Jim Meyering  <meyering@lucent.com>
88643
88644         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88645
88646 2000-06-21  Jim Meyering  <meyering@lucent.com>
88647
88648         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88649         (noinst_HEADERS): Add getstr.h.
88650
88651         * lib/getline.c (getstr): Move into a separate file.
88652         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88653         the following changes: new parameter, delim2; both delim[12]
88654         parameters have type `int', not `char'.  The latter would lose
88655         with 8-bit delimiters.
88656         * lib/getstr.h: New file.
88657
88658 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88659
88660         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88661         than 1024, return a memory chunk of least possible size, instead
88662         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88663         Use free/xmalloc instead of xrealloc to avoid copying for very long
88664         paths.
88665
88666 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88667
88668         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88669         the empty string.
88670
88671 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88672
88673         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88674         address, not strdup.  Include <stdlib.h> and don't declare free().
88675
88676 2000-06-19  Jim Meyering  <meyering@lucent.com>
88677
88678         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88679
88680 2000-06-18  Jim Meyering  <meyering@lucent.com>
88681
88682         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88683
88684         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88685         `checking whether...' message to be consistent with that of the
88686         lstat test.
88687
88688 2000-06-18  Jim Meyering  <meyering@lucent.com>
88689
88690         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88691         Besides, these days every porting target provides a mkdir function.
88692
88693         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88694         needed. (this snippet comes from src/system.h).
88695
88696 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88697
88698         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88699
88700 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88701
88702         * lib/human.c (adjust_value): New function.
88703         (human_readable_inexact): Apply rounding style even when
88704         printing approximate values.
88705
88706 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88707
88708         * lib/human.c (human_readable_inexact): Allow an input block
88709         size that is not a multiple of the output block size, and vice versa.
88710         Reported by Piergiorgio Sartor.
88711
88712 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88713
88714         * lib/getdate.y (get_date): Apply relative times after time
88715         zone indicator, not before.  Reported by Todd A. Jacobs.
88716
88717 2000-06-13  Jim Meyering  <meyering@lucent.com>
88718
88719         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88720
88721         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88722
88723 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88724
88725         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88726
88727 2000-06-12  Jim Meyering  <meyering@lucent.com>
88728
88729         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88730         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88731         optional argument.
88732         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88733         the optional argument, `lib'.
88734
88735 2000-06-08  Jim Meyering  <meyering@lucent.com>
88736
88737         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88738
88739 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88740
88741         Rewrite largefile configuration so that we don't need to run
88742         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88743         AC_CANONICAL_HOST in configure.in -- jmm]
88744
88745         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88746         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88747         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88748         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88749         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88750         All uses changed.
88751         Instead of inspecting the output of getconf, try to compile the
88752         test program without and with the macro definition.
88753         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88754         for getconf.  Instead, check for the needed flags by compiling
88755         test programs.
88756
88757 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88758
88759         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88760
88761 2000-06-04  Jim Meyering  <meyering@lucent.com>
88762
88763         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88764         SunOS 4.1.4 for which gid_t is an unsigned type.
88765
88766 2000-06-03  Jim Meyering  <meyering@lucent.com>
88767
88768         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88769         now that autoconf requires that.
88770
88771         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88772         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88773         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88774
88775 2000-06-03  Jim Meyering  <meyering@lucent.com>
88776
88777         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88778
88779 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88780
88781         * m4/glibc21.m4: New file.
88782         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88783
88784 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88785
88786         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88787         newer, don't install charset.alias.
88788         * lib/config.charset: Change the Linux/glibc rules so they become empty
88789         on glibc-2.1 or newer.
88790
88791 2000-06-02  Jim Meyering  <meyering@lucent.com>
88792
88793         * lib/mountlist.c: Back out last change.  Instead, do this...
88794         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88795         me_dummy member using the same `ignore'-testing code.
88796         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88797         fs_type strings.
88798         From Mark D. Roth.
88799
88800 2000-05-29  Jim Meyering  <meyering@lucent.com>
88801
88802         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88803         mounts with the `ignore' attribute.  Based on a patch from
88804         Mark D. Roth.
88805
88806 2000-05-28  Jim Meyering  <meyering@lucent.com>
88807
88808         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88809         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88810         * m4/stat.m4: Likewise.
88811         * m4/lstat.m4: Likewise.
88812         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88813
88814         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88815         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88816
88817 2000-05-26  Jim Meyering  <meyering@lucent.com>
88818
88819         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88820
88821 2000-05-24  Jim Meyering  <meyering@lucent.com>
88822
88823         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88824         autoconf requires that.
88825         * m4/lib-check.m4: Likewise.
88826         * m4/jm-macros.m4: Likewise.
88827         * m4/strftime.m4: Likewise.
88828
88829         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88830         AC_CHECK_DECLS, now that autoconf requires that.
88831
88832 2000-05-22  Jim Meyering  <meyering@lucent.com>
88833
88834         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88835         * m4/lstat.m4: Likewise.
88836
88837 2000-05-22  Jim Meyering  <meyering@lucent.com>
88838
88839         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88840
88841 2000-05-20  Jim Meyering  <meyering@lucent.com>
88842
88843         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88844         (jm_PREREQ): Use it.
88845
88846 2000-05-18  Jim Meyering  <meyering@lucent.com>
88847
88848         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88849         back, too, since it may have been modified by allocate_entry.
88850         (hash_delete): Rewrite to use neither the assignment operator
88851         nor the comma operator in an if-expression.
88852
88853 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88854
88855         * lib/closeout.c:
88856         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88857         Remove; no longer needed.
88858         "quotearg.h": Add include.
88859         (file_name): Do not bother to explicitly initialize to NULL; it's less
88860         efficient on some hosts.
88861         (close_stdout_status): Remove test as to whether stdout was already
88862         closed; it breaks for the case "echo x | sort >&-".
88863         Quote file name colons.
88864         Do not assume that _("write error") lacks format strings.
88865
88866 2000-05-15  Jim Meyering  <meyering@lucent.com>
88867
88868         * lib/version-etc.c (version_etc_copyright): Update the copyright
88869         string used in all --version output.
88870
88871 2000-05-14  Jim Meyering  <meyering@lucent.com>
88872
88873         * lib/closeout.c (close_stdout_set_file_name): New function.
88874         (close_stdout_status): Use new file-scoped global.
88875         Return right away if fstat says the stdout file descriptor is invalid.
88876         * lib/closeout.h (close_stdout_set_file_name): Declare.
88877
88878 2000-05-10  Jim Meyering  <meyering@lucent.com>
88879
88880         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88881         (close_stdout_set_status): New function.
88882         * lib/closeout.h (close_stdout_set_status): Declare.
88883
88884 2000-05-09  Jim Meyering  <meyering@lucent.com>
88885
88886         * m4/gettext.m4: Rename this...
88887         * m4/libintl.m4: ...to this.
88888
88889 2000-05-08  Jim Meyering  <meyering@lucent.com>
88890
88891         * lib/long-options.c: Don't include closeout.h.
88892         (parse_long_options): Don't call close_stdout for --version.
88893
88894 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88895
88896         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88897         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88898         2.1.3 bug.  This avoids a clash when files like regex.c define
88899         _GNU_SOURCE.
88900
88901 2000-05-06  Jim Meyering  <meyering@lucent.com>
88902
88903         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88904         (AC_REPLACE_FUNCS): Add strnlen.
88905
88906         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88907         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88908
88909         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88910         AC_SEARCH_LIBS call for nanosleep.
88911         (LIB_NANOSLEEP): Set and AC_SUBST.
88912
88913 2000-05-06  Jim Meyering  <meyering@lucent.com>
88914
88915         * lib/strnlen.c: Undefine __strnlen and strnlen.
88916         [!weak_alias]: Define __strnlen to strnlen.
88917
88918         * lib/atexit.c: New file, from libiberty.
88919
88920 2000-05-06  Jim Meyering  <meyering@lucent.com>
88921
88922         * lib/closeout.c (close_stdout_status): Also check for errors on the
88923         stderr stream.
88924
88925 2000-05-05  Jim Meyering  <meyering@lucent.com>
88926
88927         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88928         AC_SEARCH_LIBS call for clock_gettime.
88929         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88930
88931         * m4/search-libs.m4: Update from autoconf.
88932
88933         su doesn't work on Solaris 2.6.
88934         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88935         <shadow.h>.  Reported by Dragos Harabor.
88936
88937 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88938
88939         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88940         memcpy instead of xmalloc, xrealloc, path_concat.
88941         (locale_charset): Treat empty environment variables as absent.
88942         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88943
88944 2000-05-04  Jim Meyering  <meyering@lucent.com>
88945
88946         * lib/getopt.c: Update from glibc.
88947         * lib/obstack.c: Likewise.
88948         * lib/obstack.h: Likewise.
88949         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88950         file
88951
88952         * lib/regex.h: Likewise.
88953         * lib/strndup.c: Likewise.
88954         * lib/strnlen.c: New file, from glibc.
88955
88956 2000-05-03  Jim Meyering  <meyering@lucent.com>
88957
88958         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88959
88960 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88961
88962         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88963         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88964         compile-time test, rather than inspecting host and OS, to
88965         decide whether to define _LARGEFILE_SOURCE.
88966
88967 2000-05-01  Jim Meyering  <meyering@lucent.com>
88968
88969         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88970
88971         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88972         Based on a patch from Bruno Haible.
88973
88974 2000-05-01  Jim Meyering  <meyering@lucent.com>
88975
88976         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88977
88978 2000-04-29  Jim Meyering  <meyering@lucent.com>
88979
88980         * lib/path-concat.c: Declare strdup only if it's not defined.
88981         * lib/canon-host.c: Likewise.
88982
88983 2000-04-28  Jim Meyering  <meyering@lucent.com>
88984
88985         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88986         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88987         is included first, then limits.h is included by locale.h by libintl.h.
88988         From John David Anglin.
88989
88990 2000-04-25  Jim Meyering  <meyering@lucent.com>
88991
88992         * lib/makepath.c (S_IRWXUGO): Define.
88993         (make_path): Always perform explicit chmod if MODE specifies any
88994         of the `special' permission bits.  Prompted by a bug report against
88995         install from Mate Wierdl and Joost van Baal.
88996
88997 2000-04-18  Jim Meyering  <meyering@lucent.com>
88998
88999         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89000         (jm_PREREQ): Use it.
89001
89002 2000-04-18  Jim Meyering  <meyering@lucent.com>
89003
89004         * lib/README: New file.
89005
89006         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89007         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89008
89009 2000-04-17  Jim Meyering  <meyering@lucent.com>
89010
89011         Get it right :-)
89012         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89013         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89014         Suggestion from Akim Demaille.
89015
89016 2000-04-17  Jim Meyering  <meyering@lucent.com>
89017
89018         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89019         the definition of it to rpl_strftime also defined-away the system's
89020         declaration.
89021
89022 2000-04-15  Jim Meyering  <meyering@lucent.com>
89023
89024         Use `C' to denote so-called `contiguous' files, the same way
89025         that tar does.
89026         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89027         (ftypelet): Use S_ISCTG.
89028         From Michael Deutschmann.
89029
89030 2000-04-14  Jim Meyering  <meyering@lucent.com>
89031
89032         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89033         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89034         clobbered.
89035
89036 2000-04-14  Jim Meyering  <meyering@lucent.com>
89037
89038         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89039
89040 2000-04-13  Jim Meyering  <meyering@lucent.com>
89041
89042         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89043         AH_VERBATIM to insert required #ifndef into config.h.in.
89044         Suggestion from Akim Demaille.
89045
89046 2000-04-12  Jim Meyering  <meyering@lucent.com>
89047
89048         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89049         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89050         Christian Krackowizer.
89051
89052         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89053         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89054         (AC_SYS_LARGEFILE): Require.
89055         (AM_C_PROTOTYPES): Require.
89056
89057 2000-04-08  Jim Meyering  <meyering@lucent.com>
89058
89059         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89060         names don't conflict.  Reported by Eli Zaretskii.
89061
89062 2000-04-07  Jim Meyering  <meyering@lucent.com>
89063
89064         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89065         sys/types.h, to work around system header problems on AIX 3.2.5.
89066         From Bruno Haible.
89067
89068 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89069
89070         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89071         bug.  Deal with the different error behavior of Irix iconv.
89072
89073 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89074
89075         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89076         IRIX if the installer said otherwise.
89077
89078 2000-04-05  Jim Meyering  <meyering@lucent.com>
89079
89080         Portability tweaks required for ultrix4.3.
89081         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89082         (jm_CHECK_DECLS): Add getutent to the list of functions.
89083         (_jm_DECL_HEADERS): Add utmpx.h.
89084         From John David Anglin.
89085
89086         * m4/strftime.m4: Back out the 2000-04-02 change.
89087         Instead of that change, simply undefine putenv in the test program.
89088
89089 2000-04-05  Jim Meyering  <meyering@lucent.com>
89090
89091         Portability tweaks required for ultrix4.3.
89092         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89093         getutent.
89094         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89095         * lib/canon-host.c: Declare strdup.
89096         * lib/path-concat.c: Likewise.
89097         From John David Anglin.
89098
89099 2000-04-04  Jim Meyering  <meyering@lucent.com>
89100
89101         Be more DOS 8.3-friendly.
89102         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89103         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89104         * lib/Makefile.am: Reflect renaming.
89105         Reported by Eli Zaretskii.
89106
89107         Use a temporary file name that won't clash with `charset.alias'
89108         in the DOS 8.3 name space.
89109         * lib/Makefile.am (charset_tmp): Define.
89110         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89111         (uninstall-local): Likewise.
89112         Reported by Eli Zaretskii.
89113
89114 2000-04-03  Jim Meyering  <meyering@lucent.com>
89115
89116         * m4/gettext.m4: Fix typo in comment.
89117
89118         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89119         textutils/configure.in).  Suggestion from Paul Eggert.
89120         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89121
89122 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89123
89124         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89125         variable in the shell rather than using putenv, which isn't
89126         portable.  This avoids the configure-time inter-test dependency
89127         on the potentially-renamed putenv function.
89128
89129 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89130
89131         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89132         before checking struct stat.st_blksize, so that
89133         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89134
89135 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89136
89137         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89138         since strftime.c uses HAVE_STRFTIME to decide whether to use
89139         the underlying strftime.
89140
89141 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89142
89143         * lib/time/strftime.c (my_strftime): Make sure we call the system
89144         strftime, not ourselves, when invoking the underlying strftime.
89145
89146 2000-03-24  Jim Meyering  <meyering@lucent.com>
89147
89148         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89149         (charset_alias): Define.
89150         (install-exec-local): Factor out common code.
89151         (uninstall-local): Split lines longer than 80.
89152         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89153         (SUFFIXES): Define.
89154         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89155         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89156
89157 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89158
89159         * lib/config.charset: Output a line containing "Packages using this
89160         file".
89161         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89162         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89163         ref-del.sed): New rules.
89164
89165 2000-03-17  Jim Meyering  <meyering@lucent.com>
89166
89167         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89168         Otherwise, include <strings.h>
89169
89170 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89171
89172         * lib/unicodeio.c (utf8_wctomb): New function.
89173         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89174         format instead of in UCS-4 with platform dependent endianness.
89175
89176 2000-03-10  Jim Meyering  <meyering@lucent.com>
89177
89178         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89179         From Marco Franzen.
89180
89181 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89182
89183         * lib/savedir.c (savedir): Work even if directory size is
89184         negative; this can happen with some screwy NFS configurations.
89185
89186 2000-03-06  Jim Meyering  <meyering@lucent.com>
89187
89188         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89189         if it's NULL (because we ran out of memory).  From Bruno Haible.
89190
89191 2000-03-05  Jim Meyering  <meyering@lucent.com>
89192
89193         * lib/localcharset.c ("path-concat.h"): Include.
89194         (get_charset_aliases): Use path_concat instead of ANSI string
89195         concatenation.
89196
89197         * lib/unicodeio.h (PARAMS): Define.
89198         Use it to guard prototype.
89199
89200 2000-03-04  Jim Meyering  <meyering@lucent.com>
89201
89202         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89203         for lib/localcharset.c.
89204
89205 2000-03-04  Jim Meyering  <meyering@lucent.com>
89206
89207         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89208         installing into it.
89209         (uninstall-local): Uncomment this rule so `make distcheck' works
89210         once again.
89211
89212         * lib/unicodeio.c (<errno.h>): Include it.
89213         (errno): Declare if not defined.
89214
89215         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89216
89217         * lib/config.charset: New version, incorporating remarks from a linux
89218         i18n mailing list.  From Bruno Haible.
89219
89220 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89221
89222         * m4/codeset.m4: New file.
89223         * m4/iconv.m4: New file.
89224         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89225
89226 2000-03-03  Jim Meyering  <meyering@lucent.com>
89227
89228         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89229
89230 2000-03-02  Jim Meyering  <meyering@lucent.com>
89231
89232         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89233         the messages come out on separate lines.
89234
89235         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89236         rather than jm_CHECK_DECLARATIONS.
89237         * m4/decl.m4: Remove now-unused file.
89238
89239         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89240         geteuid.
89241
89242 2000-03-02  Jim Meyering  <meyering@lucent.com>
89243
89244         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89245
89246 2000-03-01  Jim Meyering  <meyering@lucent.com>
89247
89248         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89249         * lib/unicodeio.c: Likewise.
89250
89251 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89252
89253         * lib/config.charset: New file.
89254         * lib/localcharset.c: New file.
89255         * lib/unicodeio.h, lib/unicodeio.c: New files.
89256         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89257         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89258         (noinst_HEADERS): Add unicodeio.h.
89259         (all-local, install-exec-local, charset.alias): New targets.
89260
89261 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89262
89263         * lib/quotearg.c (ALERT_CHAR): New macro.
89264         (quotearg_buffer_restyled): Use it.
89265
89266 2000-02-27  Jim Meyering  <meyering@lucent.com>
89267
89268         * m4/check-decl.m4: Add getenv to the list.
89269
89270 2000-02-27  Jim Meyering  <meyering@lucent.com>
89271
89272         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89273         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89274
89275         * lib/backupfile.c: Guard inclusion of stdlib.h with
89276         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89277         Declare malloc if needed.
89278
89279         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89280         `#ifndef HAVE_DECL..'
89281         now that autoconf always defines the HAVE_DECL_ symbols.
89282         * lib/human.c: Likewise.
89283         * lib/same.c: Likewise.
89284         * lib/strtoumax.c: Likewise.
89285
89286         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89287         declaration check was not run.
89288         * lib/hash.c: Likewise.
89289         * lib/human.c: Likewise.
89290         * lib/same.c: Likewise.
89291         * lib/strtoumax.c: Likewise.
89292
89293         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89294         `.', then first look up the entire `.'-containing string as a login
89295         name.
89296
89297 2000-02-23  Jim Meyering  <meyering@lucent.com>
89298
89299         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89300         in place of my hack.
89301
89302 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89303
89304         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89305         (textint): New typedef.
89306         (parser_control): Member year changed from int to textint.
89307         All uses changed.
89308         (YYSTYPE): Removed; replaced by %union with int and textint members.
89309         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89310         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89311         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89312         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89313         (date, number, to_year): Use width of number in digits, not its value,
89314         to determine whether it's a 2-digit year, or a 2-digit time.
89315         (yylex): Store number of digits of numeric tokens.
89316         Reported by John Kendall.
89317
89318         (parser_control): Changed from struct parser_control to typedef (for
89319         consistency).  All uses changed.
89320
89321         (tID): Removed; not used.
89322         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89323
89324 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89325
89326         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89327         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89328
89329 2000-02-12  Jim Meyering  <meyering@lucent.com>
89330
89331         * lib/userspec.c (ISDIGIT): Define it.
89332         (isdigit): Remove definition.
89333         (is_number): Use ISDIGIT, not isdigit.
89334         <libintl.h>: Include.
89335         (_ and N_): Define.
89336         (parse_user_spec): Mark translatable strings.
89337
89338 2000-02-10  Jim Meyering  <meyering@lucent.com>
89339
89340         With these changes, nanosleep.[ch] are finally enough like the other
89341         lib/* replacement files to compile on a few more losing systems.
89342
89343         * lib/nanosleep.h: Don't include config.h.
89344         Remove prototype from declaration of nanosleep.
89345         (PARAMS): Remove now-unneeded definition.
89346         * lib/nanosleep.c: #undef nanosleep.
89347         (rpl_nanosleep): Rename from nanosleep.
89348
89349 2000-02-10  Jim Meyering  <meyering@lucent.com>
89350
89351         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89352         gnu_nanosleep to rpl_nanosleep.
89353
89354 2000-02-09  Jim Meyering  <meyering@lucent.com>
89355
89356         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89357         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89358
89359 2000-02-08  Akim Demaille  <akim@epita.fr>
89360
89361         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89362         `[' and `]' and remove uses of `changequote'.
89363         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89364         (AC_SYS_LARGEFILE): Likewise.
89365         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89366         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89367         of changequote.
89368         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89369         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89370         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89371         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89372
89373 2000-02-05  Jim Meyering  <meyering@lucent.com>
89374
89375         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89376         Remove explicit use of AC_HEADER_TIME.  It is required by
89377         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89378         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89379         in autoconf whereby the expansion of the latter ended up preceding
89380         the expansion of its prerequisite, AC_HEADER_TIME.
89381         Reported by Volker Borchert.
89382
89383 2000-02-03  Jim Meyering  <meyering@lucent.com>
89384
89385         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89386
89387 2000-02-03  Jim Meyering  <meyering@lucent.com>
89388
89389         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89390         rather than with `#if HAVE_UTMPNAME'.
89391
89392 2000-02-02  Jim Meyering  <meyering@lucent.com>
89393
89394         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89395         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89396         Reported by Eli Zaretskii.
89397
89398 2000-02-01  Jim Meyering  <meyering@lucent.com>
89399
89400         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89401
89402 2000-01-31  Jim Meyering  <meyering@lucent.com>
89403
89404         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89405         functions.  Add the time.h and sys/time.h headers along with the
89406         AC_REQUIRE'ment of AC_HEADER_TIME.
89407
89408 2000-01-31  Jim Meyering  <meyering@lucent.com>
89409
89410         * lib/nanosleep.h (nanosleep): Guard declaration with
89411         `#if ! HAVE_DECL_NANOSLEEP'.
89412         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89413         the declaration in that vendor's sys/timers.h.
89414         Reported by Christian Krackowizer.
89415
89416         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89417         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89418         (ISPRINT): Likewise.
89419         Reported by Tom Tromey.
89420
89421 2000-01-30  Jim Meyering  <meyering@lucent.com>
89422
89423         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89424
89425         * m4/prereq.m4 (utmp_includes): Define.
89426         Check for ut_user and ut_name members in both struct utmpx
89427         and struct utmp.
89428
89429 2000-01-30  Jim Meyering  <meyering@lucent.com>
89430
89431         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89432         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89433         header files where only utmpx.ut_user is declared.
89434
89435         * lib/readutmp.h (UT_USER): Define.
89436
89437 2000-01-29  Jim Meyering  <meyering@lucent.com>
89438
89439         * m4/lib-check.m4: New file containing library-related checks from
89440         fileutils and sh-utils (textutils had none).
89441
89442 2000-01-28  Jim Meyering  <meyering@lucent.com>
89443
89444         * m4/perl.m4: Change format of warning message to look more like that
89445         from the missing script.  Suggestion from François Pinard.
89446
89447 2000-01-25  Jim Meyering  <meyering@lucent.com>
89448
89449         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89450         well as time.h in the compile check.
89451         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89452         Fix typo in cross-compiling case: s/yes/no/.
89453
89454 2000-01-23  Jim Meyering  <meyering@lucent.com>
89455
89456         * m4/jm-macros.m4: Move df-related tests here from
89457         fileutils/configure.in
89458
89459         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89460         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89461
89462         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89463         s/space/ac_fsusage_space/.
89464         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89465
89466         * m4/ftruncate.m4: New file (derived from part of
89467         fileutils/configure.in).
89468         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89469         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89470
89471         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89472         AC_SUBST these here, rather than just in sh-util/configure.in, so
89473         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89474         all the same.
89475         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89476         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89477         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89478         (AC_SUBST(POW_LIBM)): Likewise.
89479         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89480
89481 2000-01-23  Jim Meyering  <meyering@lucent.com>
89482
89483         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89484         obstack.c.
89485
89486 2000-01-22  Jim Meyering  <meyering@lucent.com>
89487
89488         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89489
89490         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89491
89492         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89493         configure.in
89494         (AC_CHECK_HEADERS): Likewise for sh-utils.
89495         (AC_CHECK_HEADERS): Likewise for textutils.
89496         Merge the three lists of headers.
89497
89498         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89499         from fileutils' configure.in.
89500
89501         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89502         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89503         check-decl.m4.
89504
89505         * m4/check-decl.m4: Use #if rather than #ifdef.
89506         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89507         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89508         (_jm_DECL_HEADERS): Define new function.
89509         (jm_CHECK_DECLARATIONS): Require it.
89510
89511 2000-01-22  Jim Meyering  <meyering@lucent.com>
89512
89513         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89514         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89515         Required for some AIX systems.  Reported by Christian Krackowizer.
89516         [TESTING] (main): New function.
89517
89518         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89519         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89520         letters.
89521
89522         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89523         iswprint.
89524
89525         * lib/strverscmp.c (ISDIGIT): Define.
89526         (strverscmp): Use ISDIGIT, not isdigit.
89527
89528 2000-01-19  Jim Meyering  <meyering@lucent.com>
89529
89530         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89531         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89532         defines `struct timespec' in <sys/time.h>
89533
89534         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89535         Thanks to Akim for explaining.
89536
89537 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89538
89539         * lib/nanosleep.c (nanosleep):
89540         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89541         POSIX.1 doesn't require SA_INTERRUPT and some systems
89542         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89543         it's been part of POSIX.1 since day 1 (in 1988).
89544
89545 2000-01-17  Jim Meyering  <meyering@lucent.com>
89546
89547         * lib/interlock: Remove unused file.  Reported by François Pinard.
89548
89549 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89550
89551         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89552         alert, backslash, formfeed, and vertical tab unnecessarily in
89553         shell quoting style.
89554
89555 2000-01-16  Jim Meyering  <meyering@lucent.com>
89556
89557         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89558         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89559         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89560         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89561
89562 2000-01-16  Jim Meyering  <meyering@lucent.com>
89563
89564         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89565         because the latter didn't work.
89566
89567 2000-01-15  Jim Meyering  <meyering@lucent.com>
89568
89569         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89570         (AC_REPLACE_FUNCS): Add memcpy and memset.
89571         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89572         Add strpbrk.
89573         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89574
89575 2000-01-12  Jim Meyering  <meyering@lucent.com>
89576
89577         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89578         (jm_PREREQ): Use it.
89579         (jm_PREREQ_READUTMP): New macro.
89580         (jm_PREREQ): Use it.
89581
89582 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89583
89584         Quote multibyte characters correctly.
89585         * m4/c-bs-a.m4: New file.
89586         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89587         (jm_PREREQ): Use it.
89588
89589 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89590
89591         * m4/uintmax_t.m4: Port to autoconf 2.13.
89592
89593 2000-01-08  Jim Meyering  <meyering@ascend.com>
89594
89595         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89596         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89597
89598 2000-01-04  Jim Meyering  <meyering@ascend.com>
89599
89600         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89601         jm_STRUCT_DIRENT_D_TYPE.
89602         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89603         jm_STRUCT_DIRENT_D_INO.
89604         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89605         jm_STRUCT_UTIMBUF.
89606         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89607         renamings.
89608         * m4/utime.m4: Likewise.
89609
89610         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89611         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89612
89613 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89614
89615         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89616         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89617
89618 2000-01-02  Jim Meyering  <meyering@ascend.com>
89619
89620         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89621         remember if this is necessary.
89622
89623 1999-12-26  Jim Meyering  <meyering@ascend.com>
89624
89625         * m4/jm-macros.m4: Use it here.
89626         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89627
89628 1999-12-23  Jim Meyering  <meyering@ascend.com>
89629
89630         * m4/jm-macros.m4: Check for clock_gettime (moved from
89631         fileutils/configure.in)
89632         Check for gettimeofday.
89633
89634 1999-12-20  Jim Meyering  <meyering@ascend.com>
89635
89636         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89637         autoconf-2.14a-1999-12-20.
89638
89639 1999-12-19  Jim Meyering  <meyering@ascend.com>
89640
89641         * m4/lstat-slash.m4: New file.
89642         * m4/jm-macros.m4: Use the new macro:
89643         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89644
89645 1999-12-07  Jim Meyering  <meyering@ascend.com>
89646
89647         * m4/perl.m4: Require that File::Compare be available, too.
89648         Too many systems seem to lack it.
89649
89650         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89651         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89652
89653 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89654
89655         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89656         problem with the QNX 4.25 shell, which doesn't propagate exit
89657         status of failed commands inside shell assignments.
89658
89659 1999-11-17  Jim Meyering  <meyering@ascend.com>
89660
89661         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89662
89663 1999-11-07  Jim Meyering  <meyering@ascend.com>
89664
89665         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89666
89667 1999-11-06  Jim Meyering  <meyering@ascend.com>
89668
89669         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89670         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89671
89672 1999-11-05  Jim Meyering  <meyering@ascend.com>
89673
89674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89675         configure.in of textutils, fileutils, and sh-utils into this one
89676         (shared between those packages) file.
89677         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89678         AC_STRUCT_ST_BLKSIZE.
89679
89680 1999-11-03  Jim Meyering  <meyering@ascend.com>
89681
89682         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89683         of AC_CHECK_TYPE checks includes unistd.h.
89684         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89685         Suggestion from Akim Demaille.
89686
89687 1999-10-30  Jim Meyering  <meyering@ascend.com>
89688
89689         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89690         m4-quoted string.
89691         * m4/ls-mntd-fs.m4: Likewise.
89692         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89693         * m4/jm-winsz1.m4: Likewise.
89694
89695         * m4/const.m4: Remove file, since the fix made it into the experimental
89696         version of autoconf.
89697         * m4/mktime.m4: Likewise.
89698
89699         * m4/check-type.m4: Remove file, now that the latest version of
89700         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89701
89702         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89703         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89704         AC_CHECK_TYPE.
89705
89706 1999-10-04  Jim Meyering  <meyering@ascend.com>
89707
89708         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89709
89710 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89711
89712         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89713         2.95.1 bug with HP-UX 10.20.
89714
89715 1999-09-17  Jim Meyering  <meyering@ascend.com>
89716
89717         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89718         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89719         due to missing strdup (against sh-utils-2.0).
89720
89721 1999-08-29  Jim Meyering  <meyering@ascend.com>
89722
89723         * m4/jm-macros.m4: Require jm_BISON.
89724         * m4/bison.m4: New file.
89725
89726 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89727
89728         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89729         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89730
89731 1999-08-05  Jim Meyering  <meyering@ascend.com>
89732
89733         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89734         to avoid conflicts with `conftest' on 8+3 filesystems.
89735         Suggestion from Eli Zaretskii.
89736
89737 1999-08-04  Jim Meyering  <meyering@ascend.com>
89738
89739         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89740         fileutils and sh-utils (textutils's getline test was inadequate).
89741         (AM_FUNC_GETLINE): Run this test.
89742         (AC_CHECK_FUNCS): Check for getdelim.
89743         Reported by Bob Proulx.
89744
89745 1999-08-02  Jim Meyering  <meyering@ascend.com>
89746
89747         * m4/jm-macros.m4: Add a comment.
89748
89749 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89750
89751         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89752         <inttypes.h> defines strtoumax as a macro (and not as a
89753         function).
89754
89755 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89756
89757         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89758         that we can shift, multiply and divide unsigned long long
89759         values; Ultrix cc can't do it.
89760
89761 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89762
89763         * m4/mktime.m4: New file, which is a preview of what should appear
89764         in the next public autoconf release.
89765
89766 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89767
89768         * m4/lfs.m4: Remove this file.
89769         * m4/largefile.m4: New file.  It contains the old contents of
89770         lfs.m4, except that all names with prefix AC_LFS have been
89771         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89772         compatible with future autoconf versions.  Also, some minor m4
89773         quoting problems have been fixed.
89774
89775 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89776
89777         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89778         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89779         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89780         and simplify the shell code.
89781
89782 1999-08-01  Jim Meyering  <meyering@ascend.com>
89783
89784         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89785         m4.
89786
89787 1999-07-20  Jim Meyering  <meyering@ascend.com>
89788
89789         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89790
89791 1999-07-15  Jim Meyering  <meyering@ascend.com>
89792
89793         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89794
89795 1999-05-22  Jim Meyering  <meyering@ascend.com>
89796
89797         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89798
89799 1999-05-20  Jim Meyering  <meyering@ascend.com>
89800
89801         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89802         Add a colon after each `then' in case $4 is empty.
89803
89804 1999-05-16  Jim Meyering  <meyering@ascend.com>
89805
89806         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89807
89808 1999-05-10  Jim Meyering  <meyering@ascend.com>
89809
89810         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89811
89812         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89813         AC_FUNC_MKTIME.
89814
89815 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89816
89817         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89818
89819 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89820
89821         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89822         not CPPFLAGS, so that linking works correctly in IRIX.
89823
89824 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89825
89826         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89827
89828 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89829
89830         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89831         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89832         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89833         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89834         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89835
89836         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89837
89838 1999-04-20  Jim Meyering  <meyering@ascend.com>
89839
89840         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89841         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89842         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89843
89844 1999-04-18  Jim Meyering  <meyering@ascend.com>
89845
89846         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89847         * m4/jm-macros.m4: Use it.
89848
89849 1999-04-06  Jim Meyering  <meyering@ascend.com>
89850
89851         * m4/strftime.m4: Remove test for %f.
89852
89853 1999-03-29  Jim Meyering  <meyering@ascend.com>
89854
89855         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89856         superset of the AC_TYPE_* checks in the textutils, fileutils,
89857         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89858         AC_TYPE_PID_T.
89859
89860 1999-03-28  Jim Meyering  <meyering@ascend.com>
89861
89862         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89863         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89864         replaced e.g., in the *.sh files of the sh-utils.
89865
89866 1999-03-20  Jim Meyering  <meyering@ascend.com>
89867
89868         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89869         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89870         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89871
89872 1999-03-19  Jim Meyering  <meyering@ascend.com>
89873
89874         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89875
89876 1999-03-12  Jim Meyering  <meyering@ascend.com>
89877
89878         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89879
89880 1999-03-07  Jim Meyering  <meyering@ascend.com>
89881
89882         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89883         declared.
89884
89885 1999-02-17  Jim Meyering  <meyering@ascend.com>
89886
89887         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89888         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89889
89890 1999-02-07  Jim Meyering  <meyering@ascend.com>
89891
89892         * m4/group-member.m4: New file -- extracted from sh-utils'
89893         configure.in.
89894
89895         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89896         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89897
89898 1999-02-06  Jim Meyering  <meyering@ascend.com>
89899
89900         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89901         * m4/fnmatch.m4: Likewise.
89902         * m4/getgroups.m4: Likewise.
89903         * m4/lstat.m4: Likewise.
89904         * m4/malloc.m4: Likewise.
89905         * m4/putenv.m4: Likewise.
89906         * m4/realloc.m4: Likewise.
89907         * m4/regex.m4: Likewise.
89908         * m4/stat.m4: Likewise.
89909         * m4/strftime.m4: Likewise.
89910         Suggestion from Alain Magloire.
89911
89912         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89913         * m4/fnmatch.m4: Likewise.
89914         * m4/getgroups.m4: Likewise.
89915         * m4/getline.m4: Likewise.
89916         * m4/lstat.m4: Likewise.
89917         * m4/malloc.m4: Likewise.
89918         * m4/memcmp.m4: Likewise.
89919         * m4/putenv.m4: Likewise.
89920         * m4/realloc.m4: Likewise.
89921         * m4/regex.m4: Likewise.
89922         * m4/stat.m4: Likewise.
89923         * m4/strftime.m4: Likewise.
89924         Suggestion from Alain Magloire.
89925
89926         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89927         an argument.
89928
89929         * m4/regex.m4: Add a run-time Test for proper operation of
89930         re_compile_pattern.
89931
89932 1999-01-31  Jim Meyering  <meyering@ascend.com>
89933
89934         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89935
89936 1999-01-30  Jim Meyering  <meyering@ascend.com>
89937
89938         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89939
89940         * m4/jm-mktime.m4: Make this a wrapper around the official
89941         AM_FUNC_MKTIME rather than my private copy, now that the official one
89942         is up to date.
89943         * m4/mktime.m4: Remove file.
89944
89945         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89946         * m4/uptime.m4: Likewise.
89947         * m4/uintmax_t.m4: Likewise.
89948
89949 1999-01-28  Jim Meyering  <meyering@ascend.com>
89950
89951         * m4/jm-macros.m4: Use jm_AFS.
89952         * m4/afs.m4: New file (from fileutils' configure.in).
89953
89954         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89955         * m4/chown.m4: Likewise.
89956         * m4/d-ino.m4: Likewise.
89957         * m4/d-type.m4: Likewise.
89958         * m4/fnmatch.m4: Likewise.
89959         * m4/getgroups.m4: Likewise.
89960         * m4/gettext.m4: Likewise.
89961         * m4/jm-mktime.m4: Likewise.
89962         * m4/jm-winsz2.m4: Likewise.
89963         * m4/lcmessage.m4: Likewise.
89964         * m4/ls-mntd-fs.m4: Likewise.
89965         * m4/malloc.m4: Likewise.
89966         * m4/memcmp.m4: Likewise.
89967         * m4/putenv.m4: Likewise.
89968         * m4/realloc.m4: Likewise.
89969         * m4/st_mtim.m4: Likewise.
89970         * m4/strftime.m4: Likewise.
89971
89972 1999-01-16  Jim Meyering  <meyering@ascend.com>
89973
89974         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89975         (ARGMATCH_DIE_DECL): Define.
89976
89977 1999-01-12  Jim Meyering  <meyering@ascend.com>
89978
89979         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89980         Reported by Lars Hecking.
89981
89982 1999-01-10  Jim Meyering  <meyering@ascend.com>
89983
89984         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89985         gross kludge.
89986         * m4/inttypes_h.m4: Likewise.
89987         * m4/lstat.m4: Likewise.
89988         * m4/malloc.m4: Likewise.
89989         * m4/readdir.m4: Likewise.
89990         * m4/realloc.m4: Likewise.
89991         * m4/st_dm_mode.m4: Likewise.
89992         * m4/stat.m4: Likewise.
89993         * m4/utimbuf.m4: Likewise.
89994         * m4/utimes.m4: Likewise.
89995
89996         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89997         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89998         comments in config.h.in are meaningful.
89999
90000         * m4/jm-macros.m4: Require autoconf-2.13 here.
90001
90002         * m4/regex.m4: By default, don't use the included regex.c on systems
90003         with glibc 2.  Suggestion from Uli Drepper.
90004
90005 1999-01-02  Jim Meyering  <meyering@ascend.com>
90006
90007         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90008
90009 1998-12-18  Jim Meyering  <meyering@ascend.com>
90010
90011         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90012         Based on a suggestion from Lars Hecking.
90013
90014 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90015
90016         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90017
90018 1998-11-16  Jim Meyering  <meyering@ascend.com>
90019
90020         * m4/lfs.m4: Double-quote the `uname...` expression.
90021
90022 1998-11-14  Jim Meyering  <meyering@ascend.com>
90023
90024         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90025         * m4/stat.m4: Likewise.
90026
90027 1998-11-03  Jim Meyering  <meyering@ascend.com>
90028
90029         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90030         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90031
90032 1998-10-18  Jim Meyering  <meyering@ascend.com>
90033
90034         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90035
90036 1998-10-17  Jim Meyering  <meyering@ascend.com>
90037
90038         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90039         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90040         calls for those previously hard-coded headers.  Instead, take a new
90041         parameter.
90042         (jm_CHECK_DECLARATIONS): Reflect interface change.
90043         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90044         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90045
90046         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90047
90048 1998-10-14  Jim Meyering  <meyering@ascend.com>
90049
90050         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90051         instead of "TZ=America/Vancouver".  From Paul Eggert.
90052
90053 1998-10-11  Jim Meyering  <meyering@ascend.com>
90054
90055         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90056         This adds a test for a recently added compatibility fix for mktime.c.
90057         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90058
90059 1998-09-27  Jim Meyering  <meyering@ascend.com>
90060
90061         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90062
90063         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90064         ../configure.in, including a change from Gordon Matzigkeit to allow
90065         cross-compiling for the Hurd.
90066
90067         * m4/glibc.m4: New file/macro to test for the GNU C Library
90068         versions 1 and 2.  From Gordon Matzigkeit.
90069         Indent.
90070
90071 1998-09-21  Jim Meyering  <meyering@ascend.com>
90072
90073         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90074
90075 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90076
90077         Port nanosecond-resolution times to UnixWare 2.1.2 and
90078         pedantic Solaris 2.6.
90079
90080         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90081         AC_STRUCT_ST_MTIM.
90082         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90083         Generate name of ns member, instead of just 1 or undef.
90084         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90085
90086 1998-08-15  Jim Meyering  <meyering@ascend.com>
90087
90088         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90089         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90090         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90091         instead of jm_TYPE_SSIZE_T.
90092
90093 1998-08-12  Jim Meyering  <meyering@ascend.com>
90094
90095         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90096
90097 1998-08-02  Jim Meyering  <meyering@ascend.com>
90098
90099         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90100         in acconfig.h manually.
90101
90102 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90103
90104         * m4/st_mtim.m4: New file.
90105
90106 1998-07-28  Jim Meyering  <meyering@ascend.com>
90107
90108         * m4/utimes.m4: Undef stat.
90109
90110 1998-07-25  Jim Meyering  <meyering@ascend.com>
90111
90112         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90113         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90114
90115 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90116
90117         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90118         uid and gid actually remain unchanged.
90119
90120 1998-07-07  Jim Meyering  <meyering@ascend.com>
90121
90122         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90123
90124 1998-07-04  Jim Meyering  <meyering@ascend.com>
90125
90126         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90127         to prove that this macro can be used in packages without regex.c.
90128
90129 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90130
90131         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90132         is to be used.
90133
90134 1998-07-03  Jim Meyering  <meyering@ascend.com>
90135
90136         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90137
90138         * m4/gettext.m4: New file -- from gettext-0.10.35.
90139         * m4/lcmessage.m4: Likewise.
90140         * m4/progtest.m4: Likewise.
90141
90142         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90143         * m4/jm-macros.m4: Require the new macro.
90144
90145 1998-06-29  Jim Meyering  <meyering@ascend.com>
90146
90147         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90148         for the definition of NGROUPS (used in a system header included
90149         by sys/mount.h).
90150
90151 1998-06-28  Jim Meyering  <meyering@ascend.com>
90152
90153         * m4/ls-mntd-fs.m4: New file.
90154         * m4/fstypename.m4: New file.
90155
90156         * m4/jm-macros.m4: Require the new macro.
90157         * m4/jm-glibc-io.m4: New file.
90158
90159 1998-05-19  Jim Meyering  <meyering@ascend.com>
90160
90161         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90162         * m4/lchown.m4: New file.
90163
90164         * m4/Makefile.am.in: New file.
90165         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90166
90167 1998-05-14  Jim Meyering  <meyering@ascend.com>
90168
90169         * m4/Makefile.am (EXTRA_DIST): Add them.
90170         * m4/jm-macros.m4: New file.
90171         * m4/utimbuf.m4: New file.
90172
90173 1998-05-12  Jim Meyering  <meyering@ascend.com>
90174
90175         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90176
90177 1998-05-11  Jim Meyering  <meyering@ascend.com>
90178
90179         * m4/isc-posix.m4: New file.
90180
90181 1998-05-10  Jim Meyering  <meyering@ascend.com>
90182
90183         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90184
90185 1998-05-09  Jim Meyering  <meyering@ascend.com>
90186
90187         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90188         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90189         with automake.
90190
90191         * m4/ssize_t.m4: New file.
90192         * m4/mktime.m4: Remove file -- the new automake has this now.
90193
90194 1998-04-26  Jim Meyering  <meyering@ascend.com>
90195
90196         * m4/assert.m4: New file.
90197         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90198
90199 1998-04-05  Jim Meyering  <meyering@ascend.com>
90200
90201         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90202         (jm_PREREQ): Use it here.
90203
90204 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90205
90206         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90207         in acconfig.h.
90208
90209 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90210
90211         * m4/prereq.m4: New file.
90212         * m4/error.m4: New file.
90213         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90214
90215 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90216
90217         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90218         cache-check for the same variable -- that defeated the purpose of
90219         the test; the test program was never run.  This was a problem only
90220         on systems with losing getline functions -- HP-UX 10.20 is one.
90221         Reported by Bjorn Helgaas.
90222
90223 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90224
90225         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90226
90227 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90228
90229         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90230
90231         * m4/const.m4: New file.  Use an initializer in this declaration
90232         typedef int charset[2]; const charset x;
90233         Reported by Bob Glickstein.
90234
90235 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90236
90237         * m4/chown.m4: Fix reversed types on -1 args to chown.
90238         From Kaveh Ghazi.
90239
90240 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90241
90242         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90243         Add lseek and memchr.
90244
90245         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90246         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90247         have a 20-character limit on names.
90248
90249 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90250
90251         * m4/inttypes_h.m4: New file.
90252         * m4/uintmax_t.m4: New file.
90253         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90254
90255
90256         -----
90257
90258         Local Variables:
90259         coding: utf-8
90260         End:
90261
90262         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90263
90264         Copying and distribution of this file, with or without
90265         modification, are permitted provided the copyright notice
90266         and this notice are preserved.